26.2.8 release

This commit is contained in:
David Benson 2025-04-05 20:21:29 +01:00
parent 49c6104166
commit b124bc92f0
11 changed files with 1036 additions and 901 deletions

View File

@ -1,3 +1,9 @@
05-APR-2025: 26.2.8
- Adds ALLOW_INTERNAL_10_NET=1 for 10.x.x.x proxy usage [jgraph/drawio#4966]
- Adds try/catch for TENANT_ID exception [jgraph/drawio#4909]
- Moves mermaid2drawio.js back into public build
05-APR-2025: 26.2.7
- [conf cloud] and GraphViewer. Removes tooltips config. Pages use file tooltips config [DID-14767]

View File

@ -1 +1 @@
26.2.7
26.2.8

View File

@ -18,18 +18,23 @@ abstract public class MSGraphAuth extends AbsAuth
{
if (CONFIG == null)
{
String clientSecrets = SecretFacade.getSecret(CLIENT_SECRET_FILE_PATH, getServletContext()),
clientId = SecretFacade.getSecret(CLIENT_ID_FILE_PATH, getServletContext()),
tenantId = SecretFacade.getSecret(TENANT_ID_FILE_PATH, getServletContext());
String clientSecrets = SecretFacade.getSecret(CLIENT_SECRET_FILE_PATH, getServletContext());
String clientId = SecretFacade.getSecret(CLIENT_ID_FILE_PATH, getServletContext());
String tenantId = null;
try
{
tenantId = SecretFacade.getSecret(TENANT_ID_FILE_PATH, getServletContext());
} catch (Exception e) {}
CONFIG = new Config(clientId, clientSecrets);
String tenantIdPathPart = (tenantId != null && !tenantId.isEmpty()) ? tenantId : "common";
String tenantIdPathPart = (tenantId != null && !tenantId.trim().isEmpty()) ? tenantId.trim() : "common";
CONFIG.AUTH_SERVICE_URL = "https://login.microsoftonline.com/" + tenantIdPathPart + "/oauth2/v2.0/token";
CONFIG.REDIRECT_PATH = "/microsoft";
}
return CONFIG;
}

View File

@ -577,48 +577,57 @@ public class Utils
InetAddress address = InetAddress.getByName(host);
String hostAddress = address.getHostAddress();
host = host.toLowerCase();
boolean allow10Net = "1".equals(System.getenv("ALLOW_INTERNAL_10_NET"));
// Special handling: if ALLOW_INTERNAL_10_NET=1 and IP is 10.x.x.x, allow it
if (hostAddress.startsWith("10.") && allow10Net)
{
return (protocol.equals("http") || protocol.equals("https"))
&& allowedPorts.contains(parsedUrl.getPort());
}
// Block all other private/internal/reserved IPs
boolean isPrivateAddress =
address.isAnyLocalAddress()
|| address.isLoopbackAddress()
|| address.isLinkLocalAddress()
|| host.endsWith(".internal")
|| host.endsWith(".local")
|| host.contains("localhost")
|| hostAddress.startsWith("0.")
|| hostAddress.startsWith("10.") // still here to block if not explicitly allowed
|| hostAddress.startsWith("127.")
|| hostAddress.startsWith("169.254.")
|| hostAddress.startsWith("172.16.")
|| hostAddress.startsWith("172.17.")
|| hostAddress.startsWith("172.18.")
|| hostAddress.startsWith("172.19.")
|| hostAddress.startsWith("172.20.")
|| hostAddress.startsWith("172.21.")
|| hostAddress.startsWith("172.22.")
|| hostAddress.startsWith("172.23.")
|| hostAddress.startsWith("172.24.")
|| hostAddress.startsWith("172.25.")
|| hostAddress.startsWith("172.26.")
|| hostAddress.startsWith("172.27.")
|| hostAddress.startsWith("172.28.")
|| hostAddress.startsWith("172.29.")
|| hostAddress.startsWith("172.30.")
|| hostAddress.startsWith("172.31.")
|| hostAddress.startsWith("192.0.0.")
|| hostAddress.startsWith("192.168.")
|| hostAddress.startsWith("198.18.")
|| hostAddress.startsWith("198.19.")
|| hostAddress.startsWith("fc00::")
|| hostAddress.startsWith("fd00::")
|| host.endsWith(".arpa");
return (protocol.equals("http") || protocol.equals("https"))
&& !address.isAnyLocalAddress()
&& !address.isLoopbackAddress()
&& !address.isLinkLocalAddress()
&& allowedPorts.contains(parsedUrl.getPort())
&& !host.endsWith(".internal") // Redundant
&& !host.endsWith(".local") // Redundant
&& !host.contains("localhost") // Redundant
&& !hostAddress.startsWith("0.") // 0.0.0.0/8
&& !hostAddress.startsWith("10.") // 10.0.0.0/8
&& !hostAddress.startsWith("127.") // 127.0.0.0/8
&& !hostAddress.startsWith("169.254.") // 169.254.0.0/16
&& !hostAddress.startsWith("172.16.") // 172.16.0.0/12
&& !hostAddress.startsWith("172.17.") // 172.16.0.0/12
&& !hostAddress.startsWith("172.18.") // 172.16.0.0/12
&& !hostAddress.startsWith("172.19.") // 172.16.0.0/12
&& !hostAddress.startsWith("172.20.") // 172.16.0.0/12
&& !hostAddress.startsWith("172.21.") // 172.16.0.0/12
&& !hostAddress.startsWith("172.22.") // 172.16.0.0/12
&& !hostAddress.startsWith("172.23.") // 172.16.0.0/12
&& !hostAddress.startsWith("172.24.") // 172.16.0.0/12
&& !hostAddress.startsWith("172.25.") // 172.16.0.0/12
&& !hostAddress.startsWith("172.26.") // 172.16.0.0/12
&& !hostAddress.startsWith("172.27.") // 172.16.0.0/12
&& !hostAddress.startsWith("172.28.") // 172.16.0.0/12
&& !hostAddress.startsWith("172.29.") // 172.16.0.0/12
&& !hostAddress.startsWith("172.30.") // 172.16.0.0/12
&& !hostAddress.startsWith("172.31.") // 172.16.0.0/12
&& !hostAddress.startsWith("192.0.0.") // 192.0.0.0/24
&& !hostAddress.startsWith("192.168.") // 192.168.0.0/16
&& !hostAddress.startsWith("198.18.") // 198.18.0.0/15
&& !hostAddress.startsWith("198.19.") // 198.18.0.0/15
&& !hostAddress.startsWith("fc00::") // fc00::/7 https://stackoverflow.com/questions/53764109/is-there-a-java-api-that-will-identify-the-ipv6-address-fd00-as-local-private
&& !hostAddress.startsWith("fd00::") // fd00::/8
&& !host.endsWith(".arpa"); // reverse domain (needed?)
&& !isPrivateAddress
&& allowedPorts.contains(parsedUrl.getPort());
}
catch (MalformedURLException e)
{
return false;
}
catch (UnknownHostException e)
catch (MalformedURLException | UnknownHostException e)
{
return false;
}
@ -628,7 +637,6 @@ public class Utils
return false;
}
}
/**
*
*/

View File

@ -62,7 +62,7 @@ if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==url
"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");
"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ADD_ATTR:["target","content","pointer-events","requiredFeatures"]};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||"mxgraph";
window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.2.7",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),
window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.2.8",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),
IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&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:/Apple Computer, Inc/.test(navigator.vendor),
IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints,IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userAgent),IS_GC:/Google Inc/.test(navigator.vendor),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:-1<navigator.userAgent.toLowerCase().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:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS||
@ -12964,7 +12964,7 @@ function(){null==this.page&&(this.page=this.ui.currentPage);if(this.page!=this.u
(this.page.viewState.adaptiveColors=this.adaptiveColors);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else K.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.adaptiveColors&&this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(n=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=
null!=n?n:"default"),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var N=document.createElement("canvas"),M=new Image;M.onload=function(){try{N.getContext("2d").drawImage(M,0,0);var n=N.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=n&&6<n.length}catch(A){}};M.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(n){}Editor.prototype.useCanvasForExport=
!1})();(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};b.afterDecode=function(e,f,c){c.previousColor=c.color;c.previousImage=c.image;c.previousFormat=c.format;c.previousAdaptiveColors=c.adaptiveColors;null!=c.foldingEnabled&&(c.foldingEnabled=!c.foldingEnabled);null!=c.mathEnabled&&(c.mathEnabled=!c.mathEnabled);null!=c.shadowVisible&&(c.shadowVisible=!c.shadowVisible);return c};mxCodecRegistry.register(b)})();
(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.2.7";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&
(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.2.8";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&
"test.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.cacheUrl=window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging;EditorUi.isElectronApp=
null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;EditorUi.nativeFileSupport=!mxClient.IS_OP&&!EditorUi.isElectronApp&&"1"!=urlParams.extAuth&&"showSaveFilePicker"in window&&"showOpenFilePicker"in window;EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://www.drawio.com/doc/faq/scratchpad";EditorUi.enableHtmlEditOption=!0;EditorUi.mermaidDiagramTypes="flowchart classDiagram sequenceDiagram stateDiagram mindmap graph erDiagram requirementDiagram journey gantt pie gitGraph".split(" ");
EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};

View File

@ -1,336 +1,337 @@
LucidImporter={};
(function(){function r(f){if(f&&null!=LucidImporter.imgSrcRepl){var n=LucidImporter.imgSrcRepl.attMap;if(n[f])f=n[f];else{n=LucidImporter.imgSrcRepl.imgRepl;for(var m=0;m<n.length;m++){var e=n[m];f=f.replace(e.searchVal,e.replVal)}LucidImporter.hasExtImgs=!0}}return f}function w(f){ab="";try{if(f){var n=null;LucidImporter.advImpConfig&&LucidImporter.advImpConfig.fontMapping&&(n=LucidImporter.advImpConfig.fontMapping[f]);if(n){for(var m in n)ab+=m+"="+n[m]+";";return n.fontFamily?"font-family: "+n.fontFamily:
""}if("Liberation Sans"!=f)return ab="fontFamily="+f+";","font-family: "+f+";"}}catch(e){}return""}function x(f){return Math.round(10*f)/10}function z(f,n,m){function e(R,sa){var da="",ea=R.t,Db=R.l||{v:ea&&"ul"==ea.v?"auto":"decimal"};if(null==ea||0!=ua&&ua==ea.v&&pa==Db.v)null==ea&&(ua&&(da+=y(!0),ua=!1),da+='<div style="',ia.push("div"));else{ua&&(da+=y(!0));ua=ea.v;pa=Db.v;"ul"==ea.v?(da+="<ul ",ia.push("ul")):(da+="<ol ",ia.push("ol"));da+='style="margin: 0px; padding-left: 10px;list-style-position: inside; list-style-type:';
if("hl"==ea.v)da+="upper-roman";else switch(Db.v){case "auto":da+="disc";break;case "inv":da+="circle";break;case "disc":da+="circle";break;case "trib":da+="square";break;case "square":da+="square";break;case "dash":da+="square";break;case "heart":da+="disc";break;default:da+="decimal"}da+='">'}if(null!=ea){da+='<li style="text-align:'+(R.a?R.a.v:m.TextAlign||"center")+";";if(null!=sa){if(sa.c)var M=sa.c.v;if(sa.s)var lb=sa.s.v}try{var Ea=I[Q],fc=W[fa];sa=Q;if(Ea&&fc&&Ea.s<fc.e)for(var lc=Ea.s;null!=
Ea&&Ea.s==lc;)"s"==Ea.n?lb=Ea.v:"c"==Ea.n&&(M=Ea.v),Ea=I[++sa]}catch(tb){console.log(tb)}M=gc(M);null!=M&&(M=M.substring(0,7),da+="color:"+M+";");lb&&(da+="font-size:"+x(.75*lb)+"px;");da+='">';ia.push("li");da+='<span style="';ia.push("span")}ua||(lb=M=R.a?R.a.v:m.TextAlign||"center","left"==M?lb="flex-start":"right"==M&&(lb="flex-end"),da+="display: flex; justify-content: "+lb+"; text-align: "+M+"; align-items: baseline; font-size: 0; line-height: 1.25;");R.il&&(da+="margin-left: "+Math.max(0,x(.75*
R.il.v-(ua?28:0)))+"px;");R.ir&&(da+="margin-right: "+x(.75*R.ir.v)+"px;");R.mt&&(da+="margin-top: "+x(.75*R.mt.v)+"px;");R.mb&&(da+="margin-bottom: "+x(.75*R.mb.v)+"px;");da+='margin-top: -2px;">';ua||(da+="<span>",ia.push("span"));return da}function a(R){if(mxUtils.isEmptyObject(R))return"";var sa="",da=0;if(R.lk){var ea=R.lk;null!=ea.v&&0<ea.v.length&&(sa+='<a href="'+E(ea.v[0])+'">',ha.push("a"),da++)}sa+='<span style="';ha.push("span");da++;sa+="font-size:"+(R.s&&R.s.v?x(.75*R.s.v):"13")+"px;";
R.c&&(ea=gc(R.c.v),null!=ea&&(ea=ea.substring(0,7),sa+="color:"+ea+";"));if(R.b&&R.b.v||R.fc&&R.fc.v&&0==R.fc.v.indexOf("Bold"))sa+="font-weight: bold;";R.i&&R.i.v&&(sa+="font-style: italic;");R.ac&&R.ac.v&&(sa+="text-transform: uppercase;");ea=null;R.f?ea=R.f.v:m.Font&&(ea=m.Font);sa+=w(ea);ea=[];R.u&&R.u.v&&ea.push("underline");R.k&&R.k.v&&ea.push("line-through");0<ea.length&&(sa+="text-decoration: "+ea.join(" ")+";");sa+='">';za.push(da);return sa}function y(R){var sa="";do{var da=ia.pop();if(!R&&
ua&&("ul"==da||"ol"==da)){ia.push(da);break}sa+="</"+da+">"}while(0<ia.length);return sa}function d(R,sa,da,ea){R=R?R.substring(sa,da):"";ua&&(R=R.trim());0==ha.length&&0<R.length&&(R=a({dummy:1})+R);R=R.replace(/</g,"&lt;").replace(/>/g,"&gt;");do for(sa=za.pop(),da=0;da<sa;da++){var Db=ha.pop();R+="</"+Db+">"}while(ea&&0<ha.length);return R}var c={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,l:!0},G={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!0,k:!0,f:!0,ac:!0};n.sort(function(R,sa){return R.s-sa.s});var I=n.filter(function(R){return G[R.n]});
I[0]&&0!=I[0].s&&I.unshift({s:0,n:"dummy",v:"",e:I[0].s});n=n.filter(function(R){return c[R.n]});for(var C=[0],ba=0;0<(ba=f.indexOf("\n",ba));)ba++,C.push(ba);for(var Q=ba=0;Q<n.length;Q++){if(n[Q].s>C[ba])n.splice(Q,0,{s:C[ba],n:"a",v:m.TextAlign||"center"});else{for(var S=0;Q+S<n.length&&n[Q+S].s==C[ba];)S++;1<S&&(Q+=S-1)}ba++}null!=C[ba]&&n.push({s:C[ba],n:"a",v:m.TextAlign||"center"});C="";var W=I.slice();W.sort(function(R,sa){return R.e-sa.e});var fa=Q=0;ba=0;S={};for(var T={},ha=[],za=[],ia=
[],Z=!1,ua=!1,pa,ra=0,b=0,na=f.length,Na=!0;ba<n.length||Na;){Na=!1;if(ba<n.length){var ka=n[ba],ya=n[ba].s;Z&&(T={},C+=d(f,ra,na,!0),b=ra=na,C+=y());for(;null!=ka&&ka.s==ya;)T[ka.n]=ka,ka=n[++ba];na=null!=ka?ka.s:f.length;C+=e(T,S);Z&&(C+=a(S));Z=!0}for(;Q>=fa&&(Q<I.length||fa<W.length);)if(ka=I[Q],ya=W[fa],ka&&ya&&ka.s<ya.e){if(ka.s>=na)break;ra=ka.s;0<ra-b&&(C+=a(S)+d(f,b,ra),b=ra);for(;null!=ka&&ka.s==ra;)S[ka.n]=ka,ka=I[++Q];C+=a(S)}else if(ya){if(ya.e>na)break;b=ya.e;do delete S[ya.n],ya=W[++fa];
while(null!=ya&&ya.e==b);C+=d(f,ra,b);ra=b;0!=za.length||null!=ka&&ka.s==b||(I.splice(Q,0,{s:b,n:"dummy",v:""}),W.splice(fa,0,{e:ka?ka.s:na,n:"dummy",v:""}))}else break}C+=d(null,null,null,!0);Z&&(b!=na&&(C+=a({dummy:1})+d(f,b,na)),C+=y(!0));return C}function k(f,n){q=!1;var m=null!=f.Text&&f.Text.t?f.Text:null!=f.Value&&f.Value.t?f.Value:null!=f.Lane_0&&f.Lane_0.t?f.Lane_0:null;null==m&&null!=f.State?f.State.t&&(m=f.State):null==m&&null!=f.Note?f.Note.t&&(m=f.Note):null==m&&null!=f.Title?f.Title.t&&
(m=f.Title):f.t&&(m=f);null==m&&null!=f.TextAreas?null!=f.TextAreas.Text&&null!=f.TextAreas.Text.Value&&f.TextAreas.Text.Value.t&&(m=f.TextAreas.Text.Value):null==m&&null!=f.t0&&f.t0.t&&(m=f.t0);if(null!=m){if(null!=m.t){var e=m.t;e=e.replace(/\u2028/g,"\n");m=m.m;try{/ /.test(e)&&(LucidImporter.hasUnknownShapes=!0);for(var a=0;a<m.length;a++)if(0<m[a].s||null!=m[a].e&&m[a].e<e.length||"t"==m[a].n||"ac"==m[a].n||"lk"==m[a].n){q=!0;break}if(q=q||n)return z(e,m,f)}catch(y){console.log(y)}e=e.replace(/</g,
"&lt;");return e=e.replace(/>/g,"&gt;")}if(null!=m.Value&&null!=m.Value.t)return m.Value.t=m.Value.t.replace(/</g,"&lt;"),m.Value.t=m.Value.t.replace(/>/g,"&gt;"),m.Value.t}return""}function t(f){return null!=f.Action?f.Action:f}function u(f){if(null!=f.Text){if(null!=f.Text.m)return f.Text.m}else if(null!=f.TextAreas){if(null!=f.TextAreas.Text&&null!=f.TextAreas.Text.Value&&null!=f.TextAreas.Text.Value.m)return f.TextAreas.Text.Value.m}else{if(null!=f.m)return f.m;if(null!=f.Title){if(null!=f.Title.m)return f.Title.m}else if(null!=
f.State){if(null!=f.State.m)return f.State.m}else if(null!=f.Note&&null!=f.Note.m)return f.Note.m}return null}function p(f,n){f="whiteSpace=wrap;"+(n?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+ab:A(f)+N(f)+L(f)+X(f)+wa(f)+Ka(f)+Va(f)+Fa(f)+Ca(f))+Ga(f)+qa(f)+Nb(mxConstants.STYLE_ALIGN,f.TextAlign,"center");ab="";return f}function h(f,n,m,e,a,y){y=null==y?!1:y;var d="",c=!1,G=!1;if(null!=f)if(y){y=f.split(";");f="";for(var I=0;I<y.length;I++)"fillColor=none"==y[I]?G=!0:"strokeColor=none"==
y[I]?c=!0:""!=y[I]&&(f+=y[I]+";")}else""!=f&&";"!=f.charAt(f.length-1)&&(d=";");d+=(Pc(f,"whiteSpace")?"":"whiteSpace=wrap;")+(a?(Pc(f,"overflow")?"":"overflow=block;blockSpacing=1;")+(Pc(f,"html")?"":"html=1;")+"fontSize=13;"+ab:D(mxConstants.STYLE_FONTSIZE,f,n,m,e)+D(mxConstants.STYLE_FONTFAMILY,f,n,m,e)+D(mxConstants.STYLE_FONTCOLOR,f,n,m,e)+D(mxConstants.STYLE_FONTSTYLE,f,n,m,e)+D(mxConstants.STYLE_ALIGN,f,n,m,e)+D(mxConstants.STYLE_SPACING_LEFT,f,n,m,e)+D(mxConstants.STYLE_SPACING_RIGHT,f,n,
m,e)+D(mxConstants.STYLE_SPACING_TOP,f,n,m,e)+D(mxConstants.STYLE_SPACING_BOTTOM,f,n,m,e))+D(mxConstants.STYLE_ALIGN+"Global",f,n,m,e)+D(mxConstants.STYLE_SPACING,f,n,m,e)+D(mxConstants.STYLE_VERTICAL_ALIGN,f,n,m,e)+D(mxConstants.STYLE_STROKECOLOR,f,n,m,e)+D(mxConstants.STYLE_OPACITY,f,n,m,e)+D(mxConstants.STYLE_ROUNDED,f,n,m,e)+D(mxConstants.STYLE_ROTATION,f,n,m,e)+D(mxConstants.STYLE_FLIPH,f,n,m,e)+D(mxConstants.STYLE_FLIPV,f,n,m,e)+D(mxConstants.STYLE_SHADOW,f,n,m,e)+D(mxConstants.STYLE_FILLCOLOR,
f,n,m,e)+D(mxConstants.STYLE_DASHED,f,n,m,e)+D(mxConstants.STYLE_STROKEWIDTH,f,n,m,e)+D(mxConstants.STYLE_IMAGE,f,n,m,e)+D(mxConstants.STYLE_POINTER_EVENTS,f,n,m,e);G&&!Pc(d,mxConstants.STYLE_FILLCOLOR)&&(d+="fillColor=none;");c&&!Pc(d,mxConstants.STYLE_STROKECOLOR)&&(d+="strokeColor=none;");ab="";return d}function D(f,n,m,e,a){if(!Pc(n,f))switch(f){case mxConstants.STYLE_FONTSIZE:return A(m);case mxConstants.STYLE_FONTFAMILY:return N(m);case mxConstants.STYLE_FONTCOLOR:return L(m);case mxConstants.STYLE_FONTSTYLE:return X(m);
case mxConstants.STYLE_ALIGN:return wa(m);case mxConstants.STYLE_ALIGN+"Global":return Nb(mxConstants.STYLE_ALIGN,m.TextAlign,"center");case mxConstants.STYLE_SPACING_LEFT:return Ka(m);case mxConstants.STYLE_SPACING_RIGHT:return Va(m);case mxConstants.STYLE_SPACING_TOP:return Fa(m);case mxConstants.STYLE_SPACING_BOTTOM:return Ca(m);case mxConstants.STYLE_SPACING:return Ga(m);case mxConstants.STYLE_VERTICAL_ALIGN:return qa(m);case mxConstants.STYLE_STROKECOLOR:return U(m,e);case mxConstants.STYLE_OPACITY:return Xa(m,
e,a);case mxConstants.STYLE_ROUNDED:return f=!a.edge&&!a.style.includes("rounded")&&null!=m.Rounding&&0<m.Rounding?"rounded=1;absoluteArcSize=1;arcSize="+x(.75*m.Rounding)+";":"",f;case mxConstants.STYLE_ROTATION:return mc(m,e,a);case mxConstants.STYLE_FLIPH:return f=m.FlipX?"flipH=1;":"",f;case mxConstants.STYLE_FLIPV:return f=m.FlipY?"flipV=1;":"",f;case mxConstants.STYLE_SHADOW:return Eb(m);case mxConstants.STYLE_FILLCOLOR:return ta(m,e);case mxConstants.STYLE_DASHED:return be(m);case mxConstants.STYLE_STROKEWIDTH:return Ec(m);
case mxConstants.STYLE_IMAGE:return Ae(m,e);case mxConstants.STYLE_POINTER_EVENTS:return m.Magnetize?"container=1;pointerEvents=0;collapsible=0;recursiveResize=0;":""}return""}function A(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var m=f[n];if("s"==m.n&&m.v)return"fontSize="+x(.75*m.v)+";";n++}return"fontSize=13;"}function N(f){var n=u(f);if(null!=n)for(var m=0;m<n.length;m++)if("f"==n[m].n&&n[m].v){var e=n[m].v;break}!e&&f.Font&&(e=f.Font);w(e);return ab}function E(f){return"ext"==f.tp?f.url:
"ml"==f.tp?"mailto:"+f.eml:"pg"==f.tp?"data:page/id,"+(LucidImporter.pageIdsMap[f.id]||0):"c"==f.tp?"data:confluence/id,"+f.ccid:null}function L(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var m=f[n];if("c"==m.n&&null!=m.v)return f=gc(m.v).substring(0,7),"#000000"==f&&(f="default"),mxConstants.STYLE_FONTCOLOR+"="+f+";";n++}return""}function X(f){return Oa(u(f))}function Oa(f){if(null!=f){var n=0,m=!1;if(null!=f)for(var e=0;!m&&e<f.length;){var a=f[e];"b"==a.n?null!=a.v&&a.v&&(m=!0,n+=1):"fc"==a.n&&
"Bold"==a.v&&(m=!0,n+=1);e++}m=!1;if(null!=f)for(e=0;!m&&e<f.length;)a=f[e],"i"==a.n&&null!=a.v&&a.v&&(m=!0,n+=2),e++;m=!1;if(null!=f)for(e=0;!m&&e<f.length;)a=f[e],"u"==a.n&&null!=a.v&&a.v&&(m=!0,n+=4),e++;if(0<n)return"fontStyle="+n+";"}return""}function wa(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var m=f[n];if("a"==m.n&&null!=m.v)return"align="+m.v+";";n++}return""}function Ka(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var m=f[n];if(null!=m.v&&"il"==m.n)return"spacingLeft="+x(.75*m.v)+
";";n++}return""}function Va(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var m=f[n];if("ir"==m.n&&null!=m.v)return"spacingRight="+x(.75*m.v)+";";n++}return""}function Fa(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var m=f[n];if("mt"==m.n&&null!=m.v)return"spacingTop="+x(.75*m.v)+";";n++}return""}function Ca(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var m=f[n];if("mb"==m.n&&null!=m.v)return"spacingBottom="+x(.75*m.v)+";";n++}return""}function Ga(f){return"number"===typeof f.InsetMargin?"spacing="+
Math.max(0,x(.75*f.InsetMargin))+";":""}function qa(f){return null!=f.Text_VAlign&&"string"===typeof f.Text_VAlign?"verticalAlign="+f.Text_VAlign+";":null!=f.Title_VAlign&&"string"===typeof f.Title_VAlign?"verticalAlign="+f.Title_VAlign+";":Nb(mxConstants.STYLE_VERTICAL_ALIGN,f.TextVAlign,"middle")}function U(f,n){return 0==f.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":Nb(mxConstants.STYLE_STROKECOLOR,Pa(f.LineColor),"#000000")}function Gd(f){return null!=f?mxConstants.STYLE_FILLCOLOR+"="+Pa(f)+
";":""}function Hd(f){return null!=f?"swimlaneFillColor="+Pa(f)+";":""}function Xa(f,n,m){n="";if("string"===typeof f.LineColor&&(f.LineColor=gc(f.LineColor),7<f.LineColor.length)){var e="0x"+f.LineColor.substring(f.LineColor.length-2,f.LineColor.length);m.style.includes("strokeOpacity")||(n+="strokeOpacity="+Math.round(parseInt(e)/2.55)+";")}"string"===typeof f.FillColor&&(f.FillColor=gc(f.FillColor),7<f.FillColor.length&&(f="0x"+f.FillColor.substring(f.FillColor.length-2,f.FillColor.length),m.style.includes("fillOpacity")||
(n+="fillOpacity="+Math.round(parseInt(f)/2.55)+";")));return n}function mc(f,n,m){var e="";if(null!=f.Rotation){f=mxUtils.toDegree(parseFloat(f.Rotation));var a=!0;0!=f&&n.Class&&("UMLSwimLaneBlockV2"==n.Class||(0<=n.Class.indexOf("Rotated")||-90==f||270==f)&&(0<=n.Class.indexOf("Pool")||0<=n.Class.indexOf("SwimLane")))?(f+=90,m.geometry.rotate90(),m.geometry.isRotated=!0,a=!1):0<=mxUtils.indexOf(uf,n.Class)?(f-=90,m.geometry.rotate90()):0<=mxUtils.indexOf(vf,n.Class)&&(f+=180);0!=f&&(e+="rotation="+
f+";");a||(e+="horizontal=0;")}return e}function Eb(f){return null!=f.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function gc(f){if(f){if("object"===typeof f)try{f=f.cs[0].c}catch(n){console.log(n),f="#ffffff"}"rgb"==f.substring(0,3)?f="#"+f.match(/\d+/g).map(function(n){n=parseInt(n).toString(16);return(1==n.length?"0":"")+n}).join(""):"#"!=f.charAt(0)&&(f="#"+f)}return f}function Pa(f){return(f=gc(f))?f.substring(0,7):null}function hc(f,n){return(f=gc(f))&&7<f.length?n+"="+Math.round(parseInt("0x"+
f.substr(7))/2.55)+";":""}function ta(f,n){if(null!=f.FillColor)if("object"===typeof f.FillColor){if(null!=f.FillColor.cs&&1<f.FillColor.cs.length)return Nb(mxConstants.STYLE_FILLCOLOR,Pa(f.FillColor.cs[0].c))+Nb(mxConstants.STYLE_GRADIENTCOLOR,Pa(f.FillColor.cs[1].c))}else return"string"===typeof f.FillColor?Nb(mxConstants.STYLE_FILLCOLOR,Pa(f.FillColor),"#FFFFFF"):Nb(mxConstants.STYLE_FILLCOLOR,"none");return""}function be(f){return"dotted"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 4;":"dashdot"==
f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5;":"dashdotdot"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5 1 5;":"dotdotdot"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 2;":"longdash"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=16 6;":"dashlongdash"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 6 16 6;":"dashed24"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=3 8;":"dashed32"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=6 5;":"dashed44"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=8 8;":
null!=f.StrokeStyle&&"dashed"==f.StrokeStyle.substring(0,6)?"dashed=1;fixDash=1;":""}function Ec(f){return null!=f.LineWidth?Nb(mxConstants.STYLE_STROKEWIDTH,x(.75*parseFloat(f.LineWidth)),"1"):""}function Ae(f,n,m){var e="";f.FillColor&&f.FillColor.url?(m=f.FillColor.url,"fill"==f.FillColor.pos&&(e="imageAspect=0;")):"ImageSearchBlock2"==n.Class?m=f.URL:"UserImage2Block"==n.Class&&null!=f.ImageFillProps&&null!=f.ImageFillProps.url&&(m=f.ImageFillProps.url);return null!=m?"image="+r(m)+";"+e:""}function Be(f,
n,m){null!=n.Link&&0<n.Link.length&&m.setAttributeForCell(f,"link",E(n.Link[0]));null!=n.NoteHint&&n.NoteHint.t&&m.setAttributeForCell(f,"Notes",n.NoteHint.t);var e=[],a=m.convertValueToString(f),y=!1;if(null!=a){for(var d=0;match=wf.exec(a);){var c=match[0];y=!0;if(2<c.length){var G=c.substring(2,c.length-2);"documentName"==G?G="filename":"pageName"==G?G="page":"totalPages"==G?G="pagecount":"page"==G?G="pagenumber":"date:"==G.substring(0,5)?G="date{"+G.substring(5).replace(/MMMM/g,"mmmm").replace(/MM/g,
"mm").replace(/YYYY/g,"yyyy")+"}":"lastModifiedTime"==G.substring(0,16)?G=G.replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy"):"i18nDate:"==G.substring(0,9)&&(G="date{"+G.substring(9).replace(/i18nShort/g,"shortDate").replace(/i18nMediumWithTime/g,"mmm d, yyyy hh:MM TT")+"}");G="%"+G+"%";e.push(a.substring(d,match.index)+(null!=G?G:c));d=match.index+c.length}}y&&(e.push(a.substring(d)),m.setAttributeForCell(f,"label",e.join("")),m.setAttributeForCell(f,"placeholders","1"))}for(var I in n)if(n.hasOwnProperty(I)&&
I.toString().startsWith("ShapeData_"))try{var C=n[I],ba=mxUtils.trim(C.Label).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,"");e=f;a=ba;var Q=C.Value;y=m;d=a;for(c=0;null!=y.getAttributeForCell(e,d);)c++,d=a+"_"+c;y.setAttributeForCell(e,d,null!=Q?Q:"")}catch(S){window.console&&console.log("Ignored "+I+":",S)}}function Id(f,n,m,e,a,y){var d=t(n);if(null!=d){var c=Jd[d.Class];null!=c?(f.style+=c,";"!=f.style.charAt(f.style.length-1)&&(f.style+=";")):f.edge||(console.log("No mapping found for: "+
d.Class),LucidImporter.hasUnknownShapes=!0);c=null!=d.Properties?d.Properties:d;if(null!=c&&(f.value=y?"":k(c),f.style+=h(f.style,c,d,f,q,!0),f.style.includes("strokeColor")||(f.style+=U(c,d)),Be(f,c,m),c.Title&&c.Title.t&&c.Text&&c.Text.t&&"ExtShape"!=d.Class.substr(0,8)&&(m=f.geometry,m=new mxCell(k(c.Title),new mxGeometry(0,m.height,m.width,10),"strokeColor=none;fillColor=none;"),m.vertex=!0,f.insert(m),m.style+=p(c.Title,q)),f.edge)){f.style=null!=c.Rounding&&"diagonal"!=c.Shape?f.style+("rounded=1;arcSize="+
c.Rounding+";"):f.style+"rounded=0;";if(m="curve"==c.Shape)f.style+="curved=1;";else if("diagonal"!=c.Shape)if(null!=c.ElbowPoints&&0<c.ElbowPoints.length)for(f.geometry.points=[],d=0;d<c.ElbowPoints.length;d++)f.geometry.points.push(new mxPoint(Math.round(.75*c.ElbowPoints[d].x+nc),Math.round(.75*c.ElbowPoints[d].y+oc)));else if("elbow"==c.Shape||null!=c.Endpoint1.Block&&null!=c.Endpoint2.Block)f.style+="edgeStyle=orthogonalEdgeStyle;";if(c.LineJumps||LucidImporter.globalProps.LineJumps)f.style+=
"jumpStyle=arc;";null!=c.Endpoint1.Style&&(y=Ce[c.Endpoint1.Style],null!=y?(y=y.replace(/xyz/g,"start"),f.style+="startArrow="+y+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+c.Endpoint1.Style)));null!=c.Endpoint2.Style&&(y=Ce[c.Endpoint2.Style],null!=y?(y=y.replace(/xyz/g,"end"),f.style+="endArrow="+y+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+c.Endpoint2.Style)));y=null!=c.ElbowControlPoints&&0<
c.ElbowControlPoints.length?c.ElbowControlPoints:c.Joints;if(m&&null!=c.BezierJoints&&0<c.BezierJoints.length){y=[];m=c.BezierJoints[c.BezierJoints.length-1];m.p.x=c.Endpoint2.x;m.p.y=c.Endpoint2.y;for(d=0;d<c.BezierJoints.length;d++)m=c.BezierJoints[d],y.push({x:m.p.x+m.nt.x*m.lcps*.75,y:m.p.y+m.nt.y*m.lcps*.75}),y.push({x:m.p.x+m.nt.x*m.rcps*.75,y:m.p.y+m.nt.y*m.rcps*.75});y=y.slice(1,y.length-1)}else m&&(y=[],y.push({x:c.Endpoint1.x+(.1>c.Endpoint1.LinkX?-250:.9<c.Endpoint1.LinkX?250:0),y:c.Endpoint1.y+
(.1>c.Endpoint1.LinkY?-250:.9<c.Endpoint1.LinkY?250:0)}),y.push({x:c.Endpoint2.x+(.1>c.Endpoint2.LinkX?-250:.9<c.Endpoint2.LinkX?250:0),y:c.Endpoint2.y+(.1>c.Endpoint2.LinkY?-250:.9<c.Endpoint2.LinkY?250:0)}));if(null!=y)for(f.geometry.points=[],d=0;d<y.length;d++)m=y[d].p?y[d].p:y[d],f.geometry.points.push(new mxPoint(Math.round(.75*m.x+nc),Math.round(.75*m.y+oc)));m=!1;if((null==f.geometry.points||0==f.geometry.points.length)&&null!=c.Endpoint1.Block&&c.Endpoint1.Block==c.Endpoint2.Block&&null!=
e&&null!=a){m=new mxPoint(Math.round(e.geometry.x+e.geometry.width*c.Endpoint1.LinkX),Math.round(e.geometry.y+e.geometry.height*c.Endpoint1.LinkY));y=new mxPoint(Math.round(a.geometry.x+a.geometry.width*c.Endpoint2.LinkX),Math.round(a.geometry.y+a.geometry.height*c.Endpoint2.LinkY));nc=m.x==y.x?Math.abs(m.x-e.geometry.x)<e.geometry.width/2?-20:20:0;oc=m.y==y.y?Math.abs(m.y-e.geometry.y)<e.geometry.height/2?-20:20:0;var G=new mxPoint(m.x+nc,m.y+oc),I=new mxPoint(y.x+nc,y.y+oc);G.generated=!0;I.generated=
!0;f.geometry.points=[G,I];m=m.x==y.x}null!=e&&e.geometry.isRotated||(G=De(f,c.Endpoint1,!0,m,null,e));null!=e&&null!=G&&(null==e.stylePoints&&(e.stylePoints=[]),e.stylePoints.push(G),LucidImporter.stylePointsSet.add(e));null!=a&&a.geometry.isRotated||(I=De(f,c.Endpoint2,!1,m,null,a));null!=a&&null!=I&&(null==a.stylePoints&&(a.stylePoints=[]),a.stylePoints.push(I),LucidImporter.stylePointsSet.add(a))}}null!=n.id&&(f.style+=";lucidId="+n.id+";",LucidImporter.lucidchartObjects[n.id]=n)}function Ee(f,
n){var m=t(f).Properties,e=m.BoundingBox;null==f.Class||"AWS"!==f.Class.substring(0,3)&&"Amazon"!==f.Class.substring(0,6)||f.Class.includes("AWS19")||(e.h-=20);v=new mxCell("",new mxGeometry(Math.round(.75*e.x+nc),Math.round(.75*e.y+oc),Math.round(.75*e.w),Math.round(.75*e.h)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;Id(v,f,n);v.zOrder=m.ZOrder;Fe(v,m);m.Hidden&&(v.visible=!1);return v}function xf(f,n,m,e){var a=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");
a.geometry.relative=!0;a.edge=!0;Id(a,f,n,m,e,!0);var y=t(f).Properties,d=null!=y?y.TextAreas:f.TextAreas;if(null!=d){for(var c=0;void 0!==d["t"+c];){var G=d["t"+c];null!=G&&(a=Kd(G,a,f,m,e,n));c++}for(c=0;void 0!==d["m"+c]||1>c;)G=d["m"+c],null!=G&&(a=Kd(G,a,f,m,e,n)),c++;null!=d.Text&&(a=Kd(d.Text,a,f,m,e,n));d=null!=y?y.TextAreas:f.TextAreas;null!=d.Message&&(a=Kd(d.Message,a,f,m,e,n))}f.Hidden&&(a.visible=!1);return a}function Kd(f,n,m,e,a,y){var d=2*(parseFloat(f.Location)-.5);isNaN(d)&&null!=
f.Text&&null!=f.Text.Location&&(d=2*(parseFloat(f.Text.Location)-.5));y=k(f);var c=mxCell;d=new mxGeometry(isNaN(d)?0:d,0,0,0);var G=ce;var I=m;if(q)I=ab;else{var C="13",ba="";if(null!=f&&null!=f.Value&&null!=f.Value.m){ba=Oa(f.Value.m);for(var Q=0;Q<f.Value.m.length;Q++)if("s"==f.Value.m[Q].n&&f.Value.m[Q].v)C=x(.75*parseFloat(f.Value.m[Q].v));else if("c"==f.Value.m[Q].n){var S=gc(f.Value.m[Q].v);null!=S&&(S=S.substring(0,7));"#000000"==S&&(S="default");ba+="fontColor="+S+";"}ba+=N(I);ab=""}I=ba+
";fontSize="+C+";"}c=new c(y,d,G+I);c.geometry.relative=!0;c.vertex=!0;if(f.Side)try{m.Action&&m.Action.Properties&&(m=m.Action.Properties);if(null!=e&&null!=a){var W=e.geometry,fa=a.geometry;var T=Math.abs(W.x+W.width*m.Endpoint1.LinkX-(fa.x+fa.width*m.Endpoint2.LinkX));var ha=Math.abs(W.y+W.height*m.Endpoint1.LinkY-(fa.y+fa.height*m.Endpoint2.LinkY))}else T=Math.abs(m.Endpoint1.x-m.Endpoint2.x),ha=Math.abs(m.Endpoint1.y-m.Endpoint2.y);var za=mxUtils.getSizeForString(y.replace(/\n/g,"<br>"));c.geometry.offset=
0==T||T<ha?new mxPoint(Math.sign(m.Endpoint1.y-m.Endpoint2.y)*f.Side*(za.width/2+5+T),0):new mxPoint(0,Math.sign(m.Endpoint2.x-m.Endpoint1.x)*f.Side*(za.height/2+5+ha))}catch(ia){console.log(ia)}n.insert(c);return n}function Nb(f,n,m,e){null!=n&&null!=e&&(n=e(n));return null!=n&&n!=m?f+"="+n+";":""}function De(f,n,m,e,a,y){if(null!=n&&null!=n.LinkX&&null!=n.LinkY&&(n.LinkX=Math.round(1E3*n.LinkX)/1E3,n.LinkY=Math.round(1E3*n.LinkY)/1E3,null!=y&&y.style&&-1<y.style.indexOf("flipH=1")&&(n.LinkX=1-n.LinkX),
null!=y&&y.style&&-1<y.style.indexOf("flipV=1")&&(n.LinkY=1-n.LinkY),f.style+=(e?"":(m?"exitX":"entryX")+"="+n.LinkX+";")+(a?"":(m?"exitY":"entryY")+"="+n.LinkY+";")+(m?"exitPerimeter":"entryPerimeter")+"=0;",n.Inside))return"["+n.LinkX+","+n.LinkY+",0]"}function Ge(f,n,m,e,a){try{var y=function(T,ha){if(null!=T)if(Array.isArray(T))for(var za=0;za<T.length;za++)y(T[za].p?T[za].p:T[za],ha);else ha=ha?.75:1,c=Math.min(c,T.x*ha),G=Math.min(G,T.y*ha),I=Math.max(I,(T.x+(T.width?T.width:0))*ha),C=Math.max(C,
(T.y+(T.height?T.height:0))*ha)};null!=f.Action&&null!=f.Action.Properties&&(f=f.Action.Properties);var d=new mxCell("",new mxGeometry,"group;dropTarget=0;pointerEvents=0;");d.vertex=!0;d.zOrder=f.ZOrder;var c=Infinity,G=Infinity,I=-Infinity,C=-Infinity,ba=f.Members;a=[];for(var Q in ba){var S=n[Q];null!=S?a.push(S):null!=e[Q]&&(a.push(e[Q]),m[Q]=d)}a.sort(function(T,ha){T=T.zOrder||T.ZOrder;ha=ha.zOrder||ha.ZOrder;return null!=T&&null!=ha?T>ha?1:T<ha?-1:0:0});for(m=n=0;m<a.length;m++)if(S=a[m],S.vertex)y(S.geometry),
S.parent=d,d.insert(S,n++);else{var W=null!=S.Action&&S.Action.Properties?S.Action.Properties:S;y(W.Endpoint1,!0);y(W.Endpoint2,!0);y(W.ElbowPoints,!0);y(W.ElbowControlPoints,!0);y(W.BezierJoints,!0);y(W.Joints,!0)}d.geometry.x=c;d.geometry.y=G;d.geometry.width=I-c;d.geometry.height=C-G;if(null!=d.children)for(m=0;m<d.children.length;m++){var fa=d.children[m].geometry;fa.x-=c;fa.y-=G}f.IsState?(d.lucidLayerInfo={name:f.Name,visible:!f.Hidden,locked:f.Restrictions.b&&f.Restrictions.p&&f.Restrictions.c},
d.style+="container=1;collapsible=0;recursiveResize=0;"):f.Hidden&&(d.visible=!1);return d}catch(T){console.log(T)}}function yf(f,n,m){LucidImporter.hasMath=!1;LucidImporter.stylePointsSet=new Set;f.getModel().beginUpdate();try{var e=function(ia,Z){function ua(ya,R,sa){null==ya||ya.generated||(ya.x-=R,ya.y-=sa)}var pa=null!=Z.Endpoint1.Block?y[Z.Endpoint1.Block]:null,ra=null!=Z.Endpoint2.Block?y[Z.Endpoint2.Block]:null,b=xf(ia,f,pa,ra);if(Z.Endpoint1&&Z.Endpoint1.Line||Z.Endpoint2&&Z.Endpoint2.Line)console.log("Edge to Edge case"),
LucidImporter.hasUnknownShapes=!0;null==pa&&null!=Z.Endpoint1&&b.geometry.setTerminalPoint(new mxPoint(Math.round(.75*Z.Endpoint1.x),Math.round(.75*Z.Endpoint1.y)),!0);null==ra&&null!=Z.Endpoint2&&b.geometry.setTerminalPoint(new mxPoint(Math.round(.75*Z.Endpoint2.x),Math.round(.75*Z.Endpoint2.y)),!1);ia=d[ia.id];if(null!=ia){for(var na=b.geometry,Na=Z=0,ka=ia;null!=ka&&null!=ka.geometry;)Z+=ka.geometry.x,Na+=ka.geometry.y,ka=ka.parent;ua(na.sourcePoint,Z,Na);ua(na.targetPoint,Z,Na);ua(na.offset,Z,
Na);na=na.points;if(null!=na)for(ka=0;ka<na.length;ka++)ua(na[ka],Z,Na)}a.push(f.addCell(b,ia,null,pa,ra))},a=[],y={},d={},c={},G=[];null!=n.Lines&&(c=n.Lines);if(null!=n.Blocks){Object.assign(c,n.Blocks);for(var I in n.Blocks){var C=n.Blocks[I];C.id=I;var ba=!1;null!=Jd[C.Class]&&"mxCompositeShape"==Jd[C.Class]&&(y[C.id]=He(C,a,f),G.push(C),ba=!0);ba||(y[C.id]=Ee(C,f),G.push(C))}if(null!=n.Generators)for(I in n.Generators)"OrgChart2018"==n.Generators[I].ClassName?(LucidImporter.hasUnknownShapes=
!0,Ie(I,n.Generators[I],n.Data,f,y)):LucidImporter.hasUnknownShapes=!0}else{for(var Q=0;Q<n.Objects.length;Q++)C=n.Objects[Q],c[C.id]=C,null!=C.Action&&"mxCompositeShape"==Jd[C.Action.Class]?y[C.id]=He(C,a,f):C.IsBlock&&null!=C.Action&&null!=C.Action.Properties?y[C.id]=Ee(C,f):C.IsGenerator&&C.GeneratorData&&C.GeneratorData.p&&("OrgChart2018"==C.GeneratorData.p.ClassName?(LucidImporter.hasUnknownShapes=!0,Ie(C.GeneratorData.id,C.GeneratorData.p,C.GeneratorData.gs,f,y)):LucidImporter.hasUnknownShapes=
!0),G.push(C);for(Q=0;Q<n.Objects.length;Q++)if(C=n.Objects[Q],C.IsGroup){var S=Ge(C,y,d,c,f);S&&(y[C.id]=S,G.push(C))}}if(null!=n.Groups)try{for(I in n.Groups)if(C=n.Groups[I],C.id=I,S=Ge(C,y,d,c,f))y[C.id]=S,G.push(C)}catch(ia){console.log(ia)}if(null!=n.Lines)for(I in n.Lines)C=n.Lines[I],C.id=I,G.push(C);G.sort(function(ia,Z){ia=t(ia);Z=t(Z);ia=null!=ia.Properties?ia.Properties.ZOrder:ia.ZOrder;Z=null!=Z.Properties?Z.Properties.ZOrder:Z.ZOrder;return null!=ia&&null!=Z?ia>Z?1:ia<Z?-1:0:0});for(Q=
0;Q<G.length;Q++){C=G[Q];var W=y[C.id];if(null!=W){if(null==W.parent)if(W.lucidLayerInfo){var fa=new mxCell;f.addCell(fa,f.model.root);fa.setVisible(W.lucidLayerInfo.visible);W.lucidLayerInfo.locked&&fa.setStyle("locked=1;");fa.setValue(W.lucidLayerInfo.name);delete W.lucidLayerInfo;f.addCell(W,fa)}else a.push(f.addCell(W))}else C.IsLine&&null!=C.Action&&null!=C.Action.Properties?e(C,C.Action.Properties):null!=C.StrokeStyle&&e(C,C)}LucidImporter.stylePointsSet.forEach(function(ia){ia.style="points=["+
ia.stylePoints.join(",")+"];"+ia.style;delete ia.stylePoints});try{var T=f.getModel().cells;f.view.validate();for(var ha in T){var za=T[ha];null!=za&&(zf(f,za),Af(f,za),Bf(f,za),delete za.zOrder)}}catch(ia){console.log(ia)}m||f.setSelectionCells(a)}finally{f.getModel().endUpdate()}}function Bf(f,n){if(f.model.contains(n)&&n.edge){var m=f.view.getState(n);if(null!=m&&null!=n.children){var e=mxRectangle.fromRectangle(m.paintBounds);e.grow(5);for(var a=0;a<n.children.length;a++){var y=f.view.getState(n.children[a]);
null==y||mxUtils.contains(e,y.paintBounds.x,y.paintBounds.y)||(y.cell.geometry.offset=new mxPoint(0,0))}}f=LucidImporter.lucidchartObjects;a:{try{var d=n.style.match(/;lucidId=([^;]*)/);if(null!=d){var c=d[1];break a}}catch(G){}c=null}c=f[c];c=null!=c&&null!=c.Action?c.Action.Properties:null;null!=c&&"elbow"==c.Shape&&null==c.ElbowControlPoints&&null==c.ElbowPoints&&null!=m.style.exitX&&null!=m.style.exitY&&null!=m.style.entryX&&null!=m.style.entryY&&(n.style=mxUtils.setStyle(n.style,"exitX",Math.round(20*
m.style.exitX)/20),n.style=mxUtils.setStyle(n.style,"exitY",Math.round(20*m.style.exitY)/20),n.style=mxUtils.setStyle(n.style,"entryX",Math.round(20*m.style.entryX)/20),n.style=mxUtils.setStyle(n.style,"entryY",Math.round(20*m.style.entryY)/20))}}function Af(f,n){if(f.model.contains(n)&&null!=n.style&&""!=n.style){f=n.style.split(";");for(var m={},e=[],a=f.length-1;0<=a;a--){var y=f[a].split("=");if(2!=y.length||null==m[y[0]])m[y[0]]=y[1],""!=f[a]&&e.push(f[a])}n.style=e.reverse().join(";")+";"}}
function zf(f,n){if(f.model.contains(n)&&null!=n.children&&null!=n.geometry&&n.vertex&&"group;dropTarget=0;pointerEvents=0;"==n.style){for(var m=null,e=0;e<n.children.length;e++)if(n.children[e].vertex){var a=n.children[e].geometry;if(null!=a&&0==a.x&&0==a.y&&a.width==n.geometry.width&&a.height==n.geometry.height){if(null!=m)return;m=n.children[e]}}n=m;if(null!=n&&(m=n.parent,""==f.convertValueToString(m))){if(null!=n.edges)for(e=0;e<n.edges.length;e++)n.edges[e].source==n&&n.edges[e].setTerminal(n.parent,
!0),n.edges[e].target==n&&n.edges[e].setTerminal(n.parent,!1);if(null!=n.children&&0<n.children.length)for(a=n.children.slice(),e=0;e<a.length;e++)m.insert(a[e]);f.cellLabelChanged(m,f.convertValueToString(n));m.style=mxUtils.setStyle(mxUtils.setStyle(n.style,"container","1"),"collapsible","0");n.removeFromParent()}}}function Cf(){var f=new Graph;f.setExtendParents(!1);f.setExtendParentsOnAdd(!1);f.setConstrainChildren(!1);f.setHtmlLabels(!0);f.getModel().maintainEdgeParent=!1;return f}function Ld(f,
n,m,e,a,y,d,c){this.nurbsValues=[1,3,0,0,100*(f+m),100-100*(1-(n+e)),0,1,100*(a+d),100-100*(1-(y+c)),0,1]}function Je(f,n){try{for(var m=[],e=n.BoundingBox.w,a=n.BoundingBox.h,y=0;y<n.Shapes.length;y++){var d=n.Shapes[y],c=d.FillColor,G=d.StrokeColor,I=d.LineWidth,C=d.Points,ba=d.Lines,Q=['<shape strokewidth="inherit"><foreground>'];Q.push("<path>");for(var S=null,W=0;W<ba.length;W++){var fa=ba[W];if(S!=fa.p1){var T=C[fa.p1].x,ha=C[fa.p1].y;T=100*T/e;ha=100*ha/a;T=Math.round(100*T)/100;ha=Math.round(100*
ha)/100;Q.push('<move x="'+T+'" y="'+ha+'"/>')}if(null!=fa.n1){var za=C[fa.p2].x,ia=C[fa.p2].y,Z=e,ua=a,pa=new Ld(C[fa.p1].x/e,C[fa.p1].y/a,fa.n1.x/e,fa.n1.y/a,C[fa.p2].x/e,C[fa.p2].y/a,fa.n2.x/e,fa.n2.y/a);if(2<=pa.getSize()){pa.getX(0);pa.getY(0);pa.getX(1);pa.getY(1);za=Math.round(100*za/Z*100)/100;ia=Math.round(100*ia/ua*100)/100;Z=[];ua=[];for(var ra=[],b=pa.getSize(),na=0;na<b-1;na+=3)Z.push(new mxPoint(pa.getX(na),pa.getY(na))),ua.push(new mxPoint(pa.getX(na+1),pa.getY(na+1))),na<b-2?ra.push(new mxPoint(pa.getX(na+
2),pa.getY(na+2))):ra.push(new mxPoint(za,ia));var Na="";for(na=0;na<Z.length;na++)Na+='<curve x1="'+Z[na].x+'" y1="'+Z[na].y+'" x2="'+ua[na].x+'" y2="'+ua[na].y+'" x3="'+ra[na].x+'" y3="'+ra[na].y+'"/>';var ka=Na}else ka=void 0;Q.push(ka)}else T=C[fa.p2].x,ha=C[fa.p2].y,T=100*T/e,ha=100*ha/a,T=Math.round(100*T)/100,ha=Math.round(100*ha)/100,Q.push('<line x="'+T+'" y="'+ha+'"/>');S=fa.p2}Q.push("</path>");Q.push("<fillstroke/>");Q.push("</foreground></shape>");m.push({shapeStencil:"stencil("+Graph.compress(Q.join(""))+
")",FillColor:c,LineColor:G,LineWidth:I})}LucidImporter.stencilsMap[f]={text:n.Text,w:e,h:a,x:n.BoundingBox.x,y:n.BoundingBox.y,stencils:m}}catch(ya){console.log("Stencil parsing error:",ya)}}function ic(f,n,m,e,a,y,d,c){f=new mxCell("",new mxGeometry(f,n,0,0),"strokeColor=none;fillColor=none;");f.vertex=!0;d.insert(f);y=[f];m=m.clone();c.insertEdge(m,!1);f.insertEdge(m,!0);y.push(m);e.push(a.addCell(m,null,null,null,null))}function Ta(f,n,m,e,a,y,d,c,G){f=new mxCell("",new mxGeometry(f,n,0,0),"strokeColor=none;fillColor=none;");
f.vertex=!0;G.insert(f);m=new mxCell("",new mxGeometry(m,e,0,0),"strokeColor=none;fillColor=none;");m.vertex=!0;G.insert(m);c=[m];a=a.clone();f.insertEdge(a,!0);m.insertEdge(a,!1);c.push(a);y.push(d.addCell(a,null,null,null,null))}function Aa(f,n,m,e,a,y){e.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";e.style+=h(e.style,a,y,e);n=k(a);e.vertex=!0;f=new mxCell(n,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+mxConstants.STYLE_SHAPE+
"=mxgraph.gcp2."+f+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;");f.style+=h(f.style,a,y,f,q);f.geometry.relative=!0;f.geometry.offset=new mxPoint(5,-12);f.vertex=!0;e.insert(f)}function Ha(f,n,m,e,a,y,d,c){a="transparent"!=f?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";y.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";y.style+=h(y.style,
d,c,y);y.value=k(d);y.vertex=!0;f=new mxCell(null,new mxGeometry(.5,0,.7*e*n,.7*e*m),a+f+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;");f.geometry.relative=!0;f.geometry.offset=new mxPoint(-n*e*.35,10+(1-m)*e*.35);f.vertex=!0;f.style+=h(f.style,d,c,f,q);y.insert(f)}function Pc(f,n){return null!=f&&null!=n&&(n==mxConstants.STYLE_ALIGN+"Global"&&(n=mxConstants.STYLE_ALIGN),f.includes(";"+n+"=")||f.substring(0,n.length+1)==n+"=")?!0:!1}function Md(f,n){function m(e){e=Math.round(parseInt("0x"+
e)*n).toString(16);return 1==e.length?"0"+e:e}return"#"+m(f.substr(1,2))+m(f.substr(3,2))+m(f.substr(5,2))}function He(f,n,m){var e=t(f),a=e.Properties,y=a.BoundingBox,d=Math.round(.75*y.w),c=Math.round(.75*y.h),G=Math.round(.75*y.x+nc),I=Math.round(.75*y.y+oc);null==f.Class||"GCPInputDatabase"!==f.Class&&"GCPInputRecord"!==f.Class&&"GCPInputPayment"!==f.Class&&"GCPInputGateway"!==f.Class&&"GCPInputLocalCompute"!==f.Class&&"GCPInputBeacon"!==f.Class&&"GCPInputStorage"!==f.Class&&"GCPInputList"!==
f.Class&&"GCPInputStream"!==f.Class&&"GCPInputMobileDevices"!==f.Class&&"GCPInputCircuitBoard"!==f.Class&&"GCPInputLive"!==f.Class&&"GCPInputUsers"!==f.Class&&"GCPInputLaptop"!==f.Class&&"GCPInputApplication"!==f.Class&&"GCPInputLightbulb"!==f.Class&&"GCPInputGame"!==f.Class&&"GCPInputDesktop"!==f.Class&&"GCPInputDesktopAndMobile"!==f.Class&&"GCPInputWebcam"!==f.Class&&"GCPInputSpeaker"!==f.Class&&"GCPInputRetail"!==f.Class&&"GCPInputReport"!==f.Class&&"GCPInputPhone"!==f.Class&&"GCPInputBlank"!==
f.Class||(c+=20);v=new mxCell("",new mxGeometry(G,I,d,c),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;v.zOrder=a.ZOrder;var C=null!=f.Class?f.Class:null!=e?e.Class:null;switch(C){case "BraceNoteBlock":case "UI2BraceNoteBlock":var ba=!1;null!=a.BraceDirection&&"Right"==a.BraceDirection&&(ba=!0);var Q=null,S=null,W=k(a),fa=a.Rotation?mxUtils.getSizeForString(W.replace(/\n/g,"<br>"),null,null,Math.abs(d-.125*c)):{width:0,height:0};ba?(Q=new mxCell("",new mxGeometry(d-.125*c,0,
.125*c,c),"shape=curlyBracket;rounded=1;"),S=new mxCell("",new mxGeometry(fa.height,-2*fa.width,d-.125*c,c),"strokeColor=none;fillColor=none;")):(Q=new mxCell("",new mxGeometry(0,0,.125*c,c),"shape=curlyBracket;rounded=1;flipH=1;"),S=new mxCell("",new mxGeometry(.125*c-fa.height,fa.width,d-.125*c,c),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);Q.vertex=!0;v.insert(Q);Q.style+=h(Q.style,a,e,Q);S.vertex=!0;S.value=W;v.insert(S);S.style+=h(S.style,
a,e,S,q);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var T="MainText",ha=null,za="HeaderFill_",ia="BodyFill_",Z=25,ua=25,pa=0;if(null!=a.Lanes)pa=a.Lanes.length;else if(null!=a.PrimaryLane){var ra=function(Ua){if(Ua)32>Ua?Ua=32:208<Ua&&(Ua=208);else return 0;return.75*Ua};pa=a.PrimaryLane.length;for(var b=c=d=0;b<pa;b++)d+=
a.PrimaryLane[b];for(b=0;b<a.SecondaryLane.length;b++)c+=a.SecondaryLane[b];Z=ra(a.PrimaryPoolTitleHeight);ua=ra(a.PrimaryLaneTitleHeight);d*=.75;c=.75*c+Z+ua;v.geometry.width=d;v.geometry.height=c;T="poolPrimaryTitleKey";za="PrimaryLaneHeaderFill_";ia="CellFill_0,";ha=a.PrimaryLaneTextAreaIds;if(null==ha)for(ha=[],b=0;b<pa;b++)ha.push("Primary_"+b)}if(0==a.IsPrimaryLaneVertical){a.Rotation=-1.5707963267948966;var na=v.geometry.x,Na=v.geometry.y}var ka=0!=a.Rotation,ya=0<C.indexOf("Pool"),R=0==C.indexOf("BPMN"),
sa=null!=a[T];v.style=(ya?"swimlane;startSize="+Z+";":"fillColor=none;strokeColor=none;pointerEvents=0;fontStyle=0;")+"html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;"+(ka?"horizontalStack=0;":"");v.style+=h(v.style,a,e,v);sa&&(v.value=k(a[T]),v.style+=(q?"overflow=block;blockSpacing=1;fontSize=13;"+ab:A(a[T])+L(a[T])+N(a[T])+X(a[T])+wa(a[T],v)+Ka(a[T])+Va(a[T])+Fa(a[T])+Ca(a[T]))+Ga(a[T])+qa(a[T]));for(var da=0,ea=[],Db="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;fontStyle=0;startSize="+
ua+";dropTarget=0;rounded=0;"+(ka?"horizontal=0;":"")+(R?"swimlaneLine=0;fillColor=none;":""),M=a.Rotation=0;M<pa;M++){if(null==ha){var lb=parseFloat(a.Lanes[M].p);b=parseInt(a.Lanes[M].tid)||M;var Ea="Lane_"+b}else lb=.75*a.PrimaryLane[M]/d,b=M,Ea=ha[M];var fc=d*da,lc=ya?Z:0;ea.push(new mxCell("",ka?new mxGeometry(lc,fc,c-lc,d*lb):new mxGeometry(fc,lc,d*lb,c-lc),Db));ea[M].vertex=!0;v.insert(ea[M]);ea[M].value=k(a[Ea]);ea[M].style+=h(ea[M].style,a,e,ea[M],q)+(q?"fontSize=13;":A(a[Ea])+L(a[Ea])+X(a[Ea])+
wa(a[Ea],ea[M])+Ka(a[Ea])+Va(a[Ea])+Fa(a[Ea])+Ca(a[Ea]))+Ga(a[Ea])+qa(a[Ea])+Gd(a[za+b])+Hd(a[ia+b]);da+=lb}null!=na&&(v.geometry.x=na,v.geometry.y=Na);break;case "UMLMultidimensionalSwimlane":var tb=0,Fb=0,yb=null,Ob=null;if(null!=a.Rows&&null!=a.Columns){tb=a.Rows.length;Fb=a.Columns.length;var Ia=.75*a.TitleHeight||25,eb=.75*a.TitleWidth||25}else if(null!=a.PrimaryLane&&null!=a.SecondaryLane){tb=a.SecondaryLane.length;Fb=a.PrimaryLane.length;eb=.75*a.SecondaryLaneTitleHeight||25;Ia=.75*a.PrimaryLaneTitleHeight||
25;for(b=c=d=0;b<tb;b++)c+=a.SecondaryLane[b];for(b=0;b<Fb;b++)d+=a.PrimaryLane[b];d=.75*d+eb;c=.75*c+Ia;v.geometry.width=d;v.geometry.height=c;yb=a.SecondaryLaneTextAreaIds;Ob=a.PrimaryLaneTextAreaIds}v.style="group;";var Fc=new mxCell("",new mxGeometry(0,Ia,d,c-Ia),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;horizontalStack=0;");Fc.vertex=!0;var wc=new mxCell("",new mxGeometry(eb,0,d-eb,c),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;");
wc.vertex=!0;v.insert(Fc);v.insert(wc);I=0;var xc="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;horizontal=0;fontStyle=0;startSize="+eb+";";for(M=0;M<tb;M++){if(null==yb){var Nd=.75*parseInt(a.Rows[M].height);b=parseInt(a.Rows[M].id)||M;var Gb="Row_"+b}else Nd=.75*a.SecondaryLane[M],Gb=yb[M];var yc=new mxCell("",new mxGeometry(0,I,d,Nd),xc);I+=Nd;yc.vertex=!0;Fc.insert(yc);yc.value=k(a[Gb]);yc.style+=h(yc.style,a,e,yc,q)+(q?"fontSize=13;":A(a[Gb])+L(a[Gb])+
X(a[Gb])+wa(a[Gb],yc)+Ka(a[Gb])+Va(a[Gb])+Fa(a[Gb])+Ca(a[Gb]))+Ga(a[Gb])+qa(a[Gb])}var Df="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;fontStyle=0;startSize="+Ia+";";for(M=G=0;M<Fb;M++){if(null==Ob){var Qc=.75*parseInt(a.Columns[M].width);b=parseInt(a.Columns[M].id)||M;var Hb="Column_"+b}else Qc=.75*a.PrimaryLane[M],Hb=Ob[M];var zc=new mxCell("",new mxGeometry(G,0,Qc,c),Df);G+=Qc;zc.vertex=!0;wc.insert(zc);zc.value=k(a[Hb]);zc.style+=h(zc.style,a,e,zc,q)+(q?
"fontSize=13;":A(a[Hb])+L(a[Hb])+X(a[Hb])+wa(a[Hb],zc)+Ka(a[Hb])+Va(a[Hb])+Fa(a[Hb])+Ca(a[Hb]))+Ga(a[Hb])+qa(a[Hb])}break;case "UMLStateBlock":if(0==a.Composite)v.style="rounded=1;arcSize=20",v.value=k(a.State,!0),v.style+=h(v.style,a,e,v,q);else{v.style="swimlane;startSize=25;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;rounded=1;arcSize=20;fontStyle=0;";v.value=k(a.State,!0);v.style+=h(v.style,a,e,v,q);v.style+=ta(a,e).replace("fillColor",
"swimlaneFillColor");var mb=new mxCell("",new mxGeometry(0,25,d,c-25),"rounded=1;arcSize=20;strokeColor=none;fillColor=none");mb.value=k(a.Action,!0);mb.style+=h(mb.style,a,e,mb,q);mb.vertex=!0;v.insert(mb)}break;case "GSDFDProcessBlock":var de=Math.round(.75*a.nameHeight);v.style="shape=swimlane;html=1;rounded=1;arcSize=10;collapsible=0;fontStyle=0;startSize="+de;v.value=k(a.Number,!0);v.style+=h(v.style,a,e,v,q);v.style+=ta(a,e).replace("fillColor","swimlaneFillColor");mb=new mxCell("",new mxGeometry(0,
de,d,c-de),"rounded=1;arcSize=10;strokeColor=none;fillColor=none");mb.value=k(a.Text,!0);mb.style+=h(mb.style,a,e,mb,q);mb.vertex=!0;v.insert(mb);break;case "AndroidDevice":if(null!=a.AndroidDeviceName){var bb=mc(a,e,v);v.style="fillColor=#000000;strokeColor=#000000;";var pc=null,Rc=null,Sc=null;if("Tablet"==a.AndroidDeviceName||"Mini Tablet"==a.AndroidDeviceName||"custom"==a.AndroidDeviceName&&"Tablet"==a.CustomDeviceType)v.style+="shape=mxgraph.android.tab2;",pc=new mxCell("",new mxGeometry(.112,
.077,.77*d,.85*c),bb),a.KeyboardShown&&(Rc=new mxCell("",new mxGeometry(.112,.727,.77*d,.2*c),"shape=mxgraph.android.keyboard;"+bb)),a.FullScreen||(Sc=new mxCell("",new mxGeometry(.112,.077,.77*d,.03*c),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*c+";"+bb));else if("Large Phone"==a.AndroidDeviceName||"Phone"==a.AndroidDeviceName||"custom"==a.AndroidDeviceName&&"Phone"==a.CustomDeviceType)v.style+="shape=mxgraph.android.phone2;",pc=new mxCell("",
new mxGeometry(.04,.092,.92*d,.816*c),bb),a.KeyboardShown&&(Rc=new mxCell("",new mxGeometry(.04,.708,.92*d,.2*c),"shape=mxgraph.android.keyboard;"+bb)),a.FullScreen||(Sc=new mxCell("",new mxGeometry(.04,.092,.92*d,.03*c),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*c+";"+bb));pc.vertex=!0;pc.geometry.relative=!0;v.insert(pc);"Dark"==a.Scheme?pc.style+="fillColor=#111111;":"Light"==a.Scheme&&(pc.style+="fillColor=#ffffff;");null!=Rc&&(Rc.vertex=
!0,Rc.geometry.relative=!0,v.insert(Rc));null!=Sc&&(Sc.vertex=!0,Sc.geometry.relative=!0,v.insert(Sc))}v.style+=h(v.style,a,e,v);break;case "AndroidAlertDialog":var Pb=new mxCell("",new mxGeometry(0,0,d,30),"strokeColor=none;fillColor=none;spacingLeft=9;");Pb.vertex=!0;v.insert(Pb);var xa=new mxCell("",new mxGeometry(0,25,d,10),"shape=line;strokeColor=#33B5E5;");xa.vertex=!0;v.insert(xa);var id=new mxCell("",new mxGeometry(0,30,d,c-30),"strokeColor=none;fillColor=none;verticalAlign=top;");id.vertex=
!0;v.insert(id);var Ya=new mxCell("",new mxGeometry(0,c-25,.5*d,25),"fillColor=none;");Ya.vertex=!0;v.insert(Ya);var Za=new mxCell("",new mxGeometry(.5*d,c-25,.5*d,25),"fillColor=none;");Za.vertex=!0;v.insert(Za);Pb.value=k(a.DialogTitle);Pb.style+=p(a.DialogTitle,q);id.value=k(a.DialogText);id.style+=p(a.DialogText,q);Ya.value=k(a.Button_0);Ya.style+=p(a.Button_0,q);Za.value=k(a.Button_1);Za.style+=p(a.Button_1,q);"Dark"==a.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",Ya.style+=
"strokeColor=#353535;",Za.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",Ya.style+="strokeColor=#E2E2E2;",Za.style+="strokeColor=#E2E2E2;");v.style+=h(v.style,a,e,v);break;case "AndroidDateDialog":case "AndroidTimeDialog":Pb=new mxCell("",new mxGeometry(0,0,d,30),"strokeColor=none;fillColor=none;spacingLeft=9;");Pb.vertex=!0;v.insert(Pb);Pb.value=k(a.DialogTitle);Pb.style+=p(a.DialogTitle,q);xa=new mxCell("",new mxGeometry(0,25,d,10),"shape=line;strokeColor=#33B5E5;");
xa.vertex=!0;v.insert(xa);Ya=new mxCell("",new mxGeometry(0,c-25,.5*d,25),"fillColor=none;");Ya.vertex=!0;v.insert(Ya);Ya.value=k(a.Button_0);Ya.style+=p(a.Button_0,q);Za=new mxCell("",new mxGeometry(.5*d,c-25,.5*d,25),"fillColor=none;");Za.vertex=!0;v.insert(Za);Za.value=k(a.Button_1);Za.style+=p(a.Button_1,q);var Tc=new mxCell("",new mxGeometry(.5*d-4,41,8,4),"shape=triangle;direction=north;");Tc.vertex=!0;v.insert(Tc);var Uc=new mxCell("",new mxGeometry(.25*d-4,41,8,4),"shape=triangle;direction=north;");
Uc.vertex=!0;v.insert(Uc);var Vc=new mxCell("",new mxGeometry(.75*d-4,41,8,4),"shape=triangle;direction=north;");Vc.vertex=!0;v.insert(Vc);var jd=new mxCell("",new mxGeometry(.375*d,50,.2*d,15),"strokeColor=none;fillColor=none;");jd.vertex=!0;v.insert(jd);jd.value=k(a.Label_1);jd.style+=p(a.Label_1,q);var kd=new mxCell("",new mxGeometry(.125*d,50,.2*d,15),"strokeColor=none;fillColor=none;");kd.vertex=!0;v.insert(kd);kd.value=k(a.Label_0);kd.style+=p(a.Label_0,q);var Wc=null;"AndroidDateDialog"==f.Class&&
(Wc=new mxCell("",new mxGeometry(.625*d,50,.2*d,15),"strokeColor=none;fillColor=none;"),Wc.vertex=!0,v.insert(Wc),Wc.value=k(a.Label_2),Wc.style+=p(a.Label_2,q));var nb=new mxCell("",new mxGeometry(.43*d,60,.14*d,10),"shape=line;strokeColor=#33B5E5;");nb.vertex=!0;v.insert(nb);var ob=new mxCell("",new mxGeometry(.18*d,60,.14*d,10),"shape=line;strokeColor=#33B5E5;");ob.vertex=!0;v.insert(ob);var Ke=new mxCell("",new mxGeometry(.68*d,60,.14*d,10),"shape=line;strokeColor=#33B5E5;");Ke.vertex=!0;v.insert(Ke);
var ld=new mxCell("",new mxGeometry(.375*d,65,.2*d,15),"strokeColor=none;fillColor=none;");ld.vertex=!0;v.insert(ld);ld.value=k(a.Label_4);ld.style+=p(a.Label_4,q);var Xc=null;"AndroidTimeDialog"==f.Class&&(Xc=new mxCell("",new mxGeometry(.3*d,65,.1*d,15),"strokeColor=none;fillColor=none;"),Xc.vertex=!0,v.insert(Xc),Xc.value=k(a.Label_Colon),Xc.style+=p(a.Label_Colon,q));var md=new mxCell("",new mxGeometry(.125*d,65,.2*d,15),"strokeColor=none;fillColor=none;");md.vertex=!0;v.insert(md);md.value=k(a.Label_3);
md.style+=p(a.Label_3,q);var nd=new mxCell("",new mxGeometry(.625*d,65,.2*d,15),"strokeColor=none;fillColor=none;");nd.vertex=!0;v.insert(nd);nd.value=k(a.Label_5);nd.style+=p(a.Label_5,q);var Le=new mxCell("",new mxGeometry(.43*d,75,.14*d,10),"shape=line;strokeColor=#33B5E5;");Le.vertex=!0;v.insert(Le);var Me=new mxCell("",new mxGeometry(.18*d,75,.14*d,10),"shape=line;strokeColor=#33B5E5;");Me.vertex=!0;v.insert(Me);var Ne=new mxCell("",new mxGeometry(.68*d,75,.14*d,10),"shape=line;strokeColor=#33B5E5;");
Ne.vertex=!0;v.insert(Ne);var od=new mxCell("",new mxGeometry(.375*d,80,.2*d,15),"strokeColor=none;fillColor=none;");od.vertex=!0;v.insert(od);od.value=k(a.Label_7);od.style+=p(a.Label_7,q);var pd=new mxCell("",new mxGeometry(.125*d,80,.2*d,15),"strokeColor=none;fillColor=none;");pd.vertex=!0;v.insert(pd);pd.value=k(a.Label_6);pd.style+=p(a.Label_6,q);var qd=new mxCell("",new mxGeometry(.625*d,80,.2*d,15),"strokeColor=none;fillColor=none;");qd.vertex=!0;v.insert(qd);qd.value=k(a.Label_8);qd.style+=
p(a.Label_8,q);var Yc=new mxCell("",new mxGeometry(.5*d-4,99,8,4),"shape=triangle;direction=south;");Yc.vertex=!0;v.insert(Yc);var Zc=new mxCell("",new mxGeometry(.25*d-4,99,8,4),"shape=triangle;direction=south;");Zc.vertex=!0;v.insert(Zc);var $c=new mxCell("",new mxGeometry(.75*d-4,99,8,4),"shape=triangle;direction=south;");$c.vertex=!0;v.insert($c);"Dark"==a.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",Ya.style+="strokeColor=#353535;",Za.style+="strokeColor=#353535;",Tc.style+=
"strokeColor=none;fillColor=#7E7E7E;",Uc.style+="strokeColor=none;fillColor=#7E7E7E;",Vc.style+="strokeColor=none;fillColor=#7E7E7E;",Yc.style+="strokeColor=none;fillColor=#7E7E7E;",Zc.style+="strokeColor=none;fillColor=#7E7E7E;",$c.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",Ya.style+="strokeColor=#E2E2E2;",Za.style+="strokeColor=#E2E2E2;",Tc.style+="strokeColor=none;fillColor=#939393;",Uc.style+="strokeColor=none;fillColor=#939393;",Vc.style+=
"strokeColor=none;fillColor=#939393;",Yc.style+="strokeColor=none;fillColor=#939393;",Zc.style+="strokeColor=none;fillColor=#939393;",$c.style+="strokeColor=none;fillColor=#939393;");v.style+=h(v.style,a,e,v);break;case "AndroidListItems":var pb=c,qc=0;if(a.ShowHeader){qc=8;var Gc=new mxCell("",new mxGeometry(0,0,d,qc),"strokeColor=none;fillColor=none;");Gc.vertex=!0;v.insert(Gc);Gc.value=k(a.Header);Gc.style+=p(a.Header,q);pb-=qc;var Oe=new mxCell("",new mxGeometry(0,qc-2,d,4),"shape=line;strokeColor=#999999;");
Oe.vertex=!0;v.insert(Oe)}var Qb=parseInt(a.Items);0<Qb&&(pb/=Qb);var F=[];xa=[];for(b=0;b<Qb;b++)F[b]=new mxCell("",new mxGeometry(0,qc+b*pb,d,pb),"strokeColor=none;fillColor=none;"),F[b].vertex=!0,v.insert(F[b]),F[b].value=k(a["Item_"+b]),F[b].style+=p(a["Item_"+b],q),0<b&&(xa[b]=new mxCell("",new mxGeometry(0,qc+b*pb-2,d,4),"shape=line;"),xa[b].vertex=!0,v.insert(xa[b]),xa[b].style="Dark"==a.Scheme?xa[b].style+"strokeColor=#ffffff;":xa[b].style+"strokeColor=#D9D9D9;");v.style="Dark"==a.Scheme?
v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";v.style+=h(v.style,a,e,v);break;case "AndroidTabs":var Rb=parseInt(a.Tabs),ub=d;0<Rb&&(ub/=Rb);var Ba=[];xa=[];for(b=0;b<Rb;b++)Ba[b]=new mxCell("",new mxGeometry(b*ub,0,ub,c),"strokeColor=none;fillColor=none;"),Ba[b].vertex=!0,v.insert(Ba[b]),Ba[b].value=k(a["Tab_"+b]),Ba[b].style+=p(a["Tab_"+b],q),0<b&&(xa[b]=new mxCell("",new mxGeometry(b*ub-2,.2*c,4,.6*c),"shape=line;direction=north;"),xa[b].vertex=!0,
v.insert(xa[b]),xa[b].style="Dark"==a.Scheme?xa[b].style+"strokeColor=#484848;":xa[b].style+"strokeColor=#CCCCCC;");var Pe=new mxCell("",new mxGeometry(a.Selected*ub+2,c-3,ub-4,3),"strokeColor=none;fillColor=#33B5E5;");Pe.vertex=!0;v.insert(Pe);v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";v.style+=h(v.style,a,e,v);break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(G),Math.round(I+.25*c),Math.round(d),Math.round(.5*
c)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;var rd=new mxCell("",new mxGeometry(0,0,d*a.BarPosition,Math.round(.5*c)),"strokeColor=none;fillColor=#33B5E5;");rd.vertex=!0;v.insert(rd);v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#474747;":v.style+"strokeColor=none;fillColor=#BBBBBB;";v.style+=h(v.style,a,e,v);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;";v.style+=h(v.style,a,e,v);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=k(a.Label);v.style+=p(a.Label,q);v.style+=h(v.style,a,e,v,q);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 rc=null;rc=a.HighlightTop?new mxCell("",new mxGeometry(0,0,d,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,c-2,d,2),"strokeColor=none;");rc.vertex=!0;v.insert(rc);switch(a.HighlightColor){case "Blue":rc.style+="fillColor=#33B5E5;";break;case "Dark Gray":rc.style+=
"fillColor=#B0B0B0;";break;case "White":rc.style+="fillColor=#ffffff;"}}if(a.VlignShow){var ad=new mxCell("",new mxGeometry(20,5,2,c-10),"shape=line;direction=north;");ad.vertex=!0;v.insert(ad);switch(a.VlignColor){case "Blue":ad.style+="strokeColor=#244C5A;";break;case "White":ad.style+="strokeColor=#ffffff;"}}v.style+=h(v.style,a,e,v);break;case "AndroidButton":v.value=k(a.Label);v.style+=p(a.Label,q)+"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;";v.style+=h(v.style,a,e,v);break;case "AndroidTextBox":v.value=k(a.Label);v.style+=p(a.Label,q);var sd=new mxCell("",new mxGeometry(2,c-6,d-4,4),"shape=partialRectangle;top=0;fillColor=none;");sd.vertex=!0;v.insert(sd);v.style="Dark"==a.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";sd.style=a.TextFocused?sd.style+"strokeColor=#33B5E5;":sd.style+"strokeColor=#A9A9A9;";v.style+=h(v.style,a,e,v);
break;case "AndroidRadioButton":var Hc=null;a.Checked&&(Hc=new mxCell("",new mxGeometry(.15*d,.15*c,.7*d,.7*c),"ellipse;fillColor=#33B5E5;strokeWidth=1;"),Hc.vertex=!0,v.insert(Hc));"Dark"==a.Scheme?(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;strokeColor=#272727;",a.Checked?(Hc.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;fillColor=#ffffff;strokeColor=#5C5C5C;",a.Checked&&
(Hc.style+="strokeColor=#999999;"));v.style+=h(v.style,a,e,v);break;case "AndroidCheckBox":var ee=null;a.Checked&&(ee=new mxCell("",new mxGeometry(.25*d,.05*-c,d,.8*c),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),ee.vertex=!0,v.insert(ee));v.style="Dark"==a.Scheme?v.style+"strokeWidth=1;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=1;strokeColor=#5C5C5C;fillColor=#ffffff;";v.style+=h(v.style,a,e,v);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;";v.style+=h(v.style,a,e,v);break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+a.BarPosition+";fillColor=#33b5e5;";v.style+=h(v.style,a,e,v);break;case "iOSSegmentedControl":Rb=parseInt(a.Tabs);ub=d;v.style+="strokeColor=none;fillColor=none;";
0<Rb&&(ub/=Rb);Ba=[];xa=[];for(b=0;b<Rb;b++)Ba[b]=new mxCell("",new mxGeometry(b*ub,0,ub,c),"strokeColor="+a.FillColor+";"),Ba[b].vertex=!0,v.insert(Ba[b]),Ba[b].value=k(a["Tab_"+b]),Ba[b].style+=p(a["Tab_"+b],q),Ba[b].style=a.Selected==b?Ba[b].style+ta(a,e):Ba[b].style+"fillColor=none;";v.style+=h(v.style,a,e,v);break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+a.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*a.BarPosition+";";v.style+=h(v.style,a,e,v);break;case "iOSProgressBar":v=
new mxCell("",new mxGeometry(Math.round(G),Math.round(I+.25*c),Math.round(d),Math.round(.5*c)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");v.vertex=!0;rd=new mxCell("",new mxGeometry(0,0,d*a.BarPosition,Math.round(.5*c)),"strokeColor=none;"+ta(a,e));rd.vertex=!0;v.insert(rd);v.style+=h(v.style,a,e,v);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;strokeColor=#D6D6D6;";v.style+=h(v.style,a,e,v);break;case "iOSStatusBar":v.style+=
"shape=mxgraph.ios7ui.appBar;strokeColor=#000000;";var ja=new mxCell(k(a.Text),new mxGeometry(.35*d,0,.3*d,c),"strokeColor=none;fillColor=none;");ja.vertex=!0;v.insert(ja);ja.style+=p(a.Text,q);var qb=new mxCell(k(a.Carrier),new mxGeometry(.09*d,0,.2*d,c),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.style+=p(a.Carrier,q);v.style+=h(v.style,a,e,v);break;case "iOSSearchBar":v.value=k(a.Search);v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v,q)+p(a.Search,q);var oa=new mxCell("",
new mxGeometry(.3*d,.3*c,.4*c,.4*c),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");oa.vertex=!0;v.insert(oa);break;case "iOSNavBar":v.value=k(a.Title);v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+p(a.Title,q);v.style+=h(v.style,a,e,v,q);ja=new mxCell(k(a.LeftText),new mxGeometry(.03*d,0,.3*d,c),"strokeColor=none;fillColor=none;");ja.vertex=!0;v.insert(ja);ja.style+=p(a.LeftText,q);qb=new mxCell(k(a.RightText),new mxGeometry(.65*d,0,.3*
d,c),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.style+=p(a.RightText,q);oa=new mxCell("",new mxGeometry(.02*d,.2*c,.3*c,.5*c),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");oa.vertex=!0;v.insert(oa);break;case "iOSTabs":Rb=parseInt(a.Tabs);ub=d;v.style+="shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;";v.style+=h(v.style,a,e,v);0<Rb&&(ub/=Rb);Ba=[];xa=[];for(b=0;b<Rb;b++)Ba[b]=new mxCell("",new mxGeometry(b*ub,0,ub,c),"strokeColor=none;"),
Ba[b].vertex=!0,v.insert(Ba[b]),Ba[b].value=k(a["Tab_"+b]),Ba[b].style+=q?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+ab:A(a["Tab_"+b])+N(a["Tab_"+b])+L(a["Tab_"+b])+X(a["Tab_"+b])+wa(a["Tab_"+b])+Ka(a["Tab_"+b])+Va(a["Tab_"+b])+Fa(a["Tab_"+b])+Ca(a["Tab_"+b])+Ga(a["Tab_"+b]),Ba[b].style+="verticalAlign=bottom;",Ba[b].style=a.Selected==b?Ba[b].style+"fillColor=#BBBBBB;":Ba[b].style+"fillColor=none;";break;case "iOSDatePicker":var Sb=new mxCell("",new mxGeometry(0,0,.5*d,.2*c),"strokeColor=none;fillColor=none;");
Sb.vertex=!0;v.insert(Sb);Sb.value=k(a.Option11);Sb.style+=p(a.Option11,q);var Tb=new mxCell("",new mxGeometry(.5*d,0,.15*d,.2*c),"strokeColor=none;fillColor=none;");Tb.vertex=!0;v.insert(Tb);Tb.value=k(a.Option21);Tb.style+=p(a.Option21,q);var Ub=new mxCell("",new mxGeometry(.65*d,0,.15*d,.2*c),"strokeColor=none;fillColor=none;");Ub.vertex=!0;v.insert(Ub);Ub.value=k(a.Option31);Ub.style+=p(a.Option31,q);var Vb=new mxCell("",new mxGeometry(0,.2*c,.5*d,.2*c),"strokeColor=none;fillColor=none;");Vb.vertex=
!0;v.insert(Vb);Vb.value=k(a.Option12);Vb.style+=p(a.Option12,q);var Wb=new mxCell("",new mxGeometry(.5*d,.2*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");Wb.vertex=!0;v.insert(Wb);Wb.value=k(a.Option22);Wb.style+=p(a.Option22,q);var Xb=new mxCell("",new mxGeometry(.65*d,.2*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");Xb.vertex=!0;v.insert(Xb);Xb.value=k(a.Option32);Xb.style+=p(a.Option32,q);var fb=new mxCell("",new mxGeometry(0,.4*c,.5*d,.2*c),"strokeColor=none;fillColor=none;");fb.vertex=
!0;v.insert(fb);fb.value=k(a.Option13);fb.style+=p(a.Option13,q);var gb=new mxCell("",new mxGeometry(.5*d,.4*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");gb.vertex=!0;v.insert(gb);gb.value=k(a.Option23);gb.style+=p(a.Option23,q);var Yb=new mxCell("",new mxGeometry(.65*d,.4*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");Yb.vertex=!0;v.insert(Yb);Yb.value=k(a.Option33);Yb.style+=p(a.Option33,q);var hb=new mxCell("",new mxGeometry(.8*d,.4*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");hb.vertex=
!0;v.insert(hb);hb.value=k(a.Option43);hb.style+=p(a.Option43,q);var ib=new mxCell("",new mxGeometry(0,.6*c,.5*d,.2*c),"strokeColor=none;fillColor=none;");ib.vertex=!0;v.insert(ib);ib.value=k(a.Option14);ib.style+=p(a.Option14,q);var Zb=new mxCell("",new mxGeometry(.5*d,.6*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");Zb.vertex=!0;v.insert(Zb);Zb.value=k(a.Option24);Zb.style+=p(a.Option24,q);var $b=new mxCell("",new mxGeometry(.65*d,.6*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");$b.vertex=
!0;v.insert($b);$b.value=k(a.Option34);$b.style+=p(a.Option34,q);var ac=new mxCell("",new mxGeometry(.8*d,.6*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");ac.vertex=!0;v.insert(ac);ac.value=k(a.Option44);ac.style+=p(a.Option44,q);var jb=new mxCell("",new mxGeometry(0,.8*c,.5*d,.2*c),"strokeColor=none;fillColor=none;");jb.vertex=!0;v.insert(jb);jb.value=k(a.Option15);jb.style+=p(a.Option15,q);var bc=new mxCell("",new mxGeometry(.5*d,.8*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");bc.vertex=
!0;v.insert(bc);bc.value=k(a.Option25);bc.style+=p(a.Option25,q);var cc=new mxCell("",new mxGeometry(.65*d,.8*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");cc.vertex=!0;v.insert(cc);cc.value=k(a.Option35);cc.style+=p(a.Option35,q);nb=new mxCell("",new mxGeometry(0,.4*c-2,d,4),"shape=line;strokeColor=#888888;");nb.vertex=!0;v.insert(nb);ob=new mxCell("",new mxGeometry(0,.6*c-2,d,4),"shape=line;strokeColor=#888888;");ob.vertex=!0;v.insert(ob);v.style+="strokeColor=none;";v.style+=h(v.style,a,e,
v);break;case "iOSTimePicker":Sb=new mxCell("",new mxGeometry(0,0,.25*d,.2*c),"strokeColor=none;fillColor=none;");Sb.vertex=!0;v.insert(Sb);Sb.value=k(a.Option11);Sb.style+=p(a.Option11,q);Tb=new mxCell("",new mxGeometry(.25*d,0,.3*d,.2*c),"strokeColor=none;fillColor=none;");Tb.vertex=!0;v.insert(Tb);Tb.value=k(a.Option21);Tb.style+=p(a.Option21,q);Vb=new mxCell("",new mxGeometry(0,.2*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");Vb.vertex=!0;v.insert(Vb);Vb.value=k(a.Option12);Vb.style+=p(a.Option12,
q);Wb=new mxCell("",new mxGeometry(.25*d,.2*c,.3*d,.2*c),"strokeColor=none;fillColor=none;");Wb.vertex=!0;v.insert(Wb);Wb.value=k(a.Option22);Wb.style+=p(a.Option22,q);fb=new mxCell("",new mxGeometry(0,.4*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");fb.vertex=!0;v.insert(fb);fb.value=k(a.Option13);fb.style+=p(a.Option13,q);gb=new mxCell("",new mxGeometry(.25*d,.4*c,.3*d,.2*c),"strokeColor=none;fillColor=none;");gb.vertex=!0;v.insert(gb);gb.value=k(a.Option23);gb.style+=p(a.Option23,q);hb=new mxCell("",
new mxGeometry(.7*d,.4*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");hb.vertex=!0;v.insert(hb);hb.value=k(a.Option33);hb.style+=p(a.Option33,q);ib=new mxCell("",new mxGeometry(0,.6*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");ib.vertex=!0;v.insert(ib);ib.value=k(a.Option14);ib.style+=p(a.Option14,q);Zb=new mxCell("",new mxGeometry(.25*d,.6*c,.3*d,.2*c),"strokeColor=none;fillColor=none;");Zb.vertex=!0;v.insert(Zb);Zb.value=k(a.Option24);Zb.style+=p(a.Option24,q);ac=new mxCell("",new mxGeometry(.7*
d,.6*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");ac.vertex=!0;v.insert(ac);ac.value=k(a.Option34);ac.style+=p(a.Option34,q);jb=new mxCell("",new mxGeometry(0,.8*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");jb.vertex=!0;v.insert(jb);jb.value=k(a.Option15);jb.style+=p(a.Option15,q);bc=new mxCell("",new mxGeometry(.25*d,.8*c,.3*d,.2*c),"strokeColor=none;fillColor=none;");bc.vertex=!0;v.insert(bc);bc.value=k(a.Option25);bc.style+=p(a.Option25,q);nb=new mxCell("",new mxGeometry(0,.4*c-2,d,4),
"shape=line;strokeColor=#888888;");nb.vertex=!0;v.insert(nb);ob=new mxCell("",new mxGeometry(0,.6*c-2,d,4),"shape=line;strokeColor=#888888;");ob.vertex=!0;v.insert(ob);v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v);break;case "iOSCountdownPicker":Ub=new mxCell("",new mxGeometry(.45*d,0,.2*d,.2*c),"strokeColor=none;fillColor=none;");Ub.vertex=!0;v.insert(Ub);Ub.value=k(a.Option31);Ub.style+=p(a.Option31,q);Xb=new mxCell("",new mxGeometry(.45*d,.2*c,.2*d,.2*c),"strokeColor=none;fillColor=none;");
Xb.vertex=!0;v.insert(Xb);Xb.value=k(a.Option32);Xb.style+=p(a.Option32,q);fb=new mxCell("",new mxGeometry(0,.4*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");fb.vertex=!0;v.insert(fb);fb.value=k(a.Option13);fb.style+=p(a.Option13,q);gb=new mxCell("",new mxGeometry(.2*d,.4*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");gb.vertex=!0;v.insert(gb);gb.value=k(a.Option23);gb.style+=p(a.Option23,q);Yb=new mxCell("",new mxGeometry(.45*d,.4*c,.2*d,.2*c),"strokeColor=none;fillColor=none;");Yb.vertex=
!0;v.insert(Yb);Yb.value=k(a.Option33);Yb.style+=p(a.Option33,q);hb=new mxCell("",new mxGeometry(.6*d,.4*c,.2*d,.2*c),"strokeColor=none;fillColor=none;");hb.vertex=!0;v.insert(hb);hb.value=k(a.Option43);hb.style+=p(a.Option43,q);ib=new mxCell("",new mxGeometry(0,.6*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");ib.vertex=!0;v.insert(ib);ib.value=k(a.Option14);ib.style+=p(a.Option14,q);$b=new mxCell("",new mxGeometry(.45*d,.6*c,.2*d,.2*c),"strokeColor=none;fillColor=none;");$b.vertex=!0;v.insert($b);
$b.value=k(a.Option34);$b.style+=p(a.Option34,q);jb=new mxCell("",new mxGeometry(0,.8*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");jb.vertex=!0;v.insert(jb);jb.value=k(a.Option15);jb.style+=p(a.Option15,q);cc=new mxCell("",new mxGeometry(.45*d,.8*c,.2*d,.2*c),"strokeColor=none;fillColor=none;");cc.vertex=!0;v.insert(cc);cc.value=k(a.Option35);cc.style+=p(a.Option35,q);nb=new mxCell("",new mxGeometry(0,.4*c-2,d,4),"shape=line;strokeColor=#888888;");nb.vertex=!0;v.insert(nb);ob=new mxCell("",new mxGeometry(0,
.6*c-2,d,4),"shape=line;strokeColor=#888888;");ob.vertex=!0;v.insert(ob);v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v);break;case "iOSBasicCell":v.value=k(a.text);v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+.75*a.SeparatorInset+";";v.style+=(q?"fontSize=13;":A(a.text)+L(a.text)+X(a.text))+qa(a.text);v.style+=h(v.style,a,e,v,q);switch(a.AccessoryIndicatorType){case "Disclosure":oa=new mxCell("",new mxGeometry(.91*
d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);break;case "DetailDisclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);var La=new mxCell("",new mxGeometry(.79*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);break;case "DetailIndicator":La=new mxCell("",new mxGeometry(.87*d,.25*c,.5*c,
.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);break;case "CheckMark":oa=new mxCell("",new mxGeometry(.89*d,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),oa.vertex=!0,v.insert(oa)}break;case "iOSSubtitleCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=top;spacingLeft="+.75*a.SeparatorInset+";";v.value=k(a.subtext);v.style+=
q?"fontSize=13;":A(a.subtext)+L(a.subtext)+X(a.subtext);v.style+=h(v.style,a,e,v,q);var Qa=new mxCell("",new mxGeometry(0,.4*c,d,.6*c),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+.75*a.SeparatorInset+";");Qa.vertex=!0;v.insert(Qa);Qa.value=k(a.text);Qa.style+=q?"html=1;fontSize=13;"+ab:A(a.text)+N(a.text)+L(a.text)+X(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");
oa.vertex=!0;v.insert(oa);break;case "DetailDisclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);La=new mxCell("",new mxGeometry(.79*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);break;case "DetailIndicator":La=new mxCell("",new mxGeometry(.87*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
La.vertex=!0;v.insert(La);break;case "CheckMark":oa=new mxCell("",new mxGeometry(.89*d,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),oa.vertex=!0,v.insert(oa)}break;case "iOSRightDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=middle;spacingLeft="+.75*a.SeparatorInset+";";v.value=k(a.subtext);v.style+=q?"fontSize=13;":A(a.subtext)+L(a.subtext)+X(a.subtext);v.style+=h(v.style,
a,e,v,q);Qa=null;switch(a.AccessoryIndicatorType){case "Disclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);Qa=new mxCell("",new mxGeometry(.55*d,0,.3*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);La=new mxCell("",new mxGeometry(.79*
d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);Qa=new mxCell("",new mxGeometry(.45*d,0,.3*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailIndicator":La=new mxCell("",new mxGeometry(.87*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);Qa=new mxCell("",new mxGeometry(.52*d,0,.3*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");
break;case "CheckMark":oa=new mxCell("",new mxGeometry(.89*d,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;");oa.vertex=!0;v.insert(oa);Qa=new mxCell("",new mxGeometry(.55*d,0,.3*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:Qa=new mxCell("",new mxGeometry(.65*d,0,.3*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;")}Qa.vertex=!0;v.insert(Qa);Qa.value=k(a.text);Qa.style+=q?"html=1;fontSize=13;"+ab:A(a.text)+N(a.text)+
L(a.text)+X(a.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";v.style+=h(v.style,a,e,v);var Ib=new mxCell("",new mxGeometry(0,0,.25*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");Ib.vertex=!0;v.insert(Ib);Ib.value=k(a.subtext);Ib.style+=q?"html=1;fontSize=13;"+ab:A(a.subtext)+N(a.subtext)+L(a.subtext)+X(a.subtext);Qa=new mxCell("",new mxGeometry(.25*d,0,.5*d,c),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");
Qa.vertex=!0;v.insert(Qa);Qa.value=k(a.text);Qa.style+=q?"html=1;fontSize=13;"+ab:A(a.text)+N(a.text)+L(a.text)+X(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);break;case "DetailDisclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);La=new mxCell("",new mxGeometry(.79*
d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);break;case "DetailIndicator":La=new mxCell("",new mxGeometry(.87*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);break;case "CheckMark":oa=new mxCell("",new mxGeometry(.89*d,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),oa.vertex=!0,v.insert(oa)}break;case "iOSTableGroupedSectionBreak":v.style+=
"shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";ja=new mxCell("",new mxGeometry(0,0,d,.4*c),"fillColor=none;strokeColor=none;spacing=10;align=left;");ja.vertex=!0;v.insert(ja);ja.value=k(a.text);ja.style+=q?"html=1;fontSize=13;"+ab:A(a.text)+N(a.text)+L(a.text)+X(a.text);qb=new mxCell("",new mxGeometry(0,.6*c,d,.4*c),"fillColor=none;strokeColor=none;spacing=10;align=left;");qb.vertex=!0;v.insert(qb);qb.value=k(a["bottom-text"]);qb.style+=q?"html=1;fontSize=13;"+ab:A(a["bottom-text"])+
N(a["bottom-text"])+L(a["bottom-text"])+X(a["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";v.value=k(a.text);v.style+=q?"fontSize=13;":A(a.text)+L(a.text)+X(a.text);v.style+=h(v.style,a,e,v,q);break;case "SMPage":if(a.Group){v.style+="strokeColor=none;fillColor=none;";var g=new mxCell("",new mxGeometry(0,0,.9*d,.9*c),"rounded=1;arcSize=3;part=1;");g.vertex=!0;v.insert(g);g.style+=U(a,e)+ta(a,e)+Xa(a,e,g)+Eb(a)+
Ec(a);var l=new mxCell("",new mxGeometry(.1*d,.1*c,.9*d,.9*c),"rounded=1;arcSize=3;part=1;");l.vertex=!0;v.insert(l);l.value=k(a.Text);l.style+=U(a,e)+ta(a,e)+Xa(a,e,l)+Eb(a)+Ec(a)+p(a,q);a.Future&&(g.style+="dashed=1;fixDash=1;",l.style+="dashed=1;fixDash=1;")}else v.style+="rounded=1;arcSize=3;",a.Future&&(v.style+="dashed=1;fixDash=1;"),v.value=k(a.Text),v.style+=U(a,e)+ta(a,e)+Xa(a,e,v)+Eb(a)+Ec(a)+p(a,q);v.style+=h(v.style,a,e,v,q);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":g=
null;switch(f.Class){case "SMHome":g=new mxCell("",new mxGeometry(.5*d-.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":g=new mxCell("",new mxGeometry(.5*d-.4*c,.19*c,.8*c,.62*c),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":g=new mxCell("",new mxGeometry(.5*d-.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":g=new mxCell("",new mxGeometry(.5*d-.35*c,.15*c,.7*c,.7*c),"part=1;shape=mxgraph.mscae.enterprise.settings;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSitemap":g=new mxCell("",new mxGeometry(.5*d-.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":g=new mxCell("",new mxGeometry(.5*d-.3*c,.25*c,.6*c,.5*c),"part=1;shape=mxgraph.mscae.general.checkmark;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMVideo":g=new mxCell("",new mxGeometry(.5*d-.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":g=new mxCell("",new mxGeometry(.5*d-.3*c,.2*c,.6*c,.6*c),"part=1;shape=mxgraph.mscae.general.audio;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMCalendar":g=new mxCell("",new mxGeometry(.5*d-.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 H=ta(a,e);H=""==H?"#ffffff;":H.replace("fillColor=","");g=new mxCell("",new mxGeometry(.5*d-.35*c,.15*c,.7*c,.7*c),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+H);break;case "SMCloud":g=new mxCell("",new mxGeometry(.5*d-.4*c,.27*c,.8*c,.46*c),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":g=new mxCell("",new mxGeometry(.5*d-.25*c,.15*c,.5*c,.7*c),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMForm":g=new mxCell("",new mxGeometry(.5*d-.4*c,.15*c,.8*c,.7*c),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMGame":g=new mxCell("",new mxGeometry(.5*d-.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":g=new mxCell("",new mxGeometry(.5*d-.4*c,.2*c,.8*c,.6*c),"part=1;shape=mxgraph.mscae.enterprise.backup_online;fillColor=#e6e6e6;opacity=50;strokeColor=none;")}g.vertex=
!0;v.insert(g);g.value=k(a.Text);g.style+=p(a,q);v.style+=h(v.style,a,e,v);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";g=new mxCell("",new mxGeometry(.1*d,0,.9*d,.9*c),"part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);l=new mxCell("",new mxGeometry(0,.1*c,.9*d,.9*c),"part=1;");l.vertex=!0;v.insert(l);l.value=k(a.Text);l.style+=p(a.Text,q);l.style+=h(l.style,a,e,l,q);break;case "UMLConstraintBlock":var sc=new mxCell("",new mxGeometry(0,0,.25*c,c),"shape=curlyBracket;rounded=1;");
sc.vertex=!0;v.insert(sc);var tc=new mxCell("",new mxGeometry(d-.25*c,0,.25*c,c),"shape=curlyBracket;rounded=1;flipH=1;");tc.vertex=!0;v.insert(tc);S=new mxCell("",new mxGeometry(.25*c,0,d-.5*c,c),"strokeColor=none;fillColor=none;");S.vertex=!0;S.value=k(a);v.insert(S);v.style="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);sc.style+=Xa(a,e,sc);tc.style+=Xa(a,e,tc);S.style+=L(a,S);sc.style+=h(sc.style,a,e,sc);tc.style+=h(tc.style,a,e,tc);S.style+=h(S.style,a,e,S,q);break;case "UMLTextBlock":v.value=
k(a.Text);v.style+="strokeColor=none;"+p(a.Text,q);v.style+=h(v.style,a,e,v,q);break;case "UMLProvidedInterfaceBlock":case "UMLProvidedInterfaceBlockV2":bb=mc(a,e,v);a.Rotatio=null;var Jb=h(v.style,a,e,v,q);-1==Jb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Jb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Jb);v.style="group;dropTarget=0;pointerEvents=0;"+bb;var Od=.8*d,Ef=d-Od,Ic=new mxCell("",new mxGeometry(.2,0,Od,c),"shape=ellipse;"+Jb);Ic.vertex=!0;Ic.geometry.relative=!0;v.insert(Ic);xa=new mxCell("",new mxGeometry(0,
.5,Ef,1),"line;"+Jb);xa.geometry.relative=!0;xa.vertex=!0;v.insert(xa);break;case "UMLComponentBoxBlock":case "UMLComponentBoxBlockV2":v.value=k(a);v.style="html=1;dropTarget=0;"+h(v.style,a,e,v,q);var cb=new mxCell("",new mxGeometry(1,0,15,15),"shape=component;jettyWidth=8;jettyHeight=4;");cb.geometry.relative=!0;cb.geometry.offset=new mxPoint(-20,5);cb.vertex=!0;v.insert(cb);break;case "UMLAssemblyConnectorBlock":case "UMLAssemblyConnectorBlockV2":bb=mc(a,e,v);a.Rotatio=null;Jb=h(v.style,a,e,v,
q);-1==Jb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Jb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Jb);v.style="group;dropTarget=0;pointerEvents=0;"+bb;var Qe=.225*d,Re=.1*d;Od=d-Qe-Re;Ic=new mxCell("",new mxGeometry(.225,0,Od,c),"shape=providedRequiredInterface;verticalLabelPosition=bottom;"+Jb);Ic.vertex=!0;Ic.geometry.relative=!0;v.insert(Ic);nb=new mxCell("",new mxGeometry(0,.5,Qe,1),"line;"+Jb);nb.geometry.relative=!0;nb.vertex=!0;v.insert(nb);ob=new mxCell("",new mxGeometry(.9,.5,Re,1),"line;"+Jb);ob.geometry.relative=
!0;ob.vertex=!0;v.insert(ob);break;case "BPMNActivity":v.value=k(a.Text);switch(a.bpmnActivityType){case 1:v.style+=p(a.Text,q);break;case 2:v.style+="shape=ext;double=1;"+p(a.Text,q);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 5;"+p(a.Text,q);break;case 4:v.style+="shape=ext;strokeWidth=2;"+p(a.Text,q)}if(0!=a.bpmnTaskType){switch(a.bpmnTaskType){case 1:g=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");g.geometry.offset=new mxPoint(4,7);break;case 2:g=new mxCell("",new mxGeometry(0,
0,19,12),"shape=message;");g.geometry.offset=new mxPoint(4,7);break;case 3:g=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");g.geometry.offset=new mxPoint(4,5);break;case 4:g=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");g.geometry.offset=new mxPoint(4,7);break;case 5:g=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");g.geometry.offset=new mxPoint(4,7);break;case 6:g=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");
g.geometry.offset=new mxPoint(4,5);break;case 7:g=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),g.geometry.offset=new mxPoint(4,5)}if(1==a.bpmnTaskType){var Jc=ta(a,e);H=U(a,e);H=H.replace("strokeColor","fillColor");Jc=Jc.replace("fillColor","strokeColor");""==H&&(H="fillColor=#000000;");""==Jc&&(Jc="strokeColor=#ffffff;");g.style+=Jc+H+"part=1;"}else g.style+=ta(a,e)+U(a,e)+"part=1;";g.geometry.relative=!0;g.vertex=!0;v.insert(g)}var td=0;0!=a.bpmnActivityMarker1&&td++;
0!=a.bpmnActivityMarker2&&td++;var rb=0;1==td?rb=-7.5:2==td&&(rb=-19);if(0!=a.bpmnActivityMarker1){switch(a.bpmnActivityMarker1){case 1:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 2:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 3:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");
g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 4:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 5:g=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");g.geometry.offset=new mxPoint(rb,-17);H=U(a,e);H=H.replace("strokeColor","fillColor");""==H&&(H="fillColor=#000000;");g.style+=H;break;case 6:g=new mxCell("",
new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),g.geometry.offset=new mxPoint(rb,-18),g.style+=ta(a,e)+U(a,e)}g.geometry.relative=!0;g.vertex=!0;v.insert(g)}2==td&&(rb=5);if(0!=a.bpmnActivityMarker2){switch(a.bpmnActivityMarker2){case 1:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 2:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");g.geometry.offset=new mxPoint(rb,
-20);g.style+=ta(a,e)+U(a,e);break;case 3:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 4:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 5:g=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");g.geometry.offset=new mxPoint(rb,-17);
H=U(a,e);H=H.replace("strokeColor","fillColor");""==H&&(H="fillColor=#000000;");g.style+=H;break;case 6:g=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),g.geometry.offset=new mxPoint(rb,-18),g.style+=ta(a,e)+U(a,e)}g.geometry.relative=!0;g.vertex=!0;v.insert(g)}v.style+=h(v.style,a,e,v);break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;";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;"}v.style+=h(v.style,a,e,v,q);break;case "BPMNChoreography":try{var P=Pa(a.FillColor),fe=Md(P,.75),Ac=A(a.Name).match(/\d+/),Ra=Math.max(mxUtils.getSizeForString(a.Name.t,Ac?Ac[0]:"13",null,d-10).height,24);P="swimlaneFillColor="+fe+";";v.value=
k(a.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+P+"startSize="+Ra+";spacingLeft=3;spacingRight=3;fontStyle=0;"+p(a.Name,q);v.style+=h(v.style,a,e,v,q);var Kb=Ra;Ac=A(a.TaskName).match(/\d+/);var dc=a.TaskHeight?.75*a.TaskHeight:Math.max(mxUtils.getSizeForString(a.TaskName.t,Ac?Ac[0]:"13",null,d-10).height+15,24),uc=new mxCell("",new mxGeometry(0,Kb,d,dc),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");
uc.value=k(a.TaskName);uc.vertex=!0;v.insert(uc);uc.style+=p(a.TaskName,q);uc.style+=h(uc.style,a,e,uc,q);Kb+=dc;F=[];for(b=0;b<a.Fields;b++){var Pd=a["Participant"+(b+1)];Ac=A(Pd).match(/\d+/);dc=Math.max(mxUtils.getSizeForString(Pd.t,Ac?Ac[0]:"13",null,d-10).height,24);F[b]=new mxCell("",new mxGeometry(0,Kb,d,dc),"part=1;html=1;resizeHeight=0;fillColor=none;spacingTop=-1;spacingLeft=3;spacingRight=3;");Kb+=dc;F[b].vertex=!0;v.insert(F[b]);F[b].style+=p(Pd,q);F[b].style+=h(F[b].style,a,e,F[b],q);
F[b].value=k(Pd)}}catch(Ua){console.log(Ua)}break;case "BPMNConversation":v.style+="shape=hexagon;perimeter=hexagonPerimeter2;";v.value=k(a.Text);v.style=0==a.bpmnConversationType?v.style+Ec(a):v.style+"strokeWidth=2;";a.bpmnIsSubConversation&&(g=new mxCell("",new mxGeometry(.5,1,12,12),"shape=plus;part=1;"),g.geometry.offset=new mxPoint(-6,-17),g.style+=ta(a,e)+U(a,e),g.geometry.relative=!0,g.vertex=!0,v.insert(g));v.style+=h(v.style,a,e,v,q);break;case "BPMNGateway":v.style+="shape=mxgraph.bpmn.shape;perimeter=rhombusPerimeter;background=gateway;verticalLabelPosition=bottom;verticalAlign=top;";
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;"}v.style+=h(v.style,a,e,v);
v.value=k(a.Text);v.style+=p(a,q);break;case "BPMNData":v.style+="shape=note;size=14;";switch(a.bpmnDataType){case 0:v.value=k(a.Text);a.Text&&!a.Text.t&&(a.Text.t=" ");break;case 1:g=new mxCell("",new mxGeometry(.5,1,12,10),"shape=parallelMarker;part=1;");g.geometry.offset=new mxPoint(-6,-15);g.style+=ta(a,e)+U(a,e);g.geometry.relative=!0;g.vertex=!0;v.insert(g);break;case 2:g=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;");g.geometry.offset=new mxPoint(3,
3);g.style+=ta(a,e)+U(a,e);g.geometry.relative=!0;g.vertex=!0;v.insert(g);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";ja=new mxCell("",new mxGeometry(0,0,d,20),"strokeColor=none;fillColor=none;");ja.geometry.offset=new mxPoint(0,14);ja.geometry.relative=!0;ja.vertex=!0;v.insert(ja);ja.value=k(a.Text);ja.style+=p(a,q);break;case 3:g=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),g.geometry.offset=new mxPoint(3,3),g.style+=U(a,e),g.geometry.relative=
!0,g.vertex=!0,v.insert(g),H=U(a,e),H=H.replace("strokeColor","fillColor"),""==H&&(H="fillColor=#000000;"),g.style+=H,ja=new mxCell("",new mxGeometry(0,0,d,20),"strokeColor=none;fillColor=none;"),ja.geometry.offset=new mxPoint(0,14),ja.geometry.relative=!0,ja.vertex=!0,v.insert(ja),ja.value=k(a.Text),ja.style+=p(a,q)}v.style+=h(v.style,a,e,v);break;case "BPMNBlackPool":v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,0,d,c),"fillColor=#000000;strokeColor=none;opacity=30;");
g.vertex=!0;v.insert(g);break;case "DFDExternalEntityBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);g=new mxCell("",new mxGeometry(0,0,.95*d,.95*c),"part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);l=new mxCell("",new mxGeometry(.05*d,.05*c,.95*d,.95*c),"part=1;");l.vertex=!0;v.insert(l);l.value=k(a.Text);l.style+=p(a.Text,q);l.style+=h(l.style,a,e,l,q);break;case "GSDFDDataStoreBlock":v.value=k(a.Text);v.style+="shape=partialRectangle;right=0;"+p(a.Text,q);
v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,0,.2*d,c),"part=1;");g.vertex=!0;v.insert(g);g.value=k(a.Number);g.style+=p(a.Number,q);g.style+=h(g.style,a,e,g,q);break;case "OrgBlock":var Se="";for(la in a.Active)"Photo"!=la&&a.Active[la]&&(Se+=k(a[la],!0));if(a.Active.Photo){var ge=.4*d;v.style+="spacingLeft="+ge+";imageWidth="+(ge-4)+";imageHeight="+(ge-4)+";imageAlign=left;imageVerticalAlign=top;image="+r(a.Photo)}v.value=Se;v.style+=h(v.style,a,e,v,!0);break;case "DefaultTableBlock":try{tb=
a.RowHeights.length;Fb=a.ColWidths.length;var Qd=[],ud=[];for(b=0;b<tb;b++)Qd[b]=.75*a.RowHeights[b];for(M=0;M<Fb;M++)ud[M]=.75*a.ColWidths[M];v.style="group;dropTarget=0;pointerEvents=0;";var he=a.BandedColor1,ie=a.BandedColor2,Ff=a.BandedRows,Te=a.BandedCols,Rd=a.HideH,Gf=a.HideV,Ue=a.TextVAlign,Ve=a.FillColor,We=a.StrokeStyle;delete a.StrokeStyle;var Hf=hc(Ve,"fillOpacity"),Xe=a.LineColor,If=hc(Xe,"strokeOpacity");I=0;var vd={};for(b=0;b<tb;b++){G=0;c=Qd[b];for(M=0;M<Fb;M++){var zb=b+","+M;if(vd[zb])G+=
ud[M];else{var $a=a["CellFill_"+zb],je=a["NoBand_"+zb],Sd=a["CellSize_"+zb],ec=a["Cell_"+zb],Ye=a["Cell_"+zb+"_VAlign"],Jf=a["Cell_"+zb+"_TRotation"],Kf=a["CellBorderWidthH_"+zb],Lf=a["CellBorderColorH_"+zb],Mf=a["CellBorderStrokeStyleH_"+zb],Nf=a["CellBorderWidthV_"+zb],Of=a["CellBorderColorV_"+zb],Pf=a["CellBorderStrokeStyleV_"+zb],Ze=Rd?Of:Lf,$e=hc(Ze,"strokeOpacity"),af=Rd?Nf:Kf,Kc=Rd?Pf:Mf;$a=Ff&&!je?0==b%2?he:Te&&!je?0==M%2?he:ie:ie:Te&&!je?0==M%2?he:ie:$a;var Qf=hc($a,"fillOpacity")||Hf;d=
ud[M];var bf=c;Qc=d;for(var Ab=b+1;Ab<b+Sd.h;Ab++)if(null!=Qd[Ab]){bf+=Qd[Ab];vd[Ab+","+M]=!0;for(var Lc=M+1;Lc<M+Sd.w;Lc++)vd[Ab+","+Lc]=!0}for(Ab=M+1;Ab<M+Sd.w;Ab++)if(null!=ud[Ab])for(Qc+=ud[Ab],vd[b+","+Ab]=!0,Lc=b+1;Lc<b+Sd.h;Lc++)vd[Lc+","+Ab]=!0;var V=new mxCell("",new mxGeometry(G,I,Qc,bf),"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;"+(Gf?"left=0;right=0;":"")+(Rd?"top=0;bottom=0;":"")+ta({FillColor:$a||Ve})+Nb(mxConstants.STYLE_STROKECOLOR,Pa(Ze),Pa(Xe))+(null!=af?Nb(mxConstants.STYLE_STROKEWIDTH,
Math.round(.75*parseFloat(af)),"1"):"")+($e?$e:If)+Qf+"verticalAlign="+(Ye?Ye:Ue?Ue:"middle")+";"+be({StrokeStyle:Kc?Kc:We?We:"solid"})+(Jf?"horizontal=0;":""));V.vertex=!0;V.value=k(ec);V.style+=h(V.style,a,e,V,q)+(q?"fontSize=13;":A(ec)+L(ec)+X(ec)+wa(ec,V)+Ka(ec)+Va(ec)+Fa(ec)+Ca(ec))+Ga(ec)+qa(ec);v.insert(V);G+=d}}I+=c}}catch(Ua){console.log(Ua)}break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";"VSMDedicatedProcessBlock"==
f.Class?v.value=k(a.Text):"VSMProductionControlBlock"==f.Class&&(v.value=k(a.Resources));v.style+=h(v.style,a,e,v,q);"VSMDedicatedProcessBlock"==f.Class&&(g=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),g.geometry.relative=!0,g.geometry.offset=new mxPoint(4,-13),g.vertex=!0,v.insert(g),g.style+=h(g.style,a,e,g));ja=new mxCell("",new mxGeometry(0,0,d,15),"strokeColor=none;fillColor=none;part=1;");ja.vertex=!0;v.insert(ja);ja.value=k(a.Title);ja.style+=p(a.Title,
q);a.Text=null;break;case "VSMSharedProcessBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process_shared;spacingTop=-5;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);ja=new mxCell("",new mxGeometry(.1*d,.3*c,.8*d,.6*c),"part=1;");ja.vertex=!0;v.insert(ja);ja.value=k(a.Resource);ja.style+=p(a.Resource,q);ja.style+=h(ja.style,a,e,ja,q);break;case "VSMWorkcellBlock":v.style+="shape=mxgraph.lean_mapping.work_cell;verticalAlign=top;spacingTop=-2;";v.value=k(a.Text);v.style+=
h(v.style,a,e,v,q);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);pb=c;Qb=parseInt(a.Cells);P=h("part=1;",a,e,v);0<Qb&&(pb/=Qb);F=[];xa=[];for(b=1;b<=Qb;b++)F[b]=new mxCell("",new mxGeometry(0,(b-1)*pb,d,pb),P),F[b].vertex=!0,v.insert(F[b]),F[b].value=k(a["cell_"+b]),F[b].style+=p(a["cell_"+b],q);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;";
v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v);pb=c;Qb=parseInt(a.Cells);P=h("part=1;fillColor=none;",a,e,v);0<Qb&&(pb/=Qb);F=[];Ib=[];for(b=1;b<=Qb;b++)F[b]=new mxCell("",new mxGeometry(.5*d,(b-1)*pb,.5*d,pb),"shape=partialRectangle;left=0;"+P),F[b].vertex=!0,v.insert(F[b]),Ib[b]=new mxCell("",new mxGeometry(0,(b-1)*pb,d,pb),"strokeColor=none;fillColor=none;part=1;"),Ib[b].vertex=!0,v.insert(Ib[b]),Ib[b].value=
k(a["cell_"+b]),Ib[b].style+=p(a["cell_"+b],q);break;case "VSMFIFOLaneBlock":v.style+="shape=mxgraph.lean_mapping.fifo_sequence_flow;fontStyle=0;fontSize=18";v.style+=h(v.style,a,e,v);v.value="FIFO";break;case "VSMGoSeeProductionBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.17*d,.2*c,13,6),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;");g.vertex=!0;v.insert(g);
g.style+=h(g.style,a,e,g);break;case "VSMProductionKanbanBatchBlock":v.style+="strokeColor=none;fillColor=none;";P="shape=card;size=18;flipH=1;part=1;";g=new mxCell("",new mxGeometry(.1*d,0,.9*d,.8*c),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;"+P);g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);l=new mxCell("",new mxGeometry(.05*d,.1*c,.9*d,.8*c),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;"+P);l.vertex=!0;v.insert(l);l.style+=h(l.style,
a,e,l);var B=new mxCell("",new mxGeometry(0,.2*c,.9*d,.8*c),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;spacing=2;"+P);B.vertex=!0;v.insert(B);B.value=k(a.Text);B.style+=h(B.style,a,e,B,q);break;case "VSMElectronicInformationArrow":v.style="group;";v.value=k(a.Title);v.style+=p(a.Title,q);var aa=new mxCell("",new mxGeometry(0,0,d,c),"shape=mxgraph.lean_mapping.electronic_info_flow_edge;html=1;entryX=0;entryY=1;exitX=1;exitY=0;");aa.edge=!0;aa.geometry.relative=
1;m.addCell(aa,v,null,v,v);break;case "AWSRoundedRectangleContainerBlock2":case "AWSRoundedRectangleContainerBlock":v.style+="strokeColor=none;fillColor=none;";a.Spotfleet?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),l=new mxCell("",new mxGeometry(0,0,35,40),
"strokeColor=none;shape=mxgraph.aws3.spot_instance;fillColor=#f58536;"),l.geometry.relative=!0,l.geometry.offset=new mxPoint(30,0),l.vertex=!0,v.insert(l)):a.Beanstalk?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),l=new mxCell("",new mxGeometry(0,0,30,40),"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk;fillColor=#759C3E;"),
l.geometry.relative=!0,l.geometry.offset=new mxPoint(30,0),l.vertex=!0,v.insert(l)):a.EC2?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),l=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.ec2;fillColor=#F58534;"),l.geometry.relative=
!0,l.geometry.offset=new mxPoint(30,0),l.vertex=!0,v.insert(l)):a.Subnet?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),l=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.permissions;fillColor=#146EB4;"),l.geometry.relative=!0,l.geometry.offset=
new mxPoint(30,0),l.vertex=!0,v.insert(l)):a.VPC?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),l=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.virtual_private_cloud;fillColor=#146EB4;"),l.geometry.relative=!0,l.geometry.offset=new mxPoint(30,
0),l.vertex=!0,v.insert(l)):a.AWS?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),l=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.cloud;fillColor=#F58534;"),l.geometry.relative=!0,l.geometry.offset=new mxPoint(30,0),l.vertex=!0,v.insert(l)):
a.Corporate?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),l=new mxCell("",new mxGeometry(0,0,25,40),"strokeColor=none;shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;"),l.geometry.relative=!0,l.geometry.offset=new mxPoint(30,0),l.vertex=!0,v.insert(l)):
(v.style="resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;",v.value=k(a.Title),v.style+=h(v.style,a,e,v,q));break;case "AWSElasticComputeCloudBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.ec2;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=k(a.Title);v.style+=h(v.style,a,e,v,q);break;case "AWSRoute53Block2":v.style+="strokeColor=none;shape=mxgraph.aws3.route_53;verticalLabelPosition=bottom;align=center;verticalAlign=top;";
v.value=k(a.Title);v.style+=h(v.style,a,e,v,q);break;case "AWSRDBSBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.rds;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=k(a.Title);v.style+=h(v.style,a,e,v,q);break;case "NET_RingNetwork":v.style+="strokeColor=none;fillColor=none;";V=new mxCell("",new mxGeometry(.25*d,.25*c,.5*d,.5*c),"ellipse;html=1;strokeColor=#29AAE1;strokeWidth=2;");V.vertex=!0;v.insert(V);var va=[V];V.style+=ta(a,e);aa=new mxCell("",new mxGeometry(0,0,
0,0),"edgeStyle=none;rounded=0;endArrow=none;dashed=0;html=1;strokeColor=#29AAE1;strokeWidth=2;");aa.geometry.relative=!0;aa.edge=!0;ic(.5*d,0,aa,n,m,va,v,V);ic(.855*d,.145*c,aa,n,m,va,v,V);ic(d,.5*c,aa,n,m,va,v,V);ic(.855*d,.855*c,aa,n,m,va,v,V);ic(.5*d,c,aa,n,m,va,v,V);ic(.145*d,.855*c,aa,n,m,va,v,V);ic(0,.5*c,aa,n,m,va,v,V);ic(.145*d,.145*c,aa,n,m,va,v,V);break;case "NET_Ethernet":v.style+="strokeColor=none;fillColor=none;";V=new mxCell("",new mxGeometry(0,.5*c-10,d,20),"shape=mxgraph.networks.bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;fillColor=#29AAE1;strokeColor=#29AAE1;");
V.vertex=!0;v.insert(V);va=[V];aa=new mxCell("",new mxGeometry(0,0,0,0),"strokeColor=#29AAE1;edgeStyle=none;rounded=0;endArrow=none;html=1;strokeWidth=2;");aa.geometry.relative=!0;aa.edge=!0;va=[V];var wd=d/a.NumTopNodes;for(b=0;b<a.NumTopNodes;b++)ic(.5*wd+b*wd,0,aa,n,m,va,v,V);wd=d/a.NumBottomNodes;for(b=0;b<a.NumBottomNodes;b++)ic(.5*wd+b*wd,c,aa,n,m,va,v,V);break;case "EE_OpAmp":v.style+="shape=mxgraph.electrical.abstract.operational_amp_1;";v.value=k(a.Title);v.style+=h(v.style,a,e,v,q);a.ToggleCharge&&
(v.style+="flipV=1;");break;case "EIMessageChannelBlock":case "EIDatatypeChannelBlock":case "EIInvalidMessageChannelBlock":case "EIDeadLetterChannelBlock":case "EIGuaranteedDeliveryBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);"EIMessageChannelBlock"==f.Class?(g=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;"),g.geometry.offset=new mxPoint(.45*-d,0)):"EIDatatypeChannelBlock"==
f.Class?(g=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.dataChannel;fillColor=#818181;part=1;"),g.geometry.offset=new mxPoint(.45*-d,0)):"EIInvalidMessageChannelBlock"==f.Class?(g=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.invalidMessageChannel;fillColor=#818181;part=1;"),g.geometry.offset=new mxPoint(.45*-d,0)):"EIDeadLetterChannelBlock"==f.Class?(g=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.deadLetterChannel;fillColor=#818181;part=1;"),g.geometry.offset=
new mxPoint(.45*-d,0)):"EIGuaranteedDeliveryBlock"==f.Class&&(g=new mxCell("",new mxGeometry(.5,.5,20,27),"shape=cylinder;fillColor=#818181;part=1;"),g.geometry.offset=new mxPoint(-10,-7));g.geometry.relative=!0;g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);aa=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;");aa.geometry.relative=!0;aa.edge=!0;Ta(.15*d,.25*c,.85*d,.25*c,aa,n,m,va,v,V);break;case "EIChannelAdapterBlock":v.style+=
"verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,.07*c,.21*d,.86*c),"fillColor=#FFFF33;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);l=new mxCell("",new mxGeometry(.26*d,.09*c,.2*d,.82*c),"shape=mxgraph.eip.channel_adapter;fillColor=#4CA3D9;part=1;");l.vertex=!0;v.insert(l);l.style+=h(l.style,a,e,l);B=new mxCell("",new mxGeometry(1,.5,.35*d,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;");
B.geometry.relative=!0;B.geometry.offset=new mxPoint(.4*-d,-10);B.vertex=!0;v.insert(B);B.style+=h(B.style,a,e,B);K=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;");K.geometry.relative=!0;K.edge=!0;g.insertEdge(K,!0);l.insertEdge(K,!1);K.style+=U(a,e);n.push(m.addCell(K,null,null,null,null));J=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;");
J.geometry.relative=!0;J.edge=!0;l.insertEdge(J,!0);B.insertEdge(J,!1);n.push(m.addCell(J,null,null,null,null));break;case "EIMessageBlock":case "EICommandMessageBlock":case "EIDocumentMessageBlock":case "EIEventMessageBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);var xd=a.Messages,
ke=(c-17)/xd;l=[];aa=[];for(b=0;b<xd;b++){var yd=ke*(b+1)-3;l[b]=new mxCell("",new mxGeometry(d-20,yd,20,20),"part=1;");l[b].vertex=!0;v.insert(l[b]);switch(f.Class){case "EIMessageBlock":l[b].value=k(a["message_"+(b+1)]);l.style+=p(a["message_"+(b+1)],q);break;case "EICommandMessageBlock":l[b].value="C";l[b].style+="fontStyle=1;fontSize=13;";break;case "EIDocumentMessageBlock":l[b].value="D";l[b].style+="fontStyle=1;fontSize=13;";break;case "EIEventMessageBlock":l[b].value="E",l[b].style+="fontStyle=1;fontSize=13;"}l[b].style+=
h(l[b].style,a,e,l[b]);aa[b]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");aa[b].geometry.relative=!0;aa[b].edge=!0;g.insertEdge(aa[b],!1);l[b].insertEdge(aa[b],!0);aa[b].style+=h(aa[b].style,a,e,aa[b]);var Bc=[];Bc.push(new mxPoint(G+8.5,I+yd+10));aa[b].geometry.points=Bc;n.push(m.addCell(aa[b],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=
k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.45*d,.25*c,.3*d,.5*c),"part=1;fillColor=#ffffff");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);aa=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;");aa.geometry.relative=!0;aa.edge=!0;Ta(0,.5*c,.4*d,.5*c,aa,n,m,va,v,V);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=
k(a.Text);v.style+=h(v.style,a,e,v,q);var K=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;");K.geometry.relative=!0;K.edge=!0;Ta(.05*d,.5*c,.85*d,.5*c,K,n,m,va,v,V);var J=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;");J.geometry.relative=!0;J.edge=!0;Ta(.05*d,.5*c,.85*d,.15*c,J,n,m,
va,v,V);var ca=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;");ca.geometry.relative=!0;ca.edge=!0;Ta(.05*d,.5*c,.85*d,.85*c,ca,n,m,va,v,V);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);K=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;");
K.geometry.relative=!0;K.edge=!0;K.style+=U(a,e);Ta(.05*d,.5*c,.95*d,.5*c,K,n,m,va,v,V);J=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;");J.geometry.relative=!0;J.edge=!0;J.style+=U(a,e);Ta(.3*d,.1*c,.3*d,.5*c,J,n,m,va,v,V);ca=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;");
ca.geometry.relative=!0;ca.edge=!0;ca.style+=U(a,e);Ta(.7*d,.1*c,.7*d,.5*c,ca,n,m,va,v,V);var Ja=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;");Ja.geometry.relative=!0;Ja.edge=!0;Ja.style+=U(a,e);Ta(.5*d,.5*c,.5*d,.9*c,Ja,n,m,va,v,V);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,
e,v,q);g=new mxCell("",new mxGeometry(.2*d,.21*c,.16*d,.24*c),"part=1;fillColor=#ffffff;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);K=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;");K.geometry.relative=!0;K.edge=!0;Ta(.45*d,.33*c,.8*d,.33*c,K,n,m,va,v,V);l=new mxCell("",new mxGeometry(.64*d,.55*c,.16*d,.24*c),"part=1;fillColor=#ffffff;");l.vertex=!0;v.insert(l);l.style+=h(l.style,a,e,l);
J=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;");J.geometry.relative=!0;J.edge=!0;Ta(.55*d,.67*c,.2*d,.67*c,J,n,m,va,v,V);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.1*d,.15*c,.8*d,.7*c),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");g.vertex=!0;v.insert(g);g.style+=
h(g.style,a,e,g);break;case "EICorrelationIDBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.04*d,.06*c,.18*d,.28*c),"ellipse;fillColor=#808080;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);l=new mxCell("",new mxGeometry(.2*d,.56*c,.2*d,.32*c),"part=1;");l.vertex=!0;v.insert(l);l.value="A";l.style+="fontStyle=1;fontSize=13;";g.style+=h(g.style,a,e,g);K=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;");K.geometry.relative=!0;K.edge=!0;g.insertEdge(K,!1);l.insertEdge(K,!0);K.style+=h(K.style,a,e,K);Bc=[];Bc.push(new mxPoint(G+.13*d,I+.72*c));K.geometry.points=Bc;n.push(m.addCell(K,null,null,null,null));B=new mxCell("",new mxGeometry(.6*d,.06*c,.18*d,.28*c),"ellipse;fillColor=#808080;part=1;");B.vertex=!0;v.insert(B);B.style+=U(a,e)+Ec(a);B.style+=h(B.style,a,e,B);Y=new mxCell("",new mxGeometry(.76*
d,.56*c,.2*d,.32*c),"part=1;");Y.vertex=!0;v.insert(Y);Y.style+=U(a,e)+Xa(a,e,Y)+Ec(a)+be(a);Y.value="B";Y.style+="fontStyle=1;fontSize=13;fillColor=#ffffff;";Y.style+=h(Y.style,a,e,Y);J=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;");J.geometry.relative=!0;J.edge=!0;B.insertEdge(J,!1);Y.insertEdge(J,!0);J.style+=h(J.style,a,e,J);var cf=[];cf.push(new mxPoint(G+.69*d,I+.72*c));J.geometry.points=cf;n.push(m.addCell(J,
null,null,null,null));ca=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;endSize=6;part=1;");ca.geometry.relative=!0;ca.edge=!0;g.insertEdge(ca,!1);B.insertEdge(ca,!0);ca.style+=h(ca.style,a,e,ca);n.push(m.addCell(ca,null,null,null,null));break;case "EIMessageSequenceBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("1",new mxGeometry(.2*d,.4*c,.1*d,.19*c),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");
g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);l=new mxCell("2",new mxGeometry(.45*d,.4*c,.1*d,.19*c),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");l.vertex=!0;v.insert(l);l.style+=h(l.style,a,e,l);B=new mxCell("3",new mxGeometry(.7*d,.4*c,.1*d,.19*c),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");B.vertex=!0;v.insert(B);B.style+=h(B.style,a,e,B);K=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");g.insertEdge(K,!1);l.insertEdge(K,!0);K.geometry.points=
[new mxPoint(G+.375*d,I+.15*c)];K.geometry.relative=!0;K.edge=!0;K.style+=h(K.style,a,e,K);n.push(m.addCell(K,null,null,null,null));J=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");l.insertEdge(J,!1);B.insertEdge(J,!0);J.geometry.points=[new mxPoint(G+.675*d,I+.15*c)];J.geometry.relative=!0;J.edge=!0;J.style+=h(J.style,a,e,J);n.push(m.addCell(J,null,null,null,null));break;case "EIMessageExpirationBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.3*d,.2*c,.4*d,.6*c),"shape=mxgraph.ios7.icons.clock;fillColor=#ffffff;flipH=1;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);break;case "EIMessageBrokerBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.38*d,.42*c,.24*d,.16*c),"part=1;fillColor=#aefe7d;");g.vertex=!0;v.insert(g);g.style+=
h(g.style,a,e,g);l=new mxCell("",new mxGeometry(.38*d,0,.24*d,.16*c),"part=1;");l.vertex=!0;v.insert(l);l.style+=h(l.style,a,e,l);B=new mxCell("",new mxGeometry(.76*d,.23*c,.24*d,.16*c),"");B.vertex=!0;v.insert(B);B.style=l.style;var Y=new mxCell("",new mxGeometry(.76*d,.61*c,.24*d,.16*c),"");Y.vertex=!0;v.insert(Y);Y.style=l.style;var Td=new mxCell("",new mxGeometry(.38*d,.84*c,.24*d,.16*c),"");Td.vertex=!0;v.insert(Td);Td.style=l.style;var Ud=new mxCell("",new mxGeometry(0,.61*c,.24*d,.16*c),"");
Ud.vertex=!0;v.insert(Ud);Ud.style=l.style;var Vd=new mxCell("",new mxGeometry(0,.23*c,.24*d,.16*c),"");Vd.vertex=!0;v.insert(Vd);Vd.style=l.style;K=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(K,!1);l.insertEdge(K,!0);K.edge=!0;K.style+=h(K.style,a,e,K);n.push(m.addCell(K,null,null,null,null));J=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(J,!1);B.insertEdge(J,!0);J.edge=!0;J.style+=h(J.style,a,e,J);n.push(m.addCell(J,null,null,null,null));
ca=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(ca,!1);Y.insertEdge(ca,!0);ca.edge=!0;ca.style+=h(ca.style,a,e,ca);n.push(m.addCell(ca,null,null,null,null));Ja=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(Ja,!1);Td.insertEdge(Ja,!0);Ja.edge=!0;Ja.style+=h(Ja.style,a,e,Ja);n.push(m.addCell(Ja,null,null,null,null));var Cc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(Cc,!1);Ud.insertEdge(Cc,!0);Cc.edge=!0;Cc.style+=
h(Cc.style,a,e,Cc);n.push(m.addCell(Cc,null,null,null,null));var Dc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(Dc,!1);Vd.insertEdge(Dc,!0);Dc.edge=!0;Dc.style+=h(Dc.style,a,e,Dc);n.push(m.addCell(Dc,null,null,null,null));break;case "EIDurableSubscriberBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);K=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");
K.geometry.relative=!0;K.edge=!0;Ta(.05*d,.5*c,.6*d,.25*c,K,n,m,va,v,V);J=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");J.geometry.relative=!0;J.edge=!0;Ta(.05*d,.5*c,.6*d,.75*c,J,n,m,va,v,V);g=new mxCell("",new mxGeometry(.7*d,.1*c,.15*d,.32*c),"shape=mxgraph.eip.durable_subscriber;part=1;fillColor=#818181;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);break;case "EIControlBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.25*d,.25*c,.5*d,.5*c),"shape=mxgraph.eip.control_bus;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);break;case "EIMessageHistoryBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);B=new mxCell("",
new mxGeometry(d-45,30,30,20),"shape=mxgraph.mockup.misc.mail2;fillColor=#FFE040;part=1;");B.vertex=!0;v.insert(B);B.style+=h(B.style,a,e,B);ca=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");ca.geometry.relative=!0;ca.edge=!0;g.insertEdge(ca,!1);B.insertEdge(ca,!0);ca.style+=h(ca.style,a,e,ca);ca.geometry.points=[new mxPoint(G+8.5,I+40)];n.push(m.addCell(ca,null,null,null,null));Y=new mxCell("",new mxGeometry(d-45,
c-20,20,20),"part=1;");Y.vertex=!0;v.insert(Y);Y.value=k(a.message_0);Y.style+=p(a.message_0,q);Y.style+=h(Y.style,a,e,Y,q);Ja=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");Ja.geometry.relative=!0;Ja.edge=!0;g.insertEdge(Ja,!1);Y.insertEdge(Ja,!0);Ja.style+=h(Ja.style,a,e,Ja);Ja.geometry.points=[new mxPoint(G+8.5,I+c-10)];n.push(m.addCell(Ja,null,null,null,null));xd=a.HistoryMessages;ke=(c-75)/xd;l=[];aa=[];for(b=
0;b<xd;b++)yd=ke*(b+1)+30,l[b]=new mxCell("",new mxGeometry(d-20,yd,20,20),"part=1;"),l[b].vertex=!0,l[b].value=k(a["message_"+(b+1)]),l.style+=p(a["message_"+(b+1)],q),v.insert(l[b]),l[b].style+=h(l[b].style,a,e,l[b],q),aa[b]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;"),aa[b].geometry.relative=!0,aa[b].edge=!0,B.insertEdge(aa[b],!1),l[b].insertEdge(aa[b],!0),aa[b].style+=h(aa[b].style,a,e,aa[b]),Bc=[],Bc.push(new mxPoint(G+
d-30,I+yd+10)),aa[b].geometry.points=Bc,n.push(m.addCell(aa[b],null,null,null,null));break;case "Equation":LucidImporter.hasMath=!0;v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v);v.value="$$"+a.Latex+"$$";break;case "fpDoor":v.style+="shape=mxgraph.floorplan.doorRight;";0>a.DoorAngle&&(v.style+="flipV=1;");v.style+=h(v.style,a,e,v);break;case "fpWall":v.style+="labelPosition=center;verticalAlign=bottom;verticalLabelPosition=top;";v.value=k(a);v.style+=h(v.style,a,e,v,q);v.style=v.style.replace("rotation=180;",
"");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;";0<a.DoorAngle&&(v.style+="flipV=1;");v.style+=h(v.style,a,e,v);break;case "fpRestroomLights":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);g=new mxCell("",new mxGeometry(0,0,d,.25*c),"part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);l=[];var df=.02*d,le=(d-2*df)/a.LightCount,ef=.8*le;for(b=0;b<a.LightCount;b++)l[b]=new mxCell("",new mxGeometry(df+le*b+(le-ef)/2,.25*c,ef,.75*c),"ellipse;part=1;"),
l[b].vertex=!0,v.insert(l[b]),l[b].style+=h(l[b].style,a,e,l[b]);break;case "fpRestroomSinks":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);g=[];var ff=d/a.SinkCount;for(b=0;b<a.SinkCount;b++)g[b]=new mxCell("",new mxGeometry(ff*b,0,ff,c),"part=1;shape=mxgraph.floorplan.sink_2;"),g[b].vertex=!0,v.insert(g[b]),g[b].style+=h(g[b].style,a,e,g[b]);break;case "fpRestroomStalls":v.style+="strokeColor=none;fillColor=none;";var sb=.1*d/a.StallCount;g=new mxCell("",new mxGeometry(0,
0,sb,c),"fillColor=#000000;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);var Bb=(d-sb)/a.StallCount,me=[],zd=[],Ad=[],Bd=[];H=U(a,e);H=""==H?"#000000;":H.replace("stokreColor=","");var ne="part=1;fillColor="+H;ne+=h(ne,a,e,v);var oe=h("",a,e,v);for(b=0;b<a.StallCount;b++)me[b]=new mxCell("",new mxGeometry((b+1)*Bb,0,sb,c),ne),me[b].vertex=!0,v.insert(me[b]),Ad[b]=new mxCell("",new mxGeometry(sb+b*Bb+.05*(Bb-sb),c-.92*(Bb-sb),.9*(Bb-sb),.92*(Bb-sb)),"shape=mxgraph.floorplan.doorRight;flipV=1;part=1;"),
Ad[b].vertex=!0,v.insert(Ad[b]),Ad[b].style+=oe,zd[b]=new mxCell("",new mxGeometry(sb+b*Bb+.2*(Bb-sb),0,.6*(Bb-sb),.8*(Bb-sb)),"shape=mxgraph.floorplan.toilet;part=1;"),zd[b].vertex=!0,v.insert(zd[b]),zd[b].style+=oe,Bd[b]=new mxCell("",new mxGeometry(sb+b*Bb,.42*c,.15*(Bb-sb),.12*(Bb-sb)),"part=1;"),Bd[b].vertex=!0,v.insert(Bd[b]),Bd[b].style+=oe;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var Wd="edgeStyle=none;endArrow=none;part=1;";H=U(a,e);H=""==H?"#000000;":H.replace("strokeColor=",
"");var Mc="shape=triangle;part=1;fillColor="+H;Mc+=h(Mc,a,e,v);K=new mxCell("",new mxGeometry(0,0,0,0),Wd);K.geometry.relative=!0;K.edge=!0;Ta(0,.5*c,.65*d,.5*c,K,n,m,va,v,V);var O=c/a.numLines;J=[];var Nc=[];for(b=0;b<a.numLines;b++)J[b]=new mxCell("",new mxGeometry(0,0,0,0),Wd),J[b].geometry.relative=!0,J[b].edge=!0,Ta(.65*d,.5*c,.96*d,(b+.5)*O,J[b],n,m,va,v,V),Nc[b]=new mxCell("",new mxGeometry(.95*d,(b+.2)*O,.05*d,.6*O),Mc),Nc[b].vertex=!0,v.insert(Nc[b]);break;case "PEMultilines":v.style+="strokeColor=none;fillColor=none;";
Wd="edgeStyle=none;endArrow=none;part=1;";H=U(a,e);H=""==H?"#000000;":H.replace("strokeColor=","");Mc="shape=triangle;part=1;fillColor="+H;Mc+=h(Mc,a,e,v);O=c/a.numLines;J=[];Nc=[];for(b=0;b<a.numLines;b++)J[b]=new mxCell("",new mxGeometry(0,0,0,0),Wd),J[b].geometry.relative=!0,J[b].edge=!0,Ta(0,(b+.5)*O,.96*d,(b+.5)*O,J[b],n,m,va,v,V),Nc[b]=new mxCell("",new mxGeometry(.95*d,(b+.2)*O,.05*d,.6*O),Mc),Nc[b].vertex=!0,v.insert(Nc[b]);break;case "PEVesselBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
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;perimeter=hexagonPerimeter2;size=0.10;direction=south;"}v.style+=h(v.style,a,e,v,q);break;case "PEClosedTankBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";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);");v.style+=h(v.style,
a,e,v,q);break;case "PEColumnBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";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;";v.style+=h(v.style,a,e,v,q);break;case "PECompressorTurbineBlock":v.style+="strokeColor=none;fillColor=none;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,.2*c,d,.6*c),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");
g.vertex=!0;v.insert(g);g.style+=P;g.style+=h(g.style,a,e,g);P="endSize=4;endArrow=block;endFill=1;";0==a.compressorType?(K=new mxCell("",new mxGeometry(0,0,0,0),""),K.geometry.relative=!0,K.edge=!0,K.style+=P,K.style+=h(K.style,a,e,K),Ta(0,0,0,.2*c,K,n,m,va,v,V),J=new mxCell("",new mxGeometry(0,0,0,0),""),J.geometry.relative=!0,J.edge=!0,J.style+=P,J.style+=h(J.style,a,e,J),Ta(d,.67*c,d,c,J,n,m,va,v,V)):(g.style+="flipH=1;",K=new mxCell("",new mxGeometry(0,0,0,0),""),K.geometry.relative=!0,K.edge=
!0,K.style+=P,K.style+=h(K.style,a,e,K),Ta(0,0,0,.33*c,K,n,m,va,v,V),J=new mxCell("",new mxGeometry(0,0,0,0),""),J.geometry.relative=!0,J.edge=!0,J.style+=P,J.style+=h(J.style,a,e,J),Ta(d,.8*c,d,c,J,n,m,va,v,V));1==a.centerLineType&&(ca=new mxCell("",new mxGeometry(0,0,0,0),""),ca.geometry.relative=!0,ca.edge=!0,ca.style+=P,ca.style+=h(ca.style,a,e,ca),Ta(.2*d,.5*c,.8*d,.5*c,ca,n,m,va,v,V));break;case "PEMotorDrivenTurbineBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";v.value=k(a.Text);
v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.2*d,.2*c,.6*d,.6*c),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);break;case "PEIndicatorBlock":case "PEIndicator2Block":case "PESharedIndicatorBlock":case "PEComputerIndicatorBlock":case "PESharedIndicator2Block":case "PEProgrammableIndicatorBlock":switch(f.Class){case "PEIndicatorBlock":v.style+="shape=mxgraph.pid2inst.discInst;";break;case "PEIndicator2Block":v.style+=
(function(){function u(f){if(f&&null!=LucidImporter.imgSrcRepl){var p=LucidImporter.imgSrcRepl.attMap;if(p[f])f=p[f];else{p=LucidImporter.imgSrcRepl.imgRepl;for(var n=0;n<p.length;n++){var e=p[n];f=f.replace(e.searchVal,e.replVal)}LucidImporter.hasExtImgs=!0}}return f}function z(f){gb="";try{if(f){var p=null;LucidImporter.advImpConfig&&LucidImporter.advImpConfig.fontMapping&&(p=LucidImporter.advImpConfig.fontMapping[f]);if(p){for(var n in p)gb+=n+"="+p[n]+";";return p.fontFamily?"font-family: "+p.fontFamily:
""}if("Liberation Sans"!=f)return gb="fontFamily="+f+";","font-family: "+f+";"}}catch(e){}return""}function B(f){return Math.round(10*f)/10}function D(f,p,n){function e(da,Da){var qa="",ra=da.t,Lb=da.l||{v:ra&&"ul"==ra.v?"auto":"decimal"};if(null==ra||0!=Ea&&Ea==ra.v&&Ba==Lb.v)null==ra&&(Ea&&(qa+=C(!0),Ea=!1),qa+='<div style="',ua.push("div"));else{Ea&&(qa+=C(!0));Ea=ra.v;Ba=Lb.v;"ul"==ra.v?(qa+="<ul ",ua.push("ul")):(qa+="<ol ",ua.push("ol"));qa+='style="margin: 0px; padding-left: 10px;list-style-position: inside; list-style-type:';
if("hl"==ra.v)qa+="upper-roman";else switch(Lb.v){case "auto":qa+="disc";break;case "inv":qa+="circle";break;case "disc":qa+="circle";break;case "trib":qa+="square";break;case "square":qa+="square";break;case "dash":qa+="square";break;case "heart":qa+="disc";break;default:qa+="decimal"}qa+='">'}if(null!=ra){qa+='<li style="text-align:'+(da.a?da.a.v:n.TextAlign||"center")+";";if(null!=Da){if(Da.c)var X=Da.c.v;if(Da.s)var rb=Da.s.v}try{var Oa=R[ca],mc=ka[sa];Da=ca;if(Oa&&mc&&Oa.s<mc.e)for(var rc=Oa.s;null!=
Oa&&Oa.s==rc;)"s"==Oa.n?rb=Oa.v:"c"==Oa.n&&(X=Oa.v),Oa=R[++Da]}catch(Ab){console.log(Ab)}X=Z(X);null!=X&&(X=X.substring(0,7),qa+="color:"+X+";");rb&&(qa+="font-size:"+B(.75*rb)+"px;");qa+='">';ua.push("li");qa+='<span style="';ua.push("span")}Ea||(rb=X=da.a?da.a.v:n.TextAlign||"center","left"==X?rb="flex-start":"right"==X&&(rb="flex-end"),qa+="display: flex; justify-content: "+rb+"; text-align: "+X+"; align-items: baseline; font-size: 0; line-height: 1.25;");da.il&&(qa+="margin-left: "+Math.max(0,
B(.75*da.il.v-(Ea?28:0)))+"px;");da.ir&&(qa+="margin-right: "+B(.75*da.ir.v)+"px;");da.mt&&(qa+="margin-top: "+B(.75*da.mt.v)+"px;");da.mb&&(qa+="margin-bottom: "+B(.75*da.mb.v)+"px;");qa+='margin-top: -2px;">';Ea||(qa+="<span>",ua.push("span"));return qa}function a(da){if(mxUtils.isEmptyObject(da))return"";var Da="",qa=0;if(da.lk){var ra=da.lk;null!=ra.v&&0<ra.v.length&&(Da+='<a href="'+L(ra.v[0])+'">',ta.push("a"),qa++)}Da+='<span style="';ta.push("span");qa++;Da+="font-size:"+(da.s&&da.s.v?B(.75*
da.s.v):"13")+"px;";da.c&&(ra=Z(da.c.v),null!=ra&&(ra=ra.substring(0,7),Da+="color:"+ra+";"));if(da.b&&da.b.v||da.fc&&da.fc.v&&0==da.fc.v.indexOf("Bold"))Da+="font-weight: bold;";da.i&&da.i.v&&(Da+="font-style: italic;");da.ac&&da.ac.v&&(Da+="text-transform: uppercase;");ra=null;da.f?ra=da.f.v:n.Font&&(ra=n.Font);Da+=z(ra);ra=[];da.u&&da.u.v&&ra.push("underline");da.k&&da.k.v&&ra.push("line-through");0<ra.length&&(Da+="text-decoration: "+ra.join(" ")+";");Da+='">';Ka.push(qa);return Da}function C(da){var Da=
"";do{var qa=ua.pop();if(!da&&Ea&&("ul"==qa||"ol"==qa)){ua.push(qa);break}Da+="</"+qa+">"}while(0<ua.length);return Da}function d(da,Da,qa,ra){da=da?da.substring(Da,qa):"";Ea&&(da=da.trim());0==ta.length&&0<da.length&&(da=a({dummy:1})+da);da=da.replace(/</g,"&lt;").replace(/>/g,"&gt;");do for(Da=Ka.pop(),qa=0;qa<Da;qa++){var Lb=ta.pop();da+="</"+Lb+">"}while(ra&&0<ta.length);return da}var c={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,l:!0},N={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!0,k:!0,f:!0,ac:!0};p.sort(function(da,
Da){return da.s-Da.s});var R=p.filter(function(da){return N[da.n]});R[0]&&0!=R[0].s&&R.unshift({s:0,n:"dummy",v:"",e:R[0].s});p=p.filter(function(da){return c[da.n]});for(var J=[0],oa=0;0<(oa=f.indexOf("\n",oa));)oa++,J.push(oa);for(var ca=oa=0;ca<p.length;ca++){if(p[ca].s>J[oa])p.splice(ca,0,{s:J[oa],n:"a",v:n.TextAlign||"center"});else{for(var ea=0;ca+ea<p.length&&p[ca+ea].s==J[oa];)ea++;1<ea&&(ca+=ea-1)}oa++}null!=J[oa]&&p.push({s:J[oa],n:"a",v:n.TextAlign||"center"});J="";var ka=R.slice();ka.sort(function(da,
Da){return da.e-Da.e});var sa=ca=0;oa=0;ea={};for(var fa={},ta=[],Ka=[],ua=[],ma=!1,Ea=!1,Ba,Ca=0,b=0,za=f.length,Wa=!0;oa<p.length||Wa;){Wa=!1;if(oa<p.length){var wa=p[oa],Ia=p[oa].s;ma&&(fa={},J+=d(f,Ca,za,!0),b=Ca=za,J+=C());for(;null!=wa&&wa.s==Ia;)fa[wa.n]=wa,wa=p[++oa];za=null!=wa?wa.s:f.length;J+=e(fa,ea);ma&&(J+=a(ea));ma=!0}for(;ca>=sa&&(ca<R.length||sa<ka.length);)if(wa=R[ca],Ia=ka[sa],wa&&Ia&&wa.s<Ia.e){if(wa.s>=za)break;Ca=wa.s;0<Ca-b&&(J+=a(ea)+d(f,b,Ca),b=Ca);for(;null!=wa&&wa.s==Ca;)ea[wa.n]=
wa,wa=R[++ca];J+=a(ea)}else if(Ia){if(Ia.e>za)break;b=Ia.e;do delete ea[Ia.n],Ia=ka[++sa];while(null!=Ia&&Ia.e==b);J+=d(f,Ca,b);Ca=b;0!=Ka.length||null!=wa&&wa.s==b||(R.splice(ca,0,{s:b,n:"dummy",v:""}),ka.splice(sa,0,{e:wa?wa.s:za,n:"dummy",v:""}))}else break}J+=d(null,null,null,!0);ma&&(b!=za&&(J+=a({dummy:1})+d(f,b,za)),J+=C(!0));return J}function l(f,p){t=!1;var n=null!=f.Text&&f.Text.t?f.Text:null!=f.Value&&f.Value.t?f.Value:null!=f.Lane_0&&f.Lane_0.t?f.Lane_0:null;null==n&&null!=f.State?f.State.t&&
(n=f.State):null==n&&null!=f.Note?f.Note.t&&(n=f.Note):null==n&&null!=f.Title?f.Title.t&&(n=f.Title):f.t&&(n=f);null==n&&null!=f.TextAreas?null!=f.TextAreas.Text&&null!=f.TextAreas.Text.Value&&f.TextAreas.Text.Value.t&&(n=f.TextAreas.Text.Value):null==n&&null!=f.t0&&f.t0.t&&(n=f.t0);if(null!=n){if(null!=n.t){var e=n.t;e=e.replace(/\u2028/g,"\n");n=n.m;try{/ /.test(e)&&(LucidImporter.hasUnknownShapes=!0);for(var a=0;a<n.length;a++)if(0<n[a].s||null!=n[a].e&&n[a].e<e.length||"t"==n[a].n||"ac"==n[a].n||
"lk"==n[a].n){t=!0;break}if(t=t||p)return D(e,n,f)}catch(C){console.log(C)}e=e.replace(/</g,"&lt;");return e=e.replace(/>/g,"&gt;")}if(null!=n.Value&&null!=n.Value.t)return n.Value.t=n.Value.t.replace(/</g,"&lt;"),n.Value.t=n.Value.t.replace(/>/g,"&gt;"),n.Value.t}return""}function x(f){return null!=f.Action?f.Action:f}function w(f){if(null!=f.Text){if(null!=f.Text.m)return f.Text.m}else if(null!=f.TextAreas){if(null!=f.TextAreas.Text&&null!=f.TextAreas.Text.Value&&null!=f.TextAreas.Text.Value.m)return f.TextAreas.Text.Value.m}else{if(null!=
f.m)return f.m;if(null!=f.Title){if(null!=f.Title.m)return f.Title.m}else if(null!=f.State){if(null!=f.State.m)return f.State.m}else if(null!=f.Note&&null!=f.Note.m)return f.Note.m}return null}function q(f,p){f="whiteSpace=wrap;"+(p?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+gb:F(f)+U(f)+V(f)+ia(f)+Fa(f)+Pa(f)+Xa(f)+Ja(f)+k(f))+r(f)+A(f)+Ub(mxConstants.STYLE_ALIGN,f.TextAlign,"center");gb="";return f}function h(f,p,n,e,a,C){C=null==C?!1:C;var d="",c=!1,N=!1;if(null!=f)if(C){C=f.split(";");
f="";for(var R=0;R<C.length;R++)"fillColor=none"==C[R]?N=!0:"strokeColor=none"==C[R]?c=!0:""!=C[R]&&(f+=C[R]+";")}else""!=f&&";"!=f.charAt(f.length-1)&&(d=";");d+=(Uc(f,"whiteSpace")?"":"whiteSpace=wrap;")+(a?(Uc(f,"overflow")?"":"overflow=block;blockSpacing=1;")+(Uc(f,"html")?"":"html=1;")+"fontSize=13;"+gb:I(mxConstants.STYLE_FONTSIZE,f,p,n,e)+I(mxConstants.STYLE_FONTFAMILY,f,p,n,e)+I(mxConstants.STYLE_FONTCOLOR,f,p,n,e)+I(mxConstants.STYLE_FONTSTYLE,f,p,n,e)+I(mxConstants.STYLE_ALIGN,f,p,n,e)+
I(mxConstants.STYLE_SPACING_LEFT,f,p,n,e)+I(mxConstants.STYLE_SPACING_RIGHT,f,p,n,e)+I(mxConstants.STYLE_SPACING_TOP,f,p,n,e)+I(mxConstants.STYLE_SPACING_BOTTOM,f,p,n,e))+I(mxConstants.STYLE_ALIGN+"Global",f,p,n,e)+I(mxConstants.STYLE_SPACING,f,p,n,e)+I(mxConstants.STYLE_VERTICAL_ALIGN,f,p,n,e)+I(mxConstants.STYLE_STROKECOLOR,f,p,n,e)+I(mxConstants.STYLE_OPACITY,f,p,n,e)+I(mxConstants.STYLE_ROUNDED,f,p,n,e)+I(mxConstants.STYLE_ROTATION,f,p,n,e)+I(mxConstants.STYLE_FLIPH,f,p,n,e)+I(mxConstants.STYLE_FLIPV,
f,p,n,e)+I(mxConstants.STYLE_SHADOW,f,p,n,e)+I(mxConstants.STYLE_FILLCOLOR,f,p,n,e)+I(mxConstants.STYLE_DASHED,f,p,n,e)+I(mxConstants.STYLE_STROKEWIDTH,f,p,n,e)+I(mxConstants.STYLE_IMAGE,f,p,n,e)+I(mxConstants.STYLE_POINTER_EVENTS,f,p,n,e);N&&!Uc(d,mxConstants.STYLE_FILLCOLOR)&&(d+="fillColor=none;");c&&!Uc(d,mxConstants.STYLE_STROKECOLOR)&&(d+="strokeColor=none;");gb="";return d}function I(f,p,n,e,a){if(!Uc(p,f))switch(f){case mxConstants.STYLE_FONTSIZE:return F(n);case mxConstants.STYLE_FONTFAMILY:return U(n);
case mxConstants.STYLE_FONTCOLOR:return V(n);case mxConstants.STYLE_FONTSTYLE:return ia(n);case mxConstants.STYLE_ALIGN:return Fa(n);case mxConstants.STYLE_ALIGN+"Global":return Ub(mxConstants.STYLE_ALIGN,n.TextAlign,"center");case mxConstants.STYLE_SPACING_LEFT:return Pa(n);case mxConstants.STYLE_SPACING_RIGHT:return Xa(n);case mxConstants.STYLE_SPACING_TOP:return Ja(n);case mxConstants.STYLE_SPACING_BOTTOM:return k(n);case mxConstants.STYLE_SPACING:return r(n);case mxConstants.STYLE_VERTICAL_ALIGN:return A(n);
case mxConstants.STYLE_STROKECOLOR:return y(n,e);case mxConstants.STYLE_OPACITY:return G(n,e,a);case mxConstants.STYLE_ROUNDED:return f=!a.edge&&!a.style.includes("rounded")&&null!=n.Rounding&&0<n.Rounding?"rounded=1;absoluteArcSize=1;arcSize="+B(.75*n.Rounding)+";":"",f;case mxConstants.STYLE_ROTATION:return Q(n,e,a);case mxConstants.STYLE_FLIPH:return f=n.FlipX?"flipH=1;":"",f;case mxConstants.STYLE_FLIPV:return f=n.FlipY?"flipV=1;":"",f;case mxConstants.STYLE_SHADOW:return K(n);case mxConstants.STYLE_FILLCOLOR:return ja(n,
e);case mxConstants.STYLE_DASHED:return Fb(n);case mxConstants.STYLE_STROKEWIDTH:return sb(n);case mxConstants.STYLE_IMAGE:return nc(n,e);case mxConstants.STYLE_POINTER_EVENTS:return n.Magnetize?"container=1;pointerEvents=0;collapsible=0;recursiveResize=0;":""}return""}function F(f){f=w(f);if(null!=f)for(var p=0;p<f.length;){var n=f[p];if("s"==n.n&&n.v)return"fontSize="+B(.75*n.v)+";";p++}return"fontSize=13;"}function U(f){var p=w(f);if(null!=p)for(var n=0;n<p.length;n++)if("f"==p[n].n&&p[n].v){var e=
p[n].v;break}!e&&f.Font&&(e=f.Font);z(e);return gb}function L(f){return"ext"==f.tp?f.url:"ml"==f.tp?"mailto:"+f.eml:"pg"==f.tp?"data:page/id,"+(LucidImporter.pageIdsMap[f.id]||0):"c"==f.tp?"data:confluence/id,"+f.ccid:null}function V(f){f=w(f);if(null!=f)for(var p=0;p<f.length;){var n=f[p];if("c"==n.n&&null!=n.v)return f=Z(n.v).substring(0,7),"#000000"==f&&(f="default"),mxConstants.STYLE_FONTCOLOR+"="+f+";";p++}return""}function ia(f){return Qa(w(f))}function Qa(f){if(null!=f){var p=0,n=!1;if(null!=
f)for(var e=0;!n&&e<f.length;){var a=f[e];"b"==a.n?null!=a.v&&a.v&&(n=!0,p+=1):"fc"==a.n&&"Bold"==a.v&&(n=!0,p+=1);e++}n=!1;if(null!=f)for(e=0;!n&&e<f.length;)a=f[e],"i"==a.n&&null!=a.v&&a.v&&(n=!0,p+=2),e++;n=!1;if(null!=f)for(e=0;!n&&e<f.length;)a=f[e],"u"==a.n&&null!=a.v&&a.v&&(n=!0,p+=4),e++;if(0<p)return"fontStyle="+p+";"}return""}function Fa(f){f=w(f);if(null!=f)for(var p=0;p<f.length;){var n=f[p];if("a"==n.n&&null!=n.v)return"align="+n.v+";";p++}return""}function Pa(f){f=w(f);if(null!=f)for(var p=
0;p<f.length;){var n=f[p];if(null!=n.v&&"il"==n.n)return"spacingLeft="+B(.75*n.v)+";";p++}return""}function Xa(f){f=w(f);if(null!=f)for(var p=0;p<f.length;){var n=f[p];if("ir"==n.n&&null!=n.v)return"spacingRight="+B(.75*n.v)+";";p++}return""}function Ja(f){f=w(f);if(null!=f)for(var p=0;p<f.length;){var n=f[p];if("mt"==n.n&&null!=n.v)return"spacingTop="+B(.75*n.v)+";";p++}return""}function k(f){f=w(f);if(null!=f)for(var p=0;p<f.length;){var n=f[p];if("mb"==n.n&&null!=n.v)return"spacingBottom="+B(.75*
n.v)+";";p++}return""}function r(f){return"number"===typeof f.InsetMargin?"spacing="+Math.max(0,B(.75*f.InsetMargin))+";":""}function A(f){return null!=f.Text_VAlign&&"string"===typeof f.Text_VAlign?"verticalAlign="+f.Text_VAlign+";":null!=f.Title_VAlign&&"string"===typeof f.Title_VAlign?"verticalAlign="+f.Title_VAlign+";":Ub(mxConstants.STYLE_VERTICAL_ALIGN,f.TextVAlign,"middle")}function y(f,p){return 0==f.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":Ub(mxConstants.STYLE_STROKECOLOR,P(f.LineColor),
"#000000")}function E(f){return null!=f?mxConstants.STYLE_FILLCOLOR+"="+P(f)+";":""}function S(f){return null!=f?"swimlaneFillColor="+P(f)+";":""}function G(f,p,n){p="";if("string"===typeof f.LineColor&&(f.LineColor=Z(f.LineColor),7<f.LineColor.length)){var e="0x"+f.LineColor.substring(f.LineColor.length-2,f.LineColor.length);n.style.includes("strokeOpacity")||(p+="strokeOpacity="+Math.round(parseInt(e)/2.55)+";")}"string"===typeof f.FillColor&&(f.FillColor=Z(f.FillColor),7<f.FillColor.length&&(f=
"0x"+f.FillColor.substring(f.FillColor.length-2,f.FillColor.length),n.style.includes("fillOpacity")||(p+="fillOpacity="+Math.round(parseInt(f)/2.55)+";")));return p}function Q(f,p,n){var e="";if(null!=f.Rotation){f=mxUtils.toDegree(parseFloat(f.Rotation));var a=!0;0!=f&&p.Class&&("UMLSwimLaneBlockV2"==p.Class||(0<=p.Class.indexOf("Rotated")||-90==f||270==f)&&(0<=p.Class.indexOf("Pool")||0<=p.Class.indexOf("SwimLane")))?(f+=90,n.geometry.rotate90(),n.geometry.isRotated=!0,a=!1):0<=mxUtils.indexOf(uf,
p.Class)?(f-=90,n.geometry.rotate90()):0<=mxUtils.indexOf(vf,p.Class)&&(f+=180);0!=f&&(e+="rotation="+f+";");a||(e+="horizontal=0;")}return e}function K(f){return null!=f.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function Z(f){if(f){if("object"===typeof f)try{f=f.cs[0].c}catch(p){console.log(p),f="#ffffff"}"rgb"==f.substring(0,3)?f="#"+f.match(/\d+/g).map(function(p){p=parseInt(p).toString(16);return(1==p.length?"0":"")+p}).join(""):"#"!=f.charAt(0)&&(f="#"+f)}return f}function P(f){return(f=Z(f))?
f.substring(0,7):null}function aa(f,p){return(f=Z(f))&&7<f.length?p+"="+Math.round(parseInt("0x"+f.substr(7))/2.55)+";":""}function ja(f,p){if(null!=f.FillColor)if("object"===typeof f.FillColor){if(null!=f.FillColor.cs&&1<f.FillColor.cs.length)return Ub(mxConstants.STYLE_FILLCOLOR,P(f.FillColor.cs[0].c))+Ub(mxConstants.STYLE_GRADIENTCOLOR,P(f.FillColor.cs[1].c))}else return"string"===typeof f.FillColor?Ub(mxConstants.STYLE_FILLCOLOR,P(f.FillColor),"#FFFFFF"):Ub(mxConstants.STYLE_FILLCOLOR,"none");
return""}function Fb(f){return"dotted"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 4;":"dashdot"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5;":"dashdotdot"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5 1 5;":"dotdotdot"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 2;":"longdash"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=16 6;":"dashlongdash"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 6 16 6;":"dashed24"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=3 8;":
"dashed32"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=6 5;":"dashed44"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=8 8;":null!=f.StrokeStyle&&"dashed"==f.StrokeStyle.substring(0,6)?"dashed=1;fixDash=1;":""}function sb(f){return null!=f.LineWidth?Ub(mxConstants.STYLE_STROKEWIDTH,B(.75*parseFloat(f.LineWidth)),"1"):""}function nc(f,p,n){var e="";f.FillColor&&f.FillColor.url?(n=f.FillColor.url,"fill"==f.FillColor.pos&&(e="imageAspect=0;")):"ImageSearchBlock2"==p.Class?n=f.URL:"UserImage2Block"==
p.Class&&null!=f.ImageFillProps&&null!=f.ImageFillProps.url&&(n=f.ImageFillProps.url);return null!=n?"image="+u(n)+";"+e:""}function Bc(f,p,n){null!=p.Link&&0<p.Link.length&&n.setAttributeForCell(f,"link",L(p.Link[0]));null!=p.NoteHint&&p.NoteHint.t&&n.setAttributeForCell(f,"Notes",p.NoteHint.t);var e=[],a=n.convertValueToString(f),C=!1;if(null!=a){for(var d=0;match=wf.exec(a);){var c=match[0];C=!0;if(2<c.length){var N=c.substring(2,c.length-2);"documentName"==N?N="filename":"pageName"==N?N="page":
"totalPages"==N?N="pagecount":"page"==N?N="pagenumber":"date:"==N.substring(0,5)?N="date{"+N.substring(5).replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy")+"}":"lastModifiedTime"==N.substring(0,16)?N=N.replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy"):"i18nDate:"==N.substring(0,9)&&(N="date{"+N.substring(9).replace(/i18nShort/g,"shortDate").replace(/i18nMediumWithTime/g,"mmm d, yyyy hh:MM TT")+"}");N="%"+N+"%";e.push(a.substring(d,match.index)+(null!=N?N:c));d=
match.index+c.length}}C&&(e.push(a.substring(d)),n.setAttributeForCell(f,"label",e.join("")),n.setAttributeForCell(f,"placeholders","1"))}for(var R in p)if(p.hasOwnProperty(R)&&R.toString().startsWith("ShapeData_"))try{var J=p[R],oa=mxUtils.trim(J.Label).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,"");e=f;a=oa;var ca=J.Value;C=n;d=a;for(c=0;null!=C.getAttributeForCell(e,d);)c++,d=a+"_"+c;C.setAttributeForCell(e,d,null!=ca?ca:"")}catch(ea){window.console&&console.log("Ignored "+R+
":",ea)}}function Ld(f,p,n,e,a,C){var d=x(p);if(null!=d){var c=Md[d.Class];null!=c?(f.style+=c,";"!=f.style.charAt(f.style.length-1)&&(f.style+=";")):f.edge||(console.log("No mapping found for: "+d.Class),LucidImporter.hasUnknownShapes=!0);c=null!=d.Properties?d.Properties:d;if(null!=c&&(f.value=C?"":l(c),f.style+=h(f.style,c,d,f,t,!0),f.style.includes("strokeColor")||(f.style+=y(c,d)),Bc(f,c,n),c.Title&&c.Title.t&&c.Text&&c.Text.t&&"ExtShape"!=d.Class.substr(0,8)&&(n=f.geometry,n=new mxCell(l(c.Title),
new mxGeometry(0,n.height,n.width,10),"strokeColor=none;fillColor=none;"),n.vertex=!0,f.insert(n),n.style+=q(c.Title,t)),f.edge)){f.style=null!=c.Rounding&&"diagonal"!=c.Shape?f.style+("rounded=1;arcSize="+c.Rounding+";"):f.style+"rounded=0;";if(n="curve"==c.Shape)f.style+="curved=1;";else if("diagonal"!=c.Shape)if(null!=c.ElbowPoints&&0<c.ElbowPoints.length)for(f.geometry.points=[],d=0;d<c.ElbowPoints.length;d++)f.geometry.points.push(new mxPoint(Math.round(.75*c.ElbowPoints[d].x+sc),Math.round(.75*
c.ElbowPoints[d].y+tc)));else if("elbow"==c.Shape||null!=c.Endpoint1.Block&&null!=c.Endpoint2.Block)f.style+="edgeStyle=orthogonalEdgeStyle;";if(c.LineJumps||LucidImporter.globalProps.LineJumps)f.style+="jumpStyle=arc;";null!=c.Endpoint1.Style&&(C=Ce[c.Endpoint1.Style],null!=C?(C=C.replace(/xyz/g,"start"),f.style+="startArrow="+C+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+c.Endpoint1.Style)));null!=c.Endpoint2.Style&&(C=Ce[c.Endpoint2.Style],null!=
C?(C=C.replace(/xyz/g,"end"),f.style+="endArrow="+C+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+c.Endpoint2.Style)));C=null!=c.ElbowControlPoints&&0<c.ElbowControlPoints.length?c.ElbowControlPoints:c.Joints;if(n&&null!=c.BezierJoints&&0<c.BezierJoints.length){C=[];n=c.BezierJoints[c.BezierJoints.length-1];n.p.x=c.Endpoint2.x;n.p.y=c.Endpoint2.y;for(d=0;d<c.BezierJoints.length;d++)n=c.BezierJoints[d],C.push({x:n.p.x+n.nt.x*n.lcps*.75,y:n.p.y+n.nt.y*
n.lcps*.75}),C.push({x:n.p.x+n.nt.x*n.rcps*.75,y:n.p.y+n.nt.y*n.rcps*.75});C=C.slice(1,C.length-1)}else n&&(C=[],C.push({x:c.Endpoint1.x+(.1>c.Endpoint1.LinkX?-250:.9<c.Endpoint1.LinkX?250:0),y:c.Endpoint1.y+(.1>c.Endpoint1.LinkY?-250:.9<c.Endpoint1.LinkY?250:0)}),C.push({x:c.Endpoint2.x+(.1>c.Endpoint2.LinkX?-250:.9<c.Endpoint2.LinkX?250:0),y:c.Endpoint2.y+(.1>c.Endpoint2.LinkY?-250:.9<c.Endpoint2.LinkY?250:0)}));if(null!=C)for(f.geometry.points=[],d=0;d<C.length;d++)n=C[d].p?C[d].p:C[d],f.geometry.points.push(new mxPoint(Math.round(.75*
n.x+sc),Math.round(.75*n.y+tc)));n=!1;if((null==f.geometry.points||0==f.geometry.points.length)&&null!=c.Endpoint1.Block&&c.Endpoint1.Block==c.Endpoint2.Block&&null!=e&&null!=a){n=new mxPoint(Math.round(e.geometry.x+e.geometry.width*c.Endpoint1.LinkX),Math.round(e.geometry.y+e.geometry.height*c.Endpoint1.LinkY));C=new mxPoint(Math.round(a.geometry.x+a.geometry.width*c.Endpoint2.LinkX),Math.round(a.geometry.y+a.geometry.height*c.Endpoint2.LinkY));sc=n.x==C.x?Math.abs(n.x-e.geometry.x)<e.geometry.width/
2?-20:20:0;tc=n.y==C.y?Math.abs(n.y-e.geometry.y)<e.geometry.height/2?-20:20:0;var N=new mxPoint(n.x+sc,n.y+tc),R=new mxPoint(C.x+sc,C.y+tc);N.generated=!0;R.generated=!0;f.geometry.points=[N,R];n=n.x==C.x}null!=e&&e.geometry.isRotated||(N=De(f,c.Endpoint1,!0,n,null,e));null!=e&&null!=N&&(null==e.stylePoints&&(e.stylePoints=[]),e.stylePoints.push(N),LucidImporter.stylePointsSet.add(e));null!=a&&a.geometry.isRotated||(R=De(f,c.Endpoint2,!1,n,null,a));null!=a&&null!=R&&(null==a.stylePoints&&(a.stylePoints=
[]),a.stylePoints.push(R),LucidImporter.stylePointsSet.add(a))}}null!=p.id&&(f.style+=";lucidId="+p.id+";",LucidImporter.lucidchartObjects[p.id]=p)}function Ee(f,p){var n=x(f).Properties,e=n.BoundingBox;null==f.Class||"AWS"!==f.Class.substring(0,3)&&"Amazon"!==f.Class.substring(0,6)||f.Class.includes("AWS19")||(e.h-=20);v=new mxCell("",new mxGeometry(Math.round(.75*e.x+sc),Math.round(.75*e.y+tc),Math.round(.75*e.w),Math.round(.75*e.h)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=
!0;Ld(v,f,p);v.zOrder=n.ZOrder;Fe(v,n);n.Hidden&&(v.visible=!1);return v}function xf(f,p,n,e){var a=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");a.geometry.relative=!0;a.edge=!0;Ld(a,f,p,n,e,!0);var C=x(f).Properties,d=null!=C?C.TextAreas:f.TextAreas;if(null!=d){for(var c=0;void 0!==d["t"+c];){var N=d["t"+c];null!=N&&(a=Nd(N,a,f,n,e,p));c++}for(c=0;void 0!==d["m"+c]||1>c;)N=d["m"+c],null!=N&&(a=Nd(N,a,f,n,e,p)),c++;null!=d.Text&&(a=Nd(d.Text,a,f,n,e,p));d=null!=C?C.TextAreas:
f.TextAreas;null!=d.Message&&(a=Nd(d.Message,a,f,n,e,p))}f.Hidden&&(a.visible=!1);return a}function Nd(f,p,n,e,a,C){var d=2*(parseFloat(f.Location)-.5);isNaN(d)&&null!=f.Text&&null!=f.Text.Location&&(d=2*(parseFloat(f.Text.Location)-.5));C=l(f);var c=mxCell;d=new mxGeometry(isNaN(d)?0:d,0,0,0);var N=ee;var R=n;if(t)R=gb;else{var J="13",oa="";if(null!=f&&null!=f.Value&&null!=f.Value.m){oa=Qa(f.Value.m);for(var ca=0;ca<f.Value.m.length;ca++)if("s"==f.Value.m[ca].n&&f.Value.m[ca].v)J=B(.75*parseFloat(f.Value.m[ca].v));
else if("c"==f.Value.m[ca].n){var ea=Z(f.Value.m[ca].v);null!=ea&&(ea=ea.substring(0,7));"#000000"==ea&&(ea="default");oa+="fontColor="+ea+";"}oa+=U(R);gb=""}R=oa+";fontSize="+J+";"}c=new c(C,d,N+R);c.geometry.relative=!0;c.vertex=!0;if(f.Side)try{n.Action&&n.Action.Properties&&(n=n.Action.Properties);if(null!=e&&null!=a){var ka=e.geometry,sa=a.geometry;var fa=Math.abs(ka.x+ka.width*n.Endpoint1.LinkX-(sa.x+sa.width*n.Endpoint2.LinkX));var ta=Math.abs(ka.y+ka.height*n.Endpoint1.LinkY-(sa.y+sa.height*
n.Endpoint2.LinkY))}else fa=Math.abs(n.Endpoint1.x-n.Endpoint2.x),ta=Math.abs(n.Endpoint1.y-n.Endpoint2.y);var Ka=mxUtils.getSizeForString(C.replace(/\n/g,"<br>"));c.geometry.offset=0==fa||fa<ta?new mxPoint(Math.sign(n.Endpoint1.y-n.Endpoint2.y)*f.Side*(Ka.width/2+5+fa),0):new mxPoint(0,Math.sign(n.Endpoint2.x-n.Endpoint1.x)*f.Side*(Ka.height/2+5+ta))}catch(ua){console.log(ua)}p.insert(c);return p}function Ub(f,p,n,e){null!=p&&null!=e&&(p=e(p));return null!=p&&p!=n?f+"="+p+";":""}function De(f,p,
n,e,a,C){if(null!=p&&null!=p.LinkX&&null!=p.LinkY&&(p.LinkX=Math.round(1E3*p.LinkX)/1E3,p.LinkY=Math.round(1E3*p.LinkY)/1E3,null!=C&&C.style&&-1<C.style.indexOf("flipH=1")&&(p.LinkX=1-p.LinkX),null!=C&&C.style&&-1<C.style.indexOf("flipV=1")&&(p.LinkY=1-p.LinkY),f.style+=(e?"":(n?"exitX":"entryX")+"="+p.LinkX+";")+(a?"":(n?"exitY":"entryY")+"="+p.LinkY+";")+(n?"exitPerimeter":"entryPerimeter")+"=0;",p.Inside))return"["+p.LinkX+","+p.LinkY+",0]"}function Ge(f,p,n,e,a){try{var C=function(fa,ta){if(null!=
fa)if(Array.isArray(fa))for(var Ka=0;Ka<fa.length;Ka++)C(fa[Ka].p?fa[Ka].p:fa[Ka],ta);else ta=ta?.75:1,c=Math.min(c,fa.x*ta),N=Math.min(N,fa.y*ta),R=Math.max(R,(fa.x+(fa.width?fa.width:0))*ta),J=Math.max(J,(fa.y+(fa.height?fa.height:0))*ta)};null!=f.Action&&null!=f.Action.Properties&&(f=f.Action.Properties);var d=new mxCell("",new mxGeometry,"group;dropTarget=0;pointerEvents=0;");d.vertex=!0;d.zOrder=f.ZOrder;var c=Infinity,N=Infinity,R=-Infinity,J=-Infinity,oa=f.Members;a=[];for(var ca in oa){var ea=
p[ca];null!=ea?a.push(ea):null!=e[ca]&&(a.push(e[ca]),n[ca]=d)}a.sort(function(fa,ta){fa=fa.zOrder||fa.ZOrder;ta=ta.zOrder||ta.ZOrder;return null!=fa&&null!=ta?fa>ta?1:fa<ta?-1:0:0});for(n=p=0;n<a.length;n++)if(ea=a[n],ea.vertex)C(ea.geometry),ea.parent=d,d.insert(ea,p++);else{var ka=null!=ea.Action&&ea.Action.Properties?ea.Action.Properties:ea;C(ka.Endpoint1,!0);C(ka.Endpoint2,!0);C(ka.ElbowPoints,!0);C(ka.ElbowControlPoints,!0);C(ka.BezierJoints,!0);C(ka.Joints,!0)}d.geometry.x=c;d.geometry.y=N;
d.geometry.width=R-c;d.geometry.height=J-N;if(null!=d.children)for(n=0;n<d.children.length;n++){var sa=d.children[n].geometry;sa.x-=c;sa.y-=N}f.IsState?(d.lucidLayerInfo={name:f.Name,visible:!f.Hidden,locked:f.Restrictions.b&&f.Restrictions.p&&f.Restrictions.c},d.style+="container=1;collapsible=0;recursiveResize=0;"):f.Hidden&&(d.visible=!1);return d}catch(fa){console.log(fa)}}function yf(f,p,n){LucidImporter.hasMath=!1;LucidImporter.stylePointsSet=new Set;f.getModel().beginUpdate();try{var e=function(ua,
ma){function Ea(Ia,da,Da){null==Ia||Ia.generated||(Ia.x-=da,Ia.y-=Da)}var Ba=null!=ma.Endpoint1.Block?C[ma.Endpoint1.Block]:null,Ca=null!=ma.Endpoint2.Block?C[ma.Endpoint2.Block]:null,b=xf(ua,f,Ba,Ca);if(ma.Endpoint1&&ma.Endpoint1.Line||ma.Endpoint2&&ma.Endpoint2.Line)console.log("Edge to Edge case"),LucidImporter.hasUnknownShapes=!0;null==Ba&&null!=ma.Endpoint1&&b.geometry.setTerminalPoint(new mxPoint(Math.round(.75*ma.Endpoint1.x),Math.round(.75*ma.Endpoint1.y)),!0);null==Ca&&null!=ma.Endpoint2&&
b.geometry.setTerminalPoint(new mxPoint(Math.round(.75*ma.Endpoint2.x),Math.round(.75*ma.Endpoint2.y)),!1);ua=d[ua.id];if(null!=ua){for(var za=b.geometry,Wa=ma=0,wa=ua;null!=wa&&null!=wa.geometry;)ma+=wa.geometry.x,Wa+=wa.geometry.y,wa=wa.parent;Ea(za.sourcePoint,ma,Wa);Ea(za.targetPoint,ma,Wa);Ea(za.offset,ma,Wa);za=za.points;if(null!=za)for(wa=0;wa<za.length;wa++)Ea(za[wa],ma,Wa)}a.push(f.addCell(b,ua,null,Ba,Ca))},a=[],C={},d={},c={},N=[];null!=p.Lines&&(c=p.Lines);if(null!=p.Blocks){Object.assign(c,
p.Blocks);for(var R in p.Blocks){var J=p.Blocks[R];J.id=R;var oa=!1;null!=Md[J.Class]&&"mxCompositeShape"==Md[J.Class]&&(C[J.id]=He(J,a,f),N.push(J),oa=!0);oa||(C[J.id]=Ee(J,f),N.push(J))}if(null!=p.Generators)for(R in p.Generators)"OrgChart2018"==p.Generators[R].ClassName?(LucidImporter.hasUnknownShapes=!0,Ie(R,p.Generators[R],p.Data,f,C)):LucidImporter.hasUnknownShapes=!0}else{for(var ca=0;ca<p.Objects.length;ca++)J=p.Objects[ca],c[J.id]=J,null!=J.Action&&"mxCompositeShape"==Md[J.Action.Class]?
C[J.id]=He(J,a,f):J.IsBlock&&null!=J.Action&&null!=J.Action.Properties?C[J.id]=Ee(J,f):J.IsGenerator&&J.GeneratorData&&J.GeneratorData.p&&("OrgChart2018"==J.GeneratorData.p.ClassName?(LucidImporter.hasUnknownShapes=!0,Ie(J.GeneratorData.id,J.GeneratorData.p,J.GeneratorData.gs,f,C)):LucidImporter.hasUnknownShapes=!0),N.push(J);for(ca=0;ca<p.Objects.length;ca++)if(J=p.Objects[ca],J.IsGroup){var ea=Ge(J,C,d,c,f);ea&&(C[J.id]=ea,N.push(J))}}if(null!=p.Groups)try{for(R in p.Groups)if(J=p.Groups[R],J.id=
R,ea=Ge(J,C,d,c,f))C[J.id]=ea,N.push(J)}catch(ua){console.log(ua)}if(null!=p.Lines)for(R in p.Lines)J=p.Lines[R],J.id=R,N.push(J);N.sort(function(ua,ma){ua=x(ua);ma=x(ma);ua=null!=ua.Properties?ua.Properties.ZOrder:ua.ZOrder;ma=null!=ma.Properties?ma.Properties.ZOrder:ma.ZOrder;return null!=ua&&null!=ma?ua>ma?1:ua<ma?-1:0:0});for(ca=0;ca<N.length;ca++){J=N[ca];var ka=C[J.id];if(null!=ka){if(null==ka.parent)if(ka.lucidLayerInfo){var sa=new mxCell;f.addCell(sa,f.model.root);sa.setVisible(ka.lucidLayerInfo.visible);
ka.lucidLayerInfo.locked&&sa.setStyle("locked=1;");sa.setValue(ka.lucidLayerInfo.name);delete ka.lucidLayerInfo;f.addCell(ka,sa)}else a.push(f.addCell(ka))}else J.IsLine&&null!=J.Action&&null!=J.Action.Properties?e(J,J.Action.Properties):null!=J.StrokeStyle&&e(J,J)}LucidImporter.stylePointsSet.forEach(function(ua){ua.style="points=["+ua.stylePoints.join(",")+"];"+ua.style;delete ua.stylePoints});try{var fa=f.getModel().cells;f.view.validate();for(var ta in fa){var Ka=fa[ta];null!=Ka&&(zf(f,Ka),Af(f,
Ka),Bf(f,Ka),delete Ka.zOrder)}}catch(ua){console.log(ua)}n||f.setSelectionCells(a)}finally{f.getModel().endUpdate()}}function Bf(f,p){if(f.model.contains(p)&&p.edge){var n=f.view.getState(p);if(null!=n&&null!=p.children){var e=mxRectangle.fromRectangle(n.paintBounds);e.grow(5);for(var a=0;a<p.children.length;a++){var C=f.view.getState(p.children[a]);null==C||mxUtils.contains(e,C.paintBounds.x,C.paintBounds.y)||(C.cell.geometry.offset=new mxPoint(0,0))}}f=LucidImporter.lucidchartObjects;a:{try{var d=
p.style.match(/;lucidId=([^;]*)/);if(null!=d){var c=d[1];break a}}catch(N){}c=null}c=f[c];c=null!=c&&null!=c.Action?c.Action.Properties:null;null!=c&&"elbow"==c.Shape&&null==c.ElbowControlPoints&&null==c.ElbowPoints&&null!=n.style.exitX&&null!=n.style.exitY&&null!=n.style.entryX&&null!=n.style.entryY&&(p.style=mxUtils.setStyle(p.style,"exitX",Math.round(20*n.style.exitX)/20),p.style=mxUtils.setStyle(p.style,"exitY",Math.round(20*n.style.exitY)/20),p.style=mxUtils.setStyle(p.style,"entryX",Math.round(20*
n.style.entryX)/20),p.style=mxUtils.setStyle(p.style,"entryY",Math.round(20*n.style.entryY)/20))}}function Af(f,p){if(f.model.contains(p)&&null!=p.style&&""!=p.style){f=p.style.split(";");for(var n={},e=[],a=f.length-1;0<=a;a--){var C=f[a].split("=");if(2!=C.length||null==n[C[0]])n[C[0]]=C[1],""!=f[a]&&e.push(f[a])}p.style=e.reverse().join(";")+";"}}function zf(f,p){if(f.model.contains(p)&&null!=p.children&&null!=p.geometry&&p.vertex&&"group;dropTarget=0;pointerEvents=0;"==p.style){for(var n=null,
e=0;e<p.children.length;e++)if(p.children[e].vertex){var a=p.children[e].geometry;if(null!=a&&0==a.x&&0==a.y&&a.width==p.geometry.width&&a.height==p.geometry.height){if(null!=n)return;n=p.children[e]}}p=n;if(null!=p&&(n=p.parent,""==f.convertValueToString(n))){if(null!=p.edges)for(e=0;e<p.edges.length;e++)p.edges[e].source==p&&p.edges[e].setTerminal(p.parent,!0),p.edges[e].target==p&&p.edges[e].setTerminal(p.parent,!1);if(null!=p.children&&0<p.children.length)for(a=p.children.slice(),e=0;e<a.length;e++)n.insert(a[e]);
f.cellLabelChanged(n,f.convertValueToString(p));n.style=mxUtils.setStyle(mxUtils.setStyle(p.style,"container","1"),"collapsible","0");p.removeFromParent()}}}function Cf(){var f=new Graph;f.setExtendParents(!1);f.setExtendParentsOnAdd(!1);f.setConstrainChildren(!1);f.setHtmlLabels(!0);f.getModel().maintainEdgeParent=!1;return f}function Od(f,p,n,e,a,C,d,c){this.nurbsValues=[1,3,0,0,100*(f+n),100-100*(1-(p+e)),0,1,100*(a+d),100-100*(1-(C+c)),0,1]}function Je(f,p){try{for(var n=[],e=p.BoundingBox.w,
a=p.BoundingBox.h,C=0;C<p.Shapes.length;C++){var d=p.Shapes[C],c=d.FillColor,N=d.StrokeColor,R=d.LineWidth,J=d.Points,oa=d.Lines,ca=['<shape strokewidth="inherit"><foreground>'];ca.push("<path>");for(var ea=null,ka=0;ka<oa.length;ka++){var sa=oa[ka];if(ea!=sa.p1){var fa=J[sa.p1].x,ta=J[sa.p1].y;fa=100*fa/e;ta=100*ta/a;fa=Math.round(100*fa)/100;ta=Math.round(100*ta)/100;ca.push('<move x="'+fa+'" y="'+ta+'"/>')}if(null!=sa.n1){var Ka=J[sa.p2].x,ua=J[sa.p2].y,ma=e,Ea=a,Ba=new Od(J[sa.p1].x/e,J[sa.p1].y/
a,sa.n1.x/e,sa.n1.y/a,J[sa.p2].x/e,J[sa.p2].y/a,sa.n2.x/e,sa.n2.y/a);if(2<=Ba.getSize()){Ba.getX(0);Ba.getY(0);Ba.getX(1);Ba.getY(1);Ka=Math.round(100*Ka/ma*100)/100;ua=Math.round(100*ua/Ea*100)/100;ma=[];Ea=[];for(var Ca=[],b=Ba.getSize(),za=0;za<b-1;za+=3)ma.push(new mxPoint(Ba.getX(za),Ba.getY(za))),Ea.push(new mxPoint(Ba.getX(za+1),Ba.getY(za+1))),za<b-2?Ca.push(new mxPoint(Ba.getX(za+2),Ba.getY(za+2))):Ca.push(new mxPoint(Ka,ua));var Wa="";for(za=0;za<ma.length;za++)Wa+='<curve x1="'+ma[za].x+
'" y1="'+ma[za].y+'" x2="'+Ea[za].x+'" y2="'+Ea[za].y+'" x3="'+Ca[za].x+'" y3="'+Ca[za].y+'"/>';var wa=Wa}else wa=void 0;ca.push(wa)}else fa=J[sa.p2].x,ta=J[sa.p2].y,fa=100*fa/e,ta=100*ta/a,fa=Math.round(100*fa)/100,ta=Math.round(100*ta)/100,ca.push('<line x="'+fa+'" y="'+ta+'"/>');ea=sa.p2}ca.push("</path>");ca.push("<fillstroke/>");ca.push("</foreground></shape>");n.push({shapeStencil:"stencil("+Graph.compress(ca.join(""))+")",FillColor:c,LineColor:N,LineWidth:R})}LucidImporter.stencilsMap[f]={text:p.Text,
w:e,h:a,x:p.BoundingBox.x,y:p.BoundingBox.y,stencils:n}}catch(Ia){console.log("Stencil parsing error:",Ia)}}function oc(f,p,n,e,a,C,d,c){f=new mxCell("",new mxGeometry(f,p,0,0),"strokeColor=none;fillColor=none;");f.vertex=!0;d.insert(f);C=[f];n=n.clone();c.insertEdge(n,!1);f.insertEdge(n,!0);C.push(n);e.push(a.addCell(n,null,null,null,null))}function ab(f,p,n,e,a,C,d,c,N){f=new mxCell("",new mxGeometry(f,p,0,0),"strokeColor=none;fillColor=none;");f.vertex=!0;N.insert(f);n=new mxCell("",new mxGeometry(n,
e,0,0),"strokeColor=none;fillColor=none;");n.vertex=!0;N.insert(n);c=[n];a=a.clone();f.insertEdge(a,!0);n.insertEdge(a,!1);c.push(a);C.push(d.addCell(a,null,null,null,null))}function La(f,p,n,e,a,C){e.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";e.style+=h(e.style,a,C,e);p=l(a);e.vertex=!0;f=new mxCell(p,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+mxConstants.STYLE_SHAPE+"=mxgraph.gcp2."+f+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;");
f.style+=h(f.style,a,C,f,t);f.geometry.relative=!0;f.geometry.offset=new mxPoint(5,-12);f.vertex=!0;e.insert(f)}function Ra(f,p,n,e,a,C,d,c){a="transparent"!=f?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";C.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";C.style+=h(C.style,d,c,C);C.value=l(d);C.vertex=!0;f=new mxCell(null,new mxGeometry(.5,0,.7*e*p,.7*e*n),a+f+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;");
f.geometry.relative=!0;f.geometry.offset=new mxPoint(-p*e*.35,10+(1-n)*e*.35);f.vertex=!0;f.style+=h(f.style,d,c,f,t);C.insert(f)}function Uc(f,p){return null!=f&&null!=p&&(p==mxConstants.STYLE_ALIGN+"Global"&&(p=mxConstants.STYLE_ALIGN),f.includes(";"+p+"=")||f.substring(0,p.length+1)==p+"=")?!0:!1}function Pd(f,p){function n(e){e=Math.round(parseInt("0x"+e)*p).toString(16);return 1==e.length?"0"+e:e}return"#"+n(f.substr(1,2))+n(f.substr(3,2))+n(f.substr(5,2))}function He(f,p,n){var e=x(f),a=e.Properties,
C=a.BoundingBox,d=Math.round(.75*C.w),c=Math.round(.75*C.h),N=Math.round(.75*C.x+sc),R=Math.round(.75*C.y+tc);null==f.Class||"GCPInputDatabase"!==f.Class&&"GCPInputRecord"!==f.Class&&"GCPInputPayment"!==f.Class&&"GCPInputGateway"!==f.Class&&"GCPInputLocalCompute"!==f.Class&&"GCPInputBeacon"!==f.Class&&"GCPInputStorage"!==f.Class&&"GCPInputList"!==f.Class&&"GCPInputStream"!==f.Class&&"GCPInputMobileDevices"!==f.Class&&"GCPInputCircuitBoard"!==f.Class&&"GCPInputLive"!==f.Class&&"GCPInputUsers"!==f.Class&&
"GCPInputLaptop"!==f.Class&&"GCPInputApplication"!==f.Class&&"GCPInputLightbulb"!==f.Class&&"GCPInputGame"!==f.Class&&"GCPInputDesktop"!==f.Class&&"GCPInputDesktopAndMobile"!==f.Class&&"GCPInputWebcam"!==f.Class&&"GCPInputSpeaker"!==f.Class&&"GCPInputRetail"!==f.Class&&"GCPInputReport"!==f.Class&&"GCPInputPhone"!==f.Class&&"GCPInputBlank"!==f.Class||(c+=20);v=new mxCell("",new mxGeometry(N,R,d,c),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;v.zOrder=a.ZOrder;var J=null!=f.Class?
f.Class:null!=e?e.Class:null;switch(J){case "BraceNoteBlock":case "UI2BraceNoteBlock":var oa=!1;null!=a.BraceDirection&&"Right"==a.BraceDirection&&(oa=!0);var ca=null,ea=null,ka=l(a),sa=a.Rotation?mxUtils.getSizeForString(ka.replace(/\n/g,"<br>"),null,null,Math.abs(d-.125*c)):{width:0,height:0};oa?(ca=new mxCell("",new mxGeometry(d-.125*c,0,.125*c,c),"shape=curlyBracket;rounded=1;"),ea=new mxCell("",new mxGeometry(sa.height,-2*sa.width,d-.125*c,c),"strokeColor=none;fillColor=none;")):(ca=new mxCell("",
new mxGeometry(0,0,.125*c,c),"shape=curlyBracket;rounded=1;flipH=1;"),ea=new mxCell("",new mxGeometry(.125*c-sa.height,sa.width,d-.125*c,c),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);ca.vertex=!0;v.insert(ca);ca.style+=h(ca.style,a,e,ca);ea.vertex=!0;ea.value=ka;v.insert(ea);ea.style+=h(ea.style,a,e,ea,t);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var fa=
"MainText",ta=null,Ka="HeaderFill_",ua="BodyFill_",ma=25,Ea=25,Ba=0;if(null!=a.Lanes)Ba=a.Lanes.length;else if(null!=a.PrimaryLane){var Ca=function(bb){if(bb)32>bb?bb=32:208<bb&&(bb=208);else return 0;return.75*bb};Ba=a.PrimaryLane.length;for(var b=c=d=0;b<Ba;b++)d+=a.PrimaryLane[b];for(b=0;b<a.SecondaryLane.length;b++)c+=a.SecondaryLane[b];ma=Ca(a.PrimaryPoolTitleHeight);Ea=Ca(a.PrimaryLaneTitleHeight);d*=.75;c=.75*c+ma+Ea;v.geometry.width=d;v.geometry.height=c;fa="poolPrimaryTitleKey";Ka="PrimaryLaneHeaderFill_";
ua="CellFill_0,";ta=a.PrimaryLaneTextAreaIds;if(null==ta)for(ta=[],b=0;b<Ba;b++)ta.push("Primary_"+b)}if(0==a.IsPrimaryLaneVertical){a.Rotation=-1.5707963267948966;var za=v.geometry.x,Wa=v.geometry.y}var wa=0!=a.Rotation,Ia=0<J.indexOf("Pool"),da=0==J.indexOf("BPMN"),Da=null!=a[fa];v.style=(Ia?"swimlane;startSize="+ma+";":"fillColor=none;strokeColor=none;pointerEvents=0;fontStyle=0;")+"html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;"+(wa?"horizontalStack=0;":
"");v.style+=h(v.style,a,e,v);Da&&(v.value=l(a[fa]),v.style+=(t?"overflow=block;blockSpacing=1;fontSize=13;"+gb:F(a[fa])+V(a[fa])+U(a[fa])+ia(a[fa])+Fa(a[fa],v)+Pa(a[fa])+Xa(a[fa])+Ja(a[fa])+k(a[fa]))+r(a[fa])+A(a[fa]));for(var qa=0,ra=[],Lb="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;fontStyle=0;startSize="+Ea+";dropTarget=0;rounded=0;"+(wa?"horizontal=0;":"")+(da?"swimlaneLine=0;fillColor=none;":""),X=a.Rotation=0;X<Ba;X++){if(null==ta){var rb=parseFloat(a.Lanes[X].p);
b=parseInt(a.Lanes[X].tid)||X;var Oa="Lane_"+b}else rb=.75*a.PrimaryLane[X]/d,b=X,Oa=ta[X];var mc=d*qa,rc=Ia?ma:0;ra.push(new mxCell("",wa?new mxGeometry(rc,mc,c-rc,d*rb):new mxGeometry(mc,rc,d*rb,c-rc),Lb));ra[X].vertex=!0;v.insert(ra[X]);ra[X].value=l(a[Oa]);ra[X].style+=h(ra[X].style,a,e,ra[X],t)+(t?"fontSize=13;":F(a[Oa])+V(a[Oa])+ia(a[Oa])+Fa(a[Oa],ra[X])+Pa(a[Oa])+Xa(a[Oa])+Ja(a[Oa])+k(a[Oa]))+r(a[Oa])+A(a[Oa])+E(a[Ka+b])+S(a[ua+b]);qa+=rb}null!=za&&(v.geometry.x=za,v.geometry.y=Wa);break;case "UMLMultidimensionalSwimlane":var Ab=
0,Mb=0,Gb=null,Vb=null;if(null!=a.Rows&&null!=a.Columns){Ab=a.Rows.length;Mb=a.Columns.length;var Sa=.75*a.TitleHeight||25,kb=.75*a.TitleWidth||25}else if(null!=a.PrimaryLane&&null!=a.SecondaryLane){Ab=a.SecondaryLane.length;Mb=a.PrimaryLane.length;kb=.75*a.SecondaryLaneTitleHeight||25;Sa=.75*a.PrimaryLaneTitleHeight||25;for(b=c=d=0;b<Ab;b++)c+=a.SecondaryLane[b];for(b=0;b<Mb;b++)d+=a.PrimaryLane[b];d=.75*d+kb;c=.75*c+Sa;v.geometry.width=d;v.geometry.height=c;Gb=a.SecondaryLaneTextAreaIds;Vb=a.PrimaryLaneTextAreaIds}v.style=
"group;";var Kc=new mxCell("",new mxGeometry(0,Sa,d,c-Sa),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;horizontalStack=0;");Kc.vertex=!0;var Cc=new mxCell("",new mxGeometry(kb,0,d-kb,c),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;");Cc.vertex=!0;v.insert(Kc);v.insert(Cc);R=0;var Dc="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;horizontal=0;fontStyle=0;startSize="+
kb+";";for(X=0;X<Ab;X++){if(null==Gb){var Qd=.75*parseInt(a.Rows[X].height);b=parseInt(a.Rows[X].id)||X;var Nb="Row_"+b}else Qd=.75*a.SecondaryLane[X],Nb=Gb[X];var Ec=new mxCell("",new mxGeometry(0,R,d,Qd),Dc);R+=Qd;Ec.vertex=!0;Kc.insert(Ec);Ec.value=l(a[Nb]);Ec.style+=h(Ec.style,a,e,Ec,t)+(t?"fontSize=13;":F(a[Nb])+V(a[Nb])+ia(a[Nb])+Fa(a[Nb],Ec)+Pa(a[Nb])+Xa(a[Nb])+Ja(a[Nb])+k(a[Nb]))+r(a[Nb])+A(a[Nb])}var Df="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;fontStyle=0;startSize="+
Sa+";";for(X=N=0;X<Mb;X++){if(null==Vb){var Vc=.75*parseInt(a.Columns[X].width);b=parseInt(a.Columns[X].id)||X;var Ob="Column_"+b}else Vc=.75*a.PrimaryLane[X],Ob=Vb[X];var Fc=new mxCell("",new mxGeometry(N,0,Vc,c),Df);N+=Vc;Fc.vertex=!0;Cc.insert(Fc);Fc.value=l(a[Ob]);Fc.style+=h(Fc.style,a,e,Fc,t)+(t?"fontSize=13;":F(a[Ob])+V(a[Ob])+ia(a[Ob])+Fa(a[Ob],Fc)+Pa(a[Ob])+Xa(a[Ob])+Ja(a[Ob])+k(a[Ob]))+r(a[Ob])+A(a[Ob])}break;case "UMLStateBlock":if(0==a.Composite)v.style="rounded=1;arcSize=20",v.value=
l(a.State,!0),v.style+=h(v.style,a,e,v,t);else{v.style="swimlane;startSize=25;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;rounded=1;arcSize=20;fontStyle=0;";v.value=l(a.State,!0);v.style+=h(v.style,a,e,v,t);v.style+=ja(a,e).replace("fillColor","swimlaneFillColor");var tb=new mxCell("",new mxGeometry(0,25,d,c-25),"rounded=1;arcSize=20;strokeColor=none;fillColor=none");tb.value=l(a.Action,!0);tb.style+=h(tb.style,a,e,tb,t);tb.vertex=!0;v.insert(tb)}break;
case "GSDFDProcessBlock":var fe=Math.round(.75*a.nameHeight);v.style="shape=swimlane;html=1;rounded=1;arcSize=10;collapsible=0;fontStyle=0;startSize="+fe;v.value=l(a.Number,!0);v.style+=h(v.style,a,e,v,t);v.style+=ja(a,e).replace("fillColor","swimlaneFillColor");tb=new mxCell("",new mxGeometry(0,fe,d,c-fe),"rounded=1;arcSize=10;strokeColor=none;fillColor=none");tb.value=l(a.Text,!0);tb.style+=h(tb.style,a,e,tb,t);tb.vertex=!0;v.insert(tb);break;case "AndroidDevice":if(null!=a.AndroidDeviceName){var hb=
Q(a,e,v);v.style="fillColor=#000000;strokeColor=#000000;";var uc=null,Wc=null,Xc=null;if("Tablet"==a.AndroidDeviceName||"Mini Tablet"==a.AndroidDeviceName||"custom"==a.AndroidDeviceName&&"Tablet"==a.CustomDeviceType)v.style+="shape=mxgraph.android.tab2;",uc=new mxCell("",new mxGeometry(.112,.077,.77*d,.85*c),hb),a.KeyboardShown&&(Wc=new mxCell("",new mxGeometry(.112,.727,.77*d,.2*c),"shape=mxgraph.android.keyboard;"+hb)),a.FullScreen||(Xc=new mxCell("",new mxGeometry(.112,.077,.77*d,.03*c),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+
.015*c+";"+hb));else if("Large Phone"==a.AndroidDeviceName||"Phone"==a.AndroidDeviceName||"custom"==a.AndroidDeviceName&&"Phone"==a.CustomDeviceType)v.style+="shape=mxgraph.android.phone2;",uc=new mxCell("",new mxGeometry(.04,.092,.92*d,.816*c),hb),a.KeyboardShown&&(Wc=new mxCell("",new mxGeometry(.04,.708,.92*d,.2*c),"shape=mxgraph.android.keyboard;"+hb)),a.FullScreen||(Xc=new mxCell("",new mxGeometry(.04,.092,.92*d,.03*c),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+
.015*c+";"+hb));uc.vertex=!0;uc.geometry.relative=!0;v.insert(uc);"Dark"==a.Scheme?uc.style+="fillColor=#111111;":"Light"==a.Scheme&&(uc.style+="fillColor=#ffffff;");null!=Wc&&(Wc.vertex=!0,Wc.geometry.relative=!0,v.insert(Wc));null!=Xc&&(Xc.vertex=!0,Xc.geometry.relative=!0,v.insert(Xc))}v.style+=h(v.style,a,e,v);break;case "AndroidAlertDialog":var Wb=new mxCell("",new mxGeometry(0,0,d,30),"strokeColor=none;fillColor=none;spacingLeft=9;");Wb.vertex=!0;v.insert(Wb);var Ha=new mxCell("",new mxGeometry(0,
25,d,10),"shape=line;strokeColor=#33B5E5;");Ha.vertex=!0;v.insert(Ha);var nd=new mxCell("",new mxGeometry(0,30,d,c-30),"strokeColor=none;fillColor=none;verticalAlign=top;");nd.vertex=!0;v.insert(nd);var db=new mxCell("",new mxGeometry(0,c-25,.5*d,25),"fillColor=none;");db.vertex=!0;v.insert(db);var eb=new mxCell("",new mxGeometry(.5*d,c-25,.5*d,25),"fillColor=none;");eb.vertex=!0;v.insert(eb);Wb.value=l(a.DialogTitle);Wb.style+=q(a.DialogTitle,t);nd.value=l(a.DialogText);nd.style+=q(a.DialogText,
t);db.value=l(a.Button_0);db.style+=q(a.Button_0,t);eb.value=l(a.Button_1);eb.style+=q(a.Button_1,t);"Dark"==a.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",db.style+="strokeColor=#353535;",eb.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",db.style+="strokeColor=#E2E2E2;",eb.style+="strokeColor=#E2E2E2;");v.style+=h(v.style,a,e,v);break;case "AndroidDateDialog":case "AndroidTimeDialog":Wb=new mxCell("",new mxGeometry(0,0,d,30),"strokeColor=none;fillColor=none;spacingLeft=9;");
Wb.vertex=!0;v.insert(Wb);Wb.value=l(a.DialogTitle);Wb.style+=q(a.DialogTitle,t);Ha=new mxCell("",new mxGeometry(0,25,d,10),"shape=line;strokeColor=#33B5E5;");Ha.vertex=!0;v.insert(Ha);db=new mxCell("",new mxGeometry(0,c-25,.5*d,25),"fillColor=none;");db.vertex=!0;v.insert(db);db.value=l(a.Button_0);db.style+=q(a.Button_0,t);eb=new mxCell("",new mxGeometry(.5*d,c-25,.5*d,25),"fillColor=none;");eb.vertex=!0;v.insert(eb);eb.value=l(a.Button_1);eb.style+=q(a.Button_1,t);var Yc=new mxCell("",new mxGeometry(.5*
d-4,41,8,4),"shape=triangle;direction=north;");Yc.vertex=!0;v.insert(Yc);var Zc=new mxCell("",new mxGeometry(.25*d-4,41,8,4),"shape=triangle;direction=north;");Zc.vertex=!0;v.insert(Zc);var $c=new mxCell("",new mxGeometry(.75*d-4,41,8,4),"shape=triangle;direction=north;");$c.vertex=!0;v.insert($c);var od=new mxCell("",new mxGeometry(.375*d,50,.2*d,15),"strokeColor=none;fillColor=none;");od.vertex=!0;v.insert(od);od.value=l(a.Label_1);od.style+=q(a.Label_1,t);var pd=new mxCell("",new mxGeometry(.125*
d,50,.2*d,15),"strokeColor=none;fillColor=none;");pd.vertex=!0;v.insert(pd);pd.value=l(a.Label_0);pd.style+=q(a.Label_0,t);var ad=null;"AndroidDateDialog"==f.Class&&(ad=new mxCell("",new mxGeometry(.625*d,50,.2*d,15),"strokeColor=none;fillColor=none;"),ad.vertex=!0,v.insert(ad),ad.value=l(a.Label_2),ad.style+=q(a.Label_2,t));var ub=new mxCell("",new mxGeometry(.43*d,60,.14*d,10),"shape=line;strokeColor=#33B5E5;");ub.vertex=!0;v.insert(ub);var vb=new mxCell("",new mxGeometry(.18*d,60,.14*d,10),"shape=line;strokeColor=#33B5E5;");
vb.vertex=!0;v.insert(vb);var Ke=new mxCell("",new mxGeometry(.68*d,60,.14*d,10),"shape=line;strokeColor=#33B5E5;");Ke.vertex=!0;v.insert(Ke);var qd=new mxCell("",new mxGeometry(.375*d,65,.2*d,15),"strokeColor=none;fillColor=none;");qd.vertex=!0;v.insert(qd);qd.value=l(a.Label_4);qd.style+=q(a.Label_4,t);var bd=null;"AndroidTimeDialog"==f.Class&&(bd=new mxCell("",new mxGeometry(.3*d,65,.1*d,15),"strokeColor=none;fillColor=none;"),bd.vertex=!0,v.insert(bd),bd.value=l(a.Label_Colon),bd.style+=q(a.Label_Colon,
t));var rd=new mxCell("",new mxGeometry(.125*d,65,.2*d,15),"strokeColor=none;fillColor=none;");rd.vertex=!0;v.insert(rd);rd.value=l(a.Label_3);rd.style+=q(a.Label_3,t);var sd=new mxCell("",new mxGeometry(.625*d,65,.2*d,15),"strokeColor=none;fillColor=none;");sd.vertex=!0;v.insert(sd);sd.value=l(a.Label_5);sd.style+=q(a.Label_5,t);var Le=new mxCell("",new mxGeometry(.43*d,75,.14*d,10),"shape=line;strokeColor=#33B5E5;");Le.vertex=!0;v.insert(Le);var Me=new mxCell("",new mxGeometry(.18*d,75,.14*d,10),
"shape=line;strokeColor=#33B5E5;");Me.vertex=!0;v.insert(Me);var Ne=new mxCell("",new mxGeometry(.68*d,75,.14*d,10),"shape=line;strokeColor=#33B5E5;");Ne.vertex=!0;v.insert(Ne);var td=new mxCell("",new mxGeometry(.375*d,80,.2*d,15),"strokeColor=none;fillColor=none;");td.vertex=!0;v.insert(td);td.value=l(a.Label_7);td.style+=q(a.Label_7,t);var ud=new mxCell("",new mxGeometry(.125*d,80,.2*d,15),"strokeColor=none;fillColor=none;");ud.vertex=!0;v.insert(ud);ud.value=l(a.Label_6);ud.style+=q(a.Label_6,
t);var vd=new mxCell("",new mxGeometry(.625*d,80,.2*d,15),"strokeColor=none;fillColor=none;");vd.vertex=!0;v.insert(vd);vd.value=l(a.Label_8);vd.style+=q(a.Label_8,t);var cd=new mxCell("",new mxGeometry(.5*d-4,99,8,4),"shape=triangle;direction=south;");cd.vertex=!0;v.insert(cd);var dd=new mxCell("",new mxGeometry(.25*d-4,99,8,4),"shape=triangle;direction=south;");dd.vertex=!0;v.insert(dd);var ed=new mxCell("",new mxGeometry(.75*d-4,99,8,4),"shape=triangle;direction=south;");ed.vertex=!0;v.insert(ed);
"Dark"==a.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",db.style+="strokeColor=#353535;",eb.style+="strokeColor=#353535;",Yc.style+="strokeColor=none;fillColor=#7E7E7E;",Zc.style+="strokeColor=none;fillColor=#7E7E7E;",$c.style+="strokeColor=none;fillColor=#7E7E7E;",cd.style+="strokeColor=none;fillColor=#7E7E7E;",dd.style+="strokeColor=none;fillColor=#7E7E7E;",ed.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",db.style+="strokeColor=#E2E2E2;",
eb.style+="strokeColor=#E2E2E2;",Yc.style+="strokeColor=none;fillColor=#939393;",Zc.style+="strokeColor=none;fillColor=#939393;",$c.style+="strokeColor=none;fillColor=#939393;",cd.style+="strokeColor=none;fillColor=#939393;",dd.style+="strokeColor=none;fillColor=#939393;",ed.style+="strokeColor=none;fillColor=#939393;");v.style+=h(v.style,a,e,v);break;case "AndroidListItems":var wb=c,vc=0;if(a.ShowHeader){vc=8;var Lc=new mxCell("",new mxGeometry(0,0,d,vc),"strokeColor=none;fillColor=none;");Lc.vertex=
!0;v.insert(Lc);Lc.value=l(a.Header);Lc.style+=q(a.Header,t);wb-=vc;var Oe=new mxCell("",new mxGeometry(0,vc-2,d,4),"shape=line;strokeColor=#999999;");Oe.vertex=!0;v.insert(Oe)}var Xb=parseInt(a.Items);0<Xb&&(wb/=Xb);var M=[];Ha=[];for(b=0;b<Xb;b++)M[b]=new mxCell("",new mxGeometry(0,vc+b*wb,d,wb),"strokeColor=none;fillColor=none;"),M[b].vertex=!0,v.insert(M[b]),M[b].value=l(a["Item_"+b]),M[b].style+=q(a["Item_"+b],t),0<b&&(Ha[b]=new mxCell("",new mxGeometry(0,vc+b*wb-2,d,4),"shape=line;"),Ha[b].vertex=
!0,v.insert(Ha[b]),Ha[b].style="Dark"==a.Scheme?Ha[b].style+"strokeColor=#ffffff;":Ha[b].style+"strokeColor=#D9D9D9;");v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";v.style+=h(v.style,a,e,v);break;case "AndroidTabs":var Yb=parseInt(a.Tabs),Bb=d;0<Yb&&(Bb/=Yb);var Ma=[];Ha=[];for(b=0;b<Yb;b++)Ma[b]=new mxCell("",new mxGeometry(b*Bb,0,Bb,c),"strokeColor=none;fillColor=none;"),Ma[b].vertex=!0,v.insert(Ma[b]),Ma[b].value=l(a["Tab_"+
b]),Ma[b].style+=q(a["Tab_"+b],t),0<b&&(Ha[b]=new mxCell("",new mxGeometry(b*Bb-2,.2*c,4,.6*c),"shape=line;direction=north;"),Ha[b].vertex=!0,v.insert(Ha[b]),Ha[b].style="Dark"==a.Scheme?Ha[b].style+"strokeColor=#484848;":Ha[b].style+"strokeColor=#CCCCCC;");var Pe=new mxCell("",new mxGeometry(a.Selected*Bb+2,c-3,Bb-4,3),"strokeColor=none;fillColor=#33B5E5;");Pe.vertex=!0;v.insert(Pe);v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";
v.style+=h(v.style,a,e,v);break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(N),Math.round(R+.25*c),Math.round(d),Math.round(.5*c)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;var wd=new mxCell("",new mxGeometry(0,0,d*a.BarPosition,Math.round(.5*c)),"strokeColor=none;fillColor=#33B5E5;");wd.vertex=!0;v.insert(wd);v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#474747;":v.style+"strokeColor=none;fillColor=#BBBBBB;";v.style+=h(v.style,a,
e,v);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;";v.style+=h(v.style,a,e,v);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+=q(a.Label,t);v.style+=h(v.style,a,e,v,t);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 wc=null;wc=a.HighlightTop?new mxCell("",new mxGeometry(0,0,d,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,c-2,d,2),"strokeColor=none;");
wc.vertex=!0;v.insert(wc);switch(a.HighlightColor){case "Blue":wc.style+="fillColor=#33B5E5;";break;case "Dark Gray":wc.style+="fillColor=#B0B0B0;";break;case "White":wc.style+="fillColor=#ffffff;"}}if(a.VlignShow){var fd=new mxCell("",new mxGeometry(20,5,2,c-10),"shape=line;direction=north;");fd.vertex=!0;v.insert(fd);switch(a.VlignColor){case "Blue":fd.style+="strokeColor=#244C5A;";break;case "White":fd.style+="strokeColor=#ffffff;"}}v.style+=h(v.style,a,e,v);break;case "AndroidButton":v.value=
l(a.Label);v.style+=q(a.Label,t)+"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;";v.style+=h(v.style,a,e,v);break;case "AndroidTextBox":v.value=l(a.Label);v.style+=q(a.Label,t);var xd=new mxCell("",new mxGeometry(2,c-6,d-4,4),"shape=partialRectangle;top=0;fillColor=none;");xd.vertex=!0;v.insert(xd);v.style="Dark"==a.Scheme?v.style+"fillColor=#111111;strokeColor=none;":
v.style+"fillColor=#ffffff;strokeColor=none;";xd.style=a.TextFocused?xd.style+"strokeColor=#33B5E5;":xd.style+"strokeColor=#A9A9A9;";v.style+=h(v.style,a,e,v);break;case "AndroidRadioButton":var Mc=null;a.Checked&&(Mc=new mxCell("",new mxGeometry(.15*d,.15*c,.7*d,.7*c),"ellipse;fillColor=#33B5E5;strokeWidth=1;"),Mc.vertex=!0,v.insert(Mc));"Dark"==a.Scheme?(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;strokeColor=#272727;",a.Checked?(Mc.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):
v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;fillColor=#ffffff;strokeColor=#5C5C5C;",a.Checked&&(Mc.style+="strokeColor=#999999;"));v.style+=h(v.style,a,e,v);break;case "AndroidCheckBox":var ge=null;a.Checked&&(ge=new mxCell("",new mxGeometry(.25*d,.05*-c,d,.8*c),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),ge.vertex=!0,v.insert(ge));v.style="Dark"==a.Scheme?v.style+"strokeWidth=1;strokeColor=#272727;fillColor=#111111;":v.style+
"strokeWidth=1;strokeColor=#5C5C5C;fillColor=#ffffff;";v.style+=h(v.style,a,e,v);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;";v.style+=h(v.style,a,e,v);break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+
a.BarPosition+";fillColor=#33b5e5;";v.style+=h(v.style,a,e,v);break;case "iOSSegmentedControl":Yb=parseInt(a.Tabs);Bb=d;v.style+="strokeColor=none;fillColor=none;";0<Yb&&(Bb/=Yb);Ma=[];Ha=[];for(b=0;b<Yb;b++)Ma[b]=new mxCell("",new mxGeometry(b*Bb,0,Bb,c),"strokeColor="+a.FillColor+";"),Ma[b].vertex=!0,v.insert(Ma[b]),Ma[b].value=l(a["Tab_"+b]),Ma[b].style+=q(a["Tab_"+b],t),Ma[b].style=a.Selected==b?Ma[b].style+ja(a,e):Ma[b].style+"fillColor=none;";v.style+=h(v.style,a,e,v);break;case "iOSSlider":v.style+=
"shape=mxgraph.ios7ui.slider;strokeColor="+a.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*a.BarPosition+";";v.style+=h(v.style,a,e,v);break;case "iOSProgressBar":v=new mxCell("",new mxGeometry(Math.round(N),Math.round(R+.25*c),Math.round(d),Math.round(.5*c)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");v.vertex=!0;wd=new mxCell("",new mxGeometry(0,0,d*a.BarPosition,Math.round(.5*c)),"strokeColor=none;"+ja(a,e));wd.vertex=!0;v.insert(wd);v.style+=
h(v.style,a,e,v);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;strokeColor=#D6D6D6;";v.style+=h(v.style,a,e,v);break;case "iOSStatusBar":v.style+="shape=mxgraph.ios7ui.appBar;strokeColor=#000000;";var va=new mxCell(l(a.Text),new mxGeometry(.35*d,0,.3*d,c),"strokeColor=none;fillColor=none;");va.vertex=!0;v.insert(va);va.style+=q(a.Text,t);var xb=new mxCell(l(a.Carrier),new mxGeometry(.09*d,0,.2*d,c),"strokeColor=none;fillColor=none;");xb.vertex=!0;v.insert(xb);xb.style+=q(a.Carrier,
t);v.style+=h(v.style,a,e,v);break;case "iOSSearchBar":v.value=l(a.Search);v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v,t)+q(a.Search,t);var Aa=new mxCell("",new mxGeometry(.3*d,.3*c,.4*c,.4*c),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");Aa.vertex=!0;v.insert(Aa);break;case "iOSNavBar":v.value=l(a.Title);v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+q(a.Title,t);v.style+=h(v.style,a,e,v,t);va=new mxCell(l(a.LeftText),new mxGeometry(.03*
d,0,.3*d,c),"strokeColor=none;fillColor=none;");va.vertex=!0;v.insert(va);va.style+=q(a.LeftText,t);xb=new mxCell(l(a.RightText),new mxGeometry(.65*d,0,.3*d,c),"strokeColor=none;fillColor=none;");xb.vertex=!0;v.insert(xb);xb.style+=q(a.RightText,t);Aa=new mxCell("",new mxGeometry(.02*d,.2*c,.3*c,.5*c),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");Aa.vertex=!0;v.insert(Aa);break;case "iOSTabs":Yb=parseInt(a.Tabs);Bb=d;v.style+="shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;";
v.style+=h(v.style,a,e,v);0<Yb&&(Bb/=Yb);Ma=[];Ha=[];for(b=0;b<Yb;b++)Ma[b]=new mxCell("",new mxGeometry(b*Bb,0,Bb,c),"strokeColor=none;"),Ma[b].vertex=!0,v.insert(Ma[b]),Ma[b].value=l(a["Tab_"+b]),Ma[b].style+=t?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+gb:F(a["Tab_"+b])+U(a["Tab_"+b])+V(a["Tab_"+b])+ia(a["Tab_"+b])+Fa(a["Tab_"+b])+Pa(a["Tab_"+b])+Xa(a["Tab_"+b])+Ja(a["Tab_"+b])+k(a["Tab_"+b])+r(a["Tab_"+b]),Ma[b].style+="verticalAlign=bottom;",Ma[b].style=a.Selected==b?Ma[b].style+"fillColor=#BBBBBB;":
Ma[b].style+"fillColor=none;";break;case "iOSDatePicker":var Zb=new mxCell("",new mxGeometry(0,0,.5*d,.2*c),"strokeColor=none;fillColor=none;");Zb.vertex=!0;v.insert(Zb);Zb.value=l(a.Option11);Zb.style+=q(a.Option11,t);var $b=new mxCell("",new mxGeometry(.5*d,0,.15*d,.2*c),"strokeColor=none;fillColor=none;");$b.vertex=!0;v.insert($b);$b.value=l(a.Option21);$b.style+=q(a.Option21,t);var ac=new mxCell("",new mxGeometry(.65*d,0,.15*d,.2*c),"strokeColor=none;fillColor=none;");ac.vertex=!0;v.insert(ac);
ac.value=l(a.Option31);ac.style+=q(a.Option31,t);var bc=new mxCell("",new mxGeometry(0,.2*c,.5*d,.2*c),"strokeColor=none;fillColor=none;");bc.vertex=!0;v.insert(bc);bc.value=l(a.Option12);bc.style+=q(a.Option12,t);var cc=new mxCell("",new mxGeometry(.5*d,.2*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");cc.vertex=!0;v.insert(cc);cc.value=l(a.Option22);cc.style+=q(a.Option22,t);var dc=new mxCell("",new mxGeometry(.65*d,.2*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");dc.vertex=!0;v.insert(dc);
dc.value=l(a.Option32);dc.style+=q(a.Option32,t);var lb=new mxCell("",new mxGeometry(0,.4*c,.5*d,.2*c),"strokeColor=none;fillColor=none;");lb.vertex=!0;v.insert(lb);lb.value=l(a.Option13);lb.style+=q(a.Option13,t);var mb=new mxCell("",new mxGeometry(.5*d,.4*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");mb.vertex=!0;v.insert(mb);mb.value=l(a.Option23);mb.style+=q(a.Option23,t);var ec=new mxCell("",new mxGeometry(.65*d,.4*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");ec.vertex=!0;v.insert(ec);
ec.value=l(a.Option33);ec.style+=q(a.Option33,t);var nb=new mxCell("",new mxGeometry(.8*d,.4*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");nb.vertex=!0;v.insert(nb);nb.value=l(a.Option43);nb.style+=q(a.Option43,t);var ob=new mxCell("",new mxGeometry(0,.6*c,.5*d,.2*c),"strokeColor=none;fillColor=none;");ob.vertex=!0;v.insert(ob);ob.value=l(a.Option14);ob.style+=q(a.Option14,t);var fc=new mxCell("",new mxGeometry(.5*d,.6*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");fc.vertex=!0;v.insert(fc);
fc.value=l(a.Option24);fc.style+=q(a.Option24,t);var gc=new mxCell("",new mxGeometry(.65*d,.6*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");gc.vertex=!0;v.insert(gc);gc.value=l(a.Option34);gc.style+=q(a.Option34,t);var hc=new mxCell("",new mxGeometry(.8*d,.6*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");hc.vertex=!0;v.insert(hc);hc.value=l(a.Option44);hc.style+=q(a.Option44,t);var pb=new mxCell("",new mxGeometry(0,.8*c,.5*d,.2*c),"strokeColor=none;fillColor=none;");pb.vertex=!0;v.insert(pb);
pb.value=l(a.Option15);pb.style+=q(a.Option15,t);var ic=new mxCell("",new mxGeometry(.5*d,.8*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");ic.vertex=!0;v.insert(ic);ic.value=l(a.Option25);ic.style+=q(a.Option25,t);var jc=new mxCell("",new mxGeometry(.65*d,.8*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");jc.vertex=!0;v.insert(jc);jc.value=l(a.Option35);jc.style+=q(a.Option35,t);ub=new mxCell("",new mxGeometry(0,.4*c-2,d,4),"shape=line;strokeColor=#888888;");ub.vertex=!0;v.insert(ub);vb=new mxCell("",
new mxGeometry(0,.6*c-2,d,4),"shape=line;strokeColor=#888888;");vb.vertex=!0;v.insert(vb);v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v);break;case "iOSTimePicker":Zb=new mxCell("",new mxGeometry(0,0,.25*d,.2*c),"strokeColor=none;fillColor=none;");Zb.vertex=!0;v.insert(Zb);Zb.value=l(a.Option11);Zb.style+=q(a.Option11,t);$b=new mxCell("",new mxGeometry(.25*d,0,.3*d,.2*c),"strokeColor=none;fillColor=none;");$b.vertex=!0;v.insert($b);$b.value=l(a.Option21);$b.style+=q(a.Option21,t);bc=new mxCell("",
new mxGeometry(0,.2*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");bc.vertex=!0;v.insert(bc);bc.value=l(a.Option12);bc.style+=q(a.Option12,t);cc=new mxCell("",new mxGeometry(.25*d,.2*c,.3*d,.2*c),"strokeColor=none;fillColor=none;");cc.vertex=!0;v.insert(cc);cc.value=l(a.Option22);cc.style+=q(a.Option22,t);lb=new mxCell("",new mxGeometry(0,.4*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");lb.vertex=!0;v.insert(lb);lb.value=l(a.Option13);lb.style+=q(a.Option13,t);mb=new mxCell("",new mxGeometry(.25*
d,.4*c,.3*d,.2*c),"strokeColor=none;fillColor=none;");mb.vertex=!0;v.insert(mb);mb.value=l(a.Option23);mb.style+=q(a.Option23,t);nb=new mxCell("",new mxGeometry(.7*d,.4*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");nb.vertex=!0;v.insert(nb);nb.value=l(a.Option33);nb.style+=q(a.Option33,t);ob=new mxCell("",new mxGeometry(0,.6*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");ob.vertex=!0;v.insert(ob);ob.value=l(a.Option14);ob.style+=q(a.Option14,t);fc=new mxCell("",new mxGeometry(.25*d,.6*c,.3*
d,.2*c),"strokeColor=none;fillColor=none;");fc.vertex=!0;v.insert(fc);fc.value=l(a.Option24);fc.style+=q(a.Option24,t);hc=new mxCell("",new mxGeometry(.7*d,.6*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");hc.vertex=!0;v.insert(hc);hc.value=l(a.Option34);hc.style+=q(a.Option34,t);pb=new mxCell("",new mxGeometry(0,.8*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");pb.vertex=!0;v.insert(pb);pb.value=l(a.Option15);pb.style+=q(a.Option15,t);ic=new mxCell("",new mxGeometry(.25*d,.8*c,.3*d,.2*c),"strokeColor=none;fillColor=none;");
ic.vertex=!0;v.insert(ic);ic.value=l(a.Option25);ic.style+=q(a.Option25,t);ub=new mxCell("",new mxGeometry(0,.4*c-2,d,4),"shape=line;strokeColor=#888888;");ub.vertex=!0;v.insert(ub);vb=new mxCell("",new mxGeometry(0,.6*c-2,d,4),"shape=line;strokeColor=#888888;");vb.vertex=!0;v.insert(vb);v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v);break;case "iOSCountdownPicker":ac=new mxCell("",new mxGeometry(.45*d,0,.2*d,.2*c),"strokeColor=none;fillColor=none;");ac.vertex=!0;v.insert(ac);ac.value=l(a.Option31);
ac.style+=q(a.Option31,t);dc=new mxCell("",new mxGeometry(.45*d,.2*c,.2*d,.2*c),"strokeColor=none;fillColor=none;");dc.vertex=!0;v.insert(dc);dc.value=l(a.Option32);dc.style+=q(a.Option32,t);lb=new mxCell("",new mxGeometry(0,.4*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");lb.vertex=!0;v.insert(lb);lb.value=l(a.Option13);lb.style+=q(a.Option13,t);mb=new mxCell("",new mxGeometry(.2*d,.4*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");mb.vertex=!0;v.insert(mb);mb.value=l(a.Option23);mb.style+=
q(a.Option23,t);ec=new mxCell("",new mxGeometry(.45*d,.4*c,.2*d,.2*c),"strokeColor=none;fillColor=none;");ec.vertex=!0;v.insert(ec);ec.value=l(a.Option33);ec.style+=q(a.Option33,t);nb=new mxCell("",new mxGeometry(.6*d,.4*c,.2*d,.2*c),"strokeColor=none;fillColor=none;");nb.vertex=!0;v.insert(nb);nb.value=l(a.Option43);nb.style+=q(a.Option43,t);ob=new mxCell("",new mxGeometry(0,.6*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");ob.vertex=!0;v.insert(ob);ob.value=l(a.Option14);ob.style+=q(a.Option14,
t);gc=new mxCell("",new mxGeometry(.45*d,.6*c,.2*d,.2*c),"strokeColor=none;fillColor=none;");gc.vertex=!0;v.insert(gc);gc.value=l(a.Option34);gc.style+=q(a.Option34,t);pb=new mxCell("",new mxGeometry(0,.8*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");pb.vertex=!0;v.insert(pb);pb.value=l(a.Option15);pb.style+=q(a.Option15,t);jc=new mxCell("",new mxGeometry(.45*d,.8*c,.2*d,.2*c),"strokeColor=none;fillColor=none;");jc.vertex=!0;v.insert(jc);jc.value=l(a.Option35);jc.style+=q(a.Option35,t);ub=new mxCell("",
new mxGeometry(0,.4*c-2,d,4),"shape=line;strokeColor=#888888;");ub.vertex=!0;v.insert(ub);vb=new mxCell("",new mxGeometry(0,.6*c-2,d,4),"shape=line;strokeColor=#888888;");vb.vertex=!0;v.insert(vb);v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v);break;case "iOSBasicCell":v.value=l(a.text);v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+.75*a.SeparatorInset+";";v.style+=(t?"fontSize=13;":F(a.text)+V(a.text)+ia(a.text))+
A(a.text);v.style+=h(v.style,a,e,v,t);switch(a.AccessoryIndicatorType){case "Disclosure":Aa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Aa.vertex=!0;v.insert(Aa);break;case "DetailDisclosure":Aa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Aa.vertex=!0;v.insert(Aa);var Ua=new mxCell("",new mxGeometry(.79*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
Ua.vertex=!0;v.insert(Ua);break;case "DetailIndicator":Ua=new mxCell("",new mxGeometry(.87*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Ua.vertex=!0;v.insert(Ua);break;case "CheckMark":Aa=new mxCell("",new mxGeometry(.89*d,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Aa.vertex=!0,v.insert(Aa)}break;case "iOSSubtitleCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=top;spacingLeft="+
.75*a.SeparatorInset+";";v.value=l(a.subtext);v.style+=t?"fontSize=13;":F(a.subtext)+V(a.subtext)+ia(a.subtext);v.style+=h(v.style,a,e,v,t);var Ya=new mxCell("",new mxGeometry(0,.4*c,d,.6*c),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+.75*a.SeparatorInset+";");Ya.vertex=!0;v.insert(Ya);Ya.value=l(a.text);Ya.style+=t?"html=1;fontSize=13;"+gb:F(a.text)+U(a.text)+V(a.text)+ia(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":Aa=new mxCell("",new mxGeometry(.91*
d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Aa.vertex=!0;v.insert(Aa);break;case "DetailDisclosure":Aa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Aa.vertex=!0;v.insert(Aa);Ua=new mxCell("",new mxGeometry(.79*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Ua.vertex=!0;v.insert(Ua);break;case "DetailIndicator":Ua=new mxCell("",new mxGeometry(.87*d,.25*c,.5*c,.5*c),
"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Ua.vertex=!0;v.insert(Ua);break;case "CheckMark":Aa=new mxCell("",new mxGeometry(.89*d,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Aa.vertex=!0,v.insert(Aa)}break;case "iOSRightDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=middle;spacingLeft="+.75*a.SeparatorInset+";";v.value=l(a.subtext);v.style+=
t?"fontSize=13;":F(a.subtext)+V(a.subtext)+ia(a.subtext);v.style+=h(v.style,a,e,v,t);Ya=null;switch(a.AccessoryIndicatorType){case "Disclosure":Aa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Aa.vertex=!0;v.insert(Aa);Ya=new mxCell("",new mxGeometry(.55*d,0,.3*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":Aa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");
Aa.vertex=!0;v.insert(Aa);Ua=new mxCell("",new mxGeometry(.79*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Ua.vertex=!0;v.insert(Ua);Ya=new mxCell("",new mxGeometry(.45*d,0,.3*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailIndicator":Ua=new mxCell("",new mxGeometry(.87*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Ua.vertex=!0;v.insert(Ua);Ya=new mxCell("",new mxGeometry(.52*
d,0,.3*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "CheckMark":Aa=new mxCell("",new mxGeometry(.89*d,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;");Aa.vertex=!0;v.insert(Aa);Ya=new mxCell("",new mxGeometry(.55*d,0,.3*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:Ya=new mxCell("",new mxGeometry(.65*d,0,.3*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;")}Ya.vertex=!0;v.insert(Ya);Ya.value=
l(a.text);Ya.style+=t?"html=1;fontSize=13;"+gb:F(a.text)+U(a.text)+V(a.text)+ia(a.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";v.style+=h(v.style,a,e,v);var Pb=new mxCell("",new mxGeometry(0,0,.25*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");Pb.vertex=!0;v.insert(Pb);Pb.value=l(a.subtext);Pb.style+=t?"html=1;fontSize=13;"+gb:F(a.subtext)+U(a.subtext)+V(a.subtext)+
ia(a.subtext);Ya=new mxCell("",new mxGeometry(.25*d,0,.5*d,c),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");Ya.vertex=!0;v.insert(Ya);Ya.value=l(a.text);Ya.style+=t?"html=1;fontSize=13;"+gb:F(a.text)+U(a.text)+V(a.text)+ia(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":Aa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Aa.vertex=!0;v.insert(Aa);break;case "DetailDisclosure":Aa=new mxCell("",
new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Aa.vertex=!0;v.insert(Aa);Ua=new mxCell("",new mxGeometry(.79*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Ua.vertex=!0;v.insert(Ua);break;case "DetailIndicator":Ua=new mxCell("",new mxGeometry(.87*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Ua.vertex=!0;v.insert(Ua);break;case "CheckMark":Aa=new mxCell("",new mxGeometry(.89*
d,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Aa.vertex=!0,v.insert(Aa)}break;case "iOSTableGroupedSectionBreak":v.style+="shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";va=new mxCell("",new mxGeometry(0,0,d,.4*c),"fillColor=none;strokeColor=none;spacing=10;align=left;");va.vertex=!0;v.insert(va);va.value=l(a.text);va.style+=t?"html=1;fontSize=13;"+gb:F(a.text)+U(a.text)+V(a.text)+ia(a.text);xb=new mxCell("",new mxGeometry(0,
.6*c,d,.4*c),"fillColor=none;strokeColor=none;spacing=10;align=left;");xb.vertex=!0;v.insert(xb);xb.value=l(a["bottom-text"]);xb.style+=t?"html=1;fontSize=13;"+gb:F(a["bottom-text"])+U(a["bottom-text"])+V(a["bottom-text"])+ia(a["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";v.value=l(a.text);v.style+=t?"fontSize=13;":F(a.text)+V(a.text)+ia(a.text);v.style+=h(v.style,a,e,v,t);break;case "SMPage":if(a.Group){v.style+=
"strokeColor=none;fillColor=none;";var g=new mxCell("",new mxGeometry(0,0,.9*d,.9*c),"rounded=1;arcSize=3;part=1;");g.vertex=!0;v.insert(g);g.style+=y(a,e)+ja(a,e)+G(a,e,g)+K(a)+sb(a);var m=new mxCell("",new mxGeometry(.1*d,.1*c,.9*d,.9*c),"rounded=1;arcSize=3;part=1;");m.vertex=!0;v.insert(m);m.value=l(a.Text);m.style+=y(a,e)+ja(a,e)+G(a,e,m)+K(a)+sb(a)+q(a,t);a.Future&&(g.style+="dashed=1;fixDash=1;",m.style+="dashed=1;fixDash=1;")}else v.style+="rounded=1;arcSize=3;",a.Future&&(v.style+="dashed=1;fixDash=1;"),
v.value=l(a.Text),v.style+=y(a,e)+ja(a,e)+G(a,e,v)+K(a)+sb(a)+q(a,t);v.style+=h(v.style,a,e,v,t);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":g=null;switch(f.Class){case "SMHome":g=new mxCell("",new mxGeometry(.5*d-.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":g=new mxCell("",new mxGeometry(.5*d-.4*c,.19*c,.8*c,.62*c),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":g=new mxCell("",new mxGeometry(.5*d-.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":g=new mxCell("",new mxGeometry(.5*d-.35*c,.15*c,.7*c,.7*c),"part=1;shape=mxgraph.mscae.enterprise.settings;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMSitemap":g=new mxCell("",new mxGeometry(.5*d-.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":g=new mxCell("",new mxGeometry(.5*d-.3*c,.25*c,.6*c,.5*c),"part=1;shape=mxgraph.mscae.general.checkmark;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMVideo":g=new mxCell("",new mxGeometry(.5*d-.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":g=new mxCell("",new mxGeometry(.5*d-.3*c,.2*c,.6*c,.6*c),"part=1;shape=mxgraph.mscae.general.audio;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMCalendar":g=new mxCell("",new mxGeometry(.5*d-.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 O=ja(a,e);O=""==O?"#ffffff;":O.replace("fillColor=","");g=new mxCell("",new mxGeometry(.5*d-.35*c,.15*c,.7*c,.7*c),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+
O);break;case "SMCloud":g=new mxCell("",new mxGeometry(.5*d-.4*c,.27*c,.8*c,.46*c),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":g=new mxCell("",new mxGeometry(.5*d-.25*c,.15*c,.5*c,.7*c),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMForm":g=new mxCell("",new mxGeometry(.5*d-.4*c,.15*c,.8*c,.7*c),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMGame":g=new mxCell("",new mxGeometry(.5*d-.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":g=new mxCell("",new mxGeometry(.5*d-.4*c,.2*c,.8*c,.6*c),"part=1;shape=mxgraph.mscae.enterprise.backup_online;fillColor=#e6e6e6;opacity=50;strokeColor=none;")}g.vertex=!0;v.insert(g);g.value=l(a.Text);g.style+=q(a,t);v.style+=h(v.style,a,e,v);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";
g=new mxCell("",new mxGeometry(.1*d,0,.9*d,.9*c),"part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=new mxCell("",new mxGeometry(0,.1*c,.9*d,.9*c),"part=1;");m.vertex=!0;v.insert(m);m.value=l(a.Text);m.style+=q(a.Text,t);m.style+=h(m.style,a,e,m,t);break;case "UMLConstraintBlock":var xc=new mxCell("",new mxGeometry(0,0,.25*c,c),"shape=curlyBracket;rounded=1;");xc.vertex=!0;v.insert(xc);var yc=new mxCell("",new mxGeometry(d-.25*c,0,.25*c,c),"shape=curlyBracket;rounded=1;flipH=1;");yc.vertex=
!0;v.insert(yc);ea=new mxCell("",new mxGeometry(.25*c,0,d-.5*c,c),"strokeColor=none;fillColor=none;");ea.vertex=!0;ea.value=l(a);v.insert(ea);v.style="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);xc.style+=G(a,e,xc);yc.style+=G(a,e,yc);ea.style+=V(a,ea);xc.style+=h(xc.style,a,e,xc);yc.style+=h(yc.style,a,e,yc);ea.style+=h(ea.style,a,e,ea,t);break;case "UMLTextBlock":v.value=l(a.Text);v.style+="strokeColor=none;"+q(a.Text,t);v.style+=h(v.style,a,e,v,t);break;case "UMLProvidedInterfaceBlock":case "UMLProvidedInterfaceBlockV2":hb=
Q(a,e,v);a.Rotatio=null;var Qb=h(v.style,a,e,v,t);-1==Qb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Qb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Qb);v.style="group;dropTarget=0;pointerEvents=0;"+hb;var Rd=.8*d,Ef=d-Rd,Nc=new mxCell("",new mxGeometry(.2,0,Rd,c),"shape=ellipse;"+Qb);Nc.vertex=!0;Nc.geometry.relative=!0;v.insert(Nc);Ha=new mxCell("",new mxGeometry(0,.5,Ef,1),"line;"+Qb);Ha.geometry.relative=!0;Ha.vertex=!0;v.insert(Ha);break;case "UMLComponentBoxBlock":case "UMLComponentBoxBlockV2":v.value=
l(a);v.style="html=1;dropTarget=0;"+h(v.style,a,e,v,t);var ib=new mxCell("",new mxGeometry(1,0,15,15),"shape=component;jettyWidth=8;jettyHeight=4;");ib.geometry.relative=!0;ib.geometry.offset=new mxPoint(-20,5);ib.vertex=!0;v.insert(ib);break;case "UMLAssemblyConnectorBlock":case "UMLAssemblyConnectorBlockV2":hb=Q(a,e,v);a.Rotatio=null;Qb=h(v.style,a,e,v,t);-1==Qb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Qb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Qb);v.style="group;dropTarget=0;pointerEvents=0;"+hb;var Qe=
.225*d,Re=.1*d;Rd=d-Qe-Re;Nc=new mxCell("",new mxGeometry(.225,0,Rd,c),"shape=providedRequiredInterface;verticalLabelPosition=bottom;"+Qb);Nc.vertex=!0;Nc.geometry.relative=!0;v.insert(Nc);ub=new mxCell("",new mxGeometry(0,.5,Qe,1),"line;"+Qb);ub.geometry.relative=!0;ub.vertex=!0;v.insert(ub);vb=new mxCell("",new mxGeometry(.9,.5,Re,1),"line;"+Qb);vb.geometry.relative=!0;vb.vertex=!0;v.insert(vb);break;case "BPMNActivity":v.value=l(a.Text);switch(a.bpmnActivityType){case 1:v.style+=q(a.Text,t);break;
case 2:v.style+="shape=ext;double=1;"+q(a.Text,t);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 5;"+q(a.Text,t);break;case 4:v.style+="shape=ext;strokeWidth=2;"+q(a.Text,t)}if(0!=a.bpmnTaskType){switch(a.bpmnTaskType){case 1:g=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");g.geometry.offset=new mxPoint(4,7);break;case 2:g=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");g.geometry.offset=new mxPoint(4,7);break;case 3:g=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");
g.geometry.offset=new mxPoint(4,5);break;case 4:g=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");g.geometry.offset=new mxPoint(4,7);break;case 5:g=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");g.geometry.offset=new mxPoint(4,7);break;case 6:g=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");g.geometry.offset=new mxPoint(4,5);break;case 7:g=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),
g.geometry.offset=new mxPoint(4,5)}if(1==a.bpmnTaskType){var Oc=ja(a,e);O=y(a,e);O=O.replace("strokeColor","fillColor");Oc=Oc.replace("fillColor","strokeColor");""==O&&(O="fillColor=#000000;");""==Oc&&(Oc="strokeColor=#ffffff;");g.style+=Oc+O+"part=1;"}else g.style+=ja(a,e)+y(a,e)+"part=1;";g.geometry.relative=!0;g.vertex=!0;v.insert(g)}var yd=0;0!=a.bpmnActivityMarker1&&yd++;0!=a.bpmnActivityMarker2&&yd++;var yb=0;1==yd?yb=-7.5:2==yd&&(yb=-19);if(0!=a.bpmnActivityMarker1){switch(a.bpmnActivityMarker1){case 1:g=
new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");g.geometry.offset=new mxPoint(yb,-20);g.style+=ja(a,e)+y(a,e);break;case 2:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");g.geometry.offset=new mxPoint(yb,-20);g.style+=ja(a,e)+y(a,e);break;case 3:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");g.geometry.offset=new mxPoint(yb,-20);g.style+=ja(a,e)+y(a,e);break;case 4:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");
g.geometry.offset=new mxPoint(yb,-20);g.style+=ja(a,e)+y(a,e);break;case 5:g=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");g.geometry.offset=new mxPoint(yb,-17);O=y(a,e);O=O.replace("strokeColor","fillColor");""==O&&(O="fillColor=#000000;");g.style+=O;break;case 6:g=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),g.geometry.offset=new mxPoint(yb,-18),g.style+=ja(a,e)+y(a,e)}g.geometry.relative=!0;g.vertex=
!0;v.insert(g)}2==yd&&(yb=5);if(0!=a.bpmnActivityMarker2){switch(a.bpmnActivityMarker2){case 1:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");g.geometry.offset=new mxPoint(yb,-20);g.style+=ja(a,e)+y(a,e);break;case 2:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");g.geometry.offset=new mxPoint(yb,-20);g.style+=ja(a,e)+y(a,e);break;case 3:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");g.geometry.offset=new mxPoint(yb,-20);
g.style+=ja(a,e)+y(a,e);break;case 4:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");g.geometry.offset=new mxPoint(yb,-20);g.style+=ja(a,e)+y(a,e);break;case 5:g=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");g.geometry.offset=new mxPoint(yb,-17);O=y(a,e);O=O.replace("strokeColor","fillColor");""==O&&(O="fillColor=#000000;");g.style+=O;break;case 6:g=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),
g.geometry.offset=new mxPoint(yb,-18),g.style+=ja(a,e)+y(a,e)}g.geometry.relative=!0;g.vertex=!0;v.insert(g)}v.style+=h(v.style,a,e,v);break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;";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;"}v.style+=h(v.style,a,e,v,t);break;case "BPMNChoreography":try{var ba=P(a.FillColor),he=Pd(ba,.75),Gc=F(a.Name).match(/\d+/),Za=Math.max(mxUtils.getSizeForString(a.Name.t,Gc?Gc[0]:"13",null,d-10).height,24);ba="swimlaneFillColor="+he+";";v.value=l(a.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+ba+"startSize="+Za+";spacingLeft=3;spacingRight=3;fontStyle=0;"+
q(a.Name,t);v.style+=h(v.style,a,e,v,t);var Rb=Za;Gc=F(a.TaskName).match(/\d+/);var kc=a.TaskHeight?.75*a.TaskHeight:Math.max(mxUtils.getSizeForString(a.TaskName.t,Gc?Gc[0]:"13",null,d-10).height+15,24),zc=new mxCell("",new mxGeometry(0,Rb,d,kc),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");zc.value=l(a.TaskName);zc.vertex=!0;v.insert(zc);zc.style+=q(a.TaskName,t);zc.style+=h(zc.style,a,e,zc,t);Rb+=kc;M=[];for(b=0;b<a.Fields;b++){var Sd=a["Participant"+(b+1)];Gc=F(Sd).match(/\d+/);
kc=Math.max(mxUtils.getSizeForString(Sd.t,Gc?Gc[0]:"13",null,d-10).height,24);M[b]=new mxCell("",new mxGeometry(0,Rb,d,kc),"part=1;html=1;resizeHeight=0;fillColor=none;spacingTop=-1;spacingLeft=3;spacingRight=3;");Rb+=kc;M[b].vertex=!0;v.insert(M[b]);M[b].style+=q(Sd,t);M[b].style+=h(M[b].style,a,e,M[b],t);M[b].value=l(Sd)}}catch(bb){console.log(bb)}break;case "BPMNConversation":v.style+="shape=hexagon;perimeter=hexagonPerimeter2;";v.value=l(a.Text);v.style=0==a.bpmnConversationType?v.style+sb(a):
v.style+"strokeWidth=2;";a.bpmnIsSubConversation&&(g=new mxCell("",new mxGeometry(.5,1,12,12),"shape=plus;part=1;"),g.geometry.offset=new mxPoint(-6,-17),g.style+=ja(a,e)+y(a,e),g.geometry.relative=!0,g.vertex=!0,v.insert(g));v.style+=h(v.style,a,e,v,t);break;case "BPMNGateway":v.style+="shape=mxgraph.bpmn.shape;perimeter=rhombusPerimeter;background=gateway;verticalLabelPosition=bottom;verticalAlign=top;";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;"}v.style+=h(v.style,a,e,v);v.value=l(a.Text);v.style+=q(a,t);break;case "BPMNData":v.style+="shape=note;size=14;";switch(a.bpmnDataType){case 0:v.value=
l(a.Text);a.Text&&!a.Text.t&&(a.Text.t=" ");break;case 1:g=new mxCell("",new mxGeometry(.5,1,12,10),"shape=parallelMarker;part=1;");g.geometry.offset=new mxPoint(-6,-15);g.style+=ja(a,e)+y(a,e);g.geometry.relative=!0;g.vertex=!0;v.insert(g);break;case 2:g=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;");g.geometry.offset=new mxPoint(3,3);g.style+=ja(a,e)+y(a,e);g.geometry.relative=!0;g.vertex=!0;v.insert(g);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
va=new mxCell("",new mxGeometry(0,0,d,20),"strokeColor=none;fillColor=none;");va.geometry.offset=new mxPoint(0,14);va.geometry.relative=!0;va.vertex=!0;v.insert(va);va.value=l(a.Text);va.style+=q(a,t);break;case 3:g=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),g.geometry.offset=new mxPoint(3,3),g.style+=y(a,e),g.geometry.relative=!0,g.vertex=!0,v.insert(g),O=y(a,e),O=O.replace("strokeColor","fillColor"),""==O&&(O="fillColor=#000000;"),g.style+=
O,va=new mxCell("",new mxGeometry(0,0,d,20),"strokeColor=none;fillColor=none;"),va.geometry.offset=new mxPoint(0,14),va.geometry.relative=!0,va.vertex=!0,v.insert(va),va.value=l(a.Text),va.style+=q(a,t)}v.style+=h(v.style,a,e,v);break;case "BPMNBlackPool":v.value=l(a.Text);v.style+=h(v.style,a,e,v,t);g=new mxCell("",new mxGeometry(0,0,d,c),"fillColor=#000000;strokeColor=none;opacity=30;");g.vertex=!0;v.insert(g);break;case "DFDExternalEntityBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=
h(v.style,a,e,v);g=new mxCell("",new mxGeometry(0,0,.95*d,.95*c),"part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=new mxCell("",new mxGeometry(.05*d,.05*c,.95*d,.95*c),"part=1;");m.vertex=!0;v.insert(m);m.value=l(a.Text);m.style+=q(a.Text,t);m.style+=h(m.style,a,e,m,t);break;case "GSDFDDataStoreBlock":v.value=l(a.Text);v.style+="shape=partialRectangle;right=0;"+q(a.Text,t);v.style+=h(v.style,a,e,v,t);g=new mxCell("",new mxGeometry(0,0,.2*d,c),"part=1;");g.vertex=!0;v.insert(g);g.value=
l(a.Number);g.style+=q(a.Number,t);g.style+=h(g.style,a,e,g,t);break;case "OrgBlock":var Se="";for(xa in a.Active)"Photo"!=xa&&a.Active[xa]&&(Se+=l(a[xa],!0));if(a.Active.Photo){var ie=.4*d;v.style+="spacingLeft="+ie+";imageWidth="+(ie-4)+";imageHeight="+(ie-4)+";imageAlign=left;imageVerticalAlign=top;image="+u(a.Photo)}v.value=Se;v.style+=h(v.style,a,e,v,!0);break;case "DefaultTableBlock":try{Ab=a.RowHeights.length;Mb=a.ColWidths.length;var Td=[],zd=[];for(b=0;b<Ab;b++)Td[b]=.75*a.RowHeights[b];
for(X=0;X<Mb;X++)zd[X]=.75*a.ColWidths[X];v.style="group;dropTarget=0;pointerEvents=0;";var je=a.BandedColor1,ke=a.BandedColor2,Ff=a.BandedRows,Te=a.BandedCols,Ud=a.HideH,Gf=a.HideV,Ue=a.TextVAlign,Ve=a.FillColor,We=a.StrokeStyle;delete a.StrokeStyle;var Hf=aa(Ve,"fillOpacity"),Xe=a.LineColor,If=aa(Xe,"strokeOpacity");R=0;var Ad={};for(b=0;b<Ab;b++){N=0;c=Td[b];for(X=0;X<Mb;X++){var Hb=b+","+X;if(Ad[Hb])N+=zd[X];else{var fb=a["CellFill_"+Hb],le=a["NoBand_"+Hb],Vd=a["CellSize_"+Hb],lc=a["Cell_"+Hb],
Ye=a["Cell_"+Hb+"_VAlign"],Jf=a["Cell_"+Hb+"_TRotation"],Kf=a["CellBorderWidthH_"+Hb],Lf=a["CellBorderColorH_"+Hb],Mf=a["CellBorderStrokeStyleH_"+Hb],Nf=a["CellBorderWidthV_"+Hb],Of=a["CellBorderColorV_"+Hb],Pf=a["CellBorderStrokeStyleV_"+Hb],Ze=Ud?Of:Lf,$e=aa(Ze,"strokeOpacity"),af=Ud?Nf:Kf,Pc=Ud?Pf:Mf;fb=Ff&&!le?0==b%2?je:Te&&!le?0==X%2?je:ke:ke:Te&&!le?0==X%2?je:ke:fb;var Qf=aa(fb,"fillOpacity")||Hf;d=zd[X];var bf=c;Vc=d;for(var Ib=b+1;Ib<b+Vd.h;Ib++)if(null!=Td[Ib]){bf+=Td[Ib];Ad[Ib+","+X]=!0;
for(var Qc=X+1;Qc<X+Vd.w;Qc++)Ad[Ib+","+Qc]=!0}for(Ib=X+1;Ib<X+Vd.w;Ib++)if(null!=zd[Ib])for(Vc+=zd[Ib],Ad[b+","+Ib]=!0,Qc=b+1;Qc<b+Vd.h;Qc++)Ad[Qc+","+Ib]=!0;var ha=new mxCell("",new mxGeometry(N,R,Vc,bf),"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;"+(Gf?"left=0;right=0;":"")+(Ud?"top=0;bottom=0;":"")+ja({FillColor:fb||Ve})+Ub(mxConstants.STYLE_STROKECOLOR,P(Ze),P(Xe))+(null!=af?Ub(mxConstants.STYLE_STROKEWIDTH,Math.round(.75*parseFloat(af)),"1"):"")+($e?$e:If)+Qf+"verticalAlign="+
(Ye?Ye:Ue?Ue:"middle")+";"+Fb({StrokeStyle:Pc?Pc:We?We:"solid"})+(Jf?"horizontal=0;":""));ha.vertex=!0;ha.value=l(lc);ha.style+=h(ha.style,a,e,ha,t)+(t?"fontSize=13;":F(lc)+V(lc)+ia(lc)+Fa(lc,ha)+Pa(lc)+Xa(lc)+Ja(lc)+k(lc))+r(lc)+A(lc);v.insert(ha);N+=d}}R+=c}}catch(bb){console.log(bb)}break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";"VSMDedicatedProcessBlock"==f.Class?v.value=l(a.Text):"VSMProductionControlBlock"==
f.Class&&(v.value=l(a.Resources));v.style+=h(v.style,a,e,v,t);"VSMDedicatedProcessBlock"==f.Class&&(g=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),g.geometry.relative=!0,g.geometry.offset=new mxPoint(4,-13),g.vertex=!0,v.insert(g),g.style+=h(g.style,a,e,g));va=new mxCell("",new mxGeometry(0,0,d,15),"strokeColor=none;fillColor=none;part=1;");va.vertex=!0;v.insert(va);va.value=l(a.Title);va.style+=q(a.Title,t);a.Text=null;break;case "VSMSharedProcessBlock":v.style+=
"shape=mxgraph.lean_mapping.manufacturing_process_shared;spacingTop=-5;verticalAlign=top;";v.value=l(a.Text);v.style+=h(v.style,a,e,v,t);va=new mxCell("",new mxGeometry(.1*d,.3*c,.8*d,.6*c),"part=1;");va.vertex=!0;v.insert(va);va.value=l(a.Resource);va.style+=q(a.Resource,t);va.style+=h(va.style,a,e,va,t);break;case "VSMWorkcellBlock":v.style+="shape=mxgraph.lean_mapping.work_cell;verticalAlign=top;spacingTop=-2;";v.value=l(a.Text);v.style+=h(v.style,a,e,v,t);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+=
"strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);wb=c;Xb=parseInt(a.Cells);ba=h("part=1;",a,e,v);0<Xb&&(wb/=Xb);M=[];Ha=[];for(b=1;b<=Xb;b++)M[b]=new mxCell("",new mxGeometry(0,(b-1)*wb,d,wb),ba),M[b].vertex=!0,v.insert(M[b]),M[b].value=l(a["cell_"+b]),M[b].style+=q(a["cell_"+b],t);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;";v.value=l(a.Text);v.style+=h(v.style,a,e,v,t);break;case "VSMSupermarketBlock":v.style+=
"strokeColor=none;";v.style+=h(v.style,a,e,v);wb=c;Xb=parseInt(a.Cells);ba=h("part=1;fillColor=none;",a,e,v);0<Xb&&(wb/=Xb);M=[];Pb=[];for(b=1;b<=Xb;b++)M[b]=new mxCell("",new mxGeometry(.5*d,(b-1)*wb,.5*d,wb),"shape=partialRectangle;left=0;"+ba),M[b].vertex=!0,v.insert(M[b]),Pb[b]=new mxCell("",new mxGeometry(0,(b-1)*wb,d,wb),"strokeColor=none;fillColor=none;part=1;"),Pb[b].vertex=!0,v.insert(Pb[b]),Pb[b].value=l(a["cell_"+b]),Pb[b].style+=q(a["cell_"+b],t);break;case "VSMFIFOLaneBlock":v.style+=
"shape=mxgraph.lean_mapping.fifo_sequence_flow;fontStyle=0;fontSize=18";v.style+=h(v.style,a,e,v);v.value="FIFO";break;case "VSMGoSeeProductionBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";v.value=l(a.Text);v.style+=h(v.style,a,e,v,t);g=new mxCell("",new mxGeometry(.17*d,.2*c,13,6),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);break;case "VSMProductionKanbanBatchBlock":v.style+="strokeColor=none;fillColor=none;";
ba="shape=card;size=18;flipH=1;part=1;";g=new mxCell("",new mxGeometry(.1*d,0,.9*d,.8*c),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;"+ba);g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=new mxCell("",new mxGeometry(.05*d,.1*c,.9*d,.8*c),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;"+ba);m.vertex=!0;v.insert(m);m.style+=h(m.style,a,e,m);var H=new mxCell("",new mxGeometry(0,.2*c,.9*d,.8*c),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;spacing=2;"+
ba);H.vertex=!0;v.insert(H);H.value=l(a.Text);H.style+=h(H.style,a,e,H,t);break;case "VSMElectronicInformationArrow":v.style="group;";v.value=l(a.Title);v.style+=q(a.Title,t);var na=new mxCell("",new mxGeometry(0,0,d,c),"shape=mxgraph.lean_mapping.electronic_info_flow_edge;html=1;entryX=0;entryY=1;exitX=1;exitY=0;");na.edge=!0;na.geometry.relative=1;n.addCell(na,v,null,v,v);break;case "AWSRoundedRectangleContainerBlock2":case "AWSRoundedRectangleContainerBlock":v.style+="strokeColor=none;fillColor=none;";
a.Spotfleet?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=l(a.Title),g.style+=h(g.style,a,e,g,t),m=new mxCell("",new mxGeometry(0,0,35,40),"strokeColor=none;shape=mxgraph.aws3.spot_instance;fillColor=#f58536;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(30,0),m.vertex=!0,v.insert(m)):a.Beanstalk?
(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=l(a.Title),g.style+=h(g.style,a,e,g,t),m=new mxCell("",new mxGeometry(0,0,30,40),"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk;fillColor=#759C3E;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(30,0),m.vertex=!0,v.insert(m)):a.EC2?(g=new mxCell("",
new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=l(a.Title),g.style+=h(g.style,a,e,g,t),m=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.ec2;fillColor=#F58534;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(30,0),m.vertex=!0,v.insert(m)):a.Subnet?(g=new mxCell("",new mxGeometry(0,
0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=l(a.Title),g.style+=h(g.style,a,e,g,t),m=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.permissions;fillColor=#146EB4;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(30,0),m.vertex=!0,v.insert(m)):a.VPC?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),
g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=l(a.Title),g.style+=h(g.style,a,e,g,t),m=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.virtual_private_cloud;fillColor=#146EB4;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(30,0),m.vertex=!0,v.insert(m)):a.AWS?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=
new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=l(a.Title),g.style+=h(g.style,a,e,g,t),m=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.cloud;fillColor=#F58534;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(30,0),m.vertex=!0,v.insert(m)):a.Corporate?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,
20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=l(a.Title),g.style+=h(g.style,a,e,g,t),m=new mxCell("",new mxGeometry(0,0,25,40),"strokeColor=none;shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(30,0),m.vertex=!0,v.insert(m)):(v.style="resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;",v.value=l(a.Title),v.style+=h(v.style,a,e,v,t));break;case "AWSElasticComputeCloudBlock2":v.style+=
"strokeColor=none;shape=mxgraph.aws3.ec2;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=l(a.Title);v.style+=h(v.style,a,e,v,t);break;case "AWSRoute53Block2":v.style+="strokeColor=none;shape=mxgraph.aws3.route_53;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=l(a.Title);v.style+=h(v.style,a,e,v,t);break;case "AWSRDBSBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.rds;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=l(a.Title);
v.style+=h(v.style,a,e,v,t);break;case "NET_RingNetwork":v.style+="strokeColor=none;fillColor=none;";ha=new mxCell("",new mxGeometry(.25*d,.25*c,.5*d,.5*c),"ellipse;html=1;strokeColor=#29AAE1;strokeWidth=2;");ha.vertex=!0;v.insert(ha);var Ga=[ha];ha.style+=ja(a,e);na=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=none;dashed=0;html=1;strokeColor=#29AAE1;strokeWidth=2;");na.geometry.relative=!0;na.edge=!0;oc(.5*d,0,na,p,n,Ga,v,ha);oc(.855*d,.145*c,na,p,n,Ga,v,ha);oc(d,.5*
c,na,p,n,Ga,v,ha);oc(.855*d,.855*c,na,p,n,Ga,v,ha);oc(.5*d,c,na,p,n,Ga,v,ha);oc(.145*d,.855*c,na,p,n,Ga,v,ha);oc(0,.5*c,na,p,n,Ga,v,ha);oc(.145*d,.145*c,na,p,n,Ga,v,ha);break;case "NET_Ethernet":v.style+="strokeColor=none;fillColor=none;";ha=new mxCell("",new mxGeometry(0,.5*c-10,d,20),"shape=mxgraph.networks.bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;fillColor=#29AAE1;strokeColor=#29AAE1;");ha.vertex=!0;v.insert(ha);Ga=[ha];na=new mxCell("",
new mxGeometry(0,0,0,0),"strokeColor=#29AAE1;edgeStyle=none;rounded=0;endArrow=none;html=1;strokeWidth=2;");na.geometry.relative=!0;na.edge=!0;Ga=[ha];var Bd=d/a.NumTopNodes;for(b=0;b<a.NumTopNodes;b++)oc(.5*Bd+b*Bd,0,na,p,n,Ga,v,ha);Bd=d/a.NumBottomNodes;for(b=0;b<a.NumBottomNodes;b++)oc(.5*Bd+b*Bd,c,na,p,n,Ga,v,ha);break;case "EE_OpAmp":v.style+="shape=mxgraph.electrical.abstract.operational_amp_1;";v.value=l(a.Title);v.style+=h(v.style,a,e,v,t);a.ToggleCharge&&(v.style+="flipV=1;");break;case "EIMessageChannelBlock":case "EIDatatypeChannelBlock":case "EIInvalidMessageChannelBlock":case "EIDeadLetterChannelBlock":case "EIGuaranteedDeliveryBlock":v.style+=
"verticalLabelPosition=bottom;verticalAlign=top;";v.value=l(a.Text);v.style+=h(v.style,a,e,v,t);"EIMessageChannelBlock"==f.Class?(g=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;"),g.geometry.offset=new mxPoint(.45*-d,0)):"EIDatatypeChannelBlock"==f.Class?(g=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.dataChannel;fillColor=#818181;part=1;"),g.geometry.offset=new mxPoint(.45*-d,0)):"EIInvalidMessageChannelBlock"==f.Class?(g=
new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.invalidMessageChannel;fillColor=#818181;part=1;"),g.geometry.offset=new mxPoint(.45*-d,0)):"EIDeadLetterChannelBlock"==f.Class?(g=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.deadLetterChannel;fillColor=#818181;part=1;"),g.geometry.offset=new mxPoint(.45*-d,0)):"EIGuaranteedDeliveryBlock"==f.Class&&(g=new mxCell("",new mxGeometry(.5,.5,20,27),"shape=cylinder;fillColor=#818181;part=1;"),g.geometry.offset=new mxPoint(-10,
-7));g.geometry.relative=!0;g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);na=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;");na.geometry.relative=!0;na.edge=!0;ab(.15*d,.25*c,.85*d,.25*c,na,p,n,Ga,v,ha);break;case "EIChannelAdapterBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=l(a.Text);v.style+=h(v.style,a,e,v,t);g=new mxCell("",new mxGeometry(0,.07*c,.21*d,.86*c),
"fillColor=#FFFF33;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=new mxCell("",new mxGeometry(.26*d,.09*c,.2*d,.82*c),"shape=mxgraph.eip.channel_adapter;fillColor=#4CA3D9;part=1;");m.vertex=!0;v.insert(m);m.style+=h(m.style,a,e,m);H=new mxCell("",new mxGeometry(1,.5,.35*d,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;");H.geometry.relative=!0;H.geometry.offset=new mxPoint(.4*-d,-10);H.vertex=!0;v.insert(H);H.style+=h(H.style,a,e,H);W=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;");W.geometry.relative=!0;W.edge=!0;g.insertEdge(W,!0);m.insertEdge(W,!1);W.style+=y(a,e);p.push(n.addCell(W,null,null,null,null));T=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;");
T.geometry.relative=!0;T.edge=!0;m.insertEdge(T,!0);H.insertEdge(T,!1);p.push(n.addCell(T,null,null,null,null));break;case "EIMessageBlock":case "EICommandMessageBlock":case "EIDocumentMessageBlock":case "EIEventMessageBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=l(a.Text);v.style+=h(v.style,a,e,v,t);g=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);var Cd=a.Messages,
me=(c-17)/Cd;m=[];na=[];for(b=0;b<Cd;b++){var Dd=me*(b+1)-3;m[b]=new mxCell("",new mxGeometry(d-20,Dd,20,20),"part=1;");m[b].vertex=!0;v.insert(m[b]);switch(f.Class){case "EIMessageBlock":m[b].value=l(a["message_"+(b+1)]);m.style+=q(a["message_"+(b+1)],t);break;case "EICommandMessageBlock":m[b].value="C";m[b].style+="fontStyle=1;fontSize=13;";break;case "EIDocumentMessageBlock":m[b].value="D";m[b].style+="fontStyle=1;fontSize=13;";break;case "EIEventMessageBlock":m[b].value="E",m[b].style+="fontStyle=1;fontSize=13;"}m[b].style+=
h(m[b].style,a,e,m[b]);na[b]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");na[b].geometry.relative=!0;na[b].edge=!0;g.insertEdge(na[b],!1);m[b].insertEdge(na[b],!0);na[b].style+=h(na[b].style,a,e,na[b]);var Hc=[];Hc.push(new mxPoint(N+8.5,R+Dd+10));na[b].geometry.points=Hc;p.push(n.addCell(na[b],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=
l(a.Text);v.style+=h(v.style,a,e,v,t);g=new mxCell("",new mxGeometry(.45*d,.25*c,.3*d,.5*c),"part=1;fillColor=#ffffff");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);na=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;");na.geometry.relative=!0;na.edge=!0;ab(0,.5*c,.4*d,.5*c,na,p,n,Ga,v,ha);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=
l(a.Text);v.style+=h(v.style,a,e,v,t);var W=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;");W.geometry.relative=!0;W.edge=!0;ab(.05*d,.5*c,.85*d,.5*c,W,p,n,Ga,v,ha);var T=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;");T.geometry.relative=!0;T.edge=!0;ab(.05*d,.5*c,.85*d,.15*c,T,p,n,
Ga,v,ha);var pa=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;");pa.geometry.relative=!0;pa.edge=!0;ab(.05*d,.5*c,.85*d,.85*c,pa,p,n,Ga,v,ha);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=l(a.Text);v.style+=h(v.style,a,e,v,t);W=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;");
W.geometry.relative=!0;W.edge=!0;W.style+=y(a,e);ab(.05*d,.5*c,.95*d,.5*c,W,p,n,Ga,v,ha);T=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;");T.geometry.relative=!0;T.edge=!0;T.style+=y(a,e);ab(.3*d,.1*c,.3*d,.5*c,T,p,n,Ga,v,ha);pa=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;");
pa.geometry.relative=!0;pa.edge=!0;pa.style+=y(a,e);ab(.7*d,.1*c,.7*d,.5*c,pa,p,n,Ga,v,ha);var Ta=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;");Ta.geometry.relative=!0;Ta.edge=!0;Ta.style+=y(a,e);ab(.5*d,.5*c,.5*d,.9*c,Ta,p,n,Ga,v,ha);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=l(a.Text);v.style+=h(v.style,
a,e,v,t);g=new mxCell("",new mxGeometry(.2*d,.21*c,.16*d,.24*c),"part=1;fillColor=#ffffff;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);W=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;");W.geometry.relative=!0;W.edge=!0;ab(.45*d,.33*c,.8*d,.33*c,W,p,n,Ga,v,ha);m=new mxCell("",new mxGeometry(.64*d,.55*c,.16*d,.24*c),"part=1;fillColor=#ffffff;");m.vertex=!0;v.insert(m);m.style+=h(m.style,a,
e,m);T=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;");T.geometry.relative=!0;T.edge=!0;ab(.55*d,.67*c,.2*d,.67*c,T,p,n,Ga,v,ha);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=l(a.Text);v.style+=h(v.style,a,e,v,t);g=new mxCell("",new mxGeometry(.1*d,.15*c,.8*d,.7*c),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");g.vertex=!0;v.insert(g);
g.style+=h(g.style,a,e,g);break;case "EICorrelationIDBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=l(a.Text);v.style+=h(v.style,a,e,v,t);g=new mxCell("",new mxGeometry(.04*d,.06*c,.18*d,.28*c),"ellipse;fillColor=#808080;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=new mxCell("",new mxGeometry(.2*d,.56*c,.2*d,.32*c),"part=1;");m.vertex=!0;v.insert(m);m.value="A";m.style+="fontStyle=1;fontSize=13;";g.style+=h(g.style,a,e,g);W=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;");W.geometry.relative=!0;W.edge=!0;g.insertEdge(W,!1);m.insertEdge(W,!0);W.style+=h(W.style,a,e,W);Hc=[];Hc.push(new mxPoint(N+.13*d,R+.72*c));W.geometry.points=Hc;p.push(n.addCell(W,null,null,null,null));H=new mxCell("",new mxGeometry(.6*d,.06*c,.18*d,.28*c),"ellipse;fillColor=#808080;part=1;");H.vertex=!0;v.insert(H);H.style+=y(a,e)+sb(a);H.style+=h(H.style,a,e,H);la=new mxCell("",new mxGeometry(.76*
d,.56*c,.2*d,.32*c),"part=1;");la.vertex=!0;v.insert(la);la.style+=y(a,e)+G(a,e,la)+sb(a)+Fb(a);la.value="B";la.style+="fontStyle=1;fontSize=13;fillColor=#ffffff;";la.style+=h(la.style,a,e,la);T=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;");T.geometry.relative=!0;T.edge=!0;H.insertEdge(T,!1);la.insertEdge(T,!0);T.style+=h(T.style,a,e,T);var cf=[];cf.push(new mxPoint(N+.69*d,R+.72*c));T.geometry.points=cf;p.push(n.addCell(T,
null,null,null,null));pa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;endSize=6;part=1;");pa.geometry.relative=!0;pa.edge=!0;g.insertEdge(pa,!1);H.insertEdge(pa,!0);pa.style+=h(pa.style,a,e,pa);p.push(n.addCell(pa,null,null,null,null));break;case "EIMessageSequenceBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=l(a.Text);v.style+=h(v.style,a,e,v,t);g=new mxCell("1",new mxGeometry(.2*d,.4*c,.1*d,.19*c),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");
g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=new mxCell("2",new mxGeometry(.45*d,.4*c,.1*d,.19*c),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");m.vertex=!0;v.insert(m);m.style+=h(m.style,a,e,m);H=new mxCell("3",new mxGeometry(.7*d,.4*c,.1*d,.19*c),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");H.vertex=!0;v.insert(H);H.style+=h(H.style,a,e,H);W=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");g.insertEdge(W,!1);m.insertEdge(W,!0);W.geometry.points=
[new mxPoint(N+.375*d,R+.15*c)];W.geometry.relative=!0;W.edge=!0;W.style+=h(W.style,a,e,W);p.push(n.addCell(W,null,null,null,null));T=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");m.insertEdge(T,!1);H.insertEdge(T,!0);T.geometry.points=[new mxPoint(N+.675*d,R+.15*c)];T.geometry.relative=!0;T.edge=!0;T.style+=h(T.style,a,e,T);p.push(n.addCell(T,null,null,null,null));break;case "EIMessageExpirationBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
v.value=l(a.Text);v.style+=h(v.style,a,e,v,t);g=new mxCell("",new mxGeometry(.3*d,.2*c,.4*d,.6*c),"shape=mxgraph.ios7.icons.clock;fillColor=#ffffff;flipH=1;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);break;case "EIMessageBrokerBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=l(a.Text);v.style+=h(v.style,a,e,v,t);g=new mxCell("",new mxGeometry(.38*d,.42*c,.24*d,.16*c),"part=1;fillColor=#aefe7d;");g.vertex=!0;v.insert(g);g.style+=
h(g.style,a,e,g);m=new mxCell("",new mxGeometry(.38*d,0,.24*d,.16*c),"part=1;");m.vertex=!0;v.insert(m);m.style+=h(m.style,a,e,m);H=new mxCell("",new mxGeometry(.76*d,.23*c,.24*d,.16*c),"");H.vertex=!0;v.insert(H);H.style=m.style;var la=new mxCell("",new mxGeometry(.76*d,.61*c,.24*d,.16*c),"");la.vertex=!0;v.insert(la);la.style=m.style;var Wd=new mxCell("",new mxGeometry(.38*d,.84*c,.24*d,.16*c),"");Wd.vertex=!0;v.insert(Wd);Wd.style=m.style;var Xd=new mxCell("",new mxGeometry(0,.61*c,.24*d,.16*c),
"");Xd.vertex=!0;v.insert(Xd);Xd.style=m.style;var Yd=new mxCell("",new mxGeometry(0,.23*c,.24*d,.16*c),"");Yd.vertex=!0;v.insert(Yd);Yd.style=m.style;W=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(W,!1);m.insertEdge(W,!0);W.edge=!0;W.style+=h(W.style,a,e,W);p.push(n.addCell(W,null,null,null,null));T=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(T,!1);H.insertEdge(T,!0);T.edge=!0;T.style+=h(T.style,a,e,T);p.push(n.addCell(T,null,null,null,
null));pa=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(pa,!1);la.insertEdge(pa,!0);pa.edge=!0;pa.style+=h(pa.style,a,e,pa);p.push(n.addCell(pa,null,null,null,null));Ta=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(Ta,!1);Wd.insertEdge(Ta,!0);Ta.edge=!0;Ta.style+=h(Ta.style,a,e,Ta);p.push(n.addCell(Ta,null,null,null,null));var Ic=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(Ic,!1);Xd.insertEdge(Ic,!0);Ic.edge=
!0;Ic.style+=h(Ic.style,a,e,Ic);p.push(n.addCell(Ic,null,null,null,null));var Jc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(Jc,!1);Yd.insertEdge(Jc,!0);Jc.edge=!0;Jc.style+=h(Jc.style,a,e,Jc);p.push(n.addCell(Jc,null,null,null,null));break;case "EIDurableSubscriberBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=l(a.Text);v.style+=h(v.style,a,e,v,t);W=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");
W.geometry.relative=!0;W.edge=!0;ab(.05*d,.5*c,.6*d,.25*c,W,p,n,Ga,v,ha);T=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");T.geometry.relative=!0;T.edge=!0;ab(.05*d,.5*c,.6*d,.75*c,T,p,n,Ga,v,ha);g=new mxCell("",new mxGeometry(.7*d,.1*c,.15*d,.32*c),"shape=mxgraph.eip.durable_subscriber;part=1;fillColor=#818181;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);break;case "EIControlBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
v.value=l(a.Text);v.style+=h(v.style,a,e,v,t);g=new mxCell("",new mxGeometry(.25*d,.25*c,.5*d,.5*c),"shape=mxgraph.eip.control_bus;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);break;case "EIMessageHistoryBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=l(a.Text);v.style+=h(v.style,a,e,v,t);g=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);H=new mxCell("",
new mxGeometry(d-45,30,30,20),"shape=mxgraph.mockup.misc.mail2;fillColor=#FFE040;part=1;");H.vertex=!0;v.insert(H);H.style+=h(H.style,a,e,H);pa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");pa.geometry.relative=!0;pa.edge=!0;g.insertEdge(pa,!1);H.insertEdge(pa,!0);pa.style+=h(pa.style,a,e,pa);pa.geometry.points=[new mxPoint(N+8.5,R+40)];p.push(n.addCell(pa,null,null,null,null));la=new mxCell("",new mxGeometry(d-45,
c-20,20,20),"part=1;");la.vertex=!0;v.insert(la);la.value=l(a.message_0);la.style+=q(a.message_0,t);la.style+=h(la.style,a,e,la,t);Ta=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");Ta.geometry.relative=!0;Ta.edge=!0;g.insertEdge(Ta,!1);la.insertEdge(Ta,!0);Ta.style+=h(Ta.style,a,e,Ta);Ta.geometry.points=[new mxPoint(N+8.5,R+c-10)];p.push(n.addCell(Ta,null,null,null,null));Cd=a.HistoryMessages;me=(c-75)/Cd;m=[];na=[];
for(b=0;b<Cd;b++)Dd=me*(b+1)+30,m[b]=new mxCell("",new mxGeometry(d-20,Dd,20,20),"part=1;"),m[b].vertex=!0,m[b].value=l(a["message_"+(b+1)]),m.style+=q(a["message_"+(b+1)],t),v.insert(m[b]),m[b].style+=h(m[b].style,a,e,m[b],t),na[b]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;"),na[b].geometry.relative=!0,na[b].edge=!0,H.insertEdge(na[b],!1),m[b].insertEdge(na[b],!0),na[b].style+=h(na[b].style,a,e,na[b]),Hc=[],Hc.push(new mxPoint(N+
d-30,R+Dd+10)),na[b].geometry.points=Hc,p.push(n.addCell(na[b],null,null,null,null));break;case "Equation":LucidImporter.hasMath=!0;v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v);v.value="$$"+a.Latex+"$$";break;case "fpDoor":v.style+="shape=mxgraph.floorplan.doorRight;";0>a.DoorAngle&&(v.style+="flipV=1;");v.style+=h(v.style,a,e,v);break;case "fpWall":v.style+="labelPosition=center;verticalAlign=bottom;verticalLabelPosition=top;";v.value=l(a);v.style+=h(v.style,a,e,v,t);v.style=v.style.replace("rotation=180;",
"");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;";0<a.DoorAngle&&(v.style+="flipV=1;");v.style+=h(v.style,a,e,v);break;case "fpRestroomLights":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);g=new mxCell("",new mxGeometry(0,0,d,.25*c),"part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=[];var df=.02*d,ne=(d-2*df)/a.LightCount,ef=.8*ne;for(b=0;b<a.LightCount;b++)m[b]=new mxCell("",new mxGeometry(df+ne*b+(ne-ef)/2,.25*c,ef,.75*c),"ellipse;part=1;"),
m[b].vertex=!0,v.insert(m[b]),m[b].style+=h(m[b].style,a,e,m[b]);break;case "fpRestroomSinks":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);g=[];var ff=d/a.SinkCount;for(b=0;b<a.SinkCount;b++)g[b]=new mxCell("",new mxGeometry(ff*b,0,ff,c),"part=1;shape=mxgraph.floorplan.sink_2;"),g[b].vertex=!0,v.insert(g[b]),g[b].style+=h(g[b].style,a,e,g[b]);break;case "fpRestroomStalls":v.style+="strokeColor=none;fillColor=none;";var zb=.1*d/a.StallCount;g=new mxCell("",new mxGeometry(0,
0,zb,c),"fillColor=#000000;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);var Jb=(d-zb)/a.StallCount,oe=[],Ed=[],Fd=[],Gd=[];O=y(a,e);O=""==O?"#000000;":O.replace("stokreColor=","");var pe="part=1;fillColor="+O;pe+=h(pe,a,e,v);var qe=h("",a,e,v);for(b=0;b<a.StallCount;b++)oe[b]=new mxCell("",new mxGeometry((b+1)*Jb,0,zb,c),pe),oe[b].vertex=!0,v.insert(oe[b]),Fd[b]=new mxCell("",new mxGeometry(zb+b*Jb+.05*(Jb-zb),c-.92*(Jb-zb),.9*(Jb-zb),.92*(Jb-zb)),"shape=mxgraph.floorplan.doorRight;flipV=1;part=1;"),
Fd[b].vertex=!0,v.insert(Fd[b]),Fd[b].style+=qe,Ed[b]=new mxCell("",new mxGeometry(zb+b*Jb+.2*(Jb-zb),0,.6*(Jb-zb),.8*(Jb-zb)),"shape=mxgraph.floorplan.toilet;part=1;"),Ed[b].vertex=!0,v.insert(Ed[b]),Ed[b].style+=qe,Gd[b]=new mxCell("",new mxGeometry(zb+b*Jb,.42*c,.15*(Jb-zb),.12*(Jb-zb)),"part=1;"),Gd[b].vertex=!0,v.insert(Gd[b]),Gd[b].style+=qe;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var Zd="edgeStyle=none;endArrow=none;part=1;";O=y(a,e);O=""==O?"#000000;":O.replace("strokeColor=",
"");var Rc="shape=triangle;part=1;fillColor="+O;Rc+=h(Rc,a,e,v);W=new mxCell("",new mxGeometry(0,0,0,0),Zd);W.geometry.relative=!0;W.edge=!0;ab(0,.5*c,.65*d,.5*c,W,p,n,Ga,v,ha);var Y=c/a.numLines;T=[];var Sc=[];for(b=0;b<a.numLines;b++)T[b]=new mxCell("",new mxGeometry(0,0,0,0),Zd),T[b].geometry.relative=!0,T[b].edge=!0,ab(.65*d,.5*c,.96*d,(b+.5)*Y,T[b],p,n,Ga,v,ha),Sc[b]=new mxCell("",new mxGeometry(.95*d,(b+.2)*Y,.05*d,.6*Y),Rc),Sc[b].vertex=!0,v.insert(Sc[b]);break;case "PEMultilines":v.style+=
"strokeColor=none;fillColor=none;";Zd="edgeStyle=none;endArrow=none;part=1;";O=y(a,e);O=""==O?"#000000;":O.replace("strokeColor=","");Rc="shape=triangle;part=1;fillColor="+O;Rc+=h(Rc,a,e,v);Y=c/a.numLines;T=[];Sc=[];for(b=0;b<a.numLines;b++)T[b]=new mxCell("",new mxGeometry(0,0,0,0),Zd),T[b].geometry.relative=!0,T[b].edge=!0,ab(0,(b+.5)*Y,.96*d,(b+.5)*Y,T[b],p,n,Ga,v,ha),Sc[b]=new mxCell("",new mxGeometry(.95*d,(b+.2)*Y,.05*d,.6*Y),Rc),Sc[b].vertex=!0,v.insert(Sc[b]);break;case "PEVesselBlock":v.style+=
"verticalLabelPosition=bottom;verticalAlign=top;";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;perimeter=hexagonPerimeter2;size=0.10;direction=south;"}v.style+=h(v.style,a,e,v,t);break;case "PEClosedTankBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";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);");
v.style+=h(v.style,a,e,v,t);break;case "PEColumnBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";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;";v.style+=h(v.style,a,e,v,t);break;case "PECompressorTurbineBlock":v.style+="strokeColor=none;fillColor=none;";v.value=l(a.Text);v.style+=h(v.style,a,e,v,t);g=new mxCell("",new mxGeometry(0,.2*c,d,.6*c),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");
g.vertex=!0;v.insert(g);g.style+=ba;g.style+=h(g.style,a,e,g);ba="endSize=4;endArrow=block;endFill=1;";0==a.compressorType?(W=new mxCell("",new mxGeometry(0,0,0,0),""),W.geometry.relative=!0,W.edge=!0,W.style+=ba,W.style+=h(W.style,a,e,W),ab(0,0,0,.2*c,W,p,n,Ga,v,ha),T=new mxCell("",new mxGeometry(0,0,0,0),""),T.geometry.relative=!0,T.edge=!0,T.style+=ba,T.style+=h(T.style,a,e,T),ab(d,.67*c,d,c,T,p,n,Ga,v,ha)):(g.style+="flipH=1;",W=new mxCell("",new mxGeometry(0,0,0,0),""),W.geometry.relative=!0,
W.edge=!0,W.style+=ba,W.style+=h(W.style,a,e,W),ab(0,0,0,.33*c,W,p,n,Ga,v,ha),T=new mxCell("",new mxGeometry(0,0,0,0),""),T.geometry.relative=!0,T.edge=!0,T.style+=ba,T.style+=h(T.style,a,e,T),ab(d,.8*c,d,c,T,p,n,Ga,v,ha));1==a.centerLineType&&(pa=new mxCell("",new mxGeometry(0,0,0,0),""),pa.geometry.relative=!0,pa.edge=!0,pa.style+=ba,pa.style+=h(pa.style,a,e,pa),ab(.2*d,.5*c,.8*d,.5*c,pa,p,n,Ga,v,ha));break;case "PEMotorDrivenTurbineBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";v.value=
l(a.Text);v.style+=h(v.style,a,e,v,t);g=new mxCell("",new mxGeometry(.2*d,.2*c,.6*d,.6*c),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);break;case "PEIndicatorBlock":case "PEIndicator2Block":case "PESharedIndicatorBlock":case "PEComputerIndicatorBlock":case "PESharedIndicator2Block":case "PEProgrammableIndicatorBlock":switch(f.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;"}v.style+=h(v.style,a,e,v);"PEIndicator2Block"==f.Class||"PESharedIndicator2Block"==f.Class?(g=new mxCell("",
new mxGeometry(0,0,d,.5*d),"part=1;strokeColor=none;fillColor=none;"),g.vertex=!0,v.insert(g),g.value=k(a.TopText),g.style+=p(a.TopText,q),g.style+=h(g.style,a,e,g,q),l=new mxCell("",new mxGeometry(0,.5*d,d,.5*d),"part=1;strokeColor=none;fillColor=none;")):(g=new mxCell("",new mxGeometry(0,0,d,.5*c),"part=1;strokeColor=none;fillColor=none;"),g.vertex=!0,v.insert(g),g.value=k(a.TopText),g.style+=p(a.TopText,q),g.style+=h(g.style,a,e,g,q),l=new mxCell("",new mxGeometry(0,.5*c,d,.5*c),"part=1;strokeColor=none;fillColor=none;"));
l.vertex=!0;v.insert(l);l.value=k(a.BotText);l.style+=p(a.BotText,q);l.style+=h(l.style,a,e,l,q);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 pe=!1;"PEPoweredValveBlock"==f.Class?1!=a.poweredHandOperated&&(pe=!0):1!=
a.handOperated&&(pe=!0);if(pe){a=t(f).Properties;y=a.BoundingBox;var Rf=y.h;y.h="PEAngleValveBlock"==f.Class||"PEAngleGlobeValveBlock"==f.Class?.7*y.h:.6*y.h;v=new mxCell("",new mxGeometry(Math.round(.75*y.x+nc),Math.round(.75*(y.y+Rf-y.h)+oc),Math.round(.75*y.w),Math.round(.75*y.h)),"");v.vertex=!0;Id(v,f,m)}if("PEPoweredValveBlock"==f.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;",v.style+=h(v.style,a,e,v),1==a.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",
g=new mxCell("",new mxGeometry(.325*d,0,.35*d,.35*c),"part=1;strokeColor=none;fillColor=none;spacingTop=2;"),g.vertex=!0,v.insert(g),g.value=k(a.PoweredText),g.style+=(q?"":L(a.PoweredText)+X(a.PoweredText)+wa(a.PoweredText)+Ka(a.PoweredText)+Va(a.PoweredText)+Ca(a.PoweredText)+Ga(a.PoweredText))+"fontSize=6;"+qa(a.PoweredText),g.style+=h(g.style,a,e,g,q)):v.style+="valveType=gate;";else{v.style+="verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;";v.value=k(a.Text);switch(f.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;")}v.style+=h(v.style,a,e,v,q);break;case "UI2BrowserBlock":v.style+="shape=mxgraph.mockup.containers.browserWindow;mainText=;";1==a.vScroll&&(B=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;"),B.geometry.relative=!0,B.geometry.offset=new mxPoint(-20,110),B.vertex=!0,v.insert(B),v.style+="spacingRight=20;");1==a.hScroll&&(Y=1==a.vScroll?new mxCell("",new mxGeometry(0,1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
Y.geometry.relative=!0,Y.geometry.offset=new mxPoint(0,-20),Y.vertex=!0,v.insert(Y));v.style+=h(v.style,a,e,v);break;case "UI2WindowBlock":v.value=k(a.Title);v.style+="shape=mxgraph.mockup.containers.window;mainText=;align=center;verticalAlign=top;spacing=5;"+(q?"fontSize=13;":A(a.Title)+L(a.Title)+X(a.Title));1==a.vScroll&&(B=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;"),B.geometry.relative=!0,B.geometry.offset=new mxPoint(-20,30),B.vertex=!0,v.insert(B),v.style+="spacingRight=20;");1==a.hScroll&&(Y=1==a.vScroll?new mxCell("",new mxGeometry(0,1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),Y.geometry.relative=
!0,Y.geometry.offset=new mxPoint(0,-20),Y.vertex=!0,v.insert(Y));v.style+=h(v.style,a,e,v,q);break;case "UI2DialogBlock":v.value=k(a.Text);v.style+=p(a.Text,q);g=new mxCell("",new mxGeometry(0,0,d,30),"part=1;resizeHeight=0;");g.vertex=!0;v.insert(g);g.value=k(a.Title);g.style+=p(a.Title,q);g.style+=h(g.style,a,e,g,q);l=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");l.geometry.relative=!0;l.geometry.offset=new mxPoint(-25,-10);l.vertex=
!0;g.insert(l);1==a.vScroll&&(B=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;"),B.geometry.relative=!0,B.geometry.offset=new mxPoint(-20,30),B.vertex=!0,v.insert(B),v.style+="spacingRight=20;");1==a.hScroll&&(Y=1==a.vScroll?new mxCell("",new mxGeometry(0,1,d-20,20),
"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),Y.geometry.relative=!0,Y.geometry.offset=new mxPoint(0,-20),Y.vertex=!0,v.insert(Y));v.style+=h(v.style,a,e,v);a.Text=null;break;case "UI2AccordionBlock":g=[];O=25;for(b=0;b<=a.Panels-1;b++)g[b]=b<a.Selected-1?new mxCell("",new mxGeometry(0,b*O,d,O),"part=1;fillColor=#000000;fillOpacity=25;"):b==a.Selected-1?
new mxCell("",new mxGeometry(0,b*O,d,O),"part=1;fillColor=none;"):new mxCell("",new mxGeometry(0,c-(a.Panels-a.Selected)*O+(b-a.Selected)*O,d,O),"part=1;fillColor=#000000;fillOpacity=25;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["Panel_"+(b+1)]),g[b].style+=p(a["Panel_"+(b+1)],q),0>g[b].style.indexOf(";align=")&&(g[b].style+="align=left;spacingLeft=5;");var Da=U(a,e);Da=Da.replace("strokeColor","fillColor2");""==Da&&(Da="fillColor2=#000000;");1==a.vScroll&&(l=1==a.hScroll?new mxCell("",new mxGeometry(1,
0,20,c-a.Selected*O-20-(a.Panels-a.Selected)*O),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,c-a.Selected*O-(a.Panels-a.Selected)*O),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),l.geometry.relative=!0,l.geometry.offset=new mxPoint(-20,a.Selected*O),l.vertex=!0,v.insert(l),v.style+="spacingRight=20;",l.style+=Da,l.style+=h(l.style,a,e,l));1==a.hScroll&&(B=1==a.vScroll?
new mxCell("",new mxGeometry(0,1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),B.geometry.relative=!0,B.geometry.offset=new mxPoint(0,-20-(a.Panels-a.Selected)*O),B.vertex=!0,v.insert(B),B.style+=Da,B.style+=h(B.style,a,e,B));Y=1==a.vScroll?new mxCell("",new mxGeometry(0,a.Selected*O,d-20,c-a.Selected*O-20-(a.Panels-a.Selected)*O),"part=1;fillColor=none;strokeColor=none;"):
new mxCell("",new mxGeometry(0,a.Selected*O,d-20,c-a.Selected*O-(a.Panels-a.Selected)*O),"part=1;fillColor=none;strokeColor=none;");Y.vertex=!0;v.insert(Y);Y.value=k(a.Content_1);Y.style+=p(a.Content_1,q);!q&&0>Y.style.indexOf(";align=")&&(Y.style+="align=left;spacingLeft=5;");v.style+=h(v.style,a,e,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";g=[];l=[];O=25;var vb=3,ma=(d+vb)/(a.Tabs+1),Wa=new mxCell("",new mxGeometry(0,O,d,c-O),"part=1;");Wa.vertex=!0;v.insert(Wa);
Wa.style+=h(Wa.style,a,e,Wa);for(b=0;b<=a.Tabs-1;b++)b==a.Selected-1?(l[b]=new mxCell("",new mxGeometry(10+b*ma,0,ma-vb,O),""),l[b].vertex=!0,v.insert(l[b])):(g[b]=new mxCell("",new mxGeometry(10+b*ma,0,ma-vb,O),"strokeColor=none;"),g[b].vertex=!0,v.insert(g[b]),g[b].style+=g[b].style+=h(g[b].style,a,e,g[b]),l[b]=new mxCell("",new mxGeometry(0,0,ma-vb,O),"fillColor=#000000;fillOpacity=25;"),l[b].vertex=!0,g[b].insert(l[b])),l[b].value=k(a["Tab_"+(b+1)]),l[b].style+=p(a["Tab_"+(b+1)],q),0>l[b].style.indexOf(";align=")&&
(l[b].style+="align=left;spacingLeft=2;"),l[b].style+=h(l[b].style,a,e,l[b]);Da=U(a,e);Da=Da.replace("strokeColor","fillColor2");""==Da&&(Da="fillColor2=#000000;");1==a.vScroll&&(l=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-20-O),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,c-O),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),l.geometry.relative=!0,l.geometry.offset=
new mxPoint(-20,O),l.vertex=!0,v.insert(l),v.style+="spacingRight=20;",l.style+=Da,l.style+=h(l.style,a,e,l));1==a.hScroll&&(B=1==a.vScroll?new mxCell("",new mxGeometry(0,1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),B.geometry.relative=!0,B.geometry.offset=new mxPoint(0,-20),B.vertex=!0,v.insert(B),B.style+=Da,B.style+=h(B.style,a,e,B));break;
case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";g=[];l=[];O=25;vb=3;ma=(d+vb)/a.Tabs;Wa=new mxCell("",new mxGeometry(0,O,d,c-O),"part=1;");Wa.vertex=!0;v.insert(Wa);Wa.style+=h(Wa.style,a,e,Wa);for(b=0;b<=a.Tabs-1;b++)b==a.Selected-1?(l[b]=new mxCell("",new mxGeometry(b*ma,0,ma-vb,O),""),l[b].vertex=!0,v.insert(l[b])):(g[b]=new mxCell("",new mxGeometry(b*ma,0,ma-vb,O),"strokeColor=none;"),g[b].vertex=!0,v.insert(g[b]),g[b].style+=h(g[b].style,a,e,g[b]),l[b]=new mxCell("",
new mxGeometry(0,0,ma-vb,O),"fillColor=#000000;fillOpacity=25;"),l[b].vertex=!0,g[b].insert(l[b])),l[b].value=k(a["Tab_"+(b+1)]),l[b].style+=p(a["Tab_"+(b+1)],q),l[b].style+=h(l[b].style,a,e,l[b],q),0>l[b].style.indexOf(";align=")&&(l[b].style+="align=left;spacingLeft=2;");Da=U(a,e);Da=Da.replace("strokeColor","fillColor2");""==Da&&(Da="fillColor2=#000000;");1==a.vScroll&&(l=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-20-O),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):
new mxCell("",new mxGeometry(1,0,20,c-O),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),l.geometry.relative=!0,l.geometry.offset=new mxPoint(-20,O),l.vertex=!0,v.insert(l),v.style+="spacingRight=20;",l.style+=Da,l.style+=h(l.style,a,e,l));1==a.hScroll&&(B=1==a.vScroll?new mxCell("",new mxGeometry(0,1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
B.geometry.relative=!0,B.geometry.offset=new mxPoint(0,-20),B.vertex=!0,v.insert(B),B.style+=Da,B.style+=h(B.style,a,e,B));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";g=[];l=[];vb=3;O=25+vb;ma=80;qc=10;Wa=new mxCell("",new mxGeometry(ma,0,d-ma,c),"part=1;");Wa.vertex=!0;v.insert(Wa);Wa.style+=h(Wa.style,a,e,Wa);for(b=0;b<=a.Tabs-1;b++)b==a.Selected-1?(l[b]=new mxCell("",new mxGeometry(0,qc+b*O,ma,O-vb),""),l[b].vertex=!0,v.insert(l[b]),l[b].value=k(a["Tab_"+(b+
1)]),l[b].style+=p(a["Tab_"+(b+1)],q),l[b].style+=h(l[b].style,a,e,l[b],q)):(g[b]=new mxCell("",new mxGeometry(0,qc+b*O,ma,O-vb),"strokeColor=none;"),g[b].vertex=!0,v.insert(g[b]),g[b].style+=h(g[b].style,a,e,g[b]),l[b]=new mxCell("",new mxGeometry(0,0,ma,O-vb),"fillColor=#000000;fillOpacity=25;"),l[b].vertex=!0,g[b].insert(l[b]),l[b].value=k(a["Tab_"+(b+1)]),l[b].style+=p(a["Tab_"+(b+1)],q)),0>l[b].style.indexOf(";align=")&&(l[b].style+="align=left;spacingLeft=2;"),l[b].style+=h(l[b].style,a,e,l[b]);
Da=U(a,e);Da=Da.replace("strokeColor","fillColor2");""==Da&&(Da="fillColor2=#000000;");1==a.vScroll&&(l=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;"),l.geometry.relative=!0,l.geometry.offset=new mxPoint(-20,0),l.vertex=!0,v.insert(l),v.style+="spacingRight=20;",l.style+=
Da,l.style+=h(l.style,a,e,l));1==a.hScroll&&(B=1==a.vScroll?new mxCell("",new mxGeometry(ma,1,d-20-ma,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(ma,1,d-ma,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),B.geometry.relative=!0,B.geometry.offset=new mxPoint(0,-20),B.vertex=!0,v.insert(B),B.style+=Da,B.style+=h(B.style,a,e,B));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";O=c/
a.Options;g=[];l=[];for(b=0;b<a.Options;b++)g[b]=new mxCell("",new mxGeometry(0,b*O+.5*O-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["Option_"+(b+1)]),g[b].style+=p(a["Option_"+(b+1)],q),g[b].style+=h(g[b].style,a,e,g[b],q),null!=a.Selected[b+1]&&1==a.Selected[b+1]&&(H=U(a,e),H=H.replace("strokeColor","fillColor"),""==H&&(H="fillColor=#000000;"),l[b]=new mxCell("",new mxGeometry(2,2,
6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),l[b].vertex=!0,g[b].insert(l[b]),l[b].style+=H,l[b].style+=h(l[b].style,a,e,l[b]));break;case "UI2HorizontalCheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";ma=d/a.Options;g=[];l=[];for(b=0;b<a.Options;b++)g[b]=new mxCell("",new mxGeometry(b*ma,.5*c-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["Option_"+(b+1)]),g[b].style+=
p(a["Option_"+(b+1)],q),g[b].style+=h(g[b].style,a,e,g[b],q),null!=a.Selected[b+1]&&1==a.Selected[b+1]&&(H=U(a,e),H=H.replace("strokeColor","fillColor"),""==H&&(H="fillColor=#000000;"),l[b]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),l[b].vertex=!0,g[b].insert(l[b]),l[b].style+=H,l[b].style+=h(l[b].style,a,e,l[b]));break;case "UI2RadioBlock":v.style+="strokeColor=none;fillColor=none;";O=c/a.Options;g=[];l=[];for(b=0;b<a.Options;b++)g[b]=new mxCell("",new mxGeometry(0,
b*O+.5*O-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["Option_"+(b+1)]),g[b].style+=p(a["Option_"+(b+1)],q),g[b].style+=h(g[b].style,a,e,g[b],q),null!=a.Selected&&a.Selected==b+1&&(H=U(a,e),H=H.replace("strokeColor","fillColor"),""==H&&(H="fillColor=#000000;"),l[b]=new mxCell("",new mxGeometry(2.5,2.5,5,5),"ellipse;"),l[b].vertex=!0,g[b].insert(l[b]),l[b].style+=H,l[b].style+=
h(l[b].style,a,e,l[b]));break;case "UI2HorizontalRadioBlock":v.style+="strokeColor=none;fillColor=none;";ma=d/a.Options;g=[];l=[];for(b=0;b<a.Options;b++)g[b]=new mxCell("",new mxGeometry(b*ma,.5*c-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["Option_"+(b+1)]),g[b].style+=p(a["Option_"+(b+1)],q),g[b].style+=h(g[b].style,a,e,g[b],q),null!=a.Selected&&a.Selected==b+1&&(H=U(a,e),
H=H.replace("strokeColor","fillColor"),""==H&&(H="fillColor=#000000;"),l[b]=new mxCell("",new mxGeometry(2,2,6,6),"ellipse;part=1;"),l[b].vertex=!0,g[b].insert(l[b]),l[b].style+=H,l[b].style+=h(l[b].style,a,e,l[b]));break;case "UI2SelectBlock":v.style+="shape=mxgraph.mockup.forms.comboBox;strokeColor=#999999;fillColor=#ddeeff;align=left;fillColor2=#aaddff;mainText=;fontColor=#666666";v.value=k(a.Selected);break;case "UI2HSliderBlock":case "UI2VSliderBlock":v.style+="shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;handleStyle=handle;";
"UI2VSliderBlock"==f.Class&&(v.style+="direction=south;");v.style+="sliderPos="+100*a.ScrollVal+";";v.style+=h(v.style,a,e,v);break;case "UI2DatePickerBlock":v.style+="strokeColor=none;fillColor=none;";g=new mxCell("",new mxGeometry(0,0,.6*d,c),"part=1;");g.vertex=!0;v.insert(g);g.value=k(a.Date);g.style+=p(a.Date,q);v.style+=h(v.style,a,e,v);H=U(a,e);H=H.replace("strokeColor","fillColor");""==H&&(H="fillColor=#000000;");l=new mxCell("",new mxGeometry(.75*d,0,.25*d,c),"part=1;shape=mxgraph.gmdl.calendar;");
l.vertex=!0;v.insert(l);l.style+=H;l.style+=h(l.style,a,e,l);break;case "UI2SearchBlock":v.value=k(a.Search);v.style+="shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1;align=left;spacingLeft=26;"+p(a.Search,q);v.style+=h(v.style,a,e,v,q);break;case "UI2NumericStepperBlock":H=U(a,e);H=H.replace("strokeColor","fillColor");""==H&&(H="fillColor=#000000;");v.value=k(a.Number);v.style+="shape=mxgraph.mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;mainText=;align=left;spacingLeft=8;"+
H+p(a.Number,q);v.style+=h(v.style,a,e,v,q);break;case "UI2TableBlock":try{$a=Pa(a.FillColor);var Cd=Pa(a.LineColor);Kc="";var Xd=20;v.style="html=1;overflow=fill;verticalAlign=top;spacing=0;";var Dd='<table style="width:100%;height:100%;border-collapse: collapse;border: 1px solid '+Cd+';">',jc=a.Data.split("\n");var gf=a.AltRow&&"default"!=a.AltRow?"none"==a.AltRow?$a:Pa(a.AltRow):Md($a,.95);Gc=a.Header&&"default"!=a.Header?"none"==a.Header?gf:Pa(a.Header):Md($a,.8);if("full"==a.GridLines)Kc="border: 1px solid "+
Cd,Xd=19;else if("row"==a.GridLines)Kc="border-bottom: 1px solid "+Cd,Xd=19;else if("default"==a.GridLines||"column"==a.GridLines)Kc="border-right: 1px solid "+Cd;jc=jc.filter(function(Ua){return Ua});/^\{[^}]*\}$/.test(jc[jc.length-1])&&jc.pop();wc=jc[0].split(",").length;var hf="";for(M=0;M<wc-1;M++)hf+=" , ";for(b=jc.length;b<Math.ceil(c/20);b++)jc.push(hf);for(b=0;b<jc.length;b++){Dd+='<tr style="height: '+Xd+"px;background:"+(0==b?Gc:b%2?$a:gf)+'">';var jf=jc[b].split(",");for(M=0;M<jf.length;M++){var Ed=
a["Cell_"+b+"_"+M],Sf=Ed&&Ed.m&&Ed.m[0]&&"c"==Ed.m[0].n?Pa(Ed.m[0].v):Cd;Dd+='<td style="height: '+Xd+"px;color:"+Sf+";"+Kc+'">'+mxUtils.htmlEntities(jf[M])+"</td>"}Dd+="</tr>"}Dd+="</table>";v.value=Dd}catch(Ua){console.log(Ua)}break;case "UI2ButtonBarBlock":v.style+=h(v.style,a,e,v);g=[];l=[];ma=d/a.Buttons;for(b=0;b<=a.Buttons-1;b++)b==a.Selected-1?(l[b]=new mxCell("",new mxGeometry(b*ma,0,ma,c),""),l[b].vertex=!0,v.insert(l[b])):(g[b]=new mxCell("",new mxGeometry(b*ma,0,ma,c),"strokeColor=none;"),
g[b].vertex=!0,v.insert(g[b]),g[b].style+=g[b].style+=h(g[b].style,a,e,g[b]),l[b]=new mxCell("",new mxGeometry(0,0,ma,c),"fillColor=#000000;fillOpacity=25;"),l[b].vertex=!0,g[b].insert(l[b])),l[b].value=k(a["Button_"+(b+1)]),l[b].style+=p(a["Button_"+(b+1)],q),l[b].style+=h(l[b].style,a,e,l[b],q);break;case "UI2VerticalButtonBarBlock":v.style+=h(v.style,a,e,v);g=[];l=[];O=c/a.Buttons;for(b=0;b<=a.Buttons-1;b++)b==a.Selected-1?(l[b]=new mxCell("",new mxGeometry(0,b*O,d,O),""),l[b].vertex=!0,v.insert(l[b])):
(g[b]=new mxCell("",new mxGeometry(0,b*O,d,O),"strokeColor=none;"),g[b].vertex=!0,v.insert(g[b]),g[b].style+=h(g[b].style,a,e,g[b]),l[b]=new mxCell("",new mxGeometry(0,0,d,O),"fillColor=#000000;fillOpacity=25;"),l[b].vertex=!0,g[b].insert(l[b])),l[b].value=k(a["Button_"+(b+1)]),l[b].style+=p(a["Button_"+(b+1)],q),l[b].style+=h(l[b].style,a,e,l[b],q);break;case "UI2LinkBarBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);g=[];l=[];ma=d/a.Links;for(b=0;b<a.Links;b++)0!=b?
(l[b]=new mxCell("",new mxGeometry(b*ma,0,ma,c),"shape=partialRectangle;top=0;bottom=0;right=0;fillColor=none;"),l[b].style+=h(l[b].style,a,e,l[b])):l[b]=new mxCell("",new mxGeometry(b*ma,0,ma,c),"fillColor=none;strokeColor=none;"),l[b].vertex=!0,v.insert(l[b]),l[b].value=k(a["Link_"+(b+1)]),l[b].style+=p(a["Link_"+(b+1)],q);break;case "UI2BreadCrumbsBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);g=[];l=[];ma=d/a.Links;for(b=0;b<a.Links;b++)g[b]=new mxCell("",new mxGeometry(b*
ma,0,ma,c),"fillColor=none;strokeColor=none;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["Link_"+(b+1)]),g[b].style+=p(a["Link_"+(b+1)],q);for(b=1;b<a.Links;b++)l[b]=new mxCell("",new mxGeometry(b/a.Links,.5,6,10),"shape=mxgraph.ios7.misc.right;"),l[b].geometry.relative=!0,l[b].geometry.offset=new mxPoint(-3,-5),l[b].vertex=!0,v.insert(l[b]);break;case "UI2MenuBarBlock":v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v);g=[];ma=d/(a.Buttons+1);for(b=0;b<=a.Buttons-1;b++)g[b]=b!=a.Selected-
1?new mxCell("",new mxGeometry(0,0,ma,c),"strokeColor=none;fillColor=none;resizeHeight=1;"):new mxCell("",new mxGeometry(0,0,ma,c),"fillColor=#000000;fillOpacity=25;strokeColor=none;resizeHeight=1;"),g[b].geometry.relative=!0,g[b].geometry.offset=new mxPoint(b*ma,0),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["MenuItem_"+(b+1)]),g[b].style+=p(a["MenuItem_"+(b+1)],q);break;case "UI2AtoZBlock":v.style+="fillColor=none;strokeColor=none;"+p(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;"+p(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+=h(v.style,a,e,v);F=[];cb=[];var bd=[];O=c/a.Lines;P=null;for(b=0;b<a.Lines;b++)null!=a["Item_"+(b+1)]&&(null==P&&(P=""+A(a["Item_"+(b+1)])+L(a["Item_"+(b+1)])+X(a["Item_"+(b+1)])),F[b]=new mxCell("",new mxGeometry(0,b*c/a.Lines,d,O),"strokeColor=none;fillColor=none;spacingLeft=20;align=left;html=1;"),
F[b].vertex=!0,v.insert(F[b]),F[b].style+=P,F[b].value=k(a["Item_"+(b+1)])),null!=a.Icons[b+1]&&null!=F[b]&&("dot"==a.Icons[b+1]?(cb[b]=new mxCell("",new mxGeometry(0,.5,8,8),"ellipse;strokeColor=none;"),cb[b].geometry.offset=new mxPoint(6,-4)):"check"==a.Icons[b+1]&&(cb[b]=new mxCell("",new mxGeometry(0,.5,7,8),"shape=mxgraph.mscae.general.checkmark;strokeColor=none;"),cb[b].geometry.offset=new mxPoint(6.5,-4)),null!=cb[b]&&(cb[b].geometry.relative=!0,cb[b].vertex=!0,F[b].insert(cb[b]),H=U(a,e),
H=H.replace("strokeColor","fillColor"),""==H&&(H="fillColor=#000000;"),cb[b].style+=H)),null!=a["Shortcut_"+(b+1)]&&(null==P&&(P=""+A(a["Shortcut_"+(b+1)])+L(a["Shortcut_"+(b+1)])+X(a["Shortcut_"+(b+1)])),bd[b]=new mxCell("",new mxGeometry(.6*d,b*c/a.Lines,.4*d,O),"strokeColor=none;fillColor=none;spacingRight=3;align=right;html=1;"),bd[b].vertex=!0,v.insert(bd[b]),bd[b].style+=P,bd[b].value=k(a["Shortcut_"+(b+1)])),null!=a.Dividers[b+1]&&(F[b]=new mxCell("",new mxGeometry(.05*d,b*c/a.Lines,.9*d,O),
"shape=line;strokeWidth=1;"),F[b].vertex=!0,v.insert(F[b]),F[b].style+=U(a,e));break;case "UI2ProgressBarBlock":v.style+="shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos="+100*a.ScrollVal+";";break;case "CalloutSquareBlock":case "UI2TooltipSquareBlock":v.value=k(a.Tip||a.Text);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.Tip||a.Text,q);v.style+=h(v.style,a,e,v,q);v.geometry.height+=10;break;case "UI2CalloutBlock":v.value=
k(a.Txt);v.style+="shape=ellipse;perimeter=ellipsePerimeter;"+p(a.Txt,q);v.style+=h(v.style,a,e,v,q);break;case "UI2AlertBlock":v.value=k(a.Txt);v.style+=p(a.Txt,q);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,0,d,30),"part=1;resizeHeight=0;");g.vertex=!0;v.insert(g);g.value=k(a.Title);g.style+=p(a.Title,q);g.style+=h(g.style,a,e,g,q);l=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");l.geometry.relative=!0;l.geometry.offset=
new mxPoint(-25,-10);l.vertex=!0;g.insert(l);var Tf=45*a.Buttons+(10*a.Buttons-1);B=[];for(b=0;b<a.Buttons;b++)B[b]=new mxCell("",new mxGeometry(.5,1,45,20),"part=1;html=1;"),B[b].geometry.relative=!0,B[b].geometry.offset=new mxPoint(.5*-Tf+55*b,-40),B[b].vertex=!0,v.insert(B[b]),B[b].value=k(a["Button_"+(b+1)]),B[b].style+=p(a["Button_"+(b+1)],q),B[b].style+=h(B[b].style,a,e,B[b],q);break;case "UMLClassBlock":if(0==a.Simple){P=ta(a,e);Ra=Math.round(.75*a.TitleHeight)||25;P=P.replace("fillColor",
"swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.value=k(a.Title);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+P+"startSize="+Ra+";"+p(a.Title,q);v.style+=h(v.style,a,e,v,q);F=[];var qe=[],kb=Ra/c;Kb=Ra;for(b=0;b<=a.Attributes;b++)0<b&&(qe[b]=new mxCell("",new mxGeometry(0,Kb,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),
Kb+=8,qe[b].vertex=!0,v.insert(qe[b])),O=0,0==a.Attributes?O=b=1:b<a.Attributes?(O=a["Text"+(b+1)+"Percent"],kb+=O):O=1-kb,dc=Math.round((c-Ra)*O)+(a.ExtraHeightSet&&1==b?.75*a.ExtraHeight:0),F[b]=new mxCell("",new mxGeometry(0,Kb,d,dc),"part=1;html=1;whiteSpace=wrap;resizeHeight=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),Kb+=dc,F[b].vertex=!0,v.insert(F[b]),F[b].style+=
P+Xa(a,e,F[b])+p(a["Text"+(b+1)],q),F[b].value=k(a["Text"+(b+1)])}else v.value=k(a.Title),v.style+="align=center;",v.style+=p(a.Title,q),v.style+=h(v.style,a,e,v,q);break;case "ERDEntityBlock":P=ta(a,e);Ra=.75*a.Name_h;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.value=k(a.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+P+"startSize="+Ra+
";"+p(a.Name,q);v.style+=h(v.style,a,e,v,q);a.ShadedHeader?(P=Pa(a.FillColor),fe=Md(P,.85),v.style+="fillColor="+fe+";"):v.style+=ta(a,e);F=[];kb=Ra/c;Kb=Ra;for(b=0;b<a.Fields;b++)O=0,dc=.75*a["Field"+(b+1)+"_h"],F[b]=new mxCell("",new mxGeometry(0,Kb,d,dc),"part=1;resizeHeight=0;strokeColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;whiteSpace=wrap;"),Kb+=dc,F[b].vertex=!0,v.insert(F[b]),F[b].style+=
P+p(a["Field"+(b+1)],q),F[b].style=1==a.AltRows&&0!=b%2?F[b].style+"fillColor=#000000;opacity=5;":F[b].style+("fillColor=none;"+Xa(a,e,F[b])),F[b].value=k(a["Field"+(b+1)]);break;case "ERDEntityBlock2":P=ta(a,e);Ra=.75*a.Name_h;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.value=k(a.Name);v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+P+"startSize="+Ra+";"+p(a.Name,q);v.style=a.ShadedHeader?v.style+
"fillColor=#e0e0e0;":v.style+ta(a,e);v.style+=h(v.style,a,e,v,q);F=[];var la=[];kb=Ra;var wb=30;null!=a.Column1&&(wb=.75*a.Column1);for(b=0;b<a.Fields;b++)O=0,la[b]=new mxCell("",new mxGeometry(0,kb,wb,.75*a["Key"+(b+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;whiteSpace=wrap;"),la[b].vertex=!0,v.insert(la[b]),la[b].style+=P+p(a["Key"+(b+1)],q),la[b].style=
1==a.AltRows&&0!=b%2?la[b].style+"fillColor=#000000;fillOpacity=5;":la[b].style+("fillColor=none;"+Xa(a,e,la[b])),la[b].value=k(a["Key"+(b+1)]),F[b]=new mxCell("",new mxGeometry(wb,kb,d-wb,.75*a["Field"+(b+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;whiteSpace=wrap;"),F[b].vertex=!0,v.insert(F[b]),F[b].style+=P+p(a["Field"+
(b+1)],q),v.style+=h(v.style,a,e,v),F[b].style=1==a.AltRows&&0!=b%2?F[b].style+"fillColor=#000000;fillOpacity=5;":F[b].style+("fillColor=none;"+Xa(a,e,F[b])),F[b].value=k(a["Field"+(b+1)]),kb+=.75*a["Key"+(b+1)+"_h"];break;case "ERDEntityBlock3":P=ta(a,e);Ra=.75*a.Name_h;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+P+"startSize="+Ra+";"+p(a.Name);v.style=
a.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+ta(a,e);v.value=k(a.Name);v.style+=h(v.style,a,e,v,q);F=[];la=[];kb=Ra;wb=30;null!=a.Column1&&(wb=.75*a.Column1);for(b=0;b<a.Fields;b++)O=0,la[b]=new mxCell("",new mxGeometry(0,kb,wb,.75*a["Field"+(b+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),la[b].vertex=!0,v.insert(la[b]),la[b].style+=
P+p(a["Field"+(b+1)],q),la[b].style=1==a.AltRows&&0!=b%2?la[b].style+"fillColor=#000000;fillOpacity=5;":la[b].style+("fillColor=none;"+Xa(a,e,la[b])),la[b].value=k(a["Field"+(b+1)]),la[b].style+=h(la[b].style,a,e,la[b],q),F[b]=new mxCell("",new mxGeometry(wb,kb,d-wb,.75*a["Type"+(b+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),
F[b].vertex=!0,v.insert(F[b]),F[b].style+=P+p(a["Type"+(b+1)],q),F[b].style=1==a.AltRows&&0!=b%2?F[b].style+"fillColor=#000000;fillOpacity=5;":F[b].style+("fillColor=none;"+Xa(a,e,F[b])),F[b].value=k(a["Type"+(b+1)]),F[b].style+=h(F[b].style,a,e,F[b],q),kb+=.75*a["Field"+(b+1)+"_h"];break;case "ERDEntityBlock4":P=ta(a,e);Ra=.75*a.Name_h;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+
P+"startSize="+Ra+";"+p(a.Name);v.style=a.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+ta(a,e);v.value=k(a.Name);v.style+=h(v.style,a,e,v,q);F=[];la=[];var xb=[];kb=Ra;wb=30;var Yd=40;null!=a.Column1&&(wb=.75*a.Column1);null!=a.Column2&&(Yd=.75*a.Column2);for(b=0;b<a.Fields;b++)O=0,la[b]=new mxCell("",new mxGeometry(0,kb,wb,.75*a["Key"+(b+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),
la[b].vertex=!0,v.insert(la[b]),la[b].style+=P+p(a["Key"+(b+1)],q),la[b].style=1==a.AltRows&&0!=b%2?la[b].style+"fillColor=#000000;fillOpacity=5;":la[b].style+("fillColor=none;"+Xa(a,e,la[b])),la[b].value=k(a["Key"+(b+1)]),la[b].style+=h(la[b].style,a,e,la[b],q),F[b]=new mxCell("",new mxGeometry(wb,kb,d-wb-Yd,.75*a["Field"+(b+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),
F[b].vertex=!0,v.insert(F[b]),F[b].style+=P+p(a["Field"+(b+1)],q),F[b].style=1==a.AltRows&&0!=b%2?F[b].style+"fillColor=#000000;fillOpacity=5;":F[b].style+("fillColor=none;"+Xa(a,e,F[b])),F[b].value=k(a["Field"+(b+1)]),F[b].style+=h(F[b].style,a,e,F[b],q),xb[b]=new mxCell("",new mxGeometry(d-Yd,kb,Yd,.75*a["Type"+(b+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),
xb[b].vertex=!0,v.insert(xb[b]),xb[b].style+=P+p(a["Type"+(b+1)],q),xb[b].style=1==a.AltRows&&0!=b%2?xb[b].style+"fillColor=#000000;fillOpacity=5;":xb[b].style+("fillColor=none;"+Xa(a,e,xb[b])),xb[b].value=k(a["Type"+(b+1)]),xb[b].style+=h(xb[b].style,a,e,xb[b],q),kb+=.75*a["Key"+(b+1)+"_h"];break;case "GCPServiceCardApplicationSystemBlock":Aa("application_system",d,c,v,a,e);break;case "GCPServiceCardAuthorizationBlock":Aa("internal_payment_authorization",d,c,v,a,e);break;case "GCPServiceCardBlankBlock":Aa("blank",
d,c,v,a,e);break;case "GCPServiceCardReallyBlankBlock":Aa("blank",d,c,v,a,e);break;case "GCPServiceCardBucketBlock":Aa("bucket",d,c,v,a,e);break;case "GCPServiceCardCDNInterconnectBlock":Aa("google_network_edge_cache",d,c,v,a,e);break;case "GCPServiceCardCloudDNSBlock":Aa("blank",d,c,v,a,e);break;case "GCPServiceCardClusterBlock":Aa("cluster",d,c,v,a,e);break;case "GCPServiceCardDiskSnapshotBlock":Aa("persistent_disk_snapshot",d,c,v,a,e);break;case "GCPServiceCardEdgePopBlock":Aa("google_network_edge_cache",
d,c,v,a,e);break;case "GCPServiceCardFrontEndPlatformServicesBlock":Aa("frontend_platform_services",d,c,v,a,e);break;case "GCPServiceCardGatewayBlock":Aa("gateway",d,c,v,a,e);break;case "GCPServiceCardGoogleNetworkBlock":Aa("google_network_edge_cache",d,c,v,a,e);break;case "GCPServiceCardImageServicesBlock":Aa("image_services",d,c,v,a,e);break;case "GCPServiceCardLoadBalancerBlock":Aa("network_load_balancer",d,c,v,a,e);break;case "GCPServiceCardLocalComputeBlock":Aa("dedicated_game_server",d,c,v,
a,e);break;case "GCPServiceCardLocalStorageBlock":Aa("persistent_disk_snapshot",d,c,v,a,e);break;case "GCPServiceCardLogsAPIBlock":Aa("logs_api",d,c,v,a,e);break;case "GCPServiceCardMemcacheBlock":Aa("memcache",d,c,v,a,e);break;case "GCPServiceCardNATBlock":Aa("nat",d,c,v,a,e);break;case "GCPServiceCardPaymentFormBlock":Aa("external_payment_form",d,c,v,a,e);break;case "GCPServiceCardPushNotificationsBlock":Aa("push_notification_service",d,c,v,a,e);break;case "GCPServiceCardScheduledTasksBlock":Aa("scheduled_tasks",
d,c,v,a,e);break;case "GCPServiceCardServiceDiscoveryBlock":Aa("service_discovery",d,c,v,a,e);break;case "GCPServiceCardSquidProxyBlock":Aa("squid_proxy",d,c,v,a,e);break;case "GCPServiceCardTaskQueuesBlock":Aa("task_queues",d,c,v,a,e);break;case "GCPServiceCardVirtualFileSystemBlock":Aa("virtual_file_system",d,c,v,a,e);break;case "GCPServiceCardVPNGatewayBlock":Aa("gateway",d,c,v,a,e);break;case "GCPInputDatabase":Ha("database",1,.9,d,c,v,a,e);break;case "GCPInputRecord":Ha("record",1,.66,d,c,v,
a,e);break;case "GCPInputPayment":Ha("payment",1,.8,d,c,v,a,e);break;case "GCPInputGateway":Ha("gateway_icon",1,.44,d,c,v,a,e);break;case "GCPInputLocalCompute":Ha("compute_engine_icon",1,.89,d,c,v,a,e);break;case "GCPInputBeacon":Ha("beacon",.73,1,d,c,v,a,e);break;case "GCPInputStorage":Ha("storage",1,.8,d,c,v,a,e);break;case "GCPInputList":Ha("list",.89,1,d,c,v,a,e);break;case "GCPInputStream":Ha("stream",1,.82,d,c,v,a,e);break;case "GCPInputMobileDevices":Ha("mobile_devices",1,.73,d,c,v,a,e);break;
case "GCPInputCircuitBoard":Ha("circuit_board",1,.9,d,c,v,a,e);break;case "GCPInputLive":Ha("live",.74,1,d,c,v,a,e);break;case "GCPInputUsers":Ha("users",1,.63,d,c,v,a,e);break;case "GCPInputLaptop":Ha("laptop",1,.66,d,c,v,a,e);break;case "GCPInputApplication":Ha("application",1,.8,d,c,v,a,e);break;case "GCPInputLightbulb":Ha("lightbulb",.7,1,d,c,v,a,e);break;case "GCPInputGame":Ha("game",1,.54,d,c,v,a,e);break;case "GCPInputDesktop":Ha("desktop",1,.9,d,c,v,a,e);break;case "GCPInputDesktopAndMobile":Ha("desktop_and_mobile",
1,.66,d,c,v,a,e);break;case "GCPInputWebcam":Ha("webcam",.5,1,d,c,v,a,e);break;case "GCPInputSpeaker":Ha("speaker",.7,1,d,c,v,a,e);break;case "GCPInputRetail":Ha("retail",1,.89,d,c,v,a,e);break;case "GCPInputReport":Ha("report",1,1,d,c,v,a,e);break;case "GCPInputPhone":Ha("phone",.64,1,d,c,v,a,e);break;case "GCPInputBlank":Ha("transparent",1,1,d,c,v,a,e);break;case "PresentationFrameBlock":0==a.ZOrder?v.style+="strokeColor=none;fillColor=none;":(v.style+=p(a.Text),v.value=k(a.Text),v.style+=h(v.style,
a,e,v,q));break;case "SVGPathBlock2":try{var Uf=a.LineWidth,Vf=a.LineColor,kf=a.FillColor,lf=a.DrawData.Data,Zd='<svg viewBox="0 0 1 1" xmlns="http://www.w3.org/2000/svg">',re=null;for(b=0;b<lf.length;b++){var kc=lf[b],Wf=kc.a,Xf=("prop"==kc.w||null==kc.w?Uf:kc.w)/Math.min(d,c)*.75;Jc="prop"==kc.s||null==kc.s?Vf:kc.s;H="prop"==kc.f||null==kc.f?kf:kc.f;"object"==typeof H&&(null!=H.url&&(re="shape=image;image="+r(H.url)+";"),H=Array.isArray(H.cs)?H.cs[0].c:kf);Zd+='<path d="'+Wf+'" fill="'+H+'" stroke="'+
Jc+'" stroke-width="'+Xf+'"/>'}Zd+="</svg>";v.style=re?re:"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image=data:image/svg+xml,"+(window.btoa?btoa(Zd):Base64.encode(Zd,!0))+";"}catch(Ua){}break;case "BraceBlock":case "BraceBlockRotated":case "BracketBlock":case "BracketBlockRotated":var mf=0==C.indexOf("Bracket")?"size=0;arcSize=50;":"",nf=h(v.style,a,e,v,q);bb=mc(a,e,v);v.style="group;"+bb;var se=Math.min(.14*(bb?d:c),100),te=
new mxCell("",new mxGeometry(0,0,se,c),"shape=curlyBracket;rounded=1;"+mf+nf);te.vertex=!0;te.geometry.relative=!0;var ue=new mxCell("",new mxGeometry(1-se/d,0,se,c),"shape=curlyBracket;rounded=1;flipH=1;"+mf+nf);ue.vertex=!0;ue.geometry.relative=!0;v.insert(te);v.insert(ue);break;case "BPMNTextAnnotation":case "NoteBlock":a.InsetMargin=null;v.value=k(a.Text);v.style="group;spacingLeft=8;align=left;spacing=0;strokeColor=none;";v.style+=h(v.style,a,e,v,q);0>v.style.indexOf("verticalAlign")&&(v.style+=
"verticalAlign=middle;");var cd=new mxCell("",new mxGeometry(0,0,8,c),"shape=partialRectangle;right=0;fillColor=none;");cd.geometry.relative=!0;cd.vertex=!0;cd.style+=h(cd.style,a,e,v,q);v.insert(cd);break;case "VSMTimelineBlock":case "TimelineBlock":case "TimelineMilestoneBlock":case "TimelineIntervalBlock":LucidImporter.hasTimeLine=!0;LucidImporter.hasUnknownShapes=!0;break;case "FreehandBlock":try{bb=mc(a,e,v);v.style="group;"+bb;if(null!=a.Stencil){null==a.Stencil.id&&(a.Stencil.id="$$tmpId$$",
Je(a.Stencil.id,a.Stencil));var Cb=LucidImporter.stencilsMap[a.Stencil.id],Yf=-Cb.x/Cb.w,Zf=-Cb.y/Cb.h;for(b=0;b<Cb.stencils.length;b++){var db=Cb.stencils[b];V=new mxCell("",new mxGeometry(Yf,Zf,d,c),"shape="+db.shapeStencil+";");var $f=db.FillColor,ag=db.LineColor,bg=db.LineWidth;"prop"==db.FillColor&&(db.FillColor=a.FillColor);null==db.FillColor&&(db.FillColor="#ffffff00");"prop"==db.LineColor&&(db.LineColor=a.LineColor);null==db.LineColor&&(db.LineColor="#ffffff00");"prop"==db.LineWidth&&(db.LineWidth=
a.LineWidth);V.style+=h(V.style,db,e,V,q);db.FillColor=$f;db.LineColor=ag;db.LineWidth=bg;H=a.FillColor;var cg=a.LineColor,dg=a.LineWidth;a.FillColor=null;a.LineColor=null;a.LineWidth=null;V.style+=h(V.style,a,e,V,q);a.FillColor=H;a.LineColor=cg;a.LineWidth=dg;V.vertex=!0;V.geometry.relative=!0;v.insert(V)}var Lb=0;for(bb=a.Rotation;a["t"+Lb];){var of=a["t"+Lb],pf=k(of);if(pf){W=new mxCell(pf,new mxGeometry(0,0,d,c),"strokeColor=none;fillColor=none;overflow=visible;");a.Rotation=0;W.style+=h(W.style,
of,e,W,q);W.style+=h(W.style,a,e,W,q);a.Rotation=bb;if(null!=Cb.text&&null!=Cb.text["t"+Lb]){var Sa=Cb.text["t"+Lb];Sa.Rotation=bb+(Sa.rotation?Sa.rotation:0)+(a["t"+Lb+"_TRotation"]?a["t"+Lb+"_TRotation"]:0)+(a["t"+Lb+"_TAngle"]?a["t"+Lb+"_TAngle"]:0);W.style+=h(W.style,Sa,e,W,q);var Mb=W.geometry;Sa.w&&(Mb.width*=Sa.w/Cb.w);Sa.h&&(Mb.height*=Sa.h/Cb.h);Sa.x&&(Mb.x=Sa.x/Cb.w);Sa.y&&(Mb.y=Sa.y/Cb.h);Sa.fw&&(Mb.width*=.75*Sa.fw/d);Sa.fh&&(Mb.height*=.75*Sa.fh/c);Sa.fx&&(Mb.x=(0<Sa.fx?1:0)+.75*Sa.fx/
d);Sa.fy&&(Mb.y=(0<Sa.fy?1:0)+.75*Sa.fy/c)}W.vertex=!0;W.geometry.relative=!0;v.insert(W)}Lb++}}if(a.FillColor&&a.FillColor.url){var Fd=new mxCell("",new mxGeometry(0,0,d,c),"shape=image;html=1;");Fd.style+=Ae({},{},a.FillColor.url);Fd.vertex=!0;Fd.geometry.relative=!0;v.insert(Fd)}}catch(Ua){console.log("Freehand error",Ua)}break;case "RightArrowBlock":var ve=a.Head*c/d;v.style="shape=singleArrow;arrowWidth="+(1-2*a.Notch)+";arrowSize="+ve;v.value=k(a);v.style+=h(v.style,a,e,v,q);break;case "DoubleArrowBlock":ve=
a.Head*c/d;v.style="shape=doubleArrow;arrowWidth="+(1-2*a.Notch)+";arrowSize="+ve;v.value=k(a);v.style+=h(v.style,a,e,v,q);break;case "VPCSubnet2017":case "VirtualPrivateCloudContainer2017":case "ElasticBeanStalkContainer2017":case "EC2InstanceContents2017":case "AWSCloudContainer2017":case "CorporateDataCenterContainer2017":switch(C){case "VPCSubnet2017":var dd="shape=mxgraph.aws3.permissions;fillColor=#D9A741;";var ed=30;var fd=35;break;case "VirtualPrivateCloudContainer2017":dd="shape=mxgraph.aws3.virtual_private_cloud;fillColor=#F58536;";
ed=52;fd=36;break;case "ElasticBeanStalkContainer2017":dd="shape=mxgraph.aws3.elastic_beanstalk;fillColor=#F58536;";ed=30;fd=41;break;case "EC2InstanceContents2017":dd="shape=mxgraph.aws3.instance;fillColor=#F58536;";ed=40;fd=41;break;case "AWSCloudContainer2017":dd="shape=mxgraph.aws3.cloud;fillColor=#F58536;";ed=52;fd=36;break;case "CorporateDataCenterContainer2017":dd="shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;",ed=30,fd=42}v.style="rounded=1;arcSize=10;dashed=0;verticalAlign=bottom;";
v.value=k(a);v.style+=h(v.style,a,e,v,q);v.geometry.y+=20;v.geometry.height-=20;cb=new mxCell("",new mxGeometry(20,-20,ed,fd),dd);cb.vertex=!0;v.insert(cb);break;case "FlexiblePolygonBlock":var Oc=['<shape strokewidth="inherit"><foreground>'];Oc.push("<path>");for(M=0;M<a.Vertices.length;M++)xa=a.Vertices[M],0==M?Oc.push('<move x="'+100*xa.x+'" y="'+100*xa.y+'"/>'):Oc.push('<line x="'+100*xa.x+'" y="'+100*xa.y+'"/>');Oc.push("</path>");Oc.push("<fillstroke/>");Oc.push("</foreground></shape>");v.style=
"shape=stencil("+Graph.compress(Oc.join(""))+");";v.value=k(a);v.style+=h(v.style,a,e,v,q);break;case "InfographicsBlock":var qf=a.ShapeData_1.Value,we=a.ShapeData_2.Value-qf,xe=a.ShapeData_3.Value-qf,$d=a.ShapeData_4.Value*d/200;Lb="ProgressBar"==a.InternalStencilId?4:5;$a=a["ShapeData_"+Lb].Value;$a="=fillColor()"==$a?a.FillColor:$a;var gd=a["ShapeData_"+(Lb+1)].Value;switch(a.InternalStencilId){case "ProgressDonut":v.style="shape=mxgraph.basic.donut;dx="+$d+";strokeColor=none;fillColor="+Pa(gd)+
";"+hc(gd,"fillOpacity");v.style+=h(v.style,a,e,v,q);var Ma=new mxCell("",new mxGeometry(0,0,d,c),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+xe/we+";arcWidth="+$d/d*2+";strokeColor=none;fillColor="+Pa($a)+";"+hc($a,"fillOpacity"));Ma.style+=h(Ma.style,a,e,Ma,q);Ma.vertex=!0;Ma.geometry.relative=1;v.insert(Ma);break;case "ProgressHalfDonut":v.geometry.height*=2;v.geometry.rotate90();var rf=xe/we/2;v.style="shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+rf+";arcWidth="+
2*$d/d+";strokeColor=none;fillColor="+Pa($a)+";"+hc($a,"fillOpacity");a.Rotation-=Math.PI/2;v.style+=h(v.style,a,e,v,q);Ma=new mxCell("",new mxGeometry(0,0,v.geometry.width,v.geometry.height),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+(.5-rf)+";arcWidth="+2*$d/d+";strokeColor=none;flipH=1;fillColor="+Pa(gd)+";"+hc(gd,"fillOpacity"));a.Rotation+=Math.PI;Ma.style+=h(Ma.style,a,e,Ma,q);Ma.vertex=!0;Ma.geometry.relative=1;v.insert(Ma);break;case "ProgressBar":v.style="strokeColor=none;fillColor="+
Pa(gd)+";"+hc(gd,"fillOpacity"),v.style+=h(v.style,a,e,v,q),Ma=new mxCell("",new mxGeometry(0,0,d*xe/we,c),"strokeColor=none;fillColor="+Pa($a)+";"+hc($a,"fillOpacity")),Ma.style+=h(Ma.style,a,e,Ma,q),Ma.vertex=!0,Ma.geometry.relative=1,v.insert(Ma)}break;case "InternalStorageBlock":v.style+="shape=internalStorage;dx=10;dy=10";if(a.Text&&a.Text.m){var ae=a.Text.m,ye=!1,ze=!1;for(b=0;b<ae.length;b++){var hd=ae[b];ye||"mt"!=hd.n?ze||"il"!=hd.n||(hd.v=17+(hd.v||0),ze=!0):(hd.v=17+(hd.v||0),ye=!0)}ye||
ae.push({s:0,n:"mt",v:17});ze||ae.push({s:0,n:"il",v:17})}v.value=k(a);v.style+=h(v.style,a,e,v,q);break;case "PersonRoleBlock":try{P=ta(a,e);Ra=c/2;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.value=k(a.Role);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+P+"startSize="+Ra+";spacingLeft=3;spacingRight=3;fontStyle=0;"+p(a.Role,q);v.style+=h(v.style,a,e,
v,q);var vc=new mxCell("",new mxGeometry(0,c/2,d,c/2),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");vc.value=k(a.Name);vc.vertex=!0;v.insert(vc);vc.style+=p(a.Name,q);vc.style+=h(vc.style,a,e,vc,q)}catch(Ua){console.log(Ua)}}v.style&&0>v.style.indexOf("html")&&(v.style+="html=1;");if(a.Title&&a.Title.t&&a.Text&&a.Text.t)try{var sf=v.geometry,tf=new mxCell(k(a.Title),new mxGeometry(0,sf.height+4,sf.width,10),"strokeColor=none;fillColor=none;whiteSpace=wrap;verticalAlign=top;labelPosition=center;verticalLabelPosition=top;align=center;");
tf.vertex=!0;v.insert(tf);v.style+=p(a.Title,q)}catch(Ua){console.log(Ua)}Fe(v,a);Be(v,a,m);a.Hidden&&(v.visible=!1);return v}function Fe(f,n){if(n.Text_TRotation||n.TextRotation)try{var m=mxUtils.toDegree(n.Text_TRotation||0)+mxUtils.toDegree(n.TextRotation||0);if(!isNaN(m)&&0!=m&&f.value){var e=f.geometry.width,a=f.geometry.height,y=e,d=a,c=0,G=0;if(-90==m||-270==m){y=a;d=e;var I=(a-e)/2;c=-I/e;G=I/a}m+=mxUtils.toDegree(n.Rotation);var C=f.style.split(";").filter(function(Q){return 0>Q.indexOf("fillColor=")&&
0>Q.indexOf("strokeColor=")&&0>Q.indexOf("rotation=")}).join(";"),ba=new mxCell(f.value,new mxGeometry(c,G,y,d),C+"fillColor=none;strokeColor=none;rotation="+m+";");f.value=null;ba.geometry.relative=!0;ba.vertex=!0;f.insert(ba)}}catch(Q){console.log(Q)}}function Ie(f,n,m,e,a){function y(yb,Ob){var Ia="";try{for(var eb=0;eb<yb.text.length;eb++){var Fc=yb.text[eb];if(Fc[0]=="t_"+Ob){for(var wc in Fc[1]){var xc=Fc[1][wc];if(xc)switch(wc){case "font":Ia+=w(xc);break;case "bold":Ia+="font-weight: bold;";
break;case "italic":Ia+="font-style: italic;";break;case "underline":Ia+="text-decoration: underline;";break;case "size":Ia+="font-size:"+x(.75*xc)+"px;";break;case "color":Ia+="color:"+gc(xc).substring(0,7)+";";break;case "fill":Ia+="background-color:"+gc(xc).substring(0,7)+";";break;case "align":Ia+="text-align:"+xc+";"}}break}}}catch(Nd){}return Ia}try{var d=function(yb,Ob,Ia){yb=fa+yb;W[yb]=Ob;Ob="";for(var eb=0;eb<C.length;eb++)Ob+='<div style="'+T[eb]+'">'+(Ia[C[eb]]||"&nbsp;")+"</div>";eb=
mxUtils.getSizeForString(Ob);Ia=r(Ia.Image||Ia["018__ImageUrl__"])||"https://cdn4.iconfinder.com/data/icons/basic-user-interface-elements/700/user-account-profile-human-avatar-face-head--128.png";Ia=new mxCell(Ob,new mxGeometry(0,0,eb.width+ha,eb.height+za),Z+(ia?Ia:""));Ia.vertex=!0;a[yb]=Ia;e.addCell(Ia,I)},c=n.OrgChartBlockType,G=n.Location,I=new mxCell("",new mxGeometry(.75*G.x,.75*G.y,200,100),"group");I.vertex=!0;e.addCell(I);var C=n.FieldNames,ba=n.LayoutSettings,Q=n.BlockItemDefaultStyle||
{props:{}},S=n.EdgeItemDefaultStyle,W={},fa=(f||Date.now())+"_";4==c&&(Q.props.LineWidth=0);var T=[],ha=25,za=40,ia=!0,Z=h("",Q.props,{},I,!0);0==c?(Z+="spacingTop=54;imageWidth=54;imageHeight=54;imageAlign=center;imageVerticalAlign=top;image=",za+=54):1==c||2==c?(Z+="spacingLeft=54;imageWidth=50;imageHeight=50;imageAlign=left;imageVerticalAlign=top;image=",ha+=54):3<=c&&(ia=!1);for(f=0;f<C.length;f++)T.push(y(Q,C[f]));if(m.Items)for(var ua=m.Items.n,pa=0;pa<ua.length;pa++){var ra=ua[pa];d(ra.pk,
ra.ie[0]?ra.ie[0].nf:null,ra.f)}else{var b=n.ContractMap.derivative;if(null==b){var na=n.ContractMap.c.People;var Na=na.id;Na=Na.substr(0,Na.lastIndexOf("_"));for(f=0;f<C.length;f++)C[f]=na.f[C[f]]||C[f]}else for(pa=0;pa<b.length;pa++)if("ForeignKeyGraph"==b[pa].type)Na=b[pa].c[0].id,Na=Na.substr(0,Na.lastIndexOf("_"));else if("MappedGraph"==b[pa].type)for(f=0;f<C.length;f++)C[f]=b[pa].nfs[C[f]]||C[f];var ka;for(ka in m){ra=m[ka].Collections;for(var ya in ra)if(ya==Na)ua=ra[ya].Items;else if(ra[ya].Properties.ForeignKeys&&
ra[ya].Properties.ForeignKeys[0]){var R=ra[ya].Properties.ForeignKeys[0].SourceFields[0];var sa=ra[ya].Properties.Schema.PrimaryKey[0]}if(ua)break}n={};for(var da in ua){ra=ua[da];var ea=ra[sa],Db=ra[R];ea==Db?(n[ea]=ea+Date.now(),ea=n[ea],ra[sa]=ea,d(ea,Db,ra)):d(ea,n[Db]||Db,ra)}}for(ka in W){var M=W[ka];if(null!=M){var lb=a[fa+M],Ea=a[ka];if(null!=lb&&null!=Ea){var fc=new mxCell("",new mxGeometry(0,0,100,100),"");fc.geometry.relative=!0;fc.edge=!0;null!=S&&null!=S.props&&Id(fc,S.props,e,null,null,
!0);e.addCell(fc,I,null,lb,Ea)}}}var lc=.75*ba.NodeSpacing.LevelSeparation;(new mxOrgChartLayout(e,0,lc,.75*ba.NodeSpacing.NeighborSeparation)).execute(I);for(pa=ba=d=0;I.children&&pa<I.children.length;pa++){var tb=I.children[pa].geometry;d=Math.max(d,tb.x+tb.width);ba=Math.max(ba,tb.y+tb.height)}var Fb=I.geometry;Fb.y-=lc;Fb.width=d;Fb.height=ba}catch(yb){LucidImporter.hasUnknownShapes=!0,LucidImporter.hasOrgChart=!0,console.log(yb)}}var nc=0,oc=0,ce="text;html=1;resizable=0;labelBackgroundColor=default;align=center;verticalAlign=middle;",
q=!1,ab="",uf=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],vf=["fpDoor"],Ce={None:"none;",Arrow:"block;xyzFill=1;","Hollow Arrow":"block;xyzFill=0;","Open Arrow":"open;","CFN ERD Zero Or More Arrow":"ERzeroToMany;xyzSize=10;","CFN ERD One Or More Arrow":"ERoneToMany;xyzSize=10;","CFN ERD Many Arrow":"ERmany;xyzSize=10;","CFN ERD Exactly One Arrow":"ERmandOne;xyzSize=10;","CFN ERD Zero Or One Arrow":"ERzeroToOne;xyzSize=10;","CFN ERD One Arrow":"ERone;xyzSize=16;",
new mxGeometry(0,0,d,.5*d),"part=1;strokeColor=none;fillColor=none;"),g.vertex=!0,v.insert(g),g.value=l(a.TopText),g.style+=q(a.TopText,t),g.style+=h(g.style,a,e,g,t),m=new mxCell("",new mxGeometry(0,.5*d,d,.5*d),"part=1;strokeColor=none;fillColor=none;")):(g=new mxCell("",new mxGeometry(0,0,d,.5*c),"part=1;strokeColor=none;fillColor=none;"),g.vertex=!0,v.insert(g),g.value=l(a.TopText),g.style+=q(a.TopText,t),g.style+=h(g.style,a,e,g,t),m=new mxCell("",new mxGeometry(0,.5*c,d,.5*c),"part=1;strokeColor=none;fillColor=none;"));
m.vertex=!0;v.insert(m);m.value=l(a.BotText);m.style+=q(a.BotText,t);m.style+=h(m.style,a,e,m,t);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 re=!1;"PEPoweredValveBlock"==f.Class?1!=a.poweredHandOperated&&(re=!0):1!=
a.handOperated&&(re=!0);if(re){a=x(f).Properties;C=a.BoundingBox;var Rf=C.h;C.h="PEAngleValveBlock"==f.Class||"PEAngleGlobeValveBlock"==f.Class?.7*C.h:.6*C.h;v=new mxCell("",new mxGeometry(Math.round(.75*C.x+sc),Math.round(.75*(C.y+Rf-C.h)+tc),Math.round(.75*C.w),Math.round(.75*C.h)),"");v.vertex=!0;Ld(v,f,n)}if("PEPoweredValveBlock"==f.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;",v.style+=h(v.style,a,e,v),1==a.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",
g=new mxCell("",new mxGeometry(.325*d,0,.35*d,.35*c),"part=1;strokeColor=none;fillColor=none;spacingTop=2;"),g.vertex=!0,v.insert(g),g.value=l(a.PoweredText),g.style+=(t?"":V(a.PoweredText)+ia(a.PoweredText)+Fa(a.PoweredText)+Pa(a.PoweredText)+Xa(a.PoweredText)+k(a.PoweredText)+r(a.PoweredText))+"fontSize=6;"+A(a.PoweredText),g.style+=h(g.style,a,e,g,t)):v.style+="valveType=gate;";else{v.style+="verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;";v.value=l(a.Text);switch(f.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;")}v.style+=h(v.style,a,e,v,t);break;case "UI2BrowserBlock":v.style+="shape=mxgraph.mockup.containers.browserWindow;mainText=;";1==a.vScroll&&(H=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;"),H.geometry.relative=!0,H.geometry.offset=new mxPoint(-20,110),H.vertex=!0,v.insert(H),v.style+="spacingRight=20;");1==a.hScroll&&(la=1==a.vScroll?new mxCell("",new mxGeometry(0,1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
la.geometry.relative=!0,la.geometry.offset=new mxPoint(0,-20),la.vertex=!0,v.insert(la));v.style+=h(v.style,a,e,v);break;case "UI2WindowBlock":v.value=l(a.Title);v.style+="shape=mxgraph.mockup.containers.window;mainText=;align=center;verticalAlign=top;spacing=5;"+(t?"fontSize=13;":F(a.Title)+V(a.Title)+ia(a.Title));1==a.vScroll&&(H=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;"),H.geometry.relative=!0,H.geometry.offset=new mxPoint(-20,30),H.vertex=!0,v.insert(H),v.style+="spacingRight=20;");1==a.hScroll&&(la=1==a.vScroll?new mxCell("",new mxGeometry(0,1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),la.geometry.relative=
!0,la.geometry.offset=new mxPoint(0,-20),la.vertex=!0,v.insert(la));v.style+=h(v.style,a,e,v,t);break;case "UI2DialogBlock":v.value=l(a.Text);v.style+=q(a.Text,t);g=new mxCell("",new mxGeometry(0,0,d,30),"part=1;resizeHeight=0;");g.vertex=!0;v.insert(g);g.value=l(a.Title);g.style+=q(a.Title,t);g.style+=h(g.style,a,e,g,t);m=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");m.geometry.relative=!0;m.geometry.offset=new mxPoint(-25,-10);
m.vertex=!0;g.insert(m);1==a.vScroll&&(H=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;"),H.geometry.relative=!0,H.geometry.offset=new mxPoint(-20,30),H.vertex=!0,v.insert(H),v.style+="spacingRight=20;");1==a.hScroll&&(la=1==a.vScroll?new mxCell("",new mxGeometry(0,
1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),la.geometry.relative=!0,la.geometry.offset=new mxPoint(0,-20),la.vertex=!0,v.insert(la));v.style+=h(v.style,a,e,v);a.Text=null;break;case "UI2AccordionBlock":g=[];Y=25;for(b=0;b<=a.Panels-1;b++)g[b]=b<a.Selected-1?new mxCell("",new mxGeometry(0,b*Y,d,Y),"part=1;fillColor=#000000;fillOpacity=25;"):b==
a.Selected-1?new mxCell("",new mxGeometry(0,b*Y,d,Y),"part=1;fillColor=none;"):new mxCell("",new mxGeometry(0,c-(a.Panels-a.Selected)*Y+(b-a.Selected)*Y,d,Y),"part=1;fillColor=#000000;fillOpacity=25;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=l(a["Panel_"+(b+1)]),g[b].style+=q(a["Panel_"+(b+1)],t),0>g[b].style.indexOf(";align=")&&(g[b].style+="align=left;spacingLeft=5;");var Na=y(a,e);Na=Na.replace("strokeColor","fillColor2");""==Na&&(Na="fillColor2=#000000;");1==a.vScroll&&(m=1==a.hScroll?new mxCell("",
new mxGeometry(1,0,20,c-a.Selected*Y-20-(a.Panels-a.Selected)*Y),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,c-a.Selected*Y-(a.Panels-a.Selected)*Y),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(-20,a.Selected*Y),m.vertex=!0,v.insert(m),v.style+="spacingRight=20;",m.style+=Na,m.style+=h(m.style,a,e,m));1==a.hScroll&&
(H=1==a.vScroll?new mxCell("",new mxGeometry(0,1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),H.geometry.relative=!0,H.geometry.offset=new mxPoint(0,-20-(a.Panels-a.Selected)*Y),H.vertex=!0,v.insert(H),H.style+=Na,H.style+=h(H.style,a,e,H));la=1==a.vScroll?new mxCell("",new mxGeometry(0,a.Selected*Y,d-20,c-a.Selected*Y-20-(a.Panels-a.Selected)*
Y),"part=1;fillColor=none;strokeColor=none;"):new mxCell("",new mxGeometry(0,a.Selected*Y,d-20,c-a.Selected*Y-(a.Panels-a.Selected)*Y),"part=1;fillColor=none;strokeColor=none;");la.vertex=!0;v.insert(la);la.value=l(a.Content_1);la.style+=q(a.Content_1,t);!t&&0>la.style.indexOf(";align=")&&(la.style+="align=left;spacingLeft=5;");v.style+=h(v.style,a,e,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";g=[];m=[];Y=25;var Cb=3,ya=(d+Cb)/(a.Tabs+1),cb=new mxCell("",new mxGeometry(0,
Y,d,c-Y),"part=1;");cb.vertex=!0;v.insert(cb);cb.style+=h(cb.style,a,e,cb);for(b=0;b<=a.Tabs-1;b++)b==a.Selected-1?(m[b]=new mxCell("",new mxGeometry(10+b*ya,0,ya-Cb,Y),""),m[b].vertex=!0,v.insert(m[b])):(g[b]=new mxCell("",new mxGeometry(10+b*ya,0,ya-Cb,Y),"strokeColor=none;"),g[b].vertex=!0,v.insert(g[b]),g[b].style+=g[b].style+=h(g[b].style,a,e,g[b]),m[b]=new mxCell("",new mxGeometry(0,0,ya-Cb,Y),"fillColor=#000000;fillOpacity=25;"),m[b].vertex=!0,g[b].insert(m[b])),m[b].value=l(a["Tab_"+(b+1)]),
m[b].style+=q(a["Tab_"+(b+1)],t),0>m[b].style.indexOf(";align=")&&(m[b].style+="align=left;spacingLeft=2;"),m[b].style+=h(m[b].style,a,e,m[b]);Na=y(a,e);Na=Na.replace("strokeColor","fillColor2");""==Na&&(Na="fillColor2=#000000;");1==a.vScroll&&(m=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-20-Y),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,c-Y),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),
m.geometry.relative=!0,m.geometry.offset=new mxPoint(-20,Y),m.vertex=!0,v.insert(m),v.style+="spacingRight=20;",m.style+=Na,m.style+=h(m.style,a,e,m));1==a.hScroll&&(H=1==a.vScroll?new mxCell("",new mxGeometry(0,1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),H.geometry.relative=!0,H.geometry.offset=new mxPoint(0,-20),H.vertex=!0,v.insert(H),H.style+=
Na,H.style+=h(H.style,a,e,H));break;case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";g=[];m=[];Y=25;Cb=3;ya=(d+Cb)/a.Tabs;cb=new mxCell("",new mxGeometry(0,Y,d,c-Y),"part=1;");cb.vertex=!0;v.insert(cb);cb.style+=h(cb.style,a,e,cb);for(b=0;b<=a.Tabs-1;b++)b==a.Selected-1?(m[b]=new mxCell("",new mxGeometry(b*ya,0,ya-Cb,Y),""),m[b].vertex=!0,v.insert(m[b])):(g[b]=new mxCell("",new mxGeometry(b*ya,0,ya-Cb,Y),"strokeColor=none;"),g[b].vertex=!0,v.insert(g[b]),g[b].style+=h(g[b].style,
a,e,g[b]),m[b]=new mxCell("",new mxGeometry(0,0,ya-Cb,Y),"fillColor=#000000;fillOpacity=25;"),m[b].vertex=!0,g[b].insert(m[b])),m[b].value=l(a["Tab_"+(b+1)]),m[b].style+=q(a["Tab_"+(b+1)],t),m[b].style+=h(m[b].style,a,e,m[b],t),0>m[b].style.indexOf(";align=")&&(m[b].style+="align=left;spacingLeft=2;");Na=y(a,e);Na=Na.replace("strokeColor","fillColor2");""==Na&&(Na="fillColor2=#000000;");1==a.vScroll&&(m=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-20-Y),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):
new mxCell("",new mxGeometry(1,0,20,c-Y),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(-20,Y),m.vertex=!0,v.insert(m),v.style+="spacingRight=20;",m.style+=Na,m.style+=h(m.style,a,e,m));1==a.hScroll&&(H=1==a.vScroll?new mxCell("",new mxGeometry(0,1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
H.geometry.relative=!0,H.geometry.offset=new mxPoint(0,-20),H.vertex=!0,v.insert(H),H.style+=Na,H.style+=h(H.style,a,e,H));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";g=[];m=[];Cb=3;Y=25+Cb;ya=80;vc=10;cb=new mxCell("",new mxGeometry(ya,0,d-ya,c),"part=1;");cb.vertex=!0;v.insert(cb);cb.style+=h(cb.style,a,e,cb);for(b=0;b<=a.Tabs-1;b++)b==a.Selected-1?(m[b]=new mxCell("",new mxGeometry(0,vc+b*Y,ya,Y-Cb),""),m[b].vertex=!0,v.insert(m[b]),m[b].value=l(a["Tab_"+(b+
1)]),m[b].style+=q(a["Tab_"+(b+1)],t),m[b].style+=h(m[b].style,a,e,m[b],t)):(g[b]=new mxCell("",new mxGeometry(0,vc+b*Y,ya,Y-Cb),"strokeColor=none;"),g[b].vertex=!0,v.insert(g[b]),g[b].style+=h(g[b].style,a,e,g[b]),m[b]=new mxCell("",new mxGeometry(0,0,ya,Y-Cb),"fillColor=#000000;fillOpacity=25;"),m[b].vertex=!0,g[b].insert(m[b]),m[b].value=l(a["Tab_"+(b+1)]),m[b].style+=q(a["Tab_"+(b+1)],t)),0>m[b].style.indexOf(";align=")&&(m[b].style+="align=left;spacingLeft=2;"),m[b].style+=h(m[b].style,a,e,m[b]);
Na=y(a,e);Na=Na.replace("strokeColor","fillColor2");""==Na&&(Na="fillColor2=#000000;");1==a.vScroll&&(m=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;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(-20,0),m.vertex=!0,v.insert(m),v.style+="spacingRight=20;",m.style+=
Na,m.style+=h(m.style,a,e,m));1==a.hScroll&&(H=1==a.vScroll?new mxCell("",new mxGeometry(ya,1,d-20-ya,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(ya,1,d-ya,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),H.geometry.relative=!0,H.geometry.offset=new mxPoint(0,-20),H.vertex=!0,v.insert(H),H.style+=Na,H.style+=h(H.style,a,e,H));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";Y=c/
a.Options;g=[];m=[];for(b=0;b<a.Options;b++)g[b]=new mxCell("",new mxGeometry(0,b*Y+.5*Y-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=l(a["Option_"+(b+1)]),g[b].style+=q(a["Option_"+(b+1)],t),g[b].style+=h(g[b].style,a,e,g[b],t),null!=a.Selected[b+1]&&1==a.Selected[b+1]&&(O=y(a,e),O=O.replace("strokeColor","fillColor"),""==O&&(O="fillColor=#000000;"),m[b]=new mxCell("",new mxGeometry(2,2,
6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),m[b].vertex=!0,g[b].insert(m[b]),m[b].style+=O,m[b].style+=h(m[b].style,a,e,m[b]));break;case "UI2HorizontalCheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";ya=d/a.Options;g=[];m=[];for(b=0;b<a.Options;b++)g[b]=new mxCell("",new mxGeometry(b*ya,.5*c-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=l(a["Option_"+(b+1)]),g[b].style+=
q(a["Option_"+(b+1)],t),g[b].style+=h(g[b].style,a,e,g[b],t),null!=a.Selected[b+1]&&1==a.Selected[b+1]&&(O=y(a,e),O=O.replace("strokeColor","fillColor"),""==O&&(O="fillColor=#000000;"),m[b]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),m[b].vertex=!0,g[b].insert(m[b]),m[b].style+=O,m[b].style+=h(m[b].style,a,e,m[b]));break;case "UI2RadioBlock":v.style+="strokeColor=none;fillColor=none;";Y=c/a.Options;g=[];m=[];for(b=0;b<a.Options;b++)g[b]=new mxCell("",new mxGeometry(0,
b*Y+.5*Y-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=l(a["Option_"+(b+1)]),g[b].style+=q(a["Option_"+(b+1)],t),g[b].style+=h(g[b].style,a,e,g[b],t),null!=a.Selected&&a.Selected==b+1&&(O=y(a,e),O=O.replace("strokeColor","fillColor"),""==O&&(O="fillColor=#000000;"),m[b]=new mxCell("",new mxGeometry(2.5,2.5,5,5),"ellipse;"),m[b].vertex=!0,g[b].insert(m[b]),m[b].style+=O,m[b].style+=
h(m[b].style,a,e,m[b]));break;case "UI2HorizontalRadioBlock":v.style+="strokeColor=none;fillColor=none;";ya=d/a.Options;g=[];m=[];for(b=0;b<a.Options;b++)g[b]=new mxCell("",new mxGeometry(b*ya,.5*c-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=l(a["Option_"+(b+1)]),g[b].style+=q(a["Option_"+(b+1)],t),g[b].style+=h(g[b].style,a,e,g[b],t),null!=a.Selected&&a.Selected==b+1&&(O=y(a,e),
O=O.replace("strokeColor","fillColor"),""==O&&(O="fillColor=#000000;"),m[b]=new mxCell("",new mxGeometry(2,2,6,6),"ellipse;part=1;"),m[b].vertex=!0,g[b].insert(m[b]),m[b].style+=O,m[b].style+=h(m[b].style,a,e,m[b]));break;case "UI2SelectBlock":v.style+="shape=mxgraph.mockup.forms.comboBox;strokeColor=#999999;fillColor=#ddeeff;align=left;fillColor2=#aaddff;mainText=;fontColor=#666666";v.value=l(a.Selected);break;case "UI2HSliderBlock":case "UI2VSliderBlock":v.style+="shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;handleStyle=handle;";
"UI2VSliderBlock"==f.Class&&(v.style+="direction=south;");v.style+="sliderPos="+100*a.ScrollVal+";";v.style+=h(v.style,a,e,v);break;case "UI2DatePickerBlock":v.style+="strokeColor=none;fillColor=none;";g=new mxCell("",new mxGeometry(0,0,.6*d,c),"part=1;");g.vertex=!0;v.insert(g);g.value=l(a.Date);g.style+=q(a.Date,t);v.style+=h(v.style,a,e,v);O=y(a,e);O=O.replace("strokeColor","fillColor");""==O&&(O="fillColor=#000000;");m=new mxCell("",new mxGeometry(.75*d,0,.25*d,c),"part=1;shape=mxgraph.gmdl.calendar;");
m.vertex=!0;v.insert(m);m.style+=O;m.style+=h(m.style,a,e,m);break;case "UI2SearchBlock":v.value=l(a.Search);v.style+="shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1;align=left;spacingLeft=26;"+q(a.Search,t);v.style+=h(v.style,a,e,v,t);break;case "UI2NumericStepperBlock":O=y(a,e);O=O.replace("strokeColor","fillColor");""==O&&(O="fillColor=#000000;");v.value=l(a.Number);v.style+="shape=mxgraph.mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;mainText=;align=left;spacingLeft=8;"+
O+q(a.Number,t);v.style+=h(v.style,a,e,v,t);break;case "UI2TableBlock":try{fb=P(a.FillColor);var Hd=P(a.LineColor);Pc="";var $d=20;v.style="html=1;overflow=fill;verticalAlign=top;spacing=0;";var Id='<table style="width:100%;height:100%;border-collapse: collapse;border: 1px solid '+Hd+';">',pc=a.Data.split("\n");var gf=a.AltRow&&"default"!=a.AltRow?"none"==a.AltRow?fb:P(a.AltRow):Pd(fb,.95);Lc=a.Header&&"default"!=a.Header?"none"==a.Header?gf:P(a.Header):Pd(fb,.8);if("full"==a.GridLines)Pc="border: 1px solid "+
Hd,$d=19;else if("row"==a.GridLines)Pc="border-bottom: 1px solid "+Hd,$d=19;else if("default"==a.GridLines||"column"==a.GridLines)Pc="border-right: 1px solid "+Hd;pc=pc.filter(function(bb){return bb});/^\{[^}]*\}$/.test(pc[pc.length-1])&&pc.pop();Cc=pc[0].split(",").length;var hf="";for(X=0;X<Cc-1;X++)hf+=" , ";for(b=pc.length;b<Math.ceil(c/20);b++)pc.push(hf);for(b=0;b<pc.length;b++){Id+='<tr style="height: '+$d+"px;background:"+(0==b?Lc:b%2?fb:gf)+'">';var jf=pc[b].split(",");for(X=0;X<jf.length;X++){var Jd=
a["Cell_"+b+"_"+X],Sf=Jd&&Jd.m&&Jd.m[0]&&"c"==Jd.m[0].n?P(Jd.m[0].v):Hd;Id+='<td style="height: '+$d+"px;color:"+Sf+";"+Pc+'">'+mxUtils.htmlEntities(jf[X])+"</td>"}Id+="</tr>"}Id+="</table>";v.value=Id}catch(bb){console.log(bb)}break;case "UI2ButtonBarBlock":v.style+=h(v.style,a,e,v);g=[];m=[];ya=d/a.Buttons;for(b=0;b<=a.Buttons-1;b++)b==a.Selected-1?(m[b]=new mxCell("",new mxGeometry(b*ya,0,ya,c),""),m[b].vertex=!0,v.insert(m[b])):(g[b]=new mxCell("",new mxGeometry(b*ya,0,ya,c),"strokeColor=none;"),
g[b].vertex=!0,v.insert(g[b]),g[b].style+=g[b].style+=h(g[b].style,a,e,g[b]),m[b]=new mxCell("",new mxGeometry(0,0,ya,c),"fillColor=#000000;fillOpacity=25;"),m[b].vertex=!0,g[b].insert(m[b])),m[b].value=l(a["Button_"+(b+1)]),m[b].style+=q(a["Button_"+(b+1)],t),m[b].style+=h(m[b].style,a,e,m[b],t);break;case "UI2VerticalButtonBarBlock":v.style+=h(v.style,a,e,v);g=[];m=[];Y=c/a.Buttons;for(b=0;b<=a.Buttons-1;b++)b==a.Selected-1?(m[b]=new mxCell("",new mxGeometry(0,b*Y,d,Y),""),m[b].vertex=!0,v.insert(m[b])):
(g[b]=new mxCell("",new mxGeometry(0,b*Y,d,Y),"strokeColor=none;"),g[b].vertex=!0,v.insert(g[b]),g[b].style+=h(g[b].style,a,e,g[b]),m[b]=new mxCell("",new mxGeometry(0,0,d,Y),"fillColor=#000000;fillOpacity=25;"),m[b].vertex=!0,g[b].insert(m[b])),m[b].value=l(a["Button_"+(b+1)]),m[b].style+=q(a["Button_"+(b+1)],t),m[b].style+=h(m[b].style,a,e,m[b],t);break;case "UI2LinkBarBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);g=[];m=[];ya=d/a.Links;for(b=0;b<a.Links;b++)0!=b?
(m[b]=new mxCell("",new mxGeometry(b*ya,0,ya,c),"shape=partialRectangle;top=0;bottom=0;right=0;fillColor=none;"),m[b].style+=h(m[b].style,a,e,m[b])):m[b]=new mxCell("",new mxGeometry(b*ya,0,ya,c),"fillColor=none;strokeColor=none;"),m[b].vertex=!0,v.insert(m[b]),m[b].value=l(a["Link_"+(b+1)]),m[b].style+=q(a["Link_"+(b+1)],t);break;case "UI2BreadCrumbsBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);g=[];m=[];ya=d/a.Links;for(b=0;b<a.Links;b++)g[b]=new mxCell("",new mxGeometry(b*
ya,0,ya,c),"fillColor=none;strokeColor=none;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=l(a["Link_"+(b+1)]),g[b].style+=q(a["Link_"+(b+1)],t);for(b=1;b<a.Links;b++)m[b]=new mxCell("",new mxGeometry(b/a.Links,.5,6,10),"shape=mxgraph.ios7.misc.right;"),m[b].geometry.relative=!0,m[b].geometry.offset=new mxPoint(-3,-5),m[b].vertex=!0,v.insert(m[b]);break;case "UI2MenuBarBlock":v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v);g=[];ya=d/(a.Buttons+1);for(b=0;b<=a.Buttons-1;b++)g[b]=b!=a.Selected-
1?new mxCell("",new mxGeometry(0,0,ya,c),"strokeColor=none;fillColor=none;resizeHeight=1;"):new mxCell("",new mxGeometry(0,0,ya,c),"fillColor=#000000;fillOpacity=25;strokeColor=none;resizeHeight=1;"),g[b].geometry.relative=!0,g[b].geometry.offset=new mxPoint(b*ya,0),g[b].vertex=!0,v.insert(g[b]),g[b].value=l(a["MenuItem_"+(b+1)]),g[b].style+=q(a["MenuItem_"+(b+1)],t);break;case "UI2AtoZBlock":v.style+="fillColor=none;strokeColor=none;"+q(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;"+q(a.Text_prev);v.value=l(a.Text_prev)+" ";for(b=0;b<a.Links;b++)v.value+=l(a["Link_"+(b+1)])+" ";v.value+=l(a.Text_next);break;case "UI2ContextMenuBlock":v.style+=h(v.style,a,e,v);M=[];ib=[];var gd=[];Y=c/a.Lines;ba=null;for(b=0;b<a.Lines;b++)null!=a["Item_"+(b+1)]&&(null==ba&&(ba=""+F(a["Item_"+(b+1)])+V(a["Item_"+(b+1)])+ia(a["Item_"+(b+1)])),M[b]=new mxCell("",new mxGeometry(0,b*c/a.Lines,d,Y),"strokeColor=none;fillColor=none;spacingLeft=20;align=left;html=1;"),
M[b].vertex=!0,v.insert(M[b]),M[b].style+=ba,M[b].value=l(a["Item_"+(b+1)])),null!=a.Icons[b+1]&&null!=M[b]&&("dot"==a.Icons[b+1]?(ib[b]=new mxCell("",new mxGeometry(0,.5,8,8),"ellipse;strokeColor=none;"),ib[b].geometry.offset=new mxPoint(6,-4)):"check"==a.Icons[b+1]&&(ib[b]=new mxCell("",new mxGeometry(0,.5,7,8),"shape=mxgraph.mscae.general.checkmark;strokeColor=none;"),ib[b].geometry.offset=new mxPoint(6.5,-4)),null!=ib[b]&&(ib[b].geometry.relative=!0,ib[b].vertex=!0,M[b].insert(ib[b]),O=y(a,e),
O=O.replace("strokeColor","fillColor"),""==O&&(O="fillColor=#000000;"),ib[b].style+=O)),null!=a["Shortcut_"+(b+1)]&&(null==ba&&(ba=""+F(a["Shortcut_"+(b+1)])+V(a["Shortcut_"+(b+1)])+ia(a["Shortcut_"+(b+1)])),gd[b]=new mxCell("",new mxGeometry(.6*d,b*c/a.Lines,.4*d,Y),"strokeColor=none;fillColor=none;spacingRight=3;align=right;html=1;"),gd[b].vertex=!0,v.insert(gd[b]),gd[b].style+=ba,gd[b].value=l(a["Shortcut_"+(b+1)])),null!=a.Dividers[b+1]&&(M[b]=new mxCell("",new mxGeometry(.05*d,b*c/a.Lines,.9*
d,Y),"shape=line;strokeWidth=1;"),M[b].vertex=!0,v.insert(M[b]),M[b].style+=y(a,e));break;case "UI2ProgressBarBlock":v.style+="shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos="+100*a.ScrollVal+";";break;case "CalloutSquareBlock":case "UI2TooltipSquareBlock":v.value=l(a.Tip||a.Text);v.style+="html=1;shape=callout;flipV=1;base=13;size=7;position=0.5;position2=0.66;rounded=1;arcSize="+a.RoundCorners+";"+q(a.Tip||a.Text,t);v.style+=h(v.style,a,e,v,t);v.geometry.height+=10;break;case "UI2CalloutBlock":v.value=
l(a.Txt);v.style+="shape=ellipse;perimeter=ellipsePerimeter;"+q(a.Txt,t);v.style+=h(v.style,a,e,v,t);break;case "UI2AlertBlock":v.value=l(a.Txt);v.style+=q(a.Txt,t);v.style+=h(v.style,a,e,v,t);g=new mxCell("",new mxGeometry(0,0,d,30),"part=1;resizeHeight=0;");g.vertex=!0;v.insert(g);g.value=l(a.Title);g.style+=q(a.Title,t);g.style+=h(g.style,a,e,g,t);m=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");m.geometry.relative=!0;m.geometry.offset=
new mxPoint(-25,-10);m.vertex=!0;g.insert(m);var Tf=45*a.Buttons+(10*a.Buttons-1);H=[];for(b=0;b<a.Buttons;b++)H[b]=new mxCell("",new mxGeometry(.5,1,45,20),"part=1;html=1;"),H[b].geometry.relative=!0,H[b].geometry.offset=new mxPoint(.5*-Tf+55*b,-40),H[b].vertex=!0,v.insert(H[b]),H[b].value=l(a["Button_"+(b+1)]),H[b].style+=q(a["Button_"+(b+1)],t),H[b].style+=h(H[b].style,a,e,H[b],t);break;case "UMLClassBlock":if(0==a.Simple){ba=ja(a,e);Za=Math.round(.75*a.TitleHeight)||25;ba=ba.replace("fillColor",
"swimlaneFillColor");""==ba&&(ba="swimlaneFillColor=#ffffff;");v.value=l(a.Title);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+ba+"startSize="+Za+";"+q(a.Title,t);v.style+=h(v.style,a,e,v,t);M=[];var se=[],qb=Za/c;Rb=Za;for(b=0;b<=a.Attributes;b++)0<b&&(se[b]=new mxCell("",new mxGeometry(0,Rb,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),
Rb+=8,se[b].vertex=!0,v.insert(se[b])),Y=0,0==a.Attributes?Y=b=1:b<a.Attributes?(Y=a["Text"+(b+1)+"Percent"],qb+=Y):Y=1-qb,kc=Math.round((c-Za)*Y)+(a.ExtraHeightSet&&1==b?.75*a.ExtraHeight:0),M[b]=new mxCell("",new mxGeometry(0,Rb,d,kc),"part=1;html=1;whiteSpace=wrap;resizeHeight=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),Rb+=kc,M[b].vertex=!0,v.insert(M[b]),M[b].style+=
ba+G(a,e,M[b])+q(a["Text"+(b+1)],t),M[b].value=l(a["Text"+(b+1)])}else v.value=l(a.Title),v.style+="align=center;",v.style+=q(a.Title,t),v.style+=h(v.style,a,e,v,t);break;case "ERDEntityBlock":ba=ja(a,e);Za=.75*a.Name_h;ba=ba.replace("fillColor","swimlaneFillColor");""==ba&&(ba="swimlaneFillColor=#ffffff;");v.value=l(a.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+ba+"startSize="+
Za+";"+q(a.Name,t);v.style+=h(v.style,a,e,v,t);a.ShadedHeader?(ba=P(a.FillColor),he=Pd(ba,.85),v.style+="fillColor="+he+";"):v.style+=ja(a,e);M=[];qb=Za/c;Rb=Za;for(b=0;b<a.Fields;b++)Y=0,kc=.75*a["Field"+(b+1)+"_h"],M[b]=new mxCell("",new mxGeometry(0,Rb,d,kc),"part=1;resizeHeight=0;strokeColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;whiteSpace=wrap;"),Rb+=kc,M[b].vertex=!0,v.insert(M[b]),M[b].style+=
ba+q(a["Field"+(b+1)],t),M[b].style=1==a.AltRows&&0!=b%2?M[b].style+"fillColor=#000000;opacity=5;":M[b].style+("fillColor=none;"+G(a,e,M[b])),M[b].value=l(a["Field"+(b+1)]);break;case "ERDEntityBlock2":ba=ja(a,e);Za=.75*a.Name_h;ba=ba.replace("fillColor","swimlaneFillColor");""==ba&&(ba="swimlaneFillColor=#ffffff;");v.value=l(a.Name);v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+ba+"startSize="+Za+";"+q(a.Name,t);v.style=a.ShadedHeader?
v.style+"fillColor=#e0e0e0;":v.style+ja(a,e);v.style+=h(v.style,a,e,v,t);M=[];var xa=[];qb=Za;var Db=30;null!=a.Column1&&(Db=.75*a.Column1);for(b=0;b<a.Fields;b++)Y=0,xa[b]=new mxCell("",new mxGeometry(0,qb,Db,.75*a["Key"+(b+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;whiteSpace=wrap;"),xa[b].vertex=!0,v.insert(xa[b]),xa[b].style+=ba+q(a["Key"+(b+1)],
t),xa[b].style=1==a.AltRows&&0!=b%2?xa[b].style+"fillColor=#000000;fillOpacity=5;":xa[b].style+("fillColor=none;"+G(a,e,xa[b])),xa[b].value=l(a["Key"+(b+1)]),M[b]=new mxCell("",new mxGeometry(Db,qb,d-Db,.75*a["Field"+(b+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;whiteSpace=wrap;"),M[b].vertex=!0,v.insert(M[b]),M[b].style+=
ba+q(a["Field"+(b+1)],t),v.style+=h(v.style,a,e,v),M[b].style=1==a.AltRows&&0!=b%2?M[b].style+"fillColor=#000000;fillOpacity=5;":M[b].style+("fillColor=none;"+G(a,e,M[b])),M[b].value=l(a["Field"+(b+1)]),qb+=.75*a["Key"+(b+1)+"_h"];break;case "ERDEntityBlock3":ba=ja(a,e);Za=.75*a.Name_h;ba=ba.replace("fillColor","swimlaneFillColor");""==ba&&(ba="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+ba+"startSize="+Za+
";"+q(a.Name);v.style=a.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+ja(a,e);v.value=l(a.Name);v.style+=h(v.style,a,e,v,t);M=[];xa=[];qb=Za;Db=30;null!=a.Column1&&(Db=.75*a.Column1);for(b=0;b<a.Fields;b++)Y=0,xa[b]=new mxCell("",new mxGeometry(0,qb,Db,.75*a["Field"+(b+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),xa[b].vertex=!0,v.insert(xa[b]),
xa[b].style+=ba+q(a["Field"+(b+1)],t),xa[b].style=1==a.AltRows&&0!=b%2?xa[b].style+"fillColor=#000000;fillOpacity=5;":xa[b].style+("fillColor=none;"+G(a,e,xa[b])),xa[b].value=l(a["Field"+(b+1)]),xa[b].style+=h(xa[b].style,a,e,xa[b],t),M[b]=new mxCell("",new mxGeometry(Db,qb,d-Db,.75*a["Type"+(b+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),
M[b].vertex=!0,v.insert(M[b]),M[b].style+=ba+q(a["Type"+(b+1)],t),M[b].style=1==a.AltRows&&0!=b%2?M[b].style+"fillColor=#000000;fillOpacity=5;":M[b].style+("fillColor=none;"+G(a,e,M[b])),M[b].value=l(a["Type"+(b+1)]),M[b].style+=h(M[b].style,a,e,M[b],t),qb+=.75*a["Field"+(b+1)+"_h"];break;case "ERDEntityBlock4":ba=ja(a,e);Za=.75*a.Name_h;ba=ba.replace("fillColor","swimlaneFillColor");""==ba&&(ba="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+
ba+"startSize="+Za+";"+q(a.Name);v.style=a.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+ja(a,e);v.value=l(a.Name);v.style+=h(v.style,a,e,v,t);M=[];xa=[];var Eb=[];qb=Za;Db=30;var ae=40;null!=a.Column1&&(Db=.75*a.Column1);null!=a.Column2&&(ae=.75*a.Column2);for(b=0;b<a.Fields;b++)Y=0,xa[b]=new mxCell("",new mxGeometry(0,qb,Db,.75*a["Key"+(b+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),
xa[b].vertex=!0,v.insert(xa[b]),xa[b].style+=ba+q(a["Key"+(b+1)],t),xa[b].style=1==a.AltRows&&0!=b%2?xa[b].style+"fillColor=#000000;fillOpacity=5;":xa[b].style+("fillColor=none;"+G(a,e,xa[b])),xa[b].value=l(a["Key"+(b+1)]),xa[b].style+=h(xa[b].style,a,e,xa[b],t),M[b]=new mxCell("",new mxGeometry(Db,qb,d-Db-ae,.75*a["Field"+(b+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),
M[b].vertex=!0,v.insert(M[b]),M[b].style+=ba+q(a["Field"+(b+1)],t),M[b].style=1==a.AltRows&&0!=b%2?M[b].style+"fillColor=#000000;fillOpacity=5;":M[b].style+("fillColor=none;"+G(a,e,M[b])),M[b].value=l(a["Field"+(b+1)]),M[b].style+=h(M[b].style,a,e,M[b],t),Eb[b]=new mxCell("",new mxGeometry(d-ae,qb,ae,.75*a["Type"+(b+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),
Eb[b].vertex=!0,v.insert(Eb[b]),Eb[b].style+=ba+q(a["Type"+(b+1)],t),Eb[b].style=1==a.AltRows&&0!=b%2?Eb[b].style+"fillColor=#000000;fillOpacity=5;":Eb[b].style+("fillColor=none;"+G(a,e,Eb[b])),Eb[b].value=l(a["Type"+(b+1)]),Eb[b].style+=h(Eb[b].style,a,e,Eb[b],t),qb+=.75*a["Key"+(b+1)+"_h"];break;case "GCPServiceCardApplicationSystemBlock":La("application_system",d,c,v,a,e);break;case "GCPServiceCardAuthorizationBlock":La("internal_payment_authorization",d,c,v,a,e);break;case "GCPServiceCardBlankBlock":La("blank",
d,c,v,a,e);break;case "GCPServiceCardReallyBlankBlock":La("blank",d,c,v,a,e);break;case "GCPServiceCardBucketBlock":La("bucket",d,c,v,a,e);break;case "GCPServiceCardCDNInterconnectBlock":La("google_network_edge_cache",d,c,v,a,e);break;case "GCPServiceCardCloudDNSBlock":La("blank",d,c,v,a,e);break;case "GCPServiceCardClusterBlock":La("cluster",d,c,v,a,e);break;case "GCPServiceCardDiskSnapshotBlock":La("persistent_disk_snapshot",d,c,v,a,e);break;case "GCPServiceCardEdgePopBlock":La("google_network_edge_cache",
d,c,v,a,e);break;case "GCPServiceCardFrontEndPlatformServicesBlock":La("frontend_platform_services",d,c,v,a,e);break;case "GCPServiceCardGatewayBlock":La("gateway",d,c,v,a,e);break;case "GCPServiceCardGoogleNetworkBlock":La("google_network_edge_cache",d,c,v,a,e);break;case "GCPServiceCardImageServicesBlock":La("image_services",d,c,v,a,e);break;case "GCPServiceCardLoadBalancerBlock":La("network_load_balancer",d,c,v,a,e);break;case "GCPServiceCardLocalComputeBlock":La("dedicated_game_server",d,c,v,
a,e);break;case "GCPServiceCardLocalStorageBlock":La("persistent_disk_snapshot",d,c,v,a,e);break;case "GCPServiceCardLogsAPIBlock":La("logs_api",d,c,v,a,e);break;case "GCPServiceCardMemcacheBlock":La("memcache",d,c,v,a,e);break;case "GCPServiceCardNATBlock":La("nat",d,c,v,a,e);break;case "GCPServiceCardPaymentFormBlock":La("external_payment_form",d,c,v,a,e);break;case "GCPServiceCardPushNotificationsBlock":La("push_notification_service",d,c,v,a,e);break;case "GCPServiceCardScheduledTasksBlock":La("scheduled_tasks",
d,c,v,a,e);break;case "GCPServiceCardServiceDiscoveryBlock":La("service_discovery",d,c,v,a,e);break;case "GCPServiceCardSquidProxyBlock":La("squid_proxy",d,c,v,a,e);break;case "GCPServiceCardTaskQueuesBlock":La("task_queues",d,c,v,a,e);break;case "GCPServiceCardVirtualFileSystemBlock":La("virtual_file_system",d,c,v,a,e);break;case "GCPServiceCardVPNGatewayBlock":La("gateway",d,c,v,a,e);break;case "GCPInputDatabase":Ra("database",1,.9,d,c,v,a,e);break;case "GCPInputRecord":Ra("record",1,.66,d,c,v,
a,e);break;case "GCPInputPayment":Ra("payment",1,.8,d,c,v,a,e);break;case "GCPInputGateway":Ra("gateway_icon",1,.44,d,c,v,a,e);break;case "GCPInputLocalCompute":Ra("compute_engine_icon",1,.89,d,c,v,a,e);break;case "GCPInputBeacon":Ra("beacon",.73,1,d,c,v,a,e);break;case "GCPInputStorage":Ra("storage",1,.8,d,c,v,a,e);break;case "GCPInputList":Ra("list",.89,1,d,c,v,a,e);break;case "GCPInputStream":Ra("stream",1,.82,d,c,v,a,e);break;case "GCPInputMobileDevices":Ra("mobile_devices",1,.73,d,c,v,a,e);break;
case "GCPInputCircuitBoard":Ra("circuit_board",1,.9,d,c,v,a,e);break;case "GCPInputLive":Ra("live",.74,1,d,c,v,a,e);break;case "GCPInputUsers":Ra("users",1,.63,d,c,v,a,e);break;case "GCPInputLaptop":Ra("laptop",1,.66,d,c,v,a,e);break;case "GCPInputApplication":Ra("application",1,.8,d,c,v,a,e);break;case "GCPInputLightbulb":Ra("lightbulb",.7,1,d,c,v,a,e);break;case "GCPInputGame":Ra("game",1,.54,d,c,v,a,e);break;case "GCPInputDesktop":Ra("desktop",1,.9,d,c,v,a,e);break;case "GCPInputDesktopAndMobile":Ra("desktop_and_mobile",
1,.66,d,c,v,a,e);break;case "GCPInputWebcam":Ra("webcam",.5,1,d,c,v,a,e);break;case "GCPInputSpeaker":Ra("speaker",.7,1,d,c,v,a,e);break;case "GCPInputRetail":Ra("retail",1,.89,d,c,v,a,e);break;case "GCPInputReport":Ra("report",1,1,d,c,v,a,e);break;case "GCPInputPhone":Ra("phone",.64,1,d,c,v,a,e);break;case "GCPInputBlank":Ra("transparent",1,1,d,c,v,a,e);break;case "PresentationFrameBlock":0==a.ZOrder?v.style+="strokeColor=none;fillColor=none;":(v.style+=q(a.Text),v.value=l(a.Text),v.style+=h(v.style,
a,e,v,t));break;case "SVGPathBlock2":try{var Uf=a.LineWidth,Vf=a.LineColor,kf=a.FillColor,lf=a.DrawData.Data,be='<svg viewBox="0 0 1 1" xmlns="http://www.w3.org/2000/svg">',te=null;for(b=0;b<lf.length;b++){var qc=lf[b],Wf=qc.a,Xf=("prop"==qc.w||null==qc.w?Uf:qc.w)/Math.min(d,c)*.75;Oc="prop"==qc.s||null==qc.s?Vf:qc.s;O="prop"==qc.f||null==qc.f?kf:qc.f;"object"==typeof O&&(null!=O.url&&(te="shape=image;image="+u(O.url)+";"),O=Array.isArray(O.cs)?O.cs[0].c:kf);be+='<path d="'+Wf+'" fill="'+O+'" stroke="'+
Oc+'" stroke-width="'+Xf+'"/>'}be+="</svg>";v.style=te?te:"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image=data:image/svg+xml,"+(window.btoa?btoa(be):Base64.encode(be,!0))+";"}catch(bb){}break;case "BraceBlock":case "BraceBlockRotated":case "BracketBlock":case "BracketBlockRotated":var mf=0==J.indexOf("Bracket")?"size=0;arcSize=50;":"",nf=h(v.style,a,e,v,t);hb=Q(a,e,v);v.style="group;"+hb;var ue=Math.min(.14*(hb?d:c),100),ve=
new mxCell("",new mxGeometry(0,0,ue,c),"shape=curlyBracket;rounded=1;"+mf+nf);ve.vertex=!0;ve.geometry.relative=!0;var we=new mxCell("",new mxGeometry(1-ue/d,0,ue,c),"shape=curlyBracket;rounded=1;flipH=1;"+mf+nf);we.vertex=!0;we.geometry.relative=!0;v.insert(ve);v.insert(we);break;case "BPMNTextAnnotation":case "NoteBlock":a.InsetMargin=null;v.value=l(a.Text);v.style="group;spacingLeft=8;align=left;spacing=0;strokeColor=none;";v.style+=h(v.style,a,e,v,t);0>v.style.indexOf("verticalAlign")&&(v.style+=
"verticalAlign=middle;");var hd=new mxCell("",new mxGeometry(0,0,8,c),"shape=partialRectangle;right=0;fillColor=none;");hd.geometry.relative=!0;hd.vertex=!0;hd.style+=h(hd.style,a,e,v,t);v.insert(hd);break;case "VSMTimelineBlock":case "TimelineBlock":case "TimelineMilestoneBlock":case "TimelineIntervalBlock":LucidImporter.hasTimeLine=!0;LucidImporter.hasUnknownShapes=!0;break;case "FreehandBlock":try{hb=Q(a,e,v);v.style="group;"+hb;if(null!=a.Stencil){null==a.Stencil.id&&(a.Stencil.id="$$tmpId$$",
Je(a.Stencil.id,a.Stencil));var Kb=LucidImporter.stencilsMap[a.Stencil.id],Yf=-Kb.x/Kb.w,Zf=-Kb.y/Kb.h;for(b=0;b<Kb.stencils.length;b++){var jb=Kb.stencils[b];ha=new mxCell("",new mxGeometry(Yf,Zf,d,c),"shape="+jb.shapeStencil+";");var $f=jb.FillColor,ag=jb.LineColor,bg=jb.LineWidth;"prop"==jb.FillColor&&(jb.FillColor=a.FillColor);null==jb.FillColor&&(jb.FillColor="#ffffff00");"prop"==jb.LineColor&&(jb.LineColor=a.LineColor);null==jb.LineColor&&(jb.LineColor="#ffffff00");"prop"==jb.LineWidth&&(jb.LineWidth=
a.LineWidth);ha.style+=h(ha.style,jb,e,ha,t);jb.FillColor=$f;jb.LineColor=ag;jb.LineWidth=bg;O=a.FillColor;var cg=a.LineColor,dg=a.LineWidth;a.FillColor=null;a.LineColor=null;a.LineWidth=null;ha.style+=h(ha.style,a,e,ha,t);a.FillColor=O;a.LineColor=cg;a.LineWidth=dg;ha.vertex=!0;ha.geometry.relative=!0;v.insert(ha)}var Sb=0;for(hb=a.Rotation;a["t"+Sb];){var of=a["t"+Sb],pf=l(of);if(pf){ka=new mxCell(pf,new mxGeometry(0,0,d,c),"strokeColor=none;fillColor=none;overflow=visible;");a.Rotation=0;ka.style+=
h(ka.style,of,e,ka,t);ka.style+=h(ka.style,a,e,ka,t);a.Rotation=hb;if(null!=Kb.text&&null!=Kb.text["t"+Sb]){var $a=Kb.text["t"+Sb];$a.Rotation=hb+($a.rotation?$a.rotation:0)+(a["t"+Sb+"_TRotation"]?a["t"+Sb+"_TRotation"]:0)+(a["t"+Sb+"_TAngle"]?a["t"+Sb+"_TAngle"]:0);ka.style+=h(ka.style,$a,e,ka,t);var Tb=ka.geometry;$a.w&&(Tb.width*=$a.w/Kb.w);$a.h&&(Tb.height*=$a.h/Kb.h);$a.x&&(Tb.x=$a.x/Kb.w);$a.y&&(Tb.y=$a.y/Kb.h);$a.fw&&(Tb.width*=.75*$a.fw/d);$a.fh&&(Tb.height*=.75*$a.fh/c);$a.fx&&(Tb.x=(0<
$a.fx?1:0)+.75*$a.fx/d);$a.fy&&(Tb.y=(0<$a.fy?1:0)+.75*$a.fy/c)}ka.vertex=!0;ka.geometry.relative=!0;v.insert(ka)}Sb++}}if(a.FillColor&&a.FillColor.url){var Kd=new mxCell("",new mxGeometry(0,0,d,c),"shape=image;html=1;");Kd.style+=nc({},{},a.FillColor.url);Kd.vertex=!0;Kd.geometry.relative=!0;v.insert(Kd)}}catch(bb){console.log("Freehand error",bb)}break;case "RightArrowBlock":var xe=a.Head*c/d;v.style="shape=singleArrow;arrowWidth="+(1-2*a.Notch)+";arrowSize="+xe;v.value=l(a);v.style+=h(v.style,
a,e,v,t);break;case "DoubleArrowBlock":xe=a.Head*c/d;v.style="shape=doubleArrow;arrowWidth="+(1-2*a.Notch)+";arrowSize="+xe;v.value=l(a);v.style+=h(v.style,a,e,v,t);break;case "VPCSubnet2017":case "VirtualPrivateCloudContainer2017":case "ElasticBeanStalkContainer2017":case "EC2InstanceContents2017":case "AWSCloudContainer2017":case "CorporateDataCenterContainer2017":switch(J){case "VPCSubnet2017":var id="shape=mxgraph.aws3.permissions;fillColor=#D9A741;";var jd=30;var kd=35;break;case "VirtualPrivateCloudContainer2017":id=
"shape=mxgraph.aws3.virtual_private_cloud;fillColor=#F58536;";jd=52;kd=36;break;case "ElasticBeanStalkContainer2017":id="shape=mxgraph.aws3.elastic_beanstalk;fillColor=#F58536;";jd=30;kd=41;break;case "EC2InstanceContents2017":id="shape=mxgraph.aws3.instance;fillColor=#F58536;";jd=40;kd=41;break;case "AWSCloudContainer2017":id="shape=mxgraph.aws3.cloud;fillColor=#F58536;";jd=52;kd=36;break;case "CorporateDataCenterContainer2017":id="shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;",jd=
30,kd=42}v.style="rounded=1;arcSize=10;dashed=0;verticalAlign=bottom;";v.value=l(a);v.style+=h(v.style,a,e,v,t);v.geometry.y+=20;v.geometry.height-=20;ib=new mxCell("",new mxGeometry(20,-20,jd,kd),id);ib.vertex=!0;v.insert(ib);break;case "FlexiblePolygonBlock":var Tc=['<shape strokewidth="inherit"><foreground>'];Tc.push("<path>");for(X=0;X<a.Vertices.length;X++)Ha=a.Vertices[X],0==X?Tc.push('<move x="'+100*Ha.x+'" y="'+100*Ha.y+'"/>'):Tc.push('<line x="'+100*Ha.x+'" y="'+100*Ha.y+'"/>');Tc.push("</path>");
Tc.push("<fillstroke/>");Tc.push("</foreground></shape>");v.style="shape=stencil("+Graph.compress(Tc.join(""))+");";v.value=l(a);v.style+=h(v.style,a,e,v,t);break;case "InfographicsBlock":var qf=a.ShapeData_1.Value,ye=a.ShapeData_2.Value-qf,ze=a.ShapeData_3.Value-qf,ce=a.ShapeData_4.Value*d/200;Sb="ProgressBar"==a.InternalStencilId?4:5;fb=a["ShapeData_"+Sb].Value;fb="=fillColor()"==fb?a.FillColor:fb;var ld=a["ShapeData_"+(Sb+1)].Value;switch(a.InternalStencilId){case "ProgressDonut":v.style="shape=mxgraph.basic.donut;dx="+
ce+";strokeColor=none;fillColor="+P(ld)+";"+aa(ld,"fillOpacity");v.style+=h(v.style,a,e,v,t);var Va=new mxCell("",new mxGeometry(0,0,d,c),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+ze/ye+";arcWidth="+ce/d*2+";strokeColor=none;fillColor="+P(fb)+";"+aa(fb,"fillOpacity"));Va.style+=h(Va.style,a,e,Va,t);Va.vertex=!0;Va.geometry.relative=1;v.insert(Va);break;case "ProgressHalfDonut":v.geometry.height*=2;v.geometry.rotate90();var rf=ze/ye/2;v.style="shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+
rf+";arcWidth="+2*ce/d+";strokeColor=none;fillColor="+P(fb)+";"+aa(fb,"fillOpacity");a.Rotation-=Math.PI/2;v.style+=h(v.style,a,e,v,t);Va=new mxCell("",new mxGeometry(0,0,v.geometry.width,v.geometry.height),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+(.5-rf)+";arcWidth="+2*ce/d+";strokeColor=none;flipH=1;fillColor="+P(ld)+";"+aa(ld,"fillOpacity"));a.Rotation+=Math.PI;Va.style+=h(Va.style,a,e,Va,t);Va.vertex=!0;Va.geometry.relative=1;v.insert(Va);break;case "ProgressBar":v.style="strokeColor=none;fillColor="+
P(ld)+";"+aa(ld,"fillOpacity"),v.style+=h(v.style,a,e,v,t),Va=new mxCell("",new mxGeometry(0,0,d*ze/ye,c),"strokeColor=none;fillColor="+P(fb)+";"+aa(fb,"fillOpacity")),Va.style+=h(Va.style,a,e,Va,t),Va.vertex=!0,Va.geometry.relative=1,v.insert(Va)}break;case "InternalStorageBlock":v.style+="shape=internalStorage;dx=10;dy=10";if(a.Text&&a.Text.m){var de=a.Text.m,Ae=!1,Be=!1;for(b=0;b<de.length;b++){var md=de[b];Ae||"mt"!=md.n?Be||"il"!=md.n||(md.v=17+(md.v||0),Be=!0):(md.v=17+(md.v||0),Ae=!0)}Ae||
de.push({s:0,n:"mt",v:17});Be||de.push({s:0,n:"il",v:17})}v.value=l(a);v.style+=h(v.style,a,e,v,t);break;case "PersonRoleBlock":try{ba=ja(a,e);Za=c/2;ba=ba.replace("fillColor","swimlaneFillColor");""==ba&&(ba="swimlaneFillColor=#ffffff;");v.value=l(a.Role);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+ba+"startSize="+Za+";spacingLeft=3;spacingRight=3;fontStyle=0;"+q(a.Role,t);v.style+=h(v.style,
a,e,v,t);var Ac=new mxCell("",new mxGeometry(0,c/2,d,c/2),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");Ac.value=l(a.Name);Ac.vertex=!0;v.insert(Ac);Ac.style+=q(a.Name,t);Ac.style+=h(Ac.style,a,e,Ac,t)}catch(bb){console.log(bb)}}v.style&&0>v.style.indexOf("html")&&(v.style+="html=1;");if(a.Title&&a.Title.t&&a.Text&&a.Text.t)try{var sf=v.geometry,tf=new mxCell(l(a.Title),new mxGeometry(0,sf.height+4,sf.width,10),"strokeColor=none;fillColor=none;whiteSpace=wrap;verticalAlign=top;labelPosition=center;verticalLabelPosition=top;align=center;");
tf.vertex=!0;v.insert(tf);v.style+=q(a.Title,t)}catch(bb){console.log(bb)}Fe(v,a);Bc(v,a,n);a.Hidden&&(v.visible=!1);return v}function Fe(f,p){if(p.Text_TRotation||p.TextRotation)try{var n=mxUtils.toDegree(p.Text_TRotation||0)+mxUtils.toDegree(p.TextRotation||0);if(!isNaN(n)&&0!=n&&f.value){var e=f.geometry.width,a=f.geometry.height,C=e,d=a,c=0,N=0;if(-90==n||-270==n){C=a;d=e;var R=(a-e)/2;c=-R/e;N=R/a}n+=mxUtils.toDegree(p.Rotation);var J=f.style.split(";").filter(function(ca){return 0>ca.indexOf("fillColor=")&&
0>ca.indexOf("strokeColor=")&&0>ca.indexOf("rotation=")}).join(";"),oa=new mxCell(f.value,new mxGeometry(c,N,C,d),J+"fillColor=none;strokeColor=none;rotation="+n+";");f.value=null;oa.geometry.relative=!0;oa.vertex=!0;f.insert(oa)}}catch(ca){console.log(ca)}}function Ie(f,p,n,e,a){function C(Gb,Vb){var Sa="";try{for(var kb=0;kb<Gb.text.length;kb++){var Kc=Gb.text[kb];if(Kc[0]=="t_"+Vb){for(var Cc in Kc[1]){var Dc=Kc[1][Cc];if(Dc)switch(Cc){case "font":Sa+=z(Dc);break;case "bold":Sa+="font-weight: bold;";
break;case "italic":Sa+="font-style: italic;";break;case "underline":Sa+="text-decoration: underline;";break;case "size":Sa+="font-size:"+B(.75*Dc)+"px;";break;case "color":Sa+="color:"+Z(Dc).substring(0,7)+";";break;case "fill":Sa+="background-color:"+Z(Dc).substring(0,7)+";";break;case "align":Sa+="text-align:"+Dc+";"}}break}}}catch(Qd){}return Sa}try{var d=function(Gb,Vb,Sa){Gb=sa+Gb;ka[Gb]=Vb;Vb="";for(var kb=0;kb<J.length;kb++)Vb+='<div style="'+fa[kb]+'">'+(Sa[J[kb]]||"&nbsp;")+"</div>";kb=
mxUtils.getSizeForString(Vb);Sa=u(Sa.Image||Sa["018__ImageUrl__"])||"https://cdn4.iconfinder.com/data/icons/basic-user-interface-elements/700/user-account-profile-human-avatar-face-head--128.png";Sa=new mxCell(Vb,new mxGeometry(0,0,kb.width+ta,kb.height+Ka),ma+(ua?Sa:""));Sa.vertex=!0;a[Gb]=Sa;e.addCell(Sa,R)},c=p.OrgChartBlockType,N=p.Location,R=new mxCell("",new mxGeometry(.75*N.x,.75*N.y,200,100),"group");R.vertex=!0;e.addCell(R);var J=p.FieldNames,oa=p.LayoutSettings,ca=p.BlockItemDefaultStyle||
{props:{}},ea=p.EdgeItemDefaultStyle,ka={},sa=(f||Date.now())+"_";4==c&&(ca.props.LineWidth=0);var fa=[],ta=25,Ka=40,ua=!0,ma=h("",ca.props,{},R,!0);0==c?(ma+="spacingTop=54;imageWidth=54;imageHeight=54;imageAlign=center;imageVerticalAlign=top;image=",Ka+=54):1==c||2==c?(ma+="spacingLeft=54;imageWidth=50;imageHeight=50;imageAlign=left;imageVerticalAlign=top;image=",ta+=54):3<=c&&(ua=!1);for(f=0;f<J.length;f++)fa.push(C(ca,J[f]));if(n.Items)for(var Ea=n.Items.n,Ba=0;Ba<Ea.length;Ba++){var Ca=Ea[Ba];
d(Ca.pk,Ca.ie[0]?Ca.ie[0].nf:null,Ca.f)}else{var b=p.ContractMap.derivative;if(null==b){var za=p.ContractMap.c.People;var Wa=za.id;Wa=Wa.substr(0,Wa.lastIndexOf("_"));for(f=0;f<J.length;f++)J[f]=za.f[J[f]]||J[f]}else for(Ba=0;Ba<b.length;Ba++)if("ForeignKeyGraph"==b[Ba].type)Wa=b[Ba].c[0].id,Wa=Wa.substr(0,Wa.lastIndexOf("_"));else if("MappedGraph"==b[Ba].type)for(f=0;f<J.length;f++)J[f]=b[Ba].nfs[J[f]]||J[f];var wa;for(wa in n){Ca=n[wa].Collections;for(var Ia in Ca)if(Ia==Wa)Ea=Ca[Ia].Items;else if(Ca[Ia].Properties.ForeignKeys&&
Ca[Ia].Properties.ForeignKeys[0]){var da=Ca[Ia].Properties.ForeignKeys[0].SourceFields[0];var Da=Ca[Ia].Properties.Schema.PrimaryKey[0]}if(Ea)break}p={};for(var qa in Ea){Ca=Ea[qa];var ra=Ca[Da],Lb=Ca[da];ra==Lb?(p[ra]=ra+Date.now(),ra=p[ra],Ca[Da]=ra,d(ra,Lb,Ca)):d(ra,p[Lb]||Lb,Ca)}}for(wa in ka){var X=ka[wa];if(null!=X){var rb=a[sa+X],Oa=a[wa];if(null!=rb&&null!=Oa){var mc=new mxCell("",new mxGeometry(0,0,100,100),"");mc.geometry.relative=!0;mc.edge=!0;null!=ea&&null!=ea.props&&Ld(mc,ea.props,e,
null,null,!0);e.addCell(mc,R,null,rb,Oa)}}}var rc=.75*oa.NodeSpacing.LevelSeparation;(new mxOrgChartLayout(e,0,rc,.75*oa.NodeSpacing.NeighborSeparation)).execute(R);for(Ba=oa=d=0;R.children&&Ba<R.children.length;Ba++){var Ab=R.children[Ba].geometry;d=Math.max(d,Ab.x+Ab.width);oa=Math.max(oa,Ab.y+Ab.height)}var Mb=R.geometry;Mb.y-=rc;Mb.width=d;Mb.height=oa}catch(Gb){LucidImporter.hasUnknownShapes=!0,LucidImporter.hasOrgChart=!0,console.log(Gb)}}var sc=0,tc=0,ee="text;html=1;resizable=0;labelBackgroundColor=default;align=center;verticalAlign=middle;",
t=!1,gb="",uf=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],vf=["fpDoor"],Ce={None:"none;",Arrow:"block;xyzFill=1;","Hollow Arrow":"block;xyzFill=0;","Open Arrow":"open;","CFN ERD Zero Or More Arrow":"ERzeroToMany;xyzSize=10;","CFN ERD One Or More Arrow":"ERoneToMany;xyzSize=10;","CFN ERD Many Arrow":"ERmany;xyzSize=10;","CFN ERD Exactly One Arrow":"ERmandOne;xyzSize=10;","CFN ERD Zero Or One Arrow":"ERzeroToOne;xyzSize=10;","CFN ERD One Arrow":"ERone;xyzSize=16;",
Generalization:"block;xyzFill=0;xyzSize=12;","Big Open Arrow":"open;xyzSize=10;",Asynch1:"openAsync;flipV=1;xyzSize=10;",Asynch2:"openAsync;xyzSize=10;",Aggregation:"diamond;xyzFill=0;xyzSize=16;",Composition:"diamond;xyzFill=1;xyzSize=16;",BlockEnd:"box;xyzFill=0;xyzSize=16;",Measure:"ERone;xyzSize=10;",CircleOpen:"oval;xyzFill=0;xyzSize=16;",CircleClosed:"oval;xyzFill=1;xyzSize=16;",BlockEndFill:"box;xyzFill=1;xyzSize=16;",Nesting:"circlePlus;xyzSize=7;xyzFill=0;","BPMN Conditional":"diamond;xyzFill=0;",
"BPMN Default":"dash;"},Jd={DefaultTextBlockNew:"strokeColor=none;fillColor=none",DefaultTextBlock:"strokeColor=none;fillColor=none",DefaultSquareBlock:"",RectangleBlock:"",DefaultNoteBlock:"shape=note;size=15",DefaultNoteBlockV2:"shape=note;size=15",HotspotBlock:"strokeColor=none;fillColor=none",ImageSearchBlock2:"shape=image",UserImage2Block:"shape=image",ExtShapeBoxBlock:"",DefaultStickyNoteBlock:"shadow=1",ProcessBlock:"",DecisionBlock:"rhombus",TerminatorBlock:"rounded=1;arcSize=50",PredefinedProcessBlock:"shape=process",
"BPMN Default":"dash;"},Md={DefaultTextBlockNew:"strokeColor=none;fillColor=none",DefaultTextBlock:"strokeColor=none;fillColor=none",DefaultSquareBlock:"",RectangleBlock:"",DefaultNoteBlock:"shape=note;size=15",DefaultNoteBlockV2:"shape=note;size=15",HotspotBlock:"strokeColor=none;fillColor=none",ImageSearchBlock2:"shape=image",UserImage2Block:"shape=image",ExtShapeBoxBlock:"",DefaultStickyNoteBlock:"shadow=1",ProcessBlock:"",DecisionBlock:"rhombus",TerminatorBlock:"rounded=1;arcSize=50",PredefinedProcessBlock:"shape=process",
DocumentBlock:"shape=document;boundedLbl=1",MultiDocumentBlock:"shape=mxgraph.flowchart.multi-document",ManualInputBlock:"shape=manualInput;size=15",PreparationBlock:"shape=hexagon;perimeter=hexagonPerimeter2",DataBlock:"shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0",DataBlockNew:"shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0",DatabaseBlock:"shape=cylinder3;size=4;anchorPointDirection=0;boundedLbl=1;",DirectAccessStorageBlock:"shape=cylinder3;direction=south;size=10;anchorPointDirection=0;boundedLbl=1;",
InternalStorageBlock:"mxCompositeShape",PaperTapeBlock:"shape=tape;size=0.2",ManualOperationBlockNew:"shape=trapezoid;perimeter=trapezoidPerimeter;anchorPointDirection=0;flipV=1",DelayBlock:"shape=delay",StoredDataBlock:"shape=cylinder3;boundedLbl=1;size=15;lid=0;direction=south;",MergeBlock:"triangle;direction=south;anchorPointDirection=0",ConnectorBlock:"ellipse",OrBlock:"shape=mxgraph.flowchart.summing_function",SummingJunctionBlock:"shape=mxgraph.flowchart.or",DisplayBlock:"shape=display",OffPageLinkBlock:"shape=offPageConnector",
BraceNoteBlock:"mxCompositeShape",NoteBlock:"mxCompositeShape",AdvancedSwimLaneBlock:"mxCompositeShape",AdvancedSwimLaneBlockRotated:"mxCompositeShape",RectangleContainerBlock:"container=1;pointerEvents=0;collapsible=0;recursiveResize=0;",DiamondContainerBlock:"shape=rhombus;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;",RoundedRectangleContainerBlock:"rounded=1;absoluteArcSize=1;arcSize=24;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;",CircleContainerBlock:"ellipse;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;",
@ -1044,98 +1045,155 @@ SMCalendar:"shape=mxgraph.sitemap.calendar;strokeColor=#000000;fillColor=#E6E6E6
SMGame:"shape=mxgraph.sitemap.game;strokeColor=#000000;fillColor=#E6E6E6",SMJobs:"shape=mxgraph.sitemap.jobs;strokeColor=#000000;fillColor=#E6E6E6",SMLucid:"shape=mxgraph.sitemap.home;strokeColor=#000000;fillColor=#E6E6E6",SMNewspress:"shape=mxgraph.sitemap.news;strokeColor=#000000;fillColor=#E6E6E6",SMPhoto:"shape=mxgraph.sitemap.photo;strokeColor=#000000;fillColor=#E6E6E6",SMPortfolio:"shape=mxgraph.sitemap.portfolio;strokeColor=#000000;fillColor=#E6E6E6",SMPricing:"shape=mxgraph.sitemap.pricing;strokeColor=#000000;fillColor=#E6E6E6",
SMProfile:"shape=mxgraph.sitemap.profile;strokeColor=#000000;fillColor=#E6E6E6",SMSlideshow:"shape=mxgraph.sitemap.slideshow;strokeColor=#000000;fillColor=#E6E6E6",SMUpload:"shape=mxgraph.sitemap.upload;strokeColor=#000000;fillColor=#E6E6E6",SVGPathBlock2:"mxCompositeShape",PresentationFrameBlock:"mxCompositeShape",TimelineBlock:"mxCompositeShape",TimelineMilestoneBlock:"mxCompositeShape",TimelineIntervalBlock:"mxCompositeShape",MinimalTextBlock:"strokeColor=none;fillColor=none",FreehandBlock:"mxCompositeShape",
ExtShapeLaptopBlock:"strokeColor=none;shape=mxgraph.citrix.laptop_2;verticalLabelPosition=bottom;verticalAlign=top",ExtShapeServerBlock:"strokeColor=none;shape=mxgraph.citrix.tower_server;verticalLabelPosition=bottom;verticalAlign=top",ExtShapeCloudBlock:"strokeColor=none;shape=mxgraph.citrix.cloud;verticalLabelPosition=bottom;verticalAlign=top",ExtShapeUserBlock:"strokeColor=none;shape=mxgraph.aws3d.end_user;verticalLabelPosition=bottom;verticalAlign=top;fillColor=#073763",ExtShapeWorkstationLCDBlock:"strokeColor=none;shape=mxgraph.veeam.3d.workstation;verticalLabelPosition=bottom;verticalAlign=top",
InfographicsBlock:"mxCompositeShape",FlexiblePolygonBlock:"mxCompositeShape",PersonRoleBlock:"mxCompositeShape"},wf=RegExp("{{(date{.*}|[^%^{^}]+)}}","g");Ld.prototype.getSize=function(){return(this.nurbsValues.length/4|0)-1};Ld.prototype.getX=function(f){return Math.round(100*this.nurbsValues[4*(f+1)])/100};Ld.prototype.getY=function(f){return Math.round(100*this.nurbsValues[4*(f+1)+1])/100};LucidImporter.importState=function(f,n,m){function e(c){null!=c.state&&EditorUi.debug("convertLucidChart addPages",
c);if(c.Properties){for(var G in c.Properties)"Stencil-"==G.substr(0,8)&&Je(G.substr(8),c.Properties[G]);LucidImporter.globalProps=c.Properties}for(var I in c.Pages)G=c.Pages[I],G.id=I,G.Data=c.Data,a.push(G);a.sort(function(C,ba){return C.Properties.Order<ba.Properties.Order?-1:C.Properties.Order>ba.Properties.Order?1:0});for(c=0;c<a.length;c++)LucidImporter.pageIdsMap[a[c].id]=c}oc=nc=0;LucidImporter.stencilsMap={};LucidImporter.imgSrcRepl=n;LucidImporter.advImpConfig=m;LucidImporter.globalProps=
{};LucidImporter.pageIdsMap={};LucidImporter.hasUnknownShapes=!1;LucidImporter.hasOrgChart=!1;LucidImporter.hasTimeLine=!1;LucidImporter.hasExtImgs=!1;LucidImporter.lucidchartObjects={};n=['<?xml version="1.0" encoding="UTF-8"?>','<mxfile type="Lucidchart-Import" version="'+EditorUi.VERSION+'" host="'+mxUtils.htmlEntities(window.location.hostname)+'" agent="'+mxUtils.htmlEntities(navigator.appVersion)+'" modified="'+mxUtils.htmlEntities((new Date).toISOString())+'">'];m&&m.transparentEdgeLabels&&
(ce=ce.replace("labelBackgroundColor=default;","labelBackgroundColor=none;"));var a=[];null!=f.state?e(JSON.parse(f.state)):null==f.Page&&null!=f.Pages?e(f):a.push(f);f=Cf();m=new mxCodec;for(var y=0;y<a.length;y++){n.push("<diagram");null!=a[y].Properties&&null!=a[y].Properties.Title&&n.push(' name="'+mxUtils.htmlEntities(a[y].Properties.Title)+'"');n.push(' id="'+y+'"');yf(f,a[y],!0);var d=m.encode(f.getModel());null!=a[y].Properties&&(a[y].Properties.FillColor&&"#ffffff"!=a[y].Properties.FillColor&&
d.setAttribute("background",Pa(a[y].Properties.FillColor)),a[y].Properties.InfiniteCanvas?d.setAttribute("page",0):null!=a[y].Properties.Size&&(d.setAttribute("page",1),d.setAttribute("pageWidth",.75*a[y].Properties.Size.w),d.setAttribute("pageHeight",.75*a[y].Properties.Size.h)),null!=a[y].Properties.GridSpacing&&(d.setAttribute("grid",1),d.setAttribute("gridSize",.75*a[y].Properties.GridSpacing)));LucidImporter.hasMath&&d.setAttribute("math",1);f.getModel().clear();n.push(">"+Graph.compress(mxUtils.getXml(d))+
"</diagram>")}n.push("</mxfile>");LucidImporter.imgSrcRepl=null;return n.join("")}})();function mxGraphMlCodec(){this.cachedRefObj={}}mxGraphMlCodec.prototype.refRegexp=/^\{y:GraphMLReference\s+(\d+)\}$/;mxGraphMlCodec.prototype.staticRegexp=/^\{x:Static\s+(.+)\.(.+)\}$/;
mxGraphMlCodec.prototype.decode=function(r,w,x){try{var z=mxUtils.parseXml(r),k=this.getDirectChildNamedElements(z.documentElement,mxGraphMlConstants.GRAPH);this.initializeKeys(z.documentElement);r='<?xml version="1.0" encoding="UTF-8"?><mxfile>';for(z=0;z<k.length;z++){var t=k[z],u=this.createMxGraph(),p=u.getModel();p.beginUpdate();try{for(this.nodesMap={},this.edges=[],this.importGraph(t,u,u.getDefaultParent()),z=0;z<this.edges.length;z++)for(var h=this.edges[z],D=h.edges,A=h.parent,N=h.dx,E=h.dy,
L=0;L<D.length;L++)this.importEdge(D[L],u,A,N,E)}catch(Eb){throw console.log(Eb),Eb;}finally{p.endUpdate()}p.beginUpdate();try{var X=u.getModel().cells,Oa;for(Oa in X){var wa=X[Oa];if(wa.edge&&0<wa.getChildCount())for(z=0;z<wa.getChildCount();z++){var Ka=wa.children[z].geometry;if(Ka.adjustIt){var Va=u.view.getState(wa),Fa=Va.absolutePoints,Ca=Fa[0],Ga=Fa[Fa.length-1],qa=Ka.x,U=Ka.y;N=Ga.x-Ca.x;E=Ga.y-Ca.y;var Gd=Ca.x+qa*N,Hd=Ca.y+qa*E,Xa=Math.sqrt(N*N+E*E);N/=Xa;E/=Xa;Gd-=U*E;Hd+=U*N;var mc=u.view.getRelativePoint(Va,
Gd,Hd);Ka.x=mc.x;Ka.y=mc.y}}}}catch(Eb){throw console.log(Eb),Eb;}finally{p.endUpdate()}r+=this.processPage(u,z+1)}w&&w(r+"</mxfile>")}catch(Eb){x&&x(Eb)}};
mxGraphMlCodec.prototype.initializeKeys=function(r){var w=this.getDirectChildNamedElements(r,mxGraphMlConstants.KEY);this.nodesKeys={};this.edgesKeys={};this.portsKeys={};this.sharedData={};this.nodesKeys[mxGraphMlConstants.NODE_GEOMETRY]={};this.nodesKeys[mxGraphMlConstants.USER_TAGS]={};this.nodesKeys[mxGraphMlConstants.NODE_STYLE]={};this.nodesKeys[mxGraphMlConstants.NODE_LABELS]={};this.nodesKeys[mxGraphMlConstants.NODE_GRAPHICS]={};this.edgesKeys[mxGraphMlConstants.EDGE_GEOMETRY]={};this.edgesKeys[mxGraphMlConstants.EDGE_STYLE]=
{};this.edgesKeys[mxGraphMlConstants.EDGE_LABELS]={};this.portsKeys[mxGraphMlConstants.PORT_LOCATION_PARAMETER]={};this.portsKeys[mxGraphMlConstants.PORT_STYLE]={};this.portsKeys[mxGraphMlConstants.PORT_VIEW_STATE]={};for(var x,z=0;z<w.length;z++){var k=this.dataElem2Obj(w[z]),t=k[mxGraphMlConstants.ID],u=k[mxGraphMlConstants.KEY_FOR],p=k[mxGraphMlConstants.KEY_NAME],h=k[mxGraphMlConstants.KEY_YTYPE];p==mxGraphMlConstants.SHARED_DATA&&(x=t);p=p?p:h;switch(u){case mxGraphMlConstants.NODE:this.nodesKeys[p]=
{key:t,keyObj:k};break;case mxGraphMlConstants.EDGE:this.edgesKeys[p]={key:t,keyObj:k};break;case mxGraphMlConstants.PORT:this.portsKeys[p]={key:t,keyObj:k};break;case mxGraphMlConstants.ALL:k={key:t,keyObj:k},this.nodesKeys[p]=k,this.edgesKeys[p]=k,this.portsKeys[p]=k}}r=this.getDirectChildNamedElements(r,mxGraphMlConstants.DATA);for(z=0;z<r.length;z++)if(r[z].getAttribute(mxGraphMlConstants.KEY)==x)for(u=this.getDirectChildNamedElements(r[z],mxGraphMlConstants.Y_SHARED_DATA),w=0;w<u.length;w++)for(p=
this.getDirectChildElements(u[w]),k=0;k<p.length;k++)t=p[k].getAttribute(mxGraphMlConstants.X_KEY),this.sharedData[t]=p[k];else for(u=this.getDirectChildNamedElements(r[z],mxGraphMlConstants.Y_RESOURCES),w=0;w<u.length;w++)for(p=this.getDirectChildElements(u[w]),k=0;k<p.length;k++)t=p[k].getAttribute(mxGraphMlConstants.ID),this.sharedData[t]=p[k]};
mxGraphMlCodec.prototype.parseAttributes=function(r,w){if(r=r.attributes)for(var x=0;x<r.length;x++){var z=r[x].nodeValue,k=this.refRegexp.exec(z),t=this.staticRegexp.exec(z);k?(z=k[1],k=this.cachedRefObj[z],k||(k={},k[this.sharedData[z].nodeName]=this.dataElem2Obj(this.sharedData[z]),this.cachedRefObj[z]=k),w[r[x].nodeName]=k):t?(w[r[x].nodeName]={},w[r[x].nodeName][t[1]]=t[2]):w[r[x].nodeName]=z}};
mxGraphMlCodec.prototype.dataElem2Obj=function(r){var w=this.getDirectFirstChildNamedElements(r,mxGraphMlConstants.GRAPHML_REFERENCE)||r.getAttribute(mxGraphMlConstants.REFID),x=null,z=r,k={};if(w){x="string"===typeof w?w:w.getAttribute(mxGraphMlConstants.RESOURCE_KEY);if(w=this.cachedRefObj[x])return this.parseAttributes(r,w),w;r=this.sharedData[x]}this.parseAttributes(r,k);for(w=0;w<r.childNodes.length;w++){var t=r.childNodes[w];if(1==t.nodeType){var u=t.nodeName;if(u==mxGraphMlConstants.X_LIST){var p=
[];t=this.getDirectChildElements(t);for(var h=0;h<t.length;h++)u=t[h].nodeName,p.push(this.dataElem2Obj(t[h]));k[u]=p}else u==mxGraphMlConstants.X_STATIC?(u=t.getAttribute(mxGraphMlConstants.MEMBER),p=u.lastIndexOf("."),k[u.substr(0,p)]=u.substr(p+1)):(p=u.lastIndexOf("."),0<p&&(u=u.substr(p+1)),null!=k[u]?(k[u]instanceof Array||(k[u]=[k[u]]),k[u].push(this.dataElem2Obj(t))):k[u]=this.dataElem2Obj(t))}else 3!=t.nodeType&&4!=t.nodeType||!t.textContent.trim()||(k["#text"]=t.textContent)}return x?(r=
{},this.parseAttributes(z,r),r[this.sharedData[x].nodeName]=k,this.cachedRefObj[x]=r):k};mxGraphMlCodec.prototype.mapArray=function(r,w,x){for(var z={},k=0;k<r.length;k++)r[k].name&&(z[r[k].name]=r[k].value||r[k]);this.mapObject(z,w,x)};
mxGraphMlCodec.prototype.mapObject=function(r,w,x){if(w.defaults)for(var z in w.defaults)x[z]=w.defaults[z];for(z in w){for(var k=z.split("."),t=r,u=0;u<k.length&&t;u++)t=t[k[u]];null==t&&r&&(t=r[z]);if(null!=t)if(k=w[z],"string"===typeof t)if("string"===typeof k)x[k]=t.toLowerCase();else if("object"===typeof k){u=t.toLowerCase();switch(k.mod){case "color":0==t.indexOf("#")&&9==t.length?u="#"+t.substr(3)+t.substr(1,2):"TRANSPARENT"==t&&(u="none");break;case "shape":u=mxGraphMlShapesMap[t.toLowerCase()];
break;case "bpmnOutline":u=mxGraphMlShapesMap.bpmnOutline[t.toLowerCase()];break;case "bpmnSymbol":u=mxGraphMlShapesMap.bpmnSymbol[t.toLowerCase()];break;case "bool":u="true"==t?"1":"0";break;case "scale":try{u=parseFloat(t)*k.scale}catch(p){}break;case "arrow":u=mxGraphMlArrowsMap[t]}null!=u&&(x[k.key]=u)}else k(t,x);else t instanceof Array?this.mapArray(t,k,x):null!=t.name&&null!=t.value?this.mapArray([t],k,x):this.mapObject(t,k,x)}};mxGraphMlCodec.prototype.createMxGraph=function(){return new mxGraph};
mxGraphMlCodec.prototype.importGraph=function(r,w,x){for(var z=this.getDirectChildNamedElements(r,mxGraphMlConstants.NODE),k=x,t=0,u=0;k&&k.geometry;)t+=k.geometry.x,u+=k.geometry.y,k=k.parent;for(k=0;k<z.length;k++)this.importNode(z[k],w,x,t,u);this.edges.push({edges:this.getDirectChildNamedElements(r,mxGraphMlConstants.EDGE),parent:x,dx:t,dy:u})};
mxGraphMlCodec.prototype.importPort=function(r,w){var x=r.getAttribute(mxGraphMlConstants.PORT_NAME),z={};r=this.getDirectChildNamedElements(r,mxGraphMlConstants.DATA);for(var k=0;k<r.length;k++){var t=r[k];t.getAttribute(mxGraphMlConstants.KEY);t=this.dataElem2Obj(t);t.key==this.portsKeys[mxGraphMlConstants.PORT_LOCATION_PARAMETER].key&&this.mapObject(t,{"y:FreeNodePortLocationModelParameter.Ratio":function(u,p){u=u.split(",");p.pos={x:u[0],y:u[1]}}},z)}w[x]=z};
mxGraphMlCodec.prototype.styleMap2Str=function(r){var w="",x="",z;for(z in r)x+=w+z+"="+r[z],w=";";return x};
mxGraphMlCodec.prototype.importNode=function(r,w,x,z,k){var t=this.getDirectChildNamedElements(r,mxGraphMlConstants.DATA),u=r.getAttribute(mxGraphMlConstants.ID),p=new mxCell;p.vertex=!0;p.geometry=new mxGeometry(0,0,30,30);w.addCell(p,x);x={graphMlID:u};for(var h=null,D=null,A=null,N=null,E=0;E<t.length;E++){var L=this.dataElem2Obj(t[E]);if(L.key)if(L.key==this.nodesKeys[mxGraphMlConstants.NODE_GEOMETRY].key)this.addNodeGeo(p,L,z,k);else if(L.key==this.nodesKeys[mxGraphMlConstants.USER_TAGS].key)A=
L;else if(L.key==this.nodesKeys[mxGraphMlConstants.NODE_STYLE].key)h=L,L["yjs:StringTemplateNodeStyle"]?D=L["yjs:StringTemplateNodeStyle"]["#text"]:this.addNodeStyle(p,L,x);else if(L.key==this.nodesKeys[mxGraphMlConstants.NODE_LABELS].key)N=L;else if(L.key==this.nodesKeys[mxGraphMlConstants.NODE_GRAPHICS].key){var X=h=null;for(X in L)if("key"!=X&&"#text"!=X){if("y:ProxyAutoBoundsNode"==X){if(X=L[X]["y:Realizers"])for(var Oa in X)if("active"!=Oa&&"#text"!=Oa){h=X[Oa][X.active];L={};L[Oa]=h;break}}else h=
L[X];break}h&&(h[mxGraphMlConstants.GEOMETRY]&&this.addNodeGeo(p,h[mxGraphMlConstants.GEOMETRY],z,k),h[mxGraphMlConstants.NODE_LABEL]&&(N=h[mxGraphMlConstants.NODE_LABEL]));h=L;this.addNodeStyle(p,L,x)}}k=this.getDirectChildNamedElements(r,mxGraphMlConstants.PORT);z={};for(E=0;E<k.length;E++)this.importPort(k[E],z);D&&this.handleTemplates(D,A,p,x);this.handleFixedRatio(p,x);this.handleCompoundShape(p,x,h,null);0==x.strokeWidth&&(x.strokeColor="none");p.style=this.styleMap2Str(x);r=this.getDirectChildNamedElements(r,
mxGraphMlConstants.GRAPH);for(E=0;E<r.length;E++)this.importGraph(r[E],w,p,z);N&&this.addLabels(p,N,x,w);this.nodesMap[u]={node:p,ports:z}};
mxGraphMlCodec.prototype.addNodeStyle=function(r,w,x){r=function(qa,U){if("line"!=qa){U.dashed=1;switch(qa){case "DashDot":qa="3 1 1 1";break;case "Dot":qa="1 1";break;case "DashDotDot":qa="3 1 1 1 1 1";break;case "Dash":qa="3 1";break;case "dotted":qa="1 3";break;case "dashed":qa="5 2";break;default:qa=qa.replace(/0/g,"1")}qa&&(0>qa.indexOf(" ")&&(qa=qa+" "+qa),U.dashPattern=qa)}};r={shape:{key:"shape",mod:"shape"},"y:Shape.type":{key:"shape",mod:"shape"},configuration:{key:"shape",mod:"shape"},
type:{key:"shape",mod:"shape"},assetName:{key:"shape",mod:"shape"},activityType:{key:"shape",mod:"shape"},fill:{key:"fillColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"fillColor",mod:"color"},"fill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"y:Fill":{color:{key:"fillColor",mod:"color"},transparent:function(qa,U){"true"==qa&&(U.fillColor="none")}},"y:BorderStyle":{color:{key:"strokeColor",mod:"color"},width:"strokeWidth",hasColor:function(qa,U){"false"==qa&&
(U.strokeColor="none")},type:r},stroke:{key:"strokeColor",mod:"color"},"stroke.yjs:Stroke":{dashStyle:r,"dashStyle.yjs:DashStyle.dashes":r,fill:{key:"strokeColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"strokeColor",mod:"color"},"thickness.sys:Double":"strokeWidth",thickness:"strokeWidth"}};var z=mxUtils.clone(r);z.defaults={fillColor:"#CCCCCC",strokeColor:"#6881B3"};var k=mxUtils.clone(r);k.defaults={shape:"ext;rounded=1",fillColor:"#FFFFFF",strokeColor:"#000090"};var t=mxUtils.clone(r);
t.defaults={shape:"rhombus;fillColor=#FFFFFF;strokeColor=#FFCD28"};var u=mxUtils.clone(r);u.defaults={shape:"hexagon",strokeColor:"#007000"};var p=mxUtils.clone(r);p.defaults={shape:"mxgraph.bpmn.shape;perimeter=ellipsePerimeter;symbol=general",outline:"standard"};p.characteristic={key:"outline",mod:"bpmnOutline"};var h=mxUtils.clone(r);h.defaults={shape:"js:bpmnDataObject"};var D=mxUtils.clone(r);D.defaults={shape:"datastore"};var A=mxUtils.clone(r);A.defaults={shape:"swimlane;swimlaneLine=0;startSize=20;dashed=1;dashPattern=3 1 1 1;collapsible=0;rounded=1"};
var N=mxUtils.clone(r);N.defaults={shape:"js:BpmnChoreography"};var E=mxUtils.clone(r);E.defaults={rounded:"1",glass:"1",strokeColor:"#FFFFFF"};E.inset="strokeWidth";E.radius="arcSize";E.drawShadow={key:"shadow",mod:"bool"};E.color={key:"fillColor",mod:"color",addGradient:"north"};E["color.yjs:Color.value"]=E.color;var L=mxUtils.clone(r);L.defaults={rounded:"1",arcSize:10,glass:"1",shadow:"1",strokeColor:"none"};L.drawShadow={key:"shadow",mod:"bool"};var X=mxUtils.clone(r);X.defaults={shape:"swimlane",
startSize:20,strokeWidth:4,spacingLeft:10};X.isCollapsible={key:"collapsible",mod:"bool"};X.borderColor={key:"strokeColor",mod:"color"};X.folderFrontColor={key:"fillColor",mod:"color"};var Oa=mxUtils.clone(r);Oa.defaults={shape:"swimlane",startSize:20,spacingLeft:10};Oa["yjs:PanelNodeStyle"]={color:{key:"swimlaneFillColor",mod:"color"},"color.yjs:Color.value":{key:"swimlaneFillColor",mod:"color"},labelInsetsColor:{key:"fillColor",mod:"color"},"labelInsetsColor.yjs:Color.value":{key:"fillColor",mod:"color"}};
var wa=mxUtils.clone(r);wa.defaults={shape:"js:table"};var Ka=mxUtils.clone(r);Ka.defaults={shape:"image"};Ka.image=function(qa,U){U.image=qa};var Va=mxUtils.clone(r);Va.defaults={shape:"image"};Va["y:SVGModel.y:SVGContent.y:Resource.#text"]=function(qa,U){U.image="data:image/svg+xml,"+(window.btoa?btoa(qa):Base64.encode(qa))};var Fa=mxUtils.clone(r);Fa.defaults={shape:"swimlane",startSize:20};Fa["y:Shape.type"]=function(qa,U){"roundrectangle"==qa&&(U.rounded=1,U.arcSize=5)};var Ca=mxUtils.clone(r);
Ca.defaults={shape:"js:table2"};var Ga=mxUtils.clone(r);Ga.defaults={gradientDirection:"east"};Ga["y:Fill"].color2={key:"gradientColor",mod:"color"};Ga["y:StyleProperties.y:Property"]={"com.yworks.bpmn.characteristic":{key:"outline",mod:"bpmnOutline"},"com.yworks.bpmn.icon.fill":{key:"gradientColor",mod:"color"},"com.yworks.bpmn.icon.fill2":{key:"fillColor",mod:"color"},"com.yworks.bpmn.type":{key:"symbol",mod:"bpmnSymbol"},"y.view.ShadowNodePainter.SHADOW_PAINTING":{key:"shadow",mod:"bool"},doubleBorder:{key:"double",
mod:"bool"},"com.yworks.sbgn.style.radius":{key:"arcSize",mod:"scale",scale:2},"com.yworks.sbgn.style.inverse":{key:"flipV",mod:"bool"}};this.mapObject(w,{"yjs:ShapeNodeStyle":r,"demostyle:FlowchartNodeStyle":r,"demostyle:AssetNodeStyle":z,"bpmn:ActivityNodeStyle":k,"bpmn:GatewayNodeStyle":t,"bpmn:ConversationNodeStyle":u,"bpmn:EventNodeStyle":p,"bpmn:DataObjectNodeStyle":h,"bpmn:DataStoreNodeStyle":D,"bpmn:GroupNodeStyle":A,"bpmn:ChoreographyNodeStyle":N,"yjs:BevelNodeStyle":E,"yjs:ShinyPlateNodeStyle":L,
"demostyle:DemoGroupStyle":X,"yjs:CollapsibleNodeStyleDecorator":Oa,"bpmn:PoolNodeStyle":wa,"yjs:TableNodeStyle":wa,"demotablestyle:DemoTableStyle":wa,"yjs:ImageNodeStyle":Ka,"y:ShapeNode":r,"y:GenericNode":Ga,"y:GenericGroupNode":Ga,"y:TableNode":Ca,"y:SVGNode":Va,"y:GroupNode":Fa},x)};
mxGraphMlCodec.prototype.handleTemplates=function(r,w,x,z){if(r){var k=x.geometry.width,t=x.geometry.height;x='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+k+" "+t+'"><g>';for(var u,p=[],h=/\{TemplateBinding\s+([^}]+)\}/g;null!=(u=h.exec(r));){var D="";switch(u[1]){case "width":D=k;break;case "height":D=t}p.push({match:u[0],repl:D})}if(w&&w["y:Json"])for(w=JSON.parse(w["y:Json"]["#text"]),k=/\{Binding\s+([^}]+)\}/g;null!=(u=k.exec(r));)if(t=u[1].split(","),
h=w[t[0]])1<t.length&&t[1].indexOf("Converter=")&&(D=mxGraphMlConverters[t[1].substr(11)])&&(h=[h],t[2]&&h.push(t[2].substr(11)),h=D.apply(null,h)),p.push({match:u[0],repl:mxUtils.htmlEntities(h)});for(u=0;u<p.length;u++)r=r.replace(p[u].match,p[u].repl);p=[];for(w=/<text.+data-content="([^"]+).+<\/text>/g;null!=(u=w.exec(r));)h=u[0].substr(0,u[0].length-7)+u[1]+"</text>",p.push({match:u[0],repl:h});for(u=0;u<p.length;u++)r=r.replace(p[u].match,p[u].repl);r=x+r+"</g></svg>";z.shape="image";z.image=
"data:image/svg+xml,"+(window.btoa?btoa(r):Base64.encode(r))}};
mxGraphMlCodec.prototype.handleCompoundShape=function(r,w,x,z){var k=w.shape;if(k&&0==k.indexOf("js:")){switch(k){case "js:bpmnArtifactShadow":w.shadow="1";case "js:bpmnArtifact":w.shape=w.symbol;delete w.fillColor;delete w.strokeColor;delete w.gradientColor;this.handleCompoundShape(r,w,x,z);break;case "js:bpmnDataObjectShadow":case "js:bpmnDataObject":w.shape="note;size=16";x=x["bpmn:DataObjectNodeStyle"]||x["y:GenericNode"]||x["y:GenericGroupNode"];z={};this.mapObject(x,{"y:StyleProperties.y:Property":{"com.yworks.bpmn.dataObjectType":"dataObjectType",
"com.yworks.bpmn.marker1":"marker1"}},z);if("true"==x.collection||"bpmn_marker_parallel"==z.marker1){var t=new mxCell("",new mxGeometry(.5,1,10,10),"html=1;whiteSpace=wrap;shape=parallelMarker;");t.vertex=!0;t.geometry.relative=!0;t.geometry.offset=new mxPoint(-5,-10);r.insert(t)}if("INPUT"==x.type||"data_object_type_input"==z.dataObjectType)t=new mxCell("",new mxGeometry(0,0,10,10),"html=1;shape=singleArrow;arrowWidth=0.4;arrowSize=0.4;"),t.vertex=!0,t.geometry.relative=!0,t.geometry.offset=new mxPoint(2,
2),r.insert(t);else if("OUTPUT"==x.type||"data_object_type_output"==z.dataObjectType)t=new mxCell("",new mxGeometry(0,0,10,10),"html=1;shape=singleArrow;arrowWidth=0.4;arrowSize=0.4;fillColor=#000000;"),t.vertex=!0,t.geometry.relative=!0,t.geometry.offset=new mxPoint(2,2),r.insert(t);break;case "js:BpmnChoreography":this.mapObject(x,{defaults:{shape:"swimlane;collapsible=0;rounded=1",startSize:"20",strokeColor:"#006000",fillColor:"#CCCCCC"}},w);t=r.geometry;t=new mxCell("",new mxGeometry(0,t.height-
20,t.width,20),"strokeColor=#006000;fillColor=#777777;rounded=1");t.vertex=!0;r.insert(t);z&&z.lblTxts&&(r.value=z.lblTxts[0],t.value=z.lblTxts[1]);break;case "js:bpmnActivityShadow":case "js:bpmnActivity":w.shape="ext;rounded=1";z={};x=x["y:GenericNode"]||x["y:GenericGroupNode"];this.mapObject(x,{"y:StyleProperties.y:Property":{"com.yworks.bpmn.taskType":"taskType","com.yworks.bpmn.activityType":"activityType","com.yworks.bpmn.marker1":"marker1","com.yworks.bpmn.marker2":"marker2","com.yworks.bpmn.marker3":"marker3",
"com.yworks.bpmn.marker4":"marker4"}},z);switch(z.activityType){case "activity_type_transaction":w["double"]="1"}switch(z.taskType){case "task_type_send":var u=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;fillColor=#000000;strokeColor=#FFFFFF;");u.geometry.offset=new mxPoint(4,7);break;case "task_type_receive":u=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");u.geometry.offset=new mxPoint(4,7);break;case "task_type_user":u=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");
u.geometry.offset=new mxPoint(4,5);break;case "task_type_manual":u=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");u.geometry.offset=new mxPoint(4,7);break;case "task_type_business_rule":u=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");u.geometry.offset=new mxPoint(4,7);break;case "task_type_service":u=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");u.geometry.offset=new mxPoint(4,5);break;case "task_type_script":u=
new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),u.geometry.offset=new mxPoint(4,5)}u&&(u.vertex=!0,u.geometry.relative=!0,r.insert(u),u=null);var p=0;for(t=1;4>=t;t++)z["marker"+t]&&p++;x=-7.5*p-2*(p-1);for(t=1;t<=p;t++){switch(z["marker"+t]){case "bpmn_marker_closed":u=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");u.geometry.offset=new mxPoint(x,-20);break;case "bpmn_marker_open":u=new mxCell("",new mxGeometry(.5,1,15,15),"shape=rect;part=1;");u.geometry.offset=
new mxPoint(x,-20);var h=new mxCell("",new mxGeometry(.5,.5,8,1),"shape=rect;part=1;");h.geometry.offset=new mxPoint(-4,-1);h.geometry.relative=!0;h.vertex=!0;u.insert(h);break;case "bpmn_marker_loop":u=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");u.geometry.offset=new mxPoint(x,-20);break;case "bpmn_marker_parallel":u=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");u.geometry.offset=new mxPoint(x,-20);break;case "bpmn_marker_sequential":u=new mxCell("",
new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");u.geometry.offset=new mxPoint(x,-20);break;case "bpmn_marker_ad_hoc":u=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;fillColor=#000000");u.geometry.offset=new mxPoint(x,-17);break;case "bpmn_marker_compensation":u=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),u.geometry.offset=new mxPoint(x,-18)}u.geometry.relative=!0;u.vertex=!0;r.insert(u);
x+=20}break;case "js:table":w.shape="swimlane;collapsible=0;swimlaneLine=0";z=x["yjs:TableNodeStyle"]||x["demotablestyle:DemoTableStyle"];!z&&x["bpmn:PoolNodeStyle"]&&(z=x["bpmn:PoolNodeStyle"]["yjs:TableNodeStyle"]);this.mapObject(z,{"backgroundStyle.demotablestyle:TableBackgroundStyle":{"insetFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"tableBackgroundFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"swimlaneFillColor",mod:"color"},"tableBackgroundStroke.yjs:Stroke":{fill:{key:"strokeColor",
mod:"color"},thickness:"strokeWidth"}},"backgroundStyle.yjs:ShapeNodeStyle.fill":{key:"fillColor",mod:"color"},"backgroundStyle.yjs:ShapeNodeStyle.fill.yjs:SolidColorFill.color":{key:"fillColor",mod:"color"}},w);w.swimlaneFillColor=w.fillColor;z=z.table["y:Table"];var D=p=0,A={x:0};x=0;(t=z.Insets)?(t=t.split(","),"0"!=t[0]?(w.startSize=t[0],A.x=parseFloat(t[0]),w.horizontal="0"):"0"!=t[1]&&(w.startSize=t[1],x=parseFloat(t[1]),D+=x)):w.startSize="0";var N={},E={Insets:function(Oa,wa){wa.startSize=
Oa.split(",")[0]},"Style.bpmn:AlternatingLeafStripeStyle":{"evenLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"evenFill",mod:"color"},backgroundFill:{key:"evenLaneFill",mod:"color"}},"oddLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"oddFill",mod:"color"},backgroundFill:{key:"oddLaneFill",mod:"color"}}},"Style.yjs:NodeStyleStripeStyleAdapter":{"demotablestyle:DemoStripeStyle":{"stripeInsetFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"tableLineFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"strokeColor",
mod:"color"}},"yjs:ShapeNodeStyle":{fill:{key:"swimlaneFillColor",mod:"color"}}},Size:"height"};this.mapObject(z.RowDefaults,{defaults:{shape:"swimlane;collapsible=0;horizontal=0",startSize:"0"},"y:StripeDefaults":E},N);u={};h={Insets:function(Oa,wa){wa.startSize=Oa.split(",")[1]},"Style.bpmn:AlternatingLeafStripeStyle":{"evenLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"evenFill",mod:"color"},backgroundFill:{key:"evenLaneFill",mod:"color"}},"oddLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"oddFill",
mod:"color"},backgroundFill:{key:"oddLaneFill",mod:"color"}}},"Style.yjs:NodeStyleStripeStyleAdapter":{"demotablestyle:DemoStripeStyle":{"stripeInsetFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"tableLineFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"strokeColor",mod:"color"}},"yjs:ShapeNodeStyle":{fill:{key:"swimlaneFillColor",mod:"color"}}},Size:"width"};this.mapObject(z.ColumnDefaults,{defaults:{shape:"swimlane;collapsible=0",startSize:"0",fillColor:"none"},
"y:StripeDefaults":h},u);t=r.geometry;p=z.Rows["y:Row"];D+=parseFloat(u.startSize);var L=A.x,X=A.x;A.lx=A.x;if(p)for(p instanceof Array||(p=[p]),t=0;t<p.length;t++)A.x=X,A.lx=X,D=this.addRow(p[t],r,t&1,D,A,E,N),L=Math.max(A.x,L);z=z.Columns["y:Column"];p=L;if(z)for(z instanceof Array||(z=[z]),t=0;t<z.length;t++)p=this.addColumn(z[t],r,t&1,p,x,h,u);break;case "js:table2":w.shape="swimlane;collapsible=0;swimlaneLine=0";z={};this.mapObject(x,{"y:TableNode":{"y:StyleProperties.y:Property":{"yed.table.section.color":{key:"secColor",
InfographicsBlock:"mxCompositeShape",FlexiblePolygonBlock:"mxCompositeShape",PersonRoleBlock:"mxCompositeShape"},wf=RegExp("{{(date{.*}|[^%^{^}]+)}}","g");Od.prototype.getSize=function(){return(this.nurbsValues.length/4|0)-1};Od.prototype.getX=function(f){return Math.round(100*this.nurbsValues[4*(f+1)])/100};Od.prototype.getY=function(f){return Math.round(100*this.nurbsValues[4*(f+1)+1])/100};LucidImporter.importState=function(f,p,n){function e(c){null!=c.state&&EditorUi.debug("convertLucidChart addPages",
c);if(c.Properties){for(var N in c.Properties)"Stencil-"==N.substr(0,8)&&Je(N.substr(8),c.Properties[N]);LucidImporter.globalProps=c.Properties}for(var R in c.Pages)N=c.Pages[R],N.id=R,N.Data=c.Data,a.push(N);a.sort(function(J,oa){return J.Properties.Order<oa.Properties.Order?-1:J.Properties.Order>oa.Properties.Order?1:0});for(c=0;c<a.length;c++)LucidImporter.pageIdsMap[a[c].id]=c}tc=sc=0;LucidImporter.stencilsMap={};LucidImporter.imgSrcRepl=p;LucidImporter.advImpConfig=n;LucidImporter.globalProps=
{};LucidImporter.pageIdsMap={};LucidImporter.hasUnknownShapes=!1;LucidImporter.hasOrgChart=!1;LucidImporter.hasTimeLine=!1;LucidImporter.hasExtImgs=!1;LucidImporter.lucidchartObjects={};p=['<?xml version="1.0" encoding="UTF-8"?>','<mxfile type="Lucidchart-Import" version="'+EditorUi.VERSION+'" host="'+mxUtils.htmlEntities(window.location.hostname)+'" agent="'+mxUtils.htmlEntities(navigator.appVersion)+'" modified="'+mxUtils.htmlEntities((new Date).toISOString())+'">'];n&&n.transparentEdgeLabels&&
(ee=ee.replace("labelBackgroundColor=default;","labelBackgroundColor=none;"));var a=[];null!=f.state?e(JSON.parse(f.state)):null==f.Page&&null!=f.Pages?e(f):a.push(f);f=Cf();n=new mxCodec;for(var C=0;C<a.length;C++){p.push("<diagram");null!=a[C].Properties&&null!=a[C].Properties.Title&&p.push(' name="'+mxUtils.htmlEntities(a[C].Properties.Title)+'"');p.push(' id="'+C+'"');yf(f,a[C],!0);var d=n.encode(f.getModel());null!=a[C].Properties&&(a[C].Properties.FillColor&&"#ffffff"!=a[C].Properties.FillColor&&
d.setAttribute("background",P(a[C].Properties.FillColor)),a[C].Properties.InfiniteCanvas?d.setAttribute("page",0):null!=a[C].Properties.Size&&(d.setAttribute("page",1),d.setAttribute("pageWidth",.75*a[C].Properties.Size.w),d.setAttribute("pageHeight",.75*a[C].Properties.Size.h)),null!=a[C].Properties.GridSpacing&&(d.setAttribute("grid",1),d.setAttribute("gridSize",.75*a[C].Properties.GridSpacing)));LucidImporter.hasMath&&d.setAttribute("math",1);f.getModel().clear();p.push(">"+Graph.compress(mxUtils.getXml(d))+
"</diagram>")}p.push("</mxfile>");LucidImporter.imgSrcRepl=null;return p.join("")}})();mxMermaidToDrawio=function(u,z,B){function D(k,r){try{if(k instanceof Map&&Object.fromEntries&&(k=Object.fromEntries(k)),!r)for(var A in k)k[A]=D(k[A],!0)}catch(y){}return k}function l(k,r){if(null==k)return"";if(Array.isArray(k)){r=[];for(var A=0;A<k.length;A++)r.push(l(k[A]));return r.join("\n")}"object"==typeof k&&(k=(k.visibility||"")+k.id+(null!=k.parameters?"("+k.parameters+")":"")+(k.returnType?" : "+k.returnType:""));for(k=(k?k.replace(/\\n/g,"\n").replace(/<br\s*\/?>/gi,"\n"):"")+(r?"<"+
r+">":"");k&&(A=k.match(/~/g))&&1<A.length;)k=k[0]+k.substring(1).replace(/~(.+)~/g,"<$1>");return k}function x(k,r,A,y,E,S,G,Q,K,Z){return k.insertVertex(r,A,y,Math.round(E),Math.round(S),Math.round(G),Math.round(Q),K,Z)}function w(k,r,A,y){return x(y,A,null,l(r.labelText),r.x,r.y,r.width,r.height,k)}function q(k){var r=k.height;k.height=k.width;k.width=r;r=(r-k.height)/2;k.x-=r;k.y+=r}function h(k,r,A,y){y||(k.x-=k.width/2,k.y-=k.height/2);k.clusterNode&&(k.shape=k.clusterData.shape,k.labelText=
k.clusterData.labelText||k.clusterData.label,k.type=k.clusterData.type);switch(k.shape){case "class_box":case "classBox":var E=k.members||k.classData.members,S=k.methods||k.classData.methods,G=k.annotations||k.classData.annotations||[],Q="";for(y=0;y<G.length;y++)Q+="<<"+l(G[y])+">>\n";y=1+G.length/2+Math.max(E.length,.5)+Math.max(S.length,.5);var K=(k.height-8)/y;r=x(A,r,null,Q+l(k.labelText,k.type),k.x,k.y,k.width,k.height,"swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize="+
K*(1+G.length/2)+";horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;");Q=K+(0==E.length?K/2:0);for(y=0;y<E.length;y++)x(A,r,null,l(E[y]),0,Q,k.width,K,"text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),Q+=K;x(A,r,null,null,0,Q,k.width,0==S.length?K/2:8,"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;");
Q+=8;for(y=0;y<S.length;y++)x(A,r,null,l(S[y]),0,Q,k.width,K,"text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),Q+=K;break;case "note":r=w("align=left;spacingLeft=4;",k,r,A);break;case "squareRect":if(k.cssStyles&&0<=k.cssStyles.indexOf("opacity: 0;")){r=w("fillColor=none;strokeColor=none;",k,r,A);r.overrideArrowHead="circle";break}case "rect":case "square":case "round":case "rounded":case "group":case "event":case "process":case "rectangle":case "proc":r=
w(("rounded"==k.shape||"round"==k.type||Xa?"rounded=1;absoluteArcSize=1;arcSize=14;":"")+"whiteSpace=wrap;strokeWidth=2;"+("group"==k.type?"verticalAlign=top;":""),k,r,A);break;case "question":case "choice":case "diamond":case "diam":case "decision":"choice"==k.shape&&(k.labelText="");r=w("rhombus;strokeWidth=2;whiteSpace=wrap;",k,r,A);break;case "stadium":case "pill":case "terminal":r=w("rounded=1;whiteSpace=wrap;arcSize=50;strokeWidth=2;",k,r,A);break;case "subroutine":case "subproc":case "fr-rect":case "framed-rectangle":case "subprocess":r=
w("strokeWidth=2;shape=process;whiteSpace=wrap;size=0.04;",k,r,A);break;case "cylinder":case "cyl":case "database":case "db":r=w("shape=cylinder3;boundedLbl=1;backgroundOutline=1;size=10;strokeWidth=2;whiteSpace=wrap;",k,r,A);break;case "circle":case "circ":r=w("ellipse;aspect=fixed;strokeWidth=2;whiteSpace=wrap;",k,r,A);break;case "odd":case "odd_right":case "rect_left_inv_arrow":r=w("shape=mxgraph.arrows2.arrow;dy=0;dx=0;notch=20;strokeWidth=2;whiteSpace=wrap;spacingLeft=10",k,r,A);break;case "trapezoid":case "trap-b":case "priority":case "trapezoid-bottom":r=
w("shape=trapezoid;perimeter=trapezoidPerimeter;fixedSize=1;strokeWidth=2;whiteSpace=wrap;",k,r,A);break;case "inv_trapezoid":case "manual":case "trap-t":case "trapezoid-top":r=w("shape=trapezoid;perimeter=trapezoidPerimeter;fixedSize=1;strokeWidth=2;whiteSpace=wrap;flipV=1;",k,r,A);break;case "lean_right":case "lean-right":case "lean-r":case "in-out":r=w("shape=parallelogram;perimeter=parallelogramPerimeter;fixedSize=1;strokeWidth=2;whiteSpace=wrap;",k,r,A);break;case "lean_left":case "lean-left":case "lean-l":case "out-in":r=
w("shape=parallelogram;perimeter=parallelogramPerimeter;fixedSize=1;strokeWidth=2;whiteSpace=wrap;flipH=1;",k,r,A);break;case "doublecircle":case "double-circle":case "dbl-circ":case "framed-circle":case "fr-circ":case "stop":if("framed-circle"==k.shape||"fr-circ"==k.shape||"stop"==k.shape)k.labelText="";r=w("ellipse;shape=doubleEllipse;aspect=fixed;strokeWidth=2;whiteSpace=wrap;",k,r,A);break;case "hexagon":case "hex":case "prepare":r=w("shape=hexagon;perimeter=hexagonPerimeter2;fixedSize=1;strokeWidth=2;whiteSpace=wrap;",
k,r,A);break;case "start":case "stateStart":case "f-circ":case "filled-circle":case "junction":k.labelText="";r=w("ellipse;fillColor=strokeColor;",k,r,A);break;case "end":case "stateEnd":k.labelText="";r=w("ellipse;shape=endState;fillColor=strokeColor;",k,r,A);break;case "roundedWithTitle":r=w("swimlane;fontStyle=1;align=center;verticalAlign=middle;startSize=25;container=0;collapsible=0;rounded=1;arcSize=14;dropTarget=0;",k,r,A);break;case "fork":case "join":k.rx||q(k);k.labelText="";r=w("shape=line;strokeWidth="+
(k.height-5)+";",k,r,A);break;case "divider":k.labelText="";r=w("fillColor=#F7F7F7;dashed=1;dashPattern=12 12;",k,r,A);break;case "lifeline":case "actorLifeline":k.labelText=k.description;r=w('shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};'+("actor"==k.type?"participant=umlActor;verticalAlign=bottom;labelPosition=center;verticalLabelPosition=top;align=center;":
"")+"size="+k.size+";",k,r,A);break;case "activation":r=w('points=[];perimeter=orthogonalPerimeter;outlineConnect=0;targetShapes=umlLifeline;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0}',k,r,A);break;case "seqNote":k.labelText=k.message;r=w("fillColor=#ffff88;strokeColor=#9E916F;",k,r,A);break;case "loop":k.labelText=k.type||"";y=k.type?10*k.type.length:0;r=w("shape=umlFrame;dashed=1;pointerEvents=0;dropTarget=0;strokeColor=#B3B3B3;height=20;width="+
y,k,r,A);x(A,r,null,l(k.title),y,0,k.width-y,20,"text;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;");for(y=0;null!=k.sections&&y<k.sections.length;y++)K=k.sections[y],x(A,r,null,l(k.sectionTitles[y].message),0,K.y-k.y,k.width,K.height,"shape=line;dashed=1;whiteSpace=wrap;verticalAlign=top;labelPosition=center;verticalLabelPosition=middle;align=center;strokeColor=#B3B3B3;");break;case "erdEntity":E=k.entityData.attributes;y=E.length;Q=K=(k.height-25)/y;var Z=G=
S=0,P=0,aa=0;for(y=0;y<E.length;y++)S=Math.max(S,6*E[y].attributeType.length),G=Math.max(G,6*E[y].attributeName.length),Z=Math.max(Z,E[y].attributeKeyType?10*E[y].attributeKeyType.length:0),P=Math.max(P,E[y].attributeKeyTypeList?22*E[y].attributeKeyTypeList.length:0),aa=Math.max(aa,E[y].attributeComment?6*E[y].attributeComment.length:0);r=x(A,r,null,l(k.entityData.alias?k.entityData.alias:k.labelText),k.x,k.y,Math.max(G+S+Z+P+aa,k.width),k.height,"shape=table;startSize="+(0==E.length?k.height:25)+
";container=1;collapsible=0;childLayout=tableLayout;fixedRows=1;rowLines=1;fontStyle=1;align=center;resizeLast=1;");for(y=0;y<E.length;y++){var ja=x(A,r,null,null,0,Q,k.width,K,"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;top=0;left=0;right=0;bottom=0;");x(A,ja,null,l(E[y].attributeType),0,0,S,K,"shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=2;overflow=hidden;fontSize=11;");
x(A,ja,null,l(E[y].attributeName),0,0,Math.max(G,k.width-S-Z-P-aa),K,"shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=2;overflow=hidden;fontSize=11;");0<Z&&x(A,ja,null,l(E[y].attributeKeyType),0,0,Z,K,"shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=2;overflow=hidden;fontSize=11;");0<P&&x(A,ja,null,E[y].attributeKeyTypeList?l(E[y].attributeKeyTypeList.join(", ")):"",0,0,P,K,"shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=2;overflow=hidden;fontSize=11;");
0<aa&&x(A,ja,null,l(E[y].attributeComment),0,0,aa,K,"shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=2;overflow=hidden;fontSize=11;");Q+=K}break;case "element":case "requirement":y="element"==k.shape;Q="<<"+(y?"Element":k.data.type)+">>\n";r=x(A,r,null,Q+l(k.data.name),k.x,k.y,k.width,k.height,"swimlane;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=40;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=1;collapsible=0;marginBottom=0;");
x(A,r,null,l(y?"Type: "+k.data.type+"\nDoc Ref: "+(k.data.docRef||"None"):"Id: "+k.data.id+"\nText: "+k.data.text+"\nRisk: "+k.data.risk+"\nVerification: "+k.data.verifyMethod),0,40,k.width,k.height-40,"text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacing=6;overflow=hidden;rotatable=0;connectable=0;");break;case "rectCloud":r=w("shape=mxgraph.basic.cloud_rect;strokeWidth=2;",k,r,A);break;case "cloud":r=w("ellipse;shape=cloud;strokeWidth=2;",k,r,A);break;case "roundedRect":r=w("rounded=1;arcSize=20;strokeWidth=2",
k,r,A);break;case "smilingFace":r=w("shape=image;imageAspect=0;aspect=fixed;image=https://cdn1.iconfinder.com/data/icons/hawcons/32/699734-icon-6-smiling-face-128.png;imageBackground=default;",k,r,A);break;case "sadFace":r=w("shape=image;imageAspect=0;aspect=fixed;image=https://cdn1.iconfinder.com/data/icons/hawcons/32/699741-icon-7-sad-face-128.png;imageBackground=default;",k,r,A);break;case "neutralFace":r=w("shape=image;imageAspect=0;aspect=fixed;image=https://cdn1.iconfinder.com/data/icons/hawcons/32/699721-icon-5-neutral-face-128.png;imageBackground=default;",
k,r,A);break;case "gitBranch":r=w("line;dashed=1;strokeWidth=1;backgroundOutline=0;html=1;"+(k.height>k.width?"direction=south;labelPosition=center;verticalLabelPosition=top;align=center;verticalAlign=bottom;spacingBottom=10;spacing=0;":"labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;spacingRight=35;spacingTop=0;spacing=0;")+(k.isHidden?"strokeColor=none;":"labelBackgroundColor="+k.color[1]+";fontColor="+k.color[0]+";"),k,r,A);break;case "gitCommit":y="";switch(k.type){case 0:case 1:y=
"strokeColor="+k.color[1]+";fillColor="+k.color[1];break;case 2:y="strokeColor=none;fillColor=none";break;case 3:k.labelText="";y="strokeColor="+k.color[1]+";fillColor=#efefef";break;case 4:k.labelText="",y="strokeColor=#efefef;fillColor=#efefef"}r=w("ellipse;verticalAlign=middle;labelPosition=left;verticalLabelPosition=middle;align=right;rotation=300;spacingRight=4;labelBackgroundColor=default;strokeWidth=5;"+y+";",k,r,A);switch(k.type){case 1:x(A,r,null,"",5,5,k.width-10,k.height-10,"shape=umlDestroy;strokeWidth=3;strokeColor=#efefef;");
break;case 2:x(A,r,null,"",0,0,k.width,k.height,"strokeWidth=5;strokeColor=#1c1c1c;fillColor=#efefef;");break;case 4:x(A,r,null,"",2,2,k.width-5,k.height-5,"shape=image;imageAspect=0;aspect=fixed;image=https://cdn3.iconfinder.com/data/icons/essential-pack/32/68-Cherry-128.png")}if(k.tag||k.tags&&0<k.tags.length)k.tags&&(k.tag=k.tags.join(", ")),y=6*k.tag.length+20,x(A,r,null,l(k.tag),0,-y/2-k.width/2-5,k.height,y,"shape=loopLimit;size=8;rotation=90;horizontal=0;flipV=1;fillColor=#efefef;strokeColor=#DEDEDE;");
break;case "manual-file":r=w("shape=offPageConnector;whiteSpace=wrap;size=1;verticalAlign=top;strokeWidth=2",k,r,A);break;case "manual-input":case "sl-rect":case "sloped-rectangle":r=w("shape=manualInput;whiteSpace=wrap;strokeWidth=2",k,r,A);break;case "docs":case "documents":case "st-doc":case "stacked-document":r=w("shape=mxgraph.flowchart.multi-document;whiteSpace=wrap;strokeWidth=2",k,r,A);break;case "procs":case "processes":case "st-rect":case "stacked-rectangle":r=w("shape=mxgraph.basic.layered_rect;dx=10;flipV=1;whiteSpace=wrap;strokeWidth=2",
k,r,A);break;case "paper-tape":case "flag":r=w("shape=tape;size=0.3;whiteSpace=wrap;strokeWidth=2",k,r,A);break;case "text":r=w("text;verticalAlign=middle;align=center;whiteSpace=wrap",k,r,A);break;case "notch-rect":case "card":case "notched-rectangle":r=w("shape=card;whiteSpace=wrap;size=20;arcSize=12;strokeWidth=2",k,r,A);break;case "lin-rect":case "lin-proc":case "lined-process":case "lined-rectangle":case "shaded-process":r=w("shape=internalStorage;whiteSpace=wrap;dx=8;dy=0;strokeWidth=2",k,r,
A);break;case "sm-circ":case "small-circle":k.labelText="";r=w("ellipse;strokeWidth=2",k,r,A);break;case "hourglass":case "collate":r=w("shape=collate;whiteSpace=wrap;strokeWidth=2",k,r,A);break;case "comment":case "brace-l":case "brace":k.width=20;r=w("shape=curlyBracket;whiteSpace=wrap;rounded=1;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;strokeWidth=2",k,r,A);break;case "brace-r":k.x+=k.width-20;k.width=20;r=w("shape=curlyBracket;whiteSpace=wrap;rounded=1;flipH=1;labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;strokeWidth=2",
k,r,A);break;case "braces":r=w("group;verticalAlign=middle;",k,r,A);x(A,r,null,"",0,0,20,k.height,"shape=curlyBracket;rounded=1;strokeWidth=2");x(A,r,null,"",k.width-20,0,20,k.height,"shape=curlyBracket;flipH=1;rounded=1;strokeWidth=2");break;case "bolt":case "com-link":case "lightning-bolt":k.labelText="";r=w("shape=mxgraph.basic.flash;strokeWidth=2",k,r,A);break;case "doc":case "document":r=w("strokeWidth=2;shape=document;whiteSpace=wrap",k,r,A);break;case "delay":case "half-rounded-rectangle":r=
w("strokeWidth=2;shape=mxgraph.flowchart.delay;whiteSpace=wrap",k,r,A);break;case "das":case "h-cyl":case "horizontal-cylinder":q(k);r=w("shape=cylinder3;whiteSpace=wrap;boundedLbl=1;backgroundOutline=1;size=4;rotation=90;horizontal=0;strokeWidth=2",k,r,A);break;case "lin-cyl":case "disk":case "lined-cylinder":r=w("shape=datastore;whiteSpace=wrap;strokeWidth=2",k,r,A);break;case "curv-trap":case "curved-trapezoid":case "display":r=w("shape=display;whiteSpace=wrap;strokeWidth=2",k,r,A);break;case "div-rect":case "div-proc":case "divided-process":case "divided-rectangle":r=
w("shape=internalStorage;whiteSpace=wrap;backgroundOutline=1;dx=0;dy=8;strokeWidth=2",k,r,A);break;case "tri":case "triangle":case "extract":r=w("verticalLabelPosition=middle;verticalAlign=bottom;shape=mxgraph.basic.acute_triangle;dx=0.5;labelPosition=center;align=center;strokeWidth=2",k,r,A);break;case "win-pane":case "window-pane":case "internal-storage":r=w("shape=internalStorage;whiteSpace=wrap;backgroundOutline=1;dx=8;dy=8;strokeWidth=2",k,r,A);break;case "lin-doc":case "lined-document":r=w("strokeWidth=2;shape=document;whiteSpace=wrap",
k,r,A);x(A,r,null,"",8,0,1,Math.round(88.75*k.height)/100,"line;strokeWidth=2;direction=south");break;case "notch-pent":case "notched-pentagon":case "loop-limit":r=w("shape=loopLimit;whiteSpace=wrap;strokeWidth=2",k,r,A);break;case "flip-tri":case "flipped-triangle":case "manual-file":r=w("verticalLabelPosition=middle;verticalAlign=top;shape=mxgraph.basic.acute_triangle;dx=0.5;labelPosition=center;align=center;strokeWidth=2;flipV=1",k,r,A);break;case "bow-rect":case "bow-tie-rectangle":case "stored-data":r=
w("shape=dataStorage;whiteSpace=wrap;fixedSize=1;size=5;strokeWidth=2",k,r,A);break;case "cross-circ":case "crossed-circle":case "summary":r=w("shape=sumEllipse;perimeter=ellipsePerimeter;whiteSpace=wrap;backgroundOutline=1;strokeWidth=2",k,r,A);break;case "tag-doc":case "tagged-document":r=w("strokeWidth=2;shape=document;whiteSpace=wrap",k,r,A);x(A,r,null,"",Math.round(95.91*k.width)/100,Math.round(58.02*k.height)/100,1,Math.round(23.46*k.height)/100,"line;strokeWidth=2;direction=south;rotation=45");
break;case "tag-rect":case "tagged-rectangle":case "tag-proc":case "tagged-process":r=w("rect;strokeWidth=2;whiteSpace=wrap",k,r,A);x(A,r,null,"",Math.round(95.27*k.width)/100,Math.round(70.37*k.height)/100,1,Math.round(35.2*k.height)/100,"line;strokeWidth=2;direction=south;rotation=45");break;case "imageSquare":y="on"==k.constraint;K="t"==k.pos;k.height=y?k.width/k.imageAspectRatio:k.assetHeight||k.height;r=w("shape=image;imageAspect="+(y?"1;":"0;")+(K?"verticalLabelPosition=top;verticalAlign=bottom;":
"verticalLabelPosition=bottom;verticalAlign=top;")+"image="+k.img,k,r,A);break;default:r=w("whiteSpace=wrap;strokeWidth=2;",k,r,A)}k.link&&A.setAttributeForCell(r,"link",k.link);k.linkTarget&&A.setAttributeForCell(r,"linkTarget",k.linkTarget);k.tooltip&&A.setAttributeForCell(r,"tooltip",k.tooltip);mxMermaidToDrawio.htmlLabels&&(r.style+="html=1;");k.clusterNode&&(r.style+="verticalAlign=top;");return r}function I(k,r){switch(k){case "extension":return r+"Arrow=block;"+r+"Size=16;"+r+"Fill=0";case "composition":return r+
"Arrow=diamondThin;"+r+"Size=14;"+r+"Fill=1";case "aggregation":return r+"Arrow=diamondThin;"+r+"Size=14;"+r+"Fill=0";case "dependency":return r+"Arrow=open;"+r+"Size=12";case "arrow_point":return r+"Arrow=block";case "arrow_open":case "none":case void 0:return r+"Arrow=none";case "arrow_circle":return r+"Arrow=oval;"+r+"Size=10;"+r+"Fill=1";case "arrow_cross":return r+"Arrow=cross";case "ZERO_OR_MORE":return r+"Arrow=ERzeroToMany;"+r+"Size=10;";case "ONLY_ONE":return r+"Arrow=ERmandOne;"+r+"Size=10;";
case "ONE_OR_MORE":return r+"Arrow=ERoneToMany;"+r+"Size=10;";case "ZERO_OR_ONE":return r+"Arrow=ERzeroToOne;"+r+"Size=10;";case "circlePlus":return r+"Arrow=circlePlus;"+r+"Size=10;"+r+"Fill=0";case "circle":return r+"Arrow=circle;"+r+"Fill=0"}}function F(k,r,A,y,E,S){var G=A[r.fromCluster||k.v];k=A[r.toCluster||k.w];if(A=S&&G.parent==k.parent)y=G.parent;var Q=r.label;r.relationship&&(Q=r.relationship.type?"<<"+r.relationship.type+">>":r.relationship.roleA);G.overrideArrowHead&&(r.arrowTypeStart=
G.overrideArrowHead,delete G.overrideArrowHead);k.overrideArrowHead&&(r.arrowTypeEnd=k.overrideArrowHead,delete k.overrideArrowHead);var K=E.insertEdge;Q=l(Q);var Z=[r.isOrth?"edgeStyle=orthogonalEdgeStyle":"curved=1"];if(r.relationship){var P=r.relationship.type;r.relationship.relSpec?(P=r.relationship.relSpec,r.arrowTypeStart=P.cardB,r.arrowTypeEnd=P.cardA,r.pattern="NON_IDENTIFYING"==P.relType?"dashed":"solid"):P&&(P="contains"==P,r.pattern=P?"solid":"bigDashed",r.arrowTypeStart=P?"circlePlus":
"none",r.arrowTypeEnd=P?"none":"dependency")}switch(r.pattern){case "dotted":Z.push("dashed=1;dashPattern=2 3");break;case "dashed":Z.push("dashed=1");break;case "bigDashed":Z.push("dashed=1;dashPattern=8 8")}r.classes&&-1!=r.classes.indexOf("note-edge")&&Z.push("dashed=1");Z.push(I(r.arrowTypeStart,"start"));Z.push(I(r.arrowTypeEnd,"end"));"thick"==r.thickness&&Z.push("strokeWidth=3");mxMermaidToDrawio.htmlLabels&&Z.push("html=1");Z=Z.join(";")+";";K=K.call(E,y,null,Q,G,k,Z);Z="middle";P="center";
y="middle";Q="center";null!=G&&null!=G.geometry&&null!=k&&null!=k.geometry&&(Z=G.geometry.y+G.geometry.height<k.geometry.y?"top":"bottom",y=G.geometry.y+G.geometry.height<k.geometry.y?"bottom":"top",P=G.geometry.x+G.geometry.width<k.geometry.x?"left":"right",Q=G.geometry.x+G.geometry.width<k.geometry.x?"right":"left");r.startLabelRight&&(Z=x(E,K,null,l(r.startLabelRight),-1,0,0,0,"edgeLabel;resizable=0;labelBackgroundColor=none;fontSize=12;align="+P+";verticalAlign="+Z+";"),Z.geometry.relative=!0);
r.endLabelLeft&&(Z=x(E,K,null,l(r.endLabelLeft),.5,0,0,0,"edgeLabel;resizable=0;labelBackgroundColor=none;fontSize=12;align="+Q+";verticalAlign="+y+";"),Z.geometry.relative=!0);K.geometry.points=[];if(r.fromCluster||r.toCluster)r.points=null;if(r.points&&2<=r.points.length)for(y=r.points.shift(),E=r.points.pop(),Q=G.geometry,Z=k.geometry,G=S&&!A&&G.parent&&G.parent.geometry?G.parent.geometry:{x:0,y:0,width:0,height:0},k=S&&!A&&k.parent&&k.parent.geometry?k.parent.geometry:{x:0,y:0,width:0,height:0},
K.style+="exitX="+Math.round((y.x-Q.x-G.x)/Q.width*100)/100+";exitY="+Math.round((y.y-Q.y-G.y)/Q.height*100)/100+";entryX="+Math.round((E.x-Z.x-k.x)/Z.width*100)/100+";entryY="+Math.round((E.y-Z.y-k.y)/Z.height*100)/100+";",G=y,k=0;k<r.points.length;k++)if(A=r.points[k],y=r.points[k+1]||E,S||G.x!=A.x&&G.y!=A.y||null==y||y.x!=A.x&&y.y!=A.y)G=A,K.geometry.points.push(new mxPoint(Math.round(A.x),Math.round(A.y)));"invisible"==r.pattern&&(K.visible=!1);return K}function U(k,r,A){A=k[A];for(var y in r)if(-1!=
y.indexOf("a")){var E=parseInt(y.substring(0,y.length-1));if(!(20<Math.abs(E-A))){E=r[y];for(var S=0;S<E.length;S++){var G=E[S].geometry;if(G.y<=k.stopy&&G.y+G.height>=k.stopy)return E[S]}}}for(y in r)if(!(-1<y.indexOf("a"))&&(E=parseInt(y),20>=Math.abs(E-A)))return r[y];for(y in r)if(!(-1<y.indexOf("a"))&&(E=parseInt(y),90>=Math.abs(E-A)))return r[y];return null}function L(k,r,A){var y="endArrow=block;";switch(k.type){case 1:y="dashed=1;dashPattern=2 3;endArrow=block;";break;case 3:y="endArrow=cross;";
break;case 4:y="endArrow=cross;dashed=1;dashPattern=2 3;";break;case 5:y="endArrow=none;";break;case 6:y="endArrow=none;dashed=1;dashPattern=2 3;";break;case 24:y="endArrow=classic;endSize=10;";break;case 25:y="endArrow=classic;dashed=1;dashPattern=2 3;endSize=10;"}mxMermaidToDrawio.htmlLabels&&(y+="html=1;");var E=U(k,r,"startx"),S=U(k,r,"stopx");r=E==S;y=A.insertEdge(null,null,l(k.message),E,S,(r?"curved=1;":"verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;")+y);
y.geometry.points=r?[new mxPoint(Math.round(k.startx+50),Math.round(k.stopy-30)),new mxPoint(Math.round(k.startx+50),Math.round(k.stopy))]:[new mxPoint(Math.round(Math.min(k.startx,k.stopx)+k.width/2),Math.round(k.stopy))];k.sequenceVisible&&(A=A.insertVertex(y,y.id+"seq",k.sequenceIndex,0,0,14,14,"ellipse;aspect=fixed;fillColor=#000000;align=center;fontColor=#FFFFFF;",!0),E=k.startx>k.stopx,A.geometry.offset=r?new mxPoint(-57,-22):new mxPoint((E?1:-1)*k.width/2-(E?14:0),-7));return y}function V(k,
r){for(var A={},y=0;y<k.boxes.length;y++){var E=k.boxes[y];E.shape="group";E.type="group";E.labelText=E.name;E.y-=25;E.height+=35;h(E,null,r,!0)}for(y=0;y<k.actors.length;y++)if(E=k.actors[y],!A[E.name]){E.shape="actor"==E.type?"actorLifeline":"lifeline";E.size=E.height;E.height=k.verticalPos;E.y=0;var S=h(E,null,r,!0);A[E.x+E.width/2]=S;A[E.name]=S}var G=[];for(y=0;y<k.messages.length;y++)G.push(k.messages[y].stopy);G.sort(function(P,aa){return P-aa});k.activations.sort(function(P,aa){return P.starty-
aa.starty});var Q=0;for(y=0;y<k.activations.length;y++){var K=function(P,aa){null==A[P]&&(A[P]=[]);A[P].push(aa)},Z=k.activations[y];E=A[Z.actor];for(S=E.geometry;Q<G.length&&G[Q]<Z.starty;)Q++;Z.x=Z.startx-S.x;Z.y=G[Q-1];Z.width=Z.stopx-Z.startx;Z.height=Z.stopy-G[Q-1];Z.shape="activation";S=h(Z,E,r,!0);K(Z.startx+"a",S);K(Z.stopx+"a",S)}for(y=0;y<k.loops.length;y++)E=k.loops[y],E.x=E.startx,E.y=E.starty,E.width=E.stopx-E.startx,E.height=E.stopy-E.starty,E.shape="loop",h(E,null,r,!0);for(y=0;y<k.messages.length;y++)L(k.messages[y],
A,r);for(y=0;y<k.notes.length;y++)E=k.notes[y],E.shape="seqNote",E.x=E.startx,E.y=E.starty,h(E,null,r,!0);for(y=0;y<k.actors.length;y++)if(E=k.actors[y],"actor"==E.type&&!E.secondPass){S=A[E.name];for(Q=0;S.children&&Q<S.children.length;Q++)S.children[Q].geometry.x-=(S.geometry.width-35)/2;S.geometry.width=35;E.secondPass=!0}}function ia(k,r,A){var y=k._nodes,E={},S=k._edgeObjs;k=k._edgeLabels;for(var G in y){var Q=y[G];Q.labelText=Q.labelText||Q.label;E[G]=h(Q,r,A);Q.clusterNode&&(delete Q.graph._nodes[G],
ia(Q.graph,E[G],A))}for(G in S)F(S[G],k[G],E,r,A)}function Qa(k,r,A,y){var E=k.children;k=k.edges;for(var S=0;S<E.length;S++){var G=E[S],Q=G.id;G.shape=G.type;var K=h(G,A,y,!0);r[Q]=K;G.children&&0<G.children.length&&Qa(G,r,K,y)}for(S=0;null!=k&&S<k.length;S++)E=k[S],E.v=E.sourceId,E.w=E.targetId,G=E.edgeData||{},E.labels&&E.labels[0]&&(G.label=E.labels[0].text,G.lblInfo=E.labels[0]),G.isOrth=!0,E.sections&&E.sections[0]&&(G.points=E.sections[0].bendPoints?E.sections[0].bendPoints:[],E.sections[0].startPoint&&
G.points.unshift(E.sections[0].startPoint),E.sections[0].endPoint&&G.points.push(E.sections[0].endPoint)),F(E,G,r,A,y,!0)}function Fa(k){var r=new Graph;r.setExtendParents(!1);r.setExtendParentsOnAdd(!1);r.setConstrainChildren(!1);r.setHtmlLabels(!0);r.getModel().maintainEdgeParent=!1;if("gitgraph"==z){var A={},y=0,E=0,S=0,G=!1;for(aa in k.commitPos)y=Math.max(y,k.commitPos[aa].x),E=Math.max(E,k.commitPos[aa].y),G=G||0==k.commitPos[aa].x;for(var Q in k.branchPos){var K=k.branchPos[Q];K.shape="gitBranch";
K.labelText=Q;K.y=G?0:K.pos;K.x=G?K.pos:0;K.width=G?1:y+50;K.height=G?E+50:1;K.isHidden=!k.gitGraphConfig.showBranches;var Z=Pa[S++%Pa.length];K.color=Z;var P=h(K,null,r,!0);P.value=k.gitGraphConfig.showBranches?'<p style="line-height: 50%;">&nbsp;&nbsp;'+mxUtils.htmlEntities(P.value)+"&nbsp;&nbsp;</p>":"";P.pos=K.pos;A[K.pos]={node:P,color:Z}}S={};Z=[];for(Q in k.commitPos){var aa=k.commitPos[Q];Object.assign(aa,k.commits[Q]);K=A[G?aa.x:aa.y];aa.shape="gitCommit";G?(aa.pos=aa.x,aa.x=0):(aa.pos=aa.y,
aa.y=0);aa.width=20;aa.height=20;aa.labelText=k.gitGraphConfig.showCommitLabel?Q:"";aa.color=K.color;aa.type=aa.customType||aa.type;S[Q]=h(aa,K.node,r);K.commitList=K.commitList||[];K.commitList.push(aa.x);for(P=0;P<aa.parents.length;P++){var ja=aa.parents[P];y=k.commitPos[ja];parentPos=null!=y.pos?y.pos:G?y.x:y.y;Z.push({source:ja,target:Q,color:aa.pos>=parentPos?K.color:A[parentPos].color,clr2:K.color})}}for(P=0;P<Z.length;P++){k=Z[P];Q=S[k.source];aa=S[k.target];K=r.insertEdge(null,null,null,Q,
aa,"rounded=1;endArrow=none;endFill=0;strokeWidth=8;");ja=!1;if(G){var Fb=Q.parent.geometry.x,sb=aa.parent.geometry.x;y=aa.parent.pos;if(Fb!=sb){y=A[y];for(var nc=E=0;nc<y.commitList.length;nc++){var Bc=y.commitList[nc];Bc>Q.geometry.y&&Bc<aa.geometry.y&&E++}0<E?(ja=(Fb+sb)/2,K.geometry.points=[new mxPoint(Math.round(ja),Math.round(Q.geometry.y+Q.geometry.height/2)),new mxPoint(Math.round(ja),Math.round(aa.geometry.y+aa.geometry.height/2))],ja=!0):(y=Math.max(Fb,sb),K.geometry.points=[new mxPoint(Math.round(y),
Fb==y?Math.round(aa.geometry.y+aa.geometry.height/2):Math.round(Q.geometry.y+Q.geometry.height/2))])}}else if(Fb=Q.parent.geometry.y,sb=aa.parent.geometry.y,y=aa.parent.pos,Fb!=sb){y=A[y];for(nc=E=0;nc<y.commitList.length;nc++)Bc=y.commitList[nc],Bc>Q.geometry.x&&Bc<aa.geometry.x&&E++;0<E?(ja=(Fb+sb)/2,K.geometry.points=[new mxPoint(Math.round(Q.geometry.x+Q.geometry.width/2),Math.round(ja)),new mxPoint(Math.round(aa.geometry.x+aa.geometry.width/2),Math.round(ja))],ja=!0):(E=Math.max(Fb,sb),K.geometry.points=
[new mxPoint(Fb==E?Math.round(aa.geometry.x+aa.geometry.width/2):Math.round(Q.geometry.x+Q.geometry.width/2),Math.round(E))])}K.style=ja?K.style+("strokeColor="+k.clr2[1]+";"):K.style+("strokeColor="+k.color[1]+";")}}else if("journey"==z){P=k.tasks;Q=null;G=Number.MAX_SAFE_INTEGER;S=0;Z=Number.MAX_SAFE_INTEGER;for(aa=0;aa<P.length;aa++){K=P[aa];K.shape="lifeline";K.description=K.task;K.size=3*K.height;K.width*=3;K.height=300;G=Math.min(G,K.x);S=Math.max(S,K.x+K.width);Z=Math.min(Z,K.y+K.size);ja=
h(K,null,r,!0);h({shape:3>K.score?"sadFace":3<K.score?"smilingFace":"neutralFace",x:K.width/2-15,y:270-25*K.score,width:30,height:30},ja,r,!0);y=0;for(A in K.actors)x(r,ja,null,null,5+8*y++,-6,12,12,"ellipse;aspect=fixed;fillColor="+K.actors[A].color);Q!=K.section&&(Q=K.section,K.labelText=K.section,K.shape="rect",K.height=K.size,K.y-=K.height+10,h(K,null,r,!0))}P=r.insertEdge(null,null,null,null,null,"endArrow=block;strokeWidth=3;endFill=1;");P.geometry.setTerminalPoint(new mxPoint(Math.round(G),
Math.round(Z+50)),!0);P.geometry.setTerminalPoint(new mxPoint(Math.round(S+50),Math.round(Z+50)),!1);P.geometry.relative=!0;k.title&&x(r,null,null,l(k.title),G,0,12*k.title.length,40,"text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;fontSize=20;fontStyle=1");for(A in k.actors)G=k.actors[A],x(r,null,null,A,10,70+20*G.position,12,12,"ellipse;aspect=fixed;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=10;fillColor="+G.color)}else if("Mindmap"==
z){S=k._private.elements;A={};k={};for(Z=0;Z<S.length;Z++){P=S[Z]._private.data;switch(P.type){case 1:P.shape="roundedRect";break;case 2:P.shape="rect";break;case 3:P.shape="circle";P.width=Math.max(P.height,P.width);P.height=P.width;break;case 4:P.shape="cloud";break;case 5:P.shape="rectCloud";break;case 6:P.shape="hexagon";break;default:P.shape="rect",P.type="round"}isNaN(P.x)||isNaN(P.y)||(A[P.id]=h(P,null,r));P=S[Z]._private.edges;for(Q=0;Q<P.length;Q++)aa=P[Q]._private.data,k[aa.id]=aa}for(G in k)S=
k[G],r.insertEdge(null,null,null,A[S.source],A[S.target],"endArrow=none")}else if("sequenceDiagram"==z)V(k,r);else if("flowchart-elk"==z)k._nodes?ia(k,null,r):Qa(k,{},null,r);else{if("ERD"==z){for(S in B)B[S].title=S,B[S.replace(/-|_/g,"")]=B[S];for(S in k._nodes)A=B[S.split("-")[1]],G=k._nodes[S],G.shape="erdEntity",G.labelText=A.title,G.entityData=A}else if("requirements"==z)for(S in k._nodes)G=k._nodes[S],G.shape=B.elements[S]?"element":"requirement",G.data=B.elements[S]||B.requirements[S];ia(k,
null,r)}G=(new mxCodec).encode(r.getModel());return mxUtils.getXml(G)}if(0!=mxMermaidToDrawio.listeners.length){u=D(u);B=D(B);var Pa=[["#000","#b4b4b4"],["#fff","#555"],["#000","#bbb"],["#fff","#777"],["#000","#999"],["#000","#ddd"],["#000","#fff"],["#000","#ddd"]],Xa="statediagram"==z||"stateDiagram"==z,Ja=EditorUi.prototype.emptyDiagramXml;try{Ja=Fa(u)}catch(k){console.log("mermaidToDrawio",k)}for(u=0;u<mxMermaidToDrawio.listeners.length;u++)mxMermaidToDrawio.listeners[u](Ja),clearTimeout(mxMermaidToDrawio.timeouts[u]);
mxMermaidToDrawio.htmlLabels=!1;"1"!=urlParams.mermaidToDrawioTest&&mxMermaidToDrawio.resetListeners()}};mxMermaidToDrawio.listeners=[];mxMermaidToDrawio.timeouts=[];mxMermaidToDrawio.addListener=function(u){mxMermaidToDrawio.listeners.push(u);mxMermaidToDrawio.timeouts.push(setTimeout(function(){u(EditorUi.prototype.emptyDiagramXml)},5E3))};mxMermaidToDrawio.resetListeners=function(){mxMermaidToDrawio.listeners=[];mxMermaidToDrawio.timeouts=[]};function mxGraphMlCodec(){this.cachedRefObj={}}mxGraphMlCodec.prototype.refRegexp=/^\{y:GraphMLReference\s+(\d+)\}$/;mxGraphMlCodec.prototype.staticRegexp=/^\{x:Static\s+(.+)\.(.+)\}$/;
mxGraphMlCodec.prototype.decode=function(u,z,B){try{var D=mxUtils.parseXml(u),l=this.getDirectChildNamedElements(D.documentElement,mxGraphMlConstants.GRAPH);this.initializeKeys(D.documentElement);u='<?xml version="1.0" encoding="UTF-8"?><mxfile>';for(D=0;D<l.length;D++){var x=l[D],w=this.createMxGraph(),q=w.getModel();q.beginUpdate();try{for(this.nodesMap={},this.edges=[],this.importGraph(x,w,w.getDefaultParent()),D=0;D<this.edges.length;D++)for(var h=this.edges[D],I=h.edges,F=h.parent,U=h.dx,L=h.dy,
V=0;V<I.length;V++)this.importEdge(I[V],w,F,U,L)}catch(K){throw console.log(K),K;}finally{q.endUpdate()}q.beginUpdate();try{var ia=w.getModel().cells,Qa;for(Qa in ia){var Fa=ia[Qa];if(Fa.edge&&0<Fa.getChildCount())for(D=0;D<Fa.getChildCount();D++){var Pa=Fa.children[D].geometry;if(Pa.adjustIt){var Xa=w.view.getState(Fa),Ja=Xa.absolutePoints,k=Ja[0],r=Ja[Ja.length-1],A=Pa.x,y=Pa.y;U=r.x-k.x;L=r.y-k.y;var E=k.x+A*U,S=k.y+A*L,G=Math.sqrt(U*U+L*L);U/=G;L/=G;E-=y*L;S+=y*U;var Q=w.view.getRelativePoint(Xa,
E,S);Pa.x=Q.x;Pa.y=Q.y}}}}catch(K){throw console.log(K),K;}finally{q.endUpdate()}u+=this.processPage(w,D+1)}z&&z(u+"</mxfile>")}catch(K){B&&B(K)}};
mxGraphMlCodec.prototype.initializeKeys=function(u){var z=this.getDirectChildNamedElements(u,mxGraphMlConstants.KEY);this.nodesKeys={};this.edgesKeys={};this.portsKeys={};this.sharedData={};this.nodesKeys[mxGraphMlConstants.NODE_GEOMETRY]={};this.nodesKeys[mxGraphMlConstants.USER_TAGS]={};this.nodesKeys[mxGraphMlConstants.NODE_STYLE]={};this.nodesKeys[mxGraphMlConstants.NODE_LABELS]={};this.nodesKeys[mxGraphMlConstants.NODE_GRAPHICS]={};this.edgesKeys[mxGraphMlConstants.EDGE_GEOMETRY]={};this.edgesKeys[mxGraphMlConstants.EDGE_STYLE]=
{};this.edgesKeys[mxGraphMlConstants.EDGE_LABELS]={};this.portsKeys[mxGraphMlConstants.PORT_LOCATION_PARAMETER]={};this.portsKeys[mxGraphMlConstants.PORT_STYLE]={};this.portsKeys[mxGraphMlConstants.PORT_VIEW_STATE]={};for(var B,D=0;D<z.length;D++){var l=this.dataElem2Obj(z[D]),x=l[mxGraphMlConstants.ID],w=l[mxGraphMlConstants.KEY_FOR],q=l[mxGraphMlConstants.KEY_NAME],h=l[mxGraphMlConstants.KEY_YTYPE];q==mxGraphMlConstants.SHARED_DATA&&(B=x);q=q?q:h;switch(w){case mxGraphMlConstants.NODE:this.nodesKeys[q]=
{key:x,keyObj:l};break;case mxGraphMlConstants.EDGE:this.edgesKeys[q]={key:x,keyObj:l};break;case mxGraphMlConstants.PORT:this.portsKeys[q]={key:x,keyObj:l};break;case mxGraphMlConstants.ALL:l={key:x,keyObj:l},this.nodesKeys[q]=l,this.edgesKeys[q]=l,this.portsKeys[q]=l}}u=this.getDirectChildNamedElements(u,mxGraphMlConstants.DATA);for(D=0;D<u.length;D++)if(u[D].getAttribute(mxGraphMlConstants.KEY)==B)for(w=this.getDirectChildNamedElements(u[D],mxGraphMlConstants.Y_SHARED_DATA),z=0;z<w.length;z++)for(q=
this.getDirectChildElements(w[z]),l=0;l<q.length;l++)x=q[l].getAttribute(mxGraphMlConstants.X_KEY),this.sharedData[x]=q[l];else for(w=this.getDirectChildNamedElements(u[D],mxGraphMlConstants.Y_RESOURCES),z=0;z<w.length;z++)for(q=this.getDirectChildElements(w[z]),l=0;l<q.length;l++)x=q[l].getAttribute(mxGraphMlConstants.ID),this.sharedData[x]=q[l]};
mxGraphMlCodec.prototype.parseAttributes=function(u,z){if(u=u.attributes)for(var B=0;B<u.length;B++){var D=u[B].nodeValue,l=this.refRegexp.exec(D),x=this.staticRegexp.exec(D);l?(D=l[1],l=this.cachedRefObj[D],l||(l={},l[this.sharedData[D].nodeName]=this.dataElem2Obj(this.sharedData[D]),this.cachedRefObj[D]=l),z[u[B].nodeName]=l):x?(z[u[B].nodeName]={},z[u[B].nodeName][x[1]]=x[2]):z[u[B].nodeName]=D}};
mxGraphMlCodec.prototype.dataElem2Obj=function(u){var z=this.getDirectFirstChildNamedElements(u,mxGraphMlConstants.GRAPHML_REFERENCE)||u.getAttribute(mxGraphMlConstants.REFID),B=null,D=u,l={};if(z){B="string"===typeof z?z:z.getAttribute(mxGraphMlConstants.RESOURCE_KEY);if(z=this.cachedRefObj[B])return this.parseAttributes(u,z),z;u=this.sharedData[B]}this.parseAttributes(u,l);for(z=0;z<u.childNodes.length;z++){var x=u.childNodes[z];if(1==x.nodeType){var w=x.nodeName;if(w==mxGraphMlConstants.X_LIST){var q=
[];x=this.getDirectChildElements(x);for(var h=0;h<x.length;h++)w=x[h].nodeName,q.push(this.dataElem2Obj(x[h]));l[w]=q}else w==mxGraphMlConstants.X_STATIC?(w=x.getAttribute(mxGraphMlConstants.MEMBER),q=w.lastIndexOf("."),l[w.substr(0,q)]=w.substr(q+1)):(q=w.lastIndexOf("."),0<q&&(w=w.substr(q+1)),null!=l[w]?(l[w]instanceof Array||(l[w]=[l[w]]),l[w].push(this.dataElem2Obj(x))):l[w]=this.dataElem2Obj(x))}else 3!=x.nodeType&&4!=x.nodeType||!x.textContent.trim()||(l["#text"]=x.textContent)}return B?(u=
{},this.parseAttributes(D,u),u[this.sharedData[B].nodeName]=l,this.cachedRefObj[B]=u):l};mxGraphMlCodec.prototype.mapArray=function(u,z,B){for(var D={},l=0;l<u.length;l++)u[l].name&&(D[u[l].name]=u[l].value||u[l]);this.mapObject(D,z,B)};
mxGraphMlCodec.prototype.mapObject=function(u,z,B){if(z.defaults)for(var D in z.defaults)B[D]=z.defaults[D];for(D in z){for(var l=D.split("."),x=u,w=0;w<l.length&&x;w++)x=x[l[w]];null==x&&u&&(x=u[D]);if(null!=x)if(l=z[D],"string"===typeof x)if("string"===typeof l)B[l]=x.toLowerCase();else if("object"===typeof l){w=x.toLowerCase();switch(l.mod){case "color":0==x.indexOf("#")&&9==x.length?w="#"+x.substr(3)+x.substr(1,2):"TRANSPARENT"==x&&(w="none");break;case "shape":w=mxGraphMlShapesMap[x.toLowerCase()];
break;case "bpmnOutline":w=mxGraphMlShapesMap.bpmnOutline[x.toLowerCase()];break;case "bpmnSymbol":w=mxGraphMlShapesMap.bpmnSymbol[x.toLowerCase()];break;case "bool":w="true"==x?"1":"0";break;case "scale":try{w=parseFloat(x)*l.scale}catch(q){}break;case "arrow":w=mxGraphMlArrowsMap[x]}null!=w&&(B[l.key]=w)}else l(x,B);else x instanceof Array?this.mapArray(x,l,B):null!=x.name&&null!=x.value?this.mapArray([x],l,B):this.mapObject(x,l,B)}};mxGraphMlCodec.prototype.createMxGraph=function(){return new mxGraph};
mxGraphMlCodec.prototype.importGraph=function(u,z,B){for(var D=this.getDirectChildNamedElements(u,mxGraphMlConstants.NODE),l=B,x=0,w=0;l&&l.geometry;)x+=l.geometry.x,w+=l.geometry.y,l=l.parent;for(l=0;l<D.length;l++)this.importNode(D[l],z,B,x,w);this.edges.push({edges:this.getDirectChildNamedElements(u,mxGraphMlConstants.EDGE),parent:B,dx:x,dy:w})};
mxGraphMlCodec.prototype.importPort=function(u,z){var B=u.getAttribute(mxGraphMlConstants.PORT_NAME),D={};u=this.getDirectChildNamedElements(u,mxGraphMlConstants.DATA);for(var l=0;l<u.length;l++){var x=u[l];x.getAttribute(mxGraphMlConstants.KEY);x=this.dataElem2Obj(x);x.key==this.portsKeys[mxGraphMlConstants.PORT_LOCATION_PARAMETER].key&&this.mapObject(x,{"y:FreeNodePortLocationModelParameter.Ratio":function(w,q){w=w.split(",");q.pos={x:w[0],y:w[1]}}},D)}z[B]=D};
mxGraphMlCodec.prototype.styleMap2Str=function(u){var z="",B="",D;for(D in u)B+=z+D+"="+u[D],z=";";return B};
mxGraphMlCodec.prototype.importNode=function(u,z,B,D,l){var x=this.getDirectChildNamedElements(u,mxGraphMlConstants.DATA),w=u.getAttribute(mxGraphMlConstants.ID),q=new mxCell;q.vertex=!0;q.geometry=new mxGeometry(0,0,30,30);z.addCell(q,B);B={graphMlID:w};for(var h=null,I=null,F=null,U=null,L=0;L<x.length;L++){var V=this.dataElem2Obj(x[L]);if(V.key)if(V.key==this.nodesKeys[mxGraphMlConstants.NODE_GEOMETRY].key)this.addNodeGeo(q,V,D,l);else if(V.key==this.nodesKeys[mxGraphMlConstants.USER_TAGS].key)F=
V;else if(V.key==this.nodesKeys[mxGraphMlConstants.NODE_STYLE].key)h=V,V["yjs:StringTemplateNodeStyle"]?I=V["yjs:StringTemplateNodeStyle"]["#text"]:this.addNodeStyle(q,V,B);else if(V.key==this.nodesKeys[mxGraphMlConstants.NODE_LABELS].key)U=V;else if(V.key==this.nodesKeys[mxGraphMlConstants.NODE_GRAPHICS].key){var ia=h=null;for(ia in V)if("key"!=ia&&"#text"!=ia){if("y:ProxyAutoBoundsNode"==ia){if(ia=V[ia]["y:Realizers"])for(var Qa in ia)if("active"!=Qa&&"#text"!=Qa){h=ia[Qa][ia.active];V={};V[Qa]=
h;break}}else h=V[ia];break}h&&(h[mxGraphMlConstants.GEOMETRY]&&this.addNodeGeo(q,h[mxGraphMlConstants.GEOMETRY],D,l),h[mxGraphMlConstants.NODE_LABEL]&&(U=h[mxGraphMlConstants.NODE_LABEL]));h=V;this.addNodeStyle(q,V,B)}}l=this.getDirectChildNamedElements(u,mxGraphMlConstants.PORT);D={};for(L=0;L<l.length;L++)this.importPort(l[L],D);I&&this.handleTemplates(I,F,q,B);this.handleFixedRatio(q,B);this.handleCompoundShape(q,B,h,null);0==B.strokeWidth&&(B.strokeColor="none");q.style=this.styleMap2Str(B);
u=this.getDirectChildNamedElements(u,mxGraphMlConstants.GRAPH);for(L=0;L<u.length;L++)this.importGraph(u[L],z,q,D);U&&this.addLabels(q,U,B,z);this.nodesMap[w]={node:q,ports:D}};
mxGraphMlCodec.prototype.addNodeStyle=function(u,z,B){u=function(A,y){if("line"!=A){y.dashed=1;switch(A){case "DashDot":A="3 1 1 1";break;case "Dot":A="1 1";break;case "DashDotDot":A="3 1 1 1 1 1";break;case "Dash":A="3 1";break;case "dotted":A="1 3";break;case "dashed":A="5 2";break;default:A=A.replace(/0/g,"1")}A&&(0>A.indexOf(" ")&&(A=A+" "+A),y.dashPattern=A)}};u={shape:{key:"shape",mod:"shape"},"y:Shape.type":{key:"shape",mod:"shape"},configuration:{key:"shape",mod:"shape"},type:{key:"shape",
mod:"shape"},assetName:{key:"shape",mod:"shape"},activityType:{key:"shape",mod:"shape"},fill:{key:"fillColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"fillColor",mod:"color"},"fill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"y:Fill":{color:{key:"fillColor",mod:"color"},transparent:function(A,y){"true"==A&&(y.fillColor="none")}},"y:BorderStyle":{color:{key:"strokeColor",mod:"color"},width:"strokeWidth",hasColor:function(A,y){"false"==A&&(y.strokeColor="none")},
type:u},stroke:{key:"strokeColor",mod:"color"},"stroke.yjs:Stroke":{dashStyle:u,"dashStyle.yjs:DashStyle.dashes":u,fill:{key:"strokeColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"strokeColor",mod:"color"},"thickness.sys:Double":"strokeWidth",thickness:"strokeWidth"}};var D=mxUtils.clone(u);D.defaults={fillColor:"#CCCCCC",strokeColor:"#6881B3"};var l=mxUtils.clone(u);l.defaults={shape:"ext;rounded=1",fillColor:"#FFFFFF",strokeColor:"#000090"};var x=mxUtils.clone(u);x.defaults={shape:"rhombus;fillColor=#FFFFFF;strokeColor=#FFCD28"};
var w=mxUtils.clone(u);w.defaults={shape:"hexagon",strokeColor:"#007000"};var q=mxUtils.clone(u);q.defaults={shape:"mxgraph.bpmn.shape;perimeter=ellipsePerimeter;symbol=general",outline:"standard"};q.characteristic={key:"outline",mod:"bpmnOutline"};var h=mxUtils.clone(u);h.defaults={shape:"js:bpmnDataObject"};var I=mxUtils.clone(u);I.defaults={shape:"datastore"};var F=mxUtils.clone(u);F.defaults={shape:"swimlane;swimlaneLine=0;startSize=20;dashed=1;dashPattern=3 1 1 1;collapsible=0;rounded=1"};var U=
mxUtils.clone(u);U.defaults={shape:"js:BpmnChoreography"};var L=mxUtils.clone(u);L.defaults={rounded:"1",glass:"1",strokeColor:"#FFFFFF"};L.inset="strokeWidth";L.radius="arcSize";L.drawShadow={key:"shadow",mod:"bool"};L.color={key:"fillColor",mod:"color",addGradient:"north"};L["color.yjs:Color.value"]=L.color;var V=mxUtils.clone(u);V.defaults={rounded:"1",arcSize:10,glass:"1",shadow:"1",strokeColor:"none"};V.drawShadow={key:"shadow",mod:"bool"};var ia=mxUtils.clone(u);ia.defaults={shape:"swimlane",
startSize:20,strokeWidth:4,spacingLeft:10};ia.isCollapsible={key:"collapsible",mod:"bool"};ia.borderColor={key:"strokeColor",mod:"color"};ia.folderFrontColor={key:"fillColor",mod:"color"};var Qa=mxUtils.clone(u);Qa.defaults={shape:"swimlane",startSize:20,spacingLeft:10};Qa["yjs:PanelNodeStyle"]={color:{key:"swimlaneFillColor",mod:"color"},"color.yjs:Color.value":{key:"swimlaneFillColor",mod:"color"},labelInsetsColor:{key:"fillColor",mod:"color"},"labelInsetsColor.yjs:Color.value":{key:"fillColor",
mod:"color"}};var Fa=mxUtils.clone(u);Fa.defaults={shape:"js:table"};var Pa=mxUtils.clone(u);Pa.defaults={shape:"image"};Pa.image=function(A,y){y.image=A};var Xa=mxUtils.clone(u);Xa.defaults={shape:"image"};Xa["y:SVGModel.y:SVGContent.y:Resource.#text"]=function(A,y){y.image="data:image/svg+xml,"+(window.btoa?btoa(A):Base64.encode(A))};var Ja=mxUtils.clone(u);Ja.defaults={shape:"swimlane",startSize:20};Ja["y:Shape.type"]=function(A,y){"roundrectangle"==A&&(y.rounded=1,y.arcSize=5)};var k=mxUtils.clone(u);
k.defaults={shape:"js:table2"};var r=mxUtils.clone(u);r.defaults={gradientDirection:"east"};r["y:Fill"].color2={key:"gradientColor",mod:"color"};r["y:StyleProperties.y:Property"]={"com.yworks.bpmn.characteristic":{key:"outline",mod:"bpmnOutline"},"com.yworks.bpmn.icon.fill":{key:"gradientColor",mod:"color"},"com.yworks.bpmn.icon.fill2":{key:"fillColor",mod:"color"},"com.yworks.bpmn.type":{key:"symbol",mod:"bpmnSymbol"},"y.view.ShadowNodePainter.SHADOW_PAINTING":{key:"shadow",mod:"bool"},doubleBorder:{key:"double",
mod:"bool"},"com.yworks.sbgn.style.radius":{key:"arcSize",mod:"scale",scale:2},"com.yworks.sbgn.style.inverse":{key:"flipV",mod:"bool"}};this.mapObject(z,{"yjs:ShapeNodeStyle":u,"demostyle:FlowchartNodeStyle":u,"demostyle:AssetNodeStyle":D,"bpmn:ActivityNodeStyle":l,"bpmn:GatewayNodeStyle":x,"bpmn:ConversationNodeStyle":w,"bpmn:EventNodeStyle":q,"bpmn:DataObjectNodeStyle":h,"bpmn:DataStoreNodeStyle":I,"bpmn:GroupNodeStyle":F,"bpmn:ChoreographyNodeStyle":U,"yjs:BevelNodeStyle":L,"yjs:ShinyPlateNodeStyle":V,
"demostyle:DemoGroupStyle":ia,"yjs:CollapsibleNodeStyleDecorator":Qa,"bpmn:PoolNodeStyle":Fa,"yjs:TableNodeStyle":Fa,"demotablestyle:DemoTableStyle":Fa,"yjs:ImageNodeStyle":Pa,"y:ShapeNode":u,"y:GenericNode":r,"y:GenericGroupNode":r,"y:TableNode":k,"y:SVGNode":Xa,"y:GroupNode":Ja},B)};
mxGraphMlCodec.prototype.handleTemplates=function(u,z,B,D){if(u){var l=B.geometry.width,x=B.geometry.height;B='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+l+" "+x+'"><g>';for(var w,q=[],h=/\{TemplateBinding\s+([^}]+)\}/g;null!=(w=h.exec(u));){var I="";switch(w[1]){case "width":I=l;break;case "height":I=x}q.push({match:w[0],repl:I})}if(z&&z["y:Json"])for(z=JSON.parse(z["y:Json"]["#text"]),l=/\{Binding\s+([^}]+)\}/g;null!=(w=l.exec(u));)if(x=w[1].split(","),
h=z[x[0]])1<x.length&&x[1].indexOf("Converter=")&&(I=mxGraphMlConverters[x[1].substr(11)])&&(h=[h],x[2]&&h.push(x[2].substr(11)),h=I.apply(null,h)),q.push({match:w[0],repl:mxUtils.htmlEntities(h)});for(w=0;w<q.length;w++)u=u.replace(q[w].match,q[w].repl);q=[];for(z=/<text.+data-content="([^"]+).+<\/text>/g;null!=(w=z.exec(u));)h=w[0].substr(0,w[0].length-7)+w[1]+"</text>",q.push({match:w[0],repl:h});for(w=0;w<q.length;w++)u=u.replace(q[w].match,q[w].repl);u=B+u+"</g></svg>";D.shape="image";D.image=
"data:image/svg+xml,"+(window.btoa?btoa(u):Base64.encode(u))}};
mxGraphMlCodec.prototype.handleCompoundShape=function(u,z,B,D){var l=z.shape;if(l&&0==l.indexOf("js:")){switch(l){case "js:bpmnArtifactShadow":z.shadow="1";case "js:bpmnArtifact":z.shape=z.symbol;delete z.fillColor;delete z.strokeColor;delete z.gradientColor;this.handleCompoundShape(u,z,B,D);break;case "js:bpmnDataObjectShadow":case "js:bpmnDataObject":z.shape="note;size=16";B=B["bpmn:DataObjectNodeStyle"]||B["y:GenericNode"]||B["y:GenericGroupNode"];D={};this.mapObject(B,{"y:StyleProperties.y:Property":{"com.yworks.bpmn.dataObjectType":"dataObjectType",
"com.yworks.bpmn.marker1":"marker1"}},D);if("true"==B.collection||"bpmn_marker_parallel"==D.marker1){var x=new mxCell("",new mxGeometry(.5,1,10,10),"html=1;whiteSpace=wrap;shape=parallelMarker;");x.vertex=!0;x.geometry.relative=!0;x.geometry.offset=new mxPoint(-5,-10);u.insert(x)}if("INPUT"==B.type||"data_object_type_input"==D.dataObjectType)x=new mxCell("",new mxGeometry(0,0,10,10),"html=1;shape=singleArrow;arrowWidth=0.4;arrowSize=0.4;"),x.vertex=!0,x.geometry.relative=!0,x.geometry.offset=new mxPoint(2,
2),u.insert(x);else if("OUTPUT"==B.type||"data_object_type_output"==D.dataObjectType)x=new mxCell("",new mxGeometry(0,0,10,10),"html=1;shape=singleArrow;arrowWidth=0.4;arrowSize=0.4;fillColor=#000000;"),x.vertex=!0,x.geometry.relative=!0,x.geometry.offset=new mxPoint(2,2),u.insert(x);break;case "js:BpmnChoreography":this.mapObject(B,{defaults:{shape:"swimlane;collapsible=0;rounded=1",startSize:"20",strokeColor:"#006000",fillColor:"#CCCCCC"}},z);x=u.geometry;x=new mxCell("",new mxGeometry(0,x.height-
20,x.width,20),"strokeColor=#006000;fillColor=#777777;rounded=1");x.vertex=!0;u.insert(x);D&&D.lblTxts&&(u.value=D.lblTxts[0],x.value=D.lblTxts[1]);break;case "js:bpmnActivityShadow":case "js:bpmnActivity":z.shape="ext;rounded=1";D={};B=B["y:GenericNode"]||B["y:GenericGroupNode"];this.mapObject(B,{"y:StyleProperties.y:Property":{"com.yworks.bpmn.taskType":"taskType","com.yworks.bpmn.activityType":"activityType","com.yworks.bpmn.marker1":"marker1","com.yworks.bpmn.marker2":"marker2","com.yworks.bpmn.marker3":"marker3",
"com.yworks.bpmn.marker4":"marker4"}},D);switch(D.activityType){case "activity_type_transaction":z["double"]="1"}switch(D.taskType){case "task_type_send":var w=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;fillColor=#000000;strokeColor=#FFFFFF;");w.geometry.offset=new mxPoint(4,7);break;case "task_type_receive":w=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");w.geometry.offset=new mxPoint(4,7);break;case "task_type_user":w=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");
w.geometry.offset=new mxPoint(4,5);break;case "task_type_manual":w=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");w.geometry.offset=new mxPoint(4,7);break;case "task_type_business_rule":w=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");w.geometry.offset=new mxPoint(4,7);break;case "task_type_service":w=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");w.geometry.offset=new mxPoint(4,5);break;case "task_type_script":w=
new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),w.geometry.offset=new mxPoint(4,5)}w&&(w.vertex=!0,w.geometry.relative=!0,u.insert(w),w=null);var q=0;for(x=1;4>=x;x++)D["marker"+x]&&q++;B=-7.5*q-2*(q-1);for(x=1;x<=q;x++){switch(D["marker"+x]){case "bpmn_marker_closed":w=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");w.geometry.offset=new mxPoint(B,-20);break;case "bpmn_marker_open":w=new mxCell("",new mxGeometry(.5,1,15,15),"shape=rect;part=1;");w.geometry.offset=
new mxPoint(B,-20);var h=new mxCell("",new mxGeometry(.5,.5,8,1),"shape=rect;part=1;");h.geometry.offset=new mxPoint(-4,-1);h.geometry.relative=!0;h.vertex=!0;w.insert(h);break;case "bpmn_marker_loop":w=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");w.geometry.offset=new mxPoint(B,-20);break;case "bpmn_marker_parallel":w=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");w.geometry.offset=new mxPoint(B,-20);break;case "bpmn_marker_sequential":w=new mxCell("",
new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");w.geometry.offset=new mxPoint(B,-20);break;case "bpmn_marker_ad_hoc":w=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;fillColor=#000000");w.geometry.offset=new mxPoint(B,-17);break;case "bpmn_marker_compensation":w=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),w.geometry.offset=new mxPoint(B,-18)}w.geometry.relative=!0;w.vertex=!0;u.insert(w);
B+=20}break;case "js:table":z.shape="swimlane;collapsible=0;swimlaneLine=0";D=B["yjs:TableNodeStyle"]||B["demotablestyle:DemoTableStyle"];!D&&B["bpmn:PoolNodeStyle"]&&(D=B["bpmn:PoolNodeStyle"]["yjs:TableNodeStyle"]);this.mapObject(D,{"backgroundStyle.demotablestyle:TableBackgroundStyle":{"insetFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"tableBackgroundFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"swimlaneFillColor",mod:"color"},"tableBackgroundStroke.yjs:Stroke":{fill:{key:"strokeColor",
mod:"color"},thickness:"strokeWidth"}},"backgroundStyle.yjs:ShapeNodeStyle.fill":{key:"fillColor",mod:"color"},"backgroundStyle.yjs:ShapeNodeStyle.fill.yjs:SolidColorFill.color":{key:"fillColor",mod:"color"}},z);z.swimlaneFillColor=z.fillColor;D=D.table["y:Table"];var I=q=0,F={x:0};B=0;(x=D.Insets)?(x=x.split(","),"0"!=x[0]?(z.startSize=x[0],F.x=parseFloat(x[0]),z.horizontal="0"):"0"!=x[1]&&(z.startSize=x[1],B=parseFloat(x[1]),I+=B)):z.startSize="0";var U={},L={Insets:function(Qa,Fa){Fa.startSize=
Qa.split(",")[0]},"Style.bpmn:AlternatingLeafStripeStyle":{"evenLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"evenFill",mod:"color"},backgroundFill:{key:"evenLaneFill",mod:"color"}},"oddLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"oddFill",mod:"color"},backgroundFill:{key:"oddLaneFill",mod:"color"}}},"Style.yjs:NodeStyleStripeStyleAdapter":{"demotablestyle:DemoStripeStyle":{"stripeInsetFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"tableLineFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"strokeColor",
mod:"color"}},"yjs:ShapeNodeStyle":{fill:{key:"swimlaneFillColor",mod:"color"}}},Size:"height"};this.mapObject(D.RowDefaults,{defaults:{shape:"swimlane;collapsible=0;horizontal=0",startSize:"0"},"y:StripeDefaults":L},U);w={};h={Insets:function(Qa,Fa){Fa.startSize=Qa.split(",")[1]},"Style.bpmn:AlternatingLeafStripeStyle":{"evenLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"evenFill",mod:"color"},backgroundFill:{key:"evenLaneFill",mod:"color"}},"oddLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"oddFill",
mod:"color"},backgroundFill:{key:"oddLaneFill",mod:"color"}}},"Style.yjs:NodeStyleStripeStyleAdapter":{"demotablestyle:DemoStripeStyle":{"stripeInsetFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"tableLineFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"strokeColor",mod:"color"}},"yjs:ShapeNodeStyle":{fill:{key:"swimlaneFillColor",mod:"color"}}},Size:"width"};this.mapObject(D.ColumnDefaults,{defaults:{shape:"swimlane;collapsible=0",startSize:"0",fillColor:"none"},
"y:StripeDefaults":h},w);x=u.geometry;q=D.Rows["y:Row"];I+=parseFloat(w.startSize);var V=F.x,ia=F.x;F.lx=F.x;if(q)for(q instanceof Array||(q=[q]),x=0;x<q.length;x++)F.x=ia,F.lx=ia,I=this.addRow(q[x],u,x&1,I,F,L,U),V=Math.max(F.x,V);D=D.Columns["y:Column"];q=V;if(D)for(D instanceof Array||(D=[D]),x=0;x<D.length;x++)q=this.addColumn(D[x],u,x&1,q,B,h,w);break;case "js:table2":z.shape="swimlane;collapsible=0;swimlaneLine=0";D={};this.mapObject(B,{"y:TableNode":{"y:StyleProperties.y:Property":{"yed.table.section.color":{key:"secColor",
mod:"color"},"yed.table.header.height":"headerH","yed.table.header.color.main":{key:"headerColor",mod:"color"},"yed.table.header.color.alternating":{key:"headerColorAlt",mod:"color"},"yed.table.lane.color.main":{key:"laneColor",mod:"color"},"yed.table.lane.color.alternating":{key:"laneColorAlt",mod:"color"},"yed.table.lane.style":"laneStyle","com.yworks.bpmn.type":"isHorz",POOL_LANE_COLOR_ALTERNATING:{key:"laneColorAlt",mod:"color"},POOL_LANE_COLOR_MAIN:{key:"laneColor",mod:"color"},POOL_LANE_STYLE:"laneStyle",
POOL_HEADER_COLOR_MAIN:{key:"headerColor",mod:"color"},POOL_HEADER_COLOR_ALTERNATING:{key:"headerColorAlt",mod:"color"},POOL_TABLE_SECTION_COLOR:{key:"secColor",mod:"color"}},"y:Table":{"y:DefaultColumnInsets.top":"colHHeight","y:DefaultRowInsets.left":"rowHWidth","y:Insets":{top:"tblHHeight",left:"tblHWidth"}}}},z);w.swimlaneFillColor=w.fillColor;E=u=0;"pool_type_lane_and_column"==z.isHorz||"pool_type_empty"==z.isHorz||"pool_type_lane"==z.isHorz?E=parseFloat(z.tblHWidth):u=parseFloat(z.tblHHeight);
w.startSize=u?u:E;try{p=x["y:TableNode"]["y:Table"]["y:Rows"]["y:Row"];h=x["y:TableNode"]["y:Table"]["y:Columns"]["y:Column"];D="lane.style.rows"==z.laneStyle||"lane_style_rows"==z.laneStyle;p instanceof Array||(p=[p]);h instanceof Array||(h=[h]);A=parseFloat(z.rowHWidth);for(t=0;t<p.length;t++)p[t]["y:Insets"]&&(A=Math.max(A,parseFloat(p[t]["y:Insets"].left)+parseFloat(p[t]["y:Insets"].right)));N=parseFloat(z.colHHeight);for(t=0;t<h.length;t++)h[t]["y:Insets"]&&(N=Math.max(N,parseFloat(h[t]["y:Insets"].top)+
parseFloat(h[t]["y:Insets"].bottom)));D?(this.addTbl2Rows(r,p,u,E,A,N,D,z),this.addTbl2Cols(r,h,u,E,A,N,D,z)):(this.addTbl2Cols(r,h,u,E,A,N,D,z),this.addTbl2Rows(r,p,u,E,A,N,D,z))}catch(Oa){}break;case "js:relationship_big_entity":w.shape="swimlane;startSize=30;rounded=1;arcSize=5;collapsible=0";if(r=x["y:GenericNode"]["y:Fill"])w.fillColor=r.color2,w.swimlaneFillColor=r.color;break;case "js:relationship_attribute":w.shape="1"==w["double"]?"doubleEllipse":"ellipse"}0<k.indexOf("Shadow")&&(w.shadow=
POOL_HEADER_COLOR_MAIN:{key:"headerColor",mod:"color"},POOL_HEADER_COLOR_ALTERNATING:{key:"headerColorAlt",mod:"color"},POOL_TABLE_SECTION_COLOR:{key:"secColor",mod:"color"}},"y:Table":{"y:DefaultColumnInsets.top":"colHHeight","y:DefaultRowInsets.left":"rowHWidth","y:Insets":{top:"tblHHeight",left:"tblHWidth"}}}},D);z.swimlaneFillColor=z.fillColor;L=w=0;"pool_type_lane_and_column"==D.isHorz||"pool_type_empty"==D.isHorz||"pool_type_lane"==D.isHorz?L=parseFloat(D.tblHWidth):w=parseFloat(D.tblHHeight);
z.startSize=w?w:L;try{q=B["y:TableNode"]["y:Table"]["y:Rows"]["y:Row"];h=B["y:TableNode"]["y:Table"]["y:Columns"]["y:Column"];I="lane.style.rows"==D.laneStyle||"lane_style_rows"==D.laneStyle;q instanceof Array||(q=[q]);h instanceof Array||(h=[h]);F=parseFloat(D.rowHWidth);for(x=0;x<q.length;x++)q[x]["y:Insets"]&&(F=Math.max(F,parseFloat(q[x]["y:Insets"].left)+parseFloat(q[x]["y:Insets"].right)));U=parseFloat(D.colHHeight);for(x=0;x<h.length;x++)h[x]["y:Insets"]&&(U=Math.max(U,parseFloat(h[x]["y:Insets"].top)+
parseFloat(h[x]["y:Insets"].bottom)));I?(this.addTbl2Rows(u,q,w,L,F,U,I,D),this.addTbl2Cols(u,h,w,L,F,U,I,D)):(this.addTbl2Cols(u,h,w,L,F,U,I,D),this.addTbl2Rows(u,q,w,L,F,U,I,D))}catch(Qa){}break;case "js:relationship_big_entity":z.shape="swimlane;startSize=30;rounded=1;arcSize=5;collapsible=0";if(u=B["y:GenericNode"]["y:Fill"])z.fillColor=u.color2,z.swimlaneFillColor=u.color;break;case "js:relationship_attribute":z.shape="1"==z["double"]?"doubleEllipse":"ellipse"}0<l.indexOf("Shadow")&&(z.shadow=
"1")}};
mxGraphMlCodec.prototype.addTbl2Rows=function(r,w,x,z,k,t,u,p){x+=t;for(var h=null!=p.isHorz,D=0;D<w.length;D++){var A=D&1,N=new mxCell;N.vertex=!0;var E={shape:"swimlane;collapsible=0;horizontal=0",startSize:k,fillColor:p.secColor||"none",swimlaneLine:h?"0":"1"};0==parseFloat(E.startSize)&&(E.fillColor="none",E.swimlaneLine="0");if(u){var L=A?p.headerColorAlt:p.headerColor;E.swimlaneFillColor=A?p.laneColorAlt:p.laneColor;E.fillColor=L?L:E.swimlaneFillColor}A=parseFloat(w[D].height);L=h&&0==D?t:0;
N.geometry=new mxGeometry(z,x-L,r.geometry.width-z,A+L);x+=A;N.style=this.styleMap2Str(E);r.insert(N)}};
mxGraphMlCodec.prototype.addTbl2Cols=function(r,w,x,z,k,t,u,p){z=k+z;for(var h=null!=p.isHorz,D=0;D<w.length;D++){var A=D&1,N=new mxCell;N.vertex=!0;var E={shape:"swimlane;collapsible=0",startSize:t,fillColor:p.secColor||"none",swimlaneLine:h?"0":"1"};0==parseFloat(E.startSize)&&(E.fillColor="none");if(!u){var L=A?p.headerColorAlt:p.headerColor;E.swimlaneFillColor=A?p.laneColorAlt:p.laneColor;E.fillColor=L?L:E.swimlaneFillColor}A=parseFloat(w[D].width);L=h&&0==D?k:0;N.geometry=new mxGeometry(z-L,
x,A+L,r.geometry.height-x);z+=A;N.style=this.styleMap2Str(E);r.insert(N)}};
mxGraphMlCodec.prototype.addRow=function(r,w,x,z,k,t,u){var p=new mxCell;p.vertex=!0;var h=mxUtils.clone(u);this.mapObject(r,t,h);x?(h.oddFill&&(h.fillColor=h.oddFill),h.oddLaneFill&&(h.swimlaneFillColor=h.oddLaneFill)):(h.evenFill&&(h.fillColor=h.evenFill),h.evenLaneFill&&(h.swimlaneFillColor=h.evenLaneFill));x=parseFloat(h.height);p.geometry=new mxGeometry(k.lx,z,w.geometry.width-k.lx,x);var D=r.Labels;D&&this.addLabels(p,D,h);p.style=this.styleMap2Str(h);w.insert(p);r=r["y:Row"];k.lx=0;h.startSize&&
(k.lx=parseFloat(h.startSize),k.x+=k.lx);w=h=k.x;D=k.lx;var A=0;if(r){r instanceof Array||(r=[r]);for(var N=0;N<r.length;N++)k.x=h,k.lx=D,A=this.addRow(r[N],p,N&1,A,k,t,u),w=Math.max(k.x,w)}k.x=w;x=Math.max(x,A);p.geometry.height=x;return z+=x};
mxGraphMlCodec.prototype.addColumn=function(r,w,x,z,k,t,u){var p=new mxCell;p.vertex=!0;var h=mxUtils.clone(u);this.mapObject(r,t,h);x?(h.oddFill&&(h.fillColor=h.oddFill),h.oddLaneFill&&(h.swimlaneFillColor=h.oddLaneFill)):(h.evenFill&&(h.fillColor=h.evenFill),h.evenLaneFill&&(h.swimlaneFillColor=h.evenLaneFill));x=parseFloat(h.width);p.geometry=new mxGeometry(z,k,x,w.geometry.height-k);var D=r.Labels;D&&this.addLabels(p,D,h);p.style=this.styleMap2Str(h);w.insert(p);r=r["y:Column"];w=0;if(r)for(r instanceof
Array||(r=[r]),h=0;h<r.length;h++)w=this.addColumn(r[h],p,h&1,w,k,t,u);x=Math.max(x,w);p.geometry.width=x;return z+=x};mxGraphMlCodec.prototype.handleFixedRatio=function(r,w){w=w.shape;r=r.geometry;if(w&&r)if(0<w.indexOf(";aspect=fixed"))w=Math.min(r.height,r.width),w==r.height&&(r.x+=(r.width-w)/2),r.height=w,r.width=w;else if(0<w.indexOf(";rotation=90")||0<w.indexOf(";rotation=-90")){w=r.height;var x=r.width;r.height=x;r.width=w;w=(w-x)/2;r.x-=w;r.y+=w}};
mxGraphMlCodec.prototype.addNodeGeo=function(r,w,x,z){var k=w[mxGraphMlConstants.RECT],t=0,u=0,p=30,h=30;k?(t=k[mxGraphMlConstants.X],u=k[mxGraphMlConstants.Y],p=k[mxGraphMlConstants.WIDTH],h=k[mxGraphMlConstants.HEIGHT]):(t=w[mxGraphMlConstants.X_L]||t,u=w[mxGraphMlConstants.Y_L]||u,p=w[mxGraphMlConstants.WIDTH_L]||p,h=w[mxGraphMlConstants.HEIGHT_L]||h);r=r.geometry;r.x=parseFloat(t)-x;r.y=parseFloat(u)-z;r.width=parseFloat(p);r.height=parseFloat(h)};
mxGraphMlCodec.prototype.importEdge=function(r,w,x,z,k){var t=this.getDirectChildNamedElements(r,mxGraphMlConstants.DATA),u=r.getAttribute(mxGraphMlConstants.ID),p=r.getAttribute(mxGraphMlConstants.EDGE_SOURCE),h=r.getAttribute(mxGraphMlConstants.EDGE_TARGET),D=r.getAttribute(mxGraphMlConstants.EDGE_SOURCE_PORT);r=r.getAttribute(mxGraphMlConstants.EDGE_TARGET_PORT);p=this.nodesMap[p];h=this.nodesMap[h];x=w.insertEdge(x,null,"",p.node,h.node,"graphMLId="+u);u={graphMlID:u};for(var A=0;A<t.length;A++){var N=
this.dataElem2Obj(t[A]),E=N["y:PolyLineEdge"]||N["y:GenericEdge"]||N["y:ArcEdge"]||N["y:BezierEdge"]||N["y:QuadCurveEdge"]||N["y:SplineEdge"];N.key==this.edgesKeys[mxGraphMlConstants.EDGE_GEOMETRY].key?this.addEdgeGeo(x,N,z,k):N.key==this.edgesKeys[mxGraphMlConstants.EDGE_STYLE].key?this.addEdgeStyle(x,N,u):N.key==this.edgesKeys[mxGraphMlConstants.EDGE_LABELS].key?this.addLabels(x,N,u,w):E&&(this.addEdgeStyle(x,N,u),N=this.addEdgePath(x,E["y:Path"],u,z,k),E["y:EdgeLabel"]&&this.addLabels(x,E["y:EdgeLabel"],
u,w,N),null!=u.shape&&0==u.shape.indexOf("link")&&(u.width=u.strokeWidth,u.strokeWidth=1))}p.ports&&D&&(w=p.ports[D],w.pos&&(u.exitX=w.pos.x,u.exitY=w.pos.y));h.ports&&r&&(w=h.ports[r],w.pos&&(u.entryX=w.pos.x,u.entryY=w.pos.y));x.style=this.styleMap2Str(u);return x};
mxGraphMlCodec.prototype.addEdgeGeo=function(r,w,x,z){if(w=w[mxGraphMlConstants.Y_BEND]){for(var k=[],t=0;t<w.length;t++){var u=w[t][mxGraphMlConstants.LOCATION];u&&(u=u.split(","),k.push(new mxPoint(parseFloat(u[0])-x,parseFloat(u[1])-z)))}r.geometry.points=k}};
mxGraphMlCodec.prototype.addEdgePath=function(r,w,x,z,k){var t=[];if(w){var u=parseFloat(w.sx),p=parseFloat(w.sy),h=parseFloat(w.tx),D=parseFloat(w.ty),A=r.source.geometry;0!=u||0!=p?(x.exitX=(u+A.width/2)/A.width,x.exitY=(p+A.height/2)/A.height,t.push(new mxPoint(A.x+x.exitX*A.width-z,A.y+x.exitY*A.height-k))):t.push(new mxPoint(A.x+A.width/2-z,A.y+A.height/2-k));u=r.target.geometry;0!=h||0!=D?(x.entryX=(h+u.width/2)/u.width,x.entryY=(D+u.height/2)/u.height,x=new mxPoint(u.x+x.entryX*u.width-z,u.y+
x.entryY*u.height-k)):x=new mxPoint(u.x+u.width/2-z,u.y+u.height/2-k);if(w=w["y:Point"]){w instanceof Array||(w=[w]);h=[];for(D=0;D<w.length;D++)u=new mxPoint(parseFloat(w[D].x)-z,parseFloat(w[D].y)-k),h.push(u),t.push(u);r.geometry.points=h}t.push(x)}return t};
mxGraphMlCodec.prototype.addEdgeStyle=function(r,w,x){r=function(p,h){h.dashed=1;switch(p){case "DashDot":p="3 1 1 1";break;case "Dot":p="1 1";break;case "DashDotDot":p="3 1 1 1 1 1";break;case "Dash":p="3 1";break;default:p=p.replace(/0/g,"1")}p&&(0>p.indexOf(" ")&&(p=p+" "+p),h.dashPattern=p)};var z=function(p,h){h.endFill="WHITE"==p||0==p.indexOf("white_")||0==p.indexOf("transparent_")?"0":"1"},k=function(p,h){h.startFill="WHITE"==p||0==p.indexOf("white_")||0==p.indexOf("transparent_")?"0":"1"},
t={defaults:{rounded:0,endArrow:"none"},configuration:{key:"shape",mod:"shape"},"y:LineStyle":{color:{key:"strokeColor",mod:"color"},type:function(p,h){"line"!=p&&(h.dashed=1);var D=null;switch(p){case "dashed":D="3 1";break;case "dotted":D="1 1";break;case "dashed_dotted":D="3 2 1 2"}D&&(h.dashPattern=D)},width:"strokeWidth"},"y:Arrows":{source:function(p,h){h.startArrow=mxGraphMlArrowsMap[p]||"classic";k(p,h)},target:function(p,h){h.endArrow=mxGraphMlArrowsMap[p]||"classic";z(p,h)}},"y:BendStyle":{smoothed:{key:"rounded",
mod:"bool"}}},u=mxUtils.clone(t);u.defaults.curved="1";this.mapObject(w,{"yjs:PolylineEdgeStyle":{defaults:{endArrow:"none",rounded:0},smoothingLength:function(p,h){h.rounded=p&&0<parseFloat(p)?"1":"0"},stroke:{key:"strokeColor",mod:"color"},"stroke.yjs:Stroke":{dashStyle:r,"dashStyle.yjs:DashStyle.dashes":r,fill:{key:"strokeColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"strokeColor",mod:"color"},"thickness.sys:Double":"strokeWidth",thickness:"strokeWidth"},targetArrow:{key:"endArrow",
mod:"arrow"},"targetArrow.yjs:Arrow":{defaults:{endArrow:"classic",endFill:"1",endSize:"6"},fill:z,scale:{key:"endSize",mod:"scale",scale:5},type:{key:"endArrow",mod:"arrow"}},sourceArrow:{key:"startArrow",mod:"arrow"},"sourceArrow.yjs:Arrow":{defaults:{startArrow:"classic",startFill:"1",startSize:"6"},fill:k,scale:{key:"startSize",mod:"scale",scale:5},type:{key:"startArrow",mod:"arrow"}}},"y:PolyLineEdge":t,"y:GenericEdge":t,"y:ArcEdge":u,"y:BezierEdge":u,"y:QuadCurveEdge":u,"y:SplineEdge":u},x)};
mxGraphMlCodec.prototype.addLabels=function(r,w,x,z,k){x=r.getChildCount();var t=w[mxGraphMlConstants.Y_LABEL]||w;w=[];var u=[],p=[];if(t){t instanceof Array||(t=[t]);for(var h=0;h<t.length;h++){var D=t[h],A={},N=D[mxGraphMlConstants.TEXT]||D;N&&(N=N["#text"]);var E=D[mxGraphMlConstants.LAYOUTPARAMETER]||D||{},L=function(Fa,Ca){Fa&&(Fa=Fa.toUpperCase());var Ga=Ca.fontStyle||0;switch(Fa){case "ITALIC":Ga|=2;break;case "BOLD":Ga|=1;break;case "UNDERLINE":Ga|=4}Ca.fontStyle=Ga};this.mapObject(D,{"Style.yjs:DefaultLabelStyle":{backgroundFill:{key:"labelBackgroundColor",
mod:"color"},"backgroundFill.yjs:SolidColorFill.color":{key:"labelBackgroundColor",mod:"color"},backgroundStroke:{key:"labelBorderColor",mod:"color"},"backgroundStroke.yjs:Stroke.fill":{key:"labelBorderColor",mod:"color"},textFill:{key:"fontColor",mod:"color"},"textFill.yjs:SolidColorFill.color":{key:"fontColor",mod:"color"},textSize:"fontSize",horizontalTextAlignment:"align",verticalTextAlignment:"verticalAlign",wrapping:function(Fa,Ca){Fa&&(Ca.whiteSpace="wrap")},"font.yjs:Font":{fontFamily:"fontFamily",
fontSize:"fontSize",fontStyle:L,fontWeight:L,textDecoration:L}},"Style.y:VoidLabelStyle":function(Fa,Ca){Ca.VoidLbl=!0},alignment:"align",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:L,underlinedText:function(Fa,Ca){var Ga=Ca.fontStyle||0;"true"==Fa&&(Ga|=4);Ca.fontStyle=Ga},horizontalTextPosition:"",textColor:{key:"fontColor",mod:"color"},verticalTextPosition:"verticalAlign",hasText:{key:"hasText",mod:"bool"},rotationAngle:"rotation"},A);A.VoidLbl||"0"==A.hasText||(w.push(N),u.push(A),p.push(E))}}for(h=
0;h<w.length;h++)if(w[h]&&(!p[h]||!p[h]["bpmn:ParticipantParameter"])){w[h]=mxUtils.htmlEntities(w[h],!1).replace(/\n/g,"<br/>");E=r.geometry;A=new mxCell(w[h],new mxGeometry(0,0,E.width,E.height),"text;html=1;spacing=0;"+this.styleMap2Str(u[h]));A.vertex=!0;r.insert(A,x);t=A.geometry;if(p[h]["y:RatioAnchoredLabelModelParameter"])E=mxUtils.getSizeForString(w[h],u[h].fontSize,u[h].fontFamily),(D=p[h]["y:RatioAnchoredLabelModelParameter"].LayoutOffset)?(D=D.split(","),t.x=parseFloat(D[0]),t.y=parseFloat(D[1]),
t.width=E.width,t.height=E.height,A.style+=";spacingTop=-4;"):A.style+=";align=center;";else if(p[h]["y:InteriorLabelModel"]){switch(p[h]["y:InteriorLabelModel"]){case "Center":A.style+=";verticalAlign=middle;";break;case "North":t.height=1;break;case "West":t.width=E.height,t.height=E.width,t.y=E.height/2-E.width/2,t.x=-t.y,A.style+=";rotation=-90"}A.style+=";align=center;"}else if(p[h]["y:StretchStripeLabelModel"]||p[h]["y:StripeLabelModelParameter"])switch(p[h]["y:StretchStripeLabelModel"]||p[h]["y:StripeLabelModelParameter"].Position){case "North":t.height=
1;break;case "West":t.width=E.height,t.height=E.width,t.y=E.height/2-E.width/2,t.x=-t.y,A.style+=";rotation=-90;"}else if(p[h]["bpmn:PoolHeaderLabelModel"]){switch(p[h]["bpmn:PoolHeaderLabelModel"]){case "NORTH":t.height=1;break;case "WEST":t.width=E.height,t.height=E.width,t.y=E.height/2-E.width/2,t.x=-t.y,A.style+=";rotation=-90;"}A.style+=";align=center;"}else if(p[h]["y:InteriorStretchLabelModelParameter"])A.style+=";align=center;";else if(p[h]["y:ExteriorLabelModel"])switch(p[h]["y:ExteriorLabelModel"]){case "East":A.style+=
";labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;";break;case "South":A.style+=";labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;";break;case "North":A.style+=";labelPosition=center;verticalLabelPosition=top;align=center;verticalAlign=bottom;";break;case "West":A.style+=";labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;"}else if(p[h]["y:FreeEdgeLabelModelParameter"]){t.relative=!0;t.adjustIt=!0;E=p[h]["y:FreeEdgeLabelModelParameter"];
D=E.Ratio;L=E.Distance;var X=E.Angle;D&&(t.x=parseFloat(D));L&&(t.y=parseFloat(L));X&&(A.style+=";rotation="+parseFloat(X)*(180/Math.PI));A.style+=";verticalAlign=middle;"}else if(p[h]["y:EdgePathLabelModelParameter"]){t.relative=!0;E=p[h]["y:EdgePathLabelModelParameter"];N=E.SideOfEdge;D=E.SegmentRatio;t.x=D?2*parseFloat(D)-1:0;if(N)switch(N){case "RightOfEdge":t.y=-15;break;case "LeftOfEdge":t.y=15}A.style+=";verticalAlign=middle;"}else if(E=parseFloat(p[h].x),D=parseFloat(p[h].y),p[h].width&&(t.width=
parseFloat(p[h].width)),p[h].height&&(t.height=parseFloat(p[h].height)),r.edge)if(t.relative=!0,t.x=0,t.y=0,A=r.source.geometry.getCenterX()-r.target.geometry.getCenterX(),N=r.source.geometry.getCenterY()-r.target.geometry.getCenterY(),z&&k&&p[h]["y:ModelParameter"]&&p[h]["y:ModelParameter"]["y:SmartEdgeLabelModelParameter"]){E=p[h]["y:ModelParameter"]["y:SmartEdgeLabelModelParameter"];X=parseFloat(E.angle);L=parseFloat(E.distance);var Oa=E.position;D=parseFloat(E.ratio);E=parseFloat(E.segment);var wa=
new mxCellState;wa.absolutePoints=k;z.view.updateEdgeBounds(wa);var Ka="left"==Oa?1:-1;if(-1==E&&6.283185307179586==X)t.offset=new mxPoint(1>Math.abs(D)?wa.segments[0]*D:D,Ka*L);else{-1==E&&(E=0);for(var Va=X=0;Va<E;Va++)X+=wa.segments[Va];X+=wa.segments[E]*D;t.x=X/wa.length*2-1;t.y=(("center"==Oa?0:L)+t.height/2*Ka*(Math.abs(A)>Math.abs(N)?1:-1))*Ka}}else isNaN(E)||isNaN(D)||(t.offset=new mxPoint(E+A/2+(0<A?-t.width:t.width),D));else t.x=E||0,t.y=D||0;u[h].rotation&&270==u[h].rotation&&(t.x-=t.height/
2)}return{lblTxts:w,lblStyles:u}};mxGraphMlCodec.prototype.processPage=function(r,w){r=(new mxCodec).encode(r.getModel());r.setAttribute("style","default-style2");r=mxUtils.getXml(r);w='<diagram name="Page '+w+'">'+Graph.compress(r);return w+"</diagram>"};mxGraphMlCodec.prototype.getDirectChildNamedElements=function(r,w){var x=[];for(r=r.firstChild;null!=r;r=r.nextSibling)null!=r&&1==r.nodeType&&w==r.nodeName&&x.push(r);return x};
mxGraphMlCodec.prototype.getDirectFirstChildNamedElements=function(r,w){for(r=r.firstChild;null!=r;r=r.nextSibling)if(null!=r&&1==r.nodeType&&w==r.nodeName)return r;return null};mxGraphMlCodec.prototype.getDirectChildElements=function(r){var w=[];for(r=r.firstChild;null!=r;r=r.nextSibling)null!=r&&1==r.nodeType&&w.push(r);return w};mxGraphMlCodec.prototype.getDirectFirstChildElement=function(r){for(r=r.firstChild;null!=r;r=r.nextSibling)if(null!=r&&1==r.nodeType)return r;return null};
var mxGraphMlConverters={"orgchartconverters.linebreakconverter":function(r,w){if("string"===typeof r){for(var x=r;20<x.length&&-1<x.indexOf(" ");)x=x.substring(0,x.lastIndexOf(" "));return"true"===w?x:r.substring(x.length)}return""},"orgchartconverters.borderconverter":function(r,w){return"boolean"===typeof r?r?"#FFBB33":"rgba(0,0,0,0)":"#FFF"},"orgchartconverters.addhashconverter":function(r,w){return"string"===typeof r?"string"===typeof w?"#"+r+w:"#"+r:r},"orgchartconverters.intermediateconverter":function(r,
w){return"string"===typeof r&&17<r.length?r.replace(/^(.)(\S*)(.*)/,"$1.$3"):r},"orgchartconverters.overviewconverter":function(r,w){return"string"===typeof r&&0<r.length?r.replace(/^(.)(\S*)(.*)/,"$1.$3"):""}},mxGraphMlArrowsMap={SIMPLE:"open",TRIANGLE:"block",DIAMOND:"diamond",CIRCLE:"oval",CROSS:"cross",SHORT:"classicThin",DEFAULT:"classic",NONE:"none",none:"none",white_delta_bar:"block",delta:"block",standard:"classic",diamond:"diamond",white_diamond:"diamond",white_delta:"block",plain:"open",
mxGraphMlCodec.prototype.addTbl2Rows=function(u,z,B,D,l,x,w,q){B+=x;for(var h=null!=q.isHorz,I=0;I<z.length;I++){var F=I&1,U=new mxCell;U.vertex=!0;var L={shape:"swimlane;collapsible=0;horizontal=0",startSize:l,fillColor:q.secColor||"none",swimlaneLine:h?"0":"1"};0==parseFloat(L.startSize)&&(L.fillColor="none",L.swimlaneLine="0");if(w){var V=F?q.headerColorAlt:q.headerColor;L.swimlaneFillColor=F?q.laneColorAlt:q.laneColor;L.fillColor=V?V:L.swimlaneFillColor}F=parseFloat(z[I].height);V=h&&0==I?x:0;
U.geometry=new mxGeometry(D,B-V,u.geometry.width-D,F+V);B+=F;U.style=this.styleMap2Str(L);u.insert(U)}};
mxGraphMlCodec.prototype.addTbl2Cols=function(u,z,B,D,l,x,w,q){D=l+D;for(var h=null!=q.isHorz,I=0;I<z.length;I++){var F=I&1,U=new mxCell;U.vertex=!0;var L={shape:"swimlane;collapsible=0",startSize:x,fillColor:q.secColor||"none",swimlaneLine:h?"0":"1"};0==parseFloat(L.startSize)&&(L.fillColor="none");if(!w){var V=F?q.headerColorAlt:q.headerColor;L.swimlaneFillColor=F?q.laneColorAlt:q.laneColor;L.fillColor=V?V:L.swimlaneFillColor}F=parseFloat(z[I].width);V=h&&0==I?l:0;U.geometry=new mxGeometry(D-V,
B,F+V,u.geometry.height-B);D+=F;U.style=this.styleMap2Str(L);u.insert(U)}};
mxGraphMlCodec.prototype.addRow=function(u,z,B,D,l,x,w){var q=new mxCell;q.vertex=!0;var h=mxUtils.clone(w);this.mapObject(u,x,h);B?(h.oddFill&&(h.fillColor=h.oddFill),h.oddLaneFill&&(h.swimlaneFillColor=h.oddLaneFill)):(h.evenFill&&(h.fillColor=h.evenFill),h.evenLaneFill&&(h.swimlaneFillColor=h.evenLaneFill));B=parseFloat(h.height);q.geometry=new mxGeometry(l.lx,D,z.geometry.width-l.lx,B);var I=u.Labels;I&&this.addLabels(q,I,h);q.style=this.styleMap2Str(h);z.insert(q);u=u["y:Row"];l.lx=0;h.startSize&&
(l.lx=parseFloat(h.startSize),l.x+=l.lx);z=h=l.x;I=l.lx;var F=0;if(u){u instanceof Array||(u=[u]);for(var U=0;U<u.length;U++)l.x=h,l.lx=I,F=this.addRow(u[U],q,U&1,F,l,x,w),z=Math.max(l.x,z)}l.x=z;B=Math.max(B,F);q.geometry.height=B;return D+=B};
mxGraphMlCodec.prototype.addColumn=function(u,z,B,D,l,x,w){var q=new mxCell;q.vertex=!0;var h=mxUtils.clone(w);this.mapObject(u,x,h);B?(h.oddFill&&(h.fillColor=h.oddFill),h.oddLaneFill&&(h.swimlaneFillColor=h.oddLaneFill)):(h.evenFill&&(h.fillColor=h.evenFill),h.evenLaneFill&&(h.swimlaneFillColor=h.evenLaneFill));B=parseFloat(h.width);q.geometry=new mxGeometry(D,l,B,z.geometry.height-l);var I=u.Labels;I&&this.addLabels(q,I,h);q.style=this.styleMap2Str(h);z.insert(q);u=u["y:Column"];z=0;if(u)for(u instanceof
Array||(u=[u]),h=0;h<u.length;h++)z=this.addColumn(u[h],q,h&1,z,l,x,w);B=Math.max(B,z);q.geometry.width=B;return D+=B};mxGraphMlCodec.prototype.handleFixedRatio=function(u,z){z=z.shape;u=u.geometry;if(z&&u)if(0<z.indexOf(";aspect=fixed"))z=Math.min(u.height,u.width),z==u.height&&(u.x+=(u.width-z)/2),u.height=z,u.width=z;else if(0<z.indexOf(";rotation=90")||0<z.indexOf(";rotation=-90")){z=u.height;var B=u.width;u.height=B;u.width=z;z=(z-B)/2;u.x-=z;u.y+=z}};
mxGraphMlCodec.prototype.addNodeGeo=function(u,z,B,D){var l=z[mxGraphMlConstants.RECT],x=0,w=0,q=30,h=30;l?(x=l[mxGraphMlConstants.X],w=l[mxGraphMlConstants.Y],q=l[mxGraphMlConstants.WIDTH],h=l[mxGraphMlConstants.HEIGHT]):(x=z[mxGraphMlConstants.X_L]||x,w=z[mxGraphMlConstants.Y_L]||w,q=z[mxGraphMlConstants.WIDTH_L]||q,h=z[mxGraphMlConstants.HEIGHT_L]||h);u=u.geometry;u.x=parseFloat(x)-B;u.y=parseFloat(w)-D;u.width=parseFloat(q);u.height=parseFloat(h)};
mxGraphMlCodec.prototype.importEdge=function(u,z,B,D,l){var x=this.getDirectChildNamedElements(u,mxGraphMlConstants.DATA),w=u.getAttribute(mxGraphMlConstants.ID),q=u.getAttribute(mxGraphMlConstants.EDGE_SOURCE),h=u.getAttribute(mxGraphMlConstants.EDGE_TARGET),I=u.getAttribute(mxGraphMlConstants.EDGE_SOURCE_PORT);u=u.getAttribute(mxGraphMlConstants.EDGE_TARGET_PORT);q=this.nodesMap[q];h=this.nodesMap[h];B=z.insertEdge(B,null,"",q.node,h.node,"graphMLId="+w);w={graphMlID:w};for(var F=0;F<x.length;F++){var U=
this.dataElem2Obj(x[F]),L=U["y:PolyLineEdge"]||U["y:GenericEdge"]||U["y:ArcEdge"]||U["y:BezierEdge"]||U["y:QuadCurveEdge"]||U["y:SplineEdge"];U.key==this.edgesKeys[mxGraphMlConstants.EDGE_GEOMETRY].key?this.addEdgeGeo(B,U,D,l):U.key==this.edgesKeys[mxGraphMlConstants.EDGE_STYLE].key?this.addEdgeStyle(B,U,w):U.key==this.edgesKeys[mxGraphMlConstants.EDGE_LABELS].key?this.addLabels(B,U,w,z):L&&(this.addEdgeStyle(B,U,w),U=this.addEdgePath(B,L["y:Path"],w,D,l),L["y:EdgeLabel"]&&this.addLabels(B,L["y:EdgeLabel"],
w,z,U),null!=w.shape&&0==w.shape.indexOf("link")&&(w.width=w.strokeWidth,w.strokeWidth=1))}q.ports&&I&&(z=q.ports[I],z.pos&&(w.exitX=z.pos.x,w.exitY=z.pos.y));h.ports&&u&&(z=h.ports[u],z.pos&&(w.entryX=z.pos.x,w.entryY=z.pos.y));B.style=this.styleMap2Str(w);return B};
mxGraphMlCodec.prototype.addEdgeGeo=function(u,z,B,D){if(z=z[mxGraphMlConstants.Y_BEND]){for(var l=[],x=0;x<z.length;x++){var w=z[x][mxGraphMlConstants.LOCATION];w&&(w=w.split(","),l.push(new mxPoint(parseFloat(w[0])-B,parseFloat(w[1])-D)))}u.geometry.points=l}};
mxGraphMlCodec.prototype.addEdgePath=function(u,z,B,D,l){var x=[];if(z){var w=parseFloat(z.sx),q=parseFloat(z.sy),h=parseFloat(z.tx),I=parseFloat(z.ty),F=u.source.geometry;0!=w||0!=q?(B.exitX=(w+F.width/2)/F.width,B.exitY=(q+F.height/2)/F.height,x.push(new mxPoint(F.x+B.exitX*F.width-D,F.y+B.exitY*F.height-l))):x.push(new mxPoint(F.x+F.width/2-D,F.y+F.height/2-l));w=u.target.geometry;0!=h||0!=I?(B.entryX=(h+w.width/2)/w.width,B.entryY=(I+w.height/2)/w.height,B=new mxPoint(w.x+B.entryX*w.width-D,w.y+
B.entryY*w.height-l)):B=new mxPoint(w.x+w.width/2-D,w.y+w.height/2-l);if(z=z["y:Point"]){z instanceof Array||(z=[z]);h=[];for(I=0;I<z.length;I++)w=new mxPoint(parseFloat(z[I].x)-D,parseFloat(z[I].y)-l),h.push(w),x.push(w);u.geometry.points=h}x.push(B)}return x};
mxGraphMlCodec.prototype.addEdgeStyle=function(u,z,B){u=function(q,h){h.dashed=1;switch(q){case "DashDot":q="3 1 1 1";break;case "Dot":q="1 1";break;case "DashDotDot":q="3 1 1 1 1 1";break;case "Dash":q="3 1";break;default:q=q.replace(/0/g,"1")}q&&(0>q.indexOf(" ")&&(q=q+" "+q),h.dashPattern=q)};var D=function(q,h){h.endFill="WHITE"==q||0==q.indexOf("white_")||0==q.indexOf("transparent_")?"0":"1"},l=function(q,h){h.startFill="WHITE"==q||0==q.indexOf("white_")||0==q.indexOf("transparent_")?"0":"1"},
x={defaults:{rounded:0,endArrow:"none"},configuration:{key:"shape",mod:"shape"},"y:LineStyle":{color:{key:"strokeColor",mod:"color"},type:function(q,h){"line"!=q&&(h.dashed=1);var I=null;switch(q){case "dashed":I="3 1";break;case "dotted":I="1 1";break;case "dashed_dotted":I="3 2 1 2"}I&&(h.dashPattern=I)},width:"strokeWidth"},"y:Arrows":{source:function(q,h){h.startArrow=mxGraphMlArrowsMap[q]||"classic";l(q,h)},target:function(q,h){h.endArrow=mxGraphMlArrowsMap[q]||"classic";D(q,h)}},"y:BendStyle":{smoothed:{key:"rounded",
mod:"bool"}}},w=mxUtils.clone(x);w.defaults.curved="1";this.mapObject(z,{"yjs:PolylineEdgeStyle":{defaults:{endArrow:"none",rounded:0},smoothingLength:function(q,h){h.rounded=q&&0<parseFloat(q)?"1":"0"},stroke:{key:"strokeColor",mod:"color"},"stroke.yjs:Stroke":{dashStyle:u,"dashStyle.yjs:DashStyle.dashes":u,fill:{key:"strokeColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"strokeColor",mod:"color"},"thickness.sys:Double":"strokeWidth",thickness:"strokeWidth"},targetArrow:{key:"endArrow",
mod:"arrow"},"targetArrow.yjs:Arrow":{defaults:{endArrow:"classic",endFill:"1",endSize:"6"},fill:D,scale:{key:"endSize",mod:"scale",scale:5},type:{key:"endArrow",mod:"arrow"}},sourceArrow:{key:"startArrow",mod:"arrow"},"sourceArrow.yjs:Arrow":{defaults:{startArrow:"classic",startFill:"1",startSize:"6"},fill:l,scale:{key:"startSize",mod:"scale",scale:5},type:{key:"startArrow",mod:"arrow"}}},"y:PolyLineEdge":x,"y:GenericEdge":x,"y:ArcEdge":w,"y:BezierEdge":w,"y:QuadCurveEdge":w,"y:SplineEdge":w},B)};
mxGraphMlCodec.prototype.addLabels=function(u,z,B,D,l){B=u.getChildCount();var x=z[mxGraphMlConstants.Y_LABEL]||z;z=[];var w=[],q=[];if(x){x instanceof Array||(x=[x]);for(var h=0;h<x.length;h++){var I=x[h],F={},U=I[mxGraphMlConstants.TEXT]||I;U&&(U=U["#text"]);var L=I[mxGraphMlConstants.LAYOUTPARAMETER]||I||{},V=function(Ja,k){Ja&&(Ja=Ja.toUpperCase());var r=k.fontStyle||0;switch(Ja){case "ITALIC":r|=2;break;case "BOLD":r|=1;break;case "UNDERLINE":r|=4}k.fontStyle=r};this.mapObject(I,{"Style.yjs:DefaultLabelStyle":{backgroundFill:{key:"labelBackgroundColor",
mod:"color"},"backgroundFill.yjs:SolidColorFill.color":{key:"labelBackgroundColor",mod:"color"},backgroundStroke:{key:"labelBorderColor",mod:"color"},"backgroundStroke.yjs:Stroke.fill":{key:"labelBorderColor",mod:"color"},textFill:{key:"fontColor",mod:"color"},"textFill.yjs:SolidColorFill.color":{key:"fontColor",mod:"color"},textSize:"fontSize",horizontalTextAlignment:"align",verticalTextAlignment:"verticalAlign",wrapping:function(Ja,k){Ja&&(k.whiteSpace="wrap")},"font.yjs:Font":{fontFamily:"fontFamily",
fontSize:"fontSize",fontStyle:V,fontWeight:V,textDecoration:V}},"Style.y:VoidLabelStyle":function(Ja,k){k.VoidLbl=!0},alignment:"align",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:V,underlinedText:function(Ja,k){var r=k.fontStyle||0;"true"==Ja&&(r|=4);k.fontStyle=r},horizontalTextPosition:"",textColor:{key:"fontColor",mod:"color"},verticalTextPosition:"verticalAlign",hasText:{key:"hasText",mod:"bool"},rotationAngle:"rotation"},F);F.VoidLbl||"0"==F.hasText||(z.push(U),w.push(F),q.push(L))}}for(h=
0;h<z.length;h++)if(z[h]&&(!q[h]||!q[h]["bpmn:ParticipantParameter"])){z[h]=mxUtils.htmlEntities(z[h],!1).replace(/\n/g,"<br/>");L=u.geometry;F=new mxCell(z[h],new mxGeometry(0,0,L.width,L.height),"text;html=1;spacing=0;"+this.styleMap2Str(w[h]));F.vertex=!0;u.insert(F,B);x=F.geometry;if(q[h]["y:RatioAnchoredLabelModelParameter"])L=mxUtils.getSizeForString(z[h],w[h].fontSize,w[h].fontFamily),(I=q[h]["y:RatioAnchoredLabelModelParameter"].LayoutOffset)?(I=I.split(","),x.x=parseFloat(I[0]),x.y=parseFloat(I[1]),
x.width=L.width,x.height=L.height,F.style+=";spacingTop=-4;"):F.style+=";align=center;";else if(q[h]["y:InteriorLabelModel"]){switch(q[h]["y:InteriorLabelModel"]){case "Center":F.style+=";verticalAlign=middle;";break;case "North":x.height=1;break;case "West":x.width=L.height,x.height=L.width,x.y=L.height/2-L.width/2,x.x=-x.y,F.style+=";rotation=-90"}F.style+=";align=center;"}else if(q[h]["y:StretchStripeLabelModel"]||q[h]["y:StripeLabelModelParameter"])switch(q[h]["y:StretchStripeLabelModel"]||q[h]["y:StripeLabelModelParameter"].Position){case "North":x.height=
1;break;case "West":x.width=L.height,x.height=L.width,x.y=L.height/2-L.width/2,x.x=-x.y,F.style+=";rotation=-90;"}else if(q[h]["bpmn:PoolHeaderLabelModel"]){switch(q[h]["bpmn:PoolHeaderLabelModel"]){case "NORTH":x.height=1;break;case "WEST":x.width=L.height,x.height=L.width,x.y=L.height/2-L.width/2,x.x=-x.y,F.style+=";rotation=-90;"}F.style+=";align=center;"}else if(q[h]["y:InteriorStretchLabelModelParameter"])F.style+=";align=center;";else if(q[h]["y:ExteriorLabelModel"])switch(q[h]["y:ExteriorLabelModel"]){case "East":F.style+=
";labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;";break;case "South":F.style+=";labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;";break;case "North":F.style+=";labelPosition=center;verticalLabelPosition=top;align=center;verticalAlign=bottom;";break;case "West":F.style+=";labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;"}else if(q[h]["y:FreeEdgeLabelModelParameter"]){x.relative=!0;x.adjustIt=!0;L=q[h]["y:FreeEdgeLabelModelParameter"];
I=L.Ratio;V=L.Distance;var ia=L.Angle;I&&(x.x=parseFloat(I));V&&(x.y=parseFloat(V));ia&&(F.style+=";rotation="+parseFloat(ia)*(180/Math.PI));F.style+=";verticalAlign=middle;"}else if(q[h]["y:EdgePathLabelModelParameter"]){x.relative=!0;L=q[h]["y:EdgePathLabelModelParameter"];U=L.SideOfEdge;I=L.SegmentRatio;x.x=I?2*parseFloat(I)-1:0;if(U)switch(U){case "RightOfEdge":x.y=-15;break;case "LeftOfEdge":x.y=15}F.style+=";verticalAlign=middle;"}else if(L=parseFloat(q[h].x),I=parseFloat(q[h].y),q[h].width&&
(x.width=parseFloat(q[h].width)),q[h].height&&(x.height=parseFloat(q[h].height)),u.edge)if(x.relative=!0,x.x=0,x.y=0,F=u.source.geometry.getCenterX()-u.target.geometry.getCenterX(),U=u.source.geometry.getCenterY()-u.target.geometry.getCenterY(),D&&l&&q[h]["y:ModelParameter"]&&q[h]["y:ModelParameter"]["y:SmartEdgeLabelModelParameter"]){L=q[h]["y:ModelParameter"]["y:SmartEdgeLabelModelParameter"];ia=parseFloat(L.angle);V=parseFloat(L.distance);var Qa=L.position;I=parseFloat(L.ratio);L=parseFloat(L.segment);
var Fa=new mxCellState;Fa.absolutePoints=l;D.view.updateEdgeBounds(Fa);var Pa="left"==Qa?1:-1;if(-1==L&&6.283185307179586==ia)x.offset=new mxPoint(1>Math.abs(I)?Fa.segments[0]*I:I,Pa*V);else{-1==L&&(L=0);for(var Xa=ia=0;Xa<L;Xa++)ia+=Fa.segments[Xa];ia+=Fa.segments[L]*I;x.x=ia/Fa.length*2-1;x.y=(("center"==Qa?0:V)+x.height/2*Pa*(Math.abs(F)>Math.abs(U)?1:-1))*Pa}}else isNaN(L)||isNaN(I)||(x.offset=new mxPoint(L+F/2+(0<F?-x.width:x.width),I));else x.x=L||0,x.y=I||0;w[h].rotation&&270==w[h].rotation&&
(x.x-=x.height/2)}return{lblTxts:z,lblStyles:w}};mxGraphMlCodec.prototype.processPage=function(u,z){u=(new mxCodec).encode(u.getModel());u.setAttribute("style","default-style2");u=mxUtils.getXml(u);z='<diagram name="Page '+z+'">'+Graph.compress(u);return z+"</diagram>"};mxGraphMlCodec.prototype.getDirectChildNamedElements=function(u,z){var B=[];for(u=u.firstChild;null!=u;u=u.nextSibling)null!=u&&1==u.nodeType&&z==u.nodeName&&B.push(u);return B};
mxGraphMlCodec.prototype.getDirectFirstChildNamedElements=function(u,z){for(u=u.firstChild;null!=u;u=u.nextSibling)if(null!=u&&1==u.nodeType&&z==u.nodeName)return u;return null};mxGraphMlCodec.prototype.getDirectChildElements=function(u){var z=[];for(u=u.firstChild;null!=u;u=u.nextSibling)null!=u&&1==u.nodeType&&z.push(u);return z};mxGraphMlCodec.prototype.getDirectFirstChildElement=function(u){for(u=u.firstChild;null!=u;u=u.nextSibling)if(null!=u&&1==u.nodeType)return u;return null};
var mxGraphMlConverters={"orgchartconverters.linebreakconverter":function(u,z){if("string"===typeof u){for(var B=u;20<B.length&&-1<B.indexOf(" ");)B=B.substring(0,B.lastIndexOf(" "));return"true"===z?B:u.substring(B.length)}return""},"orgchartconverters.borderconverter":function(u,z){return"boolean"===typeof u?u?"#FFBB33":"rgba(0,0,0,0)":"#FFF"},"orgchartconverters.addhashconverter":function(u,z){return"string"===typeof u?"string"===typeof z?"#"+u+z:"#"+u:u},"orgchartconverters.intermediateconverter":function(u,
z){return"string"===typeof u&&17<u.length?u.replace(/^(.)(\S*)(.*)/,"$1.$3"):u},"orgchartconverters.overviewconverter":function(u,z){return"string"===typeof u&&0<u.length?u.replace(/^(.)(\S*)(.*)/,"$1.$3"):""}},mxGraphMlArrowsMap={SIMPLE:"open",TRIANGLE:"block",DIAMOND:"diamond",CIRCLE:"oval",CROSS:"cross",SHORT:"classicThin",DEFAULT:"classic",NONE:"none",none:"none",white_delta_bar:"block",delta:"block",standard:"classic",diamond:"diamond",white_diamond:"diamond",white_delta:"block",plain:"open",
skewed_dash:"dash",concave:"openThin",transparent_circle:"oval",crows_foot_many:"ERmany",crows_foot_one:"ERone",crows_foot_one_optional:"ERzeroToOne",crows_foot_one_mandatory:"ERmandOne",crows_foot_many_optional:"ERzeroToMany",crows_foot_many_mandatory:"ERoneToMany",white_circle:"oval",t_shape:"ERone","short":"classicThin",convex:"",cross:"cross"},mxGraphMlShapesMap={star5:"mxgraph.basic.star;flipV=1",star6:"mxgraph.basic.6_point_star",star8:"mxgraph.basic.8_point_star",sheared_rectangle:"parallelogram",
sheared_rectangle2:"parallelogram;flipH=1",hexagon:"hexagon",octagon:"mxgraph.basic.octagon",ellipse:"ellipse",round_rectangle:"rect;rounded=1;arcsize=30",diamond:"rhombus",fat_arrow:"step;perimeter=stepPerimeter",fat_arrow2:"step;perimeter=stepPerimeter;flipH=1",trapez:"trapezoid;perimeter=trapezoidPerimeter;flipV=1",trapez2:"trapezoid;perimeter=trapezoidPerimeter",triangle:"triangle",triangle2:"triangle",rectangle:"rect",rectangle3d:"",roundrectangle:"rect;rounded=1;arcsize=30",fatarrow:"step;perimeter=stepPerimeter",
fatarrow2:"step;perimeter=stepPerimeter;flipH=1",parallelogram:"parallelogram",parallelogram2:"parallelogram;flipH=1",trapezoid2:"trapezoid;perimeter=trapezoidPerimeter;flipV=1",trapezoid:"trapezoid;perimeter=trapezoidPerimeter",bevelnode:"rect;glass=1;",bevelnodewithshadow:"rect;glass=1;shadow=1",bevelnode2:"rect;glass=1;rounded=1;arcsize=30",bevelnode3:"rect;glass=1;rounded=1;arcsize=30;shadow=1",shinyplatenode:"rect;glass=1",shinyplatenodewithshadow:"rect;glass=1;shadow=1",shinyplatenode2:"rect;glass=1;rounded=1;arcsize=30",
@ -1161,7 +1219,7 @@ artifact_type_request_message:"message",connection_type_sequence_flow:"",connect
HYPEREDGE:"hyperedge",PORT:"port",ENDPOINT:"endpoint",KEY:"key",DATA:"data",ALL:"all",EDGE_SOURCE:"source",EDGE_SOURCE_PORT:"sourceport",EDGE_TARGET:"target",EDGE_TARGET_PORT:"targetport",EDGE_DIRECTED:"directed",EDGE_UNDIRECTED:"undirected",EDGE_DEFAULT:"edgedefault",PORT_NAME:"name",HEIGHT:"Height",WIDTH:"Width",X:"X",Y:"Y",HEIGHT_L:"height",WIDTH_L:"width",X_L:"x",Y_L:"y",JGRAPH:"jGraph:",GEOMETRY:"y:Geometry",FILL:"Fill",SHAPENODE:"y:ShapeNode",SHAPEEDGE:"ShapeEdge",JGRAPH_URL:"http://www.jgraph.com/",
KEY_NODE_ID:"d0",KEY_NODE_NAME:"nodeData",KEY_EDGE_ID:"d1",KEY_EDGE_NAME:"edgeData",STYLE:"Style",SHAPE:"Shape",TYPE:"type",LABEL:"label",TEXT:"text",PROPERTIES:"properties",SOURCETARGET:"SourceTarget",RECT:"y:RectD",NODE_LABELS:"NodeLabels",NODE_LABEL:"y:NodeLabel",NODE_GEOMETRY:"NodeGeometry",USER_TAGS:"UserTags",NODE_STYLE:"NodeStyle",NODE_GRAPHICS:"nodegraphics",NODE_VIEW_STATE:"NodeViewState",EDGE_LABELS:"EdgeLabels",EDGE_GEOMETRY:"EdgeGeometry",EDGE_STYLE:"EdgeStyle",EDGE_VIEW_STATE:"EdgeViewState",
PORT_LOCATION_PARAMETER:"PortLocationParameter",PORT_STYLE:"PortStyle",PORT_VIEW_STATE:"PortViewState",SHARED_DATA:"SharedData",Y_SHARED_DATA:"y:SharedData",X_KEY:"x:Key",GRAPHML_REFERENCE:"y:GraphMLReference",RESOURCE_KEY:"ResourceKey",Y_RESOURCES:"y:Resources",Y_RESOURCE:"y:Resource",REFID:"refid",X_LIST:"x:List",X_STATIC:"x:Static",Y_BEND:"y:Bend",LOCATION:"Location",Y_LABEL:"y:Label",LAYOUTPARAMETER:"LayoutParameter",YJS_DEFAULTLABELSTYLE:"yjs:DefaultLabelStyle",MEMBER:"Member"};
EditorUi.prototype.doImportGraphML=function(r,w,x){(new mxGraphMlCodec).decode(r,w,x)};/*!
EditorUi.prototype.doImportGraphML=function(u,z,B){(new mxGraphMlCodec).decode(u,z,B)};/*!
JSZip v3.10.0 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>

File diff suppressed because one or more lines are too long

View File

@ -28,7 +28,7 @@ if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==url
"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");
"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ADD_ATTR:["target","content","pointer-events","requiredFeatures"]};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||"mxgraph";
window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.2.7",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),
window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.2.8",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),
IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&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:/Apple Computer, Inc/.test(navigator.vendor),
IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints,IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userAgent),IS_GC:/Google Inc/.test(navigator.vendor),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:-1<navigator.userAgent.toLowerCase().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:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS||
@ -3469,7 +3469,7 @@ Z};var ca=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=fu
this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=k?k:"default"),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var la=document.createElement("canvas"),Q=new Image;Q.onload=function(){try{la.getContext("2d").drawImage(Q,0,0);var k=la.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=k&&
6<k.length}catch(B){}};Q.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(k){}Editor.prototype.useCanvasForExport=!1})();
(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};b.afterDecode=function(e,g,m){m.previousColor=m.color;m.previousImage=m.image;m.previousFormat=m.format;m.previousAdaptiveColors=m.adaptiveColors;null!=m.foldingEnabled&&(m.foldingEnabled=!m.foldingEnabled);null!=m.mathEnabled&&(m.mathEnabled=!m.mathEnabled);null!=m.shadowVisible&&(m.shadowVisible=!m.shadowVisible);return m};mxCodecRegistry.register(b)})();
(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.2.7";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&
(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.2.8";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&
"test.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.cacheUrl=window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging;EditorUi.isElectronApp=
null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;EditorUi.nativeFileSupport=!mxClient.IS_OP&&!EditorUi.isElectronApp&&"1"!=urlParams.extAuth&&"showSaveFilePicker"in window&&"showOpenFilePicker"in window;EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://www.drawio.com/doc/faq/scratchpad";EditorUi.enableHtmlEditOption=!0;EditorUi.mermaidDiagramTypes="flowchart classDiagram sequenceDiagram stateDiagram mindmap graph erDiagram requirementDiagram journey gantt pie gitGraph".split(" ");
EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};

View File

@ -28,7 +28,7 @@ if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==url
"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");
"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ADD_ATTR:["target","content","pointer-events","requiredFeatures"]};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||"mxgraph";
window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.2.7",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),
window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.2.8",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),
IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&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:/Apple Computer, Inc/.test(navigator.vendor),
IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints,IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userAgent),IS_GC:/Google Inc/.test(navigator.vendor),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:-1<navigator.userAgent.toLowerCase().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:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS||
@ -3469,7 +3469,7 @@ Z};var ca=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=fu
this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=k?k:"default"),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var la=document.createElement("canvas"),Q=new Image;Q.onload=function(){try{la.getContext("2d").drawImage(Q,0,0);var k=la.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=k&&
6<k.length}catch(B){}};Q.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(k){}Editor.prototype.useCanvasForExport=!1})();
(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};b.afterDecode=function(e,g,m){m.previousColor=m.color;m.previousImage=m.image;m.previousFormat=m.format;m.previousAdaptiveColors=m.adaptiveColors;null!=m.foldingEnabled&&(m.foldingEnabled=!m.foldingEnabled);null!=m.mathEnabled&&(m.mathEnabled=!m.mathEnabled);null!=m.shadowVisible&&(m.shadowVisible=!m.shadowVisible);return m};mxCodecRegistry.register(b)})();
(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.2.7";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&
(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.2.8";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&
"test.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.cacheUrl=window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging;EditorUi.isElectronApp=
null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;EditorUi.nativeFileSupport=!mxClient.IS_OP&&!EditorUi.isElectronApp&&"1"!=urlParams.extAuth&&"showSaveFilePicker"in window&&"showOpenFilePicker"in window;EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://www.drawio.com/doc/faq/scratchpad";EditorUi.enableHtmlEditOption=!0;EditorUi.mermaidDiagramTypes="flowchart classDiagram sequenceDiagram stateDiagram mindmap graph erDiagram requirementDiagram journey gantt pie gitGraph".split(" ");
EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long