Skip to content

draw.io is a JavaScript, client-side editor for general diagramming.

26.0.16 release

David Benson987146fb55a5
diff --git a/ChangeLog b/ChangeLog
index c19543092..a56f62b0f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+21-FEB-2025: 26.0.16
+
+- Fixes colors in vsdx export [DID-14515]
+- Fixes background color option for selection text
+
19-FEB-2025: 26.0.15
- Adds default dark mode support for SVG images
diff --git a/VERSION b/VERSION
index 4ba5bdf2d..afef36183 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-26.0.15
\ No newline at end of file
+26.0.16
\ No newline at end of file
diff --git a/src/main/webapp/js/app.min.js b/src/main/webapp/js/app.min.js
index 24c739085..54378ef06 100644
--- a/src/main/webapp/js/app.min.js
+++ b/src/main/webapp/js/app.min.js
@@ -64,7 +64,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.0.15",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.0.16",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||
@@ -2003,9 +2003,9 @@ Editor.prototype.setModified=function(a){this.modified=a};Editor.prototype.setFi
Editor.prototype.createUndoManager=function(){var a=this.graph,b=new mxUndoManager;this.undoListener=function(f,h){b.undoableEditHappened(h.getProperty("edit"))};var e=mxUtils.bind(this,function(f,h){this.undoListener.apply(this,arguments)});a.getModel().addListener(mxEvent.UNDO,e);a.getView().addListener(mxEvent.UNDO,e);e=function(f,h){f=h.getProperty("edit").changes;f=a.getSelectionCellsForChanges(f);h=!1;if(0<f.length){for(var d=[],g=0;g<f.length;g++)null!=a.view.getState(f[g])&&(d.push(f[g]),
h||(a.scrollCellToVisible(f[g]),h=!0));a.setSelectionCells(d)}};b.addListener(mxEvent.UNDO,e);b.addListener(mxEvent.REDO,e);return b};Editor.prototype.initStencilRegistry=function(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=null)};OpenFile=function(a){this.consumer=this.producer=null;this.done=a;this.args=null};OpenFile.prototype.setConsumer=function(a){this.consumer=a;this.execute()};OpenFile.prototype.setData=function(){this.args=arguments;this.execute()};
OpenFile.prototype.error=function(a){this.cancel(!0);mxUtils.alert(a)};OpenFile.prototype.execute=function(){null!=this.consumer&&null!=this.args&&(this.cancel(!1),this.consumer.apply(this,this.args))};OpenFile.prototype.cancel=function(a){null!=this.done&&this.done(null!=a?a:!0)};
-function Dialog(a,b,e,f,h,d,g,m,p,k,u){this.editorUi=a;var w=p?57:0,z=e,C=f,E=p?0:64,D=Editor.inlineFullscreen||null==a.embedViewport?this.getDocumentSize():mxUtils.clone(a.embedViewport);null==a.embedViewport&&null!=window.innerHeight&&(D.height=window.innerHeight);var G=D.height;D=Math.max(1,Math.round((D.width-e-E)/2));var J=Math.max(1,Math.round((G-f-a.footerHeight)/3));b.style.maxHeight="100%";e=null!=document.body?Math.min(e,document.body.scrollWidth-E):e;f=Math.min(f,G-E);0<a.dialogs.length&&
+function Dialog(a,b,e,f,h,d,g,m,q,k,u){this.editorUi=a;var w=q?57:0,z=e,C=f,E=q?0:64,D=Editor.inlineFullscreen||null==a.embedViewport?this.getDocumentSize():mxUtils.clone(a.embedViewport);null==a.embedViewport&&null!=window.innerHeight&&(D.height=window.innerHeight);var G=D.height;D=Math.max(1,Math.round((D.width-e-E)/2));var J=Math.max(1,Math.round((G-f-a.footerHeight)/3));b.style.maxHeight="100%";e=null!=document.body?Math.min(e,document.body.scrollWidth-E):e;f=Math.min(f,G-E);0<a.dialogs.length&&
(this.zIndex+=2*a.dialogs.length);null==this.bg&&(this.bg=a.createDiv("geBackground"),this.bg.style.position="absolute",this.bg.style.height=G+"px",this.bg.style.right="0px",this.bg.style.zIndex=this.zIndex-2,mxUtils.setOpacity(this.bg,this.bgOpacity));var L=mxUtils.getDocumentScrollOrigin(document);this.bg.style.left=L.x+"px";this.bg.style.top=L.y+"px";D+=L.x;J+=L.y;Editor.inlineFullscreen||null==a.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px",J+=a.embedViewport.y,D+=a.embedViewport.x);
-h&&document.body.appendChild(this.bg);var Q=a.createDiv(p?"geTransDialog":"geDialog");h=this.getPosition(D,J,e,f);D=h.x;J=h.y;Q.style.width=e+"px";Q.style.height=f+"px";Q.style.left=D+"px";Q.style.top=J+"px";Q.style.zIndex=this.zIndex;Q.appendChild(b);document.body.appendChild(Q);!m&&b.clientHeight>Q.clientHeight-E&&(b.style.overflowY="auto");b.style.overflowX="hidden";if(d&&(d=document.createElement("img"),d.setAttribute("src",Dialog.prototype.closeImage),d.setAttribute("title",mxResources.get("close")),
+h&&document.body.appendChild(this.bg);var Q=a.createDiv(q?"geTransDialog":"geDialog");h=this.getPosition(D,J,e,f);D=h.x;J=h.y;Q.style.width=e+"px";Q.style.height=f+"px";Q.style.left=D+"px";Q.style.top=J+"px";Q.style.zIndex=this.zIndex;Q.appendChild(b);document.body.appendChild(Q);!m&&b.clientHeight>Q.clientHeight-E&&(b.style.overflowY="auto");b.style.overflowX="hidden";if(d&&(d=document.createElement("img"),d.setAttribute("src",Dialog.prototype.closeImage),d.setAttribute("title",mxResources.get("close")),
d.className="geDialogClose",d.style.top=J+14+"px",d.style.left=D+e+38-w+"px",d.style.zIndex=this.zIndex,mxEvent.addListener(d,"click",mxUtils.bind(this,function(){a.hideDialog(!0)})),document.body.appendChild(d),this.dialogImg=d,!u)){var N=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(U){N=!0}),null,mxUtils.bind(this,function(U){N&&(a.hideDialog(!0),N=!1)}))}this.resizeListener=mxUtils.bind(this,function(){if(null!=k){var U=k();null!=U&&(z=e=U.w,C=f=U.h)}U=Editor.inlineFullscreen||
null==a.embedViewport?this.getDocumentSize():mxUtils.clone(a.embedViewport);G=U.height;this.bg.style.height=G+"px";Editor.inlineFullscreen||null==a.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px");e=null!=document.body?Math.min(z,document.body.scrollWidth-E):z;f=Math.min(C,G-E);U=Math.max(1,Math.round((U.width-e-E)/2));var Y=Math.max(1,Math.round((G-f-a.footerHeight)/3));Y=this.getPosition(U,Y,e,f);U=Y.x;Y=Y.y;var P=mxUtils.getDocumentScrollOrigin(document);U+=P.x;Y+=P.y;Editor.inlineFullscreen||
null==a.embedViewport||(Y+=a.embedViewport.y,U+=a.embedViewport.x);Q.style.left=U+"px";Q.style.top=Y+"px";Q.style.width=e+"px";Q.style.height=f+"px";!m&&b.clientHeight>Q.clientHeight-E&&(b.style.overflowY="auto");null!=this.dialogImg&&(this.dialogImg.style.top=Y+14+"px",this.dialogImg.style.left=U+e+38-w+"px")});null!=a.embedViewport?a.addListener("embedViewportChanged",this.resizeListener):mxEvent.addListener(window,"resize",this.resizeListener);this.onDialogClose=g;this.container=Q;a.editor.fireEvent(new mxEventObject("showDialog"))}
@@ -2016,70 +2016,70 @@ Dialog.prototype.clearImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhDQAKA
"/clear.gif";Dialog.prototype.bgOpacity=80;Dialog.prototype.getDocumentSize=function(){return mxUtils.getDocumentSize()};Dialog.prototype.getPosition=function(a,b){return new mxPoint(a,b)};
Dialog.prototype.close=function(a,b){if(null!=this.onDialogClose){if(0==this.onDialogClose(a,b))return!1;this.onDialogClose=null}null!=this.dialogImg&&null!=this.dialogImg.parentNode&&(this.dialogImg.parentNode.removeChild(this.dialogImg),this.dialogImg=null);null!=this.bg&&null!=this.bg.parentNode&&this.bg.parentNode.removeChild(this.bg);null!=this.editorUi.embedViewport?this.editorUi.removeListener(this.resizeListener):mxEvent.removeListener(window,"resize",this.resizeListener);null!=this.container.parentNode&&
this.container.parentNode.removeChild(this.container)};
-var ErrorDialog=function(a,b,e,f,h,d,g,m,p,k,u){p=null!=p?p:!0;var w=document.createElement("div");w.style.textAlign="center";if(null!=b){var z=document.createElement("div");z.style.padding="0px";z.style.margin="0px";z.style.fontSize="18px";z.style.paddingBottom="16px";z.style.marginBottom="10px";z.style.borderBottom="1px solid #c0c0c0";z.style.color="gray";z.style.whiteSpace="nowrap";z.style.textOverflow="ellipsis";z.style.overflow="hidden";mxUtils.write(z,b);z.setAttribute("title",b);w.appendChild(z)}b=
+var ErrorDialog=function(a,b,e,f,h,d,g,m,q,k,u){q=null!=q?q:!0;var w=document.createElement("div");w.style.textAlign="center";if(null!=b){var z=document.createElement("div");z.style.padding="0px";z.style.margin="0px";z.style.fontSize="18px";z.style.paddingBottom="16px";z.style.marginBottom="10px";z.style.borderBottom="1px solid #c0c0c0";z.style.color="gray";z.style.whiteSpace="nowrap";z.style.textOverflow="ellipsis";z.style.overflow="hidden";mxUtils.write(z,b);z.setAttribute("title",b);w.appendChild(z)}b=
document.createElement("div");b.style.lineHeight="1.2em";b.style.padding="6px";"string"===typeof e&&(e=e.replace(/\n/g,"<br/>"));b.innerHTML=Graph.sanitizeHtml(e);w.appendChild(b);e=document.createElement("div");e.style.marginTop="12px";e.style.textAlign="center";null!=d&&(b=mxUtils.button(mxResources.get("tryAgain"),function(){a.hideDialog();d()}),b.className="geBtn",e.appendChild(b),e.style.textAlign="center");null!=k&&(k=mxUtils.button(k,function(){null!=u&&u()}),k.className="geBtn",e.appendChild(k));
-var C=mxUtils.button(f,function(){p&&a.hideDialog();null!=h&&h()});C.className="geBtn";e.appendChild(C);null!=g&&(f=mxUtils.button(g,function(){p&&a.hideDialog();null!=m&&m()}),f.className="geBtn gePrimaryBtn",e.appendChild(f));this.init=function(){C.focus()};w.appendChild(e);this.container=w},PrintDialog=function(a,b,e){this.create(a,b,e)};
+var C=mxUtils.button(f,function(){q&&a.hideDialog();null!=h&&h()});C.className="geBtn";e.appendChild(C);null!=g&&(f=mxUtils.button(g,function(){q&&a.hideDialog();null!=m&&m()}),f.className="geBtn gePrimaryBtn",e.appendChild(f));this.init=function(){C.focus()};w.appendChild(e);this.container=w},PrintDialog=function(a,b,e){this.create(a,b,e)};
PrintDialog.prototype.create=function(a){function b(C){var E=g.checked||k.checked,D=parseInt(w.value)/100;isNaN(D)&&(D=1,w.value="100%");mxClient.IS_SF&&(D*=.75);var G=e.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,J=1/e.pageScale;if(E){var L=g.checked?1:parseInt(u.value);isNaN(L)||(J=mxUtils.getScaleForPageCount(L,e,G))}var Q=L=0;G=mxRectangle.fromRectangle(G);G.width=Math.ceil(G.width*D);G.height=Math.ceil(G.height*D);J*=D;!E&&e.pageVisible?(D=e.getPageLayout(),L-=D.x*G.width,Q-=D.y*G.height):
-E=!0;E=PrintDialog.createPrintPreview(e,J,G,0,L,Q,E);E.open();C&&PrintDialog.printPreview(E)}var e=a.editor.graph,f=document.createElement("table");f.style.width="100%";f.style.height="100%";var h=document.createElement("tbody");var d=document.createElement("tr");var g=document.createElement("input");g.setAttribute("type","checkbox");var m=document.createElement("td");m.setAttribute("colspan","2");m.style.fontSize="10pt";m.appendChild(g);var p=document.createElement("span");mxUtils.write(p," "+mxResources.get("fitPage"));
-m.appendChild(p);mxEvent.addListener(p,"click",function(C){g.checked=!g.checked;k.checked=!g.checked;mxEvent.consume(C)});mxEvent.addListener(g,"change",function(){k.checked=!g.checked});d.appendChild(m);h.appendChild(d);d=d.cloneNode(!1);var k=document.createElement("input");k.setAttribute("type","checkbox");m=document.createElement("td");m.style.fontSize="10pt";m.appendChild(k);p=document.createElement("span");mxUtils.write(p," "+mxResources.get("posterPrint")+":");m.appendChild(p);mxEvent.addListener(p,
+E=!0;E=PrintDialog.createPrintPreview(e,J,G,0,L,Q,E);E.open();C&&PrintDialog.printPreview(E)}var e=a.editor.graph,f=document.createElement("table");f.style.width="100%";f.style.height="100%";var h=document.createElement("tbody");var d=document.createElement("tr");var g=document.createElement("input");g.setAttribute("type","checkbox");var m=document.createElement("td");m.setAttribute("colspan","2");m.style.fontSize="10pt";m.appendChild(g);var q=document.createElement("span");mxUtils.write(q," "+mxResources.get("fitPage"));
+m.appendChild(q);mxEvent.addListener(q,"click",function(C){g.checked=!g.checked;k.checked=!g.checked;mxEvent.consume(C)});mxEvent.addListener(g,"change",function(){k.checked=!g.checked});d.appendChild(m);h.appendChild(d);d=d.cloneNode(!1);var k=document.createElement("input");k.setAttribute("type","checkbox");m=document.createElement("td");m.style.fontSize="10pt";m.appendChild(k);q=document.createElement("span");mxUtils.write(q," "+mxResources.get("posterPrint")+":");m.appendChild(q);mxEvent.addListener(q,
"click",function(C){k.checked=!k.checked;g.checked=!k.checked;mxEvent.consume(C)});d.appendChild(m);var u=document.createElement("input");u.setAttribute("value","1");u.setAttribute("type","number");u.setAttribute("min","1");u.setAttribute("size","4");u.setAttribute("disabled","disabled");u.style.width="50px";m=document.createElement("td");m.style.fontSize="10pt";m.appendChild(u);mxUtils.write(m," "+mxResources.get("pages")+" (max)");d.appendChild(m);h.appendChild(d);mxEvent.addListener(k,"change",
function(){k.checked?u.removeAttribute("disabled"):u.setAttribute("disabled","disabled");g.checked=!k.checked});d=d.cloneNode(!1);m=document.createElement("td");mxUtils.write(m,mxResources.get("pageScale")+":");d.appendChild(m);m=document.createElement("td");var w=document.createElement("input");w.setAttribute("value","100 %");w.setAttribute("size","5");w.style.width="50px";m.appendChild(w);d.appendChild(m);h.appendChild(d);d=document.createElement("tr");m=document.createElement("td");m.colSpan=2;
-m.style.paddingTop="20px";m.setAttribute("align","right");p=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});p.className="geBtn";a.editor.cancelFirst&&m.appendChild(p);if(PrintDialog.previewEnabled){var z=mxUtils.button(mxResources.get("preview"),function(){a.hideDialog();b(!1)});z.className="geBtn";m.appendChild(z)}z=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){a.hideDialog();b(!0)});z.className="geBtn gePrimaryBtn";m.appendChild(z);a.editor.cancelFirst||
-m.appendChild(p);d.appendChild(m);h.appendChild(d);f.appendChild(h);this.container=f};PrintDialog.printPreview=function(a){try{null!=a.wnd&&window.setTimeout(function(){a.wnd.focus();a.wnd.print();a.wnd.close()},500)}catch(b){}};
-PrintDialog.createPrintPreview=function(a,b,e,f,h,d,g){b=new mxPrintPreview(a,b,e,f,h,d);b.title=mxResources.get("preview");b.addPageCss=!mxClient.IS_SF;b.printBackgroundImage=!0;b.autoOrigin=g;g=a.background;if(null==g||""==g||g==mxConstants.NONE)g="#ffffff";b.backgroundColor=g;var m=b.isTextLabel;b.isTextLabel=function(k){return"geHint"==!k.className&&m.apply(this,arguments)};var p=b.getLinkForCellState;b.getLinkForCellState=function(k){return a.getAbsoluteUrl(p.apply(this,arguments))};return b};
+m.style.paddingTop="20px";m.setAttribute("align","right");q=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});q.className="geBtn";a.editor.cancelFirst&&m.appendChild(q);if(PrintDialog.previewEnabled){var z=mxUtils.button(mxResources.get("preview"),function(){a.hideDialog();b(!1)});z.className="geBtn";m.appendChild(z)}z=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){a.hideDialog();b(!0)});z.className="geBtn gePrimaryBtn";m.appendChild(z);a.editor.cancelFirst||
+m.appendChild(q);d.appendChild(m);h.appendChild(d);f.appendChild(h);this.container=f};PrintDialog.printPreview=function(a){try{null!=a.wnd&&window.setTimeout(function(){a.wnd.focus();a.wnd.print();a.wnd.close()},500)}catch(b){}};
+PrintDialog.createPrintPreview=function(a,b,e,f,h,d,g){b=new mxPrintPreview(a,b,e,f,h,d);b.title=mxResources.get("preview");b.addPageCss=!mxClient.IS_SF;b.printBackgroundImage=!0;b.autoOrigin=g;g=a.background;if(null==g||""==g||g==mxConstants.NONE)g="#ffffff";b.backgroundColor=g;var m=b.isTextLabel;b.isTextLabel=function(k){return"geHint"==!k.className&&m.apply(this,arguments)};var q=b.getLinkForCellState;b.getLinkForCellState=function(k){return a.getAbsoluteUrl(q.apply(this,arguments))};return b};
PrintDialog.previewEnabled=!0;
var PageSetupDialog=function(a){function b(){var D=w;null!=D&&null!=D.originalSrc&&(D=a.createImageForPageLink(D.originalSrc,null));null!=D&&null!=D.src?(u.style.backgroundImage="url("+D.src+")",u.style.display="inline-block"):(u.style.backgroundImage="",u.style.display="none");u.style.backgroundColor="";null!=z&&z!=mxConstants.NONE&&(u.style.backgroundColor=z,u.style.display="inline-block")}var e=a.editor.graph,f=document.createElement("table");f.style.width="100%";f.style.height="100%";var h=document.createElement("tbody");
var d=document.createElement("tr");var g=document.createElement("td");g.style.verticalAlign="top";g.style.fontSize="10pt";mxUtils.write(g,mxResources.get("paperSize")+":");d.appendChild(g);g=document.createElement("td");g.style.verticalAlign="top";g.style.fontSize="10pt";var m=PageSetupDialog.addPageFormatPanel(g,"pagesetupdialog",e.pageFormat);d.appendChild(g);h.appendChild(d);d=document.createElement("tr");g=document.createElement("td");mxUtils.write(g,mxResources.get("gridSize")+":");d.appendChild(g);
-g=document.createElement("td");g.style.whiteSpace="nowrap";var p=document.createElement("input");p.setAttribute("type","number");p.setAttribute("min","0");p.style.width="40px";p.style.marginLeft="6px";p.value=e.getGridSize();g.appendChild(p);mxEvent.addListener(p,"change",function(){var D=parseInt(p.value);p.value=Math.max(1,isNaN(D)?e.getGridSize():D)});d.appendChild(g);h.appendChild(d);d=document.createElement("tr");g=document.createElement("td");mxUtils.write(g,mxResources.get("background")+":");
+g=document.createElement("td");g.style.whiteSpace="nowrap";var q=document.createElement("input");q.setAttribute("type","number");q.setAttribute("min","0");q.style.width="40px";q.style.marginLeft="6px";q.value=e.getGridSize();g.appendChild(q);mxEvent.addListener(q,"change",function(){var D=parseInt(q.value);q.value=Math.max(1,isNaN(D)?e.getGridSize():D)});d.appendChild(g);h.appendChild(d);d=document.createElement("tr");g=document.createElement("td");mxUtils.write(g,mxResources.get("background")+":");
d.appendChild(g);g=document.createElement("td");var k=document.createElement("button");k.className="geBtn";k.style.margin="0px";mxUtils.write(k,mxResources.get("change")+"...");var u=document.createElement("div");u.style.display="inline-block";u.style.verticalAlign="middle";u.style.backgroundPosition="center center";u.style.backgroundRepeat="no-repeat";u.style.backgroundSize="contain";u.style.border="1px solid lightGray";u.style.borderRadius="4px";u.style.marginRight="14px";u.style.height="32px";
u.style.width="64px";u.style.cursor="pointer";u.style.padding="4px";var w=e.backgroundImage,z=e.background,C=e.shadowVisible,E=function(D){a.showBackgroundImageDialog(function(G,J,L,Q){J||(null!=G&&null!=G.src&&Graph.isPageLink(G.src)&&(G={originalSrc:G.src}),w=G,C=Q);z=L;b()},w,z,!0);mxEvent.consume(D)};mxEvent.addListener(k,"click",E);mxEvent.addListener(u,"click",E);b();g.appendChild(u);g.appendChild(k);d.appendChild(g);h.appendChild(d);d=document.createElement("tr");g=document.createElement("td");
-g.colSpan=2;g.style.paddingTop="16px";g.setAttribute("align","right");k=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});k.className="geBtn";a.editor.cancelFirst&&g.appendChild(k);E=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();var D=parseInt(p.value);isNaN(D)||e.gridSize===D||e.setGridSize(D);D=new ChangePageSetup(a,z,w,m.get());D.ignoreColor=e.background==z;D.ignoreImage=(null!=e.backgroundImage?e.backgroundImage.src:null)===(null!=w?w.src:null);null!=C&&
+g.colSpan=2;g.style.paddingTop="16px";g.setAttribute("align","right");k=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});k.className="geBtn";a.editor.cancelFirst&&g.appendChild(k);E=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();var D=parseInt(q.value);isNaN(D)||e.gridSize===D||e.setGridSize(D);D=new ChangePageSetup(a,z,w,m.get());D.ignoreColor=e.background==z;D.ignoreImage=(null!=e.backgroundImage?e.backgroundImage.src:null)===(null!=w?w.src:null);null!=C&&
(D.shadowVisible=C);e.pageFormat.width==D.previousFormat.width&&e.pageFormat.height==D.previousFormat.height&&D.ignoreColor&&D.ignoreImage&&D.shadowVisible==e.shadowVisible||e.model.execute(D)});E.className="geBtn gePrimaryBtn";g.appendChild(E);a.editor.cancelFirst||g.appendChild(k);d.appendChild(g);h.appendChild(d);f.appendChild(h);this.container=f};
PageSetupDialog.addPageFormatPanel=function(a,b,e,f){b="format-"+b;var h=document.createElement("input");h.setAttribute("name",b);h.setAttribute("type","radio");h.setAttribute("value","portrait");var d=document.createElement("input");d.setAttribute("name",b);d.setAttribute("type","radio");d.setAttribute("value","landscape");var g=document.createElement("select");g.style.marginBottom="4px";g.style.borderRadius="4px";g.style.borderWidth="1px";g.style.borderStyle="solid";g.style.boxSizing="border-box";
-g.style.padding="2px";g.style.width="210px";var m=document.createElement("div");m.style.whiteSpace="nowrap";m.style.marginLeft="4px";m.style.width="210px";m.style.height="24px";h.style.marginRight="6px";m.appendChild(h);b=document.createElement("span");b.style.maxWidth="100px";mxUtils.write(b,mxResources.get("portrait"));m.appendChild(b);d.style.marginLeft="10px";d.style.marginRight="6px";m.appendChild(d);var p=document.createElement("span");p.style.width="100px";mxUtils.write(p,mxResources.get("landscape"));
-m.appendChild(p);var k=document.createElement("div");k.style.whiteSpace="nowrap";k.style.marginLeft="4px";k.style.fontSize="12px";k.style.width="210px";k.style.height="24px";var u=document.createElement("input");u.setAttribute("size","7");u.setAttribute("title",mxResources.get("width"));u.style.textAlign="right";k.appendChild(u);mxUtils.write(k," x ");var w=document.createElement("input");w.setAttribute("size","7");w.setAttribute("title",mxResources.get("height"));w.style.textAlign="right";k.appendChild(w);
+g.style.padding="2px";g.style.width="210px";var m=document.createElement("div");m.style.whiteSpace="nowrap";m.style.marginLeft="4px";m.style.width="210px";m.style.height="24px";h.style.marginRight="6px";m.appendChild(h);b=document.createElement("span");b.style.maxWidth="100px";mxUtils.write(b,mxResources.get("portrait"));m.appendChild(b);d.style.marginLeft="10px";d.style.marginRight="6px";m.appendChild(d);var q=document.createElement("span");q.style.width="100px";mxUtils.write(q,mxResources.get("landscape"));
+m.appendChild(q);var k=document.createElement("div");k.style.whiteSpace="nowrap";k.style.marginLeft="4px";k.style.fontSize="12px";k.style.width="210px";k.style.height="24px";var u=document.createElement("input");u.setAttribute("size","7");u.setAttribute("title",mxResources.get("width"));u.style.textAlign="right";k.appendChild(u);mxUtils.write(k," x ");var w=document.createElement("input");w.setAttribute("size","7");w.setAttribute("title",mxResources.get("height"));w.style.textAlign="right";k.appendChild(w);
var z=document.createElement("select");z.style.marginLeft="4px";z.style.maxWidth="78px";z.style.width="78px";for(var C=[{label:mxResources.get("points"),unit:mxConstants.POINTS},{label:mxResources.get("inches"),unit:mxConstants.INCHES},{label:mxResources.get("millimeters"),unit:mxConstants.MILLIMETERS}],E=0;E<C.length;E++){var D=document.createElement("option");D.setAttribute("value",C[E].unit);mxUtils.write(D,C[E].label);z.appendChild(D)}z.value=Editor.pageSizeUnit;k.appendChild(z);m.style.display=
"none";k.style.display="none";var G={},J=PageSetupDialog.getFormats();for(E=0;E<J.length;E++)C=J[E],G[C.key]=C,D=document.createElement("option"),D.setAttribute("value",C.key),mxUtils.write(D,C.title),g.appendChild(D);var L=function(){g.value="custom";for(var N=0;N<J.length;N++){var U=J[N];null!=U.format&&("a4"==U.key?826==e.width?(e=mxRectangle.fromRectangle(e),e.width=827):826==e.height&&(e=mxRectangle.fromRectangle(e),e.height=827):"a5"==U.key&&(584==e.width?(e=mxRectangle.fromRectangle(e),e.width=
583):584==e.height&&(e=mxRectangle.fromRectangle(e),e.height=583)),e.width==U.format.width&&e.height==U.format.height?(g.value=U.key,h.setAttribute("checked","checked"),h.defaultChecked=!0,h.checked=!0,d.removeAttribute("checked"),d.defaultChecked=!1,d.checked=!1,detected=!0):e.width==U.format.height&&e.height==U.format.width&&(g.value=U.key,h.removeAttribute("checked"),h.defaultChecked=!1,h.checked=!1,d.setAttribute("checked","checked"),d.defaultChecked=!0,detected=d.checked=!0))}"custom"==g.value?
(u.value=Editor.toUnit(e.width,z.value),w.value=Editor.toUnit(e.height,z.value),h.setAttribute("checked","checked"),g.value="custom",m.style.display="none",k.style.display=""):(m.style.display="",k.style.display="none")};L();a.appendChild(g);mxUtils.br(a);a.appendChild(m);a.appendChild(k);var Q=function(N,U){N=G[g.value];null!=N.format?(u.value=Editor.toUnit(d.checked?N.format.height:N.format.width,z.value),w.value=Editor.toUnit(d.checked?N.format.width:N.format.height,z.value),k.style.display="none",
m.style.display=""):(m.style.display="none",k.style.display="");N=parseFloat(u.value);if(isNaN(N)||0>=N)u.value=Editor.toUnit(e.width,z.value);N=parseFloat(w.value);if(isNaN(N)||0>=N)w.value=Editor.toUnit(e.height,z.value);N=new mxRectangle(0,0,Math.floor(Editor.fromUnit(parseFloat(u.value),z.value)),Math.floor(Editor.fromUnit(parseFloat(w.value),z.value)));U||N.width==e.width&&N.height==e.height||(e=N,null!=f&&f(e))};mxEvent.addListener(b,"click",function(N){h.checked=!0;Q(N);mxEvent.consume(N)});
-mxEvent.addListener(p,"click",function(N){d.checked=!0;Q(N);mxEvent.consume(N)});mxEvent.addListener(u,"blur",Q);mxEvent.addListener(u,"click",Q);mxEvent.addListener(w,"blur",Q);mxEvent.addListener(w,"click",Q);mxEvent.addListener(d,"change",Q);mxEvent.addListener(h,"change",Q);mxEvent.addListener(g,"change",function(N){Q(N,"custom"==g.value);mxEvent.consume(N)});mxEvent.addListener(z,"change",function(N){u.value=Editor.toUnit(Editor.fromUnit(u.value,Editor.pageSizeUnit),z.value);w.value=Editor.toUnit(Editor.fromUnit(w.value,
+mxEvent.addListener(q,"click",function(N){d.checked=!0;Q(N);mxEvent.consume(N)});mxEvent.addListener(u,"blur",Q);mxEvent.addListener(u,"click",Q);mxEvent.addListener(w,"blur",Q);mxEvent.addListener(w,"click",Q);mxEvent.addListener(d,"change",Q);mxEvent.addListener(h,"change",Q);mxEvent.addListener(g,"change",function(N){Q(N,"custom"==g.value);mxEvent.consume(N)});mxEvent.addListener(z,"change",function(N){u.value=Editor.toUnit(Editor.fromUnit(u.value,Editor.pageSizeUnit),z.value);w.value=Editor.toUnit(Editor.fromUnit(w.value,
Editor.pageSizeUnit),z.value);Editor.pageSizeUnit=z.value;Q(N,!0);mxEvent.consume(N)});Q(null,!0);return{set:function(N){e=N;L(null,null,!0)},get:function(){return e},widthInput:u,heightInput:w}};
PageSetupDialog.getFormats=function(){return[{key:"letter",title:'US-Letter (8,5" x 11")',format:mxConstants.PAGE_FORMAT_LETTER_PORTRAIT},{key:"legal",title:'US-Legal (8,5" x 14")',format:new mxRectangle(0,0,850,1400)},{key:"tabloid",title:'US-Tabloid (11" x 17")',format:new mxRectangle(0,0,1100,1700)},{key:"executive",title:'US-Executive (7" x 10")',format:new mxRectangle(0,0,700,1E3)},{key:"a0",title:"A0 (841 mm x 1189 mm)",format:new mxRectangle(0,0,3300,4681)},{key:"a1",title:"A1 (594 mm x 841 mm)",
format:new mxRectangle(0,0,2339,3300)},{key:"a2",title:"A2 (420 mm x 594 mm)",format:new mxRectangle(0,0,1654,2336)},{key:"a3",title:"A3 (297 mm x 420 mm)",format:new mxRectangle(0,0,1169,1654)},{key:"a4",title:"A4 (210 mm x 297 mm)",format:mxConstants.PAGE_FORMAT_A4_PORTRAIT},{key:"a5",title:"A5 (148 mm x 210 mm)",format:new mxRectangle(0,0,583,827)},{key:"a6",title:"A6 (105 mm x 148 mm)",format:new mxRectangle(0,0,413,583)},{key:"a7",title:"A7 (74 mm x 105 mm)",format:new mxRectangle(0,0,291,413)},
{key:"b4",title:"B4 (250 mm x 353 mm)",format:new mxRectangle(0,0,980,1390)},{key:"b5",title:"B5 (176 mm x 250 mm)",format:new mxRectangle(0,0,690,980)},{key:"16-9",title:"16:9 (1600 x 900)",format:new mxRectangle(0,0,900,1600)},{key:"16-10",title:"16:10 (1920 x 1200)",format:new mxRectangle(0,0,1200,1920)},{key:"4-3",title:"4:3 (1600 x 1200)",format:new mxRectangle(0,0,1200,1600)},{key:"custom",title:mxResources.get("custom"),format:null}]};
-var FilenameDialog=function(a,b,e,f,h,d,g,m,p,k,u){p=null!=p?p:!0;var w=document.createElement("div"),z=document.createElement("div");z.style.width="100%";z.style.display="grid";z.style.gap="5px 8px";z.style.gridAutoColumns="auto 1fr";z.style.boxSizing="border-box";z.style.padding="3px";var C=document.createElement("div");C.style.display="inline-flex";C.style.alignItems="center";C.style.justifyContent="flex-end";C.style.minWidth="0";var E=document.createElement("div");E.style.display="inline-block";
-E.style.textOverflow="ellipsis";E.style.whiteSpace="nowrap";E.style.overflow="hidden";E.style.fontSize="10pt";E.style.padding="2px 0";E.setAttribute("title",h||mxResources.get("filename"));mxUtils.write(E,(h||mxResources.get("filename"))+":");C.appendChild(E);z.appendChild(C);var D=document.createElement("input");D.setAttribute("value",b||"");D.style.flexGrow="1";var G=mxUtils.button(e,function(){if(null==d||d(D.value))p&&a.hideDialog(),f(D.value)});G.className="geBtn gePrimaryBtn";this.init=function(){if(null!=
+var FilenameDialog=function(a,b,e,f,h,d,g,m,q,k,u){q=null!=q?q:!0;var w=document.createElement("div"),z=document.createElement("div");z.style.width="100%";z.style.display="grid";z.style.gap="5px 8px";z.style.gridAutoColumns="auto 1fr";z.style.boxSizing="border-box";z.style.padding="3px";var C=document.createElement("div");C.style.display="inline-flex";C.style.alignItems="center";C.style.justifyContent="flex-end";C.style.minWidth="0";var E=document.createElement("div");E.style.display="inline-block";
+E.style.textOverflow="ellipsis";E.style.whiteSpace="nowrap";E.style.overflow="hidden";E.style.fontSize="10pt";E.style.padding="2px 0";E.setAttribute("title",h||mxResources.get("filename"));mxUtils.write(E,(h||mxResources.get("filename"))+":");C.appendChild(E);z.appendChild(C);var D=document.createElement("input");D.setAttribute("value",b||"");D.style.flexGrow="1";var G=mxUtils.button(e,function(){if(null==d||d(D.value))q&&a.hideDialog(),f(D.value)});G.className="geBtn gePrimaryBtn";this.init=function(){if(null!=
h||null==g)if(null!=u?Editor.selectFilename(D):(D.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?D.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var J=z.parentNode;if(null!=J){var L=null;mxEvent.addListener(J,"dragleave",function(Q){null!=L&&(L.style.backgroundColor="",L=null);Q.stopPropagation();Q.preventDefault()});mxEvent.addListener(J,"dragover",mxUtils.bind(this,function(Q){null==L&&(!mxClient.IS_IE||10<document.documentMode)&&(L=D,L.style.backgroundColor=
"#ebf2f9");Q.stopPropagation();Q.preventDefault()}));mxEvent.addListener(J,"drop",mxUtils.bind(this,function(Q){null!=L&&(L.style.backgroundColor="",L=null);0<=mxUtils.indexOf(Q.dataTransfer.types,"text/uri-list")&&(D.value=decodeURIComponent(Q.dataTransfer.getData("text/uri-list")),G.click());Q.stopPropagation();Q.preventDefault()}))}}};C=document.createElement("div");C.style.display="inline-flex";C.style.alignItems="center";C.style.gap="4px";C.style.whiteSpace="nowrap";C.appendChild(D);z.appendChild(C);
null==h&&null!=g||null==u||null==a.editor.diagramFileTypes||(C=document.createElement("div"),C.style.display="inline-flex",C.style.alignItems="center",C.style.textOverflow="ellipsis",C.style.justifyContent="flex-end",C.style.fontSize="10pt",mxUtils.write(C,mxResources.get("type")+":"),z.appendChild(C),C=document.createElement("div"),C.style.display="inline-flex",C.style.alignItems="center",C.style.whiteSpace="nowrap",z.appendChild(C),b=FilenameDialog.createFileTypes(a,D,a.editor.diagramFileTypes),
b.style.width="100%",C.appendChild(b));null!=g&&z.appendChild(g);row=document.createElement("div");row.style.gridColumn="1 / span 2";row.style.paddingTop=null!=u?"6px":"14px";row.style.whiteSpace="nowrap";row.style.display="inline-flex";row.style.alignItems="center";row.style.justifyContent="flex-end";row.setAttribute("align","right");C=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=k&&k()});C.className="geBtn";null==m||a.isOffline()||row.appendChild(a.createHelpIcon(m));
a.editor.cancelFirst&&row.appendChild(C);mxEvent.addListener(D,"keypress",function(J){13==J.keyCode&&G.click()});row.appendChild(G);a.editor.cancelFirst||row.appendChild(C);z.appendChild(row);w.appendChild(z);this.container=w};FilenameDialog.filenameHelpLink=null;
FilenameDialog.createFileTypes=function(a,b,e){var f=document.createElement("select");for(a=0;a<e.length;a++){var h=document.createElement("option");h.setAttribute("value",a);mxUtils.write(h,mxResources.get(e[a].description)+" (."+e[a].extension+")");f.appendChild(h)}mxEvent.addListener(f,"change",function(d){d=e[f.value].extension;var g=b.value.lastIndexOf(".drawio.");g=0<g?g:b.value.lastIndexOf(".");"drawio"!=d&&(d="drawio."+d);b.value=0<g?b.value.substring(0,g+1)+d:b.value+"."+d;"createEvent"in
-document?(d=document.createEvent("HTMLEvents"),d.initEvent("change",!1,!0),b.dispatchEvent(d)):b.fireEvent("onchange")});a=function(d){d=b.value.toLowerCase();for(var g=0,m=0;m<e.length;m++){var p=e[m].extension,k=null;"drawio"!=p&&(k=p,p=".drawio."+p);if(d.substring(d.length-p.length-1)=="."+p||null!=k&&d.substring(d.length-k.length-1)=="."+k){g=m;break}}f.value=g};mxEvent.addListener(b,"change",a);mxEvent.addListener(b,"keyup",a);a();return f};
-var WrapperWindow=function(a,b,e,f,h,d,g){var m=a.createSidebarContainer();g(m);this.window=new mxWindow(b,m,e,f,h,d,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);a.installResizeHandler(this,!0);mxClient.IS_SF&&(this.window.div.onselectstart=mxUtils.bind(this,function(p){null==p&&(p=window.event);return null!=p&&a.isSelectionAllowed(p)}))};
-(function(){mxGraphView.prototype.validateBackgroundPage=function(){var g=this.graph;if(null!=g.container&&!g.transparentBackground){if(g.pageVisible){var m=this.getBackgroundPageBounds();if(null==this.backgroundPageShape){for(var p=g.container.firstChild;null!=p&&p.nodeType!=mxConstants.NODETYPE_ELEMENT;)p=p.nextSibling;null!=p&&(this.backgroundPageShape=this.createBackgroundPageShape(m),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,
-this.backgroundPageShape.init(g.container),p.style.position="absolute",g.container.insertBefore(this.backgroundPageShape.node,p),this.backgroundPageShape.redraw(),this.backgroundPageShape.node.className="geBackgroundPage",mxEvent.addListener(this.backgroundPageShape.node,"dblclick",mxUtils.bind(this,function(k){g.dblClick(k)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(k){g.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(k))}),mxUtils.bind(this,function(k){null!=
+document?(d=document.createEvent("HTMLEvents"),d.initEvent("change",!1,!0),b.dispatchEvent(d)):b.fireEvent("onchange")});a=function(d){d=b.value.toLowerCase();for(var g=0,m=0;m<e.length;m++){var q=e[m].extension,k=null;"drawio"!=q&&(k=q,q=".drawio."+q);if(d.substring(d.length-q.length-1)=="."+q||null!=k&&d.substring(d.length-k.length-1)=="."+k){g=m;break}}f.value=g};mxEvent.addListener(b,"change",a);mxEvent.addListener(b,"keyup",a);a();return f};
+var WrapperWindow=function(a,b,e,f,h,d,g){var m=a.createSidebarContainer();g(m);this.window=new mxWindow(b,m,e,f,h,d,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);a.installResizeHandler(this,!0);mxClient.IS_SF&&(this.window.div.onselectstart=mxUtils.bind(this,function(q){null==q&&(q=window.event);return null!=q&&a.isSelectionAllowed(q)}))};
+(function(){mxGraphView.prototype.validateBackgroundPage=function(){var g=this.graph;if(null!=g.container&&!g.transparentBackground){if(g.pageVisible){var m=this.getBackgroundPageBounds();if(null==this.backgroundPageShape){for(var q=g.container.firstChild;null!=q&&q.nodeType!=mxConstants.NODETYPE_ELEMENT;)q=q.nextSibling;null!=q&&(this.backgroundPageShape=this.createBackgroundPageShape(m),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,
+this.backgroundPageShape.init(g.container),q.style.position="absolute",g.container.insertBefore(this.backgroundPageShape.node,q),this.backgroundPageShape.redraw(),this.backgroundPageShape.node.className="geBackgroundPage",mxEvent.addListener(this.backgroundPageShape.node,"dblclick",mxUtils.bind(this,function(k){g.dblClick(k)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(k){g.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(k))}),mxUtils.bind(this,function(k){null!=
g.tooltipHandler&&g.tooltipHandler.isHideOnHover()&&g.tooltipHandler.hide();g.isMouseDown&&!mxEvent.isConsumed(k)&&g.fireMouseEvent(mxEvent.MOUSE_MOVE,new mxMouseEvent(k))}),mxUtils.bind(this,function(k){g.fireMouseEvent(mxEvent.MOUSE_UP,new mxMouseEvent(k))})))}else this.backgroundPageShape.scale=1,this.backgroundPageShape.bounds=m,this.backgroundPageShape.redraw()}else null!=this.backgroundPageShape&&(this.backgroundPageShape.destroy(),this.backgroundPageShape=null);this.validateBackgroundStyles()}};
-mxGraphView.prototype.validateBackgroundStyles=function(g,m,p){var k=this.graph;g=null!=g?g:1;var u=mxUtils.getLightDarkColor(null==k.background||k.background==mxConstants.NONE?k.defaultPageBackgroundColor:k.background).cssText,w=mxUtils.getLightDarkColor(k.defaultPageBorderColor).cssText,z=null!=u&&this.gridColor!=u.toLowerCase()?this.gridColor:"#ffffff",C="none",E="";"simple"==k.getAdaptiveColors()&&k.background!=mxConstants.NONE&&null!=k.background&&(u=k.background);if(k.isGridEnabled()||k.gridVisible){E=
-10;mxClient.IS_SVG?(C=unescape(encodeURIComponent(this.createSvgGrid(z,g))),C=window.btoa?btoa(C):Base64.encode(C,!0),C="url(data:image/svg+xml;base64,"+C+")",E=k.gridSize*this.scale*this.gridSteps*g):C="url("+this.gridImage+")";var D=z=0;m=null!=m?m-this.translate.x*this.scale:0;p=null!=p?p-this.translate.y*this.scale:0;var G=k.gridSize*this.scale*this.gridSteps,J=m%G;G=p%G;null!=k.view.backgroundPageShape&&(D=this.getBackgroundPageBounds(),z=1+D.x,D=1+D.y);E=-Math.round(E-mxUtils.mod(this.translate.x*
-this.scale-z+m,E)+J*g)+"px "+-Math.round(E-mxUtils.mod(this.translate.y*this.scale-D+p,E)+G*g)+"px"}g=k.view.canvas;null!=g.ownerSVGElement&&(g=g.ownerSVGElement);z=!Editor.isDarkMode()&&k.enableDiagramBackground;null!=k.view.backgroundPageShape?(k.view.backgroundPageShape.node.style.backgroundPosition=E,k.view.backgroundPageShape.node.style.backgroundImage=C,k.view.backgroundPageShape.node.style.backgroundColor=u,k.view.backgroundPageShape.node.style.borderColor=w,k.view.backgroundPageShape.node.style.colorScheme=
+mxGraphView.prototype.validateBackgroundStyles=function(g,m,q){var k=this.graph;g=null!=g?g:1;var u=mxUtils.getLightDarkColor(null==k.background||k.background==mxConstants.NONE?k.defaultPageBackgroundColor:k.background).cssText,w=mxUtils.getLightDarkColor(k.defaultPageBorderColor).cssText,z=null!=u&&this.gridColor!=u.toLowerCase()?this.gridColor:"#ffffff",C="none",E="";"simple"==k.getAdaptiveColors()&&k.background!=mxConstants.NONE&&null!=k.background&&(u=k.background);if(k.isGridEnabled()||k.gridVisible){E=
+10;mxClient.IS_SVG?(C=unescape(encodeURIComponent(this.createSvgGrid(z,g))),C=window.btoa?btoa(C):Base64.encode(C,!0),C="url(data:image/svg+xml;base64,"+C+")",E=k.gridSize*this.scale*this.gridSteps*g):C="url("+this.gridImage+")";var D=z=0;m=null!=m?m-this.translate.x*this.scale:0;q=null!=q?q-this.translate.y*this.scale:0;var G=k.gridSize*this.scale*this.gridSteps,J=m%G;G=q%G;null!=k.view.backgroundPageShape&&(D=this.getBackgroundPageBounds(),z=1+D.x,D=1+D.y);E=-Math.round(E-mxUtils.mod(this.translate.x*
+this.scale-z+m,E)+J*g)+"px "+-Math.round(E-mxUtils.mod(this.translate.y*this.scale-D+q,E)+G*g)+"px"}g=k.view.canvas;null!=g.ownerSVGElement&&(g=g.ownerSVGElement);z=!Editor.isDarkMode()&&k.enableDiagramBackground;null!=k.view.backgroundPageShape?(k.view.backgroundPageShape.node.style.backgroundPosition=E,k.view.backgroundPageShape.node.style.backgroundImage=C,k.view.backgroundPageShape.node.style.backgroundColor=u,k.view.backgroundPageShape.node.style.borderColor=w,k.view.backgroundPageShape.node.style.colorScheme=
"none"==k.getAdaptiveColors()?"light":"",k.container.classList.add("geDiagramBackdrop"),g.style.backgroundImage="none",g.style.backgroundColor="",k.container.style.backgroundColor=z?k.diagramBackgroundColor:""):(k.container.classList.remove("geDiagramBackdrop"),g.style.backgroundPosition=E,g.style.backgroundImage=C,"1"==urlParams.transparent?k.container.style.background="transparent":!z||null!=k.background&&k.background!=mxConstants.NONE?g.style.backgroundColor=u:(g.style.backgroundColor=k.diagramBackgroundColor,
-k.container.style.backgroundColor=""))};mxGraphView.prototype.createSvgGrid=function(g,m){for(var p=this.graph.gridSize*this.scale*(null!=m?m:1);p<this.minGridSize;)p*=2;m=this.gridSteps*p;for(var k=[],u=1;u<this.gridSteps;u++){var w=u*p;k.push("M 0 "+w+" L "+m+" "+w+" M "+w+" 0 L "+w+" "+m)}g=mxUtils.getLightDarkColor(g);p="color-scheme: light dark;";mxClient.IS_SF&&(p="color-scheme: "+("none"!=this.graph.getAdaptiveColors()&&Editor.isDarkMode()?"dark":"light"));return'<svg style="'+p+'" width="'+
+k.container.style.backgroundColor=""))};mxGraphView.prototype.createSvgGrid=function(g,m){for(var q=this.graph.gridSize*this.scale*(null!=m?m:1);q<this.minGridSize;)q*=2;m=this.gridSteps*q;for(var k=[],u=1;u<this.gridSteps;u++){var w=u*q;k.push("M 0 "+w+" L "+m+" "+w+" M "+w+" 0 L "+w+" "+m)}g=mxUtils.getLightDarkColor(g);q="color-scheme: light dark;";mxClient.IS_SF&&(q="color-scheme: "+("none"!=this.graph.getAdaptiveColors()&&Editor.isDarkMode()?"dark":"light"));return'<svg style="'+q+'" width="'+
m+'" height="'+m+'" xmlns="'+mxConstants.NS_SVG+'"><defs><pattern id="grid" width="'+m+'" height="'+m+'" patternUnits="userSpaceOnUse"><path d="'+k.join(" ")+'" fill="none" style="stroke:'+mxUtils.htmlEntities(g.cssText)+';" stroke="'+g.light+'" opacity="0.2" stroke-width="1"/><path d="M '+m+" 0 L 0 0 0 "+m+'" fill="none" style="stroke:'+mxUtils.htmlEntities(g.cssText)+';" stroke="'+g.light+'" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(#grid)"/></svg>'};var a=mxGraph.prototype.panGraph;
-mxGraph.prototype.panGraph=function(g,m){a.apply(this,arguments);if(null!=this.shiftPreview1){var p=this.view.canvas;null!=p.ownerSVGElement&&(p=p.ownerSVGElement);var k=this.gridSize*this.view.scale*this.view.gridSteps;k=-Math.round(k-mxUtils.mod(this.view.translate.x*this.view.scale+g,k))+"px "+-Math.round(k-mxUtils.mod(this.view.translate.y*this.view.scale+m,k))+"px";p.style.backgroundPosition=k}};mxGraph.prototype.updatePageBreaks=function(g,m,p){var k=this.view.scale,u=this.view.translate,w=
-this.pageFormat,z=k*this.pageScale,C=this.view.getBackgroundPageBounds();m=C.width;p=C.height;var E=new mxRectangle(k*u.x,k*u.y,w.width*z,w.height*z),D=(g=g&&Math.min(E.width,E.height)>this.minPageBreakDist)?Math.ceil(p/E.height)-1:0,G=g?Math.ceil(m/E.width)-1:0,J=C.x+m,L=C.y+p;null==this.horizontalPageBreaks&&0<D&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<G&&(this.verticalPageBreaks=[]);g=mxUtils.bind(this,function(Q){if(null!=Q){for(var N=Q==this.horizontalPageBreaks?D:G,U=
+mxGraph.prototype.panGraph=function(g,m){a.apply(this,arguments);if(null!=this.shiftPreview1){var q=this.view.canvas;null!=q.ownerSVGElement&&(q=q.ownerSVGElement);var k=this.gridSize*this.view.scale*this.view.gridSteps;k=-Math.round(k-mxUtils.mod(this.view.translate.x*this.view.scale+g,k))+"px "+-Math.round(k-mxUtils.mod(this.view.translate.y*this.view.scale+m,k))+"px";q.style.backgroundPosition=k}};mxGraph.prototype.updatePageBreaks=function(g,m,q){var k=this.view.scale,u=this.view.translate,w=
+this.pageFormat,z=k*this.pageScale,C=this.view.getBackgroundPageBounds();m=C.width;q=C.height;var E=new mxRectangle(k*u.x,k*u.y,w.width*z,w.height*z),D=(g=g&&Math.min(E.width,E.height)>this.minPageBreakDist)?Math.ceil(q/E.height)-1:0,G=g?Math.ceil(m/E.width)-1:0,J=C.x+m,L=C.y+q;null==this.horizontalPageBreaks&&0<D&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<G&&(this.verticalPageBreaks=[]);g=mxUtils.bind(this,function(Q){if(null!=Q){for(var N=Q==this.horizontalPageBreaks?D:G,U=
0;U<=N;U++){var Y=Q==this.horizontalPageBreaks?[new mxPoint(Math.round(C.x),Math.round(C.y+(U+1)*E.height)),new mxPoint(Math.round(J),Math.round(C.y+(U+1)*E.height))]:[new mxPoint(Math.round(C.x+(U+1)*E.width),Math.round(C.y)),new mxPoint(Math.round(C.x+(U+1)*E.width),Math.round(L))];null!=Q[U]?(Q[U].points=Y,Q[U].redraw()):(Y=new mxPolyline(Y,this.pageBreakColor),Y.dialect=this.dialect,Y.isDashed=this.pageBreakDashed,Y.pointerEvents=!1,Y.init(this.view.backgroundPane),Y.redraw(),Q[U]=Y)}for(U=N;U<
-Q.length;U++)null!=Q[U]&&Q[U].destroy();Q.splice(N,Q.length-N)}});g(this.horizontalPageBreaks);g(this.verticalPageBreaks)};var b=mxGraphHandler.prototype.shouldRemoveCellsFromParent;mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(g,m,p){for(var k=0;k<m.length;k++){if(this.graph.isTableCell(m[k])||this.graph.isTableRow(m[k]))return!1;if(this.graph.getModel().isVertex(m[k])){var u=this.graph.getCellGeometry(m[k]);if(null!=u&&u.relative)return!1}}return b.apply(this,arguments)};var e=mxConnectionHandler.prototype.createMarker;
-mxConnectionHandler.prototype.createMarker=function(){var g=e.apply(this,arguments);g.intersects=mxUtils.bind(this,function(m,p){return this.isConnecting()?!0:mxCellMarker.prototype.intersects.apply(g,arguments)});return g};mxGraphView.prototype.createBackgroundPageShape=function(g){return new mxRectangleShape(g,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var g=this.getGraphBounds(),m=0<g.width?g.x/this.scale-this.translate.x:0,p=0<g.height?
-g.y/this.scale-this.translate.y:0,k=this.graph.pageFormat,u=this.graph.pageScale,w=k.width*u;k=k.height*u;u=Math.floor(Math.min(0,m)/w);var z=Math.floor(Math.min(0,p)/k);return new mxRectangle(this.scale*(this.translate.x+u*w),this.scale*(this.translate.y+z*k),this.scale*(Math.ceil(Math.max(1,m+g.width/this.scale)/w)-u)*w,this.scale*(Math.ceil(Math.max(1,p+g.height/this.scale)/k)-z)*k)};var f=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(g,m){f.apply(this,arguments);this.dialect==
-mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=g+"px",this.view.backgroundPageShape.node.style.marginTop=m+"px")};var h=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(g,m,p,k,u,w){var z=h.apply(this,arguments);null==w||w||mxEvent.addListener(z,"mousedown",function(C){mxEvent.consume(C)});return z};var d=mxGraphHandler.prototype.isPropagateSelectionCell;
-mxGraphHandler.prototype.isPropagateSelectionCell=function(g,m,p){var k=this.graph.model.getParent(g);if(m){var u=this.graph.model.isEdge(g)?null:this.graph.getCellGeometry(g);u=!this.graph.model.isEdge(k)&&!this.graph.isSiblingSelected(g)&&(null!=u&&u.relative||!this.graph.isContainer(k)||this.graph.isPart(g))}else if(u=d.apply(this,arguments),this.graph.isTableCell(g)||this.graph.isTableRow(g))u=k,this.graph.isTable(u)||(u=this.graph.model.getParent(u)),u=!this.graph.selectionCellsHandler.isHandled(u)||
-this.graph.isCellSelected(u)&&this.graph.isToggleEvent(p.getEvent())||this.graph.isCellSelected(g)&&!this.graph.isToggleEvent(p.getEvent())||this.graph.isTableCell(g)&&this.graph.isCellSelected(k);return u};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(g){g=g.getCell();for(var m=this.graph.getModel(),p=m.getParent(g),k=this.graph.view.getState(p),u=this.graph.isCellSelected(g);null!=k&&(m.isVertex(p)||m.isEdge(p));){var w=this.graph.isCellSelected(p);u=u||w;if(w||!u&&(this.graph.isTableCell(g)||
-this.graph.isTableRow(g)))g=p;p=m.getParent(p)}return g}})();EditorUi=function(a,b,e){mxEventSource.call(this);this.destroyFunctions=[];this.editor=a||new Editor;this.container=b||document.body;var f=this,h=this.editor.graph;h.lightbox=e;var d=h.getGraphBounds;h.getGraphBounds=function(){var K=d.apply(this,arguments),V=this.backgroundImage;if(null!=V&&null!=V.width&&null!=V.height){var Z=this.view.translate,ia=this.view.scale;K=mxRectangle.fromRectangle(K);K.add(new mxRectangle((Z.x+V.x)*ia,(Z.y+V.y)*ia,V.width*ia,V.height*ia))}return K};h.useCssTransforms&&
+Q.length;U++)null!=Q[U]&&Q[U].destroy();Q.splice(N,Q.length-N)}});g(this.horizontalPageBreaks);g(this.verticalPageBreaks)};var b=mxGraphHandler.prototype.shouldRemoveCellsFromParent;mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(g,m,q){for(var k=0;k<m.length;k++){if(this.graph.isTableCell(m[k])||this.graph.isTableRow(m[k]))return!1;if(this.graph.getModel().isVertex(m[k])){var u=this.graph.getCellGeometry(m[k]);if(null!=u&&u.relative)return!1}}return b.apply(this,arguments)};var e=mxConnectionHandler.prototype.createMarker;
+mxConnectionHandler.prototype.createMarker=function(){var g=e.apply(this,arguments);g.intersects=mxUtils.bind(this,function(m,q){return this.isConnecting()?!0:mxCellMarker.prototype.intersects.apply(g,arguments)});return g};mxGraphView.prototype.createBackgroundPageShape=function(g){return new mxRectangleShape(g,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var g=this.getGraphBounds(),m=0<g.width?g.x/this.scale-this.translate.x:0,q=0<g.height?
+g.y/this.scale-this.translate.y:0,k=this.graph.pageFormat,u=this.graph.pageScale,w=k.width*u;k=k.height*u;u=Math.floor(Math.min(0,m)/w);var z=Math.floor(Math.min(0,q)/k);return new mxRectangle(this.scale*(this.translate.x+u*w),this.scale*(this.translate.y+z*k),this.scale*(Math.ceil(Math.max(1,m+g.width/this.scale)/w)-u)*w,this.scale*(Math.ceil(Math.max(1,q+g.height/this.scale)/k)-z)*k)};var f=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(g,m){f.apply(this,arguments);this.dialect==
+mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=g+"px",this.view.backgroundPageShape.node.style.marginTop=m+"px")};var h=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(g,m,q,k,u,w){var z=h.apply(this,arguments);null==w||w||mxEvent.addListener(z,"mousedown",function(C){mxEvent.consume(C)});return z};var d=mxGraphHandler.prototype.isPropagateSelectionCell;
+mxGraphHandler.prototype.isPropagateSelectionCell=function(g,m,q){var k=this.graph.model.getParent(g);if(m){var u=this.graph.model.isEdge(g)?null:this.graph.getCellGeometry(g);u=!this.graph.model.isEdge(k)&&!this.graph.isSiblingSelected(g)&&(null!=u&&u.relative||!this.graph.isContainer(k)||this.graph.isPart(g))}else if(u=d.apply(this,arguments),this.graph.isTableCell(g)||this.graph.isTableRow(g))u=k,this.graph.isTable(u)||(u=this.graph.model.getParent(u)),u=!this.graph.selectionCellsHandler.isHandled(u)||
+this.graph.isCellSelected(u)&&this.graph.isToggleEvent(q.getEvent())||this.graph.isCellSelected(g)&&!this.graph.isToggleEvent(q.getEvent())||this.graph.isTableCell(g)&&this.graph.isCellSelected(k);return u};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(g){g=g.getCell();for(var m=this.graph.getModel(),q=m.getParent(g),k=this.graph.view.getState(q),u=this.graph.isCellSelected(g);null!=k&&(m.isVertex(q)||m.isEdge(q));){var w=this.graph.isCellSelected(q);u=u||w;if(w||!u&&(this.graph.isTableCell(g)||
+this.graph.isTableRow(g)))g=q;q=m.getParent(q)}return g}})();EditorUi=function(a,b,e){mxEventSource.call(this);this.destroyFunctions=[];this.editor=a||new Editor;this.container=b||document.body;var f=this,h=this.editor.graph;h.lightbox=e;var d=h.getGraphBounds;h.getGraphBounds=function(){var K=d.apply(this,arguments),V=this.backgroundImage;if(null!=V&&null!=V.width&&null!=V.height){var Z=this.view.translate,ia=this.view.scale;K=mxRectangle.fromRectangle(K);K.add(new mxRectangle((Z.x+V.x)*ia,(Z.y+V.y)*ia,V.width*ia,V.height*ia))}return K};h.useCssTransforms&&
(this.lazyZoomDelay=0);this.selectionStateListener=mxUtils.bind(this,function(K,V){this.clearSelectionState()});h.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionStateListener);h.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);h.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);h.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);h.getView().addListener("unitChanged",this.selectionStateListener);if(this.editor.chromeless&&!this.editor.editable){this.footerHeight=
-0;h.isEnabled=function(){return!1};h.panningHandler.isForcePanningEvent=function(K){for(var V=K.getSource();null!=V&&V!=h.container;){if("foreignObject"===V.nodeName||"text"===V.nodeName)return!1;V=V.parentNode}return!mxEvent.isPopupTrigger(K.getEvent())};var g=h.panningHandler.start;h.panningHandler.start=function(){g.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!h.standalone){var m=!1,p=!1;this.setDefaultStyle=function(K){try{h.getModel().isEdge(K)?
-p=h.pasteEdgeStyle=!1:m=!1;var V=h.getCellStyle(K,!1),Z=[],ia=[],oa;for(oa in V)Z.push(V[oa]),ia.push(oa);h.getModel().isEdge(K)?h.currentEdgeStyle={}:h.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",ia,"values",Z,"cells",[K],"force",!0));h.getModel().isEdge(K)?p=h.pasteEdgeStyle=!0:m=!0}catch(sa){this.handleError(sa)}};this.clearDefaultStyle=function(){h.currentEdgeStyle=mxUtils.clone(h.defaultEdgeStyle);h.currentVertexStyle=mxUtils.clone(h.defaultVertexStyle);m=p=h.pasteEdgeStyle=
+0;h.isEnabled=function(){return!1};h.panningHandler.isForcePanningEvent=function(K){for(var V=K.getSource();null!=V&&V!=h.container;){if("foreignObject"===V.nodeName||"text"===V.nodeName)return!1;V=V.parentNode}return!mxEvent.isPopupTrigger(K.getEvent())};var g=h.panningHandler.start;h.panningHandler.start=function(){g.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!h.standalone){var m=!1,q=!1;this.setDefaultStyle=function(K){try{h.getModel().isEdge(K)?
+q=h.pasteEdgeStyle=!1:m=!1;var V=h.getCellStyle(K,!1),Z=[],ia=[],oa;for(oa in V)Z.push(V[oa]),ia.push(oa);h.getModel().isEdge(K)?h.currentEdgeStyle={}:h.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",ia,"values",Z,"cells",[K],"force",!0));h.getModel().isEdge(K)?q=h.pasteEdgeStyle=!0:m=!0}catch(sa){this.handleError(sa)}};this.clearDefaultStyle=function(){h.currentEdgeStyle=mxUtils.clone(h.defaultEdgeStyle);h.currentVertexStyle=mxUtils.clone(h.defaultVertexStyle);m=q=h.pasteEdgeStyle=
!1;this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))};h.addListener("cellsInserted",function(K,V){h.pasteCellStyles(h.includeDescendants(V.getProperty("cells")))});h.addListener("textInserted",function(K,V){h.pasteCellStyles(V.getProperty("cells"))});this.createDivs();this.createUi();this.refresh();var k=mxUtils.bind(this,function(K){null==K&&(K=window.event);return h.isEditing()||null!=K&&this.isSelectionAllowed(K)});this.container!=document.body||this.editor.chromeless&&
!this.editor.editable||(this.menubarContainer.onselectstart=k,this.menubarContainer.onmousedown=k,this.toolbarContainer.onselectstart=k,this.toolbarContainer.onmousedown=k,this.diagramContainer.onselectstart=k,this.diagramContainer.onmousedown=k,this.sidebarContainer.onselectstart=k,this.sidebarContainer.onmousedown=k,this.formatContainer.onselectstart=k,this.formatContainer.onmousedown=k,this.footerContainer.onselectstart=k,this.footerContainer.onmousedown=k,null!=this.tabContainer&&(this.tabContainer.onselectstart=
k),mxClient.IS_IOS&&(b=function(){var K=null;if(/iP(hone|od|ad)/.test(navigator.platform)){var V=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);try{K=[parseInt(V[1],10),parseInt(V[2],10),parseInt(V[3]||0,10)]}catch(Z){}}return K}(),null!=b&&16<=b[0]&&(mxUtils.setPrefixedStyle(this.menubarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.diagramContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.sidebarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.formatContainer.style,
@@ -2093,7 +2093,7 @@ if(null==L)this.toolbar.createTextToolbar();else{for(var ia=0;ia<L.length;ia++)t
(f.toolbar.setFontName(mxUtils.getCssFontFamily(Z.fontFamily)),f.toolbar.setFontSize(parseInt(Z.fontSize))));K=!1},0))};mxEvent.addListener(h.cellEditor.textarea,"input",V);mxEvent.addListener(h.cellEditor.textarea,"touchend",V);mxEvent.addListener(h.cellEditor.textarea,"mouseup",V);mxEvent.addListener(h.cellEditor.textarea,"keyup",V);V()}};var U=h.cellEditor.stopEditing;h.cellEditor.stopEditing=function(K,V){try{U.apply(this,arguments),Q()}catch(Z){f.handleError(Z)}};h.container.setAttribute("tabindex",
"0");h.container.style.cursor="default";if(window.self===window.top&&null!=h.container.parentNode)try{h.container.focus()}catch(K){}var Y=h.fireMouseEvent;h.fireMouseEvent=function(K,V,Z){try{K==mxEvent.MOUSE_DOWN&&this.container.focus(),Y.apply(this,arguments)}catch(ia){f.handleError(ia)}};var P=h.foldCells;h.foldCells=function(K,V,Z,ia,oa){try{P.apply(this,arguments)}catch(sa){f.handleError(sa)}};h.popupMenuHandler.autoExpand=!0;null!=this.menus&&(h.popupMenuHandler.factoryMethod=mxUtils.bind(this,
function(K,V,Z){this.menus.createPopupMenu(K,V,Z)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(K){h.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(a);this.getKeyHandler=function(){return keyHandler};h.connectionHandler.addListener(mxEvent.CONNECT,function(K,V){var Z=[V.getProperty("cell")];V.getProperty("terminalInserted")&&(Z.push(V.getProperty("terminal")),window.setTimeout(function(){null!=f.hoverIcons&&f.hoverIcons.update(h.view.getState(Z[Z.length-
-1]))},0));h.pasteCellStyles(Z)});this.addListener("styleChanged",mxUtils.bind(this,function(K,V){K=V.getProperty("force");(this.updateDefaultStyle||K)&&h.copyCellStyles(V.getProperty("cells"),V.getProperty("keys"),V.getProperty("values"),h.currentVertexStyle,h.currentEdgeStyle,m,p);null!=this.toolbar&&(this.toolbar.setFontName(h.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(h.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),null!=this.toolbar.edgeStyleMenu&&
+1]))},0));h.pasteCellStyles(Z)});this.addListener("styleChanged",mxUtils.bind(this,function(K,V){K=V.getProperty("force");(this.updateDefaultStyle||K)&&h.copyCellStyles(V.getProperty("cells"),V.getProperty("keys"),V.getProperty("values"),h.currentVertexStyle,h.currentEdgeStyle,m,q);null!=this.toolbar&&(this.toolbar.setFontName(h.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(h.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),null!=this.toolbar.edgeStyleMenu&&
(V=this.toolbar.edgeStyleMenu.getElementsByTagName("div")[0],V.style.backgroundPosition="left center",V.style.backgroundRepeat="no-repeat",V.className="geAdaptiveAsset",V.style.height="100%",V.style.width="100%",V.style.backgroundImage="orthogonalEdgeStyle"==h.currentEdgeStyle.edgeStyle&&"1"==h.currentEdgeStyle.curved?"url("+Format.curvedImage.src+")":"straight"==h.currentEdgeStyle.edgeStyle||"none"==h.currentEdgeStyle.edgeStyle||null==h.currentEdgeStyle.edgeStyle?"url("+Format.straightImage.src+
")":"entityRelationEdgeStyle"==h.currentEdgeStyle.edgeStyle?"url("+Format.entityImage.src+")":"elbowEdgeStyle"==h.currentEdgeStyle.edgeStyle?"vertical"==h.currentEdgeStyle.elbow?"url("+Format.verticalElbowImage.src+")":"url("+Format.horizontalElbowImage.src+")":"isometricEdgeStyle"==h.currentEdgeStyle.edgeStyle?"vertical"==h.currentEdgeStyle.elbow?"url("+Format.verticalIsometricImage.src+")":"url("+Format.horizontalIsometricImage.src+")":"url("+Format.orthogonalImage.src+")"),null!=this.toolbar.edgeShapeMenu&&
(V=this.toolbar.edgeShapeMenu.getElementsByTagName("div")[0],V.style.backgroundPosition="left center",V.style.backgroundRepeat="no-repeat",V.className="geAdaptiveAsset",V.style.height="100%",V.style.width="100%",V.style.backgroundImage="link"==h.currentEdgeStyle.shape?"url("+Format.linkEdgeImage.src+")":"flexArrow"==h.currentEdgeStyle.shape?"url("+Format.arrowImage.src+")":"arrow"==h.currentEdgeStyle.shape?"url("+Format.simpleArrowImage.src+")":"url("+Format.connectionImage.src+")"))}));null!=this.toolbar&&
@@ -2102,7 +2102,7 @@ V){K=V.getProperty("cells");V=V.getProperty("parent");null!=V&&h.getModel().isLa
mxEvent.addGestureListeners(document,this.gestureHandler);var T=null;this.resizeHandler=mxUtils.bind(this,function(){null!=T&&window.clearTimeout(T);T=window.setTimeout(mxUtils.bind(this,function(){T=null;this.windowResized()}),100)});mxEvent.addListener(window,"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});mxEvent.addListener(window,"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&!window.navigator.standalone&&"undefined"!==
typeof Menus&&(this.scrollHandler=mxUtils.bind(this,function(){window.scrollTo(0,0)}),mxEvent.addListener(window,"scroll",this.scrollHandler));this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.resetScrollbars()}));this.addListener("gridEnabledChanged",mxUtils.bind(this,function(){h.view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,function(){h.view.validateBackground()}));h.addListener("gridSizeChanged",mxUtils.bind(this,function(){h.isGridEnabled()&&
h.view.validateBackground()}));this.editor.resetGraph()}this.init();h.standalone||this.open()};EditorUi.compactUi=!0;
-EditorUi.parsePng=function(a,b,e){function f(m,p){var k=d;d+=p;return m.substring(k,d)}function h(m){m=f(m,4);return m.charCodeAt(3)+(m.charCodeAt(2)<<8)+(m.charCodeAt(1)<<16)+(m.charCodeAt(0)<<24)}var d=0;if(f(a,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=e&&e();else if(f(a,4),"IHDR"!=f(a,4))null!=e&&e();else{f(a,17);do{e=h(a);var g=f(a,4);if(null!=b&&b(d-8,g,e))break;value=f(a,e);f(a,4);if("IEND"==g)break}while(e)}};mxUtils.extend(EditorUi,mxEventSource);
+EditorUi.parsePng=function(a,b,e){function f(m,q){var k=d;d+=q;return m.substring(k,d)}function h(m){m=f(m,4);return m.charCodeAt(3)+(m.charCodeAt(2)<<8)+(m.charCodeAt(1)<<16)+(m.charCodeAt(0)<<24)}var d=0;if(f(a,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=e&&e();else if(f(a,4),"IHDR"!=f(a,4))null!=e&&e();else{f(a,17);do{e=h(a);var g=f(a,4);if(null!=b&&b(d-8,g,e))break;value=f(a,e);f(a,4);if("IEND"==g)break}while(e)}};mxUtils.extend(EditorUi,mxEventSource);
EditorUi.prototype.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.menubarHeight=30;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.toolbarHeight=38;EditorUi.prototype.footerHeight=28;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?212:240);EditorUi.prototype.hsplitPosition=screen.width<=Editor.smallScreenWidth?0:EditorUi.prototype.defaultSidebarWidth;
EditorUi.prototype.allowAnimation=!0;EditorUi.prototype.lightboxMaxFitScale=2;EditorUi.prototype.lightboxVerticalDivider=4;EditorUi.prototype.hsplitClickEnabled=!1;EditorUi.prototype.updateDefaultStyle=!1;EditorUi.prototype.spaceDown=!1;EditorUi.prototype.shiftDown=!1;
EditorUi.prototype.init=function(){var a=this.editor.graph;if(!a.standalone){"0"!=urlParams["shape-picker"]&&this.installShapePicker();mxEvent.addListener(a.container,"scroll",mxUtils.bind(this,function(){a.tooltipHandler.hide();null!=a.connectionHandler&&null!=a.connectionHandler.constraintHandler&&a.connectionHandler.constraintHandler.reset()}));a.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){a.tooltipHandler.hide();var f=a.getRubberband();null!=f&&f.cancel()}));mxEvent.addListener(a.container,
@@ -2110,31 +2110,31 @@ EditorUi.prototype.init=function(){var a=this.editor.graph;if(!a.standalone){"0"
arguments);e.updateActionStates()};a.showLinkDialog=mxUtils.bind(e,e.showLinkDialog);a.editLink=e.actions.get("editLink").funct;this.updateActionStates();this.initClipboard();this.initCanvas();null!=this.format&&this.format.init()}};EditorUi.prototype.clearSelectionState=function(){this.selectionState=null};EditorUi.prototype.getSelectionState=function(){null==this.selectionState&&(this.selectionState=this.createSelectionState());return this.selectionState};
EditorUi.prototype.createSelectionState=function(){for(var a=this.editor.graph,b=a.getSelectionCells(),e=this.initSelectionState(),f=!0,h=0;h<b.length;h++){var d=a.getCurrentCellStyle(b[h]);"0"!=mxUtils.getValue(d,mxConstants.STYLE_EDITABLE,"1")&&(this.updateSelectionStateForCell(e,b[h],b,f),f=!1)}this.updateSelectionStateForTableCells(e);return e};
EditorUi.prototype.initSelectionState=function(){return{vertices:[],edges:[],cells:[],x:null,y:null,width:null,height:null,style:{},containsImage:!1,containsLabel:!1,fill:!0,glass:!0,html:!0,rounded:!0,autoSize:!1,image:!1,shadow:!0,lineJumps:!0,resizable:!0,table:!1,cell:!1,row:!1,movable:!0,rotatable:!0,stroke:!0,swimlane:!1,unlocked:this.editor.graph.isEnabled(),connections:!1}};
-EditorUi.prototype.updateSelectionStateForTableCells=function(a){if(1<a.cells.length&&a.cell){var b=mxUtils.sortCells(a.cells),e=this.editor.graph.model,f=e.getParent(b[0]),h=e.getParent(f);if(null!=f&&null!=h){for(var d=f.getIndex(b[0]),g=h.getIndex(f),m=null,p=1,k=1,u=0,w=g<h.getChildCount()-1?e.getChildAt(e.getChildAt(h,g+1),d):null;u<b.length-1;){var z=b[++u];null==w||w!=z||null!=m&&p!=m||(m=p,p=0,k++,f=e.getParent(w),w=g+k<h.getChildCount()?e.getChildAt(e.getChildAt(h,g+k),d):null);var C=this.editor.graph.view.getState(z);
-if(z==e.getChildAt(f,d+p)&&null!=C&&1==mxUtils.getValue(C.style,"colspan",1)&&1==mxUtils.getValue(C.style,"rowspan",1))p++;else break}u==k*p-1&&(a.mergeCell=b[0],a.colspan=p,a.rowspan=k)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),0)};
+EditorUi.prototype.updateSelectionStateForTableCells=function(a){if(1<a.cells.length&&a.cell){var b=mxUtils.sortCells(a.cells),e=this.editor.graph.model,f=e.getParent(b[0]),h=e.getParent(f);if(null!=f&&null!=h){for(var d=f.getIndex(b[0]),g=h.getIndex(f),m=null,q=1,k=1,u=0,w=g<h.getChildCount()-1?e.getChildAt(e.getChildAt(h,g+1),d):null;u<b.length-1;){var z=b[++u];null==w||w!=z||null!=m&&q!=m||(m=q,q=0,k++,f=e.getParent(w),w=g+k<h.getChildCount()?e.getChildAt(e.getChildAt(h,g+k),d):null);var C=this.editor.graph.view.getState(z);
+if(z==e.getChildAt(f,d+q)&&null!=C&&1==mxUtils.getValue(C.style,"colspan",1)&&1==mxUtils.getValue(C.style,"rowspan",1))q++;else break}u==k*q-1&&(a.mergeCell=b[0],a.colspan=q,a.rowspan=k)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),0)};
EditorUi.prototype.createTimeout=function(a,b,e){var f=!0,h=null,d=mxUtils.bind(this,function(m){h.clear()&&(f=!1,m=null!=m?m:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(a,b,e)})},null!=e?e(m):this.handleError(m))}),g=window.setTimeout(d,null!=a?a:this.timeout);h={clear:function(){window.clearTimeout(g);return f},isAlive:function(){return f}};null!=b&&this.tryAndHandle(mxUtils.bind(this,function(){b(h)}),d);return h};
EditorUi.prototype.tryAndHandle=function(a,b){try{a()}catch(e){null!=b?b(e):this.handleError(e)}};
-EditorUi.prototype.removeUserDefinedDarkColors=function(a,b,e){var f=this.editor.graph;a=null!=a?a:f.getSelectionCells();var h=Graph.colorStyles,d=document.createElement("div");f.model.beginUpdate();try{for(var g=0;g<a.length;g++)if(f.model.isEdge(a[g])||f.model.isVertex(a[g])){var m=f.getCellStyle(a[g],!1);if(null!=m)for(var p=0;p<h.length;p++)try{var k=m[h[p]];if(mxUtils.isLightDarkColor(k)){var u=mxUtils.getLightDarkColor(k);f.setCellStyles(h[p],u.light,[a[g]])}}catch(z){}b&&f.isHtmlLabel(a[g])&&
+EditorUi.prototype.removeUserDefinedDarkColors=function(a,b,e){var f=this.editor.graph;a=null!=a?a:f.getSelectionCells();var h=Graph.colorStyles,d=document.createElement("div");f.model.beginUpdate();try{for(var g=0;g<a.length;g++)if(f.model.isEdge(a[g])||f.model.isVertex(a[g])){var m=f.getCellStyle(a[g],!1);if(null!=m)for(var q=0;q<h.length;q++)try{var k=m[h[q]];if(mxUtils.isLightDarkColor(k)){var u=mxUtils.getLightDarkColor(k);f.setCellStyles(h[q],u.light,[a[g]])}}catch(z){}b&&f.isHtmlLabel(a[g])&&
"0"!=mxUtils.getValue(m,"html","0")&&(d.innerHTML=Graph.sanitizeHtml(f.getLabel(a[g])),Graph.addLightDarkColors(d,null,null,function(z,C,E){return mxUtils.isLightDarkColor(E)?(E=mxUtils.getLightDarkColor(E),z.style.setProperty(C,E.light),!0):!1})&&f.cellLabelChanged(a[g],d.innerHTML))}if(e&&mxUtils.isLightDarkColor(f.background)){u=mxUtils.getLightDarkColor(f.background);var w=new ChangePageSetup(this,u.light);w.ignoreImage=!0;f.model.execute(w)}}finally{f.model.endUpdate()}return a};
EditorUi.prototype.updateSelectionStateForCell=function(a,b,e,f){e=this.editor.graph;a.cells.push(b);if(e.getModel().isVertex(b)){a.connections=0<e.model.getEdgeCount(b);a.unlocked=a.unlocked&&!e.isCellLocked(b);a.resizable=a.resizable&&e.isCellResizable(b);a.rotatable=a.rotatable&&e.isCellRotatable(b);a.movable=a.movable&&e.isCellMovable(b)&&!e.isTableRow(b)&&!e.isTableCell(b);a.swimlane=a.swimlane||e.isSwimlane(b);a.table=a.table||e.isTable(b);a.cell=a.cell||e.isTableCell(b);a.row=a.row||e.isTableRow(b);
a.vertices.push(b);var h=e.getCellGeometry(b);if(null!=h&&(0<h.width?null==a.width?a.width=h.width:a.width!=h.width&&(a.width=""):a.containsLabel=!0,0<h.height?null==a.height?a.height=h.height:a.height!=h.height&&(a.height=""):a.containsLabel=!0,!h.relative||null!=h.offset)){var d=h.relative?h.offset.x:h.x;h=h.relative?h.offset.y:h.y;null==a.x?a.x=d:a.x!=d&&(a.x="");null==a.y?a.y=h:a.y!=h&&(a.y="")}}else e.getModel().isEdge(b)&&(a.edges.push(b),a.connections=!0,a.resizable=!1,a.rotatable=!1,a.movable=
!1);d=e.view.getState(b);null!=d&&(a.html=a.html&&e.isHtmlLabel(b),a.autoSize=a.autoSize||e.isAutoSizeState(d),a.glass=a.glass&&e.isGlassState(d),a.rounded=a.rounded&&e.isRoundedState(d),a.lineJumps=a.lineJumps&&e.isLineJumpState(d),a.image=a.image||e.isImageState(d),a.shadow=a.shadow&&e.isShadowState(d),a.fill=a.fill&&e.isFillState(d),a.gradient=a.fill&&e.isGradientState(d),a.stroke=a.stroke&&e.isStrokeState(d),b=mxUtils.getValue(d.style,mxConstants.STYLE_SHAPE,null),a.containsImage=a.containsImage||
"image"==b,e.mergeStyle(d.style,a.style,f))};
-EditorUi.prototype.installShapePicker=function(){var a=this.editor.graph,b=this;a.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(p,k){"mouseDown"==k.getProperty("eventName")&&b.hideShapePicker()}));var e=mxUtils.bind(this,function(){b.hideShapePicker(!0)});a.addListener("wheel",e);a.addListener(mxEvent.ESCAPE,e);a.view.addListener(mxEvent.SCALE,e);a.view.addListener(mxEvent.SCALE_AND_TRANSLATE,e);a.getSelectionModel().addListener(mxEvent.CHANGE,e);var f=a.popupMenuHandler.isMenuShowing;
-a.popupMenuHandler.isMenuShowing=function(){return f.apply(this,arguments)||null!=b.shapePicker||null!=b.currentMenu};var h=a.dblClick;a.dblClick=function(p,k){if(this.isEnabled())if(null!=k||null==b.sidebar||mxEvent.isShiftDown(p)||a.isCellLocked(a.getDefaultParent()))h.apply(this,arguments);else{var u=mxUtils.convertPoint(this.container,mxEvent.getClientX(p),mxEvent.getClientY(p));mxEvent.consume(p);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(u.x,u.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",
-e);var d=this.hoverIcons.drag;this.hoverIcons.drag=function(){b.hideShapePicker();d.apply(this,arguments)};var g=this.hoverIcons.execute;this.hoverIcons.execute=function(p,k,u){var w=u.getEvent();this.graph.isCloneEvent(w)||mxEvent.isShiftDown(w)?g.apply(this,arguments):this.graph.connectVertex(p.cell,k,this.graph.defaultEdgeLength,w,null,null,mxUtils.bind(this,function(z,C,E){var D=a.getCompositeParent(p.cell);z=a.getCellGeometry(D);for(u.consume();null!=D&&a.model.isVertex(D)&&null!=z&&z.relative;)cell=
-D,D=a.model.getParent(cell),z=a.getCellGeometry(D);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(u.getGraphX(),u.getGraphY(),D,mxUtils.bind(this,function(G){E(G);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(G))}),k)}),30)}),mxUtils.bind(this,function(z){this.graph.selectCellsForConnectVertex(z,w,this)}))};var m=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(p,k){null!=m&&window.clearTimeout(m);m=window.setTimeout(mxUtils.bind(this,function(){var u=
+EditorUi.prototype.installShapePicker=function(){var a=this.editor.graph,b=this;a.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(q,k){"mouseDown"==k.getProperty("eventName")&&b.hideShapePicker()}));var e=mxUtils.bind(this,function(){b.hideShapePicker(!0)});a.addListener("wheel",e);a.addListener(mxEvent.ESCAPE,e);a.view.addListener(mxEvent.SCALE,e);a.view.addListener(mxEvent.SCALE_AND_TRANSLATE,e);a.getSelectionModel().addListener(mxEvent.CHANGE,e);var f=a.popupMenuHandler.isMenuShowing;
+a.popupMenuHandler.isMenuShowing=function(){return f.apply(this,arguments)||null!=b.shapePicker||null!=b.currentMenu};var h=a.dblClick;a.dblClick=function(q,k){if(this.isEnabled())if(null!=k||null==b.sidebar||mxEvent.isShiftDown(q)||a.isCellLocked(a.getDefaultParent()))h.apply(this,arguments);else{var u=mxUtils.convertPoint(this.container,mxEvent.getClientX(q),mxEvent.getClientY(q));mxEvent.consume(q);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(u.x,u.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",
+e);var d=this.hoverIcons.drag;this.hoverIcons.drag=function(){b.hideShapePicker();d.apply(this,arguments)};var g=this.hoverIcons.execute;this.hoverIcons.execute=function(q,k,u){var w=u.getEvent();this.graph.isCloneEvent(w)||mxEvent.isShiftDown(w)?g.apply(this,arguments):this.graph.connectVertex(q.cell,k,this.graph.defaultEdgeLength,w,null,null,mxUtils.bind(this,function(z,C,E){var D=a.getCompositeParent(q.cell);z=a.getCellGeometry(D);for(u.consume();null!=D&&a.model.isVertex(D)&&null!=z&&z.relative;)cell=
+D,D=a.model.getParent(cell),z=a.getCellGeometry(D);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(u.getGraphX(),u.getGraphY(),D,mxUtils.bind(this,function(G){E(G);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(G))}),k)}),30)}),mxUtils.bind(this,function(z){this.graph.selectCellsForConnectVertex(z,w,this)}))};var m=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(q,k){null!=m&&window.clearTimeout(m);m=window.setTimeout(mxUtils.bind(this,function(){var u=
k.getProperty("arrow"),w=k.getProperty("direction"),z=k.getProperty("event");u=u.getBoundingClientRect();var C=mxUtils.getOffset(a.container),E=a.container.scrollLeft+u.x-C.x;C=a.container.scrollTop+u.y-C.y;var D=a.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),G=b.showShapePicker(E,C,D,mxUtils.bind(this,function(J){null!=J&&a.connectVertex(D,w,a.defaultEdgeLength,z,!0,!1,function(L,Q,N){N(J);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(J))},
-function(L){a.selectCellsForConnectVertex(L)},z,this.hoverIcons)}),w,!0);null!=G&&(this.centerShapePicker(G,u,E,C,w),mxUtils.setOpacity(G,30),mxEvent.addListener(G,"mouseenter",function(){mxUtils.setOpacity(G,100)}),mxEvent.addListener(G,"mouseleave",function(){b.hideShapePicker()}))}),Editor.shapePickerHoverDelay)}));this.hoverIcons.addListener("blur",mxUtils.bind(this,function(p,k){null!=m&&window.clearTimeout(m)}))}};
+function(L){a.selectCellsForConnectVertex(L)},z,this.hoverIcons)}),w,!0);null!=G&&(this.centerShapePicker(G,u,E,C,w),mxUtils.setOpacity(G,30),mxEvent.addListener(G,"mouseenter",function(){mxUtils.setOpacity(G,100)}),mxEvent.addListener(G,"mouseleave",function(){b.hideShapePicker()}))}),Editor.shapePickerHoverDelay)}));this.hoverIcons.addListener("blur",mxUtils.bind(this,function(q,k){null!=m&&window.clearTimeout(m)}))}};
EditorUi.prototype.centerShapePicker=function(a,b,e,f,h){if(h==mxConstants.DIRECTION_EAST||h==mxConstants.DIRECTION_WEST)a.style.width="40px";var d=a.getBoundingClientRect();h==mxConstants.DIRECTION_NORTH?(e-=d.width/2-10,f-=d.height+6):h==mxConstants.DIRECTION_SOUTH?(e-=d.width/2-10,f+=b.height+6):h==mxConstants.DIRECTION_WEST?(e-=d.width+6,f-=d.height/2-10):h==mxConstants.DIRECTION_EAST&&(e+=b.width+6,f-=d.height/2-10);a.style.left=e+"px";a.style.top=f+"px"};
-EditorUi.prototype.showShapePicker=function(a,b,e,f,h,d,g,m,p){var k=null;this.editor.graph.freehand.isDrawing()||(m=m||null==e,k=this.createShapePicker(a,b,e,f,h,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(e,d,m),d,g,m,p),null!=k&&(null==this.hoverIcons||d||this.hoverIcons.reset(),a=this.editor.graph,a.popupMenuHandler.hideMenu(),a.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=f,this.shapePicker=k));return k};
-EditorUi.prototype.createShapePicker=function(a,b,e,f,h,d,g,m,p,k,u){u=null!=u?u:!0;var w=this.editor.graph,z=null;p=null!=p?p:function(D){D=D[0];var G=0,J=0,L=D.geometry;null!=L&&(w.model.isEdge(D)&&(D=L.getTerminalPoint(!1),L=new mxRectangle(0,0,D.x,D.y)),G=L.width/2,J=L.height/2);return new mxPoint(w.snap(Math.round(a/w.view.scale)-w.view.translate.x-G),w.snap(Math.round(b/w.view.scale)-w.view.translate.y-J))};if(null!=g&&0<g.length){var C=this;w=this.editor.graph;z=document.createElement("div");
+EditorUi.prototype.showShapePicker=function(a,b,e,f,h,d,g,m,q){var k=null;this.editor.graph.freehand.isDrawing()||(m=m||null==e,k=this.createShapePicker(a,b,e,f,h,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(e,d,m),d,g,m,q),null!=k&&(null==this.hoverIcons||d||this.hoverIcons.reset(),a=this.editor.graph,a.popupMenuHandler.hideMenu(),a.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=f,this.shapePicker=k));return k};
+EditorUi.prototype.createShapePicker=function(a,b,e,f,h,d,g,m,q,k,u){u=null!=u?u:!0;var w=this.editor.graph,z=null;q=null!=q?q:function(D){D=D[0];var G=0,J=0,L=D.geometry;null!=L&&(w.model.isEdge(D)&&(D=L.getTerminalPoint(!1),L=new mxRectangle(0,0,D.x,D.y)),G=L.width/2,J=L.height/2);return new mxPoint(w.snap(Math.round(a/w.view.scale)-w.view.translate.x-G),w.snap(Math.round(b/w.view.scale)-w.view.translate.y-J))};if(null!=g&&0<g.length){var C=this;w=this.editor.graph;z=document.createElement("div");
h=w.view.getState(e);var E=null==e||null!=h&&w.isTransparentState(h)?null:w.copyStyle(e);h=6>g.length?35*g.length:140;z.className="geToolbarContainer geSidebarContainer geShapePicker";z.setAttribute("title",mxResources.get("sidebarTooltip"));z.style.left=Math.round(a)+"px";z.style.top=Math.round(b)+"px";z.style.width=h+"px";mxClient.IS_POINTER&&(z.style.touchAction="none");m||mxUtils.setPrefixedStyle(z.style,"transform","translate(-22px,-22px)");w.container.appendChild(z);h=mxUtils.bind(this,function(D){var G=
document.createElement("a");G.className="geToolbarButton";G.style.display="inline-block";G.style.position="relative";G.style.overflow="hidden";G.style.cursor="pointer";G.style.width="30px";G.style.height="30px";G.style.padding="1px";z.appendChild(G);null!=E&&"1"!=urlParams.sketch?this.sidebar.graph.pasteStyle(E,[D]):this.sidebar.graph.pasteCellStyles([D],w.currentVertexStyle,w.currentEdgeStyle);var J=D.geometry;w.model.isEdge(D)&&(J=J.getTerminalPoint(!1),J=new mxRectangle(0,0,J.x,J.y));null!=J&&
-G.appendChild(this.sidebar.createVertexTemplateFromCells([D],J.width,J.height,"",!0,!1,null,!1,mxUtils.bind(this,function(L){if(!mxEvent.isShiftDown(L)||null==e&&w.isSelectionEmpty()){var Q=w.cloneCell(D);if(null!=f)f(Q);else{var N=p([Q]);w.model.isEdge(Q)?Q.geometry.translate(N.x,N.y):(Q.geometry.x=N.x,Q.geometry.y=N.y);w.model.beginUpdate();try{w.addCell(Q),w.model.isVertex(Q)&&w.isAutoSizeCell(Q)&&w.updateCellSize(Q)}finally{w.model.endUpdate()}w.setSelectionCell(Q);w.scrollCellToVisible(Q);u&&
+G.appendChild(this.sidebar.createVertexTemplateFromCells([D],J.width,J.height,"",!0,!1,null,!1,mxUtils.bind(this,function(L){if(!mxEvent.isShiftDown(L)||null==e&&w.isSelectionEmpty()){var Q=w.cloneCell(D);if(null!=f)f(Q);else{var N=q([Q]);w.model.isEdge(Q)?Q.geometry.translate(N.x,N.y):(Q.geometry.x=N.x,Q.geometry.y=N.y);w.model.beginUpdate();try{w.addCell(Q),w.model.isVertex(Q)&&w.isAutoSizeCell(Q)&&w.updateCellSize(Q)}finally{w.model.endUpdate()}w.setSelectionCell(Q);w.scrollCellToVisible(Q);u&&
w.startEditing(Q);null!=C.hoverIcons&&C.hoverIcons.update(w.view.getState(Q))}}else Q=w.getEditableCells(null!=e?[e]:w.getSelectionCells()),w.updateShapes(D,Q);null!=d&&d(L);mxEvent.consume(L)}),25,25,null,null,e))});for(k=0;k<(m?Math.min(g.length,4):g.length);k++)h(g[k]);g=z.offsetTop+z.clientHeight-(w.container.scrollTop+w.container.offsetHeight);0<g&&(z.style.top=Math.max(w.container.scrollTop+22,b-g)+"px");g=z.offsetLeft+z.clientWidth-(w.container.scrollLeft+w.container.offsetWidth);0<g&&(z.style.left=
Math.max(w.container.scrollLeft+22,a-g)+"px")}return z};
-EditorUi.prototype.getCellsForShapePicker=function(a,b,e){var f=this.editor.graph,h=mxUtils.bind(this,function(d,g,m,p){return f.createVertex(null,null,p||"",0,0,g||120,m||60,d,!1)});b=mxUtils.bind(this,function(d,g,m){d=new mxCell(m||"",new mxGeometry(0,0,f.defaultEdgeLength+20,0),d);d.geometry.setTerminalPoint(new mxPoint(0,0),!0);d.geometry.setTerminalPoint(new mxPoint(d.geometry.width,null!=g?g:0),!1);d.geometry.points=null!=g?[new mxPoint(d.geometry.width/2,g)]:[];d.geometry.relative=!0;d.edge=
+EditorUi.prototype.getCellsForShapePicker=function(a,b,e){var f=this.editor.graph,h=mxUtils.bind(this,function(d,g,m,q){return f.createVertex(null,null,q||"",0,0,g||120,m||60,d,!1)});b=mxUtils.bind(this,function(d,g,m){d=new mxCell(m||"",new mxGeometry(0,0,f.defaultEdgeLength+20,0),d);d.geometry.setTerminalPoint(new mxPoint(0,0),!0);d.geometry.setTerminalPoint(new mxPoint(d.geometry.width,null!=g?g:0),!1);d.geometry.points=null!=g?[new mxPoint(d.geometry.width/2,g)]:[];d.geometry.relative=!0;d.edge=
!0;return d});if(null!=a)try{a=f.cloneCell(a),f.model.isVertex(a)&&null!=a.geometry&&(a.geometry.x=0,a.geometry.y=0)}catch(d){a=null}null==a&&(a=h(f.appendFontSize("text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;",f.vertexFontSize),40,20,"Text"),f.model.isVertex(a)&&f.isAutoSizeCell(a)&&Graph.createOffscreenGraph(f.getStylesheet()).updateCellSize(a));a=[a,h("whiteSpace=wrap;html=1;"),h("ellipse;whiteSpace=wrap;html=1;",80,80),h("rhombus;whiteSpace=wrap;html=1;",
80,80),h("rounded=1;whiteSpace=wrap;html=1;"),h("shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;"),h("shape=trapezoid;perimeter=trapezoidPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,60),h("shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;",120,80),h("shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,80),h("shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;"),h("triangle;whiteSpace=wrap;html=1;",
60,80),h("shape=document;whiteSpace=wrap;html=1;boundedLbl=1;",120,80),h("shape=tape;whiteSpace=wrap;html=1;",120,100),h("ellipse;shape=cloud;whiteSpace=wrap;html=1;",120,80),h("shape=singleArrow;whiteSpace=wrap;html=1;arrowWidth=0.4;arrowSize=0.4;",80,60),h("shape=waypoint;sketch=0;size=6;pointerEvents=1;points=[];fillColor=none;resizable=0;rotatable=0;perimeter=centerPerimeter;snapToPoint=1;",20,20)];e&&(a=a.concat([b("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;"),b("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;endArrow=classic;startArrow=classic;endSize=8;startSize=8;"),
@@ -2150,8 +2150,8 @@ b?Format.blockMarkerImage.src:Format.blockFilledMarkerImage.src:a==mxConstants.A
b?Format.doubleBlockMarkerImage.src:Format.doubleBlockFilledMarkerImage.src:"box"==a?Format.boxMarkerImage.src:"halfCircle"==a?Format.halfCircleMarkerImage.src:"openAsync"==a?Format.openAsyncFilledMarkerImage.src:"async"==a?"1"!=b?Format.asyncMarkerImage.src:Format.asyncFilledMarkerImage.src:"dash"==a?Format.dashMarkerImage.src:"baseDash"==a?Format.baseDashMarkerImage.src:"cross"==a?Format.crossMarkerImage.src:"circle"==a?Format.circleMarkerImage.src:"circlePlus"==a?Format.circlePlusMarkerImage.src:
"ERone"==a?Format.EROneMarkerImage.src:"ERmandOne"==a?Format.ERmandOneMarkerImage.src:"ERmany"==a?Format.ERmanyMarkerImage.src:"ERoneToMany"==a?Format.ERoneToManyMarkerImage.src:"ERzeroToOne"==a?Format.ERzeroToOneMarkerImage.src:"ERzeroToMany"==a?Format.ERzeroToManyMarkerImage.src:null};EditorUi.prototype.createMenus=function(){return null};
EditorUi.prototype.updatePasteActionStates=function(){var a=this.editor.graph,b=this.actions.get("paste"),e=this.actions.get("pasteHere");b.setEnabled(this.editor.graph.cellEditor.isContentEditing()||(!mxClient.IS_FF&&null!=navigator.clipboard||!mxClipboard.isEmpty())&&a.isEnabled()&&!a.isCellLocked(a.getDefaultParent()));e.setEnabled(b.isEnabled())};
-EditorUi.prototype.initClipboard=function(){var a=this,b=mxClipboard.cut;mxClipboard.cut=function(d){d.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):b.apply(this,arguments);a.updatePasteActionStates()};mxClipboard.copy=function(d){var g=null;if(d.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{g=g||d.getSelectionCells();g=d.getExportableCells(d.model.getTopmostCells(g));for(var m={},p=d.createCellLookup(g),k=d.cloneCells(g,null,m),u=new mxGraphModel,w=u.getChildAt(u.getRoot(),
-0),z=0;z<k.length;z++){u.add(w,k[z]);var C=d.view.getState(g[z]);if(null!=C){var E=d.getCellGeometry(k[z]);null!=E&&E.relative&&!u.isEdge(g[z])&&null==p[mxObjectIdentity.get(u.getParent(g[z]))]&&(E.offset=null,E.relative=!1,E.x=C.x/C.view.scale-C.view.translate.x,E.y=C.y/C.view.scale-C.view.translate.y)}}d.updateCustomLinks(d.createCellMapping(m,p),k);mxClipboard.insertCount=1;mxClipboard.setCells(k)}a.updatePasteActionStates();return g};var e=mxClipboard.paste;mxClipboard.paste=function(d){var g=
+EditorUi.prototype.initClipboard=function(){var a=this,b=mxClipboard.cut;mxClipboard.cut=function(d){d.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):b.apply(this,arguments);a.updatePasteActionStates()};mxClipboard.copy=function(d){var g=null;if(d.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{g=g||d.getSelectionCells();g=d.getExportableCells(d.model.getTopmostCells(g));for(var m={},q=d.createCellLookup(g),k=d.cloneCells(g,null,m),u=new mxGraphModel,w=u.getChildAt(u.getRoot(),
+0),z=0;z<k.length;z++){u.add(w,k[z]);var C=d.view.getState(g[z]);if(null!=C){var E=d.getCellGeometry(k[z]);null!=E&&E.relative&&!u.isEdge(g[z])&&null==q[mxObjectIdentity.get(u.getParent(g[z]))]&&(E.offset=null,E.relative=!1,E.x=C.x/C.view.scale-C.view.translate.x,E.y=C.y/C.view.scale-C.view.translate.y)}}d.updateCustomLinks(d.createCellMapping(m,q),k);mxClipboard.insertCount=1;mxClipboard.setCells(k)}a.updatePasteActionStates();return g};var e=mxClipboard.paste;mxClipboard.paste=function(d){var g=
null;d.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):g=e.apply(this,arguments);a.updatePasteActionStates();return g};var f=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){f.apply(this,arguments);a.updatePasteActionStates()};var h=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(d,g){h.apply(this,arguments);a.updatePasteActionStates()};this.updatePasteActionStates()};
EditorUi.prototype.lazyZoomDelay=20;EditorUi.prototype.wheelZoomDelay=500;EditorUi.prototype.buttonZoomDelay=600;
EditorUi.prototype.initCanvas=function(){var a=this.editor.graph;a.timerAutoScroll=!0;a.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((a.container.offsetWidth-34)/a.view.scale)),Math.max(0,Math.round((a.container.offsetHeight-34)/a.view.scale)))};a.view.getBackgroundPageBounds=function(){var H=this.graph.getPageLayout(),ea=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+H.x*ea.width),this.scale*(this.translate.y+H.y*ea.height),this.scale*H.width*ea.width,
@@ -2162,10 +2162,10 @@ Ca=a.view.scale,Ja=mxRectangle.fromRectangle(Pa);Ja.x=Ja.x/Ca-Ba.x;Ja.y=Ja.y/Ca-
"fixed";this.chromelessToolbar.style.overflow="hidden";this.chromelessToolbar.style.boxSizing="border-box";this.chromelessToolbar.style.whiteSpace="nowrap";this.chromelessToolbar.style.padding="10px 10px 8px 10px";this.chromelessToolbar.style.left=a.isViewer()?"0":"50%";mxClient.IS_IE||mxClient.IS_IE11?(this.chromelessToolbar.style.backgroundColor="#ffffff",this.chromelessToolbar.style.border="3px solid black"):this.chromelessToolbar.style.backgroundColor="#000000";mxUtils.setPrefixedStyle(this.chromelessToolbar.style,
"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transition","opacity 600ms ease-in-out");var d=mxUtils.bind(this,function(){var H=mxUtils.getCurrentStyle(a.container);a.isViewer()?this.chromelessToolbar.style.top="0":this.chromelessToolbar.style.bottom=(null!=H?parseInt(H["margin-bottom"]||0):0)+(null!=this.tabContainer?20+parseInt(this.tabContainer.style.height):20)+"px"});this.editor.addListener("resetGraphView",d);d();var g=0;d=mxUtils.bind(this,function(H,ea,ra){g++;
var qa=document.createElement("span");qa.style.paddingLeft="8px";qa.style.paddingRight="8px";qa.style.cursor="pointer";mxEvent.addListener(qa,"click",H);null!=ra&&qa.setAttribute("title",ra);H=document.createElement("img");H.setAttribute("border","0");H.setAttribute("src",ea);H.style.width="36px";H.style.filter="invert(100%)";qa.appendChild(H);this.chromelessToolbar.appendChild(qa);return qa});if(null!=h.backBtn){var m=Graph.sanitizeLink(h.backBtn.url);null!=m&&d(mxUtils.bind(this,function(H){window.location.href=
-m;mxEvent.consume(H)}),Editor.backImage,mxResources.get("back",null,"Back"))}if(this.isPagesEnabled()){var p=d(mxUtils.bind(this,function(H){this.actions.get("previousPage").funct();mxEvent.consume(H)}),Editor.previousImage,mxResources.get("previousPage")),k=document.createElement("div");k.style.fontFamily=Editor.defaultHtmlFont;k.style.display="inline-block";k.style.verticalAlign="top";k.style.fontWeight="bold";k.style.marginTop="8px";k.style.fontSize="14px";k.style.cursor="default";k.style.color=
+m;mxEvent.consume(H)}),Editor.backImage,mxResources.get("back",null,"Back"))}if(this.isPagesEnabled()){var q=d(mxUtils.bind(this,function(H){this.actions.get("previousPage").funct();mxEvent.consume(H)}),Editor.previousImage,mxResources.get("previousPage")),k=document.createElement("div");k.style.fontFamily=Editor.defaultHtmlFont;k.style.display="inline-block";k.style.verticalAlign="top";k.style.fontWeight="bold";k.style.marginTop="8px";k.style.fontSize="14px";k.style.cursor="default";k.style.color=
mxClient.IS_IE||mxClient.IS_IE11?"#000000":"#ffffff";this.chromelessToolbar.appendChild(k);var u=d(mxUtils.bind(this,function(H){this.actions.get("nextPage").funct();mxEvent.consume(H)}),Editor.nextImage,mxResources.get("nextPage")),w=mxUtils.bind(this,function(){if(null!=this.pages&&1<this.pages.length&&null!=this.currentPage){k.innerText="";var H=mxUtils.indexOf(this.pages,this.currentPage);mxUtils.write(k,H+1+" / "+this.pages.length);k.setAttribute("title",mxResources.get("currentPage")+": "+this.currentPage.getName());
-p.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.mod(H-1,this.pages.length)].getName());u.setAttribute("title",mxResources.get("nextPage")+": "+this.pages[mxUtils.mod(H+1,this.pages.length)].getName())}});p.style.paddingLeft="0px";p.style.paddingRight="4px";u.style.paddingLeft="4px";u.style.paddingRight="0px";var z=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(u.style.display="",p.style.display="",k.style.display="inline-block"):
-(u.style.display="none",p.style.display="none",k.style.display="none");w()});if(null!=this.menus){var C=this.menus.get("pages");null!=C&&mxEvent.addListener(k,"click",mxUtils.bind(this,function(H){var ea=new mxPopupMenu(C.funct);ea.div.className+=" geMenubarMenu";ea.smartSeparators=!0;ea.showDisabled=!0;ea.autoExpand=!0;ea.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(ea,arguments);ea.destroy()});var ra=mxUtils.getOffset(k);ea.popup(ra.x,ra.y+k.offsetHeight,null,H);mxEvent.addListener(ea.div,
+q.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.mod(H-1,this.pages.length)].getName());u.setAttribute("title",mxResources.get("nextPage")+": "+this.pages[mxUtils.mod(H+1,this.pages.length)].getName())}});q.style.paddingLeft="0px";q.style.paddingRight="4px";u.style.paddingLeft="4px";u.style.paddingRight="0px";var z=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(u.style.display="",q.style.display="",k.style.display="inline-block"):
+(u.style.display="none",q.style.display="none",k.style.display="none");w()});if(null!=this.menus){var C=this.menus.get("pages");null!=C&&mxEvent.addListener(k,"click",mxUtils.bind(this,function(H){var ea=new mxPopupMenu(C.funct);ea.div.className+=" geMenubarMenu";ea.smartSeparators=!0;ea.showDisabled=!0;ea.autoExpand=!0;ea.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(ea,arguments);ea.destroy()});var ra=mxUtils.getOffset(k);ea.popup(ra.x,ra.y+k.offsetHeight,null,H);mxEvent.addListener(ea.div,
"mouseleave",mxUtils.bind(this,function(){ea.hideMenu()}))}))}this.editor.addListener("resetGraphView",z);this.editor.addListener("pageSelected",w)}d(mxUtils.bind(this,function(H){this.actions.get("zoomOut").funct();mxEvent.consume(H)}),Editor.zoomOutImage,mxResources.get("zoomOut")+" (Alt+Mousewheel)");d(mxUtils.bind(this,function(H){this.actions.get("zoomIn").funct();mxEvent.consume(H)}),Editor.zoomInImage,mxResources.get("zoomIn")+" (Alt+Mousewheel)");d(mxUtils.bind(this,function(H){a.isLightboxView()?
(1==a.view.scale?this.lightboxFit():a.zoomTo(1),this.chromelessResize(!1)):this.chromelessResize(!0);mxEvent.consume(H)}),Editor.zoomFitImage,mxResources.get("fit"));var E=null,D=null,G=mxUtils.bind(this,function(H){null!=E&&(window.clearTimeout(E),E=null);null!=D&&(window.clearTimeout(D),D=null);E=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(this.chromelessToolbar,0);E=null;D=window.setTimeout(mxUtils.bind(this,function(){this.chromelessToolbar.style.display="none";D=null}),
600)}),H||200)}),J=mxUtils.bind(this,function(H){null!=E&&(window.clearTimeout(E),E=null);null!=D&&(window.clearTimeout(D),D=null);this.chromelessToolbar.style.display="";mxUtils.setOpacity(this.chromelessToolbar,H||30)});if("1"==urlParams.layers){this.layersDialog=null;var L=d(mxUtils.bind(this,function(H){if(null!=this.layersDialog)this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null;else{this.layersDialog=a.createLayersDialog(mxUtils.bind(this,function(){this.chromelessResize&&
@@ -2211,7 +2211,7 @@ b.scrollTop=Math.floor(Math.max(0,e.y-Math.max(20,(b.clientHeight-f)/4)))}else{e
EditorUi.prototype.setPageVisible=function(a){var b=this.editor.graph,e=mxUtils.hasScrollbars(b.container),f=0,h=0;e&&(f=b.view.translate.x*b.view.scale-b.container.scrollLeft,h=b.view.translate.y*b.view.scale-b.container.scrollTop);b.pageVisible=a;b.pageBreaksVisible=a;b.preferPageSize=a;b.view.validateBackground();if(e){var d=b.getSelectionCells();b.clearSelection();b.setSelectionCells(d)}b.sizeDidChange();e&&(b.container.scrollLeft=b.view.translate.x*b.view.scale-f,b.container.scrollTop=b.view.translate.y*
b.view.scale-h);b.defaultPageVisible=a;this.fireEvent(new mxEventObject("pageViewChanged"))};
EditorUi.prototype.installResizeHandler=function(a,b,e){b&&(a.window.setSize=function(h,d){if(!this.minimized){var g=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;h=Math.min(h,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.getX());d=Math.min(d,g-this.getY())}mxWindow.prototype.setSize.apply(this,arguments)});a.window.setLocation=function(h,d){var g=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth,
-m=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,p=parseInt(this.div.style.width),k=parseInt(this.div.style.height);h=Math.max(0,Math.min(h,g-p));d=Math.max(0,Math.min(d,m-k));this.getX()==h&&this.getY()==d||mxWindow.prototype.setLocation.apply(this,arguments);b&&!this.minimized&&this.setSize(p,k)};var f=mxUtils.bind(this,function(){var h=a.window.getX(),d=a.window.getY();a.window.setLocation(h,d)});mxEvent.addListener(window,"resize",f);a.destroy=function(){mxEvent.removeListener(window,
+m=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,q=parseInt(this.div.style.width),k=parseInt(this.div.style.height);h=Math.max(0,Math.min(h,g-q));d=Math.max(0,Math.min(d,m-k));this.getX()==h&&this.getY()==d||mxWindow.prototype.setLocation.apply(this,arguments);b&&!this.minimized&&this.setSize(q,k)};var f=mxUtils.bind(this,function(){var h=a.window.getX(),d=a.window.getY();a.window.setLocation(h,d)});mxEvent.addListener(window,"resize",f);a.destroy=function(){mxEvent.removeListener(window,
"resize",f);a.window.destroy();null!=e&&e()}};function ChangeGridColor(a,b){this.ui=a;this.color=b}ChangeGridColor.prototype.execute=function(){var a=this.ui.editor.graph.view.gridColor;this.ui.setGridColor(this.color);this.color=a};(function(){var a=new mxObjectCodec(new ChangeGridColor,["ui"]);mxCodecRegistry.register(a)})();
function ChangePageSetup(a,b,e,f,h){this.ui=a;this.previousColor=this.color=b;this.previousImage=this.image=e;this.previousFormat=this.format=f;this.previousPageScale=this.pageScale=h;this.ignoreImage=this.ignoreColor=!1}
ChangePageSetup.prototype.execute=function(){var a=this.ui.editor.graph;if(!this.ignoreColor){this.color=this.previousColor;var b=a.background;this.ui.setBackgroundColor(this.previousColor);this.previousColor=b}if(!this.ignoreImage){this.image=this.previousImage;b=a.backgroundImage;var e=this.previousImage;null!=e&&Graph.isPageLink(e.src)&&(e=this.ui.createImageForPageLink(e.src,this.ui.currentPage));this.ui.setBackgroundImage(e);this.previousImage=b}null!=this.previousFormat&&(this.format=this.previousFormat,
@@ -2247,22 +2247,22 @@ EditorUi.prototype.setStatusText=function(a){this.statusContainer.innerHTML=Grap
"transition","all 0.2s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(e,100);mxUtils.setPrefixedStyle(e.style,"transform","scaleX(1)");mxUtils.setPrefixedStyle(e.style,"transition","all 1s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(e.style,"transform","scaleX(0)");mxUtils.setOpacity(e,0);window.setTimeout(mxUtils.bind(this,function(){null!=e.parentNode&&e.parentNode.removeChild(e)}),1E3)}),Editor.updateStatusInterval/2)}),0)})(a[b])};
EditorUi.prototype.createStatusDiv=function(a){var b=document.createElement("div");b.style.textOverflow="ellipsis";b.style.display="inline-block";b.style.whiteSpace="nowrap";b.style.overflow="hidden";b.style.minWidth="0";b.setAttribute("title",a);b.innerHTML=Graph.sanitizeHtml(a);return b};EditorUi.prototype.createToolbar=function(a){return new Toolbar(this,a)};EditorUi.prototype.createSidebar=function(a){return new Sidebar(this,a)};
EditorUi.prototype.createFormat=function(a){return new Format(this,a)};EditorUi.prototype.createFooter=function(){return this.createDiv("geFooter")};EditorUi.prototype.createDiv=function(a){var b=document.createElement("div");b.className=a;return b};
-EditorUi.prototype.addSplitHandler=function(a,b,e,f){function h(w){if(null!=g){var z=new mxPoint(mxEvent.getClientX(w),mxEvent.getClientY(w));f(Math.max(0,m+(b?z.x-g.x:g.y-z.y)-e));mxEvent.consume(w);m!=u()&&(p=!0,k=null)}}function d(w){h(w);g=m=null}var g=null,m=null,p=!0,k=null;mxClient.IS_POINTER&&(a.style.touchAction="none");var u=mxUtils.bind(this,function(){var w=parseInt(b?a.style.left:a.style.bottom);b||(w=w+e-this.footerHeight);return w});mxEvent.addGestureListeners(a,function(w){g=new mxPoint(mxEvent.getClientX(w),
-mxEvent.getClientY(w));m=u();p=!1;mxEvent.consume(w)});mxEvent.addListener(a,"click",mxUtils.bind(this,function(w){if(!p&&this.hsplitClickEnabled){var z=null!=k?k-e:0;k=u();f(z);mxEvent.consume(w)}}));mxEvent.addGestureListeners(document,null,h,d);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,h,d)})};
+EditorUi.prototype.addSplitHandler=function(a,b,e,f){function h(w){if(null!=g){var z=new mxPoint(mxEvent.getClientX(w),mxEvent.getClientY(w));f(Math.max(0,m+(b?z.x-g.x:g.y-z.y)-e));mxEvent.consume(w);m!=u()&&(q=!0,k=null)}}function d(w){h(w);g=m=null}var g=null,m=null,q=!0,k=null;mxClient.IS_POINTER&&(a.style.touchAction="none");var u=mxUtils.bind(this,function(){var w=parseInt(b?a.style.left:a.style.bottom);b||(w=w+e-this.footerHeight);return w});mxEvent.addGestureListeners(a,function(w){g=new mxPoint(mxEvent.getClientX(w),
+mxEvent.getClientY(w));m=u();q=!1;mxEvent.consume(w)});mxEvent.addListener(a,"click",mxUtils.bind(this,function(w){if(!q&&this.hsplitClickEnabled){var z=null!=k?k-e:0;k=u();f(z);mxEvent.consume(w)}}));mxEvent.addGestureListeners(document,null,h,d);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,h,d)})};
EditorUi.prototype.prompt=function(a,b,e){a=new FilenameDialog(this,b,mxResources.get("apply"),function(f){e(parseFloat(f))},a);this.showDialog(a.container,300,80,!0,!0);a.init()};
EditorUi.prototype.handleError=function(a,b,e,f,h){a=null!=a&&null!=a.error?a.error:a;if(null!=a||null!=b){h=mxUtils.htmlEntities(mxResources.get("unknownError"));var d=mxResources.get("ok");b=null!=b?b:mxResources.get("error");null!=a&&null!=a.message&&(h=mxUtils.htmlEntities(a.message));this.showError(b,h,d,e,null,null,null,null,null,null,null,null,f?e:null)}else null!=e&&e()};
-EditorUi.prototype.showError=function(a,b,e,f,h,d,g,m,p,k,u,w,z){a=new ErrorDialog(this,a,b,e||mxResources.get("ok"),f,h,d,g,w,m,p);b=Math.ceil(null!=b?b.length/50:1);this.showDialog(a.container,k||340,u||100+20*b,!0,!1,z);a.init()};EditorUi.prototype.showDialog=function(a,b,e,f,h,d,g,m,p,k){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,a,b,e,f,h,d,g,m,p,k);this.dialogs.push(this.dialog)};
+EditorUi.prototype.showError=function(a,b,e,f,h,d,g,m,q,k,u,w,z){a=new ErrorDialog(this,a,b,e||mxResources.get("ok"),f,h,d,g,w,m,q);b=Math.ceil(null!=b?b.length/50:1);this.showDialog(a.container,k||340,u||100+20*b,!0,!1,z);a.init()};EditorUi.prototype.showDialog=function(a,b,e,f,h,d,g,m,q,k){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,a,b,e,f,h,d,g,m,q,k);this.dialogs.push(this.dialog)};
EditorUi.prototype.hideDialog=function(a,b,e){var f=null;if(null!=this.dialogs&&0<this.dialogs.length)for(var h=this.dialogs.length-1;0<=h;h--)if(!this.dialogs[h].closing){f=this.dialogs[h];break}null==f||null!=e&&e!=this.dialog.container.firstChild||(f.closing=!0,0==f.close(a,b)?delete f.closing:(delete f.closing,a=mxUtils.lastIndexOf(this.dialogs,f),0<=a&&this.dialogs.splice(a,1),this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog",
"dialog",f)),null==this.dialog&&null!=this.editor.graph.container&&"hidden"!=this.editor.graph.container.style.visibility&&window.setTimeout(mxUtils.bind(this,function(){null==this.editor||null!=this.dialogs&&0!=this.dialogs.length||(this.editor.graph.isEditing()&&null!=this.editor.graph.cellEditor.textarea?this.editor.graph.cellEditor.textarea.focus():(mxUtils.clearSelection(),this.editor.graph.container.focus()))}),0)))};
EditorUi.prototype.ctrlEnter=function(){var a=this.editor.graph;if(a.isEnabled())try{for(var b=a.getSelectionCells(),e=new mxDictionary,f=[],h=0;h<b.length;h++){var d=a.isTableCell(b[h])?a.model.getParent(b[h]):b[h];null==d||e.get(d)||(e.put(d,!0),f.push(d))}a.setSelectionCells(a.duplicateCells(f,!1))}catch(g){this.handleError(g)}};
-EditorUi.prototype.pickColor=function(a,b,e,f,h){var d=this.editor.graph,g=d.cellEditor.saveSelection(),m=(h?240:290)+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));a=new ColorDialog(this,a,function(p){d.cellEditor.restoreSelection(g);b(p)},function(){d.cellEditor.restoreSelection(g)},e,f,h);this.showDialog(a.container,230,m,!0,!1);a.init()};
+EditorUi.prototype.pickColor=function(a,b,e,f,h){var d=this.editor.graph,g=d.cellEditor.saveSelection(),m=(h?240:290)+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));a=new ColorDialog(this,a,function(q){d.cellEditor.restoreSelection(g);b(q)},function(){d.cellEditor.restoreSelection(g)},e,f,h);this.showDialog(a.container,230,m,!0,!1);a.init()};
EditorUi.prototype.openFile=function(){window.openFile=new OpenFile(mxUtils.bind(this,function(a){this.hideDialog(a)}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:320,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null})};
-EditorUi.prototype.base64ToBlob=function(a,b){b=b||"";a=atob(a);for(var e=a.length,f=Math.ceil(e/1024),h=Array(f),d=0;d<f;++d){for(var g=1024*d,m=Math.min(g+1024,e),p=Array(m-g),k=0;g<m;++k,++g)p[k]=a[g].charCodeAt(0);h[d]=new Uint8Array(p)}return new Blob(h,{type:b})};
+EditorUi.prototype.base64ToBlob=function(a,b){b=b||"";a=atob(a);for(var e=a.length,f=Math.ceil(e/1024),h=Array(f),d=0;d<f;++d){for(var g=1024*d,m=Math.min(g+1024,e),q=Array(m-g),k=0;g<m;++k,++g)q[k]=a[g].charCodeAt(0);h[d]=new Uint8Array(q)}return new Blob(h,{type:b})};
EditorUi.prototype.writeImageToClipboard=function(a,b,e,f){var h=this.base64ToBlob(a.substring(a.indexOf(",")+1),"image/png");a=new ClipboardItem({"image/png":h,"text/html":new Blob(['<img src="'+a+'" width="'+b+'" height="'+e+'">'],{type:"text/html"})});navigator.clipboard.write([a])["catch"](f)};EditorUi.prototype.writeHtmlToClipboard=function(a,b){a=new ClipboardItem({"text/plain":new Blob([Editor.convertHtmlToText(a)],{type:"text/plain"}),"text/html":new Blob([a],{type:"text/html"})});navigator.clipboard.write([a])["catch"](b)};
EditorUi.prototype.writeTextToClipboard=function(a,b){navigator.clipboard.writeText(a)["catch"](b)};EditorUi.prototype.extractGraphModelFromHtml=function(a){var b=null;try{var e=a.indexOf("&lt;mxGraphModel ");if(0<=e){var f=a.lastIndexOf("&lt;/mxGraphModel&gt;");f>e&&(b=a.substring(e,f+21).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}}catch(h){}return b};
EditorUi.prototype.readGraphModelFromClipboard=function(a){this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(b){null!=b?a(b):this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(e){if(null!=e){var f=decodeURIComponent(e);this.isCompatibleString(f)&&(e=f)}a(e)}),"text")}),"html")};
EditorUi.prototype.readGraphModelFromClipboardWithType=function(a,b){navigator.clipboard.read().then(mxUtils.bind(this,function(e){if(null!=e&&0<e.length&&"html"==b&&0<=mxUtils.indexOf(e[0].types,"text/html"))e[0].getType("text/html").then(mxUtils.bind(this,function(f){f.text().then(mxUtils.bind(this,function(h){try{var d=this.parseHtmlData(h),g="text/plain"!=d.getAttribute("data-type")?d.innerHTML:mxUtils.trim(null==d.innerText?mxUtils.getTextContent(d):d.innerText);try{var m=g.lastIndexOf("%3E");
-0<=m&&m<g.length-3&&(g=g.substring(0,m+3))}catch(u){}try{var p=d.getElementsByTagName("span"),k=null!=p&&0<p.length?mxUtils.trim(decodeURIComponent(p[0].textContent)):decodeURIComponent(g);this.isCompatibleString(k)&&(g=k)}catch(u){}}catch(u){}a(this.isCompatibleString(g)?g:null)}))["catch"](function(h){a(null)})}))["catch"](function(f){a(null)});else if(null!=e&&0<e.length&&"text"==b&&0<=mxUtils.indexOf(e[0].types,"text/plain"))e[0].getType("text/plain").then(function(f){f.text().then(function(h){a(h)})["catch"](function(){a(null)})})["catch"](function(){a(null)});
+0<=m&&m<g.length-3&&(g=g.substring(0,m+3))}catch(u){}try{var q=d.getElementsByTagName("span"),k=null!=q&&0<q.length?mxUtils.trim(decodeURIComponent(q[0].textContent)):decodeURIComponent(g);this.isCompatibleString(k)&&(g=k)}catch(u){}}catch(u){}a(this.isCompatibleString(g)?g:null)}))["catch"](function(h){a(null)})}))["catch"](function(f){a(null)});else if(null!=e&&0<e.length&&"text"==b&&0<=mxUtils.indexOf(e[0].types,"text/plain"))e[0].getType("text/plain").then(function(f){f.text().then(function(h){a(h)})["catch"](function(){a(null)})})["catch"](function(){a(null)});
else a(null)}))["catch"](function(e){a(null)})};
EditorUi.prototype.parseHtmlData=function(a){var b=null;if(null!=a&&0<a.length){var e="<meta "==a.substring(0,6);b=document.createElement("div");b.innerHTML=(e?'<meta charset="utf-8">':"")+Graph.sanitizeHtml(a);asHtml=!0;a=b.getElementsByTagName("style");if(null!=a)for(;0<a.length;)a[0].parentNode.removeChild(a[0]);null!=b.firstChild&&b.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=b.firstChild.nextSibling&&b.firstChild.nextSibling.nodeType==mxConstants.NODETYPE_ELEMENT&&"META"==b.firstChild.nodeName&&
"A"==b.firstChild.nextSibling.nodeName&&null==b.firstChild.nextSibling.nextSibling&&(a=null==b.firstChild.nextSibling.innerText?mxUtils.getTextContent(b.firstChild.nextSibling):b.firstChild.nextSibling.innerText,a==b.firstChild.nextSibling.getAttribute("href")&&(mxUtils.setTextContent(b,a),asHtml=!1));e=e&&null!=b.firstChild?b.firstChild.nextSibling:b.firstChild;null!=e&&null==e.nextSibling&&e.nodeType==mxConstants.NODETYPE_ELEMENT&&"IMG"==e.nodeName?(a=e.getAttribute("src"),null!=a&&(Editor.isPngDataUrl(a)&&
@@ -2282,9 +2282,9 @@ EditorUi.prototype.createKeyHandler=function(a){function b(w,z,C){if(!f.isSelect
G))}}finally{f.getModel().endUpdate()}}else{G=f.model.getParent(D);var J=f.getView().scale;C=null;1==f.getSelectionCount()&&f.model.isVertex(D)&&null!=f.layoutManager&&!f.isCellLocked(D)&&(C=f.layoutManager.getLayout(G));if(null!=C&&C.constructor==mxStackLayout)z=G.getIndex(D),37==w||38==w?f.model.add(G,D,Math.max(0,z-1)):(39==w||40==w)&&f.model.add(G,D,Math.min(f.model.getChildCount(G),z+1));else{var L=f.graphHandler;null!=L&&(null==L.first&&L.start(D,0,0,f.getMovableCells(E)),null!=L.first&&(D=
E=0,37==w?E=-z:38==w?D=-z:39==w?E=z:40==w&&(D=z),L.currentDx+=E*J,L.currentDy+=D*J,L.checkPreview(),L.updatePreview()),null!=g&&window.clearTimeout(g),g=window.setTimeout(function(){if(null!=L.first){var Q=L.roundLength(L.currentDx/J),N=L.roundLength(L.currentDy/J);L.moveCells(L.cells,Q,N);L.reset()}},400))}}}}var e=this,f=this.editor.graph,h=new mxKeyHandler(f),d=h.isEventIgnored;h.isEventIgnored=function(w){return!(mxEvent.isShiftDown(w)&&9==w.keyCode)&&(!this.isControlDown(w)||mxEvent.isShiftDown(w)||
90!=w.keyCode&&89!=w.keyCode&&188!=w.keyCode&&190!=w.keyCode&&85!=w.keyCode&&83!=w.keyCode)&&(66!=w.keyCode&&73!=w.keyCode||!this.isControlDown(w)||this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&(109!=w.keyCode&&107!=w.keyCode||!this.isControlDown(w)&&!mxEvent.isShiftDown(w)||!this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&d.apply(this,arguments)};h.isEnabledForEvent=function(w){return!mxEvent.isConsumed(w)&&this.isGraphEvent(w)&&this.isEnabled()&&
-(null==e.dialogs||0==e.dialogs.length)};h.isControlDown=function(w){return mxEvent.isControlDown(w)||mxClient.IS_MAC&&w.metaKey};var g=null,m={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},p=h.getFunction;mxKeyHandler.prototype.getFunction=function(w){if(f.isEnabled()){var z=null;mxEvent.isShiftDown(w)&&this.isControlDown(w)&&mxEvent.isAltDown(w)?z=e.actions.get(e.ctrlAltShiftActions[w.keyCode]):mxEvent.isShiftDown(w)&&mxEvent.isAltDown(w)?
+(null==e.dialogs||0==e.dialogs.length)};h.isControlDown=function(w){return mxEvent.isControlDown(w)||mxClient.IS_MAC&&w.metaKey};var g=null,m={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},q=h.getFunction;mxKeyHandler.prototype.getFunction=function(w){if(f.isEnabled()){var z=null;mxEvent.isShiftDown(w)&&this.isControlDown(w)&&mxEvent.isAltDown(w)?z=e.actions.get(e.ctrlAltShiftActions[w.keyCode]):mxEvent.isShiftDown(w)&&mxEvent.isAltDown(w)?
z=e.actions.get(e.altShiftActions[w.keyCode]):this.isControlDown(w)&&mxEvent.isAltDown(w)&&(z=e.actions.get(e.ctrlAltActions[w.keyCode]));if(null!=z)return z.funct;if(null!=m[w.keyCode]&&!f.isSelectionEmpty())if(!this.isControlDown(w)&&mxEvent.isShiftDown(w)&&mxEvent.isAltDown(w)){if(f.model.isVertex(f.getSelectionCell()))return function(){var C=f.connectVertex(f.getSelectionCell(),m[w.keyCode],f.defaultEdgeLength,w,!0);null!=C&&0<C.length&&(1==C.length&&f.model.isEdge(C[0])?f.setSelectionCell(f.model.getTerminal(C[0],
-!1)):f.setSelectionCell(C[C.length-1]),f.scrollCellToVisible(f.getSelectionCell()),null!=e.hoverIcons&&e.hoverIcons.update(f.view.getState(f.getSelectionCell())))}}else return this.isControlDown(w)?function(){b(w.keyCode,mxEvent.isShiftDown(w)?f.gridSize:null,!0)}:function(){b(w.keyCode,mxEvent.isShiftDown(w)?f.gridSize:null)}}return p.apply(this,arguments)};h.bindAction=mxUtils.bind(this,function(w,z,C,E){var D=this.actions.get(C);null!=D&&(C=function(){D.isEnabled()&&D.funct.apply(this,arguments)},
+!1)):f.setSelectionCell(C[C.length-1]),f.scrollCellToVisible(f.getSelectionCell()),null!=e.hoverIcons&&e.hoverIcons.update(f.view.getState(f.getSelectionCell())))}}else return this.isControlDown(w)?function(){b(w.keyCode,mxEvent.isShiftDown(w)?f.gridSize:null,!0)}:function(){b(w.keyCode,mxEvent.isShiftDown(w)?f.gridSize:null)}}return q.apply(this,arguments)};h.bindAction=mxUtils.bind(this,function(w,z,C,E){var D=this.actions.get(C);null!=D&&(C=function(){D.isEnabled()&&D.funct.apply(this,arguments)},
z?E?h.bindControlShiftKey(w,C):h.bindControlKey(w,C):E?h.bindShiftKey(w,C):h.bindKey(w,C))});var k=this,u=h.escape;h.escape=function(w){u.apply(this,arguments)};h.enter=function(){};h.bindControlShiftKey(36,function(){f.exitGroup()});h.bindControlShiftKey(35,function(){f.enterGroup()});h.bindShiftKey(36,function(){f.home()});h.bindKey(35,function(){f.refresh()});h.bindAction(80,!0,"print");h.bindAction(107,!0,"zoomIn");h.bindAction(109,!0,"zoomOut");h.bindAction(61,!0,"zoomIn");h.bindAction(187,!0,
"zoomIn");h.bindAction(222,!0,"zoomIn");h.bindAction(173,!0,"zoomOut");h.bindAction(189,!0,"zoomOut");if(!this.editor.chromeless||this.editor.editable)h.bindAction(79,!0,"outline",!0),h.bindControlKey(36,function(){f.isEnabled()&&f.foldCells(!0)}),h.bindControlKey(35,function(){f.isEnabled()&&f.foldCells(!1)}),h.bindControlKey(13,function(){k.ctrlEnter()}),h.bindAction(8,!1,"delete"),h.bindAction(8,!0,"deleteAll"),h.bindAction(8,!1,"deleteLabels",!0),h.bindAction(46,!1,"delete"),h.bindAction(46,!0,
"deleteAll"),h.bindAction(46,!1,"deleteLabels",!0),h.bindAction(36,!1,"resetView"),h.bindAction(72,!0,"fitWindow",!0),h.bindAction(74,!0,"fitPage"),h.bindAction(74,!0,"fitTwoPages",!0),h.bindAction(48,!0,"customZoom"),h.bindAction(82,!0,"turn"),h.bindAction(82,!0,"clearDefaultStyle",!0),h.bindAction(83,!0,"save"),h.bindAction(83,!0,"saveAs",!0),h.bindAction(65,!0,"selectAll"),h.bindAction(65,!0,"selectNone",!0),h.bindAction(73,!0,"selectVertices",!0),h.bindAction(69,!0,"selectEdges",!0),h.bindAction(69,
@@ -2314,11 +2314,11 @@ Sidebar.prototype.getTooltipOffset=function(a,b){if(mxUtils.isAncestorNode(this.
2-b.height/2-6)};
Sidebar.prototype.createMoreShapes=function(){var a=this.editorUi.createDiv("geSidebarFooter");a.style.position="absolute";a.style.overflow="hidden";a.style.display="inline-flex";a.style.alignItems="center";a.style.justifyContent="center";a.style.width="100%";a.style.marginTop="-1px";a.style.height=this.moreShapesHeight+"px";var b=document.createElement("button");b.className="geBtn gePrimaryBtn";b.style.display="inline-flex";b.style.alignItems="center";b.style.whiteSpace="nowrap";b.style.padding=
"8px";b.style.margin="0px";b.innerHTML="<span>+</span>";var e=b.getElementsByTagName("span")[0];e.style.fontSize="18px";e.style.marginRight="5px";mxUtils.write(b,mxResources.get("moreShapes"));mxEvent.addListener(b,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(f){f.preventDefault()}));mxEvent.addListener(b,"click",mxUtils.bind(this,function(f){this.editorUi.actions.get("shapes").funct();mxEvent.consume(f)}));a.appendChild(b);return a};
-Sidebar.prototype.createTooltip=function(a,b,e,f,h,d,g,m,p,k,u){u=null!=u?u:!0;this.tooltipMouseDown=p;p=this.editorUi.editor.graph;if(null==this.tooltip){this.tooltip=document.createElement("div");this.tooltip.className="geSidebarTooltip";this.tooltip.style.userSelect="none";this.tooltip.style.zIndex=mxPopupMenu.prototype.zIndex-1;document.body.appendChild(this.tooltip);mxEvent.addMouseWheelListener(mxUtils.bind(this,function(z){this.hideTooltip()}),this.tooltip);this.graph2=new Graph(this.tooltip,
+Sidebar.prototype.createTooltip=function(a,b,e,f,h,d,g,m,q,k,u){u=null!=u?u:!0;this.tooltipMouseDown=q;q=this.editorUi.editor.graph;if(null==this.tooltip){this.tooltip=document.createElement("div");this.tooltip.className="geSidebarTooltip";this.tooltip.style.userSelect="none";this.tooltip.style.zIndex=mxPopupMenu.prototype.zIndex-1;document.body.appendChild(this.tooltip);mxEvent.addMouseWheelListener(mxUtils.bind(this,function(z){this.hideTooltip()}),this.tooltip);this.graph2=new Graph(this.tooltip,
null,null,this.editorUi.editor.graph.getStylesheet());this.graph2.shapeBackgroundColor=this.graph.shapeBackgroundColor;this.graph2.resetViewOnRootChange=!1;this.graph2.foldingEnabled=!1;this.graph2.gridEnabled=!1;this.graph2.autoScroll=!1;this.graph2.setTooltips(!1);this.graph2.setConnectable(!1);this.graph2.setPanning(!1);this.graph2.setEnabled(!1);if(this.graph2.dialect==mxConstants.DIALECT_SVG){var w=this.graph2.view.getDrawPane().ownerSVGElement;null!=w&&(w.style.overflow="visible")}else this.graph2.view.canvas.style.overflow=
"visible";this.graph2.openLink=mxUtils.bind(this,function(){this.hideTooltip()});mxEvent.addGestureListeners(this.tooltip,mxUtils.bind(this,function(z){null!=this.tooltipMouseDown&&this.tooltipMouseDown(z);window.setTimeout(mxUtils.bind(this,function(){null!=this.tooltipCloseImage&&"none"!=this.tooltipCloseImage.style.display||this.hideTooltip()}),0)}),null,mxUtils.bind(this,function(z){this.hideTooltip()}));mxClient.IS_SVG||(this.graph2.view.canvas.style.position="relative");w=document.createElement("img");
w.setAttribute("src",Dialog.prototype.closeImage);w.setAttribute("title",mxResources.get("close"));w.style.position="absolute";w.style.cursor="default";w.style.padding="8px";w.style.right="2px";w.style.top="2px";this.tooltip.appendChild(w);this.tooltipCloseImage=w;mxEvent.addListener(w,"click",mxUtils.bind(this,function(z){this.hideTooltip();mxEvent.consume(z)}))}this.tooltipCloseImage.style.display=k?"":"none";this.graph2.model.clear();this.graph2.view.setTranslate(this.tooltipBorder,this.tooltipBorder);
-this.graph2.view.scale=!m&&(e>this.maxTooltipWidth||f>this.maxTooltipHeight)?Math.round(100*Math.min(this.maxTooltipWidth/e,this.maxTooltipHeight/f))/100:1;this.tooltip.style.display="block";this.graph2.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;null!=b&&(b=this.graph2.cloneCells(b),this.graph2.pasteCellStyles(p.includeDescendants(b),u?p.currentVertexStyle:p.defaultVertexStyle,u?p.currentEdgeStyle:p.defaultEdgeStyle,null,p.pasteEdgeStyle),this.graph2.addCells(b));
+this.graph2.view.scale=!m&&(e>this.maxTooltipWidth||f>this.maxTooltipHeight)?Math.round(100*Math.min(this.maxTooltipWidth/e,this.maxTooltipHeight/f))/100:1;this.tooltip.style.display="block";this.graph2.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;null!=b&&(b=this.graph2.cloneCells(b),this.graph2.pasteCellStyles(q.includeDescendants(b),u?q.currentVertexStyle:q.defaultVertexStyle,u?q.currentEdgeStyle:q.defaultEdgeStyle,null,q.pasteEdgeStyle),this.graph2.addCells(b));
mxClient.NO_FO=d;u=this.graph2.getGraphBounds();m&&0<e&&0<f&&(u.width>e||u.height>f)?(e=Math.round(100*Math.min(e/u.width,f/u.height))/100,mxClient.NO_FO?(this.graph2.view.setScale(Math.round(100*Math.min(this.maxTooltipWidth/u.width,this.maxTooltipHeight/u.height))/100),u=this.graph2.getGraphBounds()):(this.graph2.view.getDrawPane().ownerSVGElement.style.transform="scale("+e+")",this.graph2.view.getDrawPane().ownerSVGElement.style.transformOrigin="0 0",u.width*=e,u.height*=e)):mxClient.NO_FO||(this.graph2.view.getDrawPane().ownerSVGElement.style.transform=
"");e=u.width+2*this.tooltipBorder+4;f=u.height+2*this.tooltipBorder;this.tooltip.style.overflow="visible";this.tooltip.style.width=e+"px";m=e;this.tooltipTitles&&null!=h&&0<h.length?(null==this.tooltipTitle?(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.style.borderTopStyle="solid",this.tooltipTitle.style.borderTopWidth="1px",this.tooltipTitle.style.textAlign="center",this.tooltipTitle.style.width="100%",this.tooltipTitle.style.overflow="hidden",this.tooltipTitle.style.position=
"absolute",this.tooltipTitle.style.paddingTop="6px",this.tooltipTitle.style.bottom="6px",this.tooltip.appendChild(this.tooltipTitle)):this.tooltipTitle.innerText="",this.tooltipTitle.style.display="",mxUtils.write(this.tooltipTitle,h),this.tooltipTitle.setAttribute("title",h),m=Math.min(this.maxTooltipWidth,Math.max(e,this.tooltipTitle.scrollWidth+4)),h=this.tooltipTitle.offsetHeight+10,f+=h,mxClient.IS_SVG?this.tooltipTitle.style.marginTop=2-h+"px":(f-=6,this.tooltipTitle.style.top=f-h+"px")):null!=
@@ -2330,19 +2330,19 @@ Sidebar.prototype.addEntries=function(a){for(var b=0;b<a.length;b++)mxUtils.bind
mxUtils.bind(this,function(){var d=this.editorUi.stringToCells("<"==e.xml.charAt(0)?e.xml:Graph.decompress(e.xml));return this.createVertexTemplateFromCells(d,e.w,e.h,e.title||"",!0,!1,!0)}))})(a[b])};Sidebar.prototype.setCurrentSearchEntryLibrary=function(a,b){this.currentSearchEntryLibrary=null!=a?{id:a,lib:b}:null};
Sidebar.prototype.getKeyStyle=function(a){var b=[];if(null!=a){a=a.split(";");for(var e=0;e<a.length;e++){var f=a[e].split("=");1<f.length&&0>mxUtils.indexOf(this.ignoredStyles,f[0])&&b.push(f[0]+"="+f[1])}}return b.join(";")};Sidebar.prototype.addLibForStyle=function(a,b){""!=a&&(null==this.styleToLibs&&(this.styleToLibs={}),null==this.styleToLibs[a]&&(this.styleToLibs[a]=[]),this.styleToLibs[a].push(b))};
Sidebar.prototype.getLibsForStyle=function(a){return null!=this.styleToLibs?this.styleToLibs[a]:null};
-Sidebar.prototype.addEntry=function(a,b){if(null!=this.currentSearchEntryLibrary){var e=this,f=this.createVertexTemplateFromCells;this.createVertexTemplateFromCells=function(m,p,k,u,w){if(null!=m)for(p=0;p<m.length;p++)e.addLibForStyle(e.getKeyStyle(m[p].style),this.currentSearchEntryLibrary)};b();this.createVertexTemplateFromCells=f}if(null!=this.taglist&&null!=a&&0<a.length){null!=this.currentSearchEntryLibrary&&(b.parentLibraries=[this.currentSearchEntryLibrary]);a=a.toLowerCase().replace(/[\/,\(\)]/g,
+Sidebar.prototype.addEntry=function(a,b){if(null!=this.currentSearchEntryLibrary){var e=this,f=this.createVertexTemplateFromCells;this.createVertexTemplateFromCells=function(m,q,k,u,w){if(null!=m)for(q=0;q<m.length;q++)e.addLibForStyle(e.getKeyStyle(m[q].style),this.currentSearchEntryLibrary)};b();this.createVertexTemplateFromCells=f}if(null!=this.taglist&&null!=a&&0<a.length){null!=this.currentSearchEntryLibrary&&(b.parentLibraries=[this.currentSearchEntryLibrary]);a=a.toLowerCase().replace(/[\/,\(\)]/g,
" ").split(" ");f=[];for(var h={},d=0;d<a.length;d++){null==h[a[d]]&&(h[a[d]]=!0,f.push(a[d]));var g=Editor.soundex(a[d].replace(/\.*\d*$/,""));g!=a[d]&&null==h[g]&&(h[g]=!0,f.push(g))}for(d=0;d<f.length;d++)this.addEntryForTag(f[d],b)}return b};Sidebar.prototype.addEntryForTag=function(a,b){if(null!=a&&1<a.length){var e=this.taglist[a];"object"!==typeof e&&(e={entries:[]},this.taglist[a]=e);e.entries.push(b)}};
Sidebar.prototype.isEntryIgnored=function(a,b){b=!b;if(null!=a.parentLibraries&&b)for(var e=0;e<a.parentLibraries.length;e++)if(this.isEntryVisible(a.parentLibraries[e].id)){b=!1;break}return b};
-Sidebar.prototype.searchEntries=function(a,b,e,f,h,d){if(null!=this.taglist&&null!=a){var g=a.toLowerCase().split(" ");a=new mxDictionary;h=(e+1)*b;for(var m=[],p=0,k=0;k<g.length;k++){var u=Editor.soundex(g[k].replace(/\.*\d*$/,""));if(0<u.length){m=this.taglist[g[k]];var w=null!=m?m.entries.slice():[];m=this.taglist[u];w=null!=m?w.concat(m.entries):w;u=new mxDictionary;if(0<w.length){m=[];for(var z=0;z<w.length;z++){var C=w[z];if(0==p==(null==a.get(C))&&null==u.get(C)&&(u.put(C,C),!this.isEntryIgnored(C,
-d)&&(m.push(C),k==g.length-1&&m.length==h))){f(m.slice(e*b,h),h,!0,g);return}}}else m=[];a=u;p++}}d=m.length;f(m.slice(e*b,(e+1)*b),d,!1,g)}else f([],null,null,g)};Sidebar.prototype.filterTags=function(a){if(null!=a){a=a.split(" ");for(var b=[],e={},f=0;f<a.length;f++)null==e[a[f]]&&(e[a[f]]="1",b.push(a[f]));return b.join(" ")}return null};Sidebar.prototype.cloneCell=function(a,b){a=a.clone();null!=b&&(a.value=b);return a};Sidebar.prototype.showPopupMenuForEntry=function(a,b,e){};
-Sidebar.prototype.addSearchPalette=function(a){function b(){g.setAttribute("src",Editor.magnifyImage);g.setAttribute("title",mxResources.get("search"));p.style.display="none";k=d.value="";D()}var e=document.createElement("div");e.style.visibility="hidden";this.appendChild(e);var f=document.createElement("div");f.className="geSidebar geSearchSidebar";a||(f.style.display="none");var h=document.createElement("div");h.style.whiteSpace="nowrap";h.style.textOverflow="clip";h.style.paddingBottom="8px";h.style.cursor=
+Sidebar.prototype.searchEntries=function(a,b,e,f,h,d){if(null!=this.taglist&&null!=a){var g=a.toLowerCase().split(" ");a=new mxDictionary;h=(e+1)*b;for(var m=[],q=0,k=0;k<g.length;k++){var u=Editor.soundex(g[k].replace(/\.*\d*$/,""));if(0<u.length){m=this.taglist[g[k]];var w=null!=m?m.entries.slice():[];m=this.taglist[u];w=null!=m?w.concat(m.entries):w;u=new mxDictionary;if(0<w.length){m=[];for(var z=0;z<w.length;z++){var C=w[z];if(0==q==(null==a.get(C))&&null==u.get(C)&&(u.put(C,C),!this.isEntryIgnored(C,
+d)&&(m.push(C),k==g.length-1&&m.length==h))){f(m.slice(e*b,h),h,!0,g);return}}}else m=[];a=u;q++}}d=m.length;f(m.slice(e*b,(e+1)*b),d,!1,g)}else f([],null,null,g)};Sidebar.prototype.filterTags=function(a){if(null!=a){a=a.split(" ");for(var b=[],e={},f=0;f<a.length;f++)null==e[a[f]]&&(e[a[f]]="1",b.push(a[f]));return b.join(" ")}return null};Sidebar.prototype.cloneCell=function(a,b){a=a.clone();null!=b&&(a.value=b);return a};Sidebar.prototype.showPopupMenuForEntry=function(a,b,e){};
+Sidebar.prototype.addSearchPalette=function(a){function b(){g.setAttribute("src",Editor.magnifyImage);g.setAttribute("title",mxResources.get("search"));q.style.display="none";k=d.value="";D()}var e=document.createElement("div");e.style.visibility="hidden";this.appendChild(e);var f=document.createElement("div");f.className="geSidebar geSearchSidebar";a||(f.style.display="none");var h=document.createElement("div");h.style.whiteSpace="nowrap";h.style.textOverflow="clip";h.style.paddingBottom="8px";h.style.cursor=
"default";var d=document.createElement("input");d.setAttribute("placeholder",mxResources.get("searchShapes"));d.setAttribute("type","text");h.appendChild(d);var g=document.createElement("img");g.setAttribute("src",Editor.magnifyImage);g.setAttribute("title",mxResources.get("search"));g.className="geAdaptiveAsset";g.style.position="relative";g.style.cursor="pointer";g.style.opacity="0.5";g.style.height="16px";g.style.left="-20px";g.style.top="4px";g.style.background="url('"+this.editorUi.editor.transparentImage+
-"')";h.appendChild(g);f.appendChild(h);var m=document.createElement("center"),p=mxUtils.button(mxResources.get("moreResults"),function(){G()});p.style.display="none";p.style.lineHeight="normal";p.style.fontSize="12px";p.style.padding="6px 12px 6px 12px";p.style.marginTop="4px";p.style.marginBottom="8px";m.style.paddingTop="4px";m.style.paddingBottom="4px";m.appendChild(p);f.appendChild(m);var k="",u=!1,w=!1,z=0,C={},E=12,D=mxUtils.bind(this,function(){u=!1;this.currentSearch=null;for(var J=f.firstChild;null!=
-J;){var L=J.nextSibling;J!=h&&J!=m&&J.parentNode.removeChild(J);J=L}});mxEvent.addListener(g,"click",function(){g.getAttribute("src")!=Editor.magnifyImage&&b();d.focus()});var G=mxUtils.bind(this,function(){E=4*Math.max(1,Math.floor(this.container.clientWidth/(this.thumbWidth+10)));this.hideTooltip();if(""!=d.value){if(null!=m.parentNode&&(k!=d.value&&(D(),k=d.value,C={},w=!1,z=0),!u&&!w)){p.setAttribute("disabled","true");p.style.display="";p.style.cursor="wait";p.innerHTML=mxResources.get("loading")+
+"')";h.appendChild(g);f.appendChild(h);var m=document.createElement("center"),q=mxUtils.button(mxResources.get("moreResults"),function(){G()});q.style.display="none";q.style.lineHeight="normal";q.style.fontSize="12px";q.style.padding="6px 12px 6px 12px";q.style.marginTop="4px";q.style.marginBottom="8px";m.style.paddingTop="4px";m.style.paddingBottom="4px";m.appendChild(q);f.appendChild(m);var k="",u=!1,w=!1,z=0,C={},E=12,D=mxUtils.bind(this,function(){u=!1;this.currentSearch=null;for(var J=f.firstChild;null!=
+J;){var L=J.nextSibling;J!=h&&J!=m&&J.parentNode.removeChild(J);J=L}});mxEvent.addListener(g,"click",function(){g.getAttribute("src")!=Editor.magnifyImage&&b();d.focus()});var G=mxUtils.bind(this,function(){E=4*Math.max(1,Math.floor(this.container.clientWidth/(this.thumbWidth+10)));this.hideTooltip();if(""!=d.value){if(null!=m.parentNode&&(k!=d.value&&(D(),k=d.value,C={},w=!1,z=0),!u&&!w)){q.setAttribute("disabled","true");q.style.display="";q.style.cursor="wait";q.innerHTML=mxResources.get("loading")+
"...";u=!0;var J={};this.currentSearch=J;try{this.searchEntries(k,E,z,mxUtils.bind(this,function(L,Q,N,U){if(this.currentSearch==J){L=null!=L?L:[];u=!1;z++;this.insertSearchHint(f,k,E,z,L,Q,N,U);0==L.length&&1==z&&(k="");null!=m.parentNode&&m.parentNode.removeChild(m);for(Q=0;Q<L.length;Q++)mxUtils.bind(this,function(Y){try{var P=Y();null!=this.closedLibraryOpacity&&this.searchClosedLibraries&&this.isEntryIgnored(Y,!1)&&(P.style.opacity=this.closedLibraryOpacity);null==C[P.innerHTML]?(C[P.innerHTML]=
-null!=Y.parentLibraries?Y.parentLibraries.slice():[],f.appendChild(P)):null!=Y.parentLibraries&&(C[P.innerHTML]=C[P.innerHTML].concat(Y.parentLibraries));mxEvent.addGestureListeners(P,null,null,mxUtils.bind(this,function(T){var K=C[P.innerHTML];mxEvent.isPopupTrigger(T)&&this.showPopupMenuForEntry(P,K,T)}));mxEvent.disableContextMenu(P)}catch(T){"1"==urlParams.test&&(null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(T.stack)):console.error(T))}})(L[Q]);N?(p.removeAttribute("disabled"),
-p.innerHTML=mxResources.get("moreResults")):(p.innerHTML=mxResources.get("reset"),p.style.display="none",w=!0);p.style.cursor="";f.appendChild(m)}}),mxUtils.bind(this,function(){p.style.cursor=""}),this.searchClosedLibraries)}catch(L){this.editorUi.handleError(L)}}}else D(),k=d.value="",C={},p.style.display="none",w=!1,d.focus()});this.searchShapes=function(J){d.value=J;G()};mxEvent.addListener(d,"keydown",mxUtils.bind(this,function(J){13==J.keyCode?(G(),mxEvent.consume(J)):27==J.keyCode&&b()}));
-a=mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){""==d.value?(g.setAttribute("src",Editor.magnifyImage),g.setAttribute("title",mxResources.get("search"))):(g.setAttribute("src",Editor.crossImage),g.setAttribute("title",mxResources.get("reset")));""==d.value?(w=!0,p.style.display="none"):d.value!=k?(p.style.display="none",w=!1):u||(p.style.display=w?"none":"")}),0)});mxEvent.addListener(d,"keyup",a);mxEvent.addListener(d,"paste",a);mxEvent.addListener(d,"cut",a);mxEvent.addListener(d,
+null!=Y.parentLibraries?Y.parentLibraries.slice():[],f.appendChild(P)):null!=Y.parentLibraries&&(C[P.innerHTML]=C[P.innerHTML].concat(Y.parentLibraries));mxEvent.addGestureListeners(P,null,null,mxUtils.bind(this,function(T){var K=C[P.innerHTML];mxEvent.isPopupTrigger(T)&&this.showPopupMenuForEntry(P,K,T)}));mxEvent.disableContextMenu(P)}catch(T){"1"==urlParams.test&&(null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(T.stack)):console.error(T))}})(L[Q]);N?(q.removeAttribute("disabled"),
+q.innerHTML=mxResources.get("moreResults")):(q.innerHTML=mxResources.get("reset"),q.style.display="none",w=!0);q.style.cursor="";f.appendChild(m)}}),mxUtils.bind(this,function(){q.style.cursor=""}),this.searchClosedLibraries)}catch(L){this.editorUi.handleError(L)}}}else D(),k=d.value="",C={},q.style.display="none",w=!1,d.focus()});this.searchShapes=function(J){d.value=J;G()};mxEvent.addListener(d,"keydown",mxUtils.bind(this,function(J){13==J.keyCode?(G(),mxEvent.consume(J)):27==J.keyCode&&b()}));
+a=mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){""==d.value?(g.setAttribute("src",Editor.magnifyImage),g.setAttribute("title",mxResources.get("search"))):(g.setAttribute("src",Editor.crossImage),g.setAttribute("title",mxResources.get("reset")));""==d.value?(w=!0,q.style.display="none"):d.value!=k?(q.style.display="none",w=!1):u||(q.style.display=w?"none":"")}),0)});mxEvent.addListener(d,"keyup",a);mxEvent.addListener(d,"paste",a);mxEvent.addListener(d,"cut",a);mxEvent.addListener(d,
"mousedown",function(J){J.stopPropagation&&J.stopPropagation();J.cancelBubble=!0});mxEvent.addListener(d,"selectstart",function(J){J.stopPropagation&&J.stopPropagation();J.cancelBubble=!0});a=document.createElement("div");a.appendChild(f);this.appendChild(a);this.palettes.search=[e,a]};
Sidebar.prototype.insertSearchHint=function(a,b,e,f,h,d,g,m){0==h.length&&1==f&&(e=document.createElement("div"),e.className="geTitle",e.style.cssText="background-color:transparent;border-color:transparent;padding:6px 0px 0px 0px !important;margin:4px 8px 4px 8px;text-align:center;cursor:default !important;font-size:11px;font-weight:normal;",mxUtils.write(e,mxResources.get("noResultsFor",[b])),a.appendChild(e))};
Sidebar.prototype.addGeneralPalette=function(a){this.setCurrentSearchEntryLibrary("general","general");var b=this.editorUi.editor.graph,e=this,f=parseInt(this.initialDefaultVertexStyle.fontSize);f=isNaN(f)?"":"fontSize="+Math.min(16,f)+";";var h=b.appendFontSize("edgeLabel;resizable=0;html=1;",b.edgeFontSize),d=new mxCell("List Item",new mxGeometry(0,0,80,30),"text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;"+
@@ -2449,36 +2449,36 @@ d.geometry.setTerminalPoint(new mxPoint(0,0),!0);d.geometry.setTerminalPoint(new
0,"Use","Dependency",null,"uml dependency use"),this.createEdgeTemplateEntry("endArrow=block;endSize=16;endFill=0;html=1;",160,0,"Extends","Generalization",null,"uml generalization extend"),this.createEdgeTemplateEntry("endArrow=block;startArrow=block;endFill=1;startFill=1;html=1;",160,0,"","Association 2",null,"uml association"),this.createEdgeTemplateEntry("endArrow=open;startArrow=circlePlus;endFill=0;startFill=0;endSize=8;html=1;",160,0,"","Inner Class",null,"uml inner class"),this.createEdgeTemplateEntry("endArrow=open;startArrow=cross;endFill=0;startFill=0;endSize=8;startSize=10;html=1;",
160,0,"","Terminate",null,"uml terminate"),this.createEdgeTemplateEntry("endArrow=block;dashed=1;endFill=0;endSize=12;html=1;",160,0,"","Implementation",null,"uml realization implementation"),this.createEdgeTemplateEntry("endArrow=diamondThin;endFill=0;endSize=24;html=1;",160,0,"","Aggregation 2",null,"uml aggregation"),this.createEdgeTemplateEntry("endArrow=diamondThin;endFill=1;endSize=24;html=1;",160,0,"","Composition 2",null,"uml composition"),this.createEdgeTemplateEntry("endArrow=open;endFill=1;endSize=12;html=1;",
160,0,"","Association 3",null,"uml association")];this.addPaletteFunctions("uml",mxResources.get("uml"),a||!1,h);this.setCurrentSearchEntryLibrary()};Sidebar.prototype.createTitle=function(a){var b=document.createElement("a");b.setAttribute("title",mxResources.get("sidebarTooltip"));b.className="geTitle";var e=document.createElement("span");mxUtils.write(e,a);b.appendChild(e);return b};
-Sidebar.prototype.createThumb=function(a,b,e,f,h,d,g,m,p,k,u,w){this.graph.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;this.graph.shapeForegroundColor="light-dark(#000000, #c0c0c0)";this.graph.shapeBackgroundColor=null!=k?k:"light-dark(#f1f3f4, #1b1d1e)";this.graph.view.scaleAndTranslate(null!=w?w:1,0,0);this.graph.addCells(a);a=this.graph.getGraphBounds();null==w&&(k=Math.floor(100*Math.min((b-2*this.thumbBorder)/a.width,(e-2*this.thumbBorder)/
+Sidebar.prototype.createThumb=function(a,b,e,f,h,d,g,m,q,k,u,w){this.graph.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;this.graph.shapeForegroundColor="light-dark(#000000, #c0c0c0)";this.graph.shapeBackgroundColor=null!=k?k:"light-dark(#f1f3f4, #1b1d1e)";this.graph.view.scaleAndTranslate(null!=w?w:1,0,0);this.graph.addCells(a);a=this.graph.getGraphBounds();null==w&&(k=Math.floor(100*Math.min((b-2*this.thumbBorder)/a.width,(e-2*this.thumbBorder)/
a.height))/100,this.graph.view.scaleAndTranslate(k,(b-a.width*k)/2/k-a.x,(e-a.height*k)/2/k-a.y));this.graph.dialect!=mxConstants.DIALECT_SVG||mxClient.NO_FO||null==this.graph.view.getCanvas().ownerSVGElement?(k=this.graph.container.cloneNode(!1),k.innerHTML=this.graph.container.innerHTML):k=this.graph.view.getCanvas().ownerSVGElement.cloneNode(!0);this.graph.getModel().clear();this.graph.view.scaleAndTranslate(1,0,0);this.graph.shapeBackgroundColor="#f1f3f4";mxClient.NO_FO=d;k.style.position="relative";
k.style.overflow=null!=w?"visible":"hidden";k.style.left=(null!=u?u:this.thumbBorder)+"px";k.style.top=k.style.left;k.style.width=b+"px";k.style.height=e+"px";k.style.visibility="";k.style.minWidth="";k.style.minHeight="";this.disablePointerEvents(k);f.appendChild(k);this.sidebarTitles&&null!=h&&0!=g&&(f.style.height=this.thumbHeight+0+this.sidebarTitleSize+8+"px",b=document.createElement("div"),b.style.color=Editor.isDarkMode()?"#A0A0A0":"#303030",b.style.fontSize=this.sidebarTitleSize+"px",b.style.textAlign=
"center",b.style.whiteSpace="nowrap",b.style.overflow="hidden",b.style.textOverflow="ellipsis",mxClient.IS_IE&&(b.style.height=this.sidebarTitleSize+12+"px"),b.style.paddingTop="4px",mxUtils.write(b,h),f.appendChild(b));return a};
Sidebar.prototype.createSection=function(a){return mxUtils.bind(this,function(){var b=document.createElement("div");b.setAttribute("title",a);b.style.textOverflow="ellipsis";b.style.whiteSpace="nowrap";b.style.textAlign="center";b.style.overflow="hidden";b.style.width="100%";b.style.padding="14px 0";mxUtils.write(b,a);return b})};
-Sidebar.prototype.createItem=function(a,b,e,f,h,d,g,m,p,k,u,w,z,C){m=null!=m?m:!0;k=null!=k?k:this.thumbWidth;u=null!=u?u:this.thumbHeight;var E=document.createElement("a");E.className="geItem";E.style.overflow="hidden";var D=2*this.thumbBorder;E.style.width=k+D+"px";E.style.height=u+D+"px";E.style.padding=this.thumbPadding+"px";mxEvent.addListener(E,"click",function(J){mxEvent.consume(J)});var G=new mxRectangle(0,0,h,d);null!=a&&0<a.length?(D=a,a=this.graph.cloneCells(a),this.graph.pasteCellStyles(this.graph.includeDescendants(D),
-this.initialDefaultVertexStyle,this.initialDefaultEdgeStyle),null!=w?(E.style.backgroundImage="url("+w+")",E.style.backgroundRepeat="no-repeat",E.style.backgroundPosition="center",E.style.backgroundSize="24px 24px"):this.createThumb(D,k,u,E,b,e,f,h,d),1<a.length||a[0].vertex?(f=this.createDragSource(E,this.createDropHandler(a,!0,g,G,z,C),this.createDragPreview(h,d),a,G,z),this.addClickHandler(E,f,a,p,z),f.isGuidesEnabled=mxUtils.bind(this,function(){return this.editorUi.editor.graph.graphHandler.guidesEnabled})):
-null!=a[0]&&a[0].edge&&(f=this.createDragSource(E,this.createDropHandler(a,!1,g,G,z,C),this.createDragPreview(h,d),a,G,z),this.addClickHandler(E,f,a,p)),!mxClient.IS_IOS&&m&&mxEvent.addGestureListeners(E,null,mxUtils.bind(this,function(J){mxEvent.isMouseEvent(J)&&this.showTooltip(E,a,G.width,G.height,b,e)}))):(E.style.backgroundImage="url("+Editor.svgBrokenImage.src+")",E.setAttribute("title",b));return E};
-Sidebar.prototype.createDropHandler=function(a,b,e,f,h,d){e=null!=e?e:!0;return mxUtils.bind(this,function(g,m,p,k,u,w){for(w=w?null:mxEvent.isTouchEvent(m)||mxEvent.isPenEvent(m)?document.elementFromPoint(mxEvent.getClientX(m),mxEvent.getClientY(m)):mxEvent.getSource(m);null!=w&&w!=this.container;)w=w.parentNode;if(null==w&&g.isEnabled()){a=g.getImportableCells(a);if(0<a.length){g.stopEditing();w=null==p||mxEvent.isAltDown(m)?!1:g.isValidDropTarget(p,a,m);var z=null;null==p||w||(p=null);if(!g.isCellLocked(p||
-g.getDefaultParent())){g.model.beginUpdate();try{k=Math.round(k);u=Math.round(u);if(b&&g.isSplitTarget(p,a,m)){var C=g.view.scale,E=g.view.translate,D=(k+E.x)*C,G=(u+E.y)*C,J=g.cloneCells(a);g.splitEdge(p,J,null,k-f.width/2,u-f.height/2,D,G);z=J}else if(0<a.length&&(z=g.importCells(a,k,u,p),g.model.isVertex(d)&&1==z.length&&g.model.isVertex(z[0]))){var L=g.insertEdge(g.model.getParent(d),null,"",d,z[0],g.createCurrentEdgeStyle());g.applyNewEdgeStyle(d,[L]);z.push(L);g.connectionHandler.insertBeforeSource&&
-g.insertEdgeBeforeCell(L,d)}if(null!=g.layoutManager){var Q=g.layoutManager.getLayout(p);if(null!=Q){C=g.view.scale;E=g.view.translate;D=(k+E.x)*C;G=(u+E.y)*C;for(var N=0;N<z.length;N++)Q.moveCell(z[N],D,G)}}!e||null!=m&&mxEvent.isShiftDown(m)||g.fireEvent(new mxEventObject("cellsInserted","cells",z));for(N=0;N<z.length;N++)g.model.isVertex(z[N])&&g.isAutoSizeCell(z[N])&&g.updateCellSize(z[N])}catch(U){this.editorUi.handleError(U)}finally{g.model.endUpdate()}null!=z&&0<z.length&&(g.scrollCellToVisible(z[0]),
+Sidebar.prototype.createItem=function(a,b,e,f,h,d,g,m,q,k,u,w,z,C){m=null!=m?m:!0;k=null!=k?k:this.thumbWidth;u=null!=u?u:this.thumbHeight;var E=document.createElement("a");E.className="geItem";E.style.overflow="hidden";var D=2*this.thumbBorder;E.style.width=k+D+"px";E.style.height=u+D+"px";E.style.padding=this.thumbPadding+"px";mxEvent.addListener(E,"click",function(J){mxEvent.consume(J)});var G=new mxRectangle(0,0,h,d);null!=a&&0<a.length?(D=a,a=this.graph.cloneCells(a),this.graph.pasteCellStyles(this.graph.includeDescendants(D),
+this.initialDefaultVertexStyle,this.initialDefaultEdgeStyle),null!=w?(E.style.backgroundImage="url("+w+")",E.style.backgroundRepeat="no-repeat",E.style.backgroundPosition="center",E.style.backgroundSize="24px 24px"):this.createThumb(D,k,u,E,b,e,f,h,d),1<a.length||a[0].vertex?(f=this.createDragSource(E,this.createDropHandler(a,!0,g,G,z,C),this.createDragPreview(h,d),a,G,z),this.addClickHandler(E,f,a,q,z),f.isGuidesEnabled=mxUtils.bind(this,function(){return this.editorUi.editor.graph.graphHandler.guidesEnabled})):
+null!=a[0]&&a[0].edge&&(f=this.createDragSource(E,this.createDropHandler(a,!1,g,G,z,C),this.createDragPreview(h,d),a,G,z),this.addClickHandler(E,f,a,q)),!mxClient.IS_IOS&&m&&mxEvent.addGestureListeners(E,null,mxUtils.bind(this,function(J){mxEvent.isMouseEvent(J)&&this.showTooltip(E,a,G.width,G.height,b,e)}))):(E.style.backgroundImage="url("+Editor.svgBrokenImage.src+")",E.setAttribute("title",b));return E};
+Sidebar.prototype.createDropHandler=function(a,b,e,f,h,d){e=null!=e?e:!0;return mxUtils.bind(this,function(g,m,q,k,u,w){for(w=w?null:mxEvent.isTouchEvent(m)||mxEvent.isPenEvent(m)?document.elementFromPoint(mxEvent.getClientX(m),mxEvent.getClientY(m)):mxEvent.getSource(m);null!=w&&w!=this.container;)w=w.parentNode;if(null==w&&g.isEnabled()){a=g.getImportableCells(a);if(0<a.length){g.stopEditing();w=null==q||mxEvent.isAltDown(m)?!1:g.isValidDropTarget(q,a,m);var z=null;null==q||w||(q=null);if(!g.isCellLocked(q||
+g.getDefaultParent())){g.model.beginUpdate();try{k=Math.round(k);u=Math.round(u);if(b&&g.isSplitTarget(q,a,m)){var C=g.view.scale,E=g.view.translate,D=(k+E.x)*C,G=(u+E.y)*C,J=g.cloneCells(a);g.splitEdge(q,J,null,k-f.width/2,u-f.height/2,D,G);z=J}else if(0<a.length&&(z=g.importCells(a,k,u,q),g.model.isVertex(d)&&1==z.length&&g.model.isVertex(z[0]))){var L=g.insertEdge(g.model.getParent(d),null,"",d,z[0],g.createCurrentEdgeStyle());g.applyNewEdgeStyle(d,[L]);z.push(L);g.connectionHandler.insertBeforeSource&&
+g.insertEdgeBeforeCell(L,d)}if(null!=g.layoutManager){var Q=g.layoutManager.getLayout(q);if(null!=Q){C=g.view.scale;E=g.view.translate;D=(k+E.x)*C;G=(u+E.y)*C;for(var N=0;N<z.length;N++)Q.moveCell(z[N],D,G)}}!e||null!=m&&mxEvent.isShiftDown(m)||g.fireEvent(new mxEventObject("cellsInserted","cells",z));for(N=0;N<z.length;N++)g.model.isVertex(z[N])&&g.isAutoSizeCell(z[N])&&g.updateCellSize(z[N])}catch(U){this.editorUi.handleError(U)}finally{g.model.endUpdate()}null!=z&&0<z.length&&(g.scrollCellToVisible(z[0]),
g.setSelectionCells(z));(h||g.editAfterInsert&&null!=m&&mxEvent.isMouseEvent(m)&&null!=z&&1==z.length)&&window.setTimeout(function(){g.startEditing(z[0])},0)}}mxEvent.consume(m)}})};Sidebar.prototype.createDragPreview=function(a,b){var e=document.createElement("div");e.className="geDragPreview";e.style.width=a+"px";e.style.height=b+"px";return e};
-Sidebar.prototype.dropAndConnect=function(a,b,e,f,h,d,g){var m=this.editorUi.editor.graph,p=m.model.isEdge(a)||null!=d?d:g;p=this.getDropAndConnectGeometry(a,b[p],e,b);var k=[];if(null!=p){var u=null;m.model.beginUpdate();try{var w=m.getCellGeometry(a),z=m.getCellGeometry(b[f]),C=m.model.getParent(a),E=!0;if(null!=m.layoutManager){var D=m.layoutManager.getLayout(C);null!=D&&D.constructor==mxStackLayout&&(E=!1)}k=m.model.isEdge(a)?null:m.view.getState(C);var G=D=0;if(null!=k){var J=k.origin;D=J.x;
-G=J.y}var L=!m.isTableRow(a)&&!m.isTableCell(a)&&(m.model.isEdge(a)||null!=w&&!w.relative&&E),Q=m.getCellAt((p.x+D+m.view.translate.x)*m.view.scale,(p.y+G+m.view.translate.y)*m.view.scale,null,null,null,function(K,V,Z){return!m.isContainer(K.cell)});if(null!=Q&&Q!=C)k=m.view.getState(Q),null!=k&&(J=k.origin,C=Q,L=!0,m.model.isEdge(a)||(p.x-=J.x-D,p.y-=J.y-G));else if(!E||m.isTableRow(a)||m.isTableCell(a))p.x+=D,p.y+=G;D=z.x;G=z.y;m.model.isEdge(b[f])&&(G=D=0);k=b=m.importCells(b,p.x-(L?D:0),p.y-(L?
+Sidebar.prototype.dropAndConnect=function(a,b,e,f,h,d,g){var m=this.editorUi.editor.graph,q=m.model.isEdge(a)||null!=d?d:g;q=this.getDropAndConnectGeometry(a,b[q],e,b);var k=[];if(null!=q){var u=null;m.model.beginUpdate();try{var w=m.getCellGeometry(a),z=m.getCellGeometry(b[f]),C=m.model.getParent(a),E=!0;if(null!=m.layoutManager){var D=m.layoutManager.getLayout(C);null!=D&&D.constructor==mxStackLayout&&(E=!1)}k=m.model.isEdge(a)?null:m.view.getState(C);var G=D=0;if(null!=k){var J=k.origin;D=J.x;
+G=J.y}var L=!m.isTableRow(a)&&!m.isTableCell(a)&&(m.model.isEdge(a)||null!=w&&!w.relative&&E),Q=m.getCellAt((q.x+D+m.view.translate.x)*m.view.scale,(q.y+G+m.view.translate.y)*m.view.scale,null,null,null,function(K,V,Z){return!m.isContainer(K.cell)});if(null!=Q&&Q!=C)k=m.view.getState(Q),null!=k&&(J=k.origin,C=Q,L=!0,m.model.isEdge(a)||(q.x-=J.x-D,q.y-=J.y-G));else if(!E||m.isTableRow(a)||m.isTableCell(a))q.x+=D,q.y+=G;D=z.x;G=z.y;m.model.isEdge(b[f])&&(G=D=0);k=b=m.importCells(b,q.x-(L?D:0),q.y-(L?
G:0),L?C:null);if(m.model.isEdge(a))m.model.setTerminal(a,b[f],e==mxConstants.DIRECTION_NORTH),null!=g&&null!=d&&(m.model.remove(b[g]),m.updateShapes(b[g],[a]));else if(m.model.isEdge(b[f])&&null==d){m.model.setTerminal(b[f],a,!0);var N=m.getCellGeometry(b[f]),U=null!=N?N.getTerminalPoint(!0):null;N.points=null;if(null!=U)for(e=0;e<b.length;e++)if(m.model.isEdge(b[e])&&e!=f){var Y=m.getCellGeometry(b[e]),P=null!=Y?Y.getTerminalPoint(!0):null;null!=P&&P.x==U.x&&P.y==U.y&&m.model.setTerminal(b[e],a,
-!0)}if(null!=N.getTerminalPoint(!1))N.setTerminalPoint(p.getTerminalPoint(!1),!1);else if(L&&m.model.isVertex(C)){var T=m.view.getState(C);J=T.cell!=m.view.currentRoot?T.origin:new mxPoint(0,0);m.cellsMoved(b,J.x,J.y,null,null,!0)}}else null!=d&&(z=m.getCellGeometry(b[d]),D=p.x-Math.round(z.x),G=p.y-Math.round(z.y),p.x=Math.round(z.x),p.y=Math.round(z.y),m.model.setGeometry(b[f],p),m.cellsMoved(b,D,G,null,null,!0),k=b.slice(),u=1==k.length?k[0]:null,null!=g?m.model.setTerminal(b[g],a,!0):b.push(m.insertEdge(null,
+!0)}if(null!=N.getTerminalPoint(!1))N.setTerminalPoint(q.getTerminalPoint(!1),!1);else if(L&&m.model.isVertex(C)){var T=m.view.getState(C);J=T.cell!=m.view.currentRoot?T.origin:new mxPoint(0,0);m.cellsMoved(b,J.x,J.y,null,null,!0)}}else null!=d&&(z=m.getCellGeometry(b[d]),D=q.x-Math.round(z.x),G=q.y-Math.round(z.y),q.x=Math.round(z.x),q.y=Math.round(z.y),m.model.setGeometry(b[f],q),m.cellsMoved(b,D,G,null,null,!0),k=b.slice(),u=1==k.length?k[0]:null,null!=g?m.model.setTerminal(b[g],a,!0):b.push(m.insertEdge(null,
null,"",a,b[f],m.createCurrentEdgeStyle())));null!=h&&mxEvent.isShiftDown(h)||m.fireEvent(new mxEventObject("cellsInserted","cells",b))}catch(K){this.editorUi.handleError(K)}finally{m.model.endUpdate()}m.editAfterInsert&&null!=h&&mxEvent.isMouseEvent(h)&&null!=u&&window.setTimeout(function(){m.startEditing(u)},0)}null!=g&&1<k.length&&k.splice(g,1);return k};
-Sidebar.prototype.getDropAndConnectGeometry=function(a,b,e,f){var h=this.editorUi.editor.graph,d=h.view,g=1<f.length,m=h.view.getState(a),p=h.getCellGeometry(a);f=h.getCellGeometry(b);null!=m&&null!=p&&null!=f&&(f=f.clone(),h.model.isEdge(a)?(p=m.absolutePoints,b=p[0],h=p[p.length-1],e==mxConstants.DIRECTION_NORTH?(f.x=b.x/d.scale-d.translate.x-f.width/2,f.y=b.y/d.scale-d.translate.y-f.height/2):(f.x=h.x/d.scale-d.translate.x-f.width/2,f.y=h.y/d.scale-d.translate.y-f.height/2)):(p.relative&&(p=p.clone(),
-p.x=(m.x-d.translate.x)/d.scale,p.y=(m.y-d.translate.y)/d.scale),d=h.defaultEdgeLength,h.model.isEdge(b)&&null!=f.getTerminalPoint(!0)&&null!=f.getTerminalPoint(!1)?(b=f.getTerminalPoint(!0),h=f.getTerminalPoint(!1),d=h.x-b.x,b=h.y-b.y,d=Math.sqrt(d*d+b*b),f.x=p.getCenterX(),f.y=p.getCenterY(),f.width=1,f.height=1,e==mxConstants.DIRECTION_NORTH?(f.height=d,f.y=p.y-d,f.setTerminalPoint(new mxPoint(f.x,f.y),!1)):e==mxConstants.DIRECTION_EAST?(f.width=d,f.x=p.x+p.width,f.setTerminalPoint(new mxPoint(f.x+
-f.width,f.y),!1)):e==mxConstants.DIRECTION_SOUTH?(f.height=d,f.y=p.y+p.height,f.setTerminalPoint(new mxPoint(f.x,f.y+f.height),!1)):e==mxConstants.DIRECTION_WEST&&(f.width=d,f.x=p.x-d,f.setTerminalPoint(new mxPoint(f.x,f.y),!1))):(!g&&45<f.width&&45<f.height&&45<p.width&&45<p.height&&(f.width*=p.height/f.height,f.height=p.height),f.x=p.x+p.width/2-f.width/2,f.y=p.y+p.height/2-f.height/2,e==mxConstants.DIRECTION_NORTH?f.y=f.y-p.height/2-f.height/2-d:e==mxConstants.DIRECTION_EAST?f.x=f.x+p.width/2+
-f.width/2+d:e==mxConstants.DIRECTION_SOUTH?f.y=f.y+p.height/2+f.height/2+d:e==mxConstants.DIRECTION_WEST&&(f.x=f.x-p.width/2-f.width/2-d),h.model.isEdge(b)&&null!=f.getTerminalPoint(!0)&&null!=b.getTerminal(!1)&&(p=h.getCellGeometry(b.getTerminal(!1)),null!=p&&(e==mxConstants.DIRECTION_NORTH?(f.x-=p.getCenterX(),f.y-=p.getCenterY()+p.height/2):e==mxConstants.DIRECTION_EAST?(f.x-=p.getCenterX()-p.width/2,f.y-=p.getCenterY()):e==mxConstants.DIRECTION_SOUTH?(f.x-=p.getCenterX(),f.y-=p.getCenterY()-p.height/
-2):e==mxConstants.DIRECTION_WEST&&(f.x-=p.getCenterX()+p.width/2,f.y-=p.getCenterY()))))));return f};Sidebar.prototype.isDropStyleEnabled=function(a,b){var e=!0;null!=b&&1==a.length&&(a=this.graph.getCellStyle(a[b]),null!=a&&(e=mxUtils.getValue(a,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(a,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE)!=mxConstants.NONE));return e};
+Sidebar.prototype.getDropAndConnectGeometry=function(a,b,e,f){var h=this.editorUi.editor.graph,d=h.view,g=1<f.length,m=h.view.getState(a),q=h.getCellGeometry(a);f=h.getCellGeometry(b);null!=m&&null!=q&&null!=f&&(f=f.clone(),h.model.isEdge(a)?(q=m.absolutePoints,b=q[0],h=q[q.length-1],e==mxConstants.DIRECTION_NORTH?(f.x=b.x/d.scale-d.translate.x-f.width/2,f.y=b.y/d.scale-d.translate.y-f.height/2):(f.x=h.x/d.scale-d.translate.x-f.width/2,f.y=h.y/d.scale-d.translate.y-f.height/2)):(q.relative&&(q=q.clone(),
+q.x=(m.x-d.translate.x)/d.scale,q.y=(m.y-d.translate.y)/d.scale),d=h.defaultEdgeLength,h.model.isEdge(b)&&null!=f.getTerminalPoint(!0)&&null!=f.getTerminalPoint(!1)?(b=f.getTerminalPoint(!0),h=f.getTerminalPoint(!1),d=h.x-b.x,b=h.y-b.y,d=Math.sqrt(d*d+b*b),f.x=q.getCenterX(),f.y=q.getCenterY(),f.width=1,f.height=1,e==mxConstants.DIRECTION_NORTH?(f.height=d,f.y=q.y-d,f.setTerminalPoint(new mxPoint(f.x,f.y),!1)):e==mxConstants.DIRECTION_EAST?(f.width=d,f.x=q.x+q.width,f.setTerminalPoint(new mxPoint(f.x+
+f.width,f.y),!1)):e==mxConstants.DIRECTION_SOUTH?(f.height=d,f.y=q.y+q.height,f.setTerminalPoint(new mxPoint(f.x,f.y+f.height),!1)):e==mxConstants.DIRECTION_WEST&&(f.width=d,f.x=q.x-d,f.setTerminalPoint(new mxPoint(f.x,f.y),!1))):(!g&&45<f.width&&45<f.height&&45<q.width&&45<q.height&&(f.width*=q.height/f.height,f.height=q.height),f.x=q.x+q.width/2-f.width/2,f.y=q.y+q.height/2-f.height/2,e==mxConstants.DIRECTION_NORTH?f.y=f.y-q.height/2-f.height/2-d:e==mxConstants.DIRECTION_EAST?f.x=f.x+q.width/2+
+f.width/2+d:e==mxConstants.DIRECTION_SOUTH?f.y=f.y+q.height/2+f.height/2+d:e==mxConstants.DIRECTION_WEST&&(f.x=f.x-q.width/2-f.width/2-d),h.model.isEdge(b)&&null!=f.getTerminalPoint(!0)&&null!=b.getTerminal(!1)&&(q=h.getCellGeometry(b.getTerminal(!1)),null!=q&&(e==mxConstants.DIRECTION_NORTH?(f.x-=q.getCenterX(),f.y-=q.getCenterY()+q.height/2):e==mxConstants.DIRECTION_EAST?(f.x-=q.getCenterX()-q.width/2,f.y-=q.getCenterY()):e==mxConstants.DIRECTION_SOUTH?(f.x-=q.getCenterX(),f.y-=q.getCenterY()-q.height/
+2):e==mxConstants.DIRECTION_WEST&&(f.x-=q.getCenterX()+q.width/2,f.y-=q.getCenterY()))))));return f};Sidebar.prototype.isDropStyleEnabled=function(a,b){var e=!0;null!=b&&1==a.length&&(a=this.graph.getCellStyle(a[b]),null!=a&&(e=mxUtils.getValue(a,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(a,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE)!=mxConstants.NONE));return e};
Sidebar.prototype.isDropStyleTargetIgnored=function(a){return this.graph.isSwimlane(a.cell)||this.graph.isTableCell(a.cell)||this.graph.isTableRow(a.cell)||this.graph.isTable(a.cell)};Sidebar.prototype.disablePointerEvents=function(a){mxUtils.visitNodes(a,mxUtils.bind(this,function(b){b.nodeType==mxConstants.NODETYPE_ELEMENT&&(b.style.pointerEvents="none",b.removeAttribute("pointer-events"))}))};
-Sidebar.prototype.createDragSource=function(a,b,e,f,h,d){function g(ma,Ba){var Ca=mxUtils.createImage(ma.src);Ca.style.width=ma.width+"px";Ca.style.height=ma.height+"px";null!=Ba&&Ca.setAttribute("title",Ba);mxUtils.setOpacity(Ca,ma==this.refreshTarget?30:20);Ca.style.position="absolute";Ca.style.cursor="crosshair";return Ca}function m(ma,Ba,Ca,Ja){null!=Ja.parentNode&&(mxUtils.contains(Ca,ma,Ba)?(mxUtils.setOpacity(Ja,100),O=Ja):mxUtils.setOpacity(Ja,Ja==V?30:20));return Ca}var p=this.editorUi,k=
-p.editor.graph,u=null,w=null,z=this;d=0;for(var C=this.livePreview,E=0;E<f.length&&C;E++)d+=k.model.getDescendants(f[E]).length,C=d<k.graphHandler.maxLivePreview;for(E=0;E<f.length&&(null==w&&k.model.isVertex(f[E])?w=E:null==u&&k.model.isEdge(f[E])&&null==k.model.getTerminal(f[E],!0)&&(u=E),null==w||null==u);E++);var D=this.isDropStyleEnabled(f,w),G=mxUtils.makeDraggable(a,k,mxUtils.bind(this,function(ma,Ba,Ca,Ja,Ia){null!=this.updateThread&&window.clearTimeout(this.updateThread);if(null!=f&&null!=
+Sidebar.prototype.createDragSource=function(a,b,e,f,h,d){function g(ma,Ba){var Ca=mxUtils.createImage(ma.src);Ca.style.width=ma.width+"px";Ca.style.height=ma.height+"px";null!=Ba&&Ca.setAttribute("title",Ba);mxUtils.setOpacity(Ca,ma==this.refreshTarget?30:20);Ca.style.position="absolute";Ca.style.cursor="crosshair";return Ca}function m(ma,Ba,Ca,Ja){null!=Ja.parentNode&&(mxUtils.contains(Ca,ma,Ba)?(mxUtils.setOpacity(Ja,100),O=Ja):mxUtils.setOpacity(Ja,Ja==V?30:20));return Ca}var q=this.editorUi,k=
+q.editor.graph,u=null,w=null,z=this;d=0;for(var C=this.livePreview,E=0;E<f.length&&C;E++)d+=k.model.getDescendants(f[E]).length,C=d<k.graphHandler.maxLivePreview;for(E=0;E<f.length&&(null==w&&k.model.isVertex(f[E])?w=E:null==u&&k.model.isEdge(f[E])&&null==k.model.getTerminal(f[E],!0)&&(u=E),null==w||null==u);E++);var D=this.isDropStyleEnabled(f,w),G=mxUtils.makeDraggable(a,k,mxUtils.bind(this,function(ma,Ba,Ca,Ja,Ia){null!=this.updateThread&&window.clearTimeout(this.updateThread);if(null!=f&&null!=
N&&O==V){var Da=ma.isCellSelected(N.cell)?ma.getSelectionCells():[N.cell];ma.updateShapes(ma.model.isEdge(N.cell)?f[0]:f[w],Da,!0);ma.setSelectionCells(Da)}else null!=f&&null!=O&&null!=L&&O!=V?(Da=ma.model.isEdge(L.cell)||null==u?w:u,ma.setSelectionCells(this.dropAndConnect(L.cell,f,sa,Da,Ba,w,u))):b.apply(this,arguments);null!=this.editorUi.hoverIcons&&this.editorUi.hoverIcons.update(ma.view.getState(ma.getSelectionCell()))}),e,0,0,k.autoscroll,!0,!0);C&&(G.createDragElement=mxUtils.bind(this,function(){return G.createPreviewElement(this.graph)}),
G.createPreviewElement=mxUtils.bind(this,function(ma){var Ba=document.createElement("a");Ba.className="geItem";Ba.style.overflow="visible";ma=ma.view.scale;Ba.style.width=ma*Math.max(1,h.width)+"px";Ba.style.height=ma*Math.max(1,h.height)+"px";mxUtils.setOpacity(Ba,50);var Ca=k.cloneCells(f);this.graph.pasteCellStyles(k.includeDescendants(Ca),k.currentVertexStyle,k.currentEdgeStyle,null,k.pasteEdgeStyle);z.createThumb(Ca,ma*Math.max(1,h.width),ma*Math.max(1,h.height),Ba,null,null,null,null,null,k.shapeBackgroundColor,
0,ma);return Ba}));var J=G.mouseDown;G.mouseDown=function(ma){mxEvent.isPopupTrigger(ma)||mxEvent.isMultiTouchEvent(ma)||k.isCellLocked(k.getDefaultParent())||(k.stopEditing(),J.apply(this,arguments))};var L=null,Q=null,N=null,U=!1,Y=g(this.triangleUp,mxResources.get("connect")),P=g(this.triangleRight,mxResources.get("connect")),T=g(this.triangleDown,mxResources.get("connect")),K=g(this.triangleLeft,mxResources.get("connect")),V=g(this.refreshTarget,mxResources.get("replace")),Z=null,ia=g(this.roundDrop),
-oa=g(this.roundDrop),sa=mxConstants.DIRECTION_NORTH,O=null,X=G.createPreviewElement;G.createPreviewElement=function(ma){var Ba=X.apply(this,arguments);mxClient.IS_SVG&&(Ba.style.pointerEvents="none");this.previewElementWidth=Ba.style.width;this.previewElementHeight=Ba.style.height;return Ba};var ba=G.dragEnter;G.dragEnter=function(ma,Ba){null!=p.hoverIcons&&p.hoverIcons.setDisplay("none");ba.apply(this,arguments)};var da=G.dragExit;G.dragExit=function(ma,Ba){null!=p.hoverIcons&&p.hoverIcons.setDisplay("");
-da.apply(this,arguments)};G.dragOver=function(ma,Ba){mxDragSource.prototype.dragOver.apply(this,arguments);null!=this.currentGuide&&null!=O&&this.currentGuide.hide();if(null!=this.previewElement){p.hideShapePicker();var Ca=ma.view;if(null!=N&&O==V)this.previewElement.style.display="none";else if(null!=L&&null!=O){null!=G.currentHighlight&&null!=G.currentHighlight.state&&G.currentHighlight.hide();var Ja=ma.model.isEdge(L.cell)||null!=w?w:u,Ia=z.getDropAndConnectGeometry(L.cell,f[Ja],sa,f),Da=ma.model.isEdge(L.cell)?
+oa=g(this.roundDrop),sa=mxConstants.DIRECTION_NORTH,O=null,X=G.createPreviewElement;G.createPreviewElement=function(ma){var Ba=X.apply(this,arguments);mxClient.IS_SVG&&(Ba.style.pointerEvents="none");this.previewElementWidth=Ba.style.width;this.previewElementHeight=Ba.style.height;return Ba};var ba=G.dragEnter;G.dragEnter=function(ma,Ba){null!=q.hoverIcons&&q.hoverIcons.setDisplay("none");ba.apply(this,arguments)};var da=G.dragExit;G.dragExit=function(ma,Ba){null!=q.hoverIcons&&q.hoverIcons.setDisplay("");
+da.apply(this,arguments)};G.dragOver=function(ma,Ba){mxDragSource.prototype.dragOver.apply(this,arguments);null!=this.currentGuide&&null!=O&&this.currentGuide.hide();if(null!=this.previewElement){q.hideShapePicker();var Ca=ma.view;if(null!=N&&O==V)this.previewElement.style.display="none";else if(null!=L&&null!=O){null!=G.currentHighlight&&null!=G.currentHighlight.state&&G.currentHighlight.hide();var Ja=ma.model.isEdge(L.cell)||null!=w?w:u,Ia=z.getDropAndConnectGeometry(L.cell,f[Ja],sa,f),Da=ma.model.isEdge(L.cell)?
null:ma.getCellGeometry(L.cell),Ga=ma.getCellGeometry(f[Ja]),ta=ma.model.getParent(L.cell),La=Ca.translate.x*Ca.scale,Xa=Ca.translate.y*Ca.scale;null!=Da&&!Da.relative&&ma.model.isVertex(ta)&&ta!=Ca.currentRoot&&(Xa=Ca.getState(ta),La=Xa.x,Xa=Xa.y);Da=Ga.x;Ga=Ga.y;ma.model.isEdge(f[Ja])&&(Ga=Da=0);this.previewElement.style.left=(Ia.x-Da)*Ca.scale+La+"px";this.previewElement.style.top=(Ia.y-Ga)*Ca.scale+Xa+"px";1==f.length&&(this.previewElement.style.width=Ia.width*Ca.scale+"px",this.previewElement.style.height=
Ia.height*Ca.scale+"px",null!=this.previewElement.firstChild&&(this.previewElement.firstChild.style.display="none",this.previewElement.className="geDragPreview",mxUtils.setOpacity(this.previewElement,100)));this.previewElement.style.display=""}else null!=G.currentHighlight&&null!=G.currentHighlight.state&&ma.model.isEdge(G.currentHighlight.state.cell)?(this.previewElement.style.left=Math.round(parseInt(this.previewElement.style.left)-h.width*Ca.scale/2)+"px",this.previewElement.style.top=Math.round(parseInt(this.previewElement.style.top)-
h.height*Ca.scale/2)+"px"):(this.previewElement.style.width=this.previewElementWidth,this.previewElement.style.height=this.previewElementHeight,this.previewElement.style.display="",null!=this.previewElement.firstChild&&(this.previewElement.firstChild.style.display="",mxUtils.setOpacity(this.previewElement,50),this.previewElement.className=""))}};var ca=(new Date).getTime(),H=0,ea=null,ra=this.editorUi.editor.graph.getCellStyle(f[0]);G.getDropTarget=mxUtils.bind(this,function(ma,Ba,Ca,Ja){var Ia=mxEvent.isAltDown(Ja)||
@@ -2498,13 +2498,13 @@ Da[ta].parentNode&&Da[ta].parentNode.removeChild(Da[ta]);U||null==Q||Q.setHandle
Ba=0;Ba<ma.length;Ba++)null!=ma[Ba].parentNode&&ma[Ba].parentNode.removeChild(ma[Ba]);null!=L&&null!=Q&&Q.reset();O=Z=N=L=Q=z.activeDragSource=null};return G};
Sidebar.prototype.itemClicked=function(a,b,e,f){f=this.editorUi.editor.graph;f.container.focus();if(mxEvent.isAltDown(e)&&1==f.getSelectionCount()&&f.model.isVertex(f.getSelectionCell())){b=null;for(var h=0;h<a.length&&null==b;h++)f.model.isVertex(a[h])&&(b=h);null!=b&&(f.setSelectionCells(this.dropAndConnect(f.getSelectionCell(),a,mxEvent.isMetaDown(e)||mxEvent.isControlDown(e)?mxEvent.isShiftDown(e)?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH:mxEvent.isShiftDown(e)?mxConstants.DIRECTION_EAST:
mxConstants.DIRECTION_SOUTH,b,e)),f.scrollCellToVisible(f.getSelectionCell()))}else mxEvent.isShiftDown(e)&&!f.isSelectionEmpty()?(e=f.getEditableCells(f.getSelectionCells()),f.updateShapes(a[0],e,!0),f.scrollCellToVisible(e)):(a=mxEvent.isAltDown(e)?f.getFreeInsertPoint():f.getCenterInsertPoint(f.getBoundingBoxFromGeometry(a,!0)),b.drop(f,e,null,a.x,a.y,!0))};
-Sidebar.prototype.addClickHandler=function(a,b,e,f){var h=b.getGraphForEvent,d=b.mouseDown,g=b.mouseMove,m=b.mouseUp,p=this.editorUi.editor.graph.tolerance,k=!1,u=null,w=this,z=null;b.getGraphForEvent=function(C){return k?h.apply(this,arguments):null};b.mouseDown=function(C){d.apply(this,arguments);u=new mxPoint(mxEvent.getClientX(C),mxEvent.getClientY(C));z=a.style.opacity;k=!1;""==z&&(z="1");null!=this.dragElement&&(this.dragElement.style.display="none",mxUtils.setOpacity(a,50))};b.mouseMove=function(C){(k=
-null!=u&&(Math.abs(u.x-mxEvent.getClientX(C))>p||Math.abs(u.y-mxEvent.getClientY(C))>p))&&null!=this.dragElement&&"none"==this.dragElement.style.display&&(this.dragElement.style.display="",mxUtils.setOpacity(a,100*z));g.apply(this,arguments)};b.mouseUp=function(C){try{mxEvent.isPopupTrigger(C)||null!=this.currentGraph||null==this.dragElement||"none"!=this.dragElement.style.display||(null!=f&&f(C),mxEvent.isConsumed(C)||w.itemClicked(e,b,C,a)),m.apply(b,arguments),mxUtils.setOpacity(a,100*z),u=null,
+Sidebar.prototype.addClickHandler=function(a,b,e,f){var h=b.getGraphForEvent,d=b.mouseDown,g=b.mouseMove,m=b.mouseUp,q=this.editorUi.editor.graph.tolerance,k=!1,u=null,w=this,z=null;b.getGraphForEvent=function(C){return k?h.apply(this,arguments):null};b.mouseDown=function(C){d.apply(this,arguments);u=new mxPoint(mxEvent.getClientX(C),mxEvent.getClientY(C));z=a.style.opacity;k=!1;""==z&&(z="1");null!=this.dragElement&&(this.dragElement.style.display="none",mxUtils.setOpacity(a,50))};b.mouseMove=function(C){(k=
+null!=u&&(Math.abs(u.x-mxEvent.getClientX(C))>q||Math.abs(u.y-mxEvent.getClientY(C))>q))&&null!=this.dragElement&&"none"==this.dragElement.style.display&&(this.dragElement.style.display="",mxUtils.setOpacity(a,100*z));g.apply(this,arguments)};b.mouseUp=function(C){try{mxEvent.isPopupTrigger(C)||null!=this.currentGraph||null==this.dragElement||"none"!=this.dragElement.style.display||(null!=f&&f(C),mxEvent.isConsumed(C)||w.itemClicked(e,b,C,a)),m.apply(b,arguments),mxUtils.setOpacity(a,100*z),u=null,
w.currentElt=a}catch(E){b.reset(),w.editorUi.handleError(E)}}};Sidebar.prototype.createVertexTemplateEntry=function(a,b,e,f,h,d,g,m){null!=m&&null!=h&&(m+=" "+h);m=null!=m&&0<m.length?m:null!=h?h.toLowerCase():"";return this.addEntry(m,mxUtils.bind(this,function(){return this.createVertexTemplate(a,b,e,f,h,d,g)}))};
-Sidebar.prototype.createVertexTemplate=function(a,b,e,f,h,d,g,m,p,k,u,w,z,C){a=[new mxCell(null!=f?f:"",new mxGeometry(0,0,b,e),a)];a[0].vertex=!0;return this.createVertexTemplateFromCells(a,b,e,h,d,g,m,p,k,u,w,z,C)};
-Sidebar.prototype.createVertexTemplateFromData=function(a,b,e,f,h,d,g,m){var p=null;try{var k=mxUtils.parseXml(Graph.decompress(a)),u=new mxCodec(k),w=new mxGraphModel;u.decode(k.documentElement,w);p=this.graph.cloneCells(w.root.getChildAt(0).children)}catch(z){f=mxResources.get("error")+": "+z.message}return this.createVertexTemplateFromCells(p,b,e,f,h,d,g,m)};Sidebar.prototype.createVertexTemplateFromCells=function(a,b,e,f,h,d,g,m,p,k,u,w,z,C){return this.createItem(a,f,h,d,b,e,g,m,p,k,u,w,z,C)};
-Sidebar.prototype.createEdgeTemplateEntry=function(a,b,e,f,h,d,g,m,p){g=null!=g&&0<g.length?g:h.toLowerCase();return this.addEntry(g,mxUtils.bind(this,function(){return this.createEdgeTemplate(a,b,e,f,h,d,m,p)}))};
-Sidebar.prototype.createEdgeTemplate=function(a,b,e,f,h,d,g,m){a=new mxCell(null!=f?f:"",new mxGeometry(0,0,b,e),a);a.geometry.setTerminalPoint(new mxPoint(0,e),!0);a.geometry.setTerminalPoint(new mxPoint(b,0),!1);a.geometry.relative=!0;a.edge=!0;return this.createEdgeTemplateFromCells([a],b,e,h,d,g,m)};Sidebar.prototype.createEdgeTemplateFromCells=function(a,b,e,f,h,d,g,m,p,k,u,w){return this.createItem(a,f,h,null!=m?m:!0,b,e,d,g,p,k,u,w)};
+Sidebar.prototype.createVertexTemplate=function(a,b,e,f,h,d,g,m,q,k,u,w,z,C){a=[new mxCell(null!=f?f:"",new mxGeometry(0,0,b,e),a)];a[0].vertex=!0;return this.createVertexTemplateFromCells(a,b,e,h,d,g,m,q,k,u,w,z,C)};
+Sidebar.prototype.createVertexTemplateFromData=function(a,b,e,f,h,d,g,m){var q=null;try{var k=mxUtils.parseXml(Graph.decompress(a)),u=new mxCodec(k),w=new mxGraphModel;u.decode(k.documentElement,w);q=this.graph.cloneCells(w.root.getChildAt(0).children)}catch(z){f=mxResources.get("error")+": "+z.message}return this.createVertexTemplateFromCells(q,b,e,f,h,d,g,m)};Sidebar.prototype.createVertexTemplateFromCells=function(a,b,e,f,h,d,g,m,q,k,u,w,z,C){return this.createItem(a,f,h,d,b,e,g,m,q,k,u,w,z,C)};
+Sidebar.prototype.createEdgeTemplateEntry=function(a,b,e,f,h,d,g,m,q){g=null!=g&&0<g.length?g:h.toLowerCase();return this.addEntry(g,mxUtils.bind(this,function(){return this.createEdgeTemplate(a,b,e,f,h,d,m,q)}))};
+Sidebar.prototype.createEdgeTemplate=function(a,b,e,f,h,d,g,m){a=new mxCell(null!=f?f:"",new mxGeometry(0,0,b,e),a);a.geometry.setTerminalPoint(new mxPoint(0,e),!0);a.geometry.setTerminalPoint(new mxPoint(b,0),!1);a.geometry.relative=!0;a.edge=!0;return this.createEdgeTemplateFromCells([a],b,e,h,d,g,m)};Sidebar.prototype.createEdgeTemplateFromCells=function(a,b,e,f,h,d,g,m,q,k,u,w){return this.createItem(a,f,h,null!=m?m:!0,b,e,d,g,q,k,u,w)};
Sidebar.prototype.addPaletteFunctions=function(a,b,e,f){this.addPalette(a,b,e,mxUtils.bind(this,function(h){for(var d=0;d<f.length;d++)h.appendChild(f[d](h))}))};
Sidebar.prototype.addPalette=function(a,b,e,f){b=this.createTitle(b);this.appendChild(b);var h=document.createElement("div");h.className="geSidebar";mxClient.IS_POINTER&&(h.style.touchAction="none");e&&this.expandLibraries?(f(h),f=null):h.style.display="none";this.addFoldingHandler(b,h,f);e=document.createElement("div");e.appendChild(h);this.appendChild(e);null!=a&&(this.palettes[a]=[b,e]);return h};
Sidebar.prototype.addFoldingHandler=function(a,b,e){var f=!1;a.style.backgroundImage="none"==b.style.display?"url('"+Editor.arrowRightImage+"')":"url('"+Editor.arrowDownImage+"')";a.style.backgroundRepeat="no-repeat";a.style.backgroundPosition="0px 50%";a.style.backgroundSize="20px";mxEvent.addListener(a,"click",mxUtils.bind(this,function(h){if(a.contains(mxEvent.getSource(h))){if("none"==b.style.display){if(f)this.setContentVisible(b,!0);else if(f=!0,null!=e){a.style.cursor="wait";for(var d=[],g=
@@ -2512,37 +2512,37 @@ Sidebar.prototype.addFoldingHandler=function(a,b,e){var f=!1;a.style.backgroundI
"')",this.setContentVisible(b,!1);mxEvent.consume(h)}}));mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(h){h.preventDefault()}))};
Sidebar.prototype.setContentVisible=function(a,b){mxUtils.setPrefixedStyle(a.style,"transition","all 0.2s linear");mxUtils.setPrefixedStyle(a.style,"transform-origin","top left");b?(mxUtils.setPrefixedStyle(a.style,"transform","scaleY(0)"),a.style.display="block",window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(a.style,"transform","scaleY(1)");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(a.style,"transform",null);mxUtils.setPrefixedStyle(a.style,"transition",
null)}),200)}),0)):(mxUtils.setPrefixedStyle(a.style,"transform","scaleY(0)"),window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(a.style,"transform",null);mxUtils.setPrefixedStyle(a.style,"transition",null);a.style.display="none"}),200))};Sidebar.prototype.removePalette=function(a){var b=this.palettes[a];if(null!=b){this.palettes[a]=null;for(a=0;a<b.length;a++)this.container.removeChild(b[a]);return!0}return!1};
-Sidebar.prototype.addImagePalette=function(a,b,e,f,h,d,g){for(var m=[],p=0;p<h.length;p++)mxUtils.bind(this,function(k,u,w){if(null==w&&(null==e||"img/lib/clip_art/"!=e.substring(0,17))){w=k.lastIndexOf("/");var z=k.lastIndexOf(".");w=k.substring(0<=w?w+1:0,0<=z?z:k.length).replace(/[-_]/g," ")}m.push(this.createVertexTemplateEntry("image;html=1;image="+e+k+f,this.defaultImageWidth,this.defaultImageHeight,"",u,null!=u,null,this.filterTags(w)))})(h[p],null!=d?d[p]:null,null!=g?g[h[p]]:null);this.addPaletteFunctions(a,
+Sidebar.prototype.addImagePalette=function(a,b,e,f,h,d,g){for(var m=[],q=0;q<h.length;q++)mxUtils.bind(this,function(k,u,w){if(null==w&&(null==e||"img/lib/clip_art/"!=e.substring(0,17))){w=k.lastIndexOf("/");var z=k.lastIndexOf(".");w=k.substring(0<=w?w+1:0,0<=z?z:k.length).replace(/[-_]/g," ")}m.push(this.createVertexTemplateEntry("image;html=1;image="+e+k+f,this.defaultImageWidth,this.defaultImageHeight,"",u,null!=u,null,this.filterTags(w)))})(h[q],null!=d?d[q]:null,null!=g?g[h[q]]:null);this.addPaletteFunctions(a,
b,!1,m)};Sidebar.prototype.getTagsForStencil=function(a,b,e){a=a.split(".");for(var f=1;f<a.length;f++)a[f]=a[f].replace(/_/g," ");a.push(b.replace(/_/g," "));null!=e&&a.push(e);return a.slice(1,a.length)};
-Sidebar.prototype.addStencilPalette=function(a,b,e,f,h,d,g,m,p,k){g=null!=g?g:1;if(this.addStencilsToIndex){var u=[];if(null!=p)for(k=0;k<p.length;k++)u.push(p[k]);mxStencilRegistry.loadStencilSet(e,mxUtils.bind(this,function(w,z,C,E,D){if(null==h||0>mxUtils.indexOf(h,z)){C=this.getTagsForStencil(w,z);var G=null!=m?m[z]:null;null!=G&&C.push(G);u.push(this.createVertexTemplateEntry("shape="+w+z.toLowerCase()+f,Math.round(E*g),Math.round(D*g),"",z.replace(/_/g," "),null,null,this.filterTags(C.join(" "))))}}),
-!0,!0);this.addPaletteFunctions(a,b,!1,u)}else this.addPalette(a,b,!1,mxUtils.bind(this,function(w){null==f&&(f="");null!=d&&d.call(this,w);if(null!=p)for(var z=0;z<p.length;z++)p[z](w);mxStencilRegistry.loadStencilSet(e,mxUtils.bind(this,function(C,E,D,G,J){(null==h||0>mxUtils.indexOf(h,E))&&w.appendChild(this.createVertexTemplate("shape="+C+E.toLowerCase()+f,Math.round(G*g),Math.round(J*g),"",E.replace(/_/g," "),!0))}),!0)}))};
+Sidebar.prototype.addStencilPalette=function(a,b,e,f,h,d,g,m,q,k){g=null!=g?g:1;if(this.addStencilsToIndex){var u=[];if(null!=q)for(k=0;k<q.length;k++)u.push(q[k]);mxStencilRegistry.loadStencilSet(e,mxUtils.bind(this,function(w,z,C,E,D){if(null==h||0>mxUtils.indexOf(h,z)){C=this.getTagsForStencil(w,z);var G=null!=m?m[z]:null;null!=G&&C.push(G);u.push(this.createVertexTemplateEntry("shape="+w+z.toLowerCase()+f,Math.round(E*g),Math.round(D*g),"",z.replace(/_/g," "),null,null,this.filterTags(C.join(" "))))}}),
+!0,!0);this.addPaletteFunctions(a,b,!1,u)}else this.addPalette(a,b,!1,mxUtils.bind(this,function(w){null==f&&(f="");null!=d&&d.call(this,w);if(null!=q)for(var z=0;z<q.length;z++)q[z](w);mxStencilRegistry.loadStencilSet(e,mxUtils.bind(this,function(C,E,D,G,J){(null==h||0>mxUtils.indexOf(h,E))&&w.appendChild(this.createVertexTemplate("shape="+C+E.toLowerCase()+f,Math.round(G*g),Math.round(J*g),"",E.replace(/_/g," "),!0))}),!0)}))};
Sidebar.prototype.destroy=function(){null!=this.graph&&(null!=this.graph.container&&null!=this.graph.container.parentNode&&this.graph.container.parentNode.removeChild(this.graph.container),this.graph.destroy(),this.graph=null);null!=this.escapeListener&&(this.editorUi.editor.graph.removeListener(this.escapeListener),this.escapeListener=null);null!=this.pointerUpHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointerup":"mouseup",this.pointerUpHandler),this.pointerUpHandler=null);null!=
this.pointerDownHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointerdown":"mousedown",this.pointerDownHandler),this.pointerDownHandler=null);null!=this.pointerMoveHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointermove":"mousemove",this.pointerMoveHandler),this.pointerMoveHandler=null);null!=this.pointerOutHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointerout":"mouseout",this.pointerOutHandler),this.pointerOutHandler=null)};(function(){var a=[["nbsp","160"],["shy","173"]],b=mxUtils.parseXml;mxUtils.parseXml=function(f){for(var h=0;h<a.length;h++)f=f.replace(new RegExp("&"+a[h][0]+";","g"),"&#"+a[h][1]+";");return b(f)};var e=mxUtils.getSizeForString;mxUtils.getSizeForString=function(f,h,d,g){return e(Graph.sanitizeHtml(f),h,d,g)}})();
Date.prototype.toISOString||function(){function a(b){b=String(b);1===b.length&&(b="0"+b);return b}Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1E3).toFixed(3)).slice(2,5)+"Z"}}();Date.now||(Date.now=function(){return(new Date).getTime()});
Uint8Array.from||(Uint8Array.from=function(){var a=Object.prototype.toString,b=function(f){return"function"===typeof f||"[object Function]"===a.call(f)},e=Math.pow(2,53)-1;return function(f){var h=Object(f);if(null==f)throw new TypeError("Array.from requires an array-like object - not null or undefined");var d=1<arguments.length?arguments[1]:void 0,g;if("undefined"!==typeof d){if(!b(d))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(g=
-arguments[2])}var m=Number(h.length);m=isNaN(m)?0:0!==m&&isFinite(m)?(0<m?1:-1)*Math.floor(Math.abs(m)):m;m=Math.min(Math.max(m,0),e);for(var p=b(this)?Object(new this(m)):Array(m),k=0,u;k<m;)u=h[k],p[k]=d?"undefined"===typeof g?d(u,k):d.call(g,u,k):u,k+=1;p.length=m;return p}}());mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";mxConstants.VML_SHADOWCOLOR="#d0d0d0";mxCodec.allowlist="mxStylesheet Array mxGraphModel mxCell mxGeometry mxRectangle mxPoint mxChildChange mxRootChange mxTerminalChange mxValueChange mxStyleChange mxGeometryChange mxCollapseChange mxVisibleChange mxCellAttributeChange".split(" ");
+arguments[2])}var m=Number(h.length);m=isNaN(m)?0:0!==m&&isFinite(m)?(0<m?1:-1)*Math.floor(Math.abs(m)):m;m=Math.min(Math.max(m,0),e);for(var q=b(this)?Object(new this(m)):Array(m),k=0,u;k<m;)u=h[k],q[k]=d?"undefined"===typeof g?d(u,k):d.call(g,u,k):u,k+=1;q.length=m;return q}}());mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";mxConstants.VML_SHADOWCOLOR="#d0d0d0";mxCodec.allowlist="mxStylesheet Array mxGraphModel mxCell mxGeometry mxRectangle mxPoint mxChildChange mxRootChange mxTerminalChange mxValueChange mxStyleChange mxGeometryChange mxCollapseChange mxVisibleChange mxCellAttributeChange".split(" ");
mxGraph.prototype.pageBreakColor="#c0c0c0";mxGraph.prototype.pageScale=1;(function(){try{if(null!=navigator&&null!=navigator.language){var a=navigator.language.toLowerCase();mxGraph.prototype.pageFormat="en-us"===a||"en-ca"===a||"es-mx"===a?mxConstants.PAGE_FORMAT_LETTER_PORTRAIT:mxConstants.PAGE_FORMAT_A4_PORTRAIT}}catch(b){}})();mxText.prototype.baseSpacingTop=5;mxText.prototype.baseSpacingBottom=1;mxGraphModel.prototype.ignoreRelativeEdgeParent=!1;
mxGraphView.prototype.gridImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhCgAKAJEAAAAAAP///8zMzP///yH5BAEAAAMALAAAAAAKAAoAAAIJ1I6py+0Po2wFADs=":IMAGE_PATH+"/grid.gif";mxGraphView.prototype.gridSteps=4;mxGraphView.prototype.minGridSize=4;mxGraphView.prototype.defaultGridColor="#d0d0d0";mxGraphView.prototype.defaultDarkGridColor="#424242";mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultGridColor;mxGraphView.prototype.unit=mxConstants.POINTS;
mxGraphView.prototype.setUnit=function(a){this.unit!=a&&(this.unit=a,this.graph.refresh(),this.fireEvent(new mxEventObject("unitChanged","unit",a)))};mxSvgCanvas2D.prototype.foAltText="[Not supported by viewer]";mxShape.prototype.getConstraints=function(a,b,e){return null};
mxImageShape.prototype.getImageDataUri=function(){var a=String(this.image);if("data:image/svg+xml;base64,"==a.substring(0,26)&&null!=this.style&&"1"==mxUtils.getValue(this.style,"clipSvg","0")){if(null==this.clippedSvg||this.clippedImage!=a)this.clippedSvg=Graph.clipSvgDataUri(a),this.clippedImage=a;a=this.clippedSvg}return a};
(function(){var a=mxStencil.prototype.parseColor;mxStencil.prototype.parseColor=function(b,e,f,h,d){return"default"==h&&null!=d?"fillcolor"==f.nodeName?d.shapeBackgroundColor:d.shapeForegroundColor:a.apply(this,arguments)}})();(function(){var a=mxResources.get;mxResources.get=function(b,e,f){null==f&&(f=b);return a.apply(this,[b,e,f])}})();
-(function(){var a=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(b,e,f,h,d,g,m,p){var k=a.apply(this,arguments);if(null!=e){var u=k.getElementsByTagName("img");0<u.length&&(u[0].className="geToolbarButton geAdaptiveAsset",u[0].style.margin="4px",u[0].style.width="18px")}return k}})();
+(function(){var a=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(b,e,f,h,d,g,m,q){var k=a.apply(this,arguments);if(null!=e){var u=k.getElementsByTagName("img");0<u.length&&(u[0].className="geToolbarButton geAdaptiveAsset",u[0].style.margin="4px",u[0].style.width="18px")}return k}})();
Graph=function(a,b,e,f,h,d){mxGraph.call(this,a,b,e,f);this.themes=h||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=d?d:!1;a=this.baseUrl;b=a.indexOf("//");this.domainPathUrl=this.domainUrl="";0<b&&(b=a.indexOf("/",b+2),0<b&&(this.domainUrl=a.substring(0,b)),b=a.lastIndexOf("/"),0<b&&(this.domainPathUrl=a.substring(0,b+1)));this.isHtmlLabel=function(O){O=this.getCurrentCellStyle(O);
-return null!=O?"1"==O.html||"wrap"==O[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var g=null,m=null,p=null,k=null,u=!1,w=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(O,X){if("mouseDown"==X.getProperty("eventName")&&this.isEnabled()){O=X.getProperty("event");var ba=O.getState();X=this.view.scale;if(!mxEvent.isAltDown(O.getEvent())&&null!=ba&&(w=this.isCellSelected(ba.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(O.getEvent()))){var da=this.selectionCellsHandler.getHandler(ba.cell);
+return null!=O?"1"==O.html||"wrap"==O[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var g=null,m=null,q=null,k=null,u=!1,w=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(O,X){if("mouseDown"==X.getProperty("eventName")&&this.isEnabled()){O=X.getProperty("event");var ba=O.getState();X=this.view.scale;if(!mxEvent.isAltDown(O.getEvent())&&null!=ba&&(w=this.isCellSelected(ba.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(O.getEvent()))){var da=this.selectionCellsHandler.getHandler(ba.cell);
if(null==da||null==da.getHandleForEvent(O)){var ca=new mxRectangle(O.getGraphX()-1,O.getGraphY()-1),H=mxEvent.isTouchEvent(O.getEvent())?mxShape.prototype.svgStrokeTolerance-1:(mxShape.prototype.svgStrokeTolerance+2)/2;da=H+2;ca.grow(H);if(this.isTableCell(ba.cell)&&this.isCellMovable(ba.cell)&&!this.isCellSelected(ba.cell)&&!(mxUtils.contains(ba,O.getGraphX()-da,O.getGraphY()-da)&&mxUtils.contains(ba,O.getGraphX()-da,O.getGraphY()+da)&&mxUtils.contains(ba,O.getGraphX()+da,O.getGraphY()+da)&&mxUtils.contains(ba,
O.getGraphX()+da,O.getGraphY()-da))){var ea=this.model.getParent(ba.cell);da=this.model.getParent(ea);if(!this.isCellSelected(da)){H*=X;var ra=2*H;if(this.model.getChildAt(da,0)!=ea&&mxUtils.intersects(ca,new mxRectangle(ba.x,ba.y-H,ba.width,ra))||this.model.getChildAt(ea,0)!=ba.cell&&mxUtils.intersects(ca,new mxRectangle(ba.x-H,ba.y,ra,ba.height))||mxUtils.intersects(ca,new mxRectangle(ba.x,ba.y+ba.height-H,ba.width,ra))||mxUtils.intersects(ca,new mxRectangle(ba.x+ba.width-H,ba.y,ra,ba.height)))ea=
this.selectionCellsHandler.isHandled(da),this.selectCellForEvent(da,O.getEvent()),da=this.selectionCellsHandler.getHandler(da),null!=da&&(H=da.getHandleForEvent(O),null!=H&&(da.start(O.getGraphX(),O.getGraphY(),H),da.blockDelayedSelection=!ea,O.consume()))}}for(;!O.isConsumed()&&null!=ba&&(this.isTableCell(ba.cell)||this.isTableRow(ba.cell)||this.isTable(ba.cell));)this.isSwimlane(ba.cell)&&this.isCellMovable(ba.cell)&&(da=this.getActualStartSize(ba.cell),(0<da.x||0<da.width)&&mxUtils.intersects(ca,
new mxRectangle(ba.x+(da.x-da.width-1)*X+(0==da.x?ba.width:0),ba.y,1,ba.height))||(0<da.y||0<da.height)&&mxUtils.intersects(ca,new mxRectangle(ba.x,ba.y+(da.y-da.height-1)*X+(0==da.y?ba.height:0),ba.width,1)))&&(this.selectCellForEvent(ba.cell,O.getEvent()),da=this.selectionCellsHandler.getHandler(ba.cell),null!=da&&null!=da.customHandles&&(H=mxEvent.CUSTOM_HANDLE-da.customHandles.length+1,da.start(O.getGraphX(),O.getGraphY(),H),O.consume())),ba=this.view.getState(this.model.getParent(ba.cell))}}}}));
-this.addListener(mxEvent.CONSUME_MOUSE_EVENT,mxUtils.bind(this,function(O,X){if("mouseDown"==X.getProperty("eventName")&&this.isEnabled()){O=X.getProperty("event");var ba=O.getState();mxEvent.isAltDown(O.getEvent())||mxEvent.isControlDown(X)||mxEvent.isShiftDown(X)||w||null==ba||!this.model.isEdge(ba.cell)||(g=new mxPoint(O.getGraphX(),O.getGraphY()),u=this.isCellSelected(ba.cell),p=ba,m=O,null!=ba.text&&null!=ba.text.boundingBox&&mxUtils.contains(ba.text.boundingBox,O.getGraphX(),O.getGraphY())?
-k=mxEvent.LABEL_HANDLE:(X=this.selectionCellsHandler.getHandler(ba.cell),null!=X&&null!=X.bends&&0<X.bends.length&&(k=X.getHandleForEvent(O))))}}));this.addMouseListener({mouseDown:function(O,X){},mouseMove:mxUtils.bind(this,function(O,X){O=this.selectionCellsHandler.handlers.map;for(var ba in O)if(null!=O[ba].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(X.getEvent())){var da=this.tolerance;if(null!=g&&null!=p&&null!=m){if(ba=p,null!=k||Math.abs(g.x-X.getGraphX())>
+this.addListener(mxEvent.CONSUME_MOUSE_EVENT,mxUtils.bind(this,function(O,X){if("mouseDown"==X.getProperty("eventName")&&this.isEnabled()){O=X.getProperty("event");var ba=O.getState();mxEvent.isAltDown(O.getEvent())||mxEvent.isControlDown(X)||mxEvent.isShiftDown(X)||w||null==ba||!this.model.isEdge(ba.cell)||(g=new mxPoint(O.getGraphX(),O.getGraphY()),u=this.isCellSelected(ba.cell),q=ba,m=O,null!=ba.text&&null!=ba.text.boundingBox&&mxUtils.contains(ba.text.boundingBox,O.getGraphX(),O.getGraphY())?
+k=mxEvent.LABEL_HANDLE:(X=this.selectionCellsHandler.getHandler(ba.cell),null!=X&&null!=X.bends&&0<X.bends.length&&(k=X.getHandleForEvent(O))))}}));this.addMouseListener({mouseDown:function(O,X){},mouseMove:mxUtils.bind(this,function(O,X){O=this.selectionCellsHandler.handlers.map;for(var ba in O)if(null!=O[ba].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(X.getEvent())){var da=this.tolerance;if(null!=g&&null!=q&&null!=m){if(ba=q,null!=k||Math.abs(g.x-X.getGraphX())>
da||Math.abs(g.y-X.getGraphY())>da){var ca=null;mxEvent.isShiftDown(X.getEvent())||(ca=this.selectionCellsHandler.getHandler(ba.cell));if(null!=ca&&null!=ca.bends&&0<ca.bends.length){ca.redrawHandles();var H=null!=k?k:ca.getHandleForEvent(m),ea=this.view.getEdgeStyle(ba),ra=ea==mxEdgeStyle.EntityRelation;da=ba.absolutePoints;u||(H=k);H!=mxEvent.LABEL_HANDLE&&null!=da&&(H=k,null==H&&(O=new mxRectangle(g.x,g.y),O.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(O,da[0].x,da[0].y)?
H=0:mxUtils.contains(O,da[da.length-1].x,da[da.length-1].y)?H=ca.bends.length-1:null!=da&&(null==ea&&null==H||ea==mxEdgeStyle.SegmentConnector||ea==mxEdgeStyle.OrthConnector)&&(null!=ea&&(2==da.length||3==da.length&&(0==Math.round(da[0].x-da[1].x)&&0==Math.round(da[1].x-da[2].x)||0==Math.round(da[0].y-da[1].y)&&0==Math.round(da[1].y-da[2].y)))?H=2:(H=mxUtils.findNearestSegment(ba,g.x,g.y),H=null==ea?mxEvent.VIRTUAL_HANDLE-H:H+1))),null==H&&(H=mxEvent.VIRTUAL_HANDLE));O=H==mxEvent.LABEL_HANDLE||0==
-H||H==ca.bends.length-1;if(!ra&&(null!=ba.visibleSourceState||null!=ba.visibleTargetState)||O)ca.start(X.getGraphX(),X.getGraphX(),H),X.consume(),this.graphHandler.reset()}null!=ca&&(this.selectionCellsHandler.isHandlerActive(ca)?this.isCellSelected(ba.cell)||(this.selectionCellsHandler.handlers.put(ba.cell,ca),this.selectCellForEvent(ba.cell,X.getEvent())):this.isCellSelected(ba.cell)||ca.destroy());u=!1;g=m=p=k=null}}else if(ba=X.getState(),null!=ba&&this.isCellEditable(ba.cell)){O=this.model.getParent(ba.cell);
+H||H==ca.bends.length-1;if(!ra&&(null!=ba.visibleSourceState||null!=ba.visibleTargetState)||O)ca.start(X.getGraphX(),X.getGraphX(),H),X.consume(),this.graphHandler.reset()}null!=ca&&(this.selectionCellsHandler.isHandlerActive(ca)?this.isCellSelected(ba.cell)||(this.selectionCellsHandler.handlers.put(ba.cell,ca),this.selectCellForEvent(ba.cell,X.getEvent())):this.isCellSelected(ba.cell)||ca.destroy());u=!1;g=m=q=k=null}}else if(ba=X.getState(),null!=ba&&this.isCellEditable(ba.cell)){O=this.model.getParent(ba.cell);
ca=null;if(this.model.isEdge(ba.cell)&&!this.isCellSelected(ba.cell)&&!mxEvent.isAltDown(X.getEvent())&&!mxEvent.isShiftDown(X.getEvent())&&!this.isAncestorSelected(ba.cell)&&(this.isSwimlane(O)||this.model.isLayer(O)||this.getCurrentRoot()==O)){if(O=new mxRectangle(X.getGraphX(),X.getGraphY()),O.grow(mxEdgeHandler.prototype.handleImage.width/2),da=ba.absolutePoints,null!=da)null!=ba.text&&null!=ba.text.boundingBox&&mxUtils.contains(ba.text.boundingBox,X.getGraphX(),X.getGraphY())?ca="move":mxUtils.contains(O,
da[0].x,da[0].y)||mxUtils.contains(O,da[da.length-1].x,da[da.length-1].y)?ca="pointer":(ea=this.view.getEdgeStyle(ba),ea==mxEdgeStyle.EntityRelation||null==ba.visibleSourceState&&null==ba.visibleTargetState||(ca="crosshair",ea!=mxEdgeStyle.SegmentConnector&&ea!=mxEdgeStyle.OrthConnector))||(X=mxUtils.findNearestSegment(ba,X.getGraphX(),X.getGraphY()),X<da.length-1&&0<=X&&(ca=0==Math.round(da[X].x-da[X+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(X.getEvent())){da=mxShape.prototype.svgStrokeTolerance/
2;O=new mxRectangle(X.getGraphX(),X.getGraphY());O.grow(da);if(this.isTableCell(ba.cell)&&this.isCellMovable(ba.cell)&&(X=this.model.getParent(ba.cell),da=this.model.getParent(X),!this.isCellSelected(da)))if(mxUtils.intersects(O,new mxRectangle(ba.x,ba.y-2,ba.width,4))&&this.model.getChildAt(da,0)!=X||mxUtils.intersects(O,new mxRectangle(ba.x,ba.y+ba.height-2,ba.width,4)))ca="row-resize";else if(mxUtils.intersects(O,new mxRectangle(ba.x-2,ba.y,4,ba.height))&&this.model.getChildAt(X,0)!=ba.cell||mxUtils.intersects(O,
new mxRectangle(ba.x+ba.width-2,ba.y,4,ba.height)))ca="col-resize";for(X=ba;null==ca&&null!=X&&(this.isTableCell(X.cell)||this.isTableRow(X.cell)||this.isTable(X.cell));)this.isSwimlane(X.cell)&&this.isCellMovable(X.cell)&&(da=this.getActualStartSize(X.cell),H=this.view.scale,(0<da.x||0<da.width)&&mxUtils.intersects(O,new mxRectangle(X.x+(da.x-da.width-1)*H+(0==da.x?X.width*H:0),X.y,1,X.height))?ca="col-resize":(0<da.y||0<da.height)&&mxUtils.intersects(O,new mxRectangle(X.x,X.y+(da.y-da.height-1)*
-H+(0==da.y?X.height:0),X.width,1))&&(ca="row-resize")),X=this.view.getState(this.model.getParent(X.cell))}null!=ca&&ba.setCursor(ca)}}}),mouseUp:mxUtils.bind(this,function(O,X){k=g=m=p=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var z=document.createElement("div");this.cellRenderer.getLabelValue=function(O){var X=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);O.view.graph.isHtmlLabel(O.cell)&&("0"==mxUtils.getValue(O.style,"html","0")?X=mxUtils.htmlEntities(X,!1):(O.lastLabelValue!=
+H+(0==da.y?X.height:0),X.width,1))&&(ca="row-resize")),X=this.view.getState(this.model.getParent(X.cell))}null!=ca&&ba.setCursor(ca)}}}),mouseUp:mxUtils.bind(this,function(O,X){k=g=m=q=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var z=document.createElement("div");this.cellRenderer.getLabelValue=function(O){var X=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);O.view.graph.isHtmlLabel(O.cell)&&("0"==mxUtils.getValue(O.style,"html","0")?X=mxUtils.htmlEntities(X,!1):(O.lastLabelValue!=
X&&(O.lastLabelValue=X,O.lastSanitizedLabelValue=Graph.sanitizeHtml(X),z.innerHTML=O.lastSanitizedLabelValue,Graph.addLightDarkColors(z,null,"simple"==O.view.graph.getAdaptiveColors())&&(O.lastSanitizedLabelValue=z.innerHTML)),X=O.lastSanitizedLabelValue));return X};if("undefined"!==typeof mxVertexHandler){this.setConnectable(!0);this.setDropEnabled(!0);this.setPanning(!0);this.setTooltips(!0);this.setAllowLoops(!0);this.allowAutoPanning=!0;this.constrainChildren=this.resetEdgesOnConnect=!1;this.constrainRelativeChildren=
!0;this.graphHandler.scrollOnMove=!1;this.graphHandler.scaleGrid=!0;this.connectionHandler.setCreateTarget(!1);this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(O,X){return!1};this.alternateEdgeStyle="vertical";null==f&&this.loadStylesheet();var C=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var O=C.apply(this,arguments);if(this.graph.pageVisible){var X=[],ba=this.graph.pageFormat,da=this.graph.pageScale,ca=ba.width*da;ba=ba.height*
da;da=this.graph.view.translate;for(var H=this.graph.view.scale,ea=this.graph.getPageLayout(),ra=0;ra<ea.width;ra++)X.push(new mxRectangle(((ea.x+ra)*ca+da.x)*H,(ea.y*ba+da.y)*H,ca*H,ba*H));for(ra=1;ra<ea.height;ra++)X.push(new mxRectangle((ea.x*ca+da.x)*H,((ea.y+ra)*ba+da.y)*H,ca*H,ba*H));O=X.concat(O)}return O};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(O,X){return null==O.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=
@@ -2571,13 +2571,13 @@ Graph.createSvgImage=function(a,b,e,f,h){e=unescape(encodeURIComponent(Graph.svg
Graph.getSvgFromDataUri=function(a){return null!=a&&"data:image/svg"==a.substring(0,14)?Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+decodeURIComponent(escape(atob(a.substring(a.indexOf(",")+1)))):null};
Graph.createSvgNode=function(a,b,e,f,h){var d=mxUtils.createXmlDocument(),g=null!=d.createElementNS?d.createElementNS(mxConstants.NS_SVG,"svg"):d.createElement("svg");null!=h&&g.setAttribute("style","background: "+h.light+"; background-color: "+h.cssText+";");null==d.createElementNS?(g.setAttribute("xmlns",mxConstants.NS_SVG),g.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):g.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);g.setAttribute("version","1.1");g.setAttribute("width",
e+"px");g.setAttribute("height",f+"px");g.setAttribute("viewBox",a+" "+b+" "+e+" "+f);d.appendChild(g);return g};
-Graph.htmlToPng=function(a,b,e,f,h,d){h=null!=h?h:"";d=null!=d?d:Editor.htmlRasterScale;var g=document.createElement("canvas");g.width=b*d;g.height=e*d;var m=document.createElement("img");m.onload=mxUtils.bind(this,function(){try{var k=g.getContext("2d");k.scale(d,d);k.drawImage(m,0,0);f(g.toDataURL())}catch(u){f(null)}});var p=mxUtils.createXmlDocument();p=null!=p.createElementNS?p.createElementNS(mxConstants.NS_SVG,"svg"):p.createElement("svg");a=(new mxSvgCanvas2D(p)).convertHtml(a);m.onerror=
+Graph.htmlToPng=function(a,b,e,f,h,d){h=null!=h?h:"";d=null!=d?d:Editor.htmlRasterScale;var g=document.createElement("canvas");g.width=b*d;g.height=e*d;var m=document.createElement("img");m.onload=mxUtils.bind(this,function(){try{var k=g.getContext("2d");k.scale(d,d);k.drawImage(m,0,0);f(g.toDataURL())}catch(u){f(null)}});var q=mxUtils.createXmlDocument();q=null!=q.createElementNS?q.createElementNS(mxConstants.NS_SVG,"svg"):q.createElement("svg");a=(new mxSvgCanvas2D(q)).convertHtml(a);m.onerror=
function(k){f(null)};m.src="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="'+b+'" height="'+e+'">'+(""!=h?'<defs xmlns="http://www.w3.org/2000/svg"><style type="text/css">'+h+"</style></defs>":"")+'<foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml">'+a+"</div></foreignObject></svg>")};
-Graph.addLightDarkColors=function(a,b,e,f){function h(z,C,E){return null!=f?f(z,C,E):mxUtils.isValidColor(E)?(null==g&&null!=b&&(g={}),null!=g&&(g[C]=z.style.getPropertyValue(C)),E=mxUtils.getLightDarkColor(E,null,null,e),z.style.setProperty(C,E.cssText),!0):!1}for(var d=a.getElementsByTagName("*"),g=null,m=!1,p=0;p<d.length;p++)if(d[p]!=a&&null!=d[p].style){g=null;for(var k=0;k<d[p].style.length;k++){var u=d[p].style.item(k),w=d[p].style.getPropertyValue(u);m=h(d[p],u,w)||m}"FONT"==d[p].nodeName&&
-""==d[p].style.getPropertyValue("color")&&(w=d[p].getAttribute("color"),m=h(d[p],"color",w)||m);null!=b&&null!=g&&d[p].setAttribute(b,JSON.stringify(g))}return m};Graph.removeLightDarkColors=function(a,b){a=a.getElementsByTagName("*");for(var e=!1,f=0;f<a.length;f++)try{var h=a[f].getAttribute(b);if(null!=h){a[f].removeAttribute(b);var d=JSON.parse(h),g;for(g in d){var m=d[g];""==m?(a[f].style[g]=null,""==a[f].getAttribute("style")&&a[f].removeAttribute("style")):a[f].style[g]=m;e=!0}}}catch(p){}return e};
+Graph.addLightDarkColors=function(a,b,e,f){function h(z,C,E){return null!=f?f(z,C,E):mxUtils.isValidColor(E)?(null==g&&null!=b&&(g={}),null!=g&&(g[C]=z.style.getPropertyValue(C)),E=mxUtils.getLightDarkColor(E,null,null,e),z.style.setProperty(C,E.cssText),!0):!1}for(var d=a.getElementsByTagName("*"),g=null,m=!1,q=0;q<d.length;q++)if(d[q]!=a&&null!=d[q].style){g=null;for(var k=0;k<d[q].style.length;k++){var u=d[q].style.item(k),w=d[q].style.getPropertyValue(u);m=h(d[q],u,w)||m}"FONT"==d[q].nodeName&&
+""==d[q].style.getPropertyValue("color")&&(w=d[q].getAttribute("color"),m=h(d[q],"color",w)||m);null!=b&&null!=g&&d[q].setAttribute(b,JSON.stringify(g))}return m};Graph.removeLightDarkColors=function(a,b){a=a.getElementsByTagName("*");for(var e=!1,f=0;f<a.length;f++)try{var h=a[f].getAttribute(b);if(null!=h){a[f].removeAttribute(b);var d=JSON.parse(h),g;for(g in d){var m=d[g];""==m?(a[f].style[g]=null,""==a[f].getAttribute("style")&&a[f].removeAttribute("style")):a[f].style[g]=m;e=!0}}}catch(q){}return e};
Graph.getGivenColor=function(a,b){var e=null;if(a.nodeType==mxConstants.NODETYPE_ELEMENT){try{var f=a.getAttribute(Graph.backupStyleAttribute);if(null!=f){var h=JSON.parse(f);null!=h&&null!=h[b]&&("color"==b&&"FONT"==a.nodeName&&""==h[b]&&null!=a.getAttribute("color")?e=a.getAttribute("color"):""!=h[b]&&(e=h[b]))}}catch(d){}null==e&&""!=a.style[b]&&(e=a.style[b])}return e};
-Graph.setTextColor=function(a,b,e){for(var f=e?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,h=e?"color":"background-color",d=a.getElementsByTagName("*"),g=[],m=0;m<d.length;m++)g.push({node:d[m],value:d[m].style[h]});document.execCommand(e?"forecolor":"backcolor",!1,f);a=a.getElementsByTagName("*");for(m=0;m<a.length;m++){if(m<g.length&&g[m].node==a[m]&&g[m].value!=a[m].style[h]&&""==a[m].style[h])try{if(d=a[m].getAttribute(Graph.backupStyleAttribute),null!=d){var p=JSON.parse(d);p[h]=
-"";a[m].setAttribute(Graph.backupStyleAttribute,JSON.stringify(p))}}catch(k){}if(e&&a[m].getAttribute("color")==f||a[m].style[h]==f){e&&a[m].getAttribute("color")==f&&a[m].removeAttribute("color");a[m].style[h]=b!=mxConstants.NONE?mxUtils.getLightDarkColor(b).cssText:null;try{d=a[m].getAttribute(Graph.backupStyleAttribute),p=null!=d?JSON.parse(d):{},p[h]=b!=mxConstants.NONE?b:"",a[m].setAttribute(Graph.backupStyleAttribute,JSON.stringify(p))}catch(k){}if(e&&mxClient.IS_FF){b=a[m];e=b.firstChild;if(null!=
+Graph.setTextColor=function(a,b,e){for(var f=e?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,h=e?"color":"background-color",d=a.getElementsByTagName("*"),g=[],m=0;m<d.length;m++)g.push({node:d[m],value:d[m].style[h]});document.execCommand(e?"forecolor":"backcolor",!1,f);a=a.getElementsByTagName("*");for(m=0;m<a.length;m++){if(m<g.length&&g[m].node==a[m]&&g[m].value!=a[m].style[h]&&""==a[m].style[h])try{if(d=a[m].getAttribute(Graph.backupStyleAttribute),null!=d){var q=JSON.parse(d);q[h]=
+"";a[m].setAttribute(Graph.backupStyleAttribute,JSON.stringify(q))}}catch(k){}if(e&&a[m].getAttribute("color")==f||a[m].style[h]==f){e&&a[m].getAttribute("color")==f&&a[m].removeAttribute("color");a[m].style[h]=b!=mxConstants.NONE?mxUtils.getLightDarkColor(b).cssText:null;try{d=a[m].getAttribute(Graph.backupStyleAttribute),q=null!=d?JSON.parse(d):{},q[h]=b!=mxConstants.NONE?b:"",a[m].setAttribute(Graph.backupStyleAttribute,JSON.stringify(q))}catch(k){}if(e&&mxClient.IS_FF){b=a[m];e=b.firstChild;if(null!=
e&&"A"==e.nodeName&&null==e.nextSibling&&null!=e.firstChild){b.parentNode.insertBefore(e,b);for(f=e.firstChild;null!=f;)h=f.nextSibling,b.appendChild(f),f=h;e.appendChild(b)}break}}}};Graph.zapGremlins=function(a){return mxUtils.zapGremlins(a)};Graph.stringToBytes=function(a){for(var b=Array(a.length),e=0;e<a.length;e++)b[e]=a.charCodeAt(e);return b};Graph.bytesToString=function(a){for(var b=Array(a.length),e=0;e<a.length;e++)b[e]=String.fromCharCode(a[e]);return b.join("")};
Graph.base64EncodeUnicode=function(a){return btoa(encodeURIComponent(a).replace(/%([0-9A-F]{2})/g,function(b,e){return String.fromCharCode(parseInt(e,16))}))};Graph.base64DecodeUnicode=function(a){return decodeURIComponent(Array.prototype.map.call(atob(a),function(b){return"%"+("00"+b.charCodeAt(0).toString(16)).slice(-2)}).join(""))};Graph.compressNode=function(a,b){a=mxUtils.getXml(a);return Graph.compress(b?a:Graph.zapGremlins(a))};
Graph.arrayBufferToString=function(a){var b="";a=new Uint8Array(a);for(var e=a.byteLength,f=0;f<e;f++)b+=String.fromCharCode(a[f]);return b};Graph.stringToArrayBuffer=function(a){return Uint8Array.from(a,function(b){return b.charCodeAt(0)})};
@@ -2590,9 +2590,9 @@ Graph.exploreFromCell=function(a,b,e){pageSize=null!=e&&null!=e.pageSize?e.pageS
" ("+Math.ceil((w.startIndex||0)/pageSize)+"/"+Math.ceil(G.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");Y.referenceCell=E;Y.startIndex=Math.max(0,(w.startIndex||0)-pageSize);N.splice(0,0,Y)}if(G.length>(w.startIndex||0)+pageSize){var P=u.createVertex(null,null,mxResources.get("nextPage")+" ("+(Math.ceil((w.startIndex||0)/pageSize)+2)+"/"+Math.ceil(G.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");P.referenceCell=
E;P.startIndex=(w.startIndex||0)+pageSize;N.splice(0,0,P)}for(var T in u.getModel().cells){var K=u.getModel().getCell(T);K!=u.rootCell&&!u.getModel().isAncestor(u.rootCell,K)&&u.getModel().isVertex(K)&&u.removeCells([K])}u.addCells(N);var V=u.getModel().getGeometry(u.rootCell);null!=V&&(V=V.clone(),V.x=z-V.width/2,V.y=C-V.height/3,u.getModel().setGeometry(u.rootCell,V));w=[];for(T in u.getModel().cells)K=u.getModel().getCell(T),K!=u.rootCell&&u.getModel().isVertex(K)&&u.getModel().getParent(K)==u.getDefaultParent()&&
(w.push(K),V=u.getModel().getGeometry(K),null!=V&&(V.x=z-V.width/2,V.y=C-V.height/2));var Z=w.length,ia=2*Math.PI/Z,oa=Math.max(minSize,Math.min(u.container.scrollWidth/2.5-80,u.container.scrollHeight/2.5-80));for(z=0;z<Z;z++)V=u.getModel().getGeometry(w[z]),null!=V&&(V=V.clone(),V.x+=oa*Math.sin(z*ia),V.y+=oa*Math.cos(z*ia),u.getModel().setGeometry(w[z],V))}finally{u.getModel().endUpdate()}}}var g=document.createElement("div");g.style.position="absolute";g.style.display="block";g.style.background=
-Editor.isDarkMode()?Editor.darkColor:"#ffffff";g.style.width="100%";g.style.height="100%";g.style.left="0px";g.style.top="0px";g.style.zIndex=2;var m=document.createElement("img");m.setAttribute("src",Editor.closeBlackImage);m.style.position="absolute";m.style.cursor="pointer";m.style.right="10px";m.style.top="10px";g.appendChild(m);var p=document.createElement("div");p.style.position="absolute";p.style.cursor="pointer";p.style.right="38px";p.style.top="14px";p.style.textAlign="right";p.style.verticalAlign=
-"top";mxUtils.write(p,mxResources.get("close"));g.appendChild(p);document.body.appendChild(g);var k=function(u){27==u.keyCode&&m.click()};mxEvent.addListener(document,"keydown",k);(function(u){if(mxClient.isBrowserSupported()){var w=new Graph(u);w.keepEdgesInBackground=!0;w.isCellResizable=function(){return!1};w.isCellRotatable=function(){return!1};w.getCursorForCell=function(J){return this.model.isVertex(J)?"pointer":null};w.getFoldingImage=function(){return null};var z=function(){mxEvent.removeListener(document,
-"keydown",k);u.parentNode.removeChild(u);f.scrollCellToVisible(h)};mxEvent.addListener(m,"click",z);mxEvent.addListener(p,"click",z);w.setEnabled(!1);var C=w.click;w.click=function(J){var L=J.getCell(),Q=null!=L?null!=L.referenceCell?L.referenceCell:L:null;null!=L&&w.rootCell!=L&&0<w.getEdges(Q).length?d(w,L):C.apply(this,arguments)};z=w.container.scrollWidth/2;var E=w.container.scrollHeight/3;w.model.beginUpdate();var D=w.importCells([h])[0];D.sourceCellId=h.id;D.geometry.x=z-D.geometry.width/2;
+Editor.isDarkMode()?Editor.darkColor:"#ffffff";g.style.width="100%";g.style.height="100%";g.style.left="0px";g.style.top="0px";g.style.zIndex=2;var m=document.createElement("img");m.setAttribute("src",Editor.closeBlackImage);m.style.position="absolute";m.style.cursor="pointer";m.style.right="10px";m.style.top="10px";g.appendChild(m);var q=document.createElement("div");q.style.position="absolute";q.style.cursor="pointer";q.style.right="38px";q.style.top="14px";q.style.textAlign="right";q.style.verticalAlign=
+"top";mxUtils.write(q,mxResources.get("close"));g.appendChild(q);document.body.appendChild(g);var k=function(u){27==u.keyCode&&m.click()};mxEvent.addListener(document,"keydown",k);(function(u){if(mxClient.isBrowserSupported()){var w=new Graph(u);w.keepEdgesInBackground=!0;w.isCellResizable=function(){return!1};w.isCellRotatable=function(){return!1};w.getCursorForCell=function(J){return this.model.isVertex(J)?"pointer":null};w.getFoldingImage=function(){return null};var z=function(){mxEvent.removeListener(document,
+"keydown",k);u.parentNode.removeChild(u);f.scrollCellToVisible(h)};mxEvent.addListener(m,"click",z);mxEvent.addListener(q,"click",z);w.setEnabled(!1);var C=w.click;w.click=function(J){var L=J.getCell(),Q=null!=L?null!=L.referenceCell?L.referenceCell:L:null;null!=L&&w.rootCell!=L&&0<w.getEdges(Q).length?d(w,L):C.apply(this,arguments)};z=w.container.scrollWidth/2;var E=w.container.scrollHeight/3;w.model.beginUpdate();var D=w.importCells([h])[0];D.sourceCellId=h.id;D.geometry.x=z-D.geometry.width/2;
D.geometry.y=E-D.geometry.height/2;w.model.endUpdate();var G=!1;w.getModel().addListener(mxEvent.CHANGE,function(J,L){G||(J=L.getProperty("edit").changes,mxText.prototype.enableBoundingBox=!1,w.labelsVisible=!1,G=!0,mxEffects.animateChanges(w,J,function(){var Q=new mxParallelEdgeLayout(w);Q.spacing=60;var N=Q.layout;Q.layout=function(U){Q.spacing=Math.min(60,Math.max(30,60-5*U.length));N.apply(this,arguments)};Q.execute(w.getDefaultParent());mxText.prototype.enableBoundingBox=!0;w.labelsVisible=!0;
w.tooltipHandler.hide();w.refresh();G=!1}))});d(w,D)}else mxUtils.error("Browser is not supported!",200,!1)})(g)})(a,b)};Graph.removeKeys=function(a,b){for(var e in a)b(e)&&delete a[e]};Graph.setTransitionForNodes=function(a,b){for(var e=0;e<a.length;e++)mxUtils.setPrefixedStyle(a[e].style,"transition",b)};Graph.setOpacityForNodes=function(a,b){for(var e=0;e<a.length;e++)a[e].style.opacity=b};
Graph.removePasteFormatting=function(a,b){for(;null!=a;){null!=a.firstChild&&Graph.removePasteFormatting(a.firstChild,!0);var e=a.nextSibling;if(a.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=a.style){"#000000"==a.style.color&&(a.style.color="");if("SPAN"==a.nodeName&&"Apple-tab-span"==a.className){var f=Graph.createTabNode(4);a.parentNode.replaceChild(f,a);a=f}if("P"==a.nodeName&&"p1"==a.className){for(;null!=a.firstChild;)a.parentNode.insertBefore(a.firstChild,a);null!=e&&"P"==e.nodeName&&"p1"==
@@ -2600,7 +2600,7 @@ e.className&&a.parentNode.insertBefore(a.ownerDocument.createElement("br"),a);a.
Graph.sanitizeLink=function(a){if(null==a)return null;var b=document.createElement("a");b.setAttribute("href",a);Graph.sanitizeNode(b);return b.getAttribute("href")};Graph.sanitizeNode=function(a){return Graph.domPurify(a,!0)};DOMPurify.addHook("afterSanitizeAttributes",function(a){"use"==a.nodeName&&(null!=a.getAttribute("xlink:href")&&!a.getAttribute("xlink:href").startsWith("#")||null!=a.getAttribute("href")&&!a.getAttribute("href").startsWith("#"))&&a.remove()});
Graph.domPurify=function(a,b){window.DOM_PURIFY_CONFIG.IN_PLACE=b;return DOMPurify.sanitize(a,window.DOM_PURIFY_CONFIG)};
Graph.clipSvgDataUri=function(a){if(null!=a&&"data:image/svg+xml;base64,"==a.substring(0,26))try{var b=document.createElement("div");b.style.position="absolute";b.style.visibility="hidden";var e=decodeURIComponent(escape(atob(a.substring(26)))),f=e.indexOf("<svg");if(0<=f){b.innerHTML=Graph.sanitizeHtml(e.substring(f));var h=b.getElementsByTagName("svg");if(0<h.length){document.body.appendChild(b);try{f=e=1;var d=h[0].getAttribute("width"),g=h[0].getAttribute("height");d=null!=d&&"%"!=d.charAt(d.length-
-1)?parseFloat(d):NaN;g=null!=g&&"%"!=g.charAt(g.length-1)?parseFloat(g):NaN;var m=h[0].getAttribute("viewBox");if(null!=m&&!isNaN(d)&&!isNaN(g)){var p=m.split(" ");4<=m.length&&(e=parseFloat(p[2])/d,f=parseFloat(p[3])/g,new mxRectangle(parseFloat(p[0]),parseFloat(p[1]),parseFloat(p[2]),parseFloat(p[3])))}var k=h[0].getBBox();if(0<k.width&&0<k.height){d=0;var u=h[0].querySelectorAll("[stroke-width]");for(g=0;g<u.length;g++)d=Math.max(d,parseFloat(u[g].getAttribute("stroke-width")));k=new mxRectangle(k.x,
+1)?parseFloat(d):NaN;g=null!=g&&"%"!=g.charAt(g.length-1)?parseFloat(g):NaN;var m=h[0].getAttribute("viewBox");if(null!=m&&!isNaN(d)&&!isNaN(g)){var q=m.split(" ");4<=m.length&&(e=parseFloat(q[2])/d,f=parseFloat(q[3])/g,new mxRectangle(parseFloat(q[0]),parseFloat(q[1]),parseFloat(q[2]),parseFloat(q[3])))}var k=h[0].getBBox();if(0<k.width&&0<k.height){d=0;var u=h[0].querySelectorAll("[stroke-width]");for(g=0;g<u.length;g++)d=Math.max(d,parseFloat(u[g].getAttribute("stroke-width")));k=new mxRectangle(k.x,
k.y,k.width,k.height);k.grow(d/2);b.getElementsByTagName("svg")[0].setAttribute("viewBox",k.x+" "+k.y+" "+k.width+" "+k.height);b.getElementsByTagName("svg")[0].setAttribute("width",k.width/e);b.getElementsByTagName("svg")[0].setAttribute("height",k.height/f)}}catch(w){}finally{document.body.removeChild(b)}a=Editor.createSvgDataUri(mxUtils.getXml(h[0]))}}}catch(w){}return a};
Graph.createRemoveIcon=function(a,b){var e=document.createElement("img");e.setAttribute("src",Dialog.prototype.clearImage);e.setAttribute("title",a);e.setAttribute("width","13");e.setAttribute("height","10");e.style.marginLeft="4px";e.style.marginBottom="-1px";e.style.cursor="pointer";mxEvent.addListener(e,"click",b);return e};Graph.isPageLink=function(a){return null!=a&&"data:page/id,"==a.substring(0,13)};
Graph.rewritePageLinks=function(a,b){function e(h,d){var g=h.getAttribute(d);if(null!=g){Graph.isPageLink(g)&&(g="#"+g.substring(g.indexOf(":")+1));var m=d;b&&"xlink:href"==d&&(h.removeAttribute(d),m="href");h.setAttribute(m,g)}}a=a.getElementsByTagName("a");if(null!=a)for(var f=0;f<a.length;f++)e(a[f],"href"),e(a[f],"xlink:href")};Graph.isLink=function(a){return null!=a&&a.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g)};
@@ -2609,33 +2609,33 @@ Graph.prototype.diagramBackgroundColor="#f0f0f0";Graph.prototype.enableDiagramBa
Graph.prototype.scrollTileSize=new mxRectangle(0,0,400,400);Graph.prototype.transparentBackground=!0;Graph.prototype.selectParentAfterDelete=!1;Graph.prototype.defaultEdgeLength=80;Graph.prototype.immediateHandling=!0;Graph.prototype.connectionArrowsEnabled=!0;Graph.prototype.placeholderPattern=RegExp("%(date{.*}|[^%^{^}^ ^\"^ '^=^;]+)%","g");Graph.prototype.absoluteUrlPattern=RegExp("^(?:[a-z]+:)?//","i");Graph.prototype.defaultThemeName="default";Graph.prototype.defaultThemes={};
Graph.prototype.baseUrl=null!=urlParams.base?mxUtils.removeJavascriptProtocol(decodeURIComponent(urlParams.base)):(window!=window.top?document.referrer:document.location.toString()).split("#")[0];Graph.prototype.editAfterInsert=!1;Graph.prototype.builtInProperties=["label","tooltip","placeholders","placeholder"];Graph.prototype.standalone=!1;Graph.prototype.enableFlowAnimation=!1;Graph.prototype.roundableShapes="label rectangle internalStorage corner parallelogram swimlane triangle trapezoid ext step tee process link rhombus offPageConnector loopLimit hexagon manualInput card curlyBracket singleArrow callout doubleArrow flexArrow umlLifeline".split(" ");
Graph.prototype.vertexFontSize=null;Graph.prototype.edgeFontSize=null;Graph.prototype.adaptiveColors="auto";
-Graph.prototype.init=function(a){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(e,f){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var h=e.view.graph.tolerance,d=!0,g=null,m=mxUtils.bind(this,function(u){d=!0;g=new mxPoint(mxEvent.getClientX(u),mxEvent.getClientY(u))}),p=mxUtils.bind(this,function(u){d=d&&null!=g&&Math.abs(g.x-mxEvent.getClientX(u))<h&&Math.abs(g.y-mxEvent.getClientY(u))<h}),k=mxUtils.bind(this,function(u){if(d)for(var w=mxEvent.getSource(u);null!=
-w&&w!=f.node;){if("a"==w.nodeName.toLowerCase()){e.view.graph.labelLinkClicked(e,w,u);break}w=w.parentNode}});mxEvent.addGestureListeners(f.node,m,p,k);mxEvent.addListener(f.node,"click",function(u){mxEvent.consume(u)})};if(null!=this.tooltipHandler){var b=this.tooltipHandler.init;this.tooltipHandler.init=function(){b.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(e){var f=mxEvent.getSource(e);"A"==f.nodeName&&(f=f.getAttribute("href"),null!=
+Graph.prototype.init=function(a){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(e,f){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var h=e.view.graph.tolerance,d=!0,g=null,m=mxUtils.bind(this,function(u){d=!0;g=new mxPoint(mxEvent.getClientX(u),mxEvent.getClientY(u))}),q=mxUtils.bind(this,function(u){d=d&&null!=g&&Math.abs(g.x-mxEvent.getClientX(u))<h&&Math.abs(g.y-mxEvent.getClientY(u))<h}),k=mxUtils.bind(this,function(u){if(d)for(var w=mxEvent.getSource(u);null!=
+w&&w!=f.node;){if("a"==w.nodeName.toLowerCase()){e.view.graph.labelLinkClicked(e,w,u);break}w=w.parentNode}});mxEvent.addGestureListeners(f.node,m,q,k);mxEvent.addListener(f.node,"click",function(u){mxEvent.consume(u)})};if(null!=this.tooltipHandler){var b=this.tooltipHandler.init;this.tooltipHandler.init=function(){b.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(e){var f=mxEvent.getSource(e);"A"==f.nodeName&&(f=f.getAttribute("href"),null!=
f&&this.graph.isCustomLink(f)&&(mxEvent.isTouchEvent(e)||!mxEvent.isPopupTrigger(e))&&this.graph.customLinkClicked(f)&&mxEvent.consume(e))}))}}this.initLayoutManager()};
(function(){Graph.prototype.useCssTransforms=!1;Graph.prototype.currentScale=1;Graph.prototype.currentTranslate=new mxPoint(0,0);Graph.prototype.pasteEdgeStyle=!1;Graph.prototype.isFillState=function(g){return!this.isSpecialColor(g.style[mxConstants.STYLE_FILLCOLOR])&&"1"!=mxUtils.getValue(g.style,"lineShape",null)&&(this.model.isVertex(g.cell)||"arrow"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)||"wire"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)||"filledEdge"==mxUtils.getValue(g.style,
-mxConstants.STYLE_SHAPE,null)||"flexArrow"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)||"mxgraph.arrows2.wedgeArrow"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isGradientState=function(g){return this.isFillState(g)&&"wire"!=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)};Graph.prototype.isStrokeState=function(g){return!0};Graph.prototype.getTextColor=function(g,m){for(var p=g==this.cellEditor.textarea&&m?"default":Graph.getGivenColor(g,m?"color":
-"background-color");null==p&&null!=g&&g!=this.cellEditor.textarea.parentNode;)p=g==this.cellEditor.textarea&&m?"default":Graph.getGivenColor(g,"color"),g=g.parentNode;if("rgba(0, 0, 0, 0)"==p||"transparent"==p)p=mxConstants.NONE;return p};Graph.prototype.isSpecialColor=function(g){return 0<=mxUtils.indexOf([mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_FILLCOLOR,"inherit","swimlane","indicated"],g)};Graph.prototype.isGlassState=function(g){g=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null);
-return"label"==g||"rectangle"==g||"internalStorage"==g||"ext"==g||"umlLifeline"==g||"swimlane"==g||"process"==g};Graph.prototype.isRoundedState=function(g){return null!=g.shape?g.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isLineJumpState=function(g){var m=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null);return!mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,!1)&&("connector"==m||"filledEdge"==m||"wire"==
-m)};Graph.prototype.isAutoSizeState=function(g){return"1"==mxUtils.getValue(g.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(g){return null!=mxUtils.getValue(g.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(g){return!0};Graph.prototype.getVerticesAndEdges=function(g,m){g=null!=g?g:!0;m=null!=m?m:!0;var p=this.model;return p.filterDescendants(function(k){return g&&p.isVertex(k)||m&&p.isEdge(k)},p.getRoot())};Graph.prototype.applyNewEdgeStyle=
-function(g,m,p){g=this.getCellStyle(g).newEdgeStyle;if(null!=g){this.model.beginUpdate();try{var k=JSON.parse(g),u;for(u in k)this.setCellStyles(u,k[u],m),"edgeStyle"==u&&"elbowEdgeStyle"==k[u]&&null!=p&&this.setCellStyles("elbow",p==mxConstants.DIRECTION_SOUTH||p==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",m)}finally{this.model.endUpdate()}}};Graph.prototype.getCommonStyle=function(g){for(var m={},p=0;p<g.length;p++){var k=this.view.getState(g[p]);null!=k&&this.mergeStyle(k.style,m,0==p)}return m};
-Graph.prototype.mergeStyle=function(g,m,p){if(null!=g){var k={},u;for(u in g){var w=g[u];null!=w&&(k[u]=!0,null==m[u]&&p?m[u]=w:m[u]!=w&&delete m[u])}for(u in m)k[u]||delete m[u]}};Graph.prototype.getStartEditingCell=function(g,m){m=this.getCellStyle(g);m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,0));this.isTable(g)&&(!this.isSwimlane(g)||0==m)&&""==this.getLabel(g)&&0<this.model.getChildCount(g)&&(g=this.model.getChildAt(g,0),m=this.getCellStyle(g),m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,
-0)));if(this.isTableRow(g)&&(!this.isSwimlane(g)||0==m)&&""==this.getLabel(g)&&0<this.model.getChildCount(g))for(m=0;m<this.model.getChildCount(g);m++){var p=this.model.getChildAt(g,m);if(this.isCellEditable(p)){g=p;break}}return g};Graph.prototype.copyStyle=function(g){return this.getCellStyle(g,!1)};Graph.prototype.pasteStyle=function(g,m,p,k){null!=g&&(k||(p=null!=p?p:Graph.cellStyles,Graph.removeKeys(g,function(u){return 0>mxUtils.indexOf(p,u)})),this.updateCellStyles(g,m))};Graph.prototype.copyCellStyles=
-function(g,m,p,k,u,w,z){var C=!1,E=!1;if(0<g.length)for(var D=0;D<g.length&&(C=this.getModel().isVertex(g[D])||C,!(E=this.getModel().isEdge(g[D])||E)||!C);D++);else E=C=!0;C=C&&!w;E=E&&!z;for(D=0;D<m.length;D++)if(g=0<=mxUtils.indexOf(Graph.textStyles,m[D]),"strokeColor"!=m[D]||null!=p[D]&&"none"!=p[D])if(0<=mxUtils.indexOf(Graph.cellStyles,m[D])||"shape"==m[D])if("shape"!=m[D]&&(C||g)&&(null==p[D]?delete k[m[D]]:k[m[D]]=p[D]),E||g)null==p[D]?delete u[m[D]]:u[m[D]]=p[D]};Graph.prototype.includeDescendants=
-function(g){for(var m=[],p=0;p<g.length;p++)m=m.concat(this.model.getDescendants(g[p]));return m};Graph.prototype.pasteCellStyles=function(g,m,p,k,u){m=null!=m?m:this.currentVertexStyle;p=null!=p?p:this.currentEdgeStyle;u=null!=u?u:this.pasteEdgeStyle;this.model.beginUpdate();try{for(var w=0;w<g.length;w++){var z=g[w],C=this.model.getStyle(z),E=!1;null!=z.style&&(pairs=z.style.split(";"),E=E||0<=mxUtils.indexOf(pairs,"text"));if(E)var D=Graph.textStyles;else if(D=Graph.cellStyles.slice(),!k)for(var G=
-null!=C?C.split(";"):[],J=0;J<G.length;J++){var L=G[J],Q=L.indexOf("=");if(0<=Q){var N=L.substring(0,Q),U=mxUtils.indexOf(D,N);0<=U&&D.splice(U,1);for(E=0;E<Graph.cellStyleGroups.length;E++){var Y=Graph.cellStyleGroups[E];if(0<=mxUtils.indexOf(Y,N))for(var P=0;P<Y.length;P++){var T=mxUtils.indexOf(D,Y[P]);0<=T&&D.splice(T,1)}}}}var K=this.model.isEdge(z);E=K?p:m;for(J=0;J<D.length;J++){N=D[J];var V=E[N];null!=V&&("edgeStyle"!=N||u)&&(K||!K&&0>mxUtils.indexOf(Graph.edgeStyles,N))&&(C=mxUtils.setStyle(C,
-N,V),"fontFamily"==N&&null==E.fontSource&&(C=mxUtils.setStyle(C,"fontSource",null)),K&&"rounded"==N&&"1"==V&&null==E.curved&&(C=mxUtils.setStyle(C,"curved",null)))}Editor.simpleLabels&&(C=mxUtils.setStyle(mxUtils.setStyle(C,"html",null),"whiteSpace",null));this.model.setStyle(z,C)}}finally{this.model.endUpdate()}return g};Graph.prototype.updateCellStyles=function(g,m){this.model.beginUpdate();try{for(var p=0;p<m.length;p++)if(this.model.isVertex(m[p])||this.model.isEdge(m[p])){var k=this.getCellStyle(m[p],
-!1),u=k[mxConstants.STYLE_PERIMETER],w=!1;for(C in g){var z=g[C];if(k[C]!=z){if(C==mxConstants.STYLE_SHAPE&&"umlLifeline"==k[C]&&"umlLifeline"!=z){w=!0;var C="participant"}this.setCellStyles(C,z,[m[p]])}}w&&this.setCellStyles(mxConstants.STYLE_PERIMETER,u,[m[p]])}}finally{this.model.endUpdate()}};Graph.prototype.isFastZoomEnabled=function(){return"nocss"!=urlParams.zoom&&!mxClient.NO_FO&&!mxClient.IS_EDGE&&!this.useCssTransforms&&(this.isCssTransformsSupported()||mxClient.IS_IOS)};Graph.prototype.isCssTransformsSupported=
-function(){return this.dialect==mxConstants.DIALECT_SVG&&!mxClient.NO_FO&&(!this.lightbox||!mxClient.IS_SF)};Graph.prototype.getCellAt=function(g,m,p,k,u,w){this.useCssTransforms&&(g=g/this.currentScale-this.currentTranslate.x,m=m/this.currentScale-this.currentTranslate.y);return this.getScaledCellAt.apply(this,arguments)};Graph.prototype.getScaledCellAt=function(g,m,p,k,u,w){k=null!=k?k:!0;u=null!=u?u:!0;null==p&&(p=this.getCurrentRoot(),null==p&&(p=this.getModel().getRoot()));if(null!=p)for(var z=
-this.model.getChildCount(p)-1;0<=z;z--){var C=this.model.getChildAt(p,z),E=this.getScaledCellAt(g,m,C,k,u,w);if(null!=E)return E;if(this.isCellVisible(C)&&(u&&this.model.isEdge(C)||k&&this.model.isVertex(C))&&(E=this.view.getState(C),null!=E&&(null==w||!w(E,g,m))&&this.intersects(E,g,m)))return C}return null};Graph.prototype.isRecursiveVertexResize=function(g){return!this.isSwimlane(g.cell)&&0<this.model.getChildCount(g.cell)&&!this.isCellCollapsed(g.cell)&&"1"==mxUtils.getValue(g.style,"recursiveResize",
-"1")&&null==mxUtils.getValue(g.style,"childLayout",null)};Graph.prototype.getAbsoluteParent=function(g){for(var m=this.getCellGeometry(g);null!=m&&m.relative;)g=this.getModel().getParent(g),m=this.getCellGeometry(g);return g};Graph.prototype.isPart=function(g){return"1"==mxUtils.getValue(this.getCurrentCellStyle(g),"part","0")||this.isTableCell(g)||this.isTableRow(g)};Graph.prototype.getCompositeParents=function(g){for(var m=new mxDictionary,p=[],k=0;k<g.length;k++){var u=this.getCompositeParent(g[k]);
-this.isTableCell(u)&&(u=this.graph.model.getParent(u));this.isTableRow(u)&&(u=this.graph.model.getParent(u));null==u||m.get(u)||(m.put(u,!0),p.push(u))}return p};Graph.prototype.getReferenceTerminal=function(g){if(null!=g){var m=this.getCellGeometry(g);null!=m&&m.relative&&(g=this.model.getParent(g))}null!=g&&this.model.isEdge(g)&&(g=this.model.getParent(g));null!=g&&(g=this.getCompositeParent(g));return g};Graph.prototype.getCompositeParent=function(g){for(;this.isPart(g);){var m=this.model.getParent(g);
-if(!this.model.isVertex(m))break;g=m}return g};Graph.prototype.filterSelectionCells=function(g){var m=this.getSelectionCells();if(null!=g){for(var p=[],k=0;k<m.length;k++)g(m[k])||p.push(m[k]);m=p}return m};var a=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(g){if(this.useCssTransforms){var m=this.currentScale,p=this.currentTranslate;g=new mxRectangle((g.x+2*p.x)*m-p.x,(g.y+2*p.y)*m-p.y,g.width*m,g.height*m)}a.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=
-function(g){g=this.strokeWidth;this.graph.useCssTransforms&&(g/=this.graph.currentScale);return g};mxGraphView.prototype.getGraphBounds=function(){var g=this.graphBounds;if(this.graph.useCssTransforms){var m=this.graph.currentTranslate,p=this.graph.currentScale;g=new mxRectangle((g.x+m.x)*p,(g.y+m.y)*p,g.width*p,g.height*p)}return g};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var b=mxGraphView.prototype.validate;
-mxGraphView.prototype.validate=function(g){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y,this.scale=1,this.translate.x=0,this.translate.y=0);b.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,this.translate.y=this.graph.currentTranslate.y)};var e=mxGraph.prototype.getCellsForGroup;
-Graph.prototype.getCellsForGroup=function(g){g=e.apply(this,arguments);for(var m=[],p=0;p<g.length;p++)this.isTableRow(g[p])||this.isTableCell(g[p])||m.push(g[p]);return m};var f=mxGraph.prototype.getCellsForUngroup;Graph.prototype.getCellsForUngroup=function(g){g=f.apply(this,arguments);for(var m=[],p=0;p<g.length;p++)this.isTable(g[p])||this.isTableRow(g[p])||this.isTableCell(g[p])||m.push(g[p]);return m};Graph.prototype.updateCssTransform=function(){var g=this.view.getDrawPane();if(null!=g)if(g=
-g.parentNode,this.useCssTransforms){var m=g.getAttribute("transform");g.setAttribute("transformOrigin","0 0");var p=Math.round(100*this.currentScale)/100;g.setAttribute("transform","scale("+p+","+p+")translate("+Math.round(100*this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");m!=g.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",g.getAttribute("transform"))}else g.removeAttribute("transformOrigin"),g.removeAttribute("transform")};
-var h=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var g=this.graph.useCssTransforms,m=this.scale,p=this.translate;g&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);h.apply(this,arguments);g&&(this.scale=m,this.translate=p)};var d=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(g,m,p){var k=this.useCssTransforms,u=this.view.scale,w=this.view.translate;k&&(this.view.scale=1,this.view.translate=
-new mxPoint(0,0),this.useCssTransforms=!1);d.apply(this,arguments);k&&(this.view.scale=u,this.view.translate=w,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox};Graph.prototype.isViewer=function(){return!1};
+mxConstants.STYLE_SHAPE,null)||"flexArrow"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)||"mxgraph.arrows2.wedgeArrow"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isGradientState=function(g){return this.isFillState(g)&&"wire"!=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)};Graph.prototype.isStrokeState=function(g){return!0};Graph.prototype.getTextColor=function(g,m){for(var q=m?"color":"background-color",k=g==this.cellEditor.textarea&&m?"default":Graph.getGivenColor(g,
+q);null==k&&null!=g&&g!=this.cellEditor.textarea.parentNode;)k=g==this.cellEditor.textarea&&m?"default":Graph.getGivenColor(g,q),g=g.parentNode;if("rgba(0, 0, 0, 0)"==k||"transparent"==k)k=mxConstants.NONE;return k};Graph.prototype.isSpecialColor=function(g){return 0<=mxUtils.indexOf([mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_FILLCOLOR,"inherit","swimlane","indicated"],g)};Graph.prototype.isGlassState=function(g){g=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null);return"label"==g||"rectangle"==
+g||"internalStorage"==g||"ext"==g||"umlLifeline"==g||"swimlane"==g||"process"==g};Graph.prototype.isRoundedState=function(g){return null!=g.shape?g.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isLineJumpState=function(g){var m=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null);return!mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,!1)&&("connector"==m||"filledEdge"==m||"wire"==m)};Graph.prototype.isAutoSizeState=
+function(g){return"1"==mxUtils.getValue(g.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(g){return null!=mxUtils.getValue(g.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(g){return!0};Graph.prototype.getVerticesAndEdges=function(g,m){g=null!=g?g:!0;m=null!=m?m:!0;var q=this.model;return q.filterDescendants(function(k){return g&&q.isVertex(k)||m&&q.isEdge(k)},q.getRoot())};Graph.prototype.applyNewEdgeStyle=function(g,m,q){g=this.getCellStyle(g).newEdgeStyle;
+if(null!=g){this.model.beginUpdate();try{var k=JSON.parse(g),u;for(u in k)this.setCellStyles(u,k[u],m),"edgeStyle"==u&&"elbowEdgeStyle"==k[u]&&null!=q&&this.setCellStyles("elbow",q==mxConstants.DIRECTION_SOUTH||q==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",m)}finally{this.model.endUpdate()}}};Graph.prototype.getCommonStyle=function(g){for(var m={},q=0;q<g.length;q++){var k=this.view.getState(g[q]);null!=k&&this.mergeStyle(k.style,m,0==q)}return m};Graph.prototype.mergeStyle=function(g,m,q){if(null!=
+g){var k={},u;for(u in g){var w=g[u];null!=w&&(k[u]=!0,null==m[u]&&q?m[u]=w:m[u]!=w&&delete m[u])}for(u in m)k[u]||delete m[u]}};Graph.prototype.getStartEditingCell=function(g,m){m=this.getCellStyle(g);m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,0));this.isTable(g)&&(!this.isSwimlane(g)||0==m)&&""==this.getLabel(g)&&0<this.model.getChildCount(g)&&(g=this.model.getChildAt(g,0),m=this.getCellStyle(g),m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,0)));if(this.isTableRow(g)&&
+(!this.isSwimlane(g)||0==m)&&""==this.getLabel(g)&&0<this.model.getChildCount(g))for(m=0;m<this.model.getChildCount(g);m++){var q=this.model.getChildAt(g,m);if(this.isCellEditable(q)){g=q;break}}return g};Graph.prototype.copyStyle=function(g){return this.getCellStyle(g,!1)};Graph.prototype.pasteStyle=function(g,m,q,k){null!=g&&(k||(q=null!=q?q:Graph.cellStyles,Graph.removeKeys(g,function(u){return 0>mxUtils.indexOf(q,u)})),this.updateCellStyles(g,m))};Graph.prototype.copyCellStyles=function(g,m,q,
+k,u,w,z){var C=!1,E=!1;if(0<g.length)for(var D=0;D<g.length&&(C=this.getModel().isVertex(g[D])||C,!(E=this.getModel().isEdge(g[D])||E)||!C);D++);else E=C=!0;C=C&&!w;E=E&&!z;for(D=0;D<m.length;D++)if(g=0<=mxUtils.indexOf(Graph.textStyles,m[D]),"strokeColor"!=m[D]||null!=q[D]&&"none"!=q[D])if(0<=mxUtils.indexOf(Graph.cellStyles,m[D])||"shape"==m[D])if("shape"!=m[D]&&(C||g)&&(null==q[D]?delete k[m[D]]:k[m[D]]=q[D]),E||g)null==q[D]?delete u[m[D]]:u[m[D]]=q[D]};Graph.prototype.includeDescendants=function(g){for(var m=
+[],q=0;q<g.length;q++)m=m.concat(this.model.getDescendants(g[q]));return m};Graph.prototype.pasteCellStyles=function(g,m,q,k,u){m=null!=m?m:this.currentVertexStyle;q=null!=q?q:this.currentEdgeStyle;u=null!=u?u:this.pasteEdgeStyle;this.model.beginUpdate();try{for(var w=0;w<g.length;w++){var z=g[w],C=this.model.getStyle(z),E=!1;null!=z.style&&(pairs=z.style.split(";"),E=E||0<=mxUtils.indexOf(pairs,"text"));if(E)var D=Graph.textStyles;else if(D=Graph.cellStyles.slice(),!k)for(var G=null!=C?C.split(";"):
+[],J=0;J<G.length;J++){var L=G[J],Q=L.indexOf("=");if(0<=Q){var N=L.substring(0,Q),U=mxUtils.indexOf(D,N);0<=U&&D.splice(U,1);for(E=0;E<Graph.cellStyleGroups.length;E++){var Y=Graph.cellStyleGroups[E];if(0<=mxUtils.indexOf(Y,N))for(var P=0;P<Y.length;P++){var T=mxUtils.indexOf(D,Y[P]);0<=T&&D.splice(T,1)}}}}var K=this.model.isEdge(z);E=K?q:m;for(J=0;J<D.length;J++){N=D[J];var V=E[N];null!=V&&("edgeStyle"!=N||u)&&(K||!K&&0>mxUtils.indexOf(Graph.edgeStyles,N))&&(C=mxUtils.setStyle(C,N,V),"fontFamily"==
+N&&null==E.fontSource&&(C=mxUtils.setStyle(C,"fontSource",null)),K&&"rounded"==N&&"1"==V&&null==E.curved&&(C=mxUtils.setStyle(C,"curved",null)))}Editor.simpleLabels&&(C=mxUtils.setStyle(mxUtils.setStyle(C,"html",null),"whiteSpace",null));this.model.setStyle(z,C)}}finally{this.model.endUpdate()}return g};Graph.prototype.updateCellStyles=function(g,m){this.model.beginUpdate();try{for(var q=0;q<m.length;q++)if(this.model.isVertex(m[q])||this.model.isEdge(m[q])){var k=this.getCellStyle(m[q],!1),u=k[mxConstants.STYLE_PERIMETER],
+w=!1;for(C in g){var z=g[C];if(k[C]!=z){if(C==mxConstants.STYLE_SHAPE&&"umlLifeline"==k[C]&&"umlLifeline"!=z){w=!0;var C="participant"}this.setCellStyles(C,z,[m[q]])}}w&&this.setCellStyles(mxConstants.STYLE_PERIMETER,u,[m[q]])}}finally{this.model.endUpdate()}};Graph.prototype.isFastZoomEnabled=function(){return"nocss"!=urlParams.zoom&&!mxClient.NO_FO&&!mxClient.IS_EDGE&&!this.useCssTransforms&&(this.isCssTransformsSupported()||mxClient.IS_IOS)};Graph.prototype.isCssTransformsSupported=function(){return this.dialect==
+mxConstants.DIALECT_SVG&&!mxClient.NO_FO&&(!this.lightbox||!mxClient.IS_SF)};Graph.prototype.getCellAt=function(g,m,q,k,u,w){this.useCssTransforms&&(g=g/this.currentScale-this.currentTranslate.x,m=m/this.currentScale-this.currentTranslate.y);return this.getScaledCellAt.apply(this,arguments)};Graph.prototype.getScaledCellAt=function(g,m,q,k,u,w){k=null!=k?k:!0;u=null!=u?u:!0;null==q&&(q=this.getCurrentRoot(),null==q&&(q=this.getModel().getRoot()));if(null!=q)for(var z=this.model.getChildCount(q)-1;0<=
+z;z--){var C=this.model.getChildAt(q,z),E=this.getScaledCellAt(g,m,C,k,u,w);if(null!=E)return E;if(this.isCellVisible(C)&&(u&&this.model.isEdge(C)||k&&this.model.isVertex(C))&&(E=this.view.getState(C),null!=E&&(null==w||!w(E,g,m))&&this.intersects(E,g,m)))return C}return null};Graph.prototype.isRecursiveVertexResize=function(g){return!this.isSwimlane(g.cell)&&0<this.model.getChildCount(g.cell)&&!this.isCellCollapsed(g.cell)&&"1"==mxUtils.getValue(g.style,"recursiveResize","1")&&null==mxUtils.getValue(g.style,
+"childLayout",null)};Graph.prototype.getAbsoluteParent=function(g){for(var m=this.getCellGeometry(g);null!=m&&m.relative;)g=this.getModel().getParent(g),m=this.getCellGeometry(g);return g};Graph.prototype.isPart=function(g){return"1"==mxUtils.getValue(this.getCurrentCellStyle(g),"part","0")||this.isTableCell(g)||this.isTableRow(g)};Graph.prototype.getCompositeParents=function(g){for(var m=new mxDictionary,q=[],k=0;k<g.length;k++){var u=this.getCompositeParent(g[k]);this.isTableCell(u)&&(u=this.graph.model.getParent(u));
+this.isTableRow(u)&&(u=this.graph.model.getParent(u));null==u||m.get(u)||(m.put(u,!0),q.push(u))}return q};Graph.prototype.getReferenceTerminal=function(g){if(null!=g){var m=this.getCellGeometry(g);null!=m&&m.relative&&(g=this.model.getParent(g))}null!=g&&this.model.isEdge(g)&&(g=this.model.getParent(g));null!=g&&(g=this.getCompositeParent(g));return g};Graph.prototype.getCompositeParent=function(g){for(;this.isPart(g);){var m=this.model.getParent(g);if(!this.model.isVertex(m))break;g=m}return g};
+Graph.prototype.filterSelectionCells=function(g){var m=this.getSelectionCells();if(null!=g){for(var q=[],k=0;k<m.length;k++)g(m[k])||q.push(m[k]);m=q}return m};var a=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(g){if(this.useCssTransforms){var m=this.currentScale,q=this.currentTranslate;g=new mxRectangle((g.x+2*q.x)*m-q.x,(g.y+2*q.y)*m-q.y,g.width*m,g.height*m)}a.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=function(g){g=this.strokeWidth;this.graph.useCssTransforms&&
+(g/=this.graph.currentScale);return g};mxGraphView.prototype.getGraphBounds=function(){var g=this.graphBounds;if(this.graph.useCssTransforms){var m=this.graph.currentTranslate,q=this.graph.currentScale;g=new mxRectangle((g.x+m.x)*q,(g.y+m.y)*q,g.width*q,g.height*q)}return g};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var b=mxGraphView.prototype.validate;mxGraphView.prototype.validate=function(g){this.graph.useCssTransforms&&
+(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y,this.scale=1,this.translate.x=0,this.translate.y=0);b.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,this.translate.y=this.graph.currentTranslate.y)};var e=mxGraph.prototype.getCellsForGroup;Graph.prototype.getCellsForGroup=function(g){g=e.apply(this,arguments);
+for(var m=[],q=0;q<g.length;q++)this.isTableRow(g[q])||this.isTableCell(g[q])||m.push(g[q]);return m};var f=mxGraph.prototype.getCellsForUngroup;Graph.prototype.getCellsForUngroup=function(g){g=f.apply(this,arguments);for(var m=[],q=0;q<g.length;q++)this.isTable(g[q])||this.isTableRow(g[q])||this.isTableCell(g[q])||m.push(g[q]);return m};Graph.prototype.updateCssTransform=function(){var g=this.view.getDrawPane();if(null!=g)if(g=g.parentNode,this.useCssTransforms){var m=g.getAttribute("transform");
+g.setAttribute("transformOrigin","0 0");var q=Math.round(100*this.currentScale)/100;g.setAttribute("transform","scale("+q+","+q+")translate("+Math.round(100*this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");m!=g.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",g.getAttribute("transform"))}else g.removeAttribute("transformOrigin"),g.removeAttribute("transform")};var h=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=
+function(){var g=this.graph.useCssTransforms,m=this.scale,q=this.translate;g&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);h.apply(this,arguments);g&&(this.scale=m,this.translate=q)};var d=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(g,m,q){var k=this.useCssTransforms,u=this.view.scale,w=this.view.translate;k&&(this.view.scale=1,this.view.translate=new mxPoint(0,0),this.useCssTransforms=!1);d.apply(this,arguments);k&&(this.view.scale=
+u,this.view.translate=w,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox};Graph.prototype.isViewer=function(){return!1};
Graph.prototype.labelLinkClicked=function(a,b,e){var f=b.getAttribute("href");f!=Graph.sanitizeLink(f)&&Graph.sanitizeNode(b);if(null!=f&&!this.isCustomLink(f)&&(mxEvent.isLeftMouseButton(e)&&!mxEvent.isPopupTrigger(e)||mxEvent.isTouchEvent(e))){if(!this.isEnabled()||this.isCellLocked(a.cell))a=this.isBlankLink(f)?this.linkTarget:"_top",this.openLink(this.getAbsoluteUrl(f),a);mxEvent.consume(e)}};
Graph.prototype.openLink=function(a,b,e){var f=window;try{if(a=Graph.sanitizeLink(a),null!=a)if("_self"==b&&window!=window.top)window.location.href=a;else if(a.substring(0,this.baseUrl.length)==this.baseUrl&&"#"==a.charAt(this.baseUrl.length)&&"_top"==b&&window==window.top){var h=a.split("#")[1];window.location.hash=="#"+h&&(window.location.hash="");window.location.hash=h}else f=window.open(a,null!=b?b:"_blank",e?null:"noopener,noreferrer"),null==f||e||(f.opener=null)}catch(d){}return f};
Graph.prototype.getLinkTitle=function(a){return a.substring(a.lastIndexOf("/")+1)};Graph.prototype.isCustomLink=function(a){return"data:"==a.substring(0,5)};Graph.prototype.customLinkClicked=function(a,b){return!1};Graph.prototype.isExternalProtocol=function(a){return"mailto:"===a.substring(0,7)};Graph.prototype.isBlankLink=function(a){return!this.isExternalProtocol(a)&&("blank"===this.linkPolicy||"self"!==this.linkPolicy&&!this.isRelativeUrl(a)&&a.substring(0,this.domainUrl.length)!==this.domainUrl)};
@@ -2650,7 +2650,7 @@ Graph.prototype.createLayouts=function(a){for(var b=[],e=0;e<a.length;e++)if(0<=
Graph.prototype.getDataForCells=function(a,b){for(var e=[],f=0;f<a.length;f++){var h={};h.id=a[f].id;var d=null!=a[f].value?a[f].value.attributes:null;this.isReplacePlaceholders(a[f])&&b&&(h.value=this.getLabel(a[f]));if(null!=d)for(var g=0;g<d.length;g++)h[d[g].nodeName]=d[g].nodeValue;else h.label=this.convertValueToString(a[f]);e.push(h)}return e};
Graph.prototype.getNodesForCells=function(a){for(var b=[],e=0;e<a.length;e++){var f=this.view.getState(a[e]);if(null!=f){for(var h=this.cellRenderer.getShapesForState(f),d=0;d<h.length;d++)null!=h[d]&&null!=h[d].node&&b.push(h[d].node);null!=f.control&&null!=f.control.node&&b.push(f.control.node)}}return b};
Graph.prototype.createWipeAnimations=function(a,b){for(var e=[],f=0;f<a.length;f++){var h=this.view.getState(a[f]);null!=h&&null!=h.shape&&(this.model.isEdge(h.cell)&&null!=h.absolutePoints&&1<h.absolutePoints.length?e.push(this.createEdgeWipeAnimation(h,b)):this.model.isVertex(h.cell)&&null!=h.shape.bounds&&e.push(this.createVertexWipeAnimation(h,b)))}return e};
-Graph.prototype.createEdgeWipeAnimation=function(a,b){var e=a.absolutePoints.slice(),f=a.segments,h=a.length,d=e.length;return{execute:mxUtils.bind(this,function(g,m){if(null!=a.shape){var p=[e[0]];m=g/m;b||(m=1-m);for(var k=h*m,u=1;u<d;u++)if(k<=f[u-1]){p.push(new mxPoint(e[u-1].x+(e[u].x-e[u-1].x)*k/f[u-1],e[u-1].y+(e[u].y-e[u-1].y)*k/f[u-1]));break}else k-=f[u-1],p.push(e[u]);a.shape.points=p;a.shape.redraw();0==g&&Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),1);null!=a.text&&null!=
+Graph.prototype.createEdgeWipeAnimation=function(a,b){var e=a.absolutePoints.slice(),f=a.segments,h=a.length,d=e.length;return{execute:mxUtils.bind(this,function(g,m){if(null!=a.shape){var q=[e[0]];m=g/m;b||(m=1-m);for(var k=h*m,u=1;u<d;u++)if(k<=f[u-1]){q.push(new mxPoint(e[u-1].x+(e[u].x-e[u-1].x)*k/f[u-1],e[u-1].y+(e[u].y-e[u-1].y)*k/f[u-1]));break}else k-=f[u-1],q.push(e[u]);a.shape.points=q;a.shape.redraw();0==g&&Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),1);null!=a.text&&null!=
a.text.node&&(a.text.node.style.opacity=m)}}),stop:mxUtils.bind(this,function(){null!=a.shape&&(a.shape.points=e,a.shape.redraw(),null!=a.text&&null!=a.text.node&&(a.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),b?1:0))})}};
Graph.prototype.createVertexWipeAnimation=function(a,b){var e=new mxRectangle.fromRectangle(a.shape.bounds);return{execute:mxUtils.bind(this,function(f,h){null!=a.shape&&(h=f/h,b||(h=1-h),a.shape.bounds=new mxRectangle(e.x,e.y,e.width*h,e.height),a.shape.redraw(),0==f&&Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),1),null!=a.text&&null!=a.text.node&&(a.text.node.style.opacity=h))}),stop:mxUtils.bind(this,function(){null!=a.shape&&(a.shape.bounds=e,a.shape.redraw(),null!=a.text&&null!=a.text.node&&
(a.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),b?1:0))})}};Graph.prototype.executeAnimations=function(a,b,e,f){e=null!=e?e:30;f=null!=f?f:30;var h=null,d=0,g=mxUtils.bind(this,function(){if(d==e||this.stoppingCustomActions){window.clearInterval(h);for(var m=0;m<a.length;m++)a[m].stop();null!=b&&b()}else for(m=0;m<a.length;m++)a[m].execute(d,e);d++});h=window.setInterval(g,f);g()};
@@ -2665,17 +2665,17 @@ Graph.prototype.isLabelMovable=function(a){var b=this.getCurrentCellStyle(a);ret
Graph.prototype.getClickableLinkForCell=function(a){do{var b=this.getLinkForCell(a);if(null!=b)return b;a=this.model.getParent(a)}while(null!=a);return null};Graph.prototype.getGlobalVariable=function(a){var b=null;"date"==a?b=(new Date).toLocaleDateString():"time"==a?b=(new Date).toLocaleTimeString():"timestamp"==a?b=(new Date).toLocaleString():"date{"==a.substring(0,5)&&(a=a.substring(5,a.length-1),b=this.formatDate(new Date,a));return b};
Graph.prototype.formatDate=function(a,b,e){null==this.dateFormatCache&&(this.dateFormatCache={i18n:{dayNames:"Sun Mon Tue Wed Thu Fri Sat Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),monthNames:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec January February March April May June July August September October November December".split(" ")},masks:{"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",
shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"}});var f=this.dateFormatCache,h=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,d=/[^-+\dA-Z]/g,g=function(J,L){J=String(J);for(L=L||2;J.length<L;)J="0"+J;return J};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(a)||
-/\d/.test(a)||(b=a,a=void 0);a=a?new Date(a):new Date;if(isNaN(a))throw SyntaxError("invalid date");b=String(f.masks[b]||b||f.masks["default"]);"UTC:"==b.slice(0,4)&&(b=b.slice(4),e=!0);var m=e?"getUTC":"get",p=a[m+"Date"](),k=a[m+"Day"](),u=a[m+"Month"](),w=a[m+"FullYear"](),z=a[m+"Hours"](),C=a[m+"Minutes"](),E=a[m+"Seconds"]();m=a[m+"Milliseconds"]();var D=e?0:a.getTimezoneOffset(),G={d:p,dd:g(p),ddd:f.i18n.dayNames[k],dddd:f.i18n.dayNames[k+7],m:u+1,mm:g(u+1),mmm:f.i18n.monthNames[u],mmmm:f.i18n.monthNames[u+
-12],yy:String(w).slice(2),yyyy:w,h:z%12||12,hh:g(z%12||12),H:z,HH:g(z),M:C,MM:g(C),s:E,ss:g(E),l:g(m,3),L:g(99<m?Math.round(m/10):m),t:12>z?"a":"p",tt:12>z?"am":"pm",T:12>z?"A":"P",TT:12>z?"AM":"PM",Z:e?"UTC":(String(a).match(h)||[""]).pop().replace(d,""),o:(0<D?"-":"+")+g(100*Math.floor(Math.abs(D)/60)+Math.abs(D)%60,4),S:["th","st","nd","rd"][3<p%10?0:(10!=p%100-p%10)*p%10]};return b.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(J){return J in G?G[J]:J.slice(1,
+/\d/.test(a)||(b=a,a=void 0);a=a?new Date(a):new Date;if(isNaN(a))throw SyntaxError("invalid date");b=String(f.masks[b]||b||f.masks["default"]);"UTC:"==b.slice(0,4)&&(b=b.slice(4),e=!0);var m=e?"getUTC":"get",q=a[m+"Date"](),k=a[m+"Day"](),u=a[m+"Month"](),w=a[m+"FullYear"](),z=a[m+"Hours"](),C=a[m+"Minutes"](),E=a[m+"Seconds"]();m=a[m+"Milliseconds"]();var D=e?0:a.getTimezoneOffset(),G={d:q,dd:g(q),ddd:f.i18n.dayNames[k],dddd:f.i18n.dayNames[k+7],m:u+1,mm:g(u+1),mmm:f.i18n.monthNames[u],mmmm:f.i18n.monthNames[u+
+12],yy:String(w).slice(2),yyyy:w,h:z%12||12,hh:g(z%12||12),H:z,HH:g(z),M:C,MM:g(C),s:E,ss:g(E),l:g(m,3),L:g(99<m?Math.round(m/10):m),t:12>z?"a":"p",tt:12>z?"am":"pm",T:12>z?"A":"P",TT:12>z?"AM":"PM",Z:e?"UTC":(String(a).match(h)||[""]).pop().replace(d,""),o:(0<D?"-":"+")+g(100*Math.floor(Math.abs(D)/60)+Math.abs(D)%60,4),S:["th","st","nd","rd"][3<q%10?0:(10!=q%100-q%10)*q%10]};return b.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(J){return J in G?G[J]:J.slice(1,
J.length-1)})};Graph.prototype.getLayerForCell=function(a){for(;null!=a&&!this.model.isLayer(a);)a=this.model.getParent(a);return a};Graph.prototype.getLayerForCells=function(a){var b=null;if(0<a.length){b=this.getLayerForCell(a[0]);for(var e=1;e<a.length;e++)if(!this.model.isAncestor(b,a[e])){b=null;break}}return b};
-Graph.prototype.createLayersDialog=function(a,b){var e=document.createElement("div");e.style.position="absolute";for(var f=this.getModel(),h=f.getChildCount(f.root),d=0;d<h;d++)mxUtils.bind(this,function(g){function m(){f.isVisible(g)?(u.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(k,75)):(u.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(k,25))}var p=this.convertValueToString(g)||mxResources.get("background")||"Background",k=document.createElement("div");k.style.overflow=
-"hidden";k.style.textOverflow="ellipsis";k.style.padding="2px";k.style.whiteSpace="nowrap";k.style.cursor="pointer";k.setAttribute("title",mxResources.get(f.isVisible(g)?"hideIt":"show",[p]));var u=document.createElement("img");u.setAttribute("draggable","false");u.setAttribute("align","absmiddle");u.setAttribute("border","0");u.style.position="relative";u.style.width="16px";u.style.padding="0px 6px 0 4px";b&&(u.style.filter="invert(100%)",u.style.top="-2px");k.appendChild(u);mxUtils.write(k,p);e.appendChild(k);
+Graph.prototype.createLayersDialog=function(a,b){var e=document.createElement("div");e.style.position="absolute";for(var f=this.getModel(),h=f.getChildCount(f.root),d=0;d<h;d++)mxUtils.bind(this,function(g){function m(){f.isVisible(g)?(u.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(k,75)):(u.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(k,25))}var q=this.convertValueToString(g)||mxResources.get("background")||"Background",k=document.createElement("div");k.style.overflow=
+"hidden";k.style.textOverflow="ellipsis";k.style.padding="2px";k.style.whiteSpace="nowrap";k.style.cursor="pointer";k.setAttribute("title",mxResources.get(f.isVisible(g)?"hideIt":"show",[q]));var u=document.createElement("img");u.setAttribute("draggable","false");u.setAttribute("align","absmiddle");u.setAttribute("border","0");u.style.position="relative";u.style.width="16px";u.style.padding="0px 6px 0 4px";b&&(u.style.filter="invert(100%)",u.style.top="-2px");k.appendChild(u);mxUtils.write(k,q);e.appendChild(k);
mxEvent.addListener(k,"click",function(){f.setVisible(g,!f.isVisible(g));m();null!=a&&a(g)});m()})(f.getChildAt(f.root,d));return e};
-Graph.prototype.replacePlaceholders=function(a,b,e,f){f=[];if(null!=b){for(var h=0;match=this.placeholderPattern.exec(b);){var d=match[0];if(2<d.length&&"%label%"!=d&&"%tooltip%"!=d){var g=null;if(match.index>h&&"%"==b.charAt(match.index-1))g=d.substring(1);else{var m=d.substring(1,d.length-1),p={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==m)g=a.id;else if("width"===m.substring(0,5)&&this.model.isVertex(a)){var k=this.getCellGeometry(a);
-null!=k&&(g=k.width,5<m.length&&(g=Editor.toUnit(g,p[m.substring(6)])))}else if("height"==m.substring(0,6)&&this.model.isVertex(a))k=this.getCellGeometry(a),null!=k&&(g=k.height,6<m.length&&(g=Editor.toUnit(g,p[m.substring(7)])));else if("length"==m.substring(0,6)){for(k=a;null!=k&&!this.model.isEdge(k);)k=this.model.getParent(k);k=this.view.getState(k);null!=k&&(g=Math.round(k.length/this.view.scale),6<m.length&&(g=Editor.toUnit(g,p[m.substring(7)])))}else if(0>m.indexOf("{"))for(p=a;null==g&&null!=
-p;)null!=p.value&&"object"==typeof p.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(g=p.getAttribute(m+"_"+Graph.diagramLanguage)),null==g&&(g=p.hasAttribute(m)?null!=p.getAttribute(m)?p.getAttribute(m):"":null)),p=this.model.getParent(p);null==g&&(g=this.getGlobalVariable(m));null==g&&null!=e&&(g=e[m])}f.push(b.substring(h,match.index)+(null!=g?g:d));h=match.index+d.length}}f.push(b.substring(h))}return f.join("")};
+Graph.prototype.replacePlaceholders=function(a,b,e,f){f=[];if(null!=b){for(var h=0;match=this.placeholderPattern.exec(b);){var d=match[0];if(2<d.length&&"%label%"!=d&&"%tooltip%"!=d){var g=null;if(match.index>h&&"%"==b.charAt(match.index-1))g=d.substring(1);else{var m=d.substring(1,d.length-1),q={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==m)g=a.id;else if("width"===m.substring(0,5)&&this.model.isVertex(a)){var k=this.getCellGeometry(a);
+null!=k&&(g=k.width,5<m.length&&(g=Editor.toUnit(g,q[m.substring(6)])))}else if("height"==m.substring(0,6)&&this.model.isVertex(a))k=this.getCellGeometry(a),null!=k&&(g=k.height,6<m.length&&(g=Editor.toUnit(g,q[m.substring(7)])));else if("length"==m.substring(0,6)){for(k=a;null!=k&&!this.model.isEdge(k);)k=this.model.getParent(k);k=this.view.getState(k);null!=k&&(g=Math.round(k.length/this.view.scale),6<m.length&&(g=Editor.toUnit(g,q[m.substring(7)])))}else if(0>m.indexOf("{"))for(q=a;null==g&&null!=
+q;)null!=q.value&&"object"==typeof q.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(g=q.getAttribute(m+"_"+Graph.diagramLanguage)),null==g&&(g=q.hasAttribute(m)?null!=q.getAttribute(m)?q.getAttribute(m):"":null)),q=this.model.getParent(q);null==g&&(g=this.getGlobalVariable(m));null==g&&null!=e&&(g=e[m])}f.push(b.substring(h,match.index)+(null!=g?g:d));h=match.index+d.length}}f.push(b.substring(h))}return f.join("")};
Graph.prototype.restoreSelection=function(a){if(null!=a&&0<a.length){for(var b=[],e=0;e<a.length;e++){var f=this.model.getCell(a[e].id);null!=f&&b.push(f)}this.setSelectionCells(b)}else this.clearSelection()};Graph.prototype.selectCellForEvent=function(a,b){mxEvent.isShiftDown(b)&&!this.isSelectionEmpty()&&this.selectTableRange(this.getSelectionCell(),a)||mxGraph.prototype.selectCellForEvent.apply(this,arguments)};
-Graph.prototype.selectTableRange=function(a,b){var e=!1;if(this.isTableCell(a)&&this.isTableCell(b)){var f=this.model.getParent(a),h=this.model.getParent(f),d=this.model.getParent(b);if(h==this.model.getParent(d)){a=f.getIndex(a);f=h.getIndex(f);var g=d.getIndex(b),m=h.getIndex(d);d=Math.max(f,m);b=Math.min(a,g);a=Math.max(a,g);g=[];for(f=Math.min(f,m);f<=d;f++){m=this.model.getChildAt(h,f);for(var p=b;p<=a;p++)g.push(this.model.getChildAt(m,p))}0<g.length&&(1<g.length||1<this.getSelectionCount()||
+Graph.prototype.selectTableRange=function(a,b){var e=!1;if(this.isTableCell(a)&&this.isTableCell(b)){var f=this.model.getParent(a),h=this.model.getParent(f),d=this.model.getParent(b);if(h==this.model.getParent(d)){a=f.getIndex(a);f=h.getIndex(f);var g=d.getIndex(b),m=h.getIndex(d);d=Math.max(f,m);b=Math.min(a,g);a=Math.max(a,g);g=[];for(f=Math.min(f,m);f<=d;f++){m=this.model.getChildAt(h,f);for(var q=b;q<=a;q++)g.push(this.model.getChildAt(m,q))}0<g.length&&(1<g.length||1<this.getSelectionCount()||
!this.isCellSelected(g[0]))&&(this.setSelectionCells(g),e=!0)}}return e};
Graph.prototype.snapCellsToGrid=function(a,b){this.getModel().beginUpdate();try{for(var e=0;e<a.length;e++){var f=a[e],h=this.getCellGeometry(f);if(null!=h){h=h.clone();if(this.getModel().isVertex(f))h.x=Math.round(h.x/b)*b,h.y=Math.round(h.y/b)*b,h.width=Math.round(h.width/b)*b,h.height=Math.round(h.height/b)*b;else if(this.getModel().isEdge(f)&&null!=h.points)for(var d=0;d<h.points.length;d++)h.points[d].x=Math.round(h.points[d].x/b)*b,h.points[d].y=Math.round(h.points[d].y/b)*b;this.getModel().setGeometry(f,
h)}}}finally{this.getModel().endUpdate()}};Graph.prototype.removeChildCells=function(a){this.model.beginUpdate();try{for(var b=this.model.getChildCount(a);0<=b;b--)this.model.remove(this.model.getChildAt(a,b))}finally{this.model.endUpdate()}};
@@ -2683,13 +2683,13 @@ Graph.prototype.updateShapes=function(a,b,e){this.model.beginUpdate();try{var f=
this.model.isEdge(a)&&this.model.isEdge(b[d]))if(e){var g=this.model.getStyle(b[d]);if(null!=g){var m=g.split(";");0<m.length&&0>m[0].indexOf("=")&&(m=m.slice(1));this.model.setStyle(b[d],m.join(";"))}this.setCellStyles(mxConstants.STYLE_PERIMETER,null,[b[d]]);this.setCellStyles("points",null,[b[d]]);this.pasteStyle(h,[b[d]],null,!0)}else h=this.copyStyle(b[d]),this.model.setStyle(b[d],f),this.pasteStyle(h,[b[d]]);"1"==mxUtils.getValue(this.getCellStyle(b[d],!1),"composite","0")&&this.removeChildCells(b[d])}}finally{this.model.endUpdate()}};
Graph.prototype.selectCellsForConnectVertex=function(a,b,e){2==a.length&&this.model.isVertex(a[1])?(this.setSelectionCell(a[1]),this.scrollCellToVisible(a[1]),null!=e&&(mxEvent.isTouchEvent(b)?e.update(e.getState(this.view.getState(a[1]))):e.reset())):this.setSelectionCells(a)};Graph.prototype.isCloneConnectSource=function(a){var b=null;null!=this.layoutManager&&(b=this.layoutManager.getLayout(this.model.getParent(a)));return this.isTableRow(a)||this.isTableCell(a)||null!=b&&b.constructor==mxStackLayout};
Graph.prototype.insertEdgeBeforeCell=function(a,b){for(var e=b;null!=e.parent&&null!=e.geometry&&e.geometry.relative&&e.parent!=a.parent;)e=this.model.getParent(e);null!=e&&null!=e.parent&&e.parent==a.parent&&(b=e.parent.getIndex(e),this.model.add(e.parent,a,b))};
-Graph.prototype.connectVertex=function(a,b,e,f,h,d,g,m){d=d?d:!1;if(a.geometry.relative&&this.model.isEdge(a.parent))return[];for(;a.geometry.relative&&this.model.isVertex(a.parent);)a=a.parent;var p=this.isCloneConnectSource(a),k=p?a:this.getCompositeParent(a),u=a.geometry.relative&&null!=a.parent.geometry?new mxPoint(a.parent.geometry.width*a.geometry.x,a.parent.geometry.height*a.geometry.y):new mxPoint(k.geometry.x,k.geometry.y);b==mxConstants.DIRECTION_NORTH?(u.x+=k.geometry.width/2,u.y-=e):b==
+Graph.prototype.connectVertex=function(a,b,e,f,h,d,g,m){d=d?d:!1;if(a.geometry.relative&&this.model.isEdge(a.parent))return[];for(;a.geometry.relative&&this.model.isVertex(a.parent);)a=a.parent;var q=this.isCloneConnectSource(a),k=q?a:this.getCompositeParent(a),u=a.geometry.relative&&null!=a.parent.geometry?new mxPoint(a.parent.geometry.width*a.geometry.x,a.parent.geometry.height*a.geometry.y):new mxPoint(k.geometry.x,k.geometry.y);b==mxConstants.DIRECTION_NORTH?(u.x+=k.geometry.width/2,u.y-=e):b==
mxConstants.DIRECTION_SOUTH?(u.x+=k.geometry.width/2,u.y+=k.geometry.height+e):(u.x=b==mxConstants.DIRECTION_WEST?u.x-e:u.x+(k.geometry.width+e),u.y+=k.geometry.height/2);var w=this.view.getState(this.model.getParent(a));e=this.view.scale;var z=this.view.translate;k=z.x*e;z=z.y*e;null!=w&&this.model.isVertex(w.cell)&&(k=w.x,z=w.y);this.model.isVertex(a.parent)&&a.geometry.relative&&(u.x+=a.parent.geometry.x,u.y+=a.parent.geometry.y);d=d?null:(new mxRectangle(k+u.x*e,z+u.y*e)).grow(40*e);d=null!=d?
this.getCells(0,0,0,0,null,null,d,null,!0):null;w=this.view.getState(a);var C=null,E=null;if(null!=d){d=d.reverse();for(var D=0;D<d.length;D++)if(!this.isCellLocked(d[D])&&!this.model.isEdge(d[D])&&d[D]!=a)if(!this.model.isAncestor(a,d[D])&&this.isContainer(d[D])&&(null==C||d[D]==this.model.getParent(a)))C=d[D];else if(null==E&&this.isCellConnectable(d[D])&&!this.model.isAncestor(d[D],a)&&!this.isSwimlane(d[D])){var G=this.view.getState(d[D]);null==w||null==G||mxUtils.intersects(w,G)||(E=d[D])}}var J=
-!mxEvent.isShiftDown(f)||mxEvent.isControlDown(f)||h;J&&("1"!=urlParams.sketch||h)&&(b==mxConstants.DIRECTION_NORTH?u.y-=a.geometry.height/2:b==mxConstants.DIRECTION_SOUTH?u.y+=a.geometry.height/2:u.x=b==mxConstants.DIRECTION_WEST?u.x-a.geometry.width/2:u.x+a.geometry.width/2);var L=[],Q=E;E=C;h=mxUtils.bind(this,function(N){if(null==g||null!=N||null==E&&p){this.model.beginUpdate();try{if(null==Q&&J){var U=this.getAbsoluteParent(null!=N?N:a);U=p?a:this.getCompositeParent(U);Q=null!=N?N:this.duplicateCells([U],
-!1)[0];null!=N&&this.addCells([Q],this.model.getParent(a),null,null,null,!0);var Y=this.getCellGeometry(Q);null!=Y&&(null!=N&&"1"==urlParams.sketch&&(b==mxConstants.DIRECTION_NORTH?u.y-=Y.height/2:b==mxConstants.DIRECTION_SOUTH?u.y+=Y.height/2:u.x=b==mxConstants.DIRECTION_WEST?u.x-Y.width/2:u.x+Y.width/2),Y.x=u.x-Y.width/2,Y.y=u.y-Y.height/2);null!=C?(this.addCells([Q],C,null,null,null,!0),E=null):J&&!p&&this.addCells([Q],this.getDefaultParent(),null,null,null,!0)}var P=mxEvent.isControlDown(f)&&
-mxEvent.isShiftDown(f)&&J||null==E&&p?null:this.insertEdge(this.model.getParent(a),null,"",a,Q,this.createCurrentEdgeStyle());null!=P&&(L.push(P),this.applyNewEdgeStyle(a,[P],b),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(P,a));if(null==E&&null!=Q&&null!=a.parent&&p&&b==mxConstants.DIRECTION_WEST){var T=a.parent.getIndex(a);this.model.add(a.parent,Q,T)}null==E&&null!=Q&&L.push(Q);null==Q&&null!=P&&P.geometry.setTerminalPoint(u,!1);null!=P&&this.fireEvent(new mxEventObject("cellsInserted",
-"cells",[P]))}finally{this.model.endUpdate()}}if(null!=m)m(L);else return L});if(null==g||null!=Q||!J||null==E&&p)return h(Q);g(k+u.x*e,z+u.y*e,h)};
+!mxEvent.isShiftDown(f)||mxEvent.isControlDown(f)||h;J&&("1"!=urlParams.sketch||h)&&(b==mxConstants.DIRECTION_NORTH?u.y-=a.geometry.height/2:b==mxConstants.DIRECTION_SOUTH?u.y+=a.geometry.height/2:u.x=b==mxConstants.DIRECTION_WEST?u.x-a.geometry.width/2:u.x+a.geometry.width/2);var L=[],Q=E;E=C;h=mxUtils.bind(this,function(N){if(null==g||null!=N||null==E&&q){this.model.beginUpdate();try{if(null==Q&&J){var U=this.getAbsoluteParent(null!=N?N:a);U=q?a:this.getCompositeParent(U);Q=null!=N?N:this.duplicateCells([U],
+!1)[0];null!=N&&this.addCells([Q],this.model.getParent(a),null,null,null,!0);var Y=this.getCellGeometry(Q);null!=Y&&(null!=N&&"1"==urlParams.sketch&&(b==mxConstants.DIRECTION_NORTH?u.y-=Y.height/2:b==mxConstants.DIRECTION_SOUTH?u.y+=Y.height/2:u.x=b==mxConstants.DIRECTION_WEST?u.x-Y.width/2:u.x+Y.width/2),Y.x=u.x-Y.width/2,Y.y=u.y-Y.height/2);null!=C?(this.addCells([Q],C,null,null,null,!0),E=null):J&&!q&&this.addCells([Q],this.getDefaultParent(),null,null,null,!0)}var P=mxEvent.isControlDown(f)&&
+mxEvent.isShiftDown(f)&&J||null==E&&q?null:this.insertEdge(this.model.getParent(a),null,"",a,Q,this.createCurrentEdgeStyle());null!=P&&(L.push(P),this.applyNewEdgeStyle(a,[P],b),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(P,a));if(null==E&&null!=Q&&null!=a.parent&&q&&b==mxConstants.DIRECTION_WEST){var T=a.parent.getIndex(a);this.model.add(a.parent,Q,T)}null==E&&null!=Q&&L.push(Q);null==Q&&null!=P&&P.geometry.setTerminalPoint(u,!1);null!=P&&this.fireEvent(new mxEventObject("cellsInserted",
+"cells",[P]))}finally{this.model.endUpdate()}}if(null!=m)m(L);else return L});if(null==g||null!=Q||!J||null==E&&q)return h(Q);g(k+u.x*e,z+u.y*e,h)};
Graph.prototype.getIndexableText=function(a){a=null!=a?a:this.model.getDescendants(this.model.root);for(var b=document.createElement("div"),e=[],f,h=0;h<a.length;h++)if(f=a[h],this.model.isVertex(f)||this.model.isEdge(f))this.isHtmlLabel(f)?(b.innerHTML=Graph.sanitizeHtml(this.getLabel(f)),f=mxUtils.extractTextWithWhitespace([b])):f=this.getLabel(f),f=mxUtils.trim(f.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")),0<f.length&&e.push(f);return e.join(" ")};
Graph.prototype.convertValueToString=function(a){var b=this.model.getValue(a);if(null!=b&&"object"==typeof b){var e=null;if(this.isReplacePlaceholders(a)&&null!=a.getAttribute("placeholder")){b=a.getAttribute("placeholder");for(var f=a;null==e&&null!=f;)null!=f.value&&"object"==typeof f.value&&(e=f.hasAttribute(b)?null!=f.getAttribute(b)?f.getAttribute(b):"":null),f=this.model.getParent(f)}else e=null,Graph.translateDiagram&&null!=Graph.diagramLanguage&&(e=b.getAttribute("label_"+Graph.diagramLanguage)),
null==e&&(e=b.getAttribute("label")||"");return e||""}return mxGraph.prototype.convertValueToString.apply(this,arguments)};Graph.prototype.getLinksForState=function(a){return null!=a&&null!=a.text&&null!=a.text.node?a.text.node.getElementsByTagName("a"):null};Graph.prototype.getLinkForCell=function(a,b){return null!=a.value&&"object"==typeof a.value?(a=a.value.getAttribute("link"),b||(a=mxUtils.removeJavascriptProtocol(a)),a):null};
@@ -2700,8 +2700,8 @@ mxConstants.STYLE_IMAGE_BACKGROUND,a);this.replaceDefaultColor(b,mxConstants.STY
Graph.prototype.getDefaultColor=function(a,b,e){b="default"+b.charAt(0).toUpperCase()+b.substring(1);"invert"==a[b]&&(a=mxUtils.getLightDarkColor(e),e="light-dark("+a.dark+", "+a.light+")");return e};
Graph.prototype.setAdaptiveColors=function(a){this.adaptiveColors="default"==a?null:a;"1"==urlParams.embedInline?null!=this.container&&(this.container.style.colorScheme="none"==this.getAdaptiveColors()?"light":""):(a=this.view.getDrawPane().ownerSVGElement,null!=a&&(a.style.colorScheme="none"==this.getAdaptiveColors()?"light":""))};Graph.prototype.getAdaptiveColors=function(){return null!=this.adaptiveColors?this.adaptiveColors:Graph.defaultAdaptiveColors};
Graph.prototype.updateAlternateBounds=function(a,b,e){if(null!=a&&null!=b&&null!=this.layoutManager&&null!=b.alternateBounds){var f=this.layoutManager.getLayout(this.model.getParent(a));null!=f&&f.constructor==mxStackLayout&&(f.horizontal?b.alternateBounds.height=0:b.alternateBounds.width=0)}mxGraph.prototype.updateAlternateBounds.apply(this,arguments)};Graph.prototype.isMoveCellsEvent=function(a,b){return mxEvent.isShiftDown(a)||"1"==mxUtils.getValue(b.style,"moveCells","0")};
-Graph.prototype.foldCells=function(a,b,e,f,h){b=null!=b?b:!1;null==e&&(e=this.getFoldableCells(this.getSelectionCells(),a));if(null!=e){this.model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutManager)for(var d=0;d<e.length;d++){var g=this.view.getState(e[d]),m=this.getCellGeometry(e[d]);if(null!=g&&null!=m){var p=0,k=0;if(m.alternateBounds)p=m.width-m.alternateBounds.width,k=m.height-m.alternateBounds.height;else{var u=this.useCssTransforms?1:this.view.scale;
-p=Math.round(m.width-g.width/u);k=Math.round(m.height-g.height/u)}if(0!=k||0!=p){var w=this.model.getParent(e[d]),z=this.layoutManager.getLayout(w);null==z?null!=h&&this.isMoveCellsEvent(h,g)&&this.moveSiblings(g,w,p,k):null!=h&&mxEvent.isAltDown(h)||z.constructor!=mxStackLayout||z.resizeLast||this.resizeParentStacks(w,z,p,k)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(e)}};
+Graph.prototype.foldCells=function(a,b,e,f,h){b=null!=b?b:!1;null==e&&(e=this.getFoldableCells(this.getSelectionCells(),a));if(null!=e){this.model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutManager)for(var d=0;d<e.length;d++){var g=this.view.getState(e[d]),m=this.getCellGeometry(e[d]);if(null!=g&&null!=m){var q=0,k=0;if(m.alternateBounds)q=m.width-m.alternateBounds.width,k=m.height-m.alternateBounds.height;else{var u=this.useCssTransforms?1:this.view.scale;
+q=Math.round(m.width-g.width/u);k=Math.round(m.height-g.height/u)}if(0!=k||0!=q){var w=this.model.getParent(e[d]),z=this.layoutManager.getLayout(w);null==z?null!=h&&this.isMoveCellsEvent(h,g)&&this.moveSiblings(g,w,q,k):null!=h&&mxEvent.isAltDown(h)||z.constructor!=mxStackLayout||z.resizeLast||this.resizeParentStacks(w,z,q,k)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(e)}};
Graph.prototype.moveSiblings=function(a,b,e,f){this.model.beginUpdate();try{var h=this.getCellsBeyond(a.x,a.y,b,!0,!0);for(b=0;b<h.length;b++)if(h[b]!=a.cell){var d=this.view.getState(h[b]),g=this.getCellGeometry(h[b]);null!=d&&null!=g&&(g=g.clone(),g.translate(Math.round(e*Math.max(0,Math.min(1,(d.x-a.x)/a.width))),Math.round(f*Math.max(0,Math.min(1,(d.y-a.y)/a.height)))),this.model.setGeometry(h[b],g))}}finally{this.model.endUpdate()}};
Graph.prototype.resizeParentStacks=function(a,b,e,f){if(null!=this.layoutManager&&null!=b&&b.constructor==mxStackLayout&&!b.resizeLast){this.model.beginUpdate();try{for(var h=b.horizontal;null!=a&&null!=b&&b.constructor==mxStackLayout&&b.horizontal==h&&!b.resizeLast;){var d=this.getCellGeometry(a),g=this.view.getState(a);null!=g&&null!=d&&(d=d.clone(),b.horizontal?d.width+=e+Math.min(0,g.width/this.view.scale-d.width):d.height+=f+Math.min(0,g.height/this.view.scale-d.height),this.model.setGeometry(a,
d));a=this.model.getParent(a);b=this.layoutManager.getLayout(a)}}finally{this.model.endUpdate()}}};Graph.prototype.isContainer=function(a){var b=this.getCurrentCellStyle(a);return this.isSwimlane(a)?"0"!=b.container:"1"==b.container};Graph.prototype.isCellConnectable=function(a){var b=this.getCurrentCellStyle(a);return!this.isCellLocked(this.getLayerForCell(a))&&(null!=b.connectable?"0"!=b.connectable:mxGraph.prototype.isCellConnectable.apply(this,arguments))};
@@ -2743,10 +2743,10 @@ HoverIcons.prototype.click=function(a,b,e){var f=e.getEvent(),h=e.getGraphX(),d=
HoverIcons.prototype.execute=function(a,b,e){e=e.getEvent();this.graph.selectCellsForConnectVertex(this.graph.connectVertex(a.cell,b,this.graph.defaultEdgeLength,e,this.graph.isCloneEvent(e),this.graph.isCloneEvent(e)),e,this)};HoverIcons.prototype.reset=function(a){null!=a&&!a||null==this.updateThread||window.clearTimeout(this.updateThread);this.activeArrow=this.currentState=this.mouseDownPoint=null;this.removeNodes();this.bbox=null;this.fireEvent(new mxEventObject("reset"))};
HoverIcons.prototype.repaint=function(){this.bbox=null;if(null!=this.currentState){this.currentState=this.getState(this.currentState);if(null!=this.currentState&&this.graph.model.isVertex(this.currentState.cell)&&this.graph.isCellConnectable(this.currentState.cell)){var a=mxRectangle.fromRectangle(this.currentState);null!=this.currentState.shape&&null!=this.currentState.shape.boundingBox&&(a=mxRectangle.fromRectangle(this.currentState.shape.boundingBox));a.grow(this.graph.tolerance);a.grow(this.arrowSpacing);
var b=this.graph.selectionCellsHandler.getHandler(this.currentState.cell);this.graph.isTableRow(this.currentState.cell)&&(b=this.graph.selectionCellsHandler.getHandler(this.graph.model.getParent(this.currentState.cell)));var e=null;null!=b&&(a.x-=b.horizontalOffset/2,a.y-=b.verticalOffset/2,a.width+=b.horizontalOffset,a.height+=b.verticalOffset,null!=b.rotationShape&&null!=b.rotationShape.node&&"hidden"!=b.rotationShape.node.style.visibility&&"none"!=b.rotationShape.node.style.display&&null!=b.rotationShape.boundingBox&&
-(e=b.rotationShape.boundingBox));b=mxUtils.bind(this,function(m,p,k){if(null!=e){var u=new mxRectangle(p,k,m.clientWidth,m.clientHeight);mxUtils.intersects(u,e)&&(m==this.arrowUp?k-=u.y+u.height-e.y:m==this.arrowRight?p+=e.x+e.width-u.x:m==this.arrowDown?k+=e.y+e.height-u.y:m==this.arrowLeft&&(p-=u.x+u.width-e.x))}m.style.left=p+"px";m.style.top=k+"px";mxUtils.setOpacity(m,this.inactiveOpacity)});b(this.arrowUp,Math.round(this.currentState.getCenterX()-this.triangleUp.width/2-this.tolerance),Math.round(a.y-
+(e=b.rotationShape.boundingBox));b=mxUtils.bind(this,function(m,q,k){if(null!=e){var u=new mxRectangle(q,k,m.clientWidth,m.clientHeight);mxUtils.intersects(u,e)&&(m==this.arrowUp?k-=u.y+u.height-e.y:m==this.arrowRight?q+=e.x+e.width-u.x:m==this.arrowDown?k+=e.y+e.height-u.y:m==this.arrowLeft&&(q-=u.x+u.width-e.x))}m.style.left=q+"px";m.style.top=k+"px";mxUtils.setOpacity(m,this.inactiveOpacity)});b(this.arrowUp,Math.round(this.currentState.getCenterX()-this.triangleUp.width/2-this.tolerance),Math.round(a.y-
this.triangleUp.height-this.tolerance));b(this.arrowRight,Math.round(a.x+a.width-this.tolerance),Math.round(this.currentState.getCenterY()-this.triangleRight.height/2-this.tolerance));b(this.arrowDown,parseInt(this.arrowUp.style.left),Math.round(a.y+a.height-this.tolerance));b(this.arrowLeft,Math.round(a.x-this.triangleLeft.width-this.tolerance),parseInt(this.arrowRight.style.top));if(this.checkCollisions){b=this.graph.getCellAt(a.x+a.width+this.triangleRight.width/2,this.currentState.getCenterY());
-var f=this.graph.getCellAt(a.x-this.triangleLeft.width/2,this.currentState.getCenterY()),h=this.graph.getCellAt(this.currentState.getCenterX(),a.y-this.triangleUp.height/2);a=this.graph.getCellAt(this.currentState.getCenterX(),a.y+a.height+this.triangleDown.height/2);null!=b&&b==f&&f==h&&h==a&&(a=h=f=b=null);var d=this.graph.getCellGeometry(this.currentState.cell),g=mxUtils.bind(this,function(m,p){var k=this.graph.model.isVertex(m)&&this.graph.getCellGeometry(m);null==m||this.graph.model.isAncestor(m,
-this.currentState.cell)||this.graph.isSwimlane(m)||!(null==k||null==d||k.height<3*d.height&&k.width<3*d.width)?p.style.visibility="visible":p.style.visibility="hidden"});g(b,this.arrowRight);g(f,this.arrowLeft);g(h,this.arrowUp);g(a,this.arrowDown)}else this.arrowLeft.style.visibility="visible",this.arrowRight.style.visibility="visible",this.arrowUp.style.visibility="visible",this.arrowDown.style.visibility="visible";this.graph.tooltipHandler.isEnabled()?(this.arrowLeft.setAttribute("title",mxResources.get("plusTooltip")),
+var f=this.graph.getCellAt(a.x-this.triangleLeft.width/2,this.currentState.getCenterY()),h=this.graph.getCellAt(this.currentState.getCenterX(),a.y-this.triangleUp.height/2);a=this.graph.getCellAt(this.currentState.getCenterX(),a.y+a.height+this.triangleDown.height/2);null!=b&&b==f&&f==h&&h==a&&(a=h=f=b=null);var d=this.graph.getCellGeometry(this.currentState.cell),g=mxUtils.bind(this,function(m,q){var k=this.graph.model.isVertex(m)&&this.graph.getCellGeometry(m);null==m||this.graph.model.isAncestor(m,
+this.currentState.cell)||this.graph.isSwimlane(m)||!(null==k||null==d||k.height<3*d.height&&k.width<3*d.width)?q.style.visibility="visible":q.style.visibility="hidden"});g(b,this.arrowRight);g(f,this.arrowLeft);g(h,this.arrowUp);g(a,this.arrowDown)}else this.arrowLeft.style.visibility="visible",this.arrowRight.style.visibility="visible",this.arrowUp.style.visibility="visible",this.arrowDown.style.visibility="visible";this.graph.tooltipHandler.isEnabled()?(this.arrowLeft.setAttribute("title",mxResources.get("plusTooltip")),
this.arrowRight.setAttribute("title",mxResources.get("plusTooltip")),this.arrowUp.setAttribute("title",mxResources.get("plusTooltip")),this.arrowDown.setAttribute("title",mxResources.get("plusTooltip"))):(this.arrowLeft.removeAttribute("title"),this.arrowRight.removeAttribute("title"),this.arrowUp.removeAttribute("title"),this.arrowDown.removeAttribute("title"))}else this.reset();null!=this.currentState&&(this.bbox=this.computeBoundingBox(),null!=this.bbox&&this.bbox.grow(10))}};
HoverIcons.prototype.computeBoundingBox=function(){var a=this.graph.model.isEdge(this.currentState.cell)?null:mxRectangle.fromRectangle(this.currentState);this.visitNodes(function(b){null!=b.parentNode&&(b=new mxRectangle(b.offsetLeft,b.offsetTop,b.offsetWidth,b.offsetHeight),null==a?a=b:a.add(b))});return a};
HoverIcons.prototype.getState=function(a){if(null!=a)if(a=a.cell,this.graph.getModel().contains(a)){if(this.graph.getModel().isVertex(a)&&!this.graph.isCellConnectable(a)){var b=this.graph.getModel().getParent(a);this.graph.getModel().isVertex(b)&&this.graph.isCellConnectable(b)&&(a=b)}if(this.graph.isCellLocked(a)||this.graph.model.isEdge(a))a=null;a=this.graph.view.getState(a);null!=a&&null==a.style&&(a=null)}else a=null;return a};
@@ -2756,26 +2756,26 @@ a||null==this.bbox||null==b||null==e||!mxUtils.contains(this.bbox,b,e))&&(null!=
HoverIcons.prototype.setCurrentState=function(a){"eastwest"!=a.style.portConstraint&&(this.graph.container.appendChild(this.arrowUp),this.graph.container.appendChild(this.arrowDown));this.graph.container.appendChild(this.arrowRight);this.graph.container.appendChild(this.arrowLeft);this.currentState=a};
Graph.prototype.removeTextStyleForCell=function(a,b){var e=this.getCurrentCellStyle(a),f=!1;this.getModel().beginUpdate();try{if("1"==mxUtils.getValue(e,"html","0")){var h=this.convertValueToString(a);"0"!=mxUtils.getValue(e,"nl2Br","1")&&(h=h.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n"));h=Editor.convertHtmlToText(h);this.cellLabelChanged(a,h);f=!0}b&&(this.setCellStyles("fontSource",null,[a]),this.setCellStyles(mxConstants.STYLE_FONTFAMILY,null,[a]),this.setCellStyles(mxConstants.STYLE_FONTSIZE,
null,[a]),this.setCellStyles(mxConstants.STYLE_FONTSTYLE,null,[a]),this.setCellStyles(mxConstants.STYLE_FONTCOLOR,null,[a]),this.setCellStyles(mxConstants.STYLE_LABEL_BORDERCOLOR,null,[a]),this.setCellStyles(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null,[a]))}finally{this.getModel().endUpdate()}return f};Graph.prototype.createParent=function(a,b,e,f,h){a=this.cloneCell(a);for(var d=0;d<e;d++){var g=this.cloneCell(b),m=this.getCellGeometry(g);null!=m&&(m.x+=d*f,m.y+=d*h);a.insert(g)}return a};
-Graph.prototype.createTable=function(a,b,e,f,h,d,g,m,p){e=null!=e?e:60;f=null!=f?f:40;d=null!=d?d:30;m=null!=m?m:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;";p=null!=p?p:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";return this.createParent(this.createVertex(null,
-null,null!=h?h:"",0,0,b*e,a*f+(null!=h?d:0),null!=g?g:"shape=table;startSize="+(null!=h?d:"0")+";container=1;collapsible=0;childLayout=tableLayout;"),this.createParent(this.createVertex(null,null,"",0,0,b*e,f,m),this.createVertex(null,null,"",0,0,e,f,p),b,e,0),a,0,f)};
+Graph.prototype.createTable=function(a,b,e,f,h,d,g,m,q){e=null!=e?e:60;f=null!=f?f:40;d=null!=d?d:30;m=null!=m?m:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;";q=null!=q?q:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";return this.createParent(this.createVertex(null,
+null,null!=h?h:"",0,0,b*e,a*f+(null!=h?d:0),null!=g?g:"shape=table;startSize="+(null!=h?d:"0")+";container=1;collapsible=0;childLayout=tableLayout;"),this.createParent(this.createVertex(null,null,"",0,0,b*e,f,m),this.createVertex(null,null,"",0,0,e,f,q),b,e,0),a,0,f)};
Graph.prototype.setTableValues=function(a,b,e){for(var f=this.model.getChildCells(a,!0),h=0;h<f.length;h++)if(null!=e&&(f[h].value=e[h]),null!=b)for(var d=this.model.getChildCells(f[h],!0),g=0;g<d.length;g++)null!=b[h][g]&&(d[g].value=b[h][g]);return a};
-Graph.prototype.createCrossFunctionalSwimlane=function(a,b,e,f,h,d,g,m,p){e=null!=e?e:120;f=null!=f?f:120;g=null!=g?g:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;collapsible=0;recursiveResize=0;expand=0;";m=null!=m?m:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
-p=null!=p?p:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";h=this.createVertex(null,null,null!=h?h:"",0,0,b*e,a*f,null!=d?d:"shape=table;childLayout=tableLayout;"+(null==h?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");d=mxUtils.getValue(this.getCellStyle(h),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);h.geometry.width+=d;h.geometry.height+=
-d;g=this.createVertex(null,null,"",0,d,b*e+d,f,g);h.insert(this.createParent(g,this.createVertex(null,null,"",d,0,e,f,m),b,e,0));return 1<a?(g.geometry.y=f+d,this.createParent(h,this.createParent(g,this.createVertex(null,null,"",d,0,e,f,p),b,e,0),a-1,0,f)):h};
-Graph.prototype.visitTableCells=function(a,b){var e=null,f=this.model.getChildCells(a,!0);a=this.getActualStartSize(a,!0);for(var h=0;h<f.length;h++){for(var d=this.getActualStartSize(f[h],!0),g=this.model.getChildCells(f[h],!0),m=this.getCellStyle(f[h],!0),p=null,k=[],u=0;u<g.length;u++){var w=this.getCellGeometry(g[u]),z={cell:g[u],rospan:1,colspan:1,row:h,col:u,geo:w};w=null!=w.alternateBounds?w.alternateBounds:w;z.point=new mxPoint(w.width+(null!=p?p.point.x:a.x+d.x),w.height+(null!=e&&null!=
-e[0]?e[0].point.y:a.y+d.y));z.actual=z;null!=e&&null!=e[u]&&1<e[u].rowspan?(z.rowspan=e[u].rowspan-1,z.colspan=e[u].colspan,z.actual=e[u].actual):null!=p&&1<p.colspan?(z.rowspan=p.rowspan,z.colspan=p.colspan-1,z.actual=p.actual):(p=this.getCurrentCellStyle(g[u],!0),null!=p&&(z.rowspan=parseInt(p.rowspan||1),z.colspan=parseInt(p.colspan||1)));p=1==mxUtils.getValue(m,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(m,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;b(z,g.length,
-f.length,a.x+(p?d.x:0),a.y+(p?d.y:0));k.push(z);p=z}e=k}};Graph.prototype.getTableLines=function(a,b,e){var f=[],h=[];(b||e)&&this.visitTableCells(a,mxUtils.bind(this,function(d,g,m,p,k){b&&d.row<m-1&&(null==f[d.row]&&(f[d.row]=[new mxPoint(p,d.point.y)]),1<d.rowspan&&f[d.row].push(null),f[d.row].push(d.point));e&&d.col<g-1&&(null==h[d.col]&&(h[d.col]=[new mxPoint(d.point.x,k)]),1<d.colspan&&h[d.col].push(null),h[d.col].push(d.point))}));return f.concat(h)};
+Graph.prototype.createCrossFunctionalSwimlane=function(a,b,e,f,h,d,g,m,q){e=null!=e?e:120;f=null!=f?f:120;g=null!=g?g:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;collapsible=0;recursiveResize=0;expand=0;";m=null!=m?m:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
+q=null!=q?q:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";h=this.createVertex(null,null,null!=h?h:"",0,0,b*e,a*f,null!=d?d:"shape=table;childLayout=tableLayout;"+(null==h?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");d=mxUtils.getValue(this.getCellStyle(h),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);h.geometry.width+=d;h.geometry.height+=
+d;g=this.createVertex(null,null,"",0,d,b*e+d,f,g);h.insert(this.createParent(g,this.createVertex(null,null,"",d,0,e,f,m),b,e,0));return 1<a?(g.geometry.y=f+d,this.createParent(h,this.createParent(g,this.createVertex(null,null,"",d,0,e,f,q),b,e,0),a-1,0,f)):h};
+Graph.prototype.visitTableCells=function(a,b){var e=null,f=this.model.getChildCells(a,!0);a=this.getActualStartSize(a,!0);for(var h=0;h<f.length;h++){for(var d=this.getActualStartSize(f[h],!0),g=this.model.getChildCells(f[h],!0),m=this.getCellStyle(f[h],!0),q=null,k=[],u=0;u<g.length;u++){var w=this.getCellGeometry(g[u]),z={cell:g[u],rospan:1,colspan:1,row:h,col:u,geo:w};w=null!=w.alternateBounds?w.alternateBounds:w;z.point=new mxPoint(w.width+(null!=q?q.point.x:a.x+d.x),w.height+(null!=e&&null!=
+e[0]?e[0].point.y:a.y+d.y));z.actual=z;null!=e&&null!=e[u]&&1<e[u].rowspan?(z.rowspan=e[u].rowspan-1,z.colspan=e[u].colspan,z.actual=e[u].actual):null!=q&&1<q.colspan?(z.rowspan=q.rowspan,z.colspan=q.colspan-1,z.actual=q.actual):(q=this.getCurrentCellStyle(g[u],!0),null!=q&&(z.rowspan=parseInt(q.rowspan||1),z.colspan=parseInt(q.colspan||1)));q=1==mxUtils.getValue(m,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(m,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;b(z,g.length,
+f.length,a.x+(q?d.x:0),a.y+(q?d.y:0));k.push(z);q=z}e=k}};Graph.prototype.getTableLines=function(a,b,e){var f=[],h=[];(b||e)&&this.visitTableCells(a,mxUtils.bind(this,function(d,g,m,q,k){b&&d.row<m-1&&(null==f[d.row]&&(f[d.row]=[new mxPoint(q,d.point.y)]),1<d.rowspan&&f[d.row].push(null),f[d.row].push(d.point));e&&d.col<g-1&&(null==h[d.col]&&(h[d.col]=[new mxPoint(d.point.x,k)]),1<d.colspan&&h[d.col].push(null),h[d.col].push(d.point))}));return f.concat(h)};
Graph.prototype.isTableCell=function(a){return this.model.isVertex(a)&&this.isTableRow(this.model.getParent(a))};Graph.prototype.isTableRow=function(a){return this.model.isVertex(a)&&this.isTable(this.model.getParent(a))};Graph.prototype.isTable=function(a){a=this.getCellStyle(a);return null!=a&&"tableLayout"==a.childLayout};Graph.prototype.isStack=function(a){a=this.getCellStyle(a);return null!=a&&"stackLayout"==a.childLayout};
Graph.prototype.isStackChild=function(a){return this.model.isVertex(a)&&this.isStack(this.model.getParent(a))};
-Graph.prototype.setTableRowHeight=function(a,b,e){e=null!=e?e:!0;var f=this.getModel();f.beginUpdate();try{var h=this.getCellGeometry(a);if(null!=h){h=h.clone();h.height+=b;f.setGeometry(a,h);var d=f.getParent(a),g=f.getChildCells(d,!0);if(!e){var m=mxUtils.indexOf(g,a);if(m<g.length-1){var p=g[m+1],k=this.getCellGeometry(p);null!=k&&(k=k.clone(),k.y+=b,k.height-=b,f.setGeometry(p,k))}}var u=this.getCellGeometry(d);null!=u&&(e||(e=a==g[g.length-1]),e&&(u=u.clone(),u.height+=b,f.setGeometry(d,u)))}}finally{f.endUpdate()}};
-Graph.prototype.setTableColumnWidth=function(a,b,e){e=null!=e?e:!1;var f=this.getModel(),h=f.getParent(a),d=f.getParent(h),g=f.getChildCells(h,!0);a=mxUtils.indexOf(g,a);var m=a==g.length-1;f.beginUpdate();try{for(var p=f.getChildCells(d,!0),k=0;k<p.length;k++){h=p[k];g=f.getChildCells(h,!0);var u=g[a],w=this.getCellGeometry(u);null!=w&&(w=w.clone(),w.width+=b,null!=w.alternateBounds&&(w.alternateBounds.width+=b),f.setGeometry(u,w));a<g.length-1&&(u=g[a+1],w=this.getCellGeometry(u),null!=w&&(w=w.clone(),
+Graph.prototype.setTableRowHeight=function(a,b,e){e=null!=e?e:!0;var f=this.getModel();f.beginUpdate();try{var h=this.getCellGeometry(a);if(null!=h){h=h.clone();h.height+=b;f.setGeometry(a,h);var d=f.getParent(a),g=f.getChildCells(d,!0);if(!e){var m=mxUtils.indexOf(g,a);if(m<g.length-1){var q=g[m+1],k=this.getCellGeometry(q);null!=k&&(k=k.clone(),k.y+=b,k.height-=b,f.setGeometry(q,k))}}var u=this.getCellGeometry(d);null!=u&&(e||(e=a==g[g.length-1]),e&&(u=u.clone(),u.height+=b,f.setGeometry(d,u)))}}finally{f.endUpdate()}};
+Graph.prototype.setTableColumnWidth=function(a,b,e){e=null!=e?e:!1;var f=this.getModel(),h=f.getParent(a),d=f.getParent(h),g=f.getChildCells(h,!0);a=mxUtils.indexOf(g,a);var m=a==g.length-1;f.beginUpdate();try{for(var q=f.getChildCells(d,!0),k=0;k<q.length;k++){h=q[k];g=f.getChildCells(h,!0);var u=g[a],w=this.getCellGeometry(u);null!=w&&(w=w.clone(),w.width+=b,null!=w.alternateBounds&&(w.alternateBounds.width+=b),f.setGeometry(u,w));a<g.length-1&&(u=g[a+1],w=this.getCellGeometry(u),null!=w&&(w=w.clone(),
w.x+=b,e||(w.width-=b,null!=w.alternateBounds&&(w.alternateBounds.width-=b)),f.setGeometry(u,w)))}if(m||e){var z=this.getCellGeometry(d);null!=z&&(z=z.clone(),z.width+=b,f.setGeometry(d,z))}null!=this.layoutManager&&this.layoutManager.executeLayout(d)}finally{f.endUpdate()}};function TableLayout(a){mxGraphLayout.call(this,a)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!1};
TableLayout.prototype.isVertexIgnored=function(a){return!this.graph.getModel().isVertex(a)||!this.graph.isCellVisible(a)};TableLayout.prototype.getSize=function(a,b){for(var e=0,f=0;f<a.length;f++)if(!this.isVertexIgnored(a[f])){var h=this.graph.getCellGeometry(a[f]);null!=h&&(e+=b?h.width:h.height)}return e};
TableLayout.prototype.getRowLayout=function(a,b){var e=this.graph.model.getChildCells(a,!0),f=this.graph.getActualStartSize(a,!0);a=this.getSize(e,!0);b=b-f.x-f.width;var h=[];f=f.x;for(var d=0;d<e.length;d++){var g=this.graph.getCellGeometry(e[d]);null!=g&&(f+=(null!=g.alternateBounds?g.alternateBounds.width:g.width)*b/a,h.push(Math.round(f)))}return h};
-TableLayout.prototype.layoutRow=function(a,b,e,f){var h=this.graph.getModel(),d=h.getChildCells(a,!0);a=this.graph.getActualStartSize(a,!0);var g=a.x,m=0;null!=b&&(b=b.slice(),b.splice(0,0,a.x));for(var p=0;p<d.length;p++){var k=this.graph.getCellGeometry(d[p]);null!=k&&(k=k.clone(),k.y=a.y,k.height=e-a.y-a.height,null!=b?(k.x=b[p],k.width=b[p+1]-k.x,p==d.length-1&&p<b.length-2&&(k.width=f-k.x-a.x-a.width)):(k.x=g,g+=k.width,p==d.length-1?k.width=f-a.x-a.width-m:m+=k.width),k.alternateBounds=new mxRectangle(0,
-0,k.width,k.height),h.setGeometry(d[p],k))}return m};
-TableLayout.prototype.execute=function(a){if(null!=a){var b=this.graph.getActualStartSize(a,!0),e=this.graph.getCellGeometry(a),f=this.graph.getCellStyle(a),h="1"==mxUtils.getValue(f,"resizeLastRow","0"),d="1"==mxUtils.getValue(f,"resizeLast","0");f="1"==mxUtils.getValue(f,"fixedRows","0");var g=this.graph.getModel(),m=0;g.beginUpdate();try{for(var p=e.height-b.y-b.height,k=e.width-b.x-b.width,u=g.getChildCells(a,!0),w=0;w<u.length;w++)g.setVisible(u[w],!0);var z=this.getSize(u,!1);if(0<p&&0<k&&0<
-u.length&&0<z){if(h){var C=this.graph.getCellGeometry(u[u.length-1]);null!=C&&(C=C.clone(),C.height=p-z+C.height,g.setGeometry(u[u.length-1],C))}var E=d?null:this.getRowLayout(u[0],k),D=[],G=b.y;for(w=0;w<u.length;w++)C=this.graph.getCellGeometry(u[w]),null!=C&&(C=C.clone(),C.x=b.x,C.width=k,C.y=Math.round(G),G=h||f?G+C.height:G+C.height/z*p,C.height=Math.round(G)-C.y,g.setGeometry(u[w],C)),m=Math.max(m,this.layoutRow(u[w],E,C.height,k,D));f&&p<z&&(e=e.clone(),e.height=G+b.height,g.setGeometry(a,
+TableLayout.prototype.layoutRow=function(a,b,e,f){var h=this.graph.getModel(),d=h.getChildCells(a,!0);a=this.graph.getActualStartSize(a,!0);var g=a.x,m=0;null!=b&&(b=b.slice(),b.splice(0,0,a.x));for(var q=0;q<d.length;q++){var k=this.graph.getCellGeometry(d[q]);null!=k&&(k=k.clone(),k.y=a.y,k.height=e-a.y-a.height,null!=b?(k.x=b[q],k.width=b[q+1]-k.x,q==d.length-1&&q<b.length-2&&(k.width=f-k.x-a.x-a.width)):(k.x=g,g+=k.width,q==d.length-1?k.width=f-a.x-a.width-m:m+=k.width),k.alternateBounds=new mxRectangle(0,
+0,k.width,k.height),h.setGeometry(d[q],k))}return m};
+TableLayout.prototype.execute=function(a){if(null!=a){var b=this.graph.getActualStartSize(a,!0),e=this.graph.getCellGeometry(a),f=this.graph.getCellStyle(a),h="1"==mxUtils.getValue(f,"resizeLastRow","0"),d="1"==mxUtils.getValue(f,"resizeLast","0");f="1"==mxUtils.getValue(f,"fixedRows","0");var g=this.graph.getModel(),m=0;g.beginUpdate();try{for(var q=e.height-b.y-b.height,k=e.width-b.x-b.width,u=g.getChildCells(a,!0),w=0;w<u.length;w++)g.setVisible(u[w],!0);var z=this.getSize(u,!1);if(0<q&&0<k&&0<
+u.length&&0<z){if(h){var C=this.graph.getCellGeometry(u[u.length-1]);null!=C&&(C=C.clone(),C.height=q-z+C.height,g.setGeometry(u[u.length-1],C))}var E=d?null:this.getRowLayout(u[0],k),D=[],G=b.y;for(w=0;w<u.length;w++)C=this.graph.getCellGeometry(u[w]),null!=C&&(C=C.clone(),C.x=b.x,C.width=k,C.y=Math.round(G),G=h||f?G+C.height:G+C.height/z*q,C.height=Math.round(G)-C.y,g.setGeometry(u[w],C)),m=Math.max(m,this.layoutRow(u[w],E,C.height,k,D));f&&q<z&&(e=e.clone(),e.height=G+b.height,g.setGeometry(a,
e));d&&k<m+Graph.minTableColumnWidth&&(e=e.clone(),e.width=m+b.width+b.x+Graph.minTableColumnWidth,g.setGeometry(a,e));this.graph.visitTableCells(a,mxUtils.bind(this,function(J){g.setVisible(J.cell,J.actual.cell==J.cell);if(J.actual.cell!=J.cell){if(J.actual.row==J.row){var L=null!=J.geo.alternateBounds?J.geo.alternateBounds:J.geo;J.actual.geo.width+=L.width}J.actual.col==J.col&&(L=null!=J.geo.alternateBounds?J.geo.alternateBounds:J.geo,J.actual.geo.height+=L.height)}}))}else for(w=0;w<u.length;w++)g.setVisible(u[w],
!1)}finally{g.endUpdate()}}};
(function(){var a=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){a.apply(this,arguments);this.validEdges=[]};var b=mxGraphView.prototype.validateCellState;mxGraphView.prototype.validateCellState=function(w,z){z=null!=z?z:!0;var C=this.getState(w);null!=C&&z&&this.graph.model.isEdge(C.cell)&&null!=C.style&&1!=C.style[mxConstants.STYLE_CURVED]&&!C.invalid&&this.updateLineJumps(C)&&this.graph.cellRenderer.redraw(C,!1,this.isRendering());C=b.apply(this,
@@ -2789,7 +2789,7 @@ U=T[P+2];var ia=mxUtils.intersection(Q.x,Q.y,L.x,L.y,Z.x,Z.y,V.x,V.y);if(null!=i
arguments);else{var E=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,D=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,G=mxUtils.getValue(this.style,"jumpStyle","none"),J=!0,L=null,Q=null,N=[],U=null;w.begin();for(var Y=0;Y<this.state.routedPoints.length;Y++){var P=this.state.routedPoints[Y],T=new mxPoint(P.x/this.scale,P.y/this.scale);0==Y?T=z[0]:Y==this.state.routedPoints.length-1&&(T=z[z.length-1]);var K=!1;if(null!=
L&&1==P.type){var V=this.state.routedPoints[Y+1];P=V.x/this.scale-T.x;V=V.y/this.scale-T.y;P=P*P+V*V;null==U&&(U=new mxPoint(T.x-L.x,T.y-L.y),Q=Math.sqrt(U.x*U.x+U.y*U.y),0<Q?(U.x=U.x*D/Q,U.y=U.y*D/Q):U=null);P>D*D&&0<Q&&(P=L.x-T.x,V=L.y-T.y,P=P*P+V*V,P>D*D&&(K=new mxPoint(T.x-U.x,T.y-U.y),P=new mxPoint(T.x+U.x,T.y+U.y),N.push(K),this.addPoints(w,N,C,E,!1,null,J),N=0>Math.round(U.x)||0==Math.round(U.x)&&0>=Math.round(U.y)?1:-1,J=!1,"sharp"==G?(w.lineTo(K.x-U.y*N,K.y+U.x*N),w.lineTo(P.x-U.y*N,P.y+
U.x*N),w.lineTo(P.x,P.y)):"line"==G?(w.moveTo(K.x+U.y*N,K.y-U.x*N),w.lineTo(K.x-U.y*N,K.y+U.x*N),w.moveTo(P.x-U.y*N,P.y+U.x*N),w.lineTo(P.x+U.y*N,P.y-U.x*N),w.moveTo(P.x,P.y)):"arc"==G?(N*=1.3,w.curveTo(K.x-U.y*N,K.y+U.x*N,P.x-U.y*N,P.y+U.x*N,P.x,P.y)):(w.moveTo(P.x,P.y),J=!0),N=[P],K=!0))}else U=null;K||(N.push(T),L=T)}this.addPoints(w,N,C,E,!1,null,J);w.stroke()}};var m=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=function(w,z,C,E){return null!=z&&"centerPerimeter"==
-z.style[mxConstants.STYLE_PERIMETER]?new mxPoint(z.getCenterX(),z.getCenterY()):m.apply(this,arguments)};var p=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(w,z,C,E){if(null==z||null==w||"1"!=z.style.snapToPoint&&"1"!=w.style.snapToPoint)p.apply(this,arguments);else{z=this.getTerminalPort(w,z,E);var D=this.getNextPoint(w,C,E),G=this.graph.isOrthogonal(w),J=mxUtils.toRadians(Number(z.style[mxConstants.STYLE_ROTATION]||"0")),L=new mxPoint(z.getCenterX(),
+z.style[mxConstants.STYLE_PERIMETER]?new mxPoint(z.getCenterX(),z.getCenterY()):m.apply(this,arguments)};var q=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(w,z,C,E){if(null==z||null==w||"1"!=z.style.snapToPoint&&"1"!=w.style.snapToPoint)q.apply(this,arguments);else{z=this.getTerminalPort(w,z,E);var D=this.getNextPoint(w,C,E),G=this.graph.isOrthogonal(w),J=mxUtils.toRadians(Number(z.style[mxConstants.STYLE_ROTATION]||"0")),L=new mxPoint(z.getCenterX(),
z.getCenterY());if(0!=J){var Q=Math.cos(-J),N=Math.sin(-J);D=mxUtils.getRotatedPoint(D,Q,N,L)}Q=parseFloat(w.style[mxConstants.STYLE_PERIMETER_SPACING]||0);Q+=parseFloat(w.style[E?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);D=this.getPerimeterPoint(z,D,0==J&&G,Q);0!=J&&(Q=Math.cos(J),N=Math.sin(J),D=mxUtils.getRotatedPoint(D,Q,N,L));w.setAbsoluteTerminalPoint(this.snapToAnchorPoint(w,z,C,E,D),E)}};mxGraphView.prototype.snapToAnchorPoint=function(w,z,
C,E,D){if(null!=z&&null!=w){w=this.graph.getAllConnectionConstraints(z);E=C=null;if(null!=w)for(var G=0;G<w.length;G++){var J=this.graph.getConnectionPoint(z,w[G]);if(null!=J){var L=(J.x-D.x)*(J.x-D.x)+(J.y-D.y)*(J.y-D.y);if(null==E||L<E)C=J,E=L}}null!=C&&(D=C)}return D};var k=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(w,z,C){var E=k.apply(this,arguments);"1"==w.getAttribute("placeholders")&&null!=C.state&&(E=C.state.view.graph.replacePlaceholders(C.state.cell,
E));return E};var u=mxCellRenderer.prototype.createShape;mxCellRenderer.prototype.createShape=function(w){if(null!=w.style&&"undefined"!==typeof pako){var z=mxUtils.getValue(w.style,mxConstants.STYLE_SHAPE,null);if(null!=z&&"string"===typeof z&&"stencil("==z.substring(0,8))try{var C=z.substring(8,z.length-1),E=mxUtils.parseXml(Graph.decompress(C));return new mxShape(new mxStencil(E.documentElement))}catch(D){null!=window.console&&console.log("Error in shape: "+D)}}return u.apply(this,arguments)}})();
@@ -2801,156 +2801,156 @@ mxStencilRegistry.loadStencilSet=function(a,b,e,f){var h=mxStencilRegistry.packa
h.documentElement&&mxStencilRegistry.parseStencilSet(h.documentElement,b,d)}};mxStencilRegistry.loadStencil=function(a,b){if(null!=b)mxUtils.get(a,mxUtils.bind(this,function(e){b(200<=e.getStatus()&&299>=e.getStatus()?e.getXml():null)}),mxUtils.bind(this,function(e){b(null)}));else return mxUtils.load(a).getXml()};mxStencilRegistry.parseStencilSets=function(a){for(var b=0;b<a.length;b++)mxStencilRegistry.parseStencilSet(mxUtils.parseXml(a[b]).documentElement)};
mxStencilRegistry.parseStencilSet=function(a,b,e){if("stencils"==a.nodeName)for(var f=a.firstChild;null!=f;)"shapes"==f.nodeName&&mxStencilRegistry.parseStencilSet(f,b,e),f=f.nextSibling;else{e=null!=e?e:!0;f=a.firstChild;var h="";a=a.getAttribute("name");for(null!=a&&(h=a+".");null!=f;){if(f.nodeType==mxConstants.NODETYPE_ELEMENT&&(a=f.getAttribute("name"),null!=a)){h=h.toLowerCase();var d=a.replace(/ /g,"_");e&&mxStencilRegistry.addStencil(h+d.toLowerCase(),new mxStencil(f));if(null!=b){var g=f.getAttribute("w"),
m=f.getAttribute("h");g=null==g?80:parseInt(g,10);m=null==m?80:parseInt(m,10);b(h,d,a,g,m)}}f=f.nextSibling}}};
-"undefined"!==typeof mxVertexHandler&&function(){function a(){var q=document.createElement("div");q.className="geHint";q.style.whiteSpace="nowrap";q.style.position="absolute";return q}function b(q,A){switch(A){case mxConstants.POINTS:return q;case mxConstants.MILLIMETERS:return(q/mxConstants.PIXELS_PER_MM).toFixed(1);case mxConstants.METERS:return(q/(1E3*mxConstants.PIXELS_PER_MM)).toFixed(4);case mxConstants.INCHES:return(q/mxConstants.PIXELS_PER_INCH).toFixed(3)}}mxConstants.HANDLE_FILLCOLOR="#29b6f2";
+"undefined"!==typeof mxVertexHandler&&function(){function a(){var p=document.createElement("div");p.className="geHint";p.style.whiteSpace="nowrap";p.style.position="absolute";return p}function b(p,A){switch(A){case mxConstants.POINTS:return p;case mxConstants.MILLIMETERS:return(p/mxConstants.PIXELS_PER_MM).toFixed(1);case mxConstants.METERS:return(p/(1E3*mxConstants.PIXELS_PER_MM)).toFixed(4);case mxConstants.INCHES:return(p/mxConstants.PIXELS_PER_INCH).toFixed(3)}}mxConstants.HANDLE_FILLCOLOR="#29b6f2";
mxConstants.HANDLE_STROKECOLOR="#0088cf";mxConstants.VERTEX_SELECTION_COLOR="#00a8ff";mxConstants.OUTLINE_COLOR="#00a8ff";mxConstants.OUTLINE_HANDLE_FILLCOLOR="#99ccff";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#00a8ff";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.EDGE_SELECTION_COLOR="#00a8ff";mxConstants.DEFAULT_VALID_COLOR="#00a8ff";mxConstants.LABEL_HANDLE_FILLCOLOR="#cee7ff";mxConstants.GUIDE_COLOR="#0088cf";mxConstants.HIGHLIGHT_STROKEWIDTH=5;mxConstants.HIGHLIGHT_OPACITY=50;mxConstants.HIGHLIGHT_SIZE=
5;mxWindow.prototype.closeImage=Graph.createSvgImage(18,10,'<path d="M 5 1 L 13 9 M 13 1 L 5 9" stroke="#707070" stroke-width="2"/>').src;mxWindow.prototype.minimizeImage=Graph.createSvgImage(14,10,'<path d="M 3 7 L 7 3 L 11 7" stroke="#707070" stroke-width="2" fill="none"/>').src;mxWindow.prototype.normalizeImage=Graph.createSvgImage(14,10,'<path d="M 3 3 L 7 7 L 11 3" stroke="#707070" stroke-width="2" fill="none"/>').src;mxWindow.prototype.resizeImage=Graph.createSvgImage(10,10,'<path d="Z" stroke="#C0C0C0" stroke-width="1" fill="none"/>').src;
-mxEdgeHandler.prototype.snapToTerminals=!0;mxGraphHandler.prototype.guidesEnabled=!0;mxGraphHandler.prototype.removeEmptyParents=!0;mxRubberband.prototype.fadeOut=!0;mxGuide.prototype.isEnabledForEvent=function(q){return!mxEvent.isAltDown(q)||mxEvent.isShiftDown(q)};var e=mxGraphLayout.prototype.isVertexIgnored;mxGraphLayout.prototype.isVertexIgnored=function(q){return e.apply(this,arguments)||this.graph.isTableRow(q)||this.graph.isTableCell(q)};var f=mxGraphLayout.prototype.isEdgeIgnored;mxGraphLayout.prototype.isEdgeIgnored=
-function(q){return f.apply(this,arguments)||this.graph.isEdgeIgnored(q)};var h=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(q){return this.graph.isCloneEvent(q)!=h.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var q=new mxEllipse(null,this.highlightColor,this.highlightColor,0);q.opacity=mxConstants.HIGHLIGHT_OPACITY;return q};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor=
-"crosshair";mxConnectionHandler.prototype.createEdgeState=function(q){q=this.graph.createCurrentEdgeStyle();q=this.graph.createEdge(null,null,null,null,null,q);q=new mxCellState(this.graph.view,q,this.graph.getCellStyle(q));for(var A in this.graph.currentEdgeStyle)q.style[A]=this.graph.currentEdgeStyle[A];if(null!=this.previous){var B=this.previous.style.newEdgeStyle;if(null!=B)try{var F=JSON.parse(B);for(A in F)q.style[A]=F[A]}catch(M){}}q.style=this.graph.postProcessCellStyle(q.cell,q.style);return q};
-var d=mxConnectionHandler.prototype.createShape;mxConnectionHandler.prototype.createShape=function(){var q=d.apply(this,arguments);q.isDashed="1"==this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED];return q};mxConnectionHandler.prototype.updatePreview=function(q){};var g=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var q=g.apply(this,arguments),A=q.getCell;q.getCell=mxUtils.bind(this,function(B){var F=A.apply(this,arguments);this.error=null;return F});
-return q};Graph.prototype.defaultVertexStyle={};Graph.prototype.defaultEdgeStyle={edgeStyle:"orthogonalEdgeStyle",rounded:"0",jettySize:"auto",orthogonalLoop:"1"};Graph.prototype.createCurrentEdgeStyle=function(){for(var q="edgeStyle="+(this.currentEdgeStyle.edgeStyle||"none")+";",A="shape curved rounded comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification comicStyle jumpStyle jumpSize".split(" "),B=0;B<A.length;B++)null!=
-this.currentEdgeStyle[A[B]]&&(q+=A[B]+"="+this.currentEdgeStyle[A[B]]+";");null!=this.currentEdgeStyle.orthogonalLoop?q+="orthogonalLoop="+this.currentEdgeStyle.orthogonalLoop+";":null!=Graph.prototype.defaultEdgeStyle.orthogonalLoop&&(q+="orthogonalLoop="+Graph.prototype.defaultEdgeStyle.orthogonalLoop+";");null!=this.currentEdgeStyle.jettySize?q+="jettySize="+this.currentEdgeStyle.jettySize+";":null!=Graph.prototype.defaultEdgeStyle.jettySize&&(q+="jettySize="+Graph.prototype.defaultEdgeStyle.jettySize+
-";");"elbowEdgeStyle"==this.currentEdgeStyle.edgeStyle&&null!=this.currentEdgeStyle.elbow&&(q+="elbow="+this.currentEdgeStyle.elbow+";");return q=null!=this.currentEdgeStyle.html?q+("html="+this.currentEdgeStyle.html+";"):q+"html=1;"};Graph.prototype.getPagePadding=function(){return new mxPoint(0,0)};Graph.prototype.loadStylesheet=function(){var q=null!=this.themes?this.themes[this.defaultThemeName]:mxStyleRegistry.dynamicLoading?mxUtils.load(STYLE_PATH+"/default.xml").getDocumentElement():null;null!=
-q&&(new mxCodec(q.ownerDocument)).decode(q,this.getStylesheet())};Graph.prototype.createCellLookup=function(q,A){A=null!=A?A:{};for(var B=0;B<q.length;B++){var F=q[B];A[mxObjectIdentity.get(F)]=F.getId();for(var M=this.model.getChildCount(F),R=0;R<M;R++)this.createCellLookup([this.model.getChildAt(F,R)],A)}return A};Graph.prototype.createCellMapping=function(q,A,B){B=null!=B?B:{};for(var F in q){var M=A[F];null==B[M]&&(B[M]=q[F].getId()||"")}return B};Graph.prototype.importGraphModel=function(q,A,
-B,F){A=null!=A?A:0;B=null!=B?B:0;var M=new mxCodec(q.ownerDocument),R=new mxGraphModel;M.decode(q,R);q=[];M={};var W={},ha=R.getChildren(this.cloneCell(R.root,this.isCloneInvalidEdges(),M));if(null!=ha){var fa=this.createCellLookup([R.root]);ha=ha.slice();this.model.beginUpdate();try{if(1!=ha.length||this.isCellLocked(this.getDefaultParent()))for(R=0;R<ha.length;R++)ja=this.model.getChildren(this.moveCells([ha[R]],A,B,!1,this.model.getRoot())[0]),null!=ja&&(q=q.concat(ja));else{var ja=R.getChildren(ha[0]);
-null!=ja&&(q=this.moveCells(ja,A,B,!1,this.getDefaultParent()),W[R.getChildAt(R.root,0).getId()]=this.getDefaultParent().getId())}if(null!=q&&(this.createCellMapping(M,fa,W),this.updateCustomLinks(W,q),F)){this.isGridEnabled()&&(A=this.snap(A),B=this.snap(B));var va=this.getBoundingBoxFromGeometry(q,!0);null!=va&&this.moveCells(q,A-va.x,B-va.y)}}finally{this.model.endUpdate()}}return q};Graph.prototype.encodeCells=function(q){for(var A={},B=this.cloneCells(q,null,A),F=new mxDictionary,M=0;M<q.length;M++)F.put(q[M],
-!0);var R=new mxCodec,W=new mxGraphModel,ha=W.getChildAt(W.getRoot(),0);for(M=0;M<B.length;M++){W.add(ha,B[M]);var fa=this.view.getState(q[M]);if(null!=fa){var ja=this.getCellGeometry(B[M]);null!=ja&&ja.relative&&!this.model.isEdge(q[M])&&null==F.get(this.model.getParent(q[M]))&&(ja.offset=null,ja.relative=!1,ja.x=fa.x/fa.view.scale-fa.view.translate.x,ja.y=fa.y/fa.view.scale-fa.view.translate.y)}}this.updateCustomLinks(this.createCellMapping(A,this.createCellLookup(q)),B);return R.encode(W)};Graph.prototype.isSwimlane=
-function(q,A){var B=null;null==q||this.model.isEdge(q)||this.model.getParent(q)==this.model.getRoot()||(B=this.getCurrentCellStyle(q,A)[mxConstants.STYLE_SHAPE]);return B==mxConstants.SHAPE_SWIMLANE||"table"==B||"tableRow"==B};var m=Graph.prototype.isCellEditable;Graph.prototype.isCellEditable=function(q){return null!=q&&m.apply(this,arguments)?this.isTableCell(q)||this.isTableRow(q)?this.isCellEditable(this.model.getParent(q)):!0:!1};var p=Graph.prototype.isCellMovable;Graph.prototype.isCellMovable=
-function(q){return null!=q&&p.apply(this,arguments)?this.isTableCell(q)||this.isTableRow(q)?this.isCellMovable(this.model.getParent(q)):!0:!1};var k=Graph.prototype.isExtendParent;Graph.prototype.isExtendParent=function(q){var A=this.model.getParent(q);if(null!=A){var B=this.getCurrentCellStyle(A);if(null!=B.expand)return"0"!=B.expand}return k.apply(this,arguments)&&(null==A||!this.isTable(A))};var u=Graph.prototype.splitEdge;Graph.prototype.splitEdge=function(q,A,B,F,M,R,W,ha){null==ha&&(ha=this.model.getParent(q),
-this.isTable(ha)||this.isTableRow(ha))&&(ha=this.getCellAt(R,W,null,!0,!1));B=null;this.model.beginUpdate();try{B=u.apply(this,[q,A,B,F,M,R,W,ha]);this.model.setValue(B,"");var fa=this.getChildCells(B,!0);for(A=0;A<fa.length;A++){var ja=this.getCellGeometry(fa[A]);null!=ja&&ja.relative&&0<ja.x&&this.model.remove(fa[A])}var va=this.getChildCells(q,!0);for(A=0;A<va.length;A++)ja=this.getCellGeometry(va[A]),null!=ja&&ja.relative&&0>=ja.x&&this.model.remove(va[A]);var Ma=this.model.getTerminal(B,!1);
-if(null!=Ma){var Na=this.getCurrentCellStyle(Ma);null!=Na&&"1"==Na.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[q]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[q]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[B]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[B]))}}finally{this.model.endUpdate()}return B};var w=Graph.prototype.selectCell;Graph.prototype.selectCell=function(q,A,B){if(A||B)w.apply(this,arguments);else{var F=this.getSelectionCell(),M=null,R=[],W=mxUtils.bind(this,
-function(ha){if(null!=this.view.getState(ha)&&(this.model.isVertex(ha)||this.model.isEdge(ha)))if(R.push(ha),ha==F)M=R.length-1;else if(q&&null==F&&0<R.length||null!=M&&q&&R.length>M||!q&&0<M)return;for(var fa=0;fa<this.model.getChildCount(ha);fa++)W(this.model.getChildAt(ha,fa))});W(this.model.root);0<R.length&&(M=null!=M?mxUtils.mod(M+(q?1:-1),R.length):0,this.setSelectionCell(R[M]))}};Graph.prototype.swapShapes=function(q,A){if(this.model.isVertex(q)&&this.model.isVertex(A)&&2==this.getMovableCells([q,
-A]).length){var B=this.getCellGeometry(q),F=this.getCellGeometry(A);if(null!=B&&null!=F){var M=B.clone(),R=F.clone();this.model.beginUpdate();try{M.x=F.getCenterX()-B.width/2,M.y=F.getCenterY()-B.height/2,R.x=B.getCenterX()-F.width/2,R.y=B.getCenterY()-F.height/2,this.model.setGeometry(q,M),this.model.setGeometry(A,R)}finally{this.model.endUpdate()}}}};var z=Graph.prototype.moveCells;Graph.prototype.moveCells=function(q,A,B,F,M,R,W){W=null!=W?W:{};if(this.isTable(M)){for(var ha=[],fa=0;fa<q.length;fa++)this.isTable(q[fa])?
-ha=ha.concat(this.model.getChildCells(q[fa],!0).reverse()):ha.push(q[fa]);q=ha}this.model.beginUpdate();try{ha=[];for(fa=0;fa<q.length;fa++)if(null!=M&&this.isTableRow(q[fa])){var ja=this.model.getParent(q[fa]),va=this.getCellGeometry(q[fa]);this.isTable(ja)&&ha.push(ja);if(null!=ja&&null!=va&&this.isTable(ja)&&this.isTable(M)&&(F||ja!=M)){if(!F){var Ma=this.getCellGeometry(ja);null!=Ma&&(Ma=Ma.clone(),Ma.height-=va.height,this.model.setGeometry(ja,Ma))}Ma=this.getCellGeometry(M);null!=Ma&&(Ma=Ma.clone(),
-Ma.height+=va.height,this.model.setGeometry(M,Ma));var Na=this.model.getChildCells(M,!0);if(0<Na.length){q[fa]=F?this.cloneCell(q[fa]):q[fa];var ya=this.model.getChildCells(q[fa],!0),Ha=this.model.getChildCells(Na[0],!0),wa=Ha.length-ya.length;if(0<wa)for(var ua=0;ua<wa;ua++){var Va=this.cloneCell(ya[ya.length-1]);null!=Va&&(Va.value="",this.model.add(q[fa],Va))}else if(0>wa)for(ua=0;ua>wa;ua--)this.model.remove(ya[ya.length+ua-1]);ya=this.model.getChildCells(q[fa],!0);for(ua=0;ua<Ha.length;ua++){var Qa=
-this.getCellGeometry(Ha[ua]),Ka=this.getCellGeometry(ya[ua]);null!=Qa&&null!=Ka&&(Ka=Ka.clone(),Ka.width=Qa.width,this.model.setGeometry(ya[ua],Ka))}}}}var Ua=z.apply(this,arguments);for(fa=0;fa<ha.length;fa++)!F&&this.model.contains(ha[fa])&&0==this.model.getChildCount(ha[fa])&&this.model.remove(ha[fa]);F&&this.updateCustomLinks(this.createCellMapping(W,this.createCellLookup(q)),Ua)}finally{this.model.endUpdate()}return Ua};var C=Graph.prototype.removeCells;Graph.prototype.removeCells=function(q,
-A){var B=[];this.model.beginUpdate();try{for(var F=0;F<q.length;F++)if(this.isTableCell(q[F])){var M=this.model.getParent(q[F]),R=this.model.getParent(M);1==this.model.getChildCount(M)&&1==this.model.getChildCount(R)?0>mxUtils.indexOf(q,R)&&0>mxUtils.indexOf(B,R)&&B.push(R):this.labelChanged(q[F],"")}else{if(this.isTableRow(q[F])&&(R=this.model.getParent(q[F]),0>mxUtils.indexOf(q,R)&&0>mxUtils.indexOf(B,R))){for(var W=this.model.getChildCells(R,!0),ha=0,fa=0;fa<W.length;fa++)0<=mxUtils.indexOf(q,
-W[fa])&&ha++;ha==W.length&&B.push(R)}B.push(q[F])}B=C.apply(this,[B,A])}finally{this.model.endUpdate()}return B};Graph.prototype.updateCustomLinks=function(q,A,B){B=null!=B?B:new Graph;for(var F=0;F<A.length;F++)null!=A[F]&&B.updateCustomLinksForCell(q,A[F],B)};Graph.prototype.updateCustomLinksForCell=function(q,A){this.doUpdateCustomLinksForCell(q,A);for(var B=this.model.getChildCount(A),F=0;F<B;F++)this.updateCustomLinksForCell(q,this.model.getChildAt(A,F))};Graph.prototype.doUpdateCustomLinksForCell=
-function(q,A){};Graph.prototype.getAllConnectionConstraints=function(q,A){if(null!=q){A=mxUtils.getValue(q.style,"points",null);if(null!=A){q=[];try{var B=JSON.parse(A);for(A=0;A<B.length;A++){var F=B[A];q.push(new mxConnectionConstraint(new mxPoint(F[0],F[1]),2<F.length?"0"!=F[2]:!0,null,3<F.length?F[3]:0,4<F.length?F[4]:0))}}catch(R){}return q}if(null!=q.shape&&null!=q.shape.bounds){F=q.shape.direction;A=q.shape.bounds;var M=q.shape.scale;B=A.width/M;A=A.height/M;if(F==mxConstants.DIRECTION_NORTH||
-F==mxConstants.DIRECTION_SOUTH)F=B,B=A,A=F;A=q.shape.getConstraints(q.style,B,A);if(null!=A)return A;if(null!=q.shape.stencil&&null!=q.shape.stencil.constraints)return q.shape.stencil.constraints;if(null!=q.shape.constraints)return q.shape.constraints}}return null};Graph.prototype.flipEdge=function(q){if(null!=q){var A=this.getCurrentCellStyle(q);A=mxUtils.getValue(A,mxConstants.STYLE_ELBOW,mxConstants.ELBOW_HORIZONTAL)==mxConstants.ELBOW_HORIZONTAL?mxConstants.ELBOW_VERTICAL:mxConstants.ELBOW_HORIZONTAL;
-this.setCellStyles(mxConstants.STYLE_ELBOW,A,[q])}};Graph.prototype.isValidRoot=function(q){for(var A=this.model.getChildCount(q),B=0,F=0;F<A;F++){var M=this.model.getChildAt(q,F);this.model.isVertex(M)&&(M=this.getCellGeometry(M),null==M||M.relative||B++)}return 0<B||this.isContainer(q)};Graph.prototype.isValidDropTarget=function(q,A,B){for(var F=this.getCurrentCellStyle(q),M=!0,R=!0,W=0;W<A.length&&R;W++)M=M&&this.isTable(A[W]),R=R&&this.isTableRow(A[W]);return!this.isCellLocked(q)&&(this.isTargetShape(q,
-A,B)||("1"!=mxUtils.getValue(F,"part","0")||this.isContainer(q))&&"0"!=mxUtils.getValue(F,"dropTarget","1")&&(mxGraph.prototype.isValidDropTarget.apply(this,arguments)||this.isContainer(q))&&!this.isTableRow(q)&&(!this.isTable(q)||R||M))};Graph.prototype.createGroupCell=function(){var q=mxGraph.prototype.createGroupCell.apply(this,arguments);q.setStyle("group");return q};Graph.prototype.isExtendParentsOnAdd=function(q){var A=mxGraph.prototype.isExtendParentsOnAdd.apply(this,arguments);if(A&&null!=
-q&&null!=this.layoutManager){var B=this.model.getParent(q);null!=B&&(B=this.layoutManager.getLayout(B),null!=B&&B.constructor==mxStackLayout&&(A=!1))}return A};Graph.prototype.getPreferredSizeForCell=function(q,A,B){B=null!=B?B:this.gridEnabled;var F=mxGraph.prototype.getPreferredSizeForCell.apply(this,arguments);null!=F&&(F.width+=10,F.height+=4,B&&(F.width=this.snap(F.width),F.height=this.snap(F.height)));return F};Graph.prototype.turnShapes=function(q,A){var B=this.getModel(),F=[];B.beginUpdate();
-try{for(var M=0;M<q.length;M++){var R=q[M];if(B.isEdge(R)){var W=B.getTerminal(R,!0),ha=B.getTerminal(R,!1);B.setTerminal(R,ha,!0);B.setTerminal(R,W,!1);var fa=B.getGeometry(R);if(null!=fa){fa=fa.clone();null!=fa.points&&fa.points.reverse();var ja=fa.getTerminalPoint(!0),va=fa.getTerminalPoint(!1);fa.setTerminalPoint(ja,!1);fa.setTerminalPoint(va,!0);B.setGeometry(R,fa);var Ma=this.view.getState(R),Na=this.view.getState(W),ya=this.view.getState(ha);if(null!=Ma){var Ha=null!=Na?this.getConnectionConstraint(Ma,
+mxEdgeHandler.prototype.snapToTerminals=!0;mxGraphHandler.prototype.guidesEnabled=!0;mxGraphHandler.prototype.removeEmptyParents=!0;mxRubberband.prototype.fadeOut=!0;mxGuide.prototype.isEnabledForEvent=function(p){return!mxEvent.isAltDown(p)||mxEvent.isShiftDown(p)};var e=mxGraphLayout.prototype.isVertexIgnored;mxGraphLayout.prototype.isVertexIgnored=function(p){return e.apply(this,arguments)||this.graph.isTableRow(p)||this.graph.isTableCell(p)};var f=mxGraphLayout.prototype.isEdgeIgnored;mxGraphLayout.prototype.isEdgeIgnored=
+function(p){return f.apply(this,arguments)||this.graph.isEdgeIgnored(p)};var h=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(p){return this.graph.isCloneEvent(p)!=h.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var p=new mxEllipse(null,this.highlightColor,this.highlightColor,0);p.opacity=mxConstants.HIGHLIGHT_OPACITY;return p};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor=
+"crosshair";mxConnectionHandler.prototype.createEdgeState=function(p){p=this.graph.createCurrentEdgeStyle();p=this.graph.createEdge(null,null,null,null,null,p);p=new mxCellState(this.graph.view,p,this.graph.getCellStyle(p));for(var A in this.graph.currentEdgeStyle)p.style[A]=this.graph.currentEdgeStyle[A];if(null!=this.previous){var B=this.previous.style.newEdgeStyle;if(null!=B)try{var F=JSON.parse(B);for(A in F)p.style[A]=F[A]}catch(M){}}p.style=this.graph.postProcessCellStyle(p.cell,p.style);return p};
+var d=mxConnectionHandler.prototype.createShape;mxConnectionHandler.prototype.createShape=function(){var p=d.apply(this,arguments);p.isDashed="1"==this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED];return p};mxConnectionHandler.prototype.updatePreview=function(p){};var g=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var p=g.apply(this,arguments),A=p.getCell;p.getCell=mxUtils.bind(this,function(B){var F=A.apply(this,arguments);this.error=null;return F});
+return p};Graph.prototype.defaultVertexStyle={};Graph.prototype.defaultEdgeStyle={edgeStyle:"orthogonalEdgeStyle",rounded:"0",jettySize:"auto",orthogonalLoop:"1"};Graph.prototype.createCurrentEdgeStyle=function(){for(var p="edgeStyle="+(this.currentEdgeStyle.edgeStyle||"none")+";",A="shape curved rounded comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification comicStyle jumpStyle jumpSize".split(" "),B=0;B<A.length;B++)null!=
+this.currentEdgeStyle[A[B]]&&(p+=A[B]+"="+this.currentEdgeStyle[A[B]]+";");null!=this.currentEdgeStyle.orthogonalLoop?p+="orthogonalLoop="+this.currentEdgeStyle.orthogonalLoop+";":null!=Graph.prototype.defaultEdgeStyle.orthogonalLoop&&(p+="orthogonalLoop="+Graph.prototype.defaultEdgeStyle.orthogonalLoop+";");null!=this.currentEdgeStyle.jettySize?p+="jettySize="+this.currentEdgeStyle.jettySize+";":null!=Graph.prototype.defaultEdgeStyle.jettySize&&(p+="jettySize="+Graph.prototype.defaultEdgeStyle.jettySize+
+";");"elbowEdgeStyle"==this.currentEdgeStyle.edgeStyle&&null!=this.currentEdgeStyle.elbow&&(p+="elbow="+this.currentEdgeStyle.elbow+";");return p=null!=this.currentEdgeStyle.html?p+("html="+this.currentEdgeStyle.html+";"):p+"html=1;"};Graph.prototype.getPagePadding=function(){return new mxPoint(0,0)};Graph.prototype.loadStylesheet=function(){var p=null!=this.themes?this.themes[this.defaultThemeName]:mxStyleRegistry.dynamicLoading?mxUtils.load(STYLE_PATH+"/default.xml").getDocumentElement():null;null!=
+p&&(new mxCodec(p.ownerDocument)).decode(p,this.getStylesheet())};Graph.prototype.createCellLookup=function(p,A){A=null!=A?A:{};for(var B=0;B<p.length;B++){var F=p[B];A[mxObjectIdentity.get(F)]=F.getId();for(var M=this.model.getChildCount(F),R=0;R<M;R++)this.createCellLookup([this.model.getChildAt(F,R)],A)}return A};Graph.prototype.createCellMapping=function(p,A,B){B=null!=B?B:{};for(var F in p){var M=A[F];null==B[M]&&(B[M]=p[F].getId()||"")}return B};Graph.prototype.importGraphModel=function(p,A,
+B,F){A=null!=A?A:0;B=null!=B?B:0;var M=new mxCodec(p.ownerDocument),R=new mxGraphModel;M.decode(p,R);p=[];M={};var W={},ha=R.getChildren(this.cloneCell(R.root,this.isCloneInvalidEdges(),M));if(null!=ha){var fa=this.createCellLookup([R.root]);ha=ha.slice();this.model.beginUpdate();try{if(1!=ha.length||this.isCellLocked(this.getDefaultParent()))for(R=0;R<ha.length;R++)ja=this.model.getChildren(this.moveCells([ha[R]],A,B,!1,this.model.getRoot())[0]),null!=ja&&(p=p.concat(ja));else{var ja=R.getChildren(ha[0]);
+null!=ja&&(p=this.moveCells(ja,A,B,!1,this.getDefaultParent()),W[R.getChildAt(R.root,0).getId()]=this.getDefaultParent().getId())}if(null!=p&&(this.createCellMapping(M,fa,W),this.updateCustomLinks(W,p),F)){this.isGridEnabled()&&(A=this.snap(A),B=this.snap(B));var va=this.getBoundingBoxFromGeometry(p,!0);null!=va&&this.moveCells(p,A-va.x,B-va.y)}}finally{this.model.endUpdate()}}return p};Graph.prototype.encodeCells=function(p){for(var A={},B=this.cloneCells(p,null,A),F=new mxDictionary,M=0;M<p.length;M++)F.put(p[M],
+!0);var R=new mxCodec,W=new mxGraphModel,ha=W.getChildAt(W.getRoot(),0);for(M=0;M<B.length;M++){W.add(ha,B[M]);var fa=this.view.getState(p[M]);if(null!=fa){var ja=this.getCellGeometry(B[M]);null!=ja&&ja.relative&&!this.model.isEdge(p[M])&&null==F.get(this.model.getParent(p[M]))&&(ja.offset=null,ja.relative=!1,ja.x=fa.x/fa.view.scale-fa.view.translate.x,ja.y=fa.y/fa.view.scale-fa.view.translate.y)}}this.updateCustomLinks(this.createCellMapping(A,this.createCellLookup(p)),B);return R.encode(W)};Graph.prototype.isSwimlane=
+function(p,A){var B=null;null==p||this.model.isEdge(p)||this.model.getParent(p)==this.model.getRoot()||(B=this.getCurrentCellStyle(p,A)[mxConstants.STYLE_SHAPE]);return B==mxConstants.SHAPE_SWIMLANE||"table"==B||"tableRow"==B};var m=Graph.prototype.isCellEditable;Graph.prototype.isCellEditable=function(p){return null!=p&&m.apply(this,arguments)?this.isTableCell(p)||this.isTableRow(p)?this.isCellEditable(this.model.getParent(p)):!0:!1};var q=Graph.prototype.isCellMovable;Graph.prototype.isCellMovable=
+function(p){return null!=p&&q.apply(this,arguments)?this.isTableCell(p)||this.isTableRow(p)?this.isCellMovable(this.model.getParent(p)):!0:!1};var k=Graph.prototype.isExtendParent;Graph.prototype.isExtendParent=function(p){var A=this.model.getParent(p);if(null!=A){var B=this.getCurrentCellStyle(A);if(null!=B.expand)return"0"!=B.expand}return k.apply(this,arguments)&&(null==A||!this.isTable(A))};var u=Graph.prototype.splitEdge;Graph.prototype.splitEdge=function(p,A,B,F,M,R,W,ha){null==ha&&(ha=this.model.getParent(p),
+this.isTable(ha)||this.isTableRow(ha))&&(ha=this.getCellAt(R,W,null,!0,!1));B=null;this.model.beginUpdate();try{B=u.apply(this,[p,A,B,F,M,R,W,ha]);this.model.setValue(B,"");var fa=this.getChildCells(B,!0);for(A=0;A<fa.length;A++){var ja=this.getCellGeometry(fa[A]);null!=ja&&ja.relative&&0<ja.x&&this.model.remove(fa[A])}var va=this.getChildCells(p,!0);for(A=0;A<va.length;A++)ja=this.getCellGeometry(va[A]),null!=ja&&ja.relative&&0>=ja.x&&this.model.remove(va[A]);var Ma=this.model.getTerminal(B,!1);
+if(null!=Ma){var Na=this.getCurrentCellStyle(Ma);null!=Na&&"1"==Na.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[p]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[p]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[B]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[B]))}}finally{this.model.endUpdate()}return B};var w=Graph.prototype.selectCell;Graph.prototype.selectCell=function(p,A,B){if(A||B)w.apply(this,arguments);else{var F=this.getSelectionCell(),M=null,R=[],W=mxUtils.bind(this,
+function(ha){if(null!=this.view.getState(ha)&&(this.model.isVertex(ha)||this.model.isEdge(ha)))if(R.push(ha),ha==F)M=R.length-1;else if(p&&null==F&&0<R.length||null!=M&&p&&R.length>M||!p&&0<M)return;for(var fa=0;fa<this.model.getChildCount(ha);fa++)W(this.model.getChildAt(ha,fa))});W(this.model.root);0<R.length&&(M=null!=M?mxUtils.mod(M+(p?1:-1),R.length):0,this.setSelectionCell(R[M]))}};Graph.prototype.swapShapes=function(p,A){if(this.model.isVertex(p)&&this.model.isVertex(A)&&2==this.getMovableCells([p,
+A]).length){var B=this.getCellGeometry(p),F=this.getCellGeometry(A);if(null!=B&&null!=F){var M=B.clone(),R=F.clone();this.model.beginUpdate();try{M.x=F.getCenterX()-B.width/2,M.y=F.getCenterY()-B.height/2,R.x=B.getCenterX()-F.width/2,R.y=B.getCenterY()-F.height/2,this.model.setGeometry(p,M),this.model.setGeometry(A,R)}finally{this.model.endUpdate()}}}};var z=Graph.prototype.moveCells;Graph.prototype.moveCells=function(p,A,B,F,M,R,W){W=null!=W?W:{};if(this.isTable(M)){for(var ha=[],fa=0;fa<p.length;fa++)this.isTable(p[fa])?
+ha=ha.concat(this.model.getChildCells(p[fa],!0).reverse()):ha.push(p[fa]);p=ha}this.model.beginUpdate();try{ha=[];for(fa=0;fa<p.length;fa++)if(null!=M&&this.isTableRow(p[fa])){var ja=this.model.getParent(p[fa]),va=this.getCellGeometry(p[fa]);this.isTable(ja)&&ha.push(ja);if(null!=ja&&null!=va&&this.isTable(ja)&&this.isTable(M)&&(F||ja!=M)){if(!F){var Ma=this.getCellGeometry(ja);null!=Ma&&(Ma=Ma.clone(),Ma.height-=va.height,this.model.setGeometry(ja,Ma))}Ma=this.getCellGeometry(M);null!=Ma&&(Ma=Ma.clone(),
+Ma.height+=va.height,this.model.setGeometry(M,Ma));var Na=this.model.getChildCells(M,!0);if(0<Na.length){p[fa]=F?this.cloneCell(p[fa]):p[fa];var ya=this.model.getChildCells(p[fa],!0),Ha=this.model.getChildCells(Na[0],!0),wa=Ha.length-ya.length;if(0<wa)for(var ua=0;ua<wa;ua++){var Va=this.cloneCell(ya[ya.length-1]);null!=Va&&(Va.value="",this.model.add(p[fa],Va))}else if(0>wa)for(ua=0;ua>wa;ua--)this.model.remove(ya[ya.length+ua-1]);ya=this.model.getChildCells(p[fa],!0);for(ua=0;ua<Ha.length;ua++){var Qa=
+this.getCellGeometry(Ha[ua]),Ka=this.getCellGeometry(ya[ua]);null!=Qa&&null!=Ka&&(Ka=Ka.clone(),Ka.width=Qa.width,this.model.setGeometry(ya[ua],Ka))}}}}var Ua=z.apply(this,arguments);for(fa=0;fa<ha.length;fa++)!F&&this.model.contains(ha[fa])&&0==this.model.getChildCount(ha[fa])&&this.model.remove(ha[fa]);F&&this.updateCustomLinks(this.createCellMapping(W,this.createCellLookup(p)),Ua)}finally{this.model.endUpdate()}return Ua};var C=Graph.prototype.removeCells;Graph.prototype.removeCells=function(p,
+A){var B=[];this.model.beginUpdate();try{for(var F=0;F<p.length;F++)if(this.isTableCell(p[F])){var M=this.model.getParent(p[F]),R=this.model.getParent(M);1==this.model.getChildCount(M)&&1==this.model.getChildCount(R)?0>mxUtils.indexOf(p,R)&&0>mxUtils.indexOf(B,R)&&B.push(R):this.labelChanged(p[F],"")}else{if(this.isTableRow(p[F])&&(R=this.model.getParent(p[F]),0>mxUtils.indexOf(p,R)&&0>mxUtils.indexOf(B,R))){for(var W=this.model.getChildCells(R,!0),ha=0,fa=0;fa<W.length;fa++)0<=mxUtils.indexOf(p,
+W[fa])&&ha++;ha==W.length&&B.push(R)}B.push(p[F])}B=C.apply(this,[B,A])}finally{this.model.endUpdate()}return B};Graph.prototype.updateCustomLinks=function(p,A,B){B=null!=B?B:new Graph;for(var F=0;F<A.length;F++)null!=A[F]&&B.updateCustomLinksForCell(p,A[F],B)};Graph.prototype.updateCustomLinksForCell=function(p,A){this.doUpdateCustomLinksForCell(p,A);for(var B=this.model.getChildCount(A),F=0;F<B;F++)this.updateCustomLinksForCell(p,this.model.getChildAt(A,F))};Graph.prototype.doUpdateCustomLinksForCell=
+function(p,A){};Graph.prototype.getAllConnectionConstraints=function(p,A){if(null!=p){A=mxUtils.getValue(p.style,"points",null);if(null!=A){p=[];try{var B=JSON.parse(A);for(A=0;A<B.length;A++){var F=B[A];p.push(new mxConnectionConstraint(new mxPoint(F[0],F[1]),2<F.length?"0"!=F[2]:!0,null,3<F.length?F[3]:0,4<F.length?F[4]:0))}}catch(R){}return p}if(null!=p.shape&&null!=p.shape.bounds){F=p.shape.direction;A=p.shape.bounds;var M=p.shape.scale;B=A.width/M;A=A.height/M;if(F==mxConstants.DIRECTION_NORTH||
+F==mxConstants.DIRECTION_SOUTH)F=B,B=A,A=F;A=p.shape.getConstraints(p.style,B,A);if(null!=A)return A;if(null!=p.shape.stencil&&null!=p.shape.stencil.constraints)return p.shape.stencil.constraints;if(null!=p.shape.constraints)return p.shape.constraints}}return null};Graph.prototype.flipEdge=function(p){if(null!=p){var A=this.getCurrentCellStyle(p);A=mxUtils.getValue(A,mxConstants.STYLE_ELBOW,mxConstants.ELBOW_HORIZONTAL)==mxConstants.ELBOW_HORIZONTAL?mxConstants.ELBOW_VERTICAL:mxConstants.ELBOW_HORIZONTAL;
+this.setCellStyles(mxConstants.STYLE_ELBOW,A,[p])}};Graph.prototype.isValidRoot=function(p){for(var A=this.model.getChildCount(p),B=0,F=0;F<A;F++){var M=this.model.getChildAt(p,F);this.model.isVertex(M)&&(M=this.getCellGeometry(M),null==M||M.relative||B++)}return 0<B||this.isContainer(p)};Graph.prototype.isValidDropTarget=function(p,A,B){for(var F=this.getCurrentCellStyle(p),M=!0,R=!0,W=0;W<A.length&&R;W++)M=M&&this.isTable(A[W]),R=R&&this.isTableRow(A[W]);return!this.isCellLocked(p)&&(this.isTargetShape(p,
+A,B)||("1"!=mxUtils.getValue(F,"part","0")||this.isContainer(p))&&"0"!=mxUtils.getValue(F,"dropTarget","1")&&(mxGraph.prototype.isValidDropTarget.apply(this,arguments)||this.isContainer(p))&&!this.isTableRow(p)&&(!this.isTable(p)||R||M))};Graph.prototype.createGroupCell=function(){var p=mxGraph.prototype.createGroupCell.apply(this,arguments);p.setStyle("group");return p};Graph.prototype.isExtendParentsOnAdd=function(p){var A=mxGraph.prototype.isExtendParentsOnAdd.apply(this,arguments);if(A&&null!=
+p&&null!=this.layoutManager){var B=this.model.getParent(p);null!=B&&(B=this.layoutManager.getLayout(B),null!=B&&B.constructor==mxStackLayout&&(A=!1))}return A};Graph.prototype.getPreferredSizeForCell=function(p,A,B){B=null!=B?B:this.gridEnabled;var F=mxGraph.prototype.getPreferredSizeForCell.apply(this,arguments);null!=F&&(F.width+=10,F.height+=4,B&&(F.width=this.snap(F.width),F.height=this.snap(F.height)));return F};Graph.prototype.turnShapes=function(p,A){var B=this.getModel(),F=[];B.beginUpdate();
+try{for(var M=0;M<p.length;M++){var R=p[M];if(B.isEdge(R)){var W=B.getTerminal(R,!0),ha=B.getTerminal(R,!1);B.setTerminal(R,ha,!0);B.setTerminal(R,W,!1);var fa=B.getGeometry(R);if(null!=fa){fa=fa.clone();null!=fa.points&&fa.points.reverse();var ja=fa.getTerminalPoint(!0),va=fa.getTerminalPoint(!1);fa.setTerminalPoint(ja,!1);fa.setTerminalPoint(va,!0);B.setGeometry(R,fa);var Ma=this.view.getState(R),Na=this.view.getState(W),ya=this.view.getState(ha);if(null!=Ma){var Ha=null!=Na?this.getConnectionConstraint(Ma,
Na,!0):null,wa=null!=ya?this.getConnectionConstraint(Ma,ya,!1):null;this.setConnectionConstraint(R,W,!0,wa);this.setConnectionConstraint(R,ha,!1,Ha);var ua=mxUtils.getValue(Ma.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING);this.setCellStyles(mxConstants.STYLE_SOURCE_PERIMETER_SPACING,mxUtils.getValue(Ma.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING),[R]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,ua,[R])}F.push(R)}}else if(B.isVertex(R)&&(fa=this.getCellGeometry(R),null!=
fa)){if(!(this.isTable(R)||this.isTableRow(R)||this.isTableCell(R)||this.isSwimlane(R))){fa=fa.clone();fa.x+=fa.width/2-fa.height/2;fa.y+=fa.height/2-fa.width/2;var Va=fa.width;fa.width=fa.height;fa.height=Va;B.setGeometry(R,fa)}var Qa=this.view.getState(R);if(null!=Qa){var Ka=[mxConstants.DIRECTION_EAST,mxConstants.DIRECTION_SOUTH,mxConstants.DIRECTION_WEST,mxConstants.DIRECTION_NORTH],Ua=mxUtils.getValue(Qa.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST);this.setCellStyles(mxConstants.STYLE_DIRECTION,
-Ka[mxUtils.mod(mxUtils.indexOf(Ka,Ua)+(A?-1:1),Ka.length)],[R])}F.push(R)}}}finally{B.endUpdate()}return F};Graph.prototype.stencilHasPlaceholders=function(q){if(null!=q&&null!=q.fgNode)for(q=q.fgNode.firstChild;null!=q;){if("text"==q.nodeName&&"1"==q.getAttribute("placeholders"))return!0;q=q.nextSibling}return!1};var E=Graph.prototype.processChange;Graph.prototype.processChange=function(q){if(q instanceof mxGeometryChange&&(this.isTableCell(q.cell)||this.isTableRow(q.cell))&&(null==q.previous&&null!=
-q.geometry||null!=q.previous&&!q.previous.equals(q.geometry))){var A=q.cell;this.isTableCell(A)&&(A=this.model.getParent(A));this.isTableRow(A)&&(A=this.model.getParent(A));var B=this.view.getState(A);null!=B&&null!=B.shape&&(this.view.invalidate(A),B.shape.bounds=null)}E.apply(this,arguments);q instanceof mxValueChange&&null!=q.cell&&null!=q.cell.value&&"object"==typeof q.cell.value&&this.invalidateDescendantsWithPlaceholders(q.cell)};Graph.prototype.invalidateDescendantsWithPlaceholders=function(q){q=
-this.model.getDescendants(q);if(0<q.length)for(var A=0;A<q.length;A++){var B=this.view.getState(q[A]);null!=B&&null!=B.shape&&null!=B.shape.stencil&&this.stencilHasPlaceholders(B.shape.stencil)?this.removeStateForCell(q[A]):this.isReplacePlaceholders(q[A])&&this.view.invalidate(q[A],!1,!1)}};Graph.prototype.replaceElement=function(q,A){A=q.ownerDocument.createElement(null!=A?A:"span");for(var B=Array.prototype.slice.call(q.attributes);attr=B.pop();)A.setAttribute(attr.nodeName,attr.nodeValue);A.innerHTML=
-q.innerHTML;q.parentNode.replaceChild(A,q)};Graph.prototype.processElements=function(q,A){if(null!=q){q=q.getElementsByTagName("*");for(var B=0;B<q.length;B++)null!=q[B]&&A(q[B])}};Graph.prototype.updateLabelElements=function(q,A,B){q=null!=q?q:this.getSelectionCells();for(var F=document.createElement("div"),M=0;M<q.length;M++){var R=this.getCurrentCellStyle(q[M]);if(null!=R&&"1"==R.html&&(R=this.convertValueToString(q[M]),null!=R&&0<R.length)){F.innerHTML=Graph.sanitizeHtml(R);for(var W=F.getElementsByTagName(null!=
-B?B:"*"),ha=0;ha<W.length;ha++)A(W[ha]);F.innerHTML!=R&&this.cellLabelChanged(q[M],F.innerHTML)}}};Graph.prototype.cellLabelChanged=function(q,A,B){A=Graph.zapGremlins(A);this.model.beginUpdate();try{if(null!=q.value&&"object"==typeof q.value){if(this.isReplacePlaceholders(q)&&null!=q.getAttribute("placeholder"))for(var F=q.getAttribute("placeholder"),M=q;null!=M;){if(M==this.model.getRoot()||null!=M.value&&"object"==typeof M.value&&M.hasAttribute(F)){this.setAttributeForCell(M,F,A);break}M=this.model.getParent(M)}var R=
-q.value.cloneNode(!0);Graph.translateDiagram&&null!=Graph.diagramLanguage&&R.hasAttribute("label_"+Graph.diagramLanguage)?R.setAttribute("label_"+Graph.diagramLanguage,A):R.setAttribute("label",A);A=R}mxGraph.prototype.cellLabelChanged.apply(this,arguments)}finally{this.model.endUpdate()}};Graph.prototype.cellsRemoved=function(q){if(null!=q){for(var A=new mxDictionary,B=0;B<q.length;B++)A.put(q[B],!0);var F=[];for(B=0;B<q.length;B++){var M=this.model.getParent(q[B]);null==M||A.get(M)||(A.put(M,!0),
-F.push(M))}for(B=0;B<F.length;B++)if(M=this.view.getState(F[B]),null!=M&&(this.model.isEdge(M.cell)||this.model.isVertex(M.cell))&&this.isCellDeletable(M.cell)&&this.isTransparentState(M)){for(var R=!0,W=0;W<this.model.getChildCount(M.cell)&&R;W++)A.get(this.model.getChildAt(M.cell,W))||(R=!1);R&&q.push(M.cell)}}mxGraph.prototype.cellsRemoved.apply(this,arguments)};Graph.prototype.removeCellsAfterUngroup=function(q){for(var A=[],B=0;B<q.length;B++)this.isCellDeletable(q[B])&&this.isTransparentState(this.view.getState(q[B]))&&
-A.push(q[B]);q=A;mxGraph.prototype.removeCellsAfterUngroup.apply(this,arguments)};Graph.prototype.setLinkForCell=function(q,A){this.setAttributeForCell(q,"link",A)};Graph.prototype.setTooltipForCell=function(q,A){var B="tooltip";Graph.translateDiagram&&null!=Graph.diagramLanguage&&mxUtils.isNode(q.value)&&q.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(B="tooltip_"+Graph.diagramLanguage);this.setAttributeForCell(q,B,A)};Graph.prototype.getAttributeForCell=function(q,A,B){q=null!=q.value&&
-"object"===typeof q.value?q.value.getAttribute(A):null;return null!=q?q:B};Graph.prototype.setAttributeForCell=function(q,A,B){if(null!=q.value&&"object"==typeof q.value)var F=q.value.cloneNode(!0);else F=mxUtils.createXmlDocument().createElement("UserObject"),F.setAttribute("label",q.value||"");null!=B?F.setAttribute(A,B):F.removeAttribute(A);this.model.setValue(q,F)};Graph.prototype.isTargetShape=function(q,A,B){q=mxUtils.getValue(this.getCurrentCellStyle(q),mxConstants.STYLE_SHAPE,"");for(B=0;B<
-A.length;B++){var F=mxUtils.getValue(this.getCurrentCellStyle(A[B]),"targetShapes","").split(",");if(0<=mxUtils.indexOf(F,q))return!0}return!1};var D=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(q,A,B,F){if(mxEvent.isAltDown(A))return null;for(var M=0;M<q.length;M++){var R=this.model.getParent(q[M]);if(this.model.isEdge(R)&&0>mxUtils.indexOf(q,R))return null}R=D.apply(this,arguments);var W=!0;for(M=0;M<q.length&&W;M++)W=W&&this.isTableRow(q[M]);W&&(this.isTableCell(R)&&(R=
-this.model.getParent(R)),this.isTableRow(R)&&(R=this.model.getParent(R)),this.isTable(R)||(R=null));return R};Graph.prototype.click=function(q){mxGraph.prototype.click.call(this,q);this.firstClickState=q.getState();this.firstClickSource=q.getSource()};Graph.prototype.dblClick=function(q,A){this.isEnabled()&&(A=this.insertTextForEvent(q,A),mxGraph.prototype.dblClick.call(this,q,A))};Graph.prototype.insertTextForEvent=function(q,A){var B=mxUtils.convertPoint(this.container,mxEvent.getClientX(q),mxEvent.getClientY(q));
-if(null!=q&&!this.model.isVertex(A)){var F=this.model.isEdge(A)?this.view.getState(A):null,M=mxEvent.getSource(q);this.firstClickState!=F||this.firstClickSource!=M||null!=F&&null!=F.text&&null!=F.text.node&&null!=F.text.boundingBox&&(mxUtils.contains(F.text.boundingBox,B.x,B.y)||mxUtils.isAncestorNode(F.text.node,mxEvent.getSource(q)))||(null!=F||this.isCellLocked(this.getDefaultParent()))&&(null==F||this.isCellLocked(F.cell))||!(null!=F||mxClient.IS_SVG&&M==this.view.getCanvas().ownerSVGElement)||
-(null==F&&(F=this.view.getState(this.getCellAt(B.x,B.y))),A=this.addText(B.x,B.y,F))}return A};Graph.prototype.getInsertPoint=function(){var q=this.getGridSize(),A=this.container.scrollLeft/this.view.scale-this.view.translate.x,B=this.container.scrollTop/this.view.scale-this.view.translate.y;if(this.pageVisible){var F=this.getPageLayout(),M=this.getPageSize();A=Math.max(A,F.x*M.width);B=Math.max(B,F.y*M.height)}return new mxPoint(this.snap(A+q),this.snap(B+q))};Graph.prototype.getFreeInsertPoint=
-function(){var q=this.view,A=this.getGraphBounds(),B=this.getInsertPoint(),F=this.snap(Math.round(Math.max(B.x,A.x/q.scale-q.translate.x+(0==A.width?2*this.gridSize:0))));q=this.snap(Math.round(Math.max(B.y,(A.y+A.height)/q.scale-q.translate.y+2*this.gridSize)));return new mxPoint(F,q)};Graph.prototype.getCenterInsertPoint=function(q){q=null!=q?q:new mxRectangle;return mxUtils.hasScrollbars(this.container)?new mxPoint(this.snap(Math.round((this.container.scrollLeft+this.container.clientWidth/2)/this.view.scale-
-this.view.translate.x-q.width/2)),this.snap(Math.round((this.container.scrollTop+this.container.clientHeight/2)/this.view.scale-this.view.translate.y-q.height/2))):new mxPoint(this.snap(Math.round(this.container.clientWidth/2/this.view.scale-this.view.translate.x-q.width/2)),this.snap(Math.round(this.container.clientHeight/2/this.view.scale-this.view.translate.y-q.height/2)))};Graph.prototype.isMouseInsertPoint=function(){return!1};Graph.prototype.appendFontSize=function(q,A){q=null!=q?q:"";null!=
-A&&(0<q.length&&";"!=q.charAt(q.length-1)&&(q+=";"),q+="fontSize="+A+";");return q};Graph.prototype.addText=function(q,A,B){var F=new mxCell;F.value="Text";F.geometry=new mxGeometry(0,0,0,0);F.vertex=!0;if(null!=B&&this.model.isEdge(B.cell)){F.style="edgeLabel;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.edgeFontSize);F.geometry.relative=!0;F.connectable=!1;var M=this.view.getRelativePoint(B,q,A);F.geometry.x=Math.round(1E4*M.x)/1E4;F.geometry.y=Math.round(M.y);
-F.geometry.offset=new mxPoint(0,0);M=this.view.getPoint(B,F.geometry);var R=this.view.scale;F.geometry.offset=new mxPoint(Math.round((q-M.x)/R),Math.round((A-M.y)/R))}else M=this.view.translate,F.style="text;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.vertexFontSize),F.geometry.width=40,F.geometry.height=20,F.geometry.x=Math.round(q/this.view.scale)-M.x-(null!=B?B.origin.x:0),F.geometry.y=Math.round(A/this.view.scale)-M.y-(null!=B?B.origin.y:0),F.style+=
-"autosize=1;";this.getModel().beginUpdate();try{this.addCells([F],null!=B?B.cell:null),this.fireEvent(new mxEventObject("textInserted","cells",[F])),this.autoSizeCell(F)}finally{this.getModel().endUpdate()}return F};Graph.prototype.addClickHandler=function(q,A,B){var F=mxUtils.bind(this,function(){var fa=this.container.getElementsByTagName("a");if(null!=fa)for(var ja=0;ja<fa.length;ja++){var va=this.getAbsoluteUrl(fa[ja].getAttribute("href"));null!=va&&(fa[ja].setAttribute("rel",this.linkRelation),
-fa[ja].setAttribute("href",va),null!=A&&mxEvent.addGestureListeners(fa[ja],null,null,A))}});this.model.addListener(mxEvent.CHANGE,F);F();var M=this.container.style.cursor,R=this.getTolerance(),W=this,ha={currentState:null,currentLink:null,currentTarget:null,highlight:null!=q&&""!=q&&q!=mxConstants.NONE?new mxCellHighlight(W,q,4):null,startX:0,startY:0,scrollLeft:0,scrollTop:0,updateCurrentState:function(fa){var ja=fa.sourceState;if(null==ja||null==W.getLinkForCell(ja.cell))fa=W.getCellAt(fa.getGraphX(),
+Ka[mxUtils.mod(mxUtils.indexOf(Ka,Ua)+(A?-1:1),Ka.length)],[R])}F.push(R)}}}finally{B.endUpdate()}return F};Graph.prototype.stencilHasPlaceholders=function(p){if(null!=p&&null!=p.fgNode)for(p=p.fgNode.firstChild;null!=p;){if("text"==p.nodeName&&"1"==p.getAttribute("placeholders"))return!0;p=p.nextSibling}return!1};var E=Graph.prototype.processChange;Graph.prototype.processChange=function(p){if(p instanceof mxGeometryChange&&(this.isTableCell(p.cell)||this.isTableRow(p.cell))&&(null==p.previous&&null!=
+p.geometry||null!=p.previous&&!p.previous.equals(p.geometry))){var A=p.cell;this.isTableCell(A)&&(A=this.model.getParent(A));this.isTableRow(A)&&(A=this.model.getParent(A));var B=this.view.getState(A);null!=B&&null!=B.shape&&(this.view.invalidate(A),B.shape.bounds=null)}E.apply(this,arguments);p instanceof mxValueChange&&null!=p.cell&&null!=p.cell.value&&"object"==typeof p.cell.value&&this.invalidateDescendantsWithPlaceholders(p.cell)};Graph.prototype.invalidateDescendantsWithPlaceholders=function(p){p=
+this.model.getDescendants(p);if(0<p.length)for(var A=0;A<p.length;A++){var B=this.view.getState(p[A]);null!=B&&null!=B.shape&&null!=B.shape.stencil&&this.stencilHasPlaceholders(B.shape.stencil)?this.removeStateForCell(p[A]):this.isReplacePlaceholders(p[A])&&this.view.invalidate(p[A],!1,!1)}};Graph.prototype.replaceElement=function(p,A){A=p.ownerDocument.createElement(null!=A?A:"span");for(var B=Array.prototype.slice.call(p.attributes);attr=B.pop();)A.setAttribute(attr.nodeName,attr.nodeValue);A.innerHTML=
+p.innerHTML;p.parentNode.replaceChild(A,p)};Graph.prototype.processElements=function(p,A){if(null!=p){p=p.getElementsByTagName("*");for(var B=0;B<p.length;B++)null!=p[B]&&A(p[B])}};Graph.prototype.updateLabelElements=function(p,A,B){p=null!=p?p:this.getSelectionCells();for(var F=document.createElement("div"),M=0;M<p.length;M++){var R=this.getCurrentCellStyle(p[M]);if(null!=R&&"1"==R.html&&(R=this.convertValueToString(p[M]),null!=R&&0<R.length)){F.innerHTML=Graph.sanitizeHtml(R);for(var W=F.getElementsByTagName(null!=
+B?B:"*"),ha=0;ha<W.length;ha++)A(W[ha]);F.innerHTML!=R&&this.cellLabelChanged(p[M],F.innerHTML)}}};Graph.prototype.cellLabelChanged=function(p,A,B){A=Graph.zapGremlins(A);this.model.beginUpdate();try{if(null!=p.value&&"object"==typeof p.value){if(this.isReplacePlaceholders(p)&&null!=p.getAttribute("placeholder"))for(var F=p.getAttribute("placeholder"),M=p;null!=M;){if(M==this.model.getRoot()||null!=M.value&&"object"==typeof M.value&&M.hasAttribute(F)){this.setAttributeForCell(M,F,A);break}M=this.model.getParent(M)}var R=
+p.value.cloneNode(!0);Graph.translateDiagram&&null!=Graph.diagramLanguage&&R.hasAttribute("label_"+Graph.diagramLanguage)?R.setAttribute("label_"+Graph.diagramLanguage,A):R.setAttribute("label",A);A=R}mxGraph.prototype.cellLabelChanged.apply(this,arguments)}finally{this.model.endUpdate()}};Graph.prototype.cellsRemoved=function(p){if(null!=p){for(var A=new mxDictionary,B=0;B<p.length;B++)A.put(p[B],!0);var F=[];for(B=0;B<p.length;B++){var M=this.model.getParent(p[B]);null==M||A.get(M)||(A.put(M,!0),
+F.push(M))}for(B=0;B<F.length;B++)if(M=this.view.getState(F[B]),null!=M&&(this.model.isEdge(M.cell)||this.model.isVertex(M.cell))&&this.isCellDeletable(M.cell)&&this.isTransparentState(M)){for(var R=!0,W=0;W<this.model.getChildCount(M.cell)&&R;W++)A.get(this.model.getChildAt(M.cell,W))||(R=!1);R&&p.push(M.cell)}}mxGraph.prototype.cellsRemoved.apply(this,arguments)};Graph.prototype.removeCellsAfterUngroup=function(p){for(var A=[],B=0;B<p.length;B++)this.isCellDeletable(p[B])&&this.isTransparentState(this.view.getState(p[B]))&&
+A.push(p[B]);p=A;mxGraph.prototype.removeCellsAfterUngroup.apply(this,arguments)};Graph.prototype.setLinkForCell=function(p,A){this.setAttributeForCell(p,"link",A)};Graph.prototype.setTooltipForCell=function(p,A){var B="tooltip";Graph.translateDiagram&&null!=Graph.diagramLanguage&&mxUtils.isNode(p.value)&&p.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(B="tooltip_"+Graph.diagramLanguage);this.setAttributeForCell(p,B,A)};Graph.prototype.getAttributeForCell=function(p,A,B){p=null!=p.value&&
+"object"===typeof p.value?p.value.getAttribute(A):null;return null!=p?p:B};Graph.prototype.setAttributeForCell=function(p,A,B){if(null!=p.value&&"object"==typeof p.value)var F=p.value.cloneNode(!0);else F=mxUtils.createXmlDocument().createElement("UserObject"),F.setAttribute("label",p.value||"");null!=B?F.setAttribute(A,B):F.removeAttribute(A);this.model.setValue(p,F)};Graph.prototype.isTargetShape=function(p,A,B){p=mxUtils.getValue(this.getCurrentCellStyle(p),mxConstants.STYLE_SHAPE,"");for(B=0;B<
+A.length;B++){var F=mxUtils.getValue(this.getCurrentCellStyle(A[B]),"targetShapes","").split(",");if(0<=mxUtils.indexOf(F,p))return!0}return!1};var D=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(p,A,B,F){if(mxEvent.isAltDown(A))return null;for(var M=0;M<p.length;M++){var R=this.model.getParent(p[M]);if(this.model.isEdge(R)&&0>mxUtils.indexOf(p,R))return null}R=D.apply(this,arguments);var W=!0;for(M=0;M<p.length&&W;M++)W=W&&this.isTableRow(p[M]);W&&(this.isTableCell(R)&&(R=
+this.model.getParent(R)),this.isTableRow(R)&&(R=this.model.getParent(R)),this.isTable(R)||(R=null));return R};Graph.prototype.click=function(p){mxGraph.prototype.click.call(this,p);this.firstClickState=p.getState();this.firstClickSource=p.getSource()};Graph.prototype.dblClick=function(p,A){this.isEnabled()&&(A=this.insertTextForEvent(p,A),mxGraph.prototype.dblClick.call(this,p,A))};Graph.prototype.insertTextForEvent=function(p,A){var B=mxUtils.convertPoint(this.container,mxEvent.getClientX(p),mxEvent.getClientY(p));
+if(null!=p&&!this.model.isVertex(A)){var F=this.model.isEdge(A)?this.view.getState(A):null,M=mxEvent.getSource(p);this.firstClickState!=F||this.firstClickSource!=M||null!=F&&null!=F.text&&null!=F.text.node&&null!=F.text.boundingBox&&(mxUtils.contains(F.text.boundingBox,B.x,B.y)||mxUtils.isAncestorNode(F.text.node,mxEvent.getSource(p)))||(null!=F||this.isCellLocked(this.getDefaultParent()))&&(null==F||this.isCellLocked(F.cell))||!(null!=F||mxClient.IS_SVG&&M==this.view.getCanvas().ownerSVGElement)||
+(null==F&&(F=this.view.getState(this.getCellAt(B.x,B.y))),A=this.addText(B.x,B.y,F))}return A};Graph.prototype.getInsertPoint=function(){var p=this.getGridSize(),A=this.container.scrollLeft/this.view.scale-this.view.translate.x,B=this.container.scrollTop/this.view.scale-this.view.translate.y;if(this.pageVisible){var F=this.getPageLayout(),M=this.getPageSize();A=Math.max(A,F.x*M.width);B=Math.max(B,F.y*M.height)}return new mxPoint(this.snap(A+p),this.snap(B+p))};Graph.prototype.getFreeInsertPoint=
+function(){var p=this.view,A=this.getGraphBounds(),B=this.getInsertPoint(),F=this.snap(Math.round(Math.max(B.x,A.x/p.scale-p.translate.x+(0==A.width?2*this.gridSize:0))));p=this.snap(Math.round(Math.max(B.y,(A.y+A.height)/p.scale-p.translate.y+2*this.gridSize)));return new mxPoint(F,p)};Graph.prototype.getCenterInsertPoint=function(p){p=null!=p?p:new mxRectangle;return mxUtils.hasScrollbars(this.container)?new mxPoint(this.snap(Math.round((this.container.scrollLeft+this.container.clientWidth/2)/this.view.scale-
+this.view.translate.x-p.width/2)),this.snap(Math.round((this.container.scrollTop+this.container.clientHeight/2)/this.view.scale-this.view.translate.y-p.height/2))):new mxPoint(this.snap(Math.round(this.container.clientWidth/2/this.view.scale-this.view.translate.x-p.width/2)),this.snap(Math.round(this.container.clientHeight/2/this.view.scale-this.view.translate.y-p.height/2)))};Graph.prototype.isMouseInsertPoint=function(){return!1};Graph.prototype.appendFontSize=function(p,A){p=null!=p?p:"";null!=
+A&&(0<p.length&&";"!=p.charAt(p.length-1)&&(p+=";"),p+="fontSize="+A+";");return p};Graph.prototype.addText=function(p,A,B){var F=new mxCell;F.value="Text";F.geometry=new mxGeometry(0,0,0,0);F.vertex=!0;if(null!=B&&this.model.isEdge(B.cell)){F.style="edgeLabel;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.edgeFontSize);F.geometry.relative=!0;F.connectable=!1;var M=this.view.getRelativePoint(B,p,A);F.geometry.x=Math.round(1E4*M.x)/1E4;F.geometry.y=Math.round(M.y);
+F.geometry.offset=new mxPoint(0,0);M=this.view.getPoint(B,F.geometry);var R=this.view.scale;F.geometry.offset=new mxPoint(Math.round((p-M.x)/R),Math.round((A-M.y)/R))}else M=this.view.translate,F.style="text;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.vertexFontSize),F.geometry.width=40,F.geometry.height=20,F.geometry.x=Math.round(p/this.view.scale)-M.x-(null!=B?B.origin.x:0),F.geometry.y=Math.round(A/this.view.scale)-M.y-(null!=B?B.origin.y:0),F.style+=
+"autosize=1;";this.getModel().beginUpdate();try{this.addCells([F],null!=B?B.cell:null),this.fireEvent(new mxEventObject("textInserted","cells",[F])),this.autoSizeCell(F)}finally{this.getModel().endUpdate()}return F};Graph.prototype.addClickHandler=function(p,A,B){var F=mxUtils.bind(this,function(){var fa=this.container.getElementsByTagName("a");if(null!=fa)for(var ja=0;ja<fa.length;ja++){var va=this.getAbsoluteUrl(fa[ja].getAttribute("href"));null!=va&&(fa[ja].setAttribute("rel",this.linkRelation),
+fa[ja].setAttribute("href",va),null!=A&&mxEvent.addGestureListeners(fa[ja],null,null,A))}});this.model.addListener(mxEvent.CHANGE,F);F();var M=this.container.style.cursor,R=this.getTolerance(),W=this,ha={currentState:null,currentLink:null,currentTarget:null,highlight:null!=p&&""!=p&&p!=mxConstants.NONE?new mxCellHighlight(W,p,4):null,startX:0,startY:0,scrollLeft:0,scrollTop:0,updateCurrentState:function(fa){var ja=fa.sourceState;if(null==ja||null==W.getLinkForCell(ja.cell))fa=W.getCellAt(fa.getGraphX(),
fa.getGraphY(),null,null,null,function(va,Ma,Na){return null==W.getLinkForCell(va.cell)}),ja=null==ja||W.model.isAncestor(fa,ja.cell)?W.view.getState(fa):null;ja!=this.currentState&&(null!=this.currentState&&this.clear(),this.currentState=ja,null!=this.currentState&&this.activate(this.currentState))},mouseDown:function(fa,ja){this.startX=ja.getGraphX();this.startY=ja.getGraphY();this.scrollLeft=W.container.scrollLeft;this.scrollTop=W.container.scrollTop;null==this.currentLink&&"auto"==W.container.style.overflow&&
(W.container.style.cursor="move");this.updateCurrentState(ja)},mouseMove:function(fa,ja){if(W.isMouseDown)null!=this.currentLink&&(fa=Math.abs(this.startX-ja.getGraphX()),ja=Math.abs(this.startY-ja.getGraphY()),(fa>R||ja>R)&&this.clear());else{for(fa=ja.getSource();null!=fa&&"a"!=fa.nodeName.toLowerCase();)fa=fa.parentNode;null!=fa?this.clear():(null!=W.tooltipHandler&&null!=this.currentLink&&null!=this.currentState&&W.tooltipHandler.reset(ja,!0,this.currentState),(null==this.currentState||ja.getState()!=
this.currentState&&null!=ja.sourceState||!W.intersects(this.currentState,ja.getGraphX(),ja.getGraphY()))&&this.updateCurrentState(ja))}},mouseUp:function(fa,ja){var va=ja.getSource();for(fa=ja.getEvent();null!=va&&"a"!=va.nodeName.toLowerCase();)va=va.parentNode;null==va&&Math.abs(this.scrollLeft-W.container.scrollLeft)<R&&Math.abs(this.scrollTop-W.container.scrollTop)<R&&(null==ja.sourceState||!ja.isSource(ja.sourceState.control))&&((mxEvent.isLeftMouseButton(fa)||mxEvent.isMiddleMouseButton(fa))&&
!mxEvent.isPopupTrigger(fa)||mxEvent.isTouchEvent(fa))&&(null!=this.currentLink?(va=W.isBlankLink(this.currentLink),"data:"!==this.currentLink.substring(0,5)&&va||null==A||A(fa,this.currentLink,null!=this.currentState?this.currentState.cell:null),mxEvent.isConsumed(fa)||(fa=null!=this.currentTarget?this.currentTarget:mxEvent.isMiddleMouseButton(fa)?"_blank":va?W.linkTarget:"_top",W.openLink(this.currentLink,fa),ja.consume())):null!=B&&!ja.isConsumed()&&Math.abs(this.scrollLeft-W.container.scrollLeft)<
R&&Math.abs(this.scrollTop-W.container.scrollTop)<R&&Math.abs(this.startX-ja.getGraphX())<R&&Math.abs(this.startY-ja.getGraphY())<R&&B(ja.getEvent()));this.clear()},activate:function(fa){this.currentLink=W.getAbsoluteUrl(W.getLinkForCell(fa.cell));null!=this.currentLink&&(this.currentTarget=W.getLinkTargetForCell(fa.cell),W.container.style.cursor="pointer",null!=this.highlight&&this.highlight.highlight(fa))},clear:function(){null!=W.container&&(W.container.style.cursor=M);this.currentLink=this.currentState=
-this.currentTarget=null;null!=this.highlight&&this.highlight.hide();null!=W.tooltipHandler&&W.tooltipHandler.hide()}};W.click=function(fa){};W.addMouseListener(ha);mxEvent.addListener(document,"mouseleave",function(fa){ha.clear()})};Graph.prototype.duplicateCells=function(q,A){q=null!=q?q:this.getSelectionCells();A=null!=A?A:!0;for(var B=0;B<q.length;B++)this.isTableCell(q[B])&&(q[B]=this.model.getParent(q[B]));q=this.model.getTopmostCells(q);var F=this.getModel(),M=this.gridSize,R=[];F.beginUpdate();
-try{var W={},ha=this.createCellLookup(q),fa=this.cloneCells(q,!1,W,!0);for(B=0;B<q.length;B++){var ja=F.getParent(q[B]);if(null!=ja){var va=this.moveCells([fa[B]],M,M,!1)[0];R.push(va);if(A)F.add(ja,fa[B]);else{var Ma=ja.getIndex(q[B]);F.add(ja,fa[B],Ma+1)}if(this.isTable(ja)){var Na=this.getCellGeometry(fa[B]),ya=this.getCellGeometry(ja);null!=Na&&null!=ya&&(ya=ya.clone(),ya.height+=Na.height,F.setGeometry(ja,ya))}}else R.push(fa[B])}this.updateCustomLinks(this.createCellMapping(W,ha),fa,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,
-"cells",fa))}finally{F.endUpdate()}return R};Graph.prototype.insertImage=function(q,A,B){if(null!=q&&null!=this.cellEditor.textarea){for(var F=this.cellEditor.textarea.getElementsByTagName("img"),M=[],R=0;R<F.length;R++)M.push(F[R]);document.execCommand("insertimage",!1,q);q=this.cellEditor.textarea.getElementsByTagName("img");if(q.length==M.length+1)for(R=q.length-1;0<=R;R--)if(0==R||q[R]!=M[R-1]){q[R].setAttribute("width",A);q[R].setAttribute("height",B);break}}};Graph.prototype.insertLink=function(q){if(null!=
-this.cellEditor.textarea)if(0==q.length)document.execCommand("unlink",!1);else if(mxClient.IS_FF){for(var A=this.cellEditor.textarea.getElementsByTagName("a"),B=[],F=0;F<A.length;F++)B.push(A[F]);document.execCommand("createlink",!1,mxUtils.trim(q));A=this.cellEditor.textarea.getElementsByTagName("a");if(A.length==B.length+1)for(F=A.length-1;0<=F;F--)if(A[F]!=B[F-1]){for(A=A[F].getElementsByTagName("a");0<A.length;){for(B=A[0].parentNode;null!=A[0].firstChild;)B.insertBefore(A[0].firstChild,A[0]);
-B.removeChild(A[0])}break}}else document.execCommand("createlink",!1,mxUtils.trim(q))};Graph.prototype.isCellResizable=function(q){var A=mxGraph.prototype.isCellResizable.apply(this,arguments),B=this.getCurrentCellStyle(q);return!this.isTableCell(q)&&!this.isTableRow(q)&&(A||"0"!=mxUtils.getValue(B,mxConstants.STYLE_RESIZABLE,"1")&&"wrap"==B[mxConstants.STYLE_WHITE_SPACE])};Graph.prototype.distributeCells=function(q,A,B){null==A&&(A=this.getSelectionCells());if(null!=A&&1<A.length){for(var F=[],M=
-null,R=null,W=0,ha=0;ha<A.length;ha++)if(this.getModel().isVertex(A[ha])){var fa=this.view.getState(A[ha]);if(null!=fa){var ja=q?fa.getCenterX():fa.getCenterY();M=null!=M?Math.max(M,ja):ja;R=null!=R?Math.min(R,ja):ja;B&&(W+=q?fa.width:fa.height);F.push(fa)}}if(2<F.length){F.sort(function(Ha,wa){return q?Ha.x-wa.x:Ha.y-wa.y});B&&(W-=q?F[0].width/2+F[F.length-1].width/2:F[0].height/2+F[F.length-1].height/2);fa=this.view.translate;ja=this.view.scale;R=R/ja-(q?fa.x:fa.y);M=M/ja-(q?fa.x:fa.y);this.getModel().beginUpdate();
-try{var va=(M-R-W)/(F.length-1),Ma=R+(B?q?F[0].width/2:F[0].height/2:0);for(ha=1;ha<F.length-1;ha++){var Na=this.view.getState(this.model.getParent(F[ha].cell)),ya=this.getCellGeometry(F[ha].cell);Ma+=va;null!=ya&&null!=Na&&(ya=ya.clone(),q?ya.x=Math.round(Ma-(B?0:ya.width/2))-Na.origin.x:ya.y=Math.round(Ma-(B?0:ya.height/2))-Na.origin.y,this.getModel().setGeometry(F[ha].cell,ya));B&&(Ma+=q?F[ha].width:F[ha].height)}}finally{this.getModel().endUpdate()}}}return A};Graph.prototype.isCloneEvent=function(q){return mxClient.IS_MAC&&
-mxEvent.isMetaDown(q)||mxEvent.isControlDown(q)};Graph.prototype.createSvgImageExport=function(q){q=new mxImageExport;q.addCellData=function(B,F,M){F.setAttribute("data-cell-id",B.id);if(M)if(mxUtils.isNode(B.value))for(M=0;M<B.value.attributes.length;M++){var R=B.value.attributes[M];F.setAttribute("data-cell-"+R.name,R.value)}else if("object"===typeof B.value)for(R in B.value)F.setAttribute("data-cell-"+R,B.value[R]);else null!=B.value&&F.setAttribute("data-cell-value",B.value);return F};var A=q.visitStatesRecursive;
-q.visitStatesRecursive=function(B,F,M){if(null!=B){var R=F.root,W=F.root.ownerDocument;F.root=this.addCellData(B.cell,null!=W.createElementNS?W.createElementNS(mxConstants.NS_SVG,"g"):W.createElement("g"),Editor.addSvgMetadata);R.appendChild(F.root);A.apply(this,arguments);F.root=R}};q.getLinkForCellState=mxUtils.bind(this,function(B,F){return this.getLinkForCell(B.cell)});q.getTitleForCellState=mxUtils.bind(this,function(B,F){return Editor.convertHtmlToText(this.convertValueToTooltip(B.cell))});
-return q};Graph.prototype.parseBackgroundImage=function(q){var A=null;null!=q&&0<q.length&&(q=JSON.parse(q),A=new mxImage(q.src,q.width,q.height));return A};Graph.prototype.getBackgroundImageObject=function(q){return q};Graph.prototype.getSvg=function(q,A,B,F,M,R,W,ha,fa,ja,va,Ma,Na,ya,Ha,wa){var ua=null;if(null!=ya)for(ua=new mxDictionary,va=0;va<ya.length;va++)ua.put(ya[va],!0);ya=this.useCssTransforms;var Va=this.enableFlowAnimation;this.enableFlowAnimation=!1;ya&&(this.useCssTransforms=!1,this.view.revalidate(),
+this.currentTarget=null;null!=this.highlight&&this.highlight.hide();null!=W.tooltipHandler&&W.tooltipHandler.hide()}};W.click=function(fa){};W.addMouseListener(ha);mxEvent.addListener(document,"mouseleave",function(fa){ha.clear()})};Graph.prototype.duplicateCells=function(p,A){p=null!=p?p:this.getSelectionCells();A=null!=A?A:!0;for(var B=0;B<p.length;B++)this.isTableCell(p[B])&&(p[B]=this.model.getParent(p[B]));p=this.model.getTopmostCells(p);var F=this.getModel(),M=this.gridSize,R=[];F.beginUpdate();
+try{var W={},ha=this.createCellLookup(p),fa=this.cloneCells(p,!1,W,!0);for(B=0;B<p.length;B++){var ja=F.getParent(p[B]);if(null!=ja){var va=this.moveCells([fa[B]],M,M,!1)[0];R.push(va);if(A)F.add(ja,fa[B]);else{var Ma=ja.getIndex(p[B]);F.add(ja,fa[B],Ma+1)}if(this.isTable(ja)){var Na=this.getCellGeometry(fa[B]),ya=this.getCellGeometry(ja);null!=Na&&null!=ya&&(ya=ya.clone(),ya.height+=Na.height,F.setGeometry(ja,ya))}}else R.push(fa[B])}this.updateCustomLinks(this.createCellMapping(W,ha),fa,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,
+"cells",fa))}finally{F.endUpdate()}return R};Graph.prototype.insertImage=function(p,A,B){if(null!=p&&null!=this.cellEditor.textarea){for(var F=this.cellEditor.textarea.getElementsByTagName("img"),M=[],R=0;R<F.length;R++)M.push(F[R]);document.execCommand("insertimage",!1,p);p=this.cellEditor.textarea.getElementsByTagName("img");if(p.length==M.length+1)for(R=p.length-1;0<=R;R--)if(0==R||p[R]!=M[R-1]){p[R].setAttribute("width",A);p[R].setAttribute("height",B);break}}};Graph.prototype.insertLink=function(p){if(null!=
+this.cellEditor.textarea)if(0==p.length)document.execCommand("unlink",!1);else if(mxClient.IS_FF){for(var A=this.cellEditor.textarea.getElementsByTagName("a"),B=[],F=0;F<A.length;F++)B.push(A[F]);document.execCommand("createlink",!1,mxUtils.trim(p));A=this.cellEditor.textarea.getElementsByTagName("a");if(A.length==B.length+1)for(F=A.length-1;0<=F;F--)if(A[F]!=B[F-1]){for(A=A[F].getElementsByTagName("a");0<A.length;){for(B=A[0].parentNode;null!=A[0].firstChild;)B.insertBefore(A[0].firstChild,A[0]);
+B.removeChild(A[0])}break}}else document.execCommand("createlink",!1,mxUtils.trim(p))};Graph.prototype.isCellResizable=function(p){var A=mxGraph.prototype.isCellResizable.apply(this,arguments),B=this.getCurrentCellStyle(p);return!this.isTableCell(p)&&!this.isTableRow(p)&&(A||"0"!=mxUtils.getValue(B,mxConstants.STYLE_RESIZABLE,"1")&&"wrap"==B[mxConstants.STYLE_WHITE_SPACE])};Graph.prototype.distributeCells=function(p,A,B){null==A&&(A=this.getSelectionCells());if(null!=A&&1<A.length){for(var F=[],M=
+null,R=null,W=0,ha=0;ha<A.length;ha++)if(this.getModel().isVertex(A[ha])){var fa=this.view.getState(A[ha]);if(null!=fa){var ja=p?fa.getCenterX():fa.getCenterY();M=null!=M?Math.max(M,ja):ja;R=null!=R?Math.min(R,ja):ja;B&&(W+=p?fa.width:fa.height);F.push(fa)}}if(2<F.length){F.sort(function(Ha,wa){return p?Ha.x-wa.x:Ha.y-wa.y});B&&(W-=p?F[0].width/2+F[F.length-1].width/2:F[0].height/2+F[F.length-1].height/2);fa=this.view.translate;ja=this.view.scale;R=R/ja-(p?fa.x:fa.y);M=M/ja-(p?fa.x:fa.y);this.getModel().beginUpdate();
+try{var va=(M-R-W)/(F.length-1),Ma=R+(B?p?F[0].width/2:F[0].height/2:0);for(ha=1;ha<F.length-1;ha++){var Na=this.view.getState(this.model.getParent(F[ha].cell)),ya=this.getCellGeometry(F[ha].cell);Ma+=va;null!=ya&&null!=Na&&(ya=ya.clone(),p?ya.x=Math.round(Ma-(B?0:ya.width/2))-Na.origin.x:ya.y=Math.round(Ma-(B?0:ya.height/2))-Na.origin.y,this.getModel().setGeometry(F[ha].cell,ya));B&&(Ma+=p?F[ha].width:F[ha].height)}}finally{this.getModel().endUpdate()}}}return A};Graph.prototype.isCloneEvent=function(p){return mxClient.IS_MAC&&
+mxEvent.isMetaDown(p)||mxEvent.isControlDown(p)};Graph.prototype.createSvgImageExport=function(p){p=new mxImageExport;p.addCellData=function(B,F,M){F.setAttribute("data-cell-id",B.id);if(M)if(mxUtils.isNode(B.value))for(M=0;M<B.value.attributes.length;M++){var R=B.value.attributes[M];F.setAttribute("data-cell-"+R.name,R.value)}else if("object"===typeof B.value)for(R in B.value)F.setAttribute("data-cell-"+R,B.value[R]);else null!=B.value&&F.setAttribute("data-cell-value",B.value);return F};var A=p.visitStatesRecursive;
+p.visitStatesRecursive=function(B,F,M){if(null!=B){var R=F.root,W=F.root.ownerDocument;F.root=this.addCellData(B.cell,null!=W.createElementNS?W.createElementNS(mxConstants.NS_SVG,"g"):W.createElement("g"),Editor.addSvgMetadata);R.appendChild(F.root);A.apply(this,arguments);F.root=R}};p.getLinkForCellState=mxUtils.bind(this,function(B,F){return this.getLinkForCell(B.cell)});p.getTitleForCellState=mxUtils.bind(this,function(B,F){return Editor.convertHtmlToText(this.convertValueToTooltip(B.cell))});
+return p};Graph.prototype.parseBackgroundImage=function(p){var A=null;null!=p&&0<p.length&&(p=JSON.parse(p),A=new mxImage(p.src,p.width,p.height));return A};Graph.prototype.getBackgroundImageObject=function(p){return p};Graph.prototype.getSvg=function(p,A,B,F,M,R,W,ha,fa,ja,va,Ma,Na,ya,Ha,wa){var ua=null;if(null!=ya)for(ua=new mxDictionary,va=0;va<ya.length;va++)ua.put(ya[va],!0);ya=this.useCssTransforms;var Va=this.enableFlowAnimation;this.enableFlowAnimation=!1;ya&&(this.useCssTransforms=!1,this.view.revalidate(),
this.sizeDidChange());try{A=null!=A?A:1;B=null!=B?B:0;M=null!=M?M:!0;R=null!=R?R:!0;W=null!=W?W:!0;ja=null!=ja?ja:!1;var Qa="page"==Na?this.view.getBackgroundPageBounds():R&&null==ua||F||"diagram"==Na?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells()),Ka=this.backgroundImage,Ua=this.view.translate,Wa=this.view.scale;"diagram"==Na&&null!=Ka&&null!=Ka.width&&null!=Ka.height&&(Qa=mxRectangle.fromRectangle(Qa),Qa.add(new mxRectangle((Ua.x+Ka.x)*Wa,(Ua.y+Ka.y)*Wa,Ka.width*Wa,Ka.height*
-Wa)));if(null==Qa)throw Error(mxResources.get("drawingEmpty"));F=A/Wa;var mb=Math.max(1,Math.ceil(Qa.width*F)+2*B)+(ja&&0==B?5:0),ub=Math.max(1,Math.ceil(Qa.height*F)+2*B)+(ja&&0==B?5:0);ja=M?-.5:0;var vb=mxUtils.getLightDarkColor(q),jb=Graph.createSvgNode(ja,ja,mb,ub,vb),nb=jb.ownerDocument;if(null!=q){var db=mxUtils.createElementNs(nb,mxConstants.NS_SVG,"rect");db.setAttribute("fill",vb.light);db.style.fill=vb.cssText;db.setAttribute("width","100%");db.setAttribute("height","100%");db.setAttribute("x",
+Wa)));if(null==Qa)throw Error(mxResources.get("drawingEmpty"));F=A/Wa;var mb=Math.max(1,Math.ceil(Qa.width*F)+2*B)+(ja&&0==B?5:0),ub=Math.max(1,Math.ceil(Qa.height*F)+2*B)+(ja&&0==B?5:0);ja=M?-.5:0;var vb=mxUtils.getLightDarkColor(p),jb=Graph.createSvgNode(ja,ja,mb,ub,vb),nb=jb.ownerDocument;if(null!=p){var db=mxUtils.createElementNs(nb,mxConstants.NS_SVG,"rect");db.setAttribute("fill",vb.light);db.style.fill=vb.cssText;db.setAttribute("width","100%");db.setAttribute("height","100%");db.setAttribute("x",
"0");db.setAttribute("y","0");jb.appendChild(db)}var qb=mxUtils.createElementNs(nb,mxConstants.NS_SVG,"g");jb.appendChild(qb);var bb=this.createSvgCanvas(qb);bb.foOffset=M?-.5:0;bb.textOffset=M?-.5:0;bb.imageOffset=M?-.5:0;bb.translate(Math.floor(B/A-Qa.x/Wa),Math.floor(B/A-Qa.y/Wa));bb.idPrefix="drawio-svg-"+Editor.guid();var wb=document.createElement("div"),rb=bb.getAlternateText;bb.getAlternateText=function(Sa,sb,$a,kb,ob,Za,xb,c,l,t,n,r,v){if(null!=Za&&0<this.state.fontSize)try{mxUtils.isNode(Za)?
-Za=Za.innerText:(wb.innerHTML=Za,Za=mxUtils.extractTextWithWhitespace(wb.childNodes));for(var x=Math.ceil(2*kb/this.state.fontSize),I=[],y=0,aa=0;(0==x||y<x)&&aa<Za.length;){var S=Za.charCodeAt(aa);if(10==S||13==S){if(0<y)break}else I.push(Za.charAt(aa)),255>S&&y++;aa++}I.length<Za.length&&1<Za.length-I.length&&(Za=mxUtils.trim(I.join(""))+"...");return Za}catch(Fa){return rb.apply(this,arguments)}else return rb.apply(this,arguments)};null!=Ka&&null!=Ka.width&&null!=Ka.height&&(q=Wa/A,ja=new mxRectangle((Ka.x+
-Ua.x)*q,(Ka.y+Ua.y)*q,Ka.width*q,Ka.height*q),mxUtils.intersects(Qa,ja)&&bb.image(Ka.x+Ua.x,Ka.y+Ua.y,Ka.width,Ka.height,Ka.src,!0));bb.scale(F);bb.textEnabled=W;ha=null!=ha?ha:this.createSvgImageExport();var tb=ha.getLinkForCellState;ha.getLinkForCellState=function(Sa,sb){var $a=Sa.view.graph.getAbsoluteUrl(tb.apply(this,arguments));return null==$a||Sa.view.graph.isCustomLink($a)?null:$a};ha.getLinkTargetForCellState=function(Sa,sb){return Sa.view.graph.getLinkTargetForCell(Sa.cell)};var yb=ha.drawCellState,
+Za=Za.innerText:(wb.innerHTML=Za,Za=mxUtils.extractTextWithWhitespace(wb.childNodes));for(var x=Math.ceil(2*kb/this.state.fontSize),I=[],y=0,aa=0;(0==x||y<x)&&aa<Za.length;){var S=Za.charCodeAt(aa);if(10==S||13==S){if(0<y)break}else I.push(Za.charAt(aa)),255>S&&y++;aa++}I.length<Za.length&&1<Za.length-I.length&&(Za=mxUtils.trim(I.join(""))+"...");return Za}catch(Fa){return rb.apply(this,arguments)}else return rb.apply(this,arguments)};null!=Ka&&null!=Ka.width&&null!=Ka.height&&(p=Wa/A,ja=new mxRectangle((Ka.x+
+Ua.x)*p,(Ka.y+Ua.y)*p,Ka.width*p,Ka.height*p),mxUtils.intersects(Qa,ja)&&bb.image(Ka.x+Ua.x,Ka.y+Ua.y,Ka.width,Ka.height,Ka.src,!0));bb.scale(F);bb.textEnabled=W;ha=null!=ha?ha:this.createSvgImageExport();var tb=ha.getLinkForCellState;ha.getLinkForCellState=function(Sa,sb){var $a=Sa.view.graph.getAbsoluteUrl(tb.apply(this,arguments));return null==$a||Sa.view.graph.isCustomLink($a)?null:$a};ha.getLinkTargetForCellState=function(Sa,sb){return Sa.view.graph.getLinkTargetForCell(Sa.cell)};var yb=ha.drawCellState,
lb=null,hb=mxUtils.bind(this,function(){if(null==lb){lb="ge-flow-animation-"+Editor.guid();var Sa=null!=nb.createElementNS?nb.createElementNS(mxConstants.NS_SVG,"style"):nb.createElement("style");Sa.innerHTML=this.createFlowAnimationCss(lb);nb.getElementsByTagName("defs")[0].appendChild(Sa)}return lb});ha.drawCellState=function(Sa,sb){for(var $a=Sa.view.graph,kb=null!=ua?ua.get(Sa.cell):$a.isCellSelected(Sa.cell),ob=$a.model.getParent(Sa.cell);!(R&&null==ua||kb)&&null!=ob;)kb=null!=ua?ua.get(ob):
$a.isCellSelected(ob),ob=$a.model.getParent(ob);if(null!=Sa.shape)try{var Za=Sa.shape.isFlowAnimationEnabled,xb=Sa.shape.addFlowAnimationToShape;Sa.shape.isFlowAnimationEnabled=function(){return Va&&$a.model.isEdge(Sa.cell)&&"1"==mxUtils.getValue(Sa.style,"flowAnimation","0")};Sa.shape.addFlowAnimationToShape=function(){$a.addFlowAnimationToNode(this.getFlowAnimationPath(),Sa.style,A,hb())};if(R&&null==ua||kb)$a.view.redrawEnumerationState(Sa),yb.apply(this,arguments),this.doDrawShape(Sa.secondLabel,
-sb)}finally{Sa.shape.isFlowAnimationEnabled=Za,Sa.shape.addFlowAnimationToShape=xb}};var Ta=null!=this.view.currentRoot?this.view.currentRoot:this.model.root;ha.drawState(this.getView().getState(Ta),bb);this.addForeignObjectWarning(bb,jb);wa?this.disableSvgLinks(jb):this.updateSvgLinks(jb,fa,!0);return jb}finally{this.enableFlowAnimation=Va,ya&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.addForeignObjectWarning=function(q,A){if("0"!=urlParams["svg-warning"]&&
-0<A.getElementsByTagName("foreignObject").length){var B=q.createElement("switch"),F=q.createElement("g");F.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility");var M=q.createElement("a");M.setAttribute("transform","translate(0,-5)");null==M.setAttributeNS||A.ownerDocument!=document&&null==document.documentMode?(M.setAttribute("xlink:href",Graph.foreignObjectWarningLink),M.setAttribute("target","_blank")):(M.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",Graph.foreignObjectWarningLink),
-M.setAttributeNS(mxConstants.NS_XLINK,"target","_blank"));q=q.createElement("text");q.setAttribute("text-anchor","middle");q.setAttribute("font-size","10px");q.setAttribute("x","50%");q.setAttribute("y","100%");mxUtils.write(q,Graph.foreignObjectWarningText);B.appendChild(F);M.appendChild(q);B.appendChild(M);A.appendChild(B)}};Graph.prototype.disableSvgLinks=function(q,A){q=q.getElementsByTagName("a");for(var B=0;B<q.length;B++){var F=q[B].getAttribute("href");null==F&&(F=q[B].getAttribute("xlink:href"));
-null!=F&&(q[B].style.pointerEvents="none",q[B].setAttribute("href",""));A&&A(q[B])}};Graph.prototype.updateSvgLinks=function(q,A,B){q=q.getElementsByTagName("a");for(var F=0;F<q.length;F++)if(null==q[F].getAttribute("target")){var M=q[F].getAttribute("href");null==M&&(M=q[F].getAttribute("xlink:href"));null!=M&&(null!=A&&/^https?:\/\//.test(M)?q[F].setAttribute("target",A):B&&this.isCustomLink(M)&&q[F].setAttribute("href","javascript:void(0);"))}};Graph.prototype.createSvgCanvas=function(q){q=new mxSvgCanvas2D(q);
-q.minStrokeWidth=this.cellRenderer.minSvgStrokeWidth;q.adaptiveColors=this.getAdaptiveColors();q.pointerEvents=!0;return q};Graph.prototype.getSelectedElement=function(){var q=null;if(window.getSelection){var A=window.getSelection();A.getRangeAt&&A.rangeCount&&(q=A.getRangeAt(0).commonAncestorContainer)}else document.selection&&(q=document.selection.createRange().parentElement());return q};Graph.prototype.getSelectedEditingElement=function(){var q=null;if(null!=this.cellEditor.textarea)for(q=this.getSelectedElement();null!=
-q&&q.nodeType!=mxConstants.NODETYPE_ELEMENT;)q=q.parentNode;return q};Graph.prototype.getParentByName=function(q,A,B){for(;null!=q&&q.nodeName!=A;){if(q==B)return null;q=q.parentNode}return q};Graph.prototype.getParentByNames=function(q,A,B){for(;null!=q&&!(0<=mxUtils.indexOf(A,q.nodeName));){if(q==B)return null;q=q.parentNode}return q};Graph.prototype.selectNode=function(q){var A=null;if(window.getSelection){if(A=window.getSelection(),A.getRangeAt&&A.rangeCount){var B=document.createRange();B.selectNode(q);
-A.removeAllRanges();A.addRange(B)}}else(A=document.selection)&&"Control"!=A.type&&(q=A.createRange(),q.collapse(!0),B=A.createRange(),B.setEndPoint("StartToStart",q),B.select())};Graph.prototype.flipEdgePoints=function(q,A,B){var F=this.getCellGeometry(q);if(null!=F){F=F.clone();if(null!=F.points)for(var M=0;M<F.points.length;M++)A?F.points[M].x=B+(B-F.points[M].x):F.points[M].y=B+(B-F.points[M].y);M=function(R){null!=R&&(A?R.x=B+(B-R.x):R.y=B+(B-R.y))};M(F.getTerminalPoint(!0));M(F.getTerminalPoint(!1));
-this.model.setGeometry(q,F)}};Graph.prototype.flipChildren=function(q,A,B){this.model.beginUpdate();try{for(var F=this.model.getChildCount(q),M=0;M<F;M++){var R=this.model.getChildAt(q,M);if(this.model.isEdge(R))this.flipEdgePoints(R,A,B);else{var W=this.getCellGeometry(R);null!=W&&(W=W.clone(),A?W.x=B+(B-W.x-W.width):W.y=B+(B-W.y-W.height),this.model.setGeometry(R,W))}}}finally{this.model.endUpdate()}};Graph.prototype.flipCells=function(q,A){this.model.beginUpdate();try{q=this.model.getTopmostCells(q);
-for(var B=[],F=0;F<q.length;F++)if(this.model.isEdge(q[F])){var M=this.view.getState(q[F]);null!=M&&this.flipEdgePoints(q[F],A,(A?M.getCenterX():M.getCenterY())/this.view.scale-(A?M.origin.x:M.origin.y)-(A?this.view.translate.x:this.view.translate.y))}else{var R=this.getCellGeometry(q[F]);null!=R&&this.flipChildren(q[F],A,A?R.getCenterX()-R.x:R.getCenterY()-R.y);B.push(q[F])}this.toggleCellStyles(A?mxConstants.STYLE_FLIPH:mxConstants.STYLE_FLIPV,!1,B)}finally{this.model.endUpdate()}};Graph.prototype.deleteCells=
-function(q,A){var B=null;if(null!=q&&0<q.length){this.model.beginUpdate();try{for(var F=0;F<q.length;F++){var M=this.model.getParent(q[F]);if(this.isTable(M)){var R=this.getCellGeometry(q[F]),W=this.getCellGeometry(M);null!=R&&null!=W&&(W=W.clone(),W.height-=R.height,this.model.setGeometry(M,W))}}var ha=this.selectParentAfterDelete?this.model.getParents(q):null;this.removeCells(q,A)}finally{this.model.endUpdate()}if(null!=ha)for(B=[],F=0;F<ha.length;F++)this.model.contains(ha[F])&&(this.model.isVertex(ha[F])||
-this.model.isEdge(ha[F]))&&B.push(ha[F])}return B};Graph.prototype.insertTableColumn=function(q,A){var B=this.getModel();B.beginUpdate();try{var F=q,M=0;if(this.isTableCell(q)){var R=B.getParent(q);F=B.getParent(R);M=mxUtils.indexOf(B.getChildCells(R,!0),q)}else this.isTableRow(q)?F=B.getParent(q):q=B.getChildCells(F,!0)[0],A||(M=B.getChildCells(q,!0).length-1);var W=B.getChildCells(F,!0),ha=Graph.minTableColumnWidth;for(q=0;q<W.length;q++){var fa=B.getChildCells(W[q],!0)[M],ja=B.cloneCell(fa,!1);
-null==ja&&(ja=this.createVertex());var va=this.getCellGeometry(ja);ja.value=null;ja.style=mxUtils.setStyle(mxUtils.setStyle(ja.style,"rowspan",null),"colspan",null);if(null!=va){null!=va.alternateBounds&&(va.width=va.alternateBounds.width,va.height=va.alternateBounds.height,va.alternateBounds=null);ha=va.width;var Ma=this.getCellGeometry(W[q]);null!=Ma&&(va.height=Ma.height)}B.add(W[q],ja,M+(A?0:1))}var Na=this.getCellGeometry(F);null!=Na&&(Na=Na.clone(),Na.width+=ha,B.setGeometry(F,Na))}finally{B.endUpdate()}};
-Graph.prototype.deleteLane=function(q){var A=this.getModel();A.beginUpdate();try{var B=null;B="stackLayout"==this.getCurrentCellStyle(q).childLayout?q:A.getParent(q);var F=A.getChildCells(B,!0);0==F.length?A.remove(B):(B==q&&(q=F[F.length-1]),A.remove(q))}finally{A.endUpdate()}};Graph.prototype.insertLane=function(q,A){var B=this.getModel();B.beginUpdate();try{var F=null;if("stackLayout"==this.getCurrentCellStyle(q).childLayout){F=q;var M=B.getChildCells(F,!0);q=M[A?0:M.length-1]}else F=B.getParent(q);
-var R=F.getIndex(q);q=B.cloneCell(q,!1);q.value=null;B.add(F,q,R+(A?0:1))}finally{B.endUpdate()}};Graph.prototype.insertTableRow=function(q,A){var B=this.getModel();B.beginUpdate();try{var F=q,M=q;if(this.isTableCell(q))M=B.getParent(q),F=B.getParent(M);else if(this.isTableRow(q))F=B.getParent(q);else{var R=B.getChildCells(F,!0);M=R[A?0:R.length-1]}var W=B.getChildCells(M,!0),ha=F.getIndex(M);M=B.cloneCell(M,!1);M.value=null;var fa=this.getCellGeometry(M);if(null!=fa){for(R=0;R<W.length;R++){q=B.cloneCell(W[R],
-!1);q.value=null;q.style=mxUtils.setStyle(mxUtils.setStyle(q.style,"rowspan",null),"colspan",null);var ja=this.getCellGeometry(q);null!=ja&&(null!=ja.alternateBounds&&(ja.width=ja.alternateBounds.width,ja.height=ja.alternateBounds.height,ja.alternateBounds=null),ja.height=fa.height);M.insert(q)}B.add(F,M,ha+(A?0:1));var va=this.getCellGeometry(F);null!=va&&(va=va.clone(),va.height+=fa.height,B.setGeometry(F,va))}}finally{B.endUpdate()}};Graph.prototype.deleteTableColumn=function(q){var A=this.getModel();
-A.beginUpdate();try{var B=q,F=q;this.isTableCell(q)&&(F=A.getParent(q));this.isTableRow(F)&&(B=A.getParent(F));var M=A.getChildCells(B,!0);if(0==M.length)A.remove(B);else{this.isTableRow(F)||(F=M[0]);var R=A.getChildCells(F,!0);if(1>=R.length)A.remove(B);else{var W=R.length-1;this.isTableCell(q)&&(W=mxUtils.indexOf(R,q));for(F=q=0;F<M.length;F++){var ha=A.getChildCells(M[F],!0)[W];A.remove(ha);var fa=this.getCellGeometry(ha);null!=fa&&(q=Math.max(q,fa.width))}var ja=this.getCellGeometry(B);null!=
-ja&&(ja=ja.clone(),ja.width-=q,A.setGeometry(B,ja))}}}finally{A.endUpdate()}};Graph.prototype.deleteTableRow=function(q){var A=this.getModel();A.beginUpdate();try{var B=q,F=q;this.isTableCell(q)&&(q=F=A.getParent(q));this.isTableRow(q)&&(B=A.getParent(F));var M=A.getChildCells(B,!0);if(1>=M.length)A.remove(B);else{this.isTableRow(F)||(F=M[M.length-1]);A.remove(F);q=0;var R=this.getCellGeometry(F);null!=R&&(q=R.height);var W=this.getCellGeometry(B);null!=W&&(W=W.clone(),W.height-=q,A.setGeometry(B,
-W))}}finally{A.endUpdate()}};Graph.prototype.insertRow=function(q,A){for(var B=q.tBodies[0],F=B.rows[0].cells,M=q=0;M<F.length;M++){var R=F[M].getAttribute("colspan");q+=null!=R?parseInt(R):1}A=B.insertRow(A);for(M=0;M<q;M++)mxUtils.br(A.insertCell(-1));return A.cells[0]};Graph.prototype.deleteRow=function(q,A){q.tBodies[0].deleteRow(A)};Graph.prototype.insertColumn=function(q,A){var B=q.tHead;if(null!=B)for(var F=0;F<B.rows.length;F++){var M=document.createElement("th");B.rows[F].appendChild(M);
-mxUtils.br(M)}q=q.tBodies[0];for(B=0;B<q.rows.length;B++)F=q.rows[B].insertCell(A),mxUtils.br(F);return q.rows[0].cells[0<=A?A:q.rows[0].cells.length-1]};Graph.prototype.deleteColumn=function(q,A){if(0<=A){q=q.tBodies[0].rows;for(var B=0;B<q.length;B++)q[B].cells.length>A&&q[B].deleteCell(A)}};Graph.prototype.pasteHtmlAtCaret=function(q){if(window.getSelection){var A=window.getSelection();if(A.getRangeAt&&A.rangeCount){A=A.getRangeAt(0);A.deleteContents();var B=document.createElement("div");B.innerHTML=
-q;q=document.createDocumentFragment();for(var F;F=B.firstChild;)lastNode=q.appendChild(F);A.insertNode(q)}}else(A=document.selection)&&"Control"!=A.type&&A.createRange().pasteHTML(q)};Graph.prototype.createLinkForHint=function(q,A,B){function F(R,W){R.length>W&&(R=R.substring(0,Math.round(W/2))+"..."+R.substring(R.length-Math.round(W/4)));return R}q=null!=q?q:"javascript:void(0);";if(null==A||0==A.length)A=this.isCustomLink(q)?this.getLinkTitle(q):q;var M=document.createElement("a");M.setAttribute("rel",
-this.linkRelation);M.setAttribute("href",this.getAbsoluteUrl(q));M.setAttribute("title",F(this.isCustomLink(q)?this.getLinkTitle(q):q,80));null!=this.linkTarget&&M.setAttribute("target",this.linkTarget);mxUtils.write(M,F(A,40));this.isCustomLink(q)&&mxEvent.addListener(M,"click",mxUtils.bind(this,function(R){this.customLinkClicked(q,B);mxEvent.consume(R)}));return M};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};
-this.addListener(mxEvent.START_EDITING,function(R,W){this.popupMenuHandler.hideMenu()});var q=this.updateMouseEvent;this.updateMouseEvent=function(R){R=q.apply(this,arguments);if(mxEvent.isTouchEvent(R.getEvent())&&null==R.getState()){var W=this.getCellAt(R.graphX,R.graphY);null!=W&&this.isSwimlane(W)&&this.hitsSwimlaneContent(W,R.graphX,R.graphY)||(R.state=this.view.getState(W),null!=R.state&&null!=R.state.shape&&(this.container.style.cursor=R.state.shape.node.style.cursor))}null==R.getState()&&
+sb)}finally{Sa.shape.isFlowAnimationEnabled=Za,Sa.shape.addFlowAnimationToShape=xb}};var Ta=null!=this.view.currentRoot?this.view.currentRoot:this.model.root;ha.drawState(this.getView().getState(Ta),bb);this.addForeignObjectWarning(bb,jb);wa?this.disableSvgLinks(jb):this.updateSvgLinks(jb,fa,!0);return jb}finally{this.enableFlowAnimation=Va,ya&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.addForeignObjectWarning=function(p,A){if("0"!=urlParams["svg-warning"]&&
+0<A.getElementsByTagName("foreignObject").length){var B=p.createElement("switch"),F=p.createElement("g");F.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility");var M=p.createElement("a");M.setAttribute("transform","translate(0,-5)");null==M.setAttributeNS||A.ownerDocument!=document&&null==document.documentMode?(M.setAttribute("xlink:href",Graph.foreignObjectWarningLink),M.setAttribute("target","_blank")):(M.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",Graph.foreignObjectWarningLink),
+M.setAttributeNS(mxConstants.NS_XLINK,"target","_blank"));p=p.createElement("text");p.setAttribute("text-anchor","middle");p.setAttribute("font-size","10px");p.setAttribute("x","50%");p.setAttribute("y","100%");mxUtils.write(p,Graph.foreignObjectWarningText);B.appendChild(F);M.appendChild(p);B.appendChild(M);A.appendChild(B)}};Graph.prototype.disableSvgLinks=function(p,A){p=p.getElementsByTagName("a");for(var B=0;B<p.length;B++){var F=p[B].getAttribute("href");null==F&&(F=p[B].getAttribute("xlink:href"));
+null!=F&&(p[B].style.pointerEvents="none",p[B].setAttribute("href",""));A&&A(p[B])}};Graph.prototype.updateSvgLinks=function(p,A,B){p=p.getElementsByTagName("a");for(var F=0;F<p.length;F++)if(null==p[F].getAttribute("target")){var M=p[F].getAttribute("href");null==M&&(M=p[F].getAttribute("xlink:href"));null!=M&&(null!=A&&/^https?:\/\//.test(M)?p[F].setAttribute("target",A):B&&this.isCustomLink(M)&&p[F].setAttribute("href","javascript:void(0);"))}};Graph.prototype.createSvgCanvas=function(p){p=new mxSvgCanvas2D(p);
+p.minStrokeWidth=this.cellRenderer.minSvgStrokeWidth;p.adaptiveColors=this.getAdaptiveColors();p.pointerEvents=!0;return p};Graph.prototype.getSelectedElement=function(){var p=null;if(window.getSelection){var A=window.getSelection();A.getRangeAt&&A.rangeCount&&(p=A.getRangeAt(0).commonAncestorContainer)}else document.selection&&(p=document.selection.createRange().parentElement());return p};Graph.prototype.getSelectedEditingElement=function(){var p=null;if(null!=this.cellEditor.textarea)for(p=this.getSelectedElement();null!=
+p&&p.nodeType!=mxConstants.NODETYPE_ELEMENT;)p=p.parentNode;return p};Graph.prototype.getParentByName=function(p,A,B){for(;null!=p&&p.nodeName!=A;){if(p==B)return null;p=p.parentNode}return p};Graph.prototype.getParentByNames=function(p,A,B){for(;null!=p&&!(0<=mxUtils.indexOf(A,p.nodeName));){if(p==B)return null;p=p.parentNode}return p};Graph.prototype.selectNode=function(p){var A=null;if(window.getSelection){if(A=window.getSelection(),A.getRangeAt&&A.rangeCount){var B=document.createRange();B.selectNode(p);
+A.removeAllRanges();A.addRange(B)}}else(A=document.selection)&&"Control"!=A.type&&(p=A.createRange(),p.collapse(!0),B=A.createRange(),B.setEndPoint("StartToStart",p),B.select())};Graph.prototype.flipEdgePoints=function(p,A,B){var F=this.getCellGeometry(p);if(null!=F){F=F.clone();if(null!=F.points)for(var M=0;M<F.points.length;M++)A?F.points[M].x=B+(B-F.points[M].x):F.points[M].y=B+(B-F.points[M].y);M=function(R){null!=R&&(A?R.x=B+(B-R.x):R.y=B+(B-R.y))};M(F.getTerminalPoint(!0));M(F.getTerminalPoint(!1));
+this.model.setGeometry(p,F)}};Graph.prototype.flipChildren=function(p,A,B){this.model.beginUpdate();try{for(var F=this.model.getChildCount(p),M=0;M<F;M++){var R=this.model.getChildAt(p,M);if(this.model.isEdge(R))this.flipEdgePoints(R,A,B);else{var W=this.getCellGeometry(R);null!=W&&(W=W.clone(),A?W.x=B+(B-W.x-W.width):W.y=B+(B-W.y-W.height),this.model.setGeometry(R,W))}}}finally{this.model.endUpdate()}};Graph.prototype.flipCells=function(p,A){this.model.beginUpdate();try{p=this.model.getTopmostCells(p);
+for(var B=[],F=0;F<p.length;F++)if(this.model.isEdge(p[F])){var M=this.view.getState(p[F]);null!=M&&this.flipEdgePoints(p[F],A,(A?M.getCenterX():M.getCenterY())/this.view.scale-(A?M.origin.x:M.origin.y)-(A?this.view.translate.x:this.view.translate.y))}else{var R=this.getCellGeometry(p[F]);null!=R&&this.flipChildren(p[F],A,A?R.getCenterX()-R.x:R.getCenterY()-R.y);B.push(p[F])}this.toggleCellStyles(A?mxConstants.STYLE_FLIPH:mxConstants.STYLE_FLIPV,!1,B)}finally{this.model.endUpdate()}};Graph.prototype.deleteCells=
+function(p,A){var B=null;if(null!=p&&0<p.length){this.model.beginUpdate();try{for(var F=0;F<p.length;F++){var M=this.model.getParent(p[F]);if(this.isTable(M)){var R=this.getCellGeometry(p[F]),W=this.getCellGeometry(M);null!=R&&null!=W&&(W=W.clone(),W.height-=R.height,this.model.setGeometry(M,W))}}var ha=this.selectParentAfterDelete?this.model.getParents(p):null;this.removeCells(p,A)}finally{this.model.endUpdate()}if(null!=ha)for(B=[],F=0;F<ha.length;F++)this.model.contains(ha[F])&&(this.model.isVertex(ha[F])||
+this.model.isEdge(ha[F]))&&B.push(ha[F])}return B};Graph.prototype.insertTableColumn=function(p,A){var B=this.getModel();B.beginUpdate();try{var F=p,M=0;if(this.isTableCell(p)){var R=B.getParent(p);F=B.getParent(R);M=mxUtils.indexOf(B.getChildCells(R,!0),p)}else this.isTableRow(p)?F=B.getParent(p):p=B.getChildCells(F,!0)[0],A||(M=B.getChildCells(p,!0).length-1);var W=B.getChildCells(F,!0),ha=Graph.minTableColumnWidth;for(p=0;p<W.length;p++){var fa=B.getChildCells(W[p],!0)[M],ja=B.cloneCell(fa,!1);
+null==ja&&(ja=this.createVertex());var va=this.getCellGeometry(ja);ja.value=null;ja.style=mxUtils.setStyle(mxUtils.setStyle(ja.style,"rowspan",null),"colspan",null);if(null!=va){null!=va.alternateBounds&&(va.width=va.alternateBounds.width,va.height=va.alternateBounds.height,va.alternateBounds=null);ha=va.width;var Ma=this.getCellGeometry(W[p]);null!=Ma&&(va.height=Ma.height)}B.add(W[p],ja,M+(A?0:1))}var Na=this.getCellGeometry(F);null!=Na&&(Na=Na.clone(),Na.width+=ha,B.setGeometry(F,Na))}finally{B.endUpdate()}};
+Graph.prototype.deleteLane=function(p){var A=this.getModel();A.beginUpdate();try{var B=null;B="stackLayout"==this.getCurrentCellStyle(p).childLayout?p:A.getParent(p);var F=A.getChildCells(B,!0);0==F.length?A.remove(B):(B==p&&(p=F[F.length-1]),A.remove(p))}finally{A.endUpdate()}};Graph.prototype.insertLane=function(p,A){var B=this.getModel();B.beginUpdate();try{var F=null;if("stackLayout"==this.getCurrentCellStyle(p).childLayout){F=p;var M=B.getChildCells(F,!0);p=M[A?0:M.length-1]}else F=B.getParent(p);
+var R=F.getIndex(p);p=B.cloneCell(p,!1);p.value=null;B.add(F,p,R+(A?0:1))}finally{B.endUpdate()}};Graph.prototype.insertTableRow=function(p,A){var B=this.getModel();B.beginUpdate();try{var F=p,M=p;if(this.isTableCell(p))M=B.getParent(p),F=B.getParent(M);else if(this.isTableRow(p))F=B.getParent(p);else{var R=B.getChildCells(F,!0);M=R[A?0:R.length-1]}var W=B.getChildCells(M,!0),ha=F.getIndex(M);M=B.cloneCell(M,!1);M.value=null;var fa=this.getCellGeometry(M);if(null!=fa){for(R=0;R<W.length;R++){p=B.cloneCell(W[R],
+!1);p.value=null;p.style=mxUtils.setStyle(mxUtils.setStyle(p.style,"rowspan",null),"colspan",null);var ja=this.getCellGeometry(p);null!=ja&&(null!=ja.alternateBounds&&(ja.width=ja.alternateBounds.width,ja.height=ja.alternateBounds.height,ja.alternateBounds=null),ja.height=fa.height);M.insert(p)}B.add(F,M,ha+(A?0:1));var va=this.getCellGeometry(F);null!=va&&(va=va.clone(),va.height+=fa.height,B.setGeometry(F,va))}}finally{B.endUpdate()}};Graph.prototype.deleteTableColumn=function(p){var A=this.getModel();
+A.beginUpdate();try{var B=p,F=p;this.isTableCell(p)&&(F=A.getParent(p));this.isTableRow(F)&&(B=A.getParent(F));var M=A.getChildCells(B,!0);if(0==M.length)A.remove(B);else{this.isTableRow(F)||(F=M[0]);var R=A.getChildCells(F,!0);if(1>=R.length)A.remove(B);else{var W=R.length-1;this.isTableCell(p)&&(W=mxUtils.indexOf(R,p));for(F=p=0;F<M.length;F++){var ha=A.getChildCells(M[F],!0)[W];A.remove(ha);var fa=this.getCellGeometry(ha);null!=fa&&(p=Math.max(p,fa.width))}var ja=this.getCellGeometry(B);null!=
+ja&&(ja=ja.clone(),ja.width-=p,A.setGeometry(B,ja))}}}finally{A.endUpdate()}};Graph.prototype.deleteTableRow=function(p){var A=this.getModel();A.beginUpdate();try{var B=p,F=p;this.isTableCell(p)&&(p=F=A.getParent(p));this.isTableRow(p)&&(B=A.getParent(F));var M=A.getChildCells(B,!0);if(1>=M.length)A.remove(B);else{this.isTableRow(F)||(F=M[M.length-1]);A.remove(F);p=0;var R=this.getCellGeometry(F);null!=R&&(p=R.height);var W=this.getCellGeometry(B);null!=W&&(W=W.clone(),W.height-=p,A.setGeometry(B,
+W))}}finally{A.endUpdate()}};Graph.prototype.insertRow=function(p,A){for(var B=p.tBodies[0],F=B.rows[0].cells,M=p=0;M<F.length;M++){var R=F[M].getAttribute("colspan");p+=null!=R?parseInt(R):1}A=B.insertRow(A);for(M=0;M<p;M++)mxUtils.br(A.insertCell(-1));return A.cells[0]};Graph.prototype.deleteRow=function(p,A){p.tBodies[0].deleteRow(A)};Graph.prototype.insertColumn=function(p,A){var B=p.tHead;if(null!=B)for(var F=0;F<B.rows.length;F++){var M=document.createElement("th");B.rows[F].appendChild(M);
+mxUtils.br(M)}p=p.tBodies[0];for(B=0;B<p.rows.length;B++)F=p.rows[B].insertCell(A),mxUtils.br(F);return p.rows[0].cells[0<=A?A:p.rows[0].cells.length-1]};Graph.prototype.deleteColumn=function(p,A){if(0<=A){p=p.tBodies[0].rows;for(var B=0;B<p.length;B++)p[B].cells.length>A&&p[B].deleteCell(A)}};Graph.prototype.pasteHtmlAtCaret=function(p){if(window.getSelection){var A=window.getSelection();if(A.getRangeAt&&A.rangeCount){A=A.getRangeAt(0);A.deleteContents();var B=document.createElement("div");B.innerHTML=
+p;p=document.createDocumentFragment();for(var F;F=B.firstChild;)lastNode=p.appendChild(F);A.insertNode(p)}}else(A=document.selection)&&"Control"!=A.type&&A.createRange().pasteHTML(p)};Graph.prototype.createLinkForHint=function(p,A,B){function F(R,W){R.length>W&&(R=R.substring(0,Math.round(W/2))+"..."+R.substring(R.length-Math.round(W/4)));return R}p=null!=p?p:"javascript:void(0);";if(null==A||0==A.length)A=this.isCustomLink(p)?this.getLinkTitle(p):p;var M=document.createElement("a");M.setAttribute("rel",
+this.linkRelation);M.setAttribute("href",this.getAbsoluteUrl(p));M.setAttribute("title",F(this.isCustomLink(p)?this.getLinkTitle(p):p,80));null!=this.linkTarget&&M.setAttribute("target",this.linkTarget);mxUtils.write(M,F(A,40));this.isCustomLink(p)&&mxEvent.addListener(M,"click",mxUtils.bind(this,function(R){this.customLinkClicked(p,B);mxEvent.consume(R)}));return M};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};
+this.addListener(mxEvent.START_EDITING,function(R,W){this.popupMenuHandler.hideMenu()});var p=this.updateMouseEvent;this.updateMouseEvent=function(R){R=p.apply(this,arguments);if(mxEvent.isTouchEvent(R.getEvent())&&null==R.getState()){var W=this.getCellAt(R.graphX,R.graphY);null!=W&&this.isSwimlane(W)&&this.hitsSwimlaneContent(W,R.graphX,R.graphY)||(R.state=this.view.getState(W),null!=R.state&&null!=R.state.shape&&(this.container.style.cursor=R.state.shape.node.style.cursor))}null==R.getState()&&
this.isEnabled()&&(this.container.style.cursor="default");return R};var A=!1,B=!1,F=!1,M=this.fireMouseEvent;this.fireMouseEvent=function(R,W,ha){R==mxEvent.MOUSE_DOWN&&(W=this.updateMouseEvent(W),A=this.isCellSelected(W.getCell()),B=this.isSelectionEmpty(),F=this.popupMenuHandler.isMenuShowing());M.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(R,W){if(null!=this.freehand&&!this.freehand.isDrawing()){var ha=mxEvent.isMouseEvent(W.getEvent());this.popupMenuHandler.popupTrigger=
!this.isEditing()&&this.isEnabled()&&(null==W.getState()||!W.isSource(W.getState().control))&&(this.popupMenuHandler.popupTrigger||!F&&!ha&&(B&&null==W.getCell()&&this.isSelectionEmpty()||A&&this.isCellSelected(W.getCell())));ha=!A||ha?null:mxUtils.bind(this,function(fa){window.setTimeout(mxUtils.bind(this,function(){if(!this.isEditing()){var ja=mxUtils.getScrollOrigin();this.popupMenuHandler.popup(W.getX()+ja.x+1,W.getY()+ja.y+1,fa,W.getEvent())}}),300)});mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler,
-[R,W,ha])}})};mxCellEditor.prototype.isContentEditing=function(){var q=this.graph.view.getState(this.editingCell);return null!=q&&1==q.style.html};mxCellEditor.prototype.isTableSelected=function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected=function(){var q="";window.getSelection?q=window.getSelection():document.getSelection?q=document.getSelection():document.selection&&(q=document.selection.createRange().text);
-return""!=q};mxCellEditor.prototype.insertTab=function(q){var A=this.textarea.ownerDocument.defaultView.getSelection(),B=A.getRangeAt(0);q=Graph.createTabNode(q);B.insertNode(q);B.setStartAfter(q);B.setEndAfter(q);A.removeAllRanges();A.addRange(B)};mxCellEditor.prototype.alignText=function(q,A){var B=this.graph.getView().getState(this.editingCell);if(null!=B){B=mxUtils.getValue(B.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);var F=null!=B&&"vertical-"==B.substring(0,9),
-M=null!=A&&mxEvent.isShiftDown(A);if(M||null!=window.getSelection&&null!=window.getSelection().containsNode){var R=!0;this.graph.processElements(this.textarea,function(W){M||F||window.getSelection().containsNode(W,!0)?(W.removeAttribute("align"),W.style.textAlign=null):R=!1});(R||F)&&this.graph.cellEditor.setAlign(q)}F||document.execCommand("justify"+q.toLowerCase(),!1,null)}};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var q=window.getSelection();if(q.getRangeAt&&q.rangeCount){for(var A=
-[],B=0,F=q.rangeCount;B<F;++B)A.push(q.getRangeAt(B));return A}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=function(q){try{if(q)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var A=0,B=q.length;A<B;++A)sel.addRange(q[A])}else document.selection&&q.select&&q.select()}catch(F){}};var G=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=
-function(q){null!=q.text&&(q.text.replaceLinefeeds="0"!=mxUtils.getValue(q.style,"nl2Br","1"));G.apply(this,arguments)};var J=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(q,A){this.isKeepFocusEvent(q)||!mxEvent.isAltDown(q.getEvent())?J.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(q){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var L=mxCellEditor.prototype.startEditing;
-mxCellEditor.prototype.startEditing=function(q,A){q=this.graph.getStartEditingCell(q,A);L.apply(this,arguments);var B=this.graph.view.getState(q);this.textarea.className=null!=B&&1==B.style.html?"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";this.textarea.style.colorScheme="none"==this.graph.getAdaptiveColors()?"light":"";this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(q)};mxCellEditor.prototype.toggleViewMode=function(){var q=this.graph.view.getState(this.editingCell);
-if(null!=q){var A=null!=q&&"0"!=mxUtils.getValue(q.style,"nl2Br","1"),B=this.saveSelection();if(this.codeViewMode){Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);ha=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0<ha.length&&"\n"==ha.charAt(ha.length-1)&&(ha=ha.substring(0,ha.length-1));ha=Graph.sanitizeHtml(A?ha.replace(/\n/g,"<br/>"):ha,!0);this.textarea.className="mxCellEditor geContentEditable";fa=mxUtils.getValue(q.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);
-A=mxUtils.getValue(q.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);var F=mxUtils.getValue(q.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),M=(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,R=(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,W=[];(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&W.push("underline");
-(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&W.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(fa*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(fa)+"px";this.textarea.style.textDecoration=W.join(" ");this.textarea.style.fontWeight=M?"bold":"normal";this.textarea.style.fontStyle=R?"italic":"";this.textarea.style.fontFamily=A;this.textarea.style.textAlign=
+[R,W,ha])}})};mxCellEditor.prototype.isContentEditing=function(){var p=this.graph.view.getState(this.editingCell);return null!=p&&1==p.style.html};mxCellEditor.prototype.isTableSelected=function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected=function(){var p="";window.getSelection?p=window.getSelection():document.getSelection?p=document.getSelection():document.selection&&(p=document.selection.createRange().text);
+return""!=p};mxCellEditor.prototype.insertTab=function(p){var A=this.textarea.ownerDocument.defaultView.getSelection(),B=A.getRangeAt(0);p=Graph.createTabNode(p);B.insertNode(p);B.setStartAfter(p);B.setEndAfter(p);A.removeAllRanges();A.addRange(B)};mxCellEditor.prototype.alignText=function(p,A){var B=this.graph.getView().getState(this.editingCell);if(null!=B){B=mxUtils.getValue(B.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);var F=null!=B&&"vertical-"==B.substring(0,9),
+M=null!=A&&mxEvent.isShiftDown(A);if(M||null!=window.getSelection&&null!=window.getSelection().containsNode){var R=!0;this.graph.processElements(this.textarea,function(W){M||F||window.getSelection().containsNode(W,!0)?(W.removeAttribute("align"),W.style.textAlign=null):R=!1});(R||F)&&this.graph.cellEditor.setAlign(p)}F||document.execCommand("justify"+p.toLowerCase(),!1,null)}};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var p=window.getSelection();if(p.getRangeAt&&p.rangeCount){for(var A=
+[],B=0,F=p.rangeCount;B<F;++B)A.push(p.getRangeAt(B));return A}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=function(p){try{if(p)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var A=0,B=p.length;A<B;++A)sel.addRange(p[A])}else document.selection&&p.select&&p.select()}catch(F){}};var G=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=
+function(p){null!=p.text&&(p.text.replaceLinefeeds="0"!=mxUtils.getValue(p.style,"nl2Br","1"));G.apply(this,arguments)};var J=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(p,A){this.isKeepFocusEvent(p)||!mxEvent.isAltDown(p.getEvent())?J.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(p){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var L=mxCellEditor.prototype.startEditing;
+mxCellEditor.prototype.startEditing=function(p,A){p=this.graph.getStartEditingCell(p,A);L.apply(this,arguments);var B=this.graph.view.getState(p);this.textarea.className=null!=B&&1==B.style.html?"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";this.textarea.style.colorScheme="none"==this.graph.getAdaptiveColors()?"light":"";this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(p)};mxCellEditor.prototype.toggleViewMode=function(){var p=this.graph.view.getState(this.editingCell);
+if(null!=p){var A=null!=p&&"0"!=mxUtils.getValue(p.style,"nl2Br","1"),B=this.saveSelection();if(this.codeViewMode){Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);ha=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0<ha.length&&"\n"==ha.charAt(ha.length-1)&&(ha=ha.substring(0,ha.length-1));ha=Graph.sanitizeHtml(A?ha.replace(/\n/g,"<br/>"):ha,!0);this.textarea.className="mxCellEditor geContentEditable";fa=mxUtils.getValue(p.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);
+A=mxUtils.getValue(p.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);var F=mxUtils.getValue(p.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),M=(mxUtils.getValue(p.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,R=(mxUtils.getValue(p.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,W=[];(mxUtils.getValue(p.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&W.push("underline");
+(mxUtils.getValue(p.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&W.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(fa*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(fa)+"px";this.textarea.style.textDecoration=W.join(" ");this.textarea.style.fontWeight=M?"bold":"normal";this.textarea.style.fontStyle=R?"italic":"";this.textarea.style.fontFamily=A;this.textarea.style.textAlign=
F;this.textarea.style.padding="0px";this.textarea.innerHTML!=ha&&(this.textarea.innerHTML=ha,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0<this.textarea.innerHTML.length));Graph.addLightDarkColors(this.textarea,Graph.backupStyleAttribute,"simple"==this.graph.getAdaptiveColors());this.codeViewMode=!1}else{this.clearOnChange&&this.textarea.innerHTML==this.getEmptyLabelText()&&(this.clearOnChange=!1,this.textarea.innerText="");Graph.removeLightDarkColors(this.textarea,
Graph.backupStyleAttribute);var ha=mxUtils.htmlEntities(this.textarea.innerHTML);8!=document.documentMode&&(ha=mxUtils.replaceTrailingNewlines(ha,"<div><br></div>"));ha=Graph.sanitizeHtml(A?ha.replace(/\n/g,"").replace(/&lt;br\s*.?&gt;/g,"<br>"):ha,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var fa=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(fa*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=
Math.round(fa)+"px";this.textarea.style.textDecoration="";this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.width="";this.textarea.style.padding="2px";this.textarea.innerHTML!=ha&&(this.textarea.innerHTML=ha);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState);this.switchSelectionState=
-B;this.resize()}};var Q=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(q,A){if(null!=this.textarea)if(q=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=q){var B=q.view.scale;this.bounds=mxRectangle.fromRectangle(q);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*B;this.bounds.height=60*B;var F=null!=q.text?q.text.margin:null;null==F&&(F=mxUtils.getAlignmentAsPoint(mxUtils.getValue(q.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),
-mxUtils.getValue(q.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=F.x*this.bounds.width;this.bounds.y+=F.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/B)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/B)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/B)+(this.textarea.offsetHeight-this.textarea.clientHeight)+
+B;this.resize()}};var Q=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(p,A){if(null!=this.textarea)if(p=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=p){var B=p.view.scale;this.bounds=mxRectangle.fromRectangle(p);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*B;this.bounds.height=60*B;var F=null!=p.text?p.text.margin:null;null==F&&(F=mxUtils.getAlignmentAsPoint(mxUtils.getValue(p.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),
+mxUtils.getValue(p.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=F.x*this.bounds.width;this.bounds.y+=F.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/B)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/B)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/B)+(this.textarea.offsetHeight-this.textarea.clientHeight)+
"px",this.bounds.height=parseInt(this.textarea.style.height)*B);this.textarea.clientWidth<this.textarea.offsetWidth&&(this.textarea.style.width=Math.round(this.bounds.width/B)+(this.textarea.offsetWidth-this.textarea.clientWidth)+"px",this.bounds.width=parseInt(this.textarea.style.width)*B);this.textarea.style.left=Math.round(this.bounds.x)+"px";this.textarea.style.top=Math.round(this.bounds.y)+"px";mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+B+","+B+")")}else this.textarea.style.height=
-"",this.textarea.style.overflow="",Q.apply(this,arguments)};mxCellEditorGetInitialValue=mxCellEditor.prototype.getInitialValue;mxCellEditor.prototype.getInitialValue=function(q,A){if("0"==mxUtils.getValue(q.style,"html","0"))return mxCellEditorGetInitialValue.apply(this,arguments);var B=this.graph.getEditingValue(q.cell,A);"1"==mxUtils.getValue(q.style,"nl2Br","1")&&(B=B.replace(/\n/g,"<br/>"));return Graph.sanitizeHtml(B,!0)};mxCellEditorSetEditingValue=mxCellEditor.prototype.setEditingValue;mxCellEditor.prototype.setEditingValue=
-function(q,A){mxCellEditorSetEditingValue.apply(this,arguments);"1"==mxUtils.getValue(q.style,"html","0")&&Graph.addLightDarkColors(this.textarea,Graph.backupStyleAttribute,"simple"==this.graph.getAdaptiveColors())};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(q){if("0"==mxUtils.getValue(q.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);
-var A=Graph.sanitizeHtml(this.textarea.innerHTML,!0);"1"==mxUtils.getValue(q.style,"nl2Br","1")?(A=A.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>"),0<A.length&&("<br/>"==A.substring(A.length-5)||"<br>"==A.substring(A.length-4))&&(A=A.substring(0,A.lastIndexOf("<br"))+"<div><br/></div>")):A=A.replace(/\r\n/g,"").replace(/\n/g,"");return A};var N=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(q){this.codeViewMode&&this.toggleViewMode();N.apply(this,arguments);this.focusContainer()};
-mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(q){}};var U=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(q,A){this.graph.getModel().beginUpdate();try{U.apply(this,arguments),""==A&&this.graph.isCellDeletable(q.cell)&&0==this.graph.model.getChildCount(q.cell)&&this.graph.isTransparentState(q)&&this.graph.removeCells([q.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(q){q=
-mxUtils.getValue(q.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);q==mxConstants.NONE&&(q=null);return q};mxCellEditor.prototype.getBorderColor=function(q){q=mxUtils.getValue(q.style,mxConstants.STYLE_LABEL_BORDERCOLOR,null);q==mxConstants.NONE&&(q=null);return q};mxCellEditor.prototype.getMinimumSize=function(q){var A=this.graph.getView().scale;return new mxRectangle(0,0,null==q.text?30:q.text.size*A+20,30)};mxGraphHandlerIsValidDropTarget=mxGraphHandler.prototype.isValidDropTarget;mxGraphHandler.prototype.isValidDropTarget=
-function(q,A){return mxGraphHandlerIsValidDropTarget.apply(this,arguments)&&!mxEvent.isAltDown(A.getEvent)};mxGraphView.prototype.formatUnitText=function(q){return q?b(q,this.unit):q};mxGraphHandler.prototype.updateHint=function(q){if(null!=this.pBounds&&(null!=this.shape||this.livePreviewActive)){null==this.hint&&(this.hint=a(),this.graph.container.appendChild(this.hint));var A=this.graph.view.translate,B=this.graph.view.scale;q=this.roundLength((this.bounds.x+this.currentDx)/B-A.x);A=this.roundLength((this.bounds.y+
-this.currentDy)/B-A.y);B=this.graph.view.unit;this.hint.innerHTML=b(q,B)+", "+b(A,B);this.hint.style.left=this.pBounds.x+this.currentDx+Math.round((this.pBounds.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=this.pBounds.y+this.currentDy+this.pBounds.height+Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(null!=this.hint.parentNode&&this.hint.parentNode.removeChild(this.hint),this.hint=null)};var Y=mxStackLayout.prototype.resizeCell;mxStackLayout.prototype.resizeCell=
-function(q,A){Y.apply(this,arguments);var B=this.graph.getCellStyle(q);if(null==B.childLayout){var F=this.graph.model.getParent(q),M=null!=F?this.graph.getCellGeometry(F):null;if(null!=M&&(B=this.graph.getCellStyle(F),"stackLayout"==B.childLayout)){var R=parseFloat(mxUtils.getValue(B,"stackBorder",mxStackLayout.prototype.border));B="1"==mxUtils.getValue(B,"horizontalStack","1");var W=this.graph.getActualStartSize(F);M=M.clone();B?M.height=A.height+W.y+W.height+2*R:M.width=A.width+W.x+W.width+2*R;
-this.graph.model.setGeometry(F,M)}}};var P=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function q(ha){B.get(ha)||(B.put(ha,!0),M.push(ha))}for(var A=P.apply(this,arguments),B=new mxDictionary,F=this.graph.model,M=[],R=0;R<A.length;R++){var W=A[R];this.graph.isTableCell(W)?q(F.getParent(F.getParent(W))):this.graph.isTableRow(W)&&q(F.getParent(W));q(W)}return M};var T=mxConnectionHandler.prototype.isStartEvent;mxConnectionHandler.prototype.isStartEvent=
-function(q){return T.apply(this,arguments)&&!mxEvent.isControlDown(q.getEvent())&&!mxEvent.isShiftDown(q.getEvent())};var K=mxVertexHandler.prototype.isGhostPreview;mxVertexHandler.prototype.isGhostPreview=function(){return K.apply(this,arguments)&&!this.graph.isTable(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isSwimlane(this.state.cell)};var V=mxVertexHandler.prototype.createParentHighlightShape;mxVertexHandler.prototype.createParentHighlightShape=
-function(q){var A=V.apply(this,arguments);A.stroke="#C0C0C0";A.strokewidth=1;return A};var Z=mxEdgeHandler.prototype.createParentHighlightShape;mxEdgeHandler.prototype.createParentHighlightShape=function(q){var A=Z.apply(this,arguments);A.stroke="#C0C0C0";A.strokewidth=1;return A};mxVertexHandler.prototype.rotationHandleVSpacing=-12;mxVertexHandler.prototype.getRotationHandlePosition=function(){var q=this.getHandlePadding();return new mxPoint(this.bounds.x+this.bounds.width-this.rotationHandleVSpacing+
-q.x/2,this.bounds.y+this.rotationHandleVSpacing-q.y/2)};mxVertexHandler.prototype.isRecursiveResize=function(q,A){return this.graph.isRecursiveVertexResize(q)&&!mxEvent.isAltDown(A.getEvent())};mxVertexHandler.prototype.isCenteredEvent=function(q,A){return mxEvent.isControlDown(A.getEvent())||mxEvent.isMetaDown(A.getEvent())};var ia=mxVertexHandler.prototype.isRotationHandleVisible;mxVertexHandler.prototype.isRotationHandleVisible=function(){return ia.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&
+"",this.textarea.style.overflow="",Q.apply(this,arguments)};mxCellEditorGetInitialValue=mxCellEditor.prototype.getInitialValue;mxCellEditor.prototype.getInitialValue=function(p,A){if("0"==mxUtils.getValue(p.style,"html","0"))return mxCellEditorGetInitialValue.apply(this,arguments);var B=this.graph.getEditingValue(p.cell,A);"1"==mxUtils.getValue(p.style,"nl2Br","1")&&(B=B.replace(/\n/g,"<br/>"));return Graph.sanitizeHtml(B,!0)};mxCellEditorSetEditingValue=mxCellEditor.prototype.setEditingValue;mxCellEditor.prototype.setEditingValue=
+function(p,A){mxCellEditorSetEditingValue.apply(this,arguments);"1"==mxUtils.getValue(p.style,"html","0")&&Graph.addLightDarkColors(this.textarea,Graph.backupStyleAttribute,"simple"==this.graph.getAdaptiveColors())};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(p){if("0"==mxUtils.getValue(p.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);
+var A=Graph.sanitizeHtml(this.textarea.innerHTML,!0);"1"==mxUtils.getValue(p.style,"nl2Br","1")?(A=A.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>"),0<A.length&&("<br/>"==A.substring(A.length-5)||"<br>"==A.substring(A.length-4))&&(A=A.substring(0,A.lastIndexOf("<br"))+"<div><br/></div>")):A=A.replace(/\r\n/g,"").replace(/\n/g,"");return A};var N=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(p){this.codeViewMode&&this.toggleViewMode();N.apply(this,arguments);this.focusContainer()};
+mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(p){}};var U=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(p,A){this.graph.getModel().beginUpdate();try{U.apply(this,arguments),""==A&&this.graph.isCellDeletable(p.cell)&&0==this.graph.model.getChildCount(p.cell)&&this.graph.isTransparentState(p)&&this.graph.removeCells([p.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(p){p=
+mxUtils.getValue(p.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);p==mxConstants.NONE&&(p=null);return p};mxCellEditor.prototype.getBorderColor=function(p){p=mxUtils.getValue(p.style,mxConstants.STYLE_LABEL_BORDERCOLOR,null);p==mxConstants.NONE&&(p=null);return p};mxCellEditor.prototype.getMinimumSize=function(p){var A=this.graph.getView().scale;return new mxRectangle(0,0,null==p.text?30:p.text.size*A+20,30)};mxGraphHandlerIsValidDropTarget=mxGraphHandler.prototype.isValidDropTarget;mxGraphHandler.prototype.isValidDropTarget=
+function(p,A){return mxGraphHandlerIsValidDropTarget.apply(this,arguments)&&!mxEvent.isAltDown(A.getEvent)};mxGraphView.prototype.formatUnitText=function(p){return p?b(p,this.unit):p};mxGraphHandler.prototype.updateHint=function(p){if(null!=this.pBounds&&(null!=this.shape||this.livePreviewActive)){null==this.hint&&(this.hint=a(),this.graph.container.appendChild(this.hint));var A=this.graph.view.translate,B=this.graph.view.scale;p=this.roundLength((this.bounds.x+this.currentDx)/B-A.x);A=this.roundLength((this.bounds.y+
+this.currentDy)/B-A.y);B=this.graph.view.unit;this.hint.innerHTML=b(p,B)+", "+b(A,B);this.hint.style.left=this.pBounds.x+this.currentDx+Math.round((this.pBounds.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=this.pBounds.y+this.currentDy+this.pBounds.height+Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(null!=this.hint.parentNode&&this.hint.parentNode.removeChild(this.hint),this.hint=null)};var Y=mxStackLayout.prototype.resizeCell;mxStackLayout.prototype.resizeCell=
+function(p,A){Y.apply(this,arguments);var B=this.graph.getCellStyle(p);if(null==B.childLayout){var F=this.graph.model.getParent(p),M=null!=F?this.graph.getCellGeometry(F):null;if(null!=M&&(B=this.graph.getCellStyle(F),"stackLayout"==B.childLayout)){var R=parseFloat(mxUtils.getValue(B,"stackBorder",mxStackLayout.prototype.border));B="1"==mxUtils.getValue(B,"horizontalStack","1");var W=this.graph.getActualStartSize(F);M=M.clone();B?M.height=A.height+W.y+W.height+2*R:M.width=A.width+W.x+W.width+2*R;
+this.graph.model.setGeometry(F,M)}}};var P=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function p(ha){B.get(ha)||(B.put(ha,!0),M.push(ha))}for(var A=P.apply(this,arguments),B=new mxDictionary,F=this.graph.model,M=[],R=0;R<A.length;R++){var W=A[R];this.graph.isTableCell(W)?p(F.getParent(F.getParent(W))):this.graph.isTableRow(W)&&p(F.getParent(W));p(W)}return M};var T=mxConnectionHandler.prototype.isStartEvent;mxConnectionHandler.prototype.isStartEvent=
+function(p){return T.apply(this,arguments)&&!mxEvent.isControlDown(p.getEvent())&&!mxEvent.isShiftDown(p.getEvent())};var K=mxVertexHandler.prototype.isGhostPreview;mxVertexHandler.prototype.isGhostPreview=function(){return K.apply(this,arguments)&&!this.graph.isTable(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isSwimlane(this.state.cell)};var V=mxVertexHandler.prototype.createParentHighlightShape;mxVertexHandler.prototype.createParentHighlightShape=
+function(p){var A=V.apply(this,arguments);A.stroke="#C0C0C0";A.strokewidth=1;return A};var Z=mxEdgeHandler.prototype.createParentHighlightShape;mxEdgeHandler.prototype.createParentHighlightShape=function(p){var A=Z.apply(this,arguments);A.stroke="#C0C0C0";A.strokewidth=1;return A};mxVertexHandler.prototype.rotationHandleVSpacing=-12;mxVertexHandler.prototype.getRotationHandlePosition=function(){var p=this.getHandlePadding();return new mxPoint(this.bounds.x+this.bounds.width-this.rotationHandleVSpacing+
+p.x/2,this.bounds.y+this.rotationHandleVSpacing-p.y/2)};mxVertexHandler.prototype.isRecursiveResize=function(p,A){return this.graph.isRecursiveVertexResize(p)&&!mxEvent.isAltDown(A.getEvent())};mxVertexHandler.prototype.isCenteredEvent=function(p,A){return mxEvent.isControlDown(A.getEvent())||mxEvent.isMetaDown(A.getEvent())};var ia=mxVertexHandler.prototype.isRotationHandleVisible;mxVertexHandler.prototype.isRotationHandleVisible=function(){return ia.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&
!this.graph.isTableRow(this.state.cell)&&!this.graph.isTable(this.state.cell)};mxVertexHandler.prototype.getSizerBounds=function(){return this.graph.isTableCell(this.state.cell)?this.graph.view.getState(this.graph.model.getParent(this.graph.model.getParent(this.state.cell))):this.bounds};var oa=mxVertexHandler.prototype.isParentHighlightVisible;mxVertexHandler.prototype.isParentHighlightVisible=function(){return oa.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)};
-var sa=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(q){return q.tableHandle||sa.apply(this,arguments)&&(!this.graph.isTable(this.state.cell)||this.graph.isCellSelected(this.state.cell))};mxVertexHandler.prototype.getSelectionBorderInset=function(){var q=0;this.graph.isTableRow(this.state.cell)?q=1:this.graph.isTableCell(this.state.cell)&&(q=2);return q};var O=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=
-function(){return O.apply(this,arguments).grow(-this.getSelectionBorderInset())};var X=null,ba=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){null==X&&(X=mxCellRenderer.defaultShapes.tableLine);var q=ba.apply(this,arguments);if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)){var A=function(Ha,wa,ua){for(var Va=[],Qa=0;Qa<Ha.length;Qa++){var Ka=Ha[Qa];Va.push(null==Ka?null:new mxPoint((fa+Ka.x+wa)*R,(ja+Ka.y+ua)*
-R))}return Va},B=this,F=this.graph,M=F.model,R=F.view.scale,W=this.state,ha=this.selectionBorder,fa=this.state.origin.x+F.view.translate.x,ja=this.state.origin.y+F.view.translate.y;null==q&&(q=[]);var va=F.view.getCellStates(M.getChildCells(this.state.cell,!0));if(0<va.length){var Ma=M.getChildCells(va[0].cell,!0),Na=F.getTableLines(this.state.cell,!1,!0),ya=F.getTableLines(this.state.cell,!0,!1);for(M=0;M<va.length;M++)mxUtils.bind(this,function(Ha){var wa=va[Ha],ua=null;if(F.isCellMovable(wa.cell)){ua=
+var sa=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(p){return p.tableHandle||sa.apply(this,arguments)&&(!this.graph.isTable(this.state.cell)||this.graph.isCellSelected(this.state.cell))};mxVertexHandler.prototype.getSelectionBorderInset=function(){var p=0;this.graph.isTableRow(this.state.cell)?p=1:this.graph.isTableCell(this.state.cell)&&(p=2);return p};var O=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=
+function(){return O.apply(this,arguments).grow(-this.getSelectionBorderInset())};var X=null,ba=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){null==X&&(X=mxCellRenderer.defaultShapes.tableLine);var p=ba.apply(this,arguments);if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)){var A=function(Ha,wa,ua){for(var Va=[],Qa=0;Qa<Ha.length;Qa++){var Ka=Ha[Qa];Va.push(null==Ka?null:new mxPoint((fa+Ka.x+wa)*R,(ja+Ka.y+ua)*
+R))}return Va},B=this,F=this.graph,M=F.model,R=F.view.scale,W=this.state,ha=this.selectionBorder,fa=this.state.origin.x+F.view.translate.x,ja=this.state.origin.y+F.view.translate.y;null==p&&(p=[]);var va=F.view.getCellStates(M.getChildCells(this.state.cell,!0));if(0<va.length){var Ma=M.getChildCells(va[0].cell,!0),Na=F.getTableLines(this.state.cell,!1,!0),ya=F.getTableLines(this.state.cell,!0,!1);for(M=0;M<va.length;M++)mxUtils.bind(this,function(Ha){var wa=va[Ha],ua=null;if(F.isCellMovable(wa.cell)){ua=
Ha<va.length-1?va[Ha+1]:null;ua=null!=ua?F.getCellGeometry(ua.cell):null;var Va=null!=ua&&null!=ua.alternateBounds?ua.alternateBounds:ua;ua=null!=ya[Ha]?new X(ya[Ha],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!1);ua.isDashed=ha.isDashed;ua.svgStrokeTolerance++;ua=new mxHandle(wa,"row-resize",null,ua);ua.tableHandle=!0;var Qa=0;ua.shape.node.parentNode.insertBefore(ua.shape.node,ua.shape.node.parentNode.firstChild);ua.redraw=function(){if(null!=this.shape){this.shape.stroke=
0==Qa?mxConstants.NONE:ha.stroke;if(this.shape.constructor==X)this.shape.line=A(ya[Ha],0,Qa),this.shape.updateBoundsFromLine();else{var Ua=F.getActualStartSize(W.cell,!0);this.shape.bounds.height=1;this.shape.bounds.y=this.state.y+this.state.height+Qa*R;this.shape.bounds.x=W.x+(Ha==va.length-1?0:Ua.x*R);this.shape.bounds.width=W.width-(Ha==va.length-1?0:Ua.width+Ua.x+R)}this.shape.redraw()}};var Ka=!1;ua.setPosition=function(Ua,Wa,mb){Qa=Math.max(Graph.minTableRowHeight-Ua.height,Wa.y-Ua.y-Ua.height);
-Ka=mxEvent.isShiftDown(mb.getEvent());null!=Va&&Ka&&(Qa=Math.min(Qa,Va.height-Graph.minTableRowHeight))};ua.execute=function(Ua){if(0!=Qa)F.setTableRowHeight(this.state.cell,Qa,!Ka);else if(!B.blockDelayedSelection){var Wa=F.getCellAt(Ua.getGraphX(),Ua.getGraphY())||W.cell;F.graphHandler.selectCellForEvent(Wa,Ua)}Qa=0};ua.reset=function(){Qa=0}}q.push(ua)})(M);for(M=0;M<Ma.length;M++)mxUtils.bind(this,function(Ha){var wa=F.view.getState(Ma[Ha]),ua=F.getCellGeometry(Ma[Ha]),Va=null!=ua.alternateBounds?
+Ka=mxEvent.isShiftDown(mb.getEvent());null!=Va&&Ka&&(Qa=Math.min(Qa,Va.height-Graph.minTableRowHeight))};ua.execute=function(Ua){if(0!=Qa)F.setTableRowHeight(this.state.cell,Qa,!Ka);else if(!B.blockDelayedSelection){var Wa=F.getCellAt(Ua.getGraphX(),Ua.getGraphY())||W.cell;F.graphHandler.selectCellForEvent(Wa,Ua)}Qa=0};ua.reset=function(){Qa=0}}p.push(ua)})(M);for(M=0;M<Ma.length;M++)mxUtils.bind(this,function(Ha){var wa=F.view.getState(Ma[Ha]),ua=F.getCellGeometry(Ma[Ha]),Va=null!=ua.alternateBounds?
ua.alternateBounds:ua;null==wa&&(wa=new mxCellState(F.view,Ma[Ha],F.getCellStyle(Ma[Ha])),wa.x=W.x+ua.x*R,wa.y=W.y+ua.y*R,wa.width=Va.width*R,wa.height=Va.height*R,wa.updateCachedBounds());ua=Ha<Ma.length-1?Ma[Ha+1]:null;ua=null!=ua?F.getCellGeometry(ua):null;var Qa=null!=ua&&null!=ua.alternateBounds?ua.alternateBounds:ua;ua=null!=Na[Ha]?new X(Na[Ha],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!0);ua.isDashed=ha.isDashed;ua.svgStrokeTolerance++;wa=new mxHandle(wa,"col-resize",
null,ua);wa.tableHandle=!0;var Ka=0;wa.shape.node.parentNode.insertBefore(wa.shape.node,wa.shape.node.parentNode.firstChild);wa.redraw=function(){if(null!=this.shape){this.shape.stroke=0==Ka?mxConstants.NONE:ha.stroke;if(this.shape.constructor==X)this.shape.line=A(Na[Ha],Ka,0),this.shape.updateBoundsFromLine();else{var Wa=F.getActualStartSize(W.cell,!0);this.shape.bounds.width=1;this.shape.bounds.x=this.state.x+(Va.width+Ka)*R;this.shape.bounds.y=W.y+(Ha==Ma.length-1?0:Wa.y*R);this.shape.bounds.height=
W.height-(Ha==Ma.length-1?0:(Wa.height+Wa.y)*R)}this.shape.redraw()}};var Ua=!1;wa.setPosition=function(Wa,mb,ub){Ka=Math.max(Graph.minTableColumnWidth-Va.width,mb.x-Wa.x-Va.width);Ua=mxEvent.isShiftDown(ub.getEvent());null==Qa||Ua||(Ka=Math.min(Ka,Qa.width-Graph.minTableColumnWidth))};wa.execute=function(Wa){if(0!=Ka)F.setTableColumnWidth(this.state.cell,Ka,Ua);else if(!B.blockDelayedSelection){var mb=F.getCellAt(Wa.getGraphX(),Wa.getGraphY())||W.cell;F.graphHandler.selectCellForEvent(mb,Wa)}Ka=
-0};wa.positionChanged=function(){};wa.reset=function(){Ka=0};q.push(wa)})(M)}}return null!=q?q.reverse():null};var da=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(q){da.apply(this,arguments);if(null!=this.moveHandles)for(var A=0;A<this.moveHandles.length;A++)null!=this.moveHandles[A]&&(this.moveHandles[A].node.style.visibility=q?"":"hidden");if(null!=this.cornerHandles)for(A=0;A<this.cornerHandles.length;A++)this.cornerHandles[A].node.style.visibility=
-q?"":"hidden"};mxVertexHandler.prototype.isMoveHandlesVisible=function(){return this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)};mxVertexHandler.prototype.refreshMoveHandles=function(){var q=this.isMoveHandlesVisible();q&&null==this.moveHandles?this.moveHandles=this.createMoveHandles():q||null==this.moveHandles||this.destroyMoveHandles();if(q&&null==this.moveHandles){for(q=0;q<this.moveHandles.length;q++)null!=this.moveHandles[q]&&this.moveHandles[q].parentNode.removeChild(this.moveHandles[q]);
-this.moveHandles=null}};mxVertexHandler.prototype.createMoveHandles=function(){for(var q=this.graph,A=q.model,B=[],F=0;F<A.getChildCount(this.state.cell);F++)mxUtils.bind(this,function(M){if(null!=M&&A.isVertex(M.cell)&&q.isCellMovable(M.cell)){var R=new mxRectangle(0,0,this.rowHandleImage.width,this.rowHandleImage.height);R=new mxImageShape(R,this.rowHandleImage.src);R.rowState=M;R.dialect=this.graph.dialect!=mxConstants.DIALECT_SVG?mxConstants.DIALECT_MIXEDHTML:mxConstants.DIALECT_SVG;R.init(this.graph.getView().getOverlayPane());
+0};wa.positionChanged=function(){};wa.reset=function(){Ka=0};p.push(wa)})(M)}}return null!=p?p.reverse():null};var da=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(p){da.apply(this,arguments);if(null!=this.moveHandles)for(var A=0;A<this.moveHandles.length;A++)null!=this.moveHandles[A]&&(this.moveHandles[A].node.style.visibility=p?"":"hidden");if(null!=this.cornerHandles)for(A=0;A<this.cornerHandles.length;A++)this.cornerHandles[A].node.style.visibility=
+p?"":"hidden"};mxVertexHandler.prototype.isMoveHandlesVisible=function(){return this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)};mxVertexHandler.prototype.refreshMoveHandles=function(){var p=this.isMoveHandlesVisible();p&&null==this.moveHandles?this.moveHandles=this.createMoveHandles():p||null==this.moveHandles||this.destroyMoveHandles();if(p&&null==this.moveHandles){for(p=0;p<this.moveHandles.length;p++)null!=this.moveHandles[p]&&this.moveHandles[p].parentNode.removeChild(this.moveHandles[p]);
+this.moveHandles=null}};mxVertexHandler.prototype.createMoveHandles=function(){for(var p=this.graph,A=p.model,B=[],F=0;F<A.getChildCount(this.state.cell);F++)mxUtils.bind(this,function(M){if(null!=M&&A.isVertex(M.cell)&&p.isCellMovable(M.cell)){var R=new mxRectangle(0,0,this.rowHandleImage.width,this.rowHandleImage.height);R=new mxImageShape(R,this.rowHandleImage.src);R.rowState=M;R.dialect=this.graph.dialect!=mxConstants.DIALECT_SVG?mxConstants.DIALECT_MIXEDHTML:mxConstants.DIALECT_SVG;R.init(this.graph.getView().getOverlayPane());
R.node.style.cursor="move";mxEvent.addGestureListeners(R.node,mxUtils.bind(this,function(W){this.graph.popupMenuHandler.hideMenu();this.graph.stopEditing(!1);!this.graph.isToggleEvent(W)&&this.graph.isCellSelected(M.cell)||this.graph.selectCellForEvent(M.cell,W);mxEvent.isPopupTrigger(W)||(this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(W),mxEvent.getClientY(W),this.graph.getSelectionCells()),this.graph.graphHandler.cellWasClicked=!0,this.graph.isMouseTrigger=mxEvent.isMouseEvent(W),
-this.graph.isMouseDown=!0);mxEvent.consume(W)}),null,mxUtils.bind(this,function(W){mxEvent.isPopupTrigger(W)&&(this.graph.popupMenuHandler.popup(mxEvent.getClientX(W),mxEvent.getClientY(W),M.cell,W),mxEvent.consume(W))}));B.push(R)}else B.push(null)})(this.graph.view.getState(A.getChildAt(this.state.cell,F)));return B};mxVertexHandler.prototype.destroyMoveHandles=function(){if(null!=this.moveHandles){for(var q=0;q<this.moveHandles.length;q++)null!=this.moveHandles[q]&&this.moveHandles[q].destroy();
-this.moveHandles=null}};mxVertexHandler.prototype.destroyCornerHandles=function(){if(null!=this.cornerHandles){for(var q=0;q<this.cornerHandles.length;q++)null!=this.cornerHandles[q]&&null!=this.cornerHandles[q].node&&null!=this.cornerHandles[q].node.parentNode&&this.cornerHandles[q].node.parentNode.removeChild(this.cornerHandles[q].node);this.cornerHandles=null}};var ca=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){ca.apply(this,arguments);this.destroyMoveHandles();
-this.destroyCornerHandles();if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell))this.refreshMoveHandles();else if(1==this.graph.getSelectionCount()&&this.graph.isCellMovable(this.state.cell)&&(this.graph.isTableCell(this.state.cell)||this.graph.isTableRow(this.state.cell))){this.cornerHandles=[];for(var q=0;4>q;q++){var A=new mxRectangleShape(new mxRectangle(0,0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR);A.dialect=mxConstants.DIALECT_SVG;A.init(this.graph.view.getOverlayPane());
-this.cornerHandles.push(A)}}this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)&&this.refreshMoveHandles();q=this.graph.getLinkForCell(this.state.cell);A=this.graph.getLinksForState(this.state);this.updateLinkHint(q,A)};var H=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var q=new mxPoint(0,0),A=this.tolerance,B=this.state.style.shape;null==mxCellRenderer.defaultShapes[B]&&mxStencilRegistry.getStencil(B);B=this.graph.isTable(this.state.cell)||
+this.graph.isMouseDown=!0);mxEvent.consume(W)}),null,mxUtils.bind(this,function(W){mxEvent.isPopupTrigger(W)&&(this.graph.popupMenuHandler.popup(mxEvent.getClientX(W),mxEvent.getClientY(W),M.cell,W),mxEvent.consume(W))}));B.push(R)}else B.push(null)})(this.graph.view.getState(A.getChildAt(this.state.cell,F)));return B};mxVertexHandler.prototype.destroyMoveHandles=function(){if(null!=this.moveHandles){for(var p=0;p<this.moveHandles.length;p++)null!=this.moveHandles[p]&&this.moveHandles[p].destroy();
+this.moveHandles=null}};mxVertexHandler.prototype.destroyCornerHandles=function(){if(null!=this.cornerHandles){for(var p=0;p<this.cornerHandles.length;p++)null!=this.cornerHandles[p]&&null!=this.cornerHandles[p].node&&null!=this.cornerHandles[p].node.parentNode&&this.cornerHandles[p].node.parentNode.removeChild(this.cornerHandles[p].node);this.cornerHandles=null}};var ca=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){ca.apply(this,arguments);this.destroyMoveHandles();
+this.destroyCornerHandles();if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell))this.refreshMoveHandles();else if(1==this.graph.getSelectionCount()&&this.graph.isCellMovable(this.state.cell)&&(this.graph.isTableCell(this.state.cell)||this.graph.isTableRow(this.state.cell))){this.cornerHandles=[];for(var p=0;4>p;p++){var A=new mxRectangleShape(new mxRectangle(0,0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR);A.dialect=mxConstants.DIALECT_SVG;A.init(this.graph.view.getOverlayPane());
+this.cornerHandles.push(A)}}this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)&&this.refreshMoveHandles();p=this.graph.getLinkForCell(this.state.cell);A=this.graph.getLinksForState(this.state);this.updateLinkHint(p,A)};var H=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var p=new mxPoint(0,0),A=this.tolerance,B=this.state.style.shape;null==mxCellRenderer.defaultShapes[B]&&mxStencilRegistry.getStencil(B);B=this.graph.isTable(this.state.cell)||
this.graph.cellEditor.getEditingCell()==this.state.cell;if(!B&&null!=this.customHandles)for(var F=0;F<this.customHandles.length;F++)if(null!=this.customHandles[F]&&null!=this.customHandles[F].shape&&null!=this.customHandles[F].shape.bounds){var M=this.customHandles[F].shape.bounds,R=M.getCenterX(),W=M.getCenterY();if(Math.abs(this.state.x-R)<M.width/2||Math.abs(this.state.y-W)<M.height/2||Math.abs(this.state.x+this.state.width-R)<M.width/2||Math.abs(this.state.y+this.state.height-W)<M.height/2){B=
-!0;break}}B&&null!=this.sizers&&0<this.sizers.length&&null!=this.sizers[0]?(A/=2,this.graph.isTable(this.state.cell)&&(A+=7),q.x=this.sizers[0].bounds.width+A,q.y=this.sizers[0].bounds.height+A):q=H.apply(this,arguments);return q};mxVertexHandler.prototype.updateHint=function(q){if(this.index!=mxEvent.LABEL_HANDLE){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));if(this.index==mxEvent.ROTATION_HANDLE)this.hint.innerHTML=this.currentAlpha+"&deg;";else{q=this.state.view.scale;
-var A=this.state.view.unit;this.hint.innerHTML=b(this.roundLength(this.bounds.width/q),A)+" x "+b(this.roundLength(this.bounds.height/q),A)}q=mxUtils.getBoundingBox(this.bounds,null!=this.currentAlpha?this.currentAlpha:this.state.style[mxConstants.STYLE_ROTATION]||"0");null==q&&(q=this.bounds);this.hint.style.left=q.x+Math.round((q.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=q.y+q.height+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")}};mxVertexHandler.prototype.removeHint=
-function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display="")};var ea=mxEdgeHandler.prototype.refresh;mxEdgeHandler.prototype.refresh=function(){ea.apply(this,arguments);var q=this.graph.getLinkForCell(this.state.cell),A=this.graph.getLinksForState(this.state);this.updateLinkHint(q,A)};var ra=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(q,A){ra.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&
-null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display="none")};var qa=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(q,A){qa.apply(this,arguments);null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="")};mxEdgeHandler.prototype.updateHint=function(q,A,B){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));var F=this.graph.view.translate,
+!0;break}}B&&null!=this.sizers&&0<this.sizers.length&&null!=this.sizers[0]?(A/=2,this.graph.isTable(this.state.cell)&&(A+=7),p.x=this.sizers[0].bounds.width+A,p.y=this.sizers[0].bounds.height+A):p=H.apply(this,arguments);return p};mxVertexHandler.prototype.updateHint=function(p){if(this.index!=mxEvent.LABEL_HANDLE){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));if(this.index==mxEvent.ROTATION_HANDLE)this.hint.innerHTML=this.currentAlpha+"&deg;";else{p=this.state.view.scale;
+var A=this.state.view.unit;this.hint.innerHTML=b(this.roundLength(this.bounds.width/p),A)+" x "+b(this.roundLength(this.bounds.height/p),A)}p=mxUtils.getBoundingBox(this.bounds,null!=this.currentAlpha?this.currentAlpha:this.state.style[mxConstants.STYLE_ROTATION]||"0");null==p&&(p=this.bounds);this.hint.style.left=p.x+Math.round((p.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=p.y+p.height+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")}};mxVertexHandler.prototype.removeHint=
+function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display="")};var ea=mxEdgeHandler.prototype.refresh;mxEdgeHandler.prototype.refresh=function(){ea.apply(this,arguments);var p=this.graph.getLinkForCell(this.state.cell),A=this.graph.getLinksForState(this.state);this.updateLinkHint(p,A)};var ra=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(p,A){ra.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&
+null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display="none")};var qa=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(p,A){qa.apply(this,arguments);null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="")};mxEdgeHandler.prototype.updateHint=function(p,A,B){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));var F=this.graph.view.translate,
M=this.graph.view.scale,R=this.roundLength(A.x/M-F.x);F=this.roundLength(A.y/M-F.y);var W=this.graph.view.unit;this.hint.innerHTML=b(R,W)+", "+b(F,W);this.hint.style.visibility="visible";null!=B&&(B.view.updateEdgeBounds(B),this.hint.innerHTML+=" ("+(W==mxConstants.POINTS?Math.round(B.length/M):b(B.length/M,W))+")");if(this.isSource||this.isTarget)null!=this.constraintHandler&&null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus?(B=this.constraintHandler.currentConstraint.point,
-this.hint.innerHTML="["+Math.round(100*B.x)+"%, "+Math.round(100*B.y)+"%]"):this.marker.hasValidState()&&(this.hint.style.visibility="hidden");this.hint.style.left=Math.round(q.getGraphX()-this.hint.clientWidth/2)+"px";this.hint.style.top=Math.max(q.getGraphY(),A.y)+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")};Graph.prototype.expandedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="50%" y1="0%" x2="50%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 2 4.5 L 7 4.5 z" stroke="#000"/>');
+this.hint.innerHTML="["+Math.round(100*B.x)+"%, "+Math.round(100*B.y)+"%]"):this.marker.hasValidState()&&(this.hint.style.visibility="hidden");this.hint.style.left=Math.round(p.getGraphX()-this.hint.clientWidth/2)+"px";this.hint.style.top=Math.max(p.getGraphY(),A.y)+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")};Graph.prototype.expandedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="50%" y1="0%" x2="50%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 2 4.5 L 7 4.5 z" stroke="#000"/>');
Graph.prototype.collapsedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 4.5 2 L 4.5 7 M 2 4.5 L 7 4.5 z" stroke="#000"/>');mxEdgeHandler.prototype.removeHint=mxVertexHandler.prototype.removeHint;HoverIcons.prototype.mainHandle=
Graph.createSvgImage(18,18,'<circle cx="9" cy="9" r="5" stroke="#fff" fill="'+HoverIcons.prototype.arrowFill+'"/>');HoverIcons.prototype.endMainHandle=Graph.createSvgImage(18,18,'<circle cx="9" cy="9" r="6" stroke="#fff" fill="'+HoverIcons.prototype.arrowFill+'"/>');HoverIcons.prototype.secondaryHandle=Graph.createSvgImage(16,16,'<path d="m 8 3 L 13 8 L 8 13 L 3 8 z" stroke="#fff" fill="#fca000"/>');HoverIcons.prototype.fixedHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="6" stroke="#fff" fill="#01bd22"/><path d="m 8 8 L 14 14M 8 14 L 14 8" stroke="#fff"/>');
HoverIcons.prototype.endFixedHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="7" stroke="#fff" fill="#01bd22"/><path d="m 8 8 L 14 14M 8 14 L 14 8" stroke="#fff"/>');HoverIcons.prototype.terminalHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="6" stroke="#fff" fill="'+HoverIcons.prototype.arrowFill+'"/><circle cx="11" cy="11" r="3" stroke="#fff" fill="transparent"/>');HoverIcons.prototype.endTerminalHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="7" stroke="#fff" fill="'+
@@ -2960,37 +2960,37 @@ HoverIcons.prototype.arrowFill+'"/><circle cx="11" cy="11" r="3" stroke="#fff" f
HoverIcons.prototype.endTerminalHandle;mxEdgeHandler.prototype.fixedHandleImage=HoverIcons.prototype.fixedHandle;mxEdgeHandler.prototype.endFixedHandleImage=HoverIcons.prototype.endFixedHandle;mxEdgeHandler.prototype.labelHandleImage=HoverIcons.prototype.secondaryHandle;mxOutline.prototype.sizerImage=HoverIcons.prototype.mainHandle;null!=window.Sidebar&&(Sidebar.prototype.triangleUp=HoverIcons.prototype.triangleUp,Sidebar.prototype.triangleRight=HoverIcons.prototype.triangleRight,Sidebar.prototype.triangleDown=
HoverIcons.prototype.triangleDown,Sidebar.prototype.triangleLeft=HoverIcons.prototype.triangleLeft,Sidebar.prototype.refreshTarget=HoverIcons.prototype.refreshTarget,Sidebar.prototype.roundDrop=HoverIcons.prototype.roundDrop);mxVertexHandler.prototype.rotationEnabled=!0;mxVertexHandler.prototype.manageSizers=!0;mxVertexHandler.prototype.livePreview=!0;mxGraphHandler.prototype.maxLivePreview=16;mxGraphHandler.prototype.previewColor="light-dark(#000000, #cccccc)";mxRubberband.prototype.defaultOpacity=
30;mxConnectionHandler.prototype.outlineConnect=!0;mxCellHighlight.prototype.keepOnTop=!0;mxVertexHandler.prototype.parentHighlightEnabled=!0;mxEdgeHandler.prototype.parentHighlightEnabled=!0;mxEdgeHandler.prototype.dblClickRemoveEnabled=!0;mxEdgeHandler.prototype.straightRemoveEnabled=!0;mxEdgeHandler.prototype.virtualBendsEnabled=!0;mxEdgeHandler.prototype.mergeRemoveEnabled=!0;mxEdgeHandler.prototype.manageLabelHandle=!0;mxEdgeHandler.prototype.outlineConnect=!0;mxEdgeHandler.prototype.isAddVirtualBendEvent=
-function(q){return!mxEvent.isShiftDown(q.getEvent())};mxEdgeHandler.prototype.isCustomHandleEvent=function(q){return!mxEvent.isShiftDown(q.getEvent())};if(Graph.touchStyle){if(mxClient.IS_TOUCH||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)mxShape.prototype.svgStrokeTolerance=18,mxVertexHandler.prototype.tolerance=12,mxEdgeHandler.prototype.tolerance=12,Graph.prototype.tolerance=12,mxVertexHandler.prototype.rotationHandleVSpacing=-16,mxConstraintHandler.prototype.getTolerance=function(q){return mxEvent.isMouseEvent(q.getEvent())?
-4:this.graph.getTolerance()};mxPanningHandler.prototype.isPanningTrigger=function(q){var A=q.getEvent();return null==q.getState()&&!mxEvent.isMouseEvent(A)||mxEvent.isPopupTrigger(A)&&(null==q.getState()||mxEvent.isControlDown(A)||mxEvent.isShiftDown(A))}}else mxPanningHandler.prototype.isPanningTrigger=function(q){var A=q.getEvent();return mxEvent.isLeftMouseButton(A)&&(this.useLeftButtonForPanning&&null==q.getState()||mxEvent.isControlDown(A)&&!mxEvent.isShiftDown(A))||this.usePopupTrigger&&mxEvent.isPopupTrigger(A)};
-mxRubberband.prototype.isSpaceEvent=function(q){return this.graph.isEnabled()&&!this.graph.isCellLocked(this.graph.getDefaultParent())&&(mxEvent.isControlDown(q.getEvent())||mxEvent.isMetaDown(q.getEvent()))&&mxEvent.isShiftDown(q.getEvent())&&mxEvent.isAltDown(q.getEvent())};mxRubberband.prototype.cancelled=!1;mxRubberband.prototype.cancel=function(){this.isActive()&&(this.cancelled=!0,this.reset())};mxRubberband.prototype.mouseUp=function(q,A){if(this.cancelled)this.cancelled=!1,A.consume();else{var B=
-null!=this.div&&"none"!=this.div.style.display,F=null,M=null,R=q=null;null!=this.first&&null!=this.currentX&&null!=this.currentY&&(F=this.first.x,M=this.first.y,q=(this.currentX-F)/this.graph.view.scale,R=(this.currentY-M)/this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(q=this.graph.snap(q),R=this.graph.snap(R),this.graph.isGridEnabled()||(Math.abs(q)<this.graph.tolerance&&(q=0),Math.abs(R)<this.graph.tolerance&&(R=0))));this.reset();if(B){if(this.isSpaceEvent(A)){this.graph.model.beginUpdate();
-try{var W=this.graph.getCellsBeyond(F,M,this.graph.getDefaultParent(),!0,!0);for(B=0;B<W.length;B++)if(this.graph.isCellMovable(W[B])){var ha=this.graph.view.getState(W[B]),fa=this.graph.getCellGeometry(W[B]);null!=ha&&null!=fa&&(fa=fa.clone(),fa.translate(q,R),this.graph.model.setGeometry(W[B],fa))}}finally{this.graph.model.endUpdate()}}else W=new mxRectangle(this.x,this.y,this.width,this.height),this.graph.selectRegion(W,A.getEvent());A.consume()}}};mxRubberband.prototype.mouseMove=function(q,A){if(!A.isConsumed()&&
-null!=this.first){var B=mxUtils.getScrollOrigin(this.graph.container);q=mxUtils.getOffset(this.graph.container);B.x-=q.x;B.y-=q.y;q=A.getX()+B.x;B=A.getY()+B.y;var F=this.first.x-q,M=this.first.y-B,R=this.graph.tolerance;if(null!=this.div||Math.abs(F)>R||Math.abs(M)>R)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(q,B),this.isSpaceEvent(A)?(q=this.x+this.width,B=this.y+this.height,F=this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(this.width=this.graph.snap(this.width/
-F)*F,this.height=this.graph.snap(this.height/F)*F,this.graph.isGridEnabled()||(this.width<this.graph.tolerance&&(this.width=0),this.height<this.graph.tolerance&&(this.height=0)),this.x<this.first.x&&(this.x=q-this.width),this.y<this.first.y&&(this.y=B-this.height)),this.div.style.borderStyle="dashed",this.div.style.backgroundColor="white",this.div.style.left=this.x+"px",this.div.style.top=this.y+"px",this.div.style.width=Math.max(0,this.width)+"px",this.div.style.height=this.graph.container.clientHeight+
+function(p){return!mxEvent.isShiftDown(p.getEvent())};mxEdgeHandler.prototype.isCustomHandleEvent=function(p){return!mxEvent.isShiftDown(p.getEvent())};if(Graph.touchStyle){if(mxClient.IS_TOUCH||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)mxShape.prototype.svgStrokeTolerance=18,mxVertexHandler.prototype.tolerance=12,mxEdgeHandler.prototype.tolerance=12,Graph.prototype.tolerance=12,mxVertexHandler.prototype.rotationHandleVSpacing=-16,mxConstraintHandler.prototype.getTolerance=function(p){return mxEvent.isMouseEvent(p.getEvent())?
+4:this.graph.getTolerance()};mxPanningHandler.prototype.isPanningTrigger=function(p){var A=p.getEvent();return null==p.getState()&&!mxEvent.isMouseEvent(A)||mxEvent.isPopupTrigger(A)&&(null==p.getState()||mxEvent.isControlDown(A)||mxEvent.isShiftDown(A))}}else mxPanningHandler.prototype.isPanningTrigger=function(p){var A=p.getEvent();return mxEvent.isLeftMouseButton(A)&&(this.useLeftButtonForPanning&&null==p.getState()||mxEvent.isControlDown(A)&&!mxEvent.isShiftDown(A))||this.usePopupTrigger&&mxEvent.isPopupTrigger(A)};
+mxRubberband.prototype.isSpaceEvent=function(p){return this.graph.isEnabled()&&!this.graph.isCellLocked(this.graph.getDefaultParent())&&(mxEvent.isControlDown(p.getEvent())||mxEvent.isMetaDown(p.getEvent()))&&mxEvent.isShiftDown(p.getEvent())&&mxEvent.isAltDown(p.getEvent())};mxRubberband.prototype.cancelled=!1;mxRubberband.prototype.cancel=function(){this.isActive()&&(this.cancelled=!0,this.reset())};mxRubberband.prototype.mouseUp=function(p,A){if(this.cancelled)this.cancelled=!1,A.consume();else{var B=
+null!=this.div&&"none"!=this.div.style.display,F=null,M=null,R=p=null;null!=this.first&&null!=this.currentX&&null!=this.currentY&&(F=this.first.x,M=this.first.y,p=(this.currentX-F)/this.graph.view.scale,R=(this.currentY-M)/this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(p=this.graph.snap(p),R=this.graph.snap(R),this.graph.isGridEnabled()||(Math.abs(p)<this.graph.tolerance&&(p=0),Math.abs(R)<this.graph.tolerance&&(R=0))));this.reset();if(B){if(this.isSpaceEvent(A)){this.graph.model.beginUpdate();
+try{var W=this.graph.getCellsBeyond(F,M,this.graph.getDefaultParent(),!0,!0);for(B=0;B<W.length;B++)if(this.graph.isCellMovable(W[B])){var ha=this.graph.view.getState(W[B]),fa=this.graph.getCellGeometry(W[B]);null!=ha&&null!=fa&&(fa=fa.clone(),fa.translate(p,R),this.graph.model.setGeometry(W[B],fa))}}finally{this.graph.model.endUpdate()}}else W=new mxRectangle(this.x,this.y,this.width,this.height),this.graph.selectRegion(W,A.getEvent());A.consume()}}};mxRubberband.prototype.mouseMove=function(p,A){if(!A.isConsumed()&&
+null!=this.first){var B=mxUtils.getScrollOrigin(this.graph.container);p=mxUtils.getOffset(this.graph.container);B.x-=p.x;B.y-=p.y;p=A.getX()+B.x;B=A.getY()+B.y;var F=this.first.x-p,M=this.first.y-B,R=this.graph.tolerance;if(null!=this.div||Math.abs(F)>R||Math.abs(M)>R)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(p,B),this.isSpaceEvent(A)?(p=this.x+this.width,B=this.y+this.height,F=this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(this.width=this.graph.snap(this.width/
+F)*F,this.height=this.graph.snap(this.height/F)*F,this.graph.isGridEnabled()||(this.width<this.graph.tolerance&&(this.width=0),this.height<this.graph.tolerance&&(this.height=0)),this.x<this.first.x&&(this.x=p-this.width),this.y<this.first.y&&(this.y=B-this.height)),this.div.style.borderStyle="dashed",this.div.style.backgroundColor="white",this.div.style.left=this.x+"px",this.div.style.top=this.y+"px",this.div.style.width=Math.max(0,this.width)+"px",this.div.style.height=this.graph.container.clientHeight+
"px",this.div.style.borderWidth=0>=this.width?"0px 1px 0px 0px":"0px 1px 0px 1px",null==this.secondDiv&&(this.secondDiv=this.div.cloneNode(!0),this.div.parentNode.appendChild(this.secondDiv)),this.secondDiv.style.left=this.x+"px",this.secondDiv.style.top=this.y+"px",this.secondDiv.style.width=this.graph.container.clientWidth+"px",this.secondDiv.style.height=Math.max(0,this.height)+"px",this.secondDiv.style.borderWidth=0>=this.height?"1px 0px 0px 0px":"1px 0px 1px 0px"):(this.div.style.backgroundColor=
-"",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),A.consume()}};var Pa=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);Pa.apply(this,arguments)};var ma=(new Date).getTime(),Ba=0,Ca=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(q,
-A,B,F){Ca.apply(this,arguments);B!=this.currentTerminalState?(ma=(new Date).getTime(),Ba=0):Ba=(new Date).getTime()-ma;this.currentTerminalState=B};var Ja=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(q){return mxEvent.isShiftDown(q.getEvent())&&mxEvent.isAltDown(q.getEvent())?!1:null!=this.currentTerminalState&&q.getState()==this.currentTerminalState&&2E3<Ba||(null==this.currentTerminalState||"0"!=mxUtils.getValue(this.currentTerminalState.style,
-"outlineConnect","1"))&&Ja.apply(this,arguments)};mxEdgeHandler.prototype.createHandleShape=function(q,A,B){A=null!=q&&0==q;var F=this.state.getVisibleTerminalState(A);q=null!=q&&null!=this.state.absolutePoints&&(0==q||q>=this.state.absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==q)?this.graph.getConnectionConstraint(this.state,F,A):null;B=null!=(null!=q?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(A),q):null)?B?this.endFixedHandleImage:this.fixedHandleImage:
-null!=q&&null!=F?B?this.endTerminalHandleImage:this.terminalHandleImage:B?this.endHandleImage:this.handleImage;if(null!=B)return B=new mxImageShape(new mxRectangle(0,0,B.width,B.height),B.src),B.preserveImageAspect=!1,B;B=mxConstants.HANDLE_SIZE;this.preferHtml&&--B;return new mxRectangleShape(new mxRectangle(0,0,B,B),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var Ia=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(q,A,B,F){F=A==mxEvent.ROTATION_HANDLE?
-HoverIcons.prototype.rotationHandle:A==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:F;return Ia.apply(this,arguments)};var Da=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(q){if(null!=q&&1==q.length){var A=this.graph.getModel(),B=A.getParent(q[0]),F=this.graph.getCellGeometry(q[0]);if(A.isEdge(B)&&null!=F&&F.relative&&(A=this.graph.view.getState(q[0]),null!=A&&2>A.width&&2>A.height&&null!=A.text&&null!=A.text.boundingBox))return mxRectangle.fromRectangle(A.text.boundingBox)}return Da.apply(this,
-arguments)};var Ga=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates=function(){for(var q=Ga.apply(this,arguments),A=[],B=0;B<q.length;B++)"1"!=mxUtils.getValue(q[B].style,"part","0")&&A.push(q[B]);return A};var ta=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(q){var A=this.graph.getModel(),B=A.getParent(q.cell),F=this.graph.getCellGeometry(q.cell);return A.isEdge(B)&&null!=F&&F.relative&&2>q.width&&2>q.height&&null!=
-q.text&&null!=q.text.boundingBox?(A=q.text.unrotatedBoundingBox||q.text.boundingBox,new mxRectangle(Math.round(A.x),Math.round(A.y),Math.round(A.width),Math.round(A.height))):ta.apply(this,arguments)};var La=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(q,A){var B=this.graph.getModel(),F=B.getParent(this.state.cell),M=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(A)==mxEvent.ROTATION_HANDLE||!B.isEdge(F)||null==M||!M.relative||null==this.state||
-2<=this.state.width||2<=this.state.height)&&La.apply(this,arguments)};mxVertexHandler.prototype.rotateClick=function(){var q=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),A=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(this.state.cell)&&q==mxConstants.NONE&&A==mxConstants.NONE?(q=mxUtils.mod(mxUtils.getValue(this.state.style,mxConstants.STYLE_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,
-q,[this.state.cell])):this.state.view.graph.turnShapes([this.state.cell])};var Xa=mxVertexHandler.prototype.mouseMove;mxVertexHandler.prototype.mouseMove=function(q,A){Xa.apply(this,arguments);null!=this.graph.graphHandler.first&&(null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display="none"),null!=this.linkHint&&"none"!=this.linkHint.style.display&&(this.linkHint.style.display="none"))};var Ya=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=
-function(q,A){Ya.apply(this,arguments);null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display=1==this.graph.getSelectionCount()?"":"none");null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="");this.blockDelayedSelection=null};mxVertexHandler.prototype.updateLinkHint=function(q,A){try{if(null==q&&(null==A||0==A.length))null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),
-this.linkHint=null);else if(null!=q||null!=A&&0<A.length){var B=document.createElement("img");B.className="geAdaptiveAsset";B.setAttribute("src",Editor.editImage);B.setAttribute("title",mxResources.get("editLink"));B.setAttribute("width","14");B.setAttribute("height","14");B.style.paddingLeft="8px";B.style.marginLeft="auto";B.style.marginBottom="-1px";B.style.cursor="pointer";var F=B.cloneNode(!0);F.setAttribute("src",Editor.trashImage);F.setAttribute("title",mxResources.get("removeIt",[mxResources.get("link")]));
-F.style.paddingLeft="4px";F.style.marginLeft="0";null==this.linkHint&&(this.linkHint=a(),mxUtils.setPrefixedStyle(this.linkHint.style,"transform","translate(-50%,0)"),this.linkHint.style.padding="6px 8px 6px 8px",this.linkHint.style.opacity="1",this.linkHint.style.filter="",this.graph.container.appendChild(this.linkHint),mxEvent.addListener(this.linkHint,"mouseenter",mxUtils.bind(this,function(){this.graph.tooltipHandler.hide()})));this.linkHint.innerText="";if(null!=q){var M=document.createElement("div");
-M.style.display="flex";M.style.alignItems="center";M.appendChild(this.graph.createLinkForHint(q,null,this.state.cell));this.linkHint.appendChild(M);if(this.graph.isEnabled()&&"function"===typeof this.graph.editLink&&!this.graph.isCellLocked(this.state.cell)){var R=B.cloneNode(!0);M.appendChild(R);mxEvent.addListener(R,"click",mxUtils.bind(this,function(ha){this.graph.setSelectionCell(this.state.cell);this.graph.editLink();mxEvent.consume(ha)}));var W=F.cloneNode(!0);M.appendChild(W);mxEvent.addListener(W,
-"click",mxUtils.bind(this,function(ha){this.graph.setLinkForCell(this.state.cell,null);mxEvent.consume(ha)}))}}if(null!=A)for(M=0;M<A.length;M++)mxUtils.bind(this,function(ha,fa){var ja=document.createElement("div");ja.style.display="flex";ja.style.alignItems="center";ja.style.marginTop=null!=q||0<fa?"6px":"0px";ja.appendChild(this.graph.createLinkForHint(ha.getAttribute("href"),mxUtils.getTextContent(ha),this.state.cell));var va=B.cloneNode(!0);ja.appendChild(va);var Ma=mxUtils.bind(this,function(Na){var ya=
+"",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),A.consume()}};var Pa=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);Pa.apply(this,arguments)};var ma=(new Date).getTime(),Ba=0,Ca=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(p,
+A,B,F){Ca.apply(this,arguments);B!=this.currentTerminalState?(ma=(new Date).getTime(),Ba=0):Ba=(new Date).getTime()-ma;this.currentTerminalState=B};var Ja=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(p){return mxEvent.isShiftDown(p.getEvent())&&mxEvent.isAltDown(p.getEvent())?!1:null!=this.currentTerminalState&&p.getState()==this.currentTerminalState&&2E3<Ba||(null==this.currentTerminalState||"0"!=mxUtils.getValue(this.currentTerminalState.style,
+"outlineConnect","1"))&&Ja.apply(this,arguments)};mxEdgeHandler.prototype.createHandleShape=function(p,A,B){A=null!=p&&0==p;var F=this.state.getVisibleTerminalState(A);p=null!=p&&null!=this.state.absolutePoints&&(0==p||p>=this.state.absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==p)?this.graph.getConnectionConstraint(this.state,F,A):null;B=null!=(null!=p?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(A),p):null)?B?this.endFixedHandleImage:this.fixedHandleImage:
+null!=p&&null!=F?B?this.endTerminalHandleImage:this.terminalHandleImage:B?this.endHandleImage:this.handleImage;if(null!=B)return B=new mxImageShape(new mxRectangle(0,0,B.width,B.height),B.src),B.preserveImageAspect=!1,B;B=mxConstants.HANDLE_SIZE;this.preferHtml&&--B;return new mxRectangleShape(new mxRectangle(0,0,B,B),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var Ia=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(p,A,B,F){F=A==mxEvent.ROTATION_HANDLE?
+HoverIcons.prototype.rotationHandle:A==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:F;return Ia.apply(this,arguments)};var Da=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(p){if(null!=p&&1==p.length){var A=this.graph.getModel(),B=A.getParent(p[0]),F=this.graph.getCellGeometry(p[0]);if(A.isEdge(B)&&null!=F&&F.relative&&(A=this.graph.view.getState(p[0]),null!=A&&2>A.width&&2>A.height&&null!=A.text&&null!=A.text.boundingBox))return mxRectangle.fromRectangle(A.text.boundingBox)}return Da.apply(this,
+arguments)};var Ga=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates=function(){for(var p=Ga.apply(this,arguments),A=[],B=0;B<p.length;B++)"1"!=mxUtils.getValue(p[B].style,"part","0")&&A.push(p[B]);return A};var ta=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(p){var A=this.graph.getModel(),B=A.getParent(p.cell),F=this.graph.getCellGeometry(p.cell);return A.isEdge(B)&&null!=F&&F.relative&&2>p.width&&2>p.height&&null!=
+p.text&&null!=p.text.boundingBox?(A=p.text.unrotatedBoundingBox||p.text.boundingBox,new mxRectangle(Math.round(A.x),Math.round(A.y),Math.round(A.width),Math.round(A.height))):ta.apply(this,arguments)};var La=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(p,A){var B=this.graph.getModel(),F=B.getParent(this.state.cell),M=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(A)==mxEvent.ROTATION_HANDLE||!B.isEdge(F)||null==M||!M.relative||null==this.state||
+2<=this.state.width||2<=this.state.height)&&La.apply(this,arguments)};mxVertexHandler.prototype.rotateClick=function(){var p=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),A=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(this.state.cell)&&p==mxConstants.NONE&&A==mxConstants.NONE?(p=mxUtils.mod(mxUtils.getValue(this.state.style,mxConstants.STYLE_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,
+p,[this.state.cell])):this.state.view.graph.turnShapes([this.state.cell])};var Xa=mxVertexHandler.prototype.mouseMove;mxVertexHandler.prototype.mouseMove=function(p,A){Xa.apply(this,arguments);null!=this.graph.graphHandler.first&&(null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display="none"),null!=this.linkHint&&"none"!=this.linkHint.style.display&&(this.linkHint.style.display="none"))};var Ya=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=
+function(p,A){Ya.apply(this,arguments);null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display=1==this.graph.getSelectionCount()?"":"none");null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="");this.blockDelayedSelection=null};mxVertexHandler.prototype.updateLinkHint=function(p,A){try{if(null==p&&(null==A||0==A.length))null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),
+this.linkHint=null);else if(null!=p||null!=A&&0<A.length){var B=document.createElement("img");B.className="geAdaptiveAsset";B.setAttribute("src",Editor.editImage);B.setAttribute("title",mxResources.get("editLink"));B.setAttribute("width","14");B.setAttribute("height","14");B.style.paddingLeft="8px";B.style.marginLeft="auto";B.style.marginBottom="-1px";B.style.cursor="pointer";var F=B.cloneNode(!0);F.setAttribute("src",Editor.trashImage);F.setAttribute("title",mxResources.get("removeIt",[mxResources.get("link")]));
+F.style.paddingLeft="4px";F.style.marginLeft="0";null==this.linkHint&&(this.linkHint=a(),mxUtils.setPrefixedStyle(this.linkHint.style,"transform","translate(-50%,0)"),this.linkHint.style.padding="6px 8px 6px 8px",this.linkHint.style.opacity="1",this.linkHint.style.filter="",this.graph.container.appendChild(this.linkHint),mxEvent.addListener(this.linkHint,"mouseenter",mxUtils.bind(this,function(){this.graph.tooltipHandler.hide()})));this.linkHint.innerText="";if(null!=p){var M=document.createElement("div");
+M.style.display="flex";M.style.alignItems="center";M.appendChild(this.graph.createLinkForHint(p,null,this.state.cell));this.linkHint.appendChild(M);if(this.graph.isEnabled()&&"function"===typeof this.graph.editLink&&!this.graph.isCellLocked(this.state.cell)){var R=B.cloneNode(!0);M.appendChild(R);mxEvent.addListener(R,"click",mxUtils.bind(this,function(ha){this.graph.setSelectionCell(this.state.cell);this.graph.editLink();mxEvent.consume(ha)}));var W=F.cloneNode(!0);M.appendChild(W);mxEvent.addListener(W,
+"click",mxUtils.bind(this,function(ha){this.graph.setLinkForCell(this.state.cell,null);mxEvent.consume(ha)}))}}if(null!=A)for(M=0;M<A.length;M++)mxUtils.bind(this,function(ha,fa){var ja=document.createElement("div");ja.style.display="flex";ja.style.alignItems="center";ja.style.marginTop=null!=p||0<fa?"6px":"0px";ja.appendChild(this.graph.createLinkForHint(ha.getAttribute("href"),mxUtils.getTextContent(ha),this.state.cell));var va=B.cloneNode(!0);ja.appendChild(va);var Ma=mxUtils.bind(this,function(Na){var ya=
document.createElement("div");ya.innerHTML=Graph.sanitizeHtml(this.graph.getLabel(this.state.cell));var Ha=ya.getElementsByTagName("a")[fa];if(null!=Ha){if(null==Na||""==Na){for(Na=Ha.cloneNode(!0).firstChild;null!=Na;)Ha.parentNode.insertBefore(Na.cloneNode(!0),Ha),Na=Na.nextSibling;Ha.parentNode.removeChild(Ha)}else Ha.setAttribute("href",Na);this.graph.labelChanged(this.state.cell,ya.innerHTML)}});mxEvent.addListener(va,"click",mxUtils.bind(this,function(Na){this.graph.showLinkDialog(ha.getAttribute("href")||
-"",mxResources.get("ok"),Ma);mxEvent.consume(Na)}));va=F.cloneNode(!0);ja.appendChild(va);mxEvent.addListener(va,"click",mxUtils.bind(this,function(Na){Ma();mxEvent.consume(Na)}));this.linkHint.appendChild(ja)})(A[M],M)}null!=this.linkHint&&Graph.sanitizeNode(this.linkHint)}catch(ha){}};mxEdgeHandler.prototype.updateLinkHint=mxVertexHandler.prototype.updateLinkHint;var cb=mxEdgeHandler.prototype.createConstraintHandler;mxEdgeHandler.prototype.createConstraintHandler=function(){var q=cb.apply(this,
-arguments);q.isEnabled=mxUtils.bind(this,function(){return this.state.view.graph.connectionHandler.isEnabled()});return q};var fb=mxConnectionHandler.prototype.init;mxConnectionHandler.prototype.init=function(){fb.apply(this,arguments);this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.graph.connectionHandler.isEnabled()})};var pb=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){if(null!=this.moveHandles)for(var q=0;q<this.moveHandles.length;q++)null!=
-this.moveHandles[q]&&(this.moveHandles[q].bounds.x=Math.round(this.moveHandles[q].rowState.x+this.moveHandles[q].rowState.width-this.moveHandles[q].bounds.width/2),this.moveHandles[q].bounds.y=Math.round(this.moveHandles[q].rowState.y+(this.moveHandles[q].rowState.height-this.moveHandles[q].bounds.height)/2),this.moveHandles[q].redraw());if(null!=this.cornerHandles){q=this.getSelectionBorderInset();var A=this.cornerHandles,B=A[0].bounds.height/2;A[0].bounds.x=this.state.x-A[0].bounds.width/2+q;A[0].bounds.y=
-this.state.y-B+q;A[0].redraw();A[1].bounds.x=A[0].bounds.x+this.state.width-2*q;A[1].bounds.y=A[0].bounds.y;A[1].redraw();A[2].bounds.x=A[0].bounds.x;A[2].bounds.y=this.state.y+this.state.height-2*q;A[2].redraw();A[3].bounds.x=A[1].bounds.x;A[3].bounds.y=A[2].bounds.y;A[3].redraw();for(q=0;q<this.cornerHandles.length;q++)this.cornerHandles[q].node.style.display=1==this.graph.getSelectionCount()?"":"none"}null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.setAttribute("title",
-mxResources.get("rotateTooltip")),this.rotationShape.node.style.display=null!=this.moveHandles||1!=this.graph.getSelectionCount()||null!=this.index&&this.index!=mxEvent.ROTATION_HANDLE?"none":"");pb.apply(this);null!=this.state&&null!=this.linkHint&&(q=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),A=new mxRectangle(this.state.x,this.state.y-22,this.state.width+24,this.state.height+22),B=mxUtils.getBoundingBox(A,this.state.style[mxConstants.STYLE_ROTATION]||"0",q),q=null!=B?mxUtils.getBoundingBox(this.state,
-this.state.style[mxConstants.STYLE_ROTATION]||"0"):this.state,A=null!=this.state.text?this.state.text.boundingBox:null,null==B&&(B=this.state),B=B.y+B.height,null!=A&&(B=Math.max(B,A.y+A.height)),this.linkHint.style.left=q.x+q.width/2+"px",this.linkHint.style.top=Math.round(B+this.verticalOffset/2+Editor.hintOffset)+"px",this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var gb=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){gb.apply(this,arguments);
+"",mxResources.get("ok"),Ma);mxEvent.consume(Na)}));va=F.cloneNode(!0);ja.appendChild(va);mxEvent.addListener(va,"click",mxUtils.bind(this,function(Na){Ma();mxEvent.consume(Na)}));this.linkHint.appendChild(ja)})(A[M],M)}null!=this.linkHint&&Graph.sanitizeNode(this.linkHint)}catch(ha){}};mxEdgeHandler.prototype.updateLinkHint=mxVertexHandler.prototype.updateLinkHint;var cb=mxEdgeHandler.prototype.createConstraintHandler;mxEdgeHandler.prototype.createConstraintHandler=function(){var p=cb.apply(this,
+arguments);p.isEnabled=mxUtils.bind(this,function(){return this.state.view.graph.connectionHandler.isEnabled()});return p};var fb=mxConnectionHandler.prototype.init;mxConnectionHandler.prototype.init=function(){fb.apply(this,arguments);this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.graph.connectionHandler.isEnabled()})};var pb=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){if(null!=this.moveHandles)for(var p=0;p<this.moveHandles.length;p++)null!=
+this.moveHandles[p]&&(this.moveHandles[p].bounds.x=Math.round(this.moveHandles[p].rowState.x+this.moveHandles[p].rowState.width-this.moveHandles[p].bounds.width/2),this.moveHandles[p].bounds.y=Math.round(this.moveHandles[p].rowState.y+(this.moveHandles[p].rowState.height-this.moveHandles[p].bounds.height)/2),this.moveHandles[p].redraw());if(null!=this.cornerHandles){p=this.getSelectionBorderInset();var A=this.cornerHandles,B=A[0].bounds.height/2;A[0].bounds.x=this.state.x-A[0].bounds.width/2+p;A[0].bounds.y=
+this.state.y-B+p;A[0].redraw();A[1].bounds.x=A[0].bounds.x+this.state.width-2*p;A[1].bounds.y=A[0].bounds.y;A[1].redraw();A[2].bounds.x=A[0].bounds.x;A[2].bounds.y=this.state.y+this.state.height-2*p;A[2].redraw();A[3].bounds.x=A[1].bounds.x;A[3].bounds.y=A[2].bounds.y;A[3].redraw();for(p=0;p<this.cornerHandles.length;p++)this.cornerHandles[p].node.style.display=1==this.graph.getSelectionCount()?"":"none"}null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.setAttribute("title",
+mxResources.get("rotateTooltip")),this.rotationShape.node.style.display=null!=this.moveHandles||1!=this.graph.getSelectionCount()||null!=this.index&&this.index!=mxEvent.ROTATION_HANDLE?"none":"");pb.apply(this);null!=this.state&&null!=this.linkHint&&(p=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),A=new mxRectangle(this.state.x,this.state.y-22,this.state.width+24,this.state.height+22),B=mxUtils.getBoundingBox(A,this.state.style[mxConstants.STYLE_ROTATION]||"0",p),p=null!=B?mxUtils.getBoundingBox(this.state,
+this.state.style[mxConstants.STYLE_ROTATION]||"0"):this.state,A=null!=this.state.text?this.state.text.boundingBox:null,null==B&&(B=this.state),B=B.y+B.height,null!=A&&(B=Math.max(B,A.y+A.height)),this.linkHint.style.left=p.x+p.width/2+"px",this.linkHint.style.top=Math.round(B+this.verticalOffset/2+Editor.hintOffset)+"px",this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var gb=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){gb.apply(this,arguments);
this.destroyMoveHandles();this.destroyCornerHandles();null!=this.linkHint&&(null!=this.linkHint.parentNode&&this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getSelectionModel().removeListener(this.changeHandler),this.graph.getModel().removeListener(this.changeHandler),this.changeHandler=null);null!=this.editingHandler&&(this.graph.removeListener(this.editingHandler),this.editingHandler=null)};var ab=mxEdgeHandler.prototype.redrawHandles;
-mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(ab.apply(this),null!=this.state&&null!=this.linkHint)){var q=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(q=new mxRectangle(q.x,q.y,q.width,q.height),q.add(this.state.text.bounds));this.linkHint.style.left=q.x+q.width/2+"px";this.linkHint.style.top=Math.round(q.y+q.height+Editor.hintOffset)+"px";this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":""}};var ib=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=
+mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(ab.apply(this),null!=this.state&&null!=this.linkHint)){var p=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(p=new mxRectangle(p.x,p.y,p.width,p.height),p.add(this.state.text.bounds));this.linkHint.style.left=p.x+p.width/2+"px";this.linkHint.style.top=Math.round(p.y+p.height+Editor.hintOffset)+"px";this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":""}};var ib=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=
function(){ib.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var eb=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){eb.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();Format=function(a,b){this.editorUi=a;this.container=b};Format.inactiveTabBackgroundColor="light-dark(#e4e4e4, #000000)";Format.noMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);Format.classicFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 10 2 L 5 8 L 10 14 Z M 0 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);
Format.classicThinFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 8 4 L 3 8 L 8 12 Z M 0 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);Format.openFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 8 0 L 0 8 L 8 16 M 0 8 L 24 8" stroke="#404040" fill="transparent"/>',32,20);
Format.openThinFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 8 4 L 0 8 L 8 12 M 0 8 L 24 8" stroke="#404040" fill="transparent"/>',32,20);Format.openAsyncFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 8 4 L 0 8 L 24 8" stroke="#404040" fill="transparent"/>',32,20);
@@ -3020,46 +3020,46 @@ Format.processMenuIcon=function(a,b){var e=a.getElementsByTagName("img");0<e.len
Format.prototype.init=function(){var a=this.editorUi,b=a.editor,e=b.graph;this.update=mxUtils.bind(this,function(f,h){this.refresh()});e.getSelectionModel().addListener(mxEvent.CHANGE,this.update);e.getModel().addListener(mxEvent.CHANGE,this.update);e.addListener(mxEvent.EDITING_STARTED,this.update);e.addListener(mxEvent.EDITING_STOPPED,this.update);e.getView().addListener("unitChanged",this.update);b.addListener("autosaveChanged",this.update);e.addListener(mxEvent.ROOT,this.update);a.addListener("styleChanged",
this.update);a.addListener("lockedChanged",this.update);this.refresh()};Format.prototype.clear=function(){this.container.innerText="";if(null!=this.panels)for(var a=0;a<this.panels.length;a++)this.panels[a].destroy();this.panels=[]};Format.prototype.refresh=function(){null!=this.pendingRefresh&&(window.clearTimeout(this.pendingRefresh),this.pendingRefresh=null);this.pendingRefresh=window.setTimeout(mxUtils.bind(this,function(){this.immediateRefresh()}))};
Format.prototype.immediateRefresh=function(){if("0px"!=this.container.style.width){this.clear();var a=this.editorUi,b=a.editor.graph,e=document.createElement("div");e.style.whiteSpace="nowrap";e.style.textAlign="left";e.style.cursor="default";var f=document.createElement("div");f.className="geFormatSection";f.style.textAlign="center";f.style.fontWeight="bold";f.style.paddingTop="8px";f.style.fontSize="13px";f.style.borderWidth="0px 0px 1px 1px";f.style.borderStyle="solid";f.style.display="inline-block";
-f.style.height="25px";f.style.overflow="hidden";f.style.width="100%";this.container.appendChild(e);mxEvent.addListener(f,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(C){C.preventDefault()}));var h=a.getSelectionState(),d=h.containsLabel,g=null,m=null,p=mxUtils.bind(this,function(C,E,D,G){var J=mxUtils.bind(this,function(L){g!=C&&(d?this.labelIndex=D:b.isSelectionEmpty()?this.diagramIndex=D:this.currentIndex=D,null!=g&&(g.style.backgroundColor=Format.inactiveTabBackgroundColor,
+f.style.height="25px";f.style.overflow="hidden";f.style.width="100%";this.container.appendChild(e);mxEvent.addListener(f,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(C){C.preventDefault()}));var h=a.getSelectionState(),d=h.containsLabel,g=null,m=null,q=mxUtils.bind(this,function(C,E,D,G){var J=mxUtils.bind(this,function(L){g!=C&&(d?this.labelIndex=D:b.isSelectionEmpty()?this.diagramIndex=D:this.currentIndex=D,null!=g&&(g.style.backgroundColor=Format.inactiveTabBackgroundColor,
g.style.borderBottomWidth="1px"),g=C,g.style.backgroundColor="",g.style.borderBottomWidth="0px",m!=E&&(null!=m&&(m.style.display="none"),m=E,m.style.display=""))});mxEvent.addListener(C,"click",J);mxEvent.addListener(C,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(L){L.preventDefault()}));(G&&null==g||D==(d?this.labelIndex:b.isSelectionEmpty()?this.diagramIndex:this.currentIndex))&&J()}),k=0;if(b.isSelectionEmpty()){mxUtils.write(f,mxResources.get("diagram"));f.style.borderLeftWidth=
-"0px";e.appendChild(f);h=e.cloneNode(!1);this.panels.push(new DiagramFormatPanel(this,a,h));this.container.appendChild(h);if(null!=Editor.styles){h.style.display="none";f.style.width=this.showCloseButton?"106px":"50%";f.style.cursor="pointer";f.style.backgroundColor=Format.inactiveTabBackgroundColor;var u=f.cloneNode(!1);u.style.borderLeftWidth="1px";u.style.borderRightWidth="1px";u.style.backgroundColor=Format.inactiveTabBackgroundColor;p(f,h,k++);var w=e.cloneNode(!1);w.style.display="none";mxUtils.write(u,
-mxResources.get("style"));e.appendChild(u);this.panels.push(new DiagramStylePanel(this,a,w));this.container.appendChild(w);p(u,w,k++)}this.showCloseButton&&(u=f.cloneNode(!1),u.style.borderLeftWidth="1px",u.style.borderRightWidth="1px",u.style.borderBottomWidth="1px",u.style.backgroundColor=Format.inactiveTabBackgroundColor,u.style.position="absolute",u.style.display="flex",u.style.right="0px",u.style.top="0px",u.style.width="25px",u.style.padding="0px",u.style.height="33px",u.style.alignItems="center",
-u.style.justifyContent="center",p=document.createElement("img"),p.className="geAdaptiveAsset",p.setAttribute("border","0"),p.setAttribute("src",Editor.crossImage),p.setAttribute("title",mxResources.get("hide")),p.style.width="16px",p.style.height="16px",p.style.opacity=.5,u.appendChild(p),mxEvent.addListener(p,"click",function(){a.actions.get("format").funct()}),e.appendChild(u))}else if(b.isEditing())mxUtils.write(f,mxResources.get("text")),e.appendChild(f),f.style.borderLeftStyle="none",this.panels.push(new TextFormatPanel(this,
+"0px";e.appendChild(f);h=e.cloneNode(!1);this.panels.push(new DiagramFormatPanel(this,a,h));this.container.appendChild(h);if(null!=Editor.styles){h.style.display="none";f.style.width=this.showCloseButton?"106px":"50%";f.style.cursor="pointer";f.style.backgroundColor=Format.inactiveTabBackgroundColor;var u=f.cloneNode(!1);u.style.borderLeftWidth="1px";u.style.borderRightWidth="1px";u.style.backgroundColor=Format.inactiveTabBackgroundColor;q(f,h,k++);var w=e.cloneNode(!1);w.style.display="none";mxUtils.write(u,
+mxResources.get("style"));e.appendChild(u);this.panels.push(new DiagramStylePanel(this,a,w));this.container.appendChild(w);q(u,w,k++)}this.showCloseButton&&(u=f.cloneNode(!1),u.style.borderLeftWidth="1px",u.style.borderRightWidth="1px",u.style.borderBottomWidth="1px",u.style.backgroundColor=Format.inactiveTabBackgroundColor,u.style.position="absolute",u.style.display="flex",u.style.right="0px",u.style.top="0px",u.style.width="25px",u.style.padding="0px",u.style.height="33px",u.style.alignItems="center",
+u.style.justifyContent="center",q=document.createElement("img"),q.className="geAdaptiveAsset",q.setAttribute("border","0"),q.setAttribute("src",Editor.crossImage),q.setAttribute("title",mxResources.get("hide")),q.style.width="16px",q.style.height="16px",q.style.opacity=.5,u.appendChild(q),mxEvent.addListener(q,"click",function(){a.actions.get("format").funct()}),e.appendChild(u))}else if(b.isEditing())mxUtils.write(f,mxResources.get("text")),e.appendChild(f),f.style.borderLeftStyle="none",this.panels.push(new TextFormatPanel(this,
a,e));else{f.style.backgroundColor=Format.inactiveTabBackgroundColor;f.style.borderLeftWidth="1px";f.style.cursor="pointer";f.style.width=0==h.cells.length?"100%":d?"50%":"33.3%";u=f.cloneNode(!1);var z=u.cloneNode(!1);u.style.backgroundColor=Format.inactiveTabBackgroundColor;z.style.backgroundColor=Format.inactiveTabBackgroundColor;d?u.style.borderLeftWidth="0px":0<h.cells.length&&(f.style.borderLeftWidth="0px",mxUtils.write(f,mxResources.get("style")),e.appendChild(f),w=e.cloneNode(!1),w.style.display=
-"none",this.panels.push(new StyleFormatPanel(this,a,w)),this.container.appendChild(w),p(f,w,k++));mxUtils.write(u,mxResources.get("text"));e.appendChild(u);f=e.cloneNode(!1);f.style.display="none";this.panels.push(new TextFormatPanel(this,a,f));this.container.appendChild(f);mxUtils.write(z,mxResources.get("arrange"));e.appendChild(z);e=e.cloneNode(!1);e.style.display="none";this.panels.push(new ArrangePanel(this,a,e));this.container.appendChild(e);0<h.cells.length?p(u,f,k+1):u.style.display="none";
-p(z,e,k++,!0)}}};BaseFormatPanel=function(a,b,e){this.format=a;this.editorUi=b;this.container=e;this.listeners=[]};BaseFormatPanel.prototype.buttonBackgroundColor="transparent";
-BaseFormatPanel.prototype.installInputHandler=function(a,b,e,f,h,d,g,m,p){d=null!=d?d:"";m=null!=m?m:!1;var k=this.editorUi,u=k.editor.graph;f=null!=f?f:1;h=null!=h?h:999;var w=null,z=!1,C=null,E=mxUtils.bind(this,function(D){var G=m?parseFloat(a.value):parseInt(a.value);p&&(G=this.fromUnit(G));if(G!=C){C=G;isNaN(G)||b!=mxConstants.STYLE_ROTATION||(G=mxUtils.mod(Math.round(100*G),36E3)/100);G=Math.min(h,Math.max(f,isNaN(G)?e:G));if(u.cellEditor.isContentEditing()&&g)z||(z=!0,null!=w&&(u.cellEditor.restoreSelection(w),
-w=null),g(G),a.value=(p?this.inUnit(G):G)+d,z=!1);else if(G!=mxUtils.getValue(k.getSelectionState().style,b,e)){u.isEditing()&&u.stopEditing(!0);u.getModel().beginUpdate();try{var J=k.getSelectionState().cells;u.setCellStyles(b,G,J);b==mxConstants.STYLE_FONTSIZE&&u.updateLabelElements(J,function(Q){Q.removeAttribute("size");Q.style.fontSize="";""==Q.getAttribute("style")&&Q.removeAttribute("style")});for(var L=0;L<J.length;L++)0==u.model.getChildCount(J[L])&&u.autoSizeCell(J[L],!1);k.fireEvent(new mxEventObject("styleChanged",
-"keys",[b],"values",[G],"cells",J))}finally{u.getModel().endUpdate()}}a.value=(p?this.inUnit(G):G)+d}mxEvent.consume(D)});g&&u.cellEditor.isContentEditing()&&mxEvent.addGestureListeners(a,mxUtils.bind(this,function(D){document.activeElement==u.cellEditor.textarea&&(w=u.cellEditor.saveSelection())}));mxEvent.addListener(a,"change",E);mxEvent.addListener(a,"blur",E);return E};
+"none",this.panels.push(new StyleFormatPanel(this,a,w)),this.container.appendChild(w),q(f,w,k++));mxUtils.write(u,mxResources.get("text"));e.appendChild(u);f=e.cloneNode(!1);f.style.display="none";this.panels.push(new TextFormatPanel(this,a,f));this.container.appendChild(f);mxUtils.write(z,mxResources.get("arrange"));e.appendChild(z);e=e.cloneNode(!1);e.style.display="none";this.panels.push(new ArrangePanel(this,a,e));this.container.appendChild(e);0<h.cells.length?q(u,f,k+1):u.style.display="none";
+q(z,e,k++,!0)}}};BaseFormatPanel=function(a,b,e){this.format=a;this.editorUi=b;this.container=e;this.listeners=[]};BaseFormatPanel.prototype.buttonBackgroundColor="transparent";
+BaseFormatPanel.prototype.installInputHandler=function(a,b,e,f,h,d,g,m,q){d=null!=d?d:"";m=null!=m?m:!1;var k=this.editorUi,u=k.editor.graph;f=null!=f?f:1;h=null!=h?h:999;var w=null,z=!1,C=null,E=mxUtils.bind(this,function(D){var G=m?parseFloat(a.value):parseInt(a.value);q&&(G=this.fromUnit(G));if(G!=C){C=G;isNaN(G)||b!=mxConstants.STYLE_ROTATION||(G=mxUtils.mod(Math.round(100*G),36E3)/100);G=Math.min(h,Math.max(f,isNaN(G)?e:G));if(u.cellEditor.isContentEditing()&&g)z||(z=!0,null!=w&&(u.cellEditor.restoreSelection(w),
+w=null),g(G),a.value=(q?this.inUnit(G):G)+d,z=!1);else if(G!=mxUtils.getValue(k.getSelectionState().style,b,e)){u.isEditing()&&u.stopEditing(!0);u.getModel().beginUpdate();try{var J=k.getSelectionState().cells;u.setCellStyles(b,G,J);b==mxConstants.STYLE_FONTSIZE&&u.updateLabelElements(J,function(Q){Q.removeAttribute("size");Q.style.fontSize="";""==Q.getAttribute("style")&&Q.removeAttribute("style")});for(var L=0;L<J.length;L++)0==u.model.getChildCount(J[L])&&u.autoSizeCell(J[L],!1);k.fireEvent(new mxEventObject("styleChanged",
+"keys",[b],"values",[G],"cells",J))}finally{u.getModel().endUpdate()}}a.value=(q?this.inUnit(G):G)+d}mxEvent.consume(D)});g&&u.cellEditor.isContentEditing()&&mxEvent.addGestureListeners(a,mxUtils.bind(this,function(D){document.activeElement==u.cellEditor.textarea&&(w=u.cellEditor.saveSelection())}));mxEvent.addListener(a,"change",E);mxEvent.addListener(a,"blur",E);return E};
BaseFormatPanel.prototype.createPanel=function(){var a=document.createElement("div");a.className="geFormatSection";a.style.padding="12px 0px 8px 14px";return a};BaseFormatPanel.prototype.createTitle=function(a){var b=document.createElement("div");b.style.padding="0px 0px 6px 0px";b.style.whiteSpace="nowrap";b.style.overflow="hidden";b.style.width="200px";b.style.fontWeight="bold";mxUtils.write(b,a);return b};
BaseFormatPanel.prototype.addAction=function(a,b){var e=this.editorUi.actions.get(b);b=null;null!=e&&e.isEnabled()&&(b=mxUtils.button(e.label,mxUtils.bind(this,function(f){try{e.funct(f,f)}catch(h){this.editorUi.handleError(h)}})),b.setAttribute("title",e.label+(null!=e.shortcut?" ("+e.shortcut+")":"")),b.style.marginBottom="2px",b.style.width="210px",a.appendChild(b));return b};
BaseFormatPanel.prototype.addActions=function(a,b){for(var e=null,f=null,h=0,d=0;d<b.length;d++){var g=this.addAction(a,b[d]);null!=g&&(h++,0==mxUtils.mod(h,2)&&(f.style.marginRight="2px",f.style.width="104px",g.style.width="104px",e.parentNode.removeChild(e)),e=mxUtils.br(a),f=g)}return h};
-BaseFormatPanel.prototype.createStepper=function(a,b,e,f,h,d,g){e=null!=e?e:1;f=null!=f?f:9;var m=10*e,p=document.createElement("div");p.className="geBtnStepper";p.style.position="absolute";var k=document.createElement("div");k.style.height=f+"px";k.style.backgroundImage="url("+Editor.arrowUpImage+")";k.style.width="10px";p.appendChild(k);var u=k.cloneNode(!1);u.style.height=f+"px";u.style.backgroundImage="url("+Editor.arrowDownImage+")";p.appendChild(u);mxEvent.addGestureListeners(u,function(z){mxEvent.consume(z)},
-null,function(z){""==a.value&&(a.value=d||"2");var C=g?parseFloat(a.value):parseInt(a.value);isNaN(C)||(a.value=C-(mxEvent.isShiftDown(z)?m:e),null!=b&&b(z));mxEvent.consume(z)});mxEvent.addGestureListeners(k,function(z){mxEvent.consume(z)},null,function(z){""==a.value&&(a.value=d||"0");var C=g?parseFloat(a.value):parseInt(a.value);isNaN(C)||(a.value=C+(mxEvent.isShiftDown(z)?m:e),null!=b&&b(z));mxEvent.consume(z)});if(h){var w=null;mxEvent.addGestureListeners(p,function(z){mxEvent.consume(z)},null,
-function(z){if(null!=w){try{w.select()}catch(C){}w=null;mxEvent.consume(z)}})}else mxEvent.addListener(p,"click",function(z){mxEvent.consume(z)});return p};
+BaseFormatPanel.prototype.createStepper=function(a,b,e,f,h,d,g){e=null!=e?e:1;f=null!=f?f:9;var m=10*e,q=document.createElement("div");q.className="geBtnStepper";q.style.position="absolute";var k=document.createElement("div");k.style.height=f+"px";k.style.backgroundImage="url("+Editor.arrowUpImage+")";k.style.width="10px";q.appendChild(k);var u=k.cloneNode(!1);u.style.height=f+"px";u.style.backgroundImage="url("+Editor.arrowDownImage+")";q.appendChild(u);mxEvent.addGestureListeners(u,function(z){mxEvent.consume(z)},
+null,function(z){""==a.value&&(a.value=d||"2");var C=g?parseFloat(a.value):parseInt(a.value);isNaN(C)||(a.value=C-(mxEvent.isShiftDown(z)?m:e),null!=b&&b(z));mxEvent.consume(z)});mxEvent.addGestureListeners(k,function(z){mxEvent.consume(z)},null,function(z){""==a.value&&(a.value=d||"0");var C=g?parseFloat(a.value):parseInt(a.value);isNaN(C)||(a.value=C+(mxEvent.isShiftDown(z)?m:e),null!=b&&b(z));mxEvent.consume(z)});if(h){var w=null;mxEvent.addGestureListeners(q,function(z){mxEvent.consume(z)},null,
+function(z){if(null!=w){try{w.select()}catch(C){}w=null;mxEvent.consume(z)}})}else mxEvent.addListener(q,"click",function(z){mxEvent.consume(z)});return q};
BaseFormatPanel.prototype.createOption=function(a,b,e,f,h){var d=document.createElement("div");d.style.display="flex";d.style.alignItems="center";d.style.padding="3px 0px 3px 0px";d.style.height="18px";var g=document.createElement("input");g.setAttribute("type","checkbox");g.style.margin="1px 6px 0px 0px";g.style.verticalAlign="top";d.appendChild(g);var m=document.createElement("div");m.setAttribute("title",a);m.style.display="inline-block";m.style.whiteSpace="nowrap";m.style.textOverflow="ellipsis";
-m.style.overflow="hidden";m.style.maxWidth="75%";m.style.userSelect="none";mxUtils.write(m,a);d.appendChild(m);var p=!1,k=b(),u=function(w,z){p||(p=!0,w?(g.setAttribute("checked","checked"),g.defaultChecked=!0,g.checked=!0):(g.removeAttribute("checked"),g.defaultChecked=!1,g.checked=!1),k!=w&&(k=w,b()!=k&&e(k,z)),p=!1)};mxEvent.addListener(d,"click",function(w){if("disabled"!=g.getAttribute("disabled")){var z=mxEvent.getSource(w);if(z==d||z==m)g.checked=!g.checked;u(g.checked,w)}});u(k);null!=f&&
+m.style.overflow="hidden";m.style.maxWidth="75%";m.style.userSelect="none";mxUtils.write(m,a);d.appendChild(m);var q=!1,k=b(),u=function(w,z){q||(q=!0,w?(g.setAttribute("checked","checked"),g.defaultChecked=!0,g.checked=!0):(g.removeAttribute("checked"),g.defaultChecked=!1,g.checked=!1),k!=w&&(k=w,b()!=k&&e(k,z)),q=!1)};mxEvent.addListener(d,"click",function(w){if("disabled"!=g.getAttribute("disabled")){var z=mxEvent.getSource(w);if(z==d||z==m)g.checked=!g.checked;u(g.checked,w)}});u(k);null!=f&&
(f.install(u),this.listeners.push(f));null!=h&&h(d);return d};
-BaseFormatPanel.prototype.createCellOption=function(a,b,e,f,h,d,g,m,p){var k=this.editorUi,u=k.editor.graph;f=null!=f?"null"==f?null:f:1;h=null!=h?"null"==h?null:h:0;var w=null!=p?u.getCommonStyle(p):k.getSelectionState().style;return this.createOption(a,function(){return mxUtils.getValue(w,b,e)!=h},function(z){m&&u.stopEditing();if(null!=g)g.funct();else{u.getModel().beginUpdate();try{var C=null!=p?p:k.getSelectionState().cells;z=z?f:h;u.setCellStyles(b,z,C);null!=d&&d(C,z);k.fireEvent(new mxEventObject("styleChanged",
+BaseFormatPanel.prototype.createCellOption=function(a,b,e,f,h,d,g,m,q){var k=this.editorUi,u=k.editor.graph;f=null!=f?"null"==f?null:f:1;h=null!=h?"null"==h?null:h:0;var w=null!=q?u.getCommonStyle(q):k.getSelectionState().style;return this.createOption(a,function(){return mxUtils.getValue(w,b,e)!=h},function(z){m&&u.stopEditing();if(null!=g)g.funct();else{u.getModel().beginUpdate();try{var C=null!=q?q:k.getSelectionState().cells;z=z?f:h;u.setCellStyles(b,z,C);null!=d&&d(C,z);k.fireEvent(new mxEventObject("styleChanged",
"keys",[b],"values",[z],"cells",C))}finally{u.getModel().endUpdate()}}},{install:function(z){this.listener=function(){z(mxUtils.getValue(w,b,e)!=h)};u.getModel().addListener(mxEvent.CHANGE,this.listener)},destroy:function(){u.getModel().removeListener(this.listener)}})};
-BaseFormatPanel.prototype.createColorOption=function(a,b,e,f,h,d,g,m,p,k){function u(P,T){"default"!=P||T||(P=m);"default"!=P&&p&&(P=mxUtils.getLightDarkColor(P),P=k()?P.dark:P.light);return P}var w=null!=k;k=null!=k?k:Editor.isDarkMode;var z=this.editorUi.editor.graph,C=document.createElement("div");C.style.padding="3px 0px 3px 0px";C.style.whiteSpace="nowrap";C.style.overflow="hidden";C.style.width="200px";C.style.height="18px";var E=document.createElement("input");E.setAttribute("type","checkbox");
+BaseFormatPanel.prototype.createColorOption=function(a,b,e,f,h,d,g,m,q,k){function u(P,T){"default"!=P||T||(P=m);"default"!=P&&q&&(P=mxUtils.getLightDarkColor(P),P=k()?P.dark:P.light);return P}var w=null!=k;k=null!=k?k:Editor.isDarkMode;var z=this.editorUi.editor.graph,C=document.createElement("div");C.style.padding="3px 0px 3px 0px";C.style.whiteSpace="nowrap";C.style.overflow="hidden";C.style.width="200px";C.style.height="18px";var E=document.createElement("input");E.setAttribute("type","checkbox");
E.style.margin="1px 6px 0px 0px";E.style.verticalAlign="top";g||C.appendChild(E);var D=document.createElement("span");D.style.verticalAlign="top";mxUtils.write(D,a);C.appendChild(D);var G=b(),J=!1,L=null,Q=null,N=document.createElement("input");N.setAttribute("type","color");N.style.position="relative";N.style.visibility="hidden";N.style.top="10px";N.style.width="0px";N.style.height="0px";N.style.border="none";mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_TOUCH||(L=document.createElement("img"),L.src=
Editor.colorDropperImage,L.className="geColorDropper geAdaptiveAsset",L.style.position="relative",L.style.right="-20px",L.style.top="-1px",L.style.width="auto",L.style.height="14px",mxEvent.addListener(L,"click",function(P){N.value=u(G);N.click();mxEvent.consume(P)}));var U=null,Y=function(P,T){J||(J=!0,null!=d&&d(P),T||(null!=U&&(z.cellEditor.restoreSelection(U),U=null),e(P)),G=b(),P=mxUtils.getLightDarkColor("default"!=G?G:m),T=document.createElement("div"),T.style.width="21px",T.style.height="12px",
-T.style.margin="2px 18px 2px 3px",T.style.borderWidth="1px",T.style.borderStyle="solid",T.style.backgroundColor=P.cssText,Q.innerText="",Q.appendChild(T),!p&&mxUtils.isLightDarkColor(G)&&P.light!=P.dark?T.style.background="linear-gradient(to right bottom, "+P.cssText+" 50%, "+mxUtils.invertLightDarkColor(P).cssText+" 50.3%)":p&&w&&(T.style.backgroundColor=k()?P.dark:P.light),null!=L?(T.style.width="21px",T.style.margin="2px 18px 2px 3px",T.appendChild(L)):(T.style.width="36px",T.style.margin="3px"),
+T.style.margin="2px 18px 2px 3px",T.style.borderWidth="1px",T.style.borderStyle="solid",T.style.backgroundColor=P.cssText,Q.innerText="",Q.appendChild(T),!q&&mxUtils.isLightDarkColor(G)&&P.light!=P.dark?T.style.background="linear-gradient(to right bottom, "+P.cssText+" 50%, "+mxUtils.invertLightDarkColor(P).cssText+" 50.3%)":q&&w&&(T.style.backgroundColor=k()?P.dark:P.light),null!=L?(T.style.width="21px",T.style.margin="2px 18px 2px 3px",T.appendChild(L)):(T.style.width="36px",T.style.margin="3px"),
null!=G&&G!=mxConstants.NONE&&1<G.length&&"string"===typeof G&&(P="#"==G.charAt(0)?G.substring(1).toUpperCase():G,P=ColorDialog.prototype.colorNames[P],null!=P?Q.setAttribute("title",P):"default"==G?Q.setAttribute("title",mxResources.get("useBlackAndWhite")):Q.setAttribute("title",G)),null==G||G==mxConstants.NONE||z.isSpecialColor(G)?(E.removeAttribute("checked"),E.defaultChecked=!1,E.checked=!1):(E.setAttribute("checked","checked"),E.defaultChecked=!0,E.checked=!0),Q.style.display=E.checked||g?"":
-"none",J=!1)};C.appendChild(N);mxEvent.addListener(N,"change",function(){var P=N.value;if(!p){var T=mxUtils.getLightDarkColor(G);k()?T.dark=P:T.light=P;P="light-dark("+T.light+", "+T.dark+")"}Y(P)});Q=mxUtils.button("",mxUtils.bind(this,function(P){var T=m;p&&k()&&mxUtils.isLightDarkColor(T)&&(T=mxUtils.getLightDarkColor(m).dark);this.editorUi.pickColor(u(G,!0),function(K){Y(K)},"default"==f?"default":null,T,p);mxEvent.consume(P)}));Q.style.position="absolute";Q.style.marginTop="-3px";Q.style.left=
+"none",J=!1)};C.appendChild(N);mxEvent.addListener(N,"change",function(){var P=N.value;if(!q){var T=mxUtils.getLightDarkColor(G);k()?T.dark=P:T.light=P;P="light-dark("+T.light+", "+T.dark+")"}Y(P)});Q=mxUtils.button("",mxUtils.bind(this,function(P){var T=m;q&&k()&&mxUtils.isLightDarkColor(T)&&(T=mxUtils.getLightDarkColor(m).dark);this.editorUi.pickColor(u(G,!0),function(K){Y(K)},"default"==f?"default":null,T,q);mxEvent.consume(P)}));Q.style.position="absolute";Q.style.marginTop="-3px";Q.style.left=
"178px";Q.style.height="22px";Q.className="geColorBtn";Q.style.display=E.checked||g?"":"none";C.appendChild(Q);a=null!=G&&"string"===typeof G&&"#"==G.charAt(0)?G.substring(1).toUpperCase():G;a=ColorDialog.prototype.colorNames[a];null!=a&&Q.setAttribute("title",a);g||(mxEvent.addListener(C,"click",function(P){P=mxEvent.getSource(P);if(P==E||"INPUT"!=P.nodeName)P!=E&&(E.checked=!E.checked),E.checked||null==G||G==mxConstants.NONE||f==mxConstants.NONE||(f=u(G)),Y(E.checked?f:mxConstants.NONE)}),mxEvent.addGestureListeners(E,
mxUtils.bind(this,function(P){document.activeElement==z.cellEditor.textarea&&(U=z.cellEditor.saveSelection())})),mxEvent.addGestureListeners(C,mxUtils.bind(this,function(P){document.activeElement==z.cellEditor.textarea&&(U=z.cellEditor.saveSelection())})));Y(G,!0);null!=h&&h.install(function(){Y(G,!0)},this.listeners.push(h));return C};
-BaseFormatPanel.prototype.createCellColorOption=function(a,b,e,f,h,d){var g=this.editorUi,m=g.editor.graph;return this.createColorOption(a,function(){var p=m.getCellStyle(m.getSelectionCell(),!1);return null!=p?p[b]:null},function(p){m.getModel().beginUpdate();try{var k=g.getSelectionState().cells;m.setCellStyles(b,p,k);null!=h&&h(p);g.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[p],"cells",k))}finally{m.getModel().endUpdate()}},e||mxConstants.NONE,{install:function(p){this.listener=
-function(){var k=m.getCellStyle(m.getSelectionCell(),!1);null!=k&&p(k[b],!0)};m.getModel().addListener(mxEvent.CHANGE,this.listener)},destroy:function(){m.getModel().removeListener(this.listener)}},f,null,d)};
+BaseFormatPanel.prototype.createCellColorOption=function(a,b,e,f,h,d){var g=this.editorUi,m=g.editor.graph;return this.createColorOption(a,function(){var q=m.getCellStyle(m.getSelectionCell(),!1);return null!=q?q[b]:null},function(q){m.getModel().beginUpdate();try{var k=g.getSelectionState().cells;m.setCellStyles(b,q,k);null!=h&&h(q);g.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[q],"cells",k))}finally{m.getModel().endUpdate()}},e||mxConstants.NONE,{install:function(q){this.listener=
+function(){var k=m.getCellStyle(m.getSelectionCell(),!1);null!=k&&q(k[b],!0)};m.getModel().addListener(mxEvent.CHANGE,this.listener)},destroy:function(){m.getModel().removeListener(this.listener)}},f,null,d)};
BaseFormatPanel.prototype.addArrow=function(a){a.className="geColorBtn";a.style.display="inline-flex";a.style.alignItems="top";a.style.boxSizing="border-box";a.style.width="64px";a.style.height="22px";a.style.borderWidth="1px";a.style.borderStyle="solid";a.style.margin="2px 2px 2px 3px";var b=document.createElement("div");b.className="geAdaptiveAsset";b.style.display="inline-block";b.style.backgroundImage="url("+Editor.thinExpandImage+")";b.style.backgroundRepeat="no-repeat";b.style.backgroundPosition=
"-2px 1px";b.style.backgroundSize="18px 18px";b.style.opacity="0.5";b.style.height="100%";b.style.width="14px";a.appendChild(b);a=a.getElementsByTagName("div")[0];null!=a&&(a.style.display="inline-block",a.style.backgroundPositionX="center",a.style.textAlign="center",a.style.height="100%",a.style.flexGrow="1",a.style.opacity="0.6");return a};
-BaseFormatPanel.prototype.addUnitInput=function(a,b,e,f,h,d,g,m,p){g=null!=g?g:0;b=document.createElement("input");b.style.position="absolute";b.style.textAlign="right";b.style.marginTop="-2px";b.style.left=228-e-f+"px";b.style.width=f+"px";b.style.height="21px";b.style.borderWidth="1px";b.style.borderStyle="solid";b.style.boxSizing="border-box";a.appendChild(b);f=this.createStepper(b,h,d,null,m,null,p);f.style.marginTop=g-2+"px";f.style.left=228-e+"px";a.appendChild(f);return b};
-BaseFormatPanel.prototype.addGenericInput=function(a,b,e,f,h,d){var g=this.editorUi.editor.graph,m=function(){d(p.value)},p=this.addUnitInput(a,b,e,f,m),k=mxUtils.bind(this,function(u,w,z){if(z||p!=document.activeElement)p.value=h()+b});mxEvent.addListener(p,"keydown",function(u){13==u.keyCode?(g.container.focus(),mxEvent.consume(u)):27==u.keyCode&&(k(null,null,!0),g.container.focus(),mxEvent.consume(u))});g.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){g.getModel().removeListener(k)}});
-k();mxEvent.addListener(p,"blur",m);mxEvent.addListener(p,"change",m);return p};
-BaseFormatPanel.prototype.createRelativeOption=function(a,b,e,f,h){e=null!=e?e:52;var d=this.editorUi,g=d.editor.graph,m=this.createPanel();m.style.paddingTop="10px";m.style.paddingBottom="12px";mxUtils.write(m,a);m.style.fontWeight="bold";a=mxUtils.bind(this,function(u){if(null!=f)f(p);else{var w=parseInt(p.value);w=Math.min(100,Math.max(0,isNaN(w)?100:w));var z=g.view.getState(d.getSelectionState().cells[0]);null!=z&&w!=mxUtils.getValue(z.style,b,100)&&(100==w&&(w=null),z=d.getSelectionState().cells,
-g.setCellStyles(b,w,z),this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[w],"cells",z)));p.value=(null!=w?w:"100")+" %"}mxEvent.consume(u)});var p=this.addUnitInput(m,"%",16,e,a,10,0,null!=f);if(null!=b){var k=mxUtils.bind(this,function(u,w,z){if(z||p!=document.activeElement)u=d.getSelectionState(),u=parseInt(mxUtils.getValue(u.style,b,100)),p.value=isNaN(u)?"":u+" %"});mxEvent.addListener(p,"keydown",function(u){13==u.keyCode?(g.container.focus(),mxEvent.consume(u)):27==
-u.keyCode&&(k(null,null,!0),g.container.focus(),mxEvent.consume(u))});g.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){g.getModel().removeListener(k)}});k()}mxEvent.addListener(p,"blur",a);mxEvent.addListener(p,"change",a);null!=h&&h(p);return m};
+BaseFormatPanel.prototype.addUnitInput=function(a,b,e,f,h,d,g,m,q){g=null!=g?g:0;b=document.createElement("input");b.style.position="absolute";b.style.textAlign="right";b.style.marginTop="-2px";b.style.left=228-e-f+"px";b.style.width=f+"px";b.style.height="21px";b.style.borderWidth="1px";b.style.borderStyle="solid";b.style.boxSizing="border-box";a.appendChild(b);f=this.createStepper(b,h,d,null,m,null,q);f.style.marginTop=g-2+"px";f.style.left=228-e+"px";a.appendChild(f);return b};
+BaseFormatPanel.prototype.addGenericInput=function(a,b,e,f,h,d){var g=this.editorUi.editor.graph,m=function(){d(q.value)},q=this.addUnitInput(a,b,e,f,m),k=mxUtils.bind(this,function(u,w,z){if(z||q!=document.activeElement)q.value=h()+b});mxEvent.addListener(q,"keydown",function(u){13==u.keyCode?(g.container.focus(),mxEvent.consume(u)):27==u.keyCode&&(k(null,null,!0),g.container.focus(),mxEvent.consume(u))});g.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){g.getModel().removeListener(k)}});
+k();mxEvent.addListener(q,"blur",m);mxEvent.addListener(q,"change",m);return q};
+BaseFormatPanel.prototype.createRelativeOption=function(a,b,e,f,h){e=null!=e?e:52;var d=this.editorUi,g=d.editor.graph,m=this.createPanel();m.style.paddingTop="10px";m.style.paddingBottom="12px";mxUtils.write(m,a);m.style.fontWeight="bold";a=mxUtils.bind(this,function(u){if(null!=f)f(q);else{var w=parseInt(q.value);w=Math.min(100,Math.max(0,isNaN(w)?100:w));var z=g.view.getState(d.getSelectionState().cells[0]);null!=z&&w!=mxUtils.getValue(z.style,b,100)&&(100==w&&(w=null),z=d.getSelectionState().cells,
+g.setCellStyles(b,w,z),this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[w],"cells",z)));q.value=(null!=w?w:"100")+" %"}mxEvent.consume(u)});var q=this.addUnitInput(m,"%",16,e,a,10,0,null!=f);if(null!=b){var k=mxUtils.bind(this,function(u,w,z){if(z||q!=document.activeElement)u=d.getSelectionState(),u=parseInt(mxUtils.getValue(u.style,b,100)),q.value=isNaN(u)?"":u+" %"});mxEvent.addListener(q,"keydown",function(u){13==u.keyCode?(g.container.focus(),mxEvent.consume(u)):27==
+u.keyCode&&(k(null,null,!0),g.container.focus(),mxEvent.consume(u))});g.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){g.getModel().removeListener(k)}});k()}mxEvent.addListener(q,"blur",a);mxEvent.addListener(q,"change",a);null!=h&&h(q);return m};
BaseFormatPanel.prototype.addLabel=function(a,b,e,f){f=null!=f?f:61;var h=document.createElement("div");mxUtils.write(h,b);h.style.position="absolute";h.style.left=240-e-f+"px";h.style.width=f+"px";h.style.marginTop="6px";h.style.display="flex";h.style.justifyContent="center";a.appendChild(h);return h};
BaseFormatPanel.prototype.addKeyHandler=function(a,b){mxEvent.addListener(a,"keydown",mxUtils.bind(this,function(e){13==e.keyCode?(this.editorUi.editor.graph.container.focus(),mxEvent.consume(e)):27==e.keyCode&&(null!=b&&b(null,null,!0),this.editorUi.editor.graph.container.focus(),mxEvent.consume(e))}))};
BaseFormatPanel.prototype.styleButtons=function(a){for(var b=0;b<a.length;b++)mxUtils.setPrefixedStyle(a[b].style,"borderRadius","3px"),a[b].style.border="1px solid #a0a0a0",a[b].style.padding="4px",a[b].style.paddingTop="3px",a[b].style.paddingRight="1px",a[b].style.margin="1px",a[b].style.marginRight="2px",a[b].style.width="24px",a[b].style.height="20px"};
@@ -3067,60 +3067,60 @@ BaseFormatPanel.prototype.destroy=function(){if(null!=this.listeners){for(var a=
ArrangePanel.prototype.init=function(){var a=this.editorUi.getSelectionState();0<a.cells.length&&(this.container.appendChild(this.addLayerOps(this.createPanel())),this.addGeometry(this.container),this.addEdgeGeometry(this.container),a.containsLabel&&0!=a.edges.length||this.container.appendChild(this.addAngle(this.createPanel())),a.containsLabel||this.container.appendChild(this.addFlip(this.createPanel())),this.container.appendChild(this.addAlign(this.createPanel())),1<a.vertices.length&&!a.cell&&
!a.row&&this.container.appendChild(this.addDistribute(this.createPanel())),this.container.appendChild(this.addTable(this.createPanel())));this.container.appendChild(this.addGroupOps(this.createPanel()));a.containsLabel&&(1==a.cells.length&&(a=document.createElement("div"),a.style.width="100%",a.style.marginTop="0px",a.style.fontWeight="bold",a.style.padding="10px 0 0 14px",mxUtils.write(a,mxResources.get("style")),this.container.appendChild(a)),new StyleFormatPanel(this.format,this.editorUi,this.container))};
ArrangePanel.prototype.addTable=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();a.style.paddingTop="6px";a.style.paddingBottom="10px";var h=document.createElement("div");h.style.marginTop="0px";h.style.marginBottom="6px";h.style.fontWeight="bold";mxUtils.write(h,mxResources.get("table"));a.appendChild(h);h=document.createElement("div");h.style.position="relative";h.style.paddingLeft="0px";h.style.borderWidth="0px";h.style.width="220px";h.className="geToolbarContainer";var d=
-f.vertices[0];1<e.getSelectionCount()&&(e.isTableCell(d)&&(d=e.model.getParent(d)),e.isTableRow(d)&&(d=e.model.getParent(d)));var g=f.table||f.row||f.cell,m=e.isStack(d)||e.isStackChild(d),p=g;m&&(g="0"==(e.isStack(d)?f.style:e.getCellStyle(e.model.getParent(d))).horizontalStack,p=!g);var k=[];p&&(k=k.concat([b.toolbar.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{m?e.insertLane(d,!0):e.insertTableColumn(d,!0)}catch(u){b.handleError(u)}}),
+f.vertices[0];1<e.getSelectionCount()&&(e.isTableCell(d)&&(d=e.model.getParent(d)),e.isTableRow(d)&&(d=e.model.getParent(d)));var g=f.table||f.row||f.cell,m=e.isStack(d)||e.isStackChild(d),q=g;m&&(g="0"==(e.isStack(d)?f.style:e.getCellStyle(e.model.getParent(d))).horizontalStack,q=!g);var k=[];q&&(k=k.concat([b.toolbar.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{m?e.insertLane(d,!0):e.insertTableColumn(d,!0)}catch(u){b.handleError(u)}}),
h),b.toolbar.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{m?e.insertLane(d,!1):e.insertTableColumn(d,!1)}catch(u){b.handleError(u)}}),h),b.toolbar.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{m?e.deleteLane(d):e.deleteTableColumn(d)}catch(u){b.handleError(u)}}),h)]));g&&(k=k.concat([b.toolbar.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{m?
e.insertLane(d,!0):e.insertTableRow(d,!0)}catch(u){b.handleError(u)}}),h),b.toolbar.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{m?e.insertLane(d,!1):e.insertTableRow(d,!1)}catch(u){b.handleError(u)}}),h),b.toolbar.addButton(Editor.removeRowImage,mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{m?e.deleteLane(d):e.deleteTableRow(d)}catch(u){b.handleError(u)}}),h)]));if(0<k.length){this.styleButtons(k);a.appendChild(h);3<k.length&&
-(k[2].style.marginRight="10px");p=0;if(null!=f.mergeCell)p+=this.addActions(a,["mergeCells"]);else if(1<f.style.colspan||1<f.style.rowspan)p+=this.addActions(a,["unmergeCells"]);0<p&&(h.style.paddingBottom="2px")}else a.style.display="none";return a};ArrangePanel.prototype.addLayerOps=function(a){this.addActions(a,["toFront","toBack"]);this.addActions(a,["bringForward","sendBackward"]);return a};
+(k[2].style.marginRight="10px");q=0;if(null!=f.mergeCell)q+=this.addActions(a,["mergeCells"]);else if(1<f.style.colspan||1<f.style.rowspan)q+=this.addActions(a,["unmergeCells"]);0<q&&(h.style.paddingBottom="2px")}else a.style.display="none";return a};ArrangePanel.prototype.addLayerOps=function(a){this.addActions(a,["toFront","toBack"]);this.addActions(a,["bringForward","sendBackward"]);return a};
ArrangePanel.prototype.addGroupOps=function(a){var b=this.editorUi,e=b.editor.graph;b=b.getSelectionState();a.style.paddingTop="8px";a.style.paddingBottom="6px";var f=this.addActions(a,["group","ungroup"])+this.addActions(a,["removeFromGroup"]);b.cell||b.row||(f+=this.addActions(a,["copySize","pasteSize","swap"]));var h=document.createElement("select");h.style.width="210px";h.style.textAlign="center";h.style.marginBottom="2px";for(var d=[{label:mxResources.get("reset"),action:"reset"},{label:mxResources.get("waypoints"),
-action:"clearWaypoints"},{label:mxResources.get("connectionPoints"),action:"clearAnchors"}],g=0;g<d.length;g++){var m=this.editorUi.actions.get(d[g].action);if(null==m||m.enabled){var p=document.createElement("option");p.setAttribute("value",d[g].action);p.setAttribute("title",d[g].label+(null!=m&&null!=m.shortcut?" ("+m.shortcut+")":""));mxUtils.write(p,d[g].label);h.appendChild(p)}}1<h.children.length&&(h.value="reset",a.appendChild(h),mxUtils.br(a),f++,mxEvent.addListener(h,"change",mxUtils.bind(this,
+action:"clearWaypoints"},{label:mxResources.get("connectionPoints"),action:"clearAnchors"}],g=0;g<d.length;g++){var m=this.editorUi.actions.get(d[g].action);if(null==m||m.enabled){var q=document.createElement("option");q.setAttribute("value",d[g].action);q.setAttribute("title",d[g].label+(null!=m&&null!=m.shortcut?" ("+m.shortcut+")":""));mxUtils.write(q,d[g].label);h.appendChild(q)}}1<h.children.length&&(h.value="reset",a.appendChild(h),mxUtils.br(a),f++,mxEvent.addListener(h,"change",mxUtils.bind(this,
function(k){k=this.editorUi.actions.get(h.value);h.value="reset";null!=k&&k.funct()})));f+=this.addActions(a,["lockUnlock"]);1==b.vertices.length&&0==b.edges.length&&0<e.getOpposites(e.getEdges(b.vertices[0]),b.vertices[0]).length&&(f+=this.addActions(a,["explore"]));0==f&&(a.style.display="none");return a};
ArrangePanel.prototype.addAlign=function(a){var b=this.editorUi.getSelectionState(),e=this.editorUi.editor.graph;a.style.paddingTop="6px";a.style.paddingBottom="8px";a.appendChild(this.createTitle(mxResources.get("align")));var f=document.createElement("div");f.style.position="relative";f.style.whiteSpace="nowrap";f.style.paddingLeft="0px";f.style.paddingBottom="2px";f.style.borderWidth="0px";f.style.width="220px";f.className="geToolbarContainer";if(1<b.vertices.length){b=this.editorUi.toolbar.addButton(Editor.alignHorizontalLeftImage,
mxResources.get("left"),function(){e.alignCells(mxConstants.ALIGN_LEFT)},f);var h=this.editorUi.toolbar.addButton(Editor.alignHorizontalCenterImage,mxResources.get("center"),function(){e.alignCells(mxConstants.ALIGN_CENTER)},f),d=this.editorUi.toolbar.addButton(Editor.alignHorizontalRightImage,mxResources.get("right"),function(){e.alignCells(mxConstants.ALIGN_RIGHT)},f),g=this.editorUi.toolbar.addButton(Editor.alignVerticalTopImage,mxResources.get("top"),function(){e.alignCells(mxConstants.ALIGN_TOP)},
-f),m=this.editorUi.toolbar.addButton(Editor.alignVerticalMiddleImage,mxResources.get("middle"),function(){e.alignCells(mxConstants.ALIGN_MIDDLE)},f),p=this.editorUi.toolbar.addButton(Editor.alignVerticalBottomImage,mxResources.get("bottom"),function(){e.alignCells(mxConstants.ALIGN_BOTTOM)},f);this.styleButtons([b,h,d,g,m,p]);d.style.marginRight="10px"}a.appendChild(f);this.addActions(a,["snapToGrid"]);return a};
+f),m=this.editorUi.toolbar.addButton(Editor.alignVerticalMiddleImage,mxResources.get("middle"),function(){e.alignCells(mxConstants.ALIGN_MIDDLE)},f),q=this.editorUi.toolbar.addButton(Editor.alignVerticalBottomImage,mxResources.get("bottom"),function(){e.alignCells(mxConstants.ALIGN_BOTTOM)},f);this.styleButtons([b,h,d,g,m,q]);d.style.marginRight="10px"}a.appendChild(f);this.addActions(a,["snapToGrid"]);return a};
ArrangePanel.prototype.addFlip=function(a){var b=this.editorUi.editor.graph;a.style.paddingTop="6px";a.style.paddingBottom="10px";var e=this.editorUi.getSelectionState(),f=document.createElement("div");f.style.marginTop="2px";f.style.marginBottom="8px";f.style.fontWeight="bold";mxUtils.write(f,mxResources.get("flip"));a.appendChild(f);f=mxUtils.button(mxResources.get("horizontal"),function(h){b.flipCells(e.cells,!0)});f.setAttribute("title",mxResources.get("horizontal"));f.style.width="104px";f.style.marginRight=
"2px";a.appendChild(f);f=mxUtils.button(mxResources.get("vertical"),function(h){b.flipCells(e.cells,!1)});f.setAttribute("title",mxResources.get("vertical"));f.style.width="104px";a.appendChild(f);return a};
ArrangePanel.prototype.addDistribute=function(a){var b=this.editorUi.editor.graph;a.style.paddingTop="6px";a.style.paddingBottom="8px";a.appendChild(this.createTitle(mxResources.get("distribute")));var e=mxUtils.button(mxResources.get("horizontal"),function(d){b.distributeCells(!0,null,f.checked)});e.setAttribute("title",mxResources.get("horizontal"));e.style.width="104px";e.style.marginRight="2px";a.appendChild(e);e=mxUtils.button(mxResources.get("vertical"),function(d){b.distributeCells(!1,null,
f.checked)});e.setAttribute("title",mxResources.get("vertical"));e.style.width="104px";a.appendChild(e);mxUtils.br(a);e=document.createElement("div");e.style.margin="6px 0 0 0";e.style.display="flex";e.style.justifyContent="center";e.style.alignItems="center";var f=document.createElement("input");f.setAttribute("type","checkbox");f.setAttribute("id","spacingCheckbox");f.style.margin="0 6px 0 0";e.appendChild(f);var h=document.createElement("label");h.style.verticalAlign="top";h.setAttribute("for",
"spacingCheckbox");h.style.userSelect="none";mxUtils.write(h,mxResources.get("spacing"));e.appendChild(h);a.appendChild(e);return a};
ArrangePanel.prototype.addAngle=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();a.style.paddingBottom="12px";var h=document.createElement("div");h.style.position="absolute";h.style.width="70px";h.style.marginTop="0px";h.style.fontWeight="bold";var d=null,g=null,m=null;!f.rotatable||f.table||f.row||f.cell?a.style.paddingTop="8px":(mxUtils.write(h,mxResources.get("angle")),a.appendChild(h),d=this.addUnitInput(a,"°",16,52,function(){g.apply(this,arguments)}),mxUtils.br(a),a.style.paddingTop=
-"10px");f.containsLabel||(h=mxResources.get("reverse"),0<f.vertices.length&&0<f.edges.length?h=mxResources.get("turn")+" / "+h:0<f.vertices.length&&(h=mxResources.get("turn")),m=mxUtils.button(h,function(k){b.actions.get("turn").funct(k)}),m.setAttribute("title",h+" ("+this.editorUi.actions.get("turn").shortcut+")"),m.style.width="210px",a.appendChild(m),null!=d&&(m.style.marginTop="8px"));if(null!=d){var p=mxUtils.bind(this,function(k,u,w){if(w||document.activeElement!=d)f=b.getSelectionState(),
-k=parseFloat(mxUtils.getValue(f.style,mxConstants.STYLE_ROTATION,0)),d.value=isNaN(k)?"":k+"°"});g=this.installInputHandler(d,mxConstants.STYLE_ROTATION,0,0,360,"°",null,!0);this.addKeyHandler(d,p);e.getModel().addListener(mxEvent.CHANGE,p);this.listeners.push({destroy:function(){e.getModel().removeListener(p)}});p()}return a};
+"10px");f.containsLabel||(h=mxResources.get("reverse"),0<f.vertices.length&&0<f.edges.length?h=mxResources.get("turn")+" / "+h:0<f.vertices.length&&(h=mxResources.get("turn")),m=mxUtils.button(h,function(k){b.actions.get("turn").funct(k)}),m.setAttribute("title",h+" ("+this.editorUi.actions.get("turn").shortcut+")"),m.style.width="210px",a.appendChild(m),null!=d&&(m.style.marginTop="8px"));if(null!=d){var q=mxUtils.bind(this,function(k,u,w){if(w||document.activeElement!=d)f=b.getSelectionState(),
+k=parseFloat(mxUtils.getValue(f.style,mxConstants.STYLE_ROTATION,0)),d.value=isNaN(k)?"":k+"°"});g=this.installInputHandler(d,mxConstants.STYLE_ROTATION,0,0,360,"°",null,!0);this.addKeyHandler(d,q);e.getModel().addListener(mxEvent.CHANGE,q);this.listeners.push({destroy:function(){e.getModel().removeListener(q)}});q()}return a};
BaseFormatPanel.prototype.getUnit=function(a){var b="";switch(this.editorUi.editor.graph.view.unit){case mxConstants.POINTS:b="pt";break;case mxConstants.INCHES:b='"';break;case mxConstants.MILLIMETERS:b="mm";break;case mxConstants.METERS:b="m"}return(a?a:"")+b};BaseFormatPanel.prototype.inUnit=function(a){return this.editorUi.editor.graph.view.formatUnitText(a)};
BaseFormatPanel.prototype.fromUnit=function(a){switch(this.editorUi.editor.graph.view.unit){case mxConstants.POINTS:return a;case mxConstants.INCHES:return a*mxConstants.PIXELS_PER_INCH;case mxConstants.MILLIMETERS:return a*mxConstants.PIXELS_PER_MM;case mxConstants.METERS:return a*mxConstants.PIXELS_PER_MM*1E3}};BaseFormatPanel.prototype.isFloatUnit=function(){return this.editorUi.editor.graph.view.unit!=mxConstants.POINTS};
BaseFormatPanel.prototype.getUnitStep=function(){switch(this.editorUi.editor.graph.view.unit){case mxConstants.POINTS:return 1;case mxConstants.INCHES:return.1;case mxConstants.MILLIMETERS:return.5;case mxConstants.METERS:return.001}};
-ArrangePanel.prototype.addGeometry=function(a){var b=this,e=this.editorUi,f=e.editor.graph,h=f.getModel(),d=e.getSelectionState(),g=this.createPanel();g.style.paddingBottom="8px";var m=document.createElement("div");m.style.position="absolute";m.style.width="50px";m.style.marginTop="0px";m.style.fontWeight="bold";mxUtils.write(m,mxResources.get("size"));g.appendChild(m);var p=this.addUnitInput(g,this.getUnit(),87,52,function(){C.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),
+ArrangePanel.prototype.addGeometry=function(a){var b=this,e=this.editorUi,f=e.editor.graph,h=f.getModel(),d=e.getSelectionState(),g=this.createPanel();g.style.paddingBottom="8px";var m=document.createElement("div");m.style.position="absolute";m.style.width="50px";m.style.marginTop="0px";m.style.fontWeight="bold";mxUtils.write(m,mxResources.get("size"));g.appendChild(m);var q=this.addUnitInput(g,this.getUnit(),87,52,function(){C.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),
k=this.addUnitInput(g,this.getUnit(),16,52,function(){E.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),u=document.createElement("div");u.className="geAdaptiveAsset";u.style.backgroundImage="url("+Editor.autosizeImage+")";u.style.backgroundPosition="center center";u.style.backgroundRepeat="no-repeat";u.style.backgroundSize="18px 18px";u.style.width="21px";u.style.height="21px";u.setAttribute("title",mxResources.get("autosize")+" ("+this.editorUi.actions.get("autosize").shortcut+
-")");u.style.position="relative";u.style.cursor="pointer";u.style.marginTop="-3px";u.style.border="0px";u.style.left="42px";mxUtils.setOpacity(u,50);mxEvent.addListener(u,"mouseenter",function(){mxUtils.setOpacity(u,100)});mxEvent.addListener(u,"mouseleave",function(){mxUtils.setOpacity(u,50)});mxEvent.addListener(u,"click",function(){e.actions.get("autosize").funct()});g.appendChild(u);d.row?(p.style.visibility="hidden",p.nextSibling.style.visibility="hidden"):this.addLabel(g,mxResources.get("width"),
-87,64);this.addLabel(g,mxResources.get("height"),16,64);mxUtils.br(g);m=document.createElement("div");m.style.paddingTop="8px";m.style.paddingRight="20px";m.style.whiteSpace="nowrap";m.style.textAlign="right";var w=this.createCellOption(mxResources.get("constrainProportions"),mxConstants.STYLE_ASPECT,null,"fixed","null");w.style.width="210px";m.appendChild(w);d.cell||d.row?u.style.visibility="hidden":g.appendChild(m);var z=w.getElementsByTagName("input")[0];this.addKeyHandler(p,Y);this.addKeyHandler(k,
-Y);var C=this.addGeometryHandler(p,function(K,V,Z){V=Math.max(1,b.fromUnit(V));if(f.isTableCell(Z))return f.setTableColumnWidth(Z,V-K.width,!0),!0;0<K.width&&(z.checked&&(K.height=Math.round(K.height*V*100/K.width)/100),K.width=V)});var E=this.addGeometryHandler(k,function(K,V,Z){V=Math.max(1,b.fromUnit(V));f.isTableCell(Z)&&(Z=h.getParent(Z));if(f.isTableRow(Z))return f.setTableRowHeight(Z,V-K.height),!0;0<K.height&&(z.checked&&(K.width=Math.round(K.width*V*100/K.height)/100),K.height=V)});(d.resizable||
+")");u.style.position="relative";u.style.cursor="pointer";u.style.marginTop="-3px";u.style.border="0px";u.style.left="42px";mxUtils.setOpacity(u,50);mxEvent.addListener(u,"mouseenter",function(){mxUtils.setOpacity(u,100)});mxEvent.addListener(u,"mouseleave",function(){mxUtils.setOpacity(u,50)});mxEvent.addListener(u,"click",function(){e.actions.get("autosize").funct()});g.appendChild(u);d.row?(q.style.visibility="hidden",q.nextSibling.style.visibility="hidden"):this.addLabel(g,mxResources.get("width"),
+87,64);this.addLabel(g,mxResources.get("height"),16,64);mxUtils.br(g);m=document.createElement("div");m.style.paddingTop="8px";m.style.paddingRight="20px";m.style.whiteSpace="nowrap";m.style.textAlign="right";var w=this.createCellOption(mxResources.get("constrainProportions"),mxConstants.STYLE_ASPECT,null,"fixed","null");w.style.width="210px";m.appendChild(w);d.cell||d.row?u.style.visibility="hidden":g.appendChild(m);var z=w.getElementsByTagName("input")[0];this.addKeyHandler(q,Y);this.addKeyHandler(k,
+Y);var C=this.addGeometryHandler(q,function(K,V,Z){V=Math.max(1,b.fromUnit(V));if(f.isTableCell(Z))return f.setTableColumnWidth(Z,V-K.width,!0),!0;0<K.width&&(z.checked&&(K.height=Math.round(K.height*V*100/K.width)/100),K.width=V)});var E=this.addGeometryHandler(k,function(K,V,Z){V=Math.max(1,b.fromUnit(V));f.isTableCell(Z)&&(Z=h.getParent(Z));if(f.isTableRow(Z))return f.setTableRowHeight(Z,V-K.height),!0;0<K.height&&(z.checked&&(K.width=Math.round(K.width*V*100/K.height)/100),K.height=V)});(d.resizable||
d.row||d.cell)&&a.appendChild(g);var D=this.createPanel();D.style.paddingBottom="30px";m=document.createElement("div");m.style.position="absolute";m.style.width="70px";m.style.marginTop="0px";m.style.fontWeight="bold";mxUtils.write(m,mxResources.get("position"));D.appendChild(m);var G=this.addUnitInput(D,this.getUnit(),87,52,function(){P.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),J=this.addUnitInput(D,this.getUnit(),16,52,function(){T.apply(this,arguments)},this.getUnitStep(),
null,null,this.isFloatUnit());mxUtils.br(D);w=!0;var L=null,Q=null;if(d.movable){if(0==d.edges.length&&1==d.vertices.length){var N=f.getCellGeometry(d.vertices[0]);if(null!=N&&N.relative){mxUtils.br(D);m=document.createElement("div");m.style.position="absolute";m.style.width="70px";m.style.marginTop="0px";mxUtils.write(m,mxResources.get("relative"));D.appendChild(m);L=this.addGenericInput(D," %",87,52,function(){return Math.round(1E3*N.x)/10},function(K){K=parseFloat(K);if(!isNaN(K)){h.beginUpdate();
try{N=N.clone(),N.x=parseFloat(K)/100,h.setGeometry(d.vertices[0],N)}finally{h.endUpdate()}}});if(h.isEdge(h.getParent(d.vertices[0]))){w=!1;var U=null;Q=this.addUnitInput(D,this.getUnit(),16,52,function(){U.apply(this,arguments)});U=this.addGeometryHandler(Q,function(K,V){K.y=b.fromUnit(V)})}else Q=this.addGenericInput(D," %",16,52,function(){return Math.round(1E3*N.y)/10},function(K){K=parseFloat(K);if(!isNaN(K)){h.beginUpdate();try{N=N.clone(),N.y=parseFloat(K)/100,h.setGeometry(d.vertices[0],
-N)}finally{h.endUpdate()}}});mxUtils.br(D)}}a.appendChild(D)}this.addLabel(D,mxResources.get(w?"left":"line"),87,64).style.marginTop="8px";this.addLabel(D,mxResources.get(w?"top":"orthogonal"),16,64).style.marginTop="8px";var Y=mxUtils.bind(this,function(K,V,Z){d=e.getSelectionState();if(d.containsLabel||d.vertices.length!=f.getSelectionCount()||null==d.width||null==d.height)g.style.display="none";else{g.style.display="";if(Z||document.activeElement!=p)p.value=this.inUnit(d.width)+" "+this.getUnit();
+N)}finally{h.endUpdate()}}});mxUtils.br(D)}}a.appendChild(D)}this.addLabel(D,mxResources.get(w?"left":"line"),87,64).style.marginTop="8px";this.addLabel(D,mxResources.get(w?"top":"orthogonal"),16,64).style.marginTop="8px";var Y=mxUtils.bind(this,function(K,V,Z){d=e.getSelectionState();if(d.containsLabel||d.vertices.length!=f.getSelectionCount()||null==d.width||null==d.height)g.style.display="none";else{g.style.display="";if(Z||document.activeElement!=q)q.value=this.inUnit(d.width)+" "+this.getUnit();
if(Z||document.activeElement!=k)k.value=this.inUnit(d.height)+" "+this.getUnit()}if(d.vertices.length==f.getSelectionCount()&&0<d.vertices.length&&null!=d.x&&null!=d.y){K=f.getCellGeometry(d.vertices[0]);D.style.display="";if(Z||document.activeElement!=G)G.value=this.inUnit(d.x)+" "+this.getUnit();if(Z||document.activeElement!=J)J.value=this.inUnit(d.y)+" "+this.getUnit();null!=K&&K.relative&&(null==L||!Z&&document.activeElement==L||(L.value=Math.round(1E3*K.x)/10+" %"),null==Q||!Z&&document.activeElement==
Q||(h.isEdge(h.getParent(d.vertices[0]))?Q.value=this.inUnit(K.y)+" "+this.getUnit():Q.value=Math.round(1E3*K.y)/10+" %"))}else D.style.display="none"});this.listeners.push({destroy:function(){h.removeListener(Y)}});h.addListener(mxEvent.CHANGE,Y);this.addKeyHandler(G,Y);this.addKeyHandler(J,Y);Y();var P=this.addGeometryHandler(G,function(K,V){V=b.fromUnit(V);K.relative?(K.offset=null!=K.offset?K.offset:new mxPoint,K.offset.x=V):K.x=V});var T=this.addGeometryHandler(J,function(K,V){V=b.fromUnit(V);
K.relative?(K.offset=null!=K.offset?K.offset:new mxPoint,K.offset.y=V):K.y=V});d.movable&&(0==d.edges.length&&1==d.vertices.length&&h.isEdge(h.getParent(d.vertices[0]))&&(N=f.getCellGeometry(d.vertices[0]),null!=N&&N.relative&&(m=mxUtils.button(mxResources.get("center"),mxUtils.bind(this,function(K){h.beginUpdate();try{N=N.clone(),N.x=0,N.y=0,N.offset=new mxPoint,h.setGeometry(d.vertices[0],N)}finally{h.endUpdate()}})),m.setAttribute("title",mxResources.get("center")),m.style.width="134px",m.style.left=
"89px",m.style.position="absolute",mxUtils.br(D),mxUtils.br(D),D.appendChild(m))),a.appendChild(D))};
-ArrangePanel.prototype.addGeometryHandler=function(a,b){function e(m){if(""!=a.value){var p=parseFloat(a.value);if(isNaN(p))a.value=d+" "+g.getUnit();else if(p!=d){h.getModel().beginUpdate();try{for(var k=f.getSelectionState().cells,u=0;u<k.length;u++)if(h.getModel().isVertex(k[u])){var w=h.getCellGeometry(k[u]);if(null!=w&&(w=w.clone(),!b(w,p,k[u]))){var z=h.view.getState(k[u]);null!=z&&h.isRecursiveVertexResize(z)&&h.resizeChildCells(k[u],w);h.getModel().setGeometry(k[u],w);h.constrainChildCells(k[u])}}}finally{h.getModel().endUpdate()}d=
-p;a.value=p+" "+g.getUnit()}}mxEvent.consume(m)}var f=this.editorUi,h=f.editor.graph,d=null,g=this;mxEvent.addListener(a,"blur",e);mxEvent.addListener(a,"change",e);mxEvent.addListener(a,"focus",function(){d=a.value});return e};
-ArrangePanel.prototype.addEdgeGeometryHandler=function(a,b){function e(g){if(""!=a.value){var m=parseFloat(a.value);if(isNaN(m))a.value=d+" pt";else if(m!=d){h.getModel().beginUpdate();try{for(var p=f.getSelectionState().cells,k=0;k<p.length;k++)if(h.getModel().isEdge(p[k])){var u=h.getCellGeometry(p[k]);null!=u&&(u=u.clone(),b(u,m),h.getModel().setGeometry(p[k],u))}}finally{h.getModel().endUpdate()}d=m;a.value=m+" pt"}}mxEvent.consume(g)}var f=this.editorUi,h=f.editor.graph,d=null;mxEvent.addListener(a,
+ArrangePanel.prototype.addGeometryHandler=function(a,b){function e(m){if(""!=a.value){var q=parseFloat(a.value);if(isNaN(q))a.value=d+" "+g.getUnit();else if(q!=d){h.getModel().beginUpdate();try{for(var k=f.getSelectionState().cells,u=0;u<k.length;u++)if(h.getModel().isVertex(k[u])){var w=h.getCellGeometry(k[u]);if(null!=w&&(w=w.clone(),!b(w,q,k[u]))){var z=h.view.getState(k[u]);null!=z&&h.isRecursiveVertexResize(z)&&h.resizeChildCells(k[u],w);h.getModel().setGeometry(k[u],w);h.constrainChildCells(k[u])}}}finally{h.getModel().endUpdate()}d=
+q;a.value=q+" "+g.getUnit()}}mxEvent.consume(m)}var f=this.editorUi,h=f.editor.graph,d=null,g=this;mxEvent.addListener(a,"blur",e);mxEvent.addListener(a,"change",e);mxEvent.addListener(a,"focus",function(){d=a.value});return e};
+ArrangePanel.prototype.addEdgeGeometryHandler=function(a,b){function e(g){if(""!=a.value){var m=parseFloat(a.value);if(isNaN(m))a.value=d+" pt";else if(m!=d){h.getModel().beginUpdate();try{for(var q=f.getSelectionState().cells,k=0;k<q.length;k++)if(h.getModel().isEdge(q[k])){var u=h.getCellGeometry(q[k]);null!=u&&(u=u.clone(),b(u,m),h.getModel().setGeometry(q[k],u))}}finally{h.getModel().endUpdate()}d=m;a.value=m+" pt"}}mxEvent.consume(g)}var f=this.editorUi,h=f.editor.graph,d=null;mxEvent.addListener(a,
"blur",e);mxEvent.addListener(a,"change",e);mxEvent.addListener(a,"focus",function(){d=a.value});return e};
-ArrangePanel.prototype.addEdgeGeometry=function(a){var b=this,e=this.editorUi,f=e.editor.graph,h=e.getSelectionState(),d=this.createPanel(),g=document.createElement("div");g.style.position="absolute";g.style.width="70px";g.style.marginTop="0px";g.style.fontWeight="bold";mxUtils.write(g,mxResources.get("width"));d.appendChild(g);var m=this.addUnitInput(d,"pt",12,44,function(){p.apply(this,arguments)});mxUtils.br(d);this.addKeyHandler(m,D);var p=mxUtils.bind(this,function(N){var U=parseInt(m.value);
-U=Math.min(999,Math.max(1,isNaN(U)?1:U));if(U!=mxUtils.getValue(h.style,"width",mxCellRenderer.defaultShapes.flexArrow.prototype.defaultWidth)){var Y=e.getSelectionState().cells;f.setCellStyles("width",U,Y);e.fireEvent(new mxEventObject("styleChanged","keys",["width"],"values",[U],"cells",Y))}m.value=U+" pt";mxEvent.consume(N)});mxEvent.addListener(m,"blur",p);mxEvent.addListener(m,"change",p);a.appendChild(d);var k=this.createPanel();k.style.paddingBottom="30px";g=document.createElement("div");g.style.position=
+ArrangePanel.prototype.addEdgeGeometry=function(a){var b=this,e=this.editorUi,f=e.editor.graph,h=e.getSelectionState(),d=this.createPanel(),g=document.createElement("div");g.style.position="absolute";g.style.width="70px";g.style.marginTop="0px";g.style.fontWeight="bold";mxUtils.write(g,mxResources.get("width"));d.appendChild(g);var m=this.addUnitInput(d,"pt",12,44,function(){q.apply(this,arguments)});mxUtils.br(d);this.addKeyHandler(m,D);var q=mxUtils.bind(this,function(N){var U=parseInt(m.value);
+U=Math.min(999,Math.max(1,isNaN(U)?1:U));if(U!=mxUtils.getValue(h.style,"width",mxCellRenderer.defaultShapes.flexArrow.prototype.defaultWidth)){var Y=e.getSelectionState().cells;f.setCellStyles("width",U,Y);e.fireEvent(new mxEventObject("styleChanged","keys",["width"],"values",[U],"cells",Y))}m.value=U+" pt";mxEvent.consume(N)});mxEvent.addListener(m,"blur",q);mxEvent.addListener(m,"change",q);a.appendChild(d);var k=this.createPanel();k.style.paddingBottom="30px";g=document.createElement("div");g.style.position=
"absolute";g.style.width="70px";g.style.marginTop="0px";mxUtils.write(g,mxResources.get("linestart"));k.appendChild(g);var u=this.addUnitInput(k,this.getUnit(),87,52,function(){G.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),w=this.addUnitInput(k,this.getUnit(),16,52,function(){J.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(k);this.addLabel(k,mxResources.get("left"),87,64);this.addLabel(k,mxResources.get("top"),16,64);a.appendChild(k);
this.addKeyHandler(u,D);this.addKeyHandler(w,D);var z=this.createPanel();z.style.paddingBottom="30px";g=document.createElement("div");g.style.position="absolute";g.style.width="70px";g.style.marginTop="0px";mxUtils.write(g,mxResources.get("lineend"));z.appendChild(g);var C=this.addUnitInput(z,this.getUnit(),87,52,function(){L.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),E=this.addUnitInput(z,this.getUnit(),16,52,function(){Q.apply(this,arguments)},this.getUnitStep(),null,
null,this.isFloatUnit());mxUtils.br(z);this.addLabel(z,mxResources.get("left"),87,64);this.addLabel(z,mxResources.get("top"),16,64);a.appendChild(z);this.addKeyHandler(C,D);this.addKeyHandler(E,D);var D=mxUtils.bind(this,function(N,U,Y){h=e.getSelectionState();N=h.cells[0];if("link"==h.style.shape||"flexArrow"==h.style.shape){if(d.style.display="",Y||document.activeElement!=m)Y=mxUtils.getValue(h.style,"width",mxCellRenderer.defaultShapes.flexArrow.prototype.defaultWidth),m.value=Y+" pt"}else d.style.display=
"none";1==h.cells.length&&f.model.isEdge(N)?(Y=f.model.getGeometry(N),null!=Y&&null!=Y.sourcePoint&&null==f.model.getTerminal(N,!0)?(u.value=this.inUnit(Y.sourcePoint.x)+" "+this.getUnit(),w.value=this.inUnit(Y.sourcePoint.y)+" "+this.getUnit()):k.style.display="none",null!=Y&&null!=Y.targetPoint&&null==f.model.getTerminal(N,!1)?(C.value=this.inUnit(Y.targetPoint.x)+" "+this.getUnit(),E.value=this.inUnit(Y.targetPoint.y)+" "+this.getUnit()):z.style.display="none"):(k.style.display="none",z.style.display=
"none")});var G=this.addEdgeGeometryHandler(u,function(N,U){N.sourcePoint.x=b.fromUnit(U)});var J=this.addEdgeGeometryHandler(w,function(N,U){N.sourcePoint.y=b.fromUnit(U)});var L=this.addEdgeGeometryHandler(C,function(N,U){N.targetPoint.x=b.fromUnit(U)});var Q=this.addEdgeGeometryHandler(E,function(N,U){N.targetPoint.y=b.fromUnit(U)});f.getModel().addListener(mxEvent.CHANGE,D);this.listeners.push({destroy:function(){f.getModel().removeListener(D)}});D()};
TextFormatPanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(TextFormatPanel,BaseFormatPanel);TextFormatPanel.prototype.init=function(){this.container.style.borderBottom="none";this.addFont(this.container);this.container.appendChild(this.addFontOps(this.createPanel()))};TextFormatPanel.prototype.addFontOps=function(a){a.style.paddingTop="8px";a.style.paddingBottom="6px";0==this.addActions(a,["removeFormat"])&&(a.style.display="none");return a};
-TextFormatPanel.prototype.addFont=function(a){function b(q){q=null!=q?q.fontSize:null;return null!=q&&"px"==q.substring(q.length-2)?parseFloat(q):mxConstants.DEFAULT_FONTSIZE}function e(q,A){if(null!=q&&""!=q.textContent){q.style.lineHeight="";var B=mxUtils.getCurrentStyle(q);parseFloat(B.fontSize)*A/100!=parseFloat(B.lineHeight)?q.style.lineHeight=A+"%":""==q.getAttribute("style")&&q.removeAttribute("style")}}function f(q,A){A?q.classList.add("geActiveItem"):q.classList.remove("geActiveItem")}var h=
-this.editorUi,d=h.editor.graph,g=h.getSelectionState(),m=this.createTitle(mxResources.get("font"));m.style.paddingLeft="14px";m.style.paddingTop="10px";m.style.paddingBottom="6px";a.appendChild(m);m=this.createPanel();m.style.paddingTop="2px";m.style.paddingBottom="2px";m.style.position="relative";m.style.marginLeft="-2px";m.style.borderWidth="0px";m.className="geToolbarContainer";if(d.cellEditor.isContentEditing()){var p=m.cloneNode(),k=this.editorUi.toolbar.addMenu(mxResources.get("style"),mxResources.get("style"),
-!0,"formatBlock",p,null,!0);this.addArrow(k);k.style.width="211px";k.style.alignItems="center";k.style.justifyContent="center";k.style.whiteSpace="nowrap";k.style.overflow="hidden";k.style.margin="0px";k.style.position="relative";k=k.getElementsByTagName("div")[0];k.style.position="absolute";k.style.right="2px";a.appendChild(p)}a.appendChild(m);p=this.createPanel();p.style.marginTop="8px";p.style.borderWidth="1px";p.style.borderStyle="solid";p.style.paddingTop="6px";p.style.paddingBottom="2px";var u=
+TextFormatPanel.prototype.addFont=function(a){function b(p){p=null!=p?p.fontSize:null;return null!=p&&"px"==p.substring(p.length-2)?parseFloat(p):mxConstants.DEFAULT_FONTSIZE}function e(p,A){if(null!=p&&""!=p.textContent){p.style.lineHeight="";var B=mxUtils.getCurrentStyle(p);parseFloat(B.fontSize)*A/100!=parseFloat(B.lineHeight)?p.style.lineHeight=A+"%":""==p.getAttribute("style")&&p.removeAttribute("style")}}function f(p,A){A?p.classList.add("geActiveItem"):p.classList.remove("geActiveItem")}var h=
+this.editorUi,d=h.editor.graph,g=h.getSelectionState(),m=this.createTitle(mxResources.get("font"));m.style.paddingLeft="14px";m.style.paddingTop="10px";m.style.paddingBottom="6px";a.appendChild(m);m=this.createPanel();m.style.paddingTop="2px";m.style.paddingBottom="2px";m.style.position="relative";m.style.marginLeft="-2px";m.style.borderWidth="0px";m.className="geToolbarContainer";if(d.cellEditor.isContentEditing()){var q=m.cloneNode(),k=this.editorUi.toolbar.addMenu(mxResources.get("style"),mxResources.get("style"),
+!0,"formatBlock",q,null,!0);this.addArrow(k);k.style.width="211px";k.style.alignItems="center";k.style.justifyContent="center";k.style.whiteSpace="nowrap";k.style.overflow="hidden";k.style.margin="0px";k.style.position="relative";k=k.getElementsByTagName("div")[0];k.style.position="absolute";k.style.right="2px";a.appendChild(q)}a.appendChild(m);q=this.createPanel();q.style.marginTop="8px";q.style.borderWidth="1px";q.style.borderStyle="solid";q.style.paddingTop="6px";q.style.paddingBottom="2px";var u=
this.editorUi.toolbar.addMenu("Helvetica",mxResources.get("fontFamily"),!0,"fontFamily",m,null,!0);this.addArrow(u);u.style.width="211px";u.style.alignItems="center";u.style.justifyContent="center";u.style.whiteSpace="nowrap";u.style.overflow="hidden";u.style.margin="0px";u.style.position="relative";k=u.getElementsByTagName("div")[0];k.style.position="absolute";k.style.right="2px";k=m.cloneNode(!1);k.style.marginLeft="-3px";k.style.height="31px";var w=this.editorUi.toolbar.addItems(["bold","italic",
"underline"],k,!0,[Editor.boldImage,Editor.italicImage,Editor.underlineImage]);w[0].setAttribute("title",mxResources.get("bold")+" ("+this.editorUi.actions.get("bold").shortcut+")");w[1].setAttribute("title",mxResources.get("italic")+" ("+this.editorUi.actions.get("italic").shortcut+")");w[2].setAttribute("title",mxResources.get("underline")+" ("+this.editorUi.actions.get("underline").shortcut+")");var z=this.editorUi.toolbar.addItems(["vertical"],k,!0,[Editor.verticalTextImage])[0];a.appendChild(k);
-this.styleButtons(w);this.styleButtons([z]);var C=m.cloneNode(!1);C.style.height="31px";C.style.paddingTop="2px";C.style.marginLeft="-3px";C.style.paddingBottom="0px";var E=function(q){return function(){return q()}},D=this.editorUi.toolbar.addButton(Editor.alignLeftImage,mxResources.get("left"),d.cellEditor.isContentEditing()?function(q){d.cellEditor.alignText(mxConstants.ALIGN_LEFT,q);h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_LEFT],
-"cells",g.cells))}:E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_LEFT])),C),G=this.editorUi.toolbar.addButton(Editor.alignCenterImage,mxResources.get("center"),d.cellEditor.isContentEditing()?function(q){d.cellEditor.alignText(mxConstants.ALIGN_CENTER,q);h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_CENTER],"cells",g.cells))}:E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],
-[mxConstants.ALIGN_CENTER])),C),J=this.editorUi.toolbar.addButton(Editor.alignRightImage,mxResources.get("right"),d.cellEditor.isContentEditing()?function(q){d.cellEditor.alignText(mxConstants.ALIGN_RIGHT,q);h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_RIGHT],"cells",g.cells))}:E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_RIGHT])),C);this.styleButtons([D,G,J]);if(d.cellEditor.isContentEditing()){var L=
+this.styleButtons(w);this.styleButtons([z]);var C=m.cloneNode(!1);C.style.height="31px";C.style.paddingTop="2px";C.style.marginLeft="-3px";C.style.paddingBottom="0px";var E=function(p){return function(){return p()}},D=this.editorUi.toolbar.addButton(Editor.alignLeftImage,mxResources.get("left"),d.cellEditor.isContentEditing()?function(p){d.cellEditor.alignText(mxConstants.ALIGN_LEFT,p);h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_LEFT],
+"cells",g.cells))}:E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_LEFT])),C),G=this.editorUi.toolbar.addButton(Editor.alignCenterImage,mxResources.get("center"),d.cellEditor.isContentEditing()?function(p){d.cellEditor.alignText(mxConstants.ALIGN_CENTER,p);h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_CENTER],"cells",g.cells))}:E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],
+[mxConstants.ALIGN_CENTER])),C),J=this.editorUi.toolbar.addButton(Editor.alignRightImage,mxResources.get("right"),d.cellEditor.isContentEditing()?function(p){d.cellEditor.alignText(mxConstants.ALIGN_RIGHT,p);h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_RIGHT],"cells",g.cells))}:E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_RIGHT])),C);this.styleButtons([D,G,J]);if(d.cellEditor.isContentEditing()){var L=
this.editorUi.toolbar.addButton(Editor.strikethroughImage,mxResources.get("strikethrough"),function(){document.execCommand("strikeThrough",!1,null)},k);this.styleButtons([L])}var Q=this.editorUi.toolbar.addButton(Editor.alignTopImage,mxResources.get("top"),E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_TOP])),C),N=this.editorUi.toolbar.addButton(Editor.alignMiddleImage,mxResources.get("middle"),E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],
[mxConstants.ALIGN_MIDDLE])),C),U=this.editorUi.toolbar.addButton(Editor.alignBottomImage,mxResources.get("bottom"),E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_BOTTOM])),C);this.styleButtons([Q,N,U]);a.appendChild(C);var Y,P,T,K,V;if(d.cellEditor.isContentEditing()){Q.style.display="none";N.style.display="none";U.style.display="none";z.style.display="none";var Z=this.editorUi.toolbar.addButton(Editor.alignJustifyImage,mxResources.get("block"),
function(){1==Z.style.opacity&&document.execCommand("justifyfull",!1,null)},C);Z.style.marginRight="9px";this.styleButtons([Z,Y=this.editorUi.toolbar.addButton(Editor.subscriptImage,mxResources.get("subscript")+" ("+Editor.ctrlKey+"+,)",function(){document.execCommand("subscript",!1,null)},C),P=this.editorUi.toolbar.addButton(Editor.superscriptImage,mxResources.get("superscript")+" ("+Editor.ctrlKey+"+.)",function(){document.execCommand("superscript",!1,null)},C)]);Y.style.marginLeft="10px";E=C.cloneNode(!1);
@@ -3131,70 +3131,70 @@ mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM],top:[mxConstants.ALIGN_CENTER,
mxConstants.ALIGN_MIDDLE,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE],bottomLeft:[mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_TOP],bottom:[mxConstants.ALIGN_CENTER,mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_TOP],bottomRight:[mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_TOP]};for(E=0;E<oa.length;E++){var O=document.createElement("option");O.setAttribute("value",oa[E]);mxUtils.write(O,
mxResources.get(oa[E]));ia.appendChild(O)}C.appendChild(ia);oa=m.cloneNode(!1);oa.removeAttribute("class");oa.style.marginLeft="0px";oa.style.paddingTop="4px";oa.style.paddingBottom="4px";oa.style.fontWeight="normal";mxUtils.write(oa,mxResources.get("writingDirection"));var X=document.createElement("select");X.style.position="absolute";X.style.borderWidth="1px";X.style.borderStyle="solid";X.style.left="126px";X.style.width="98px";X.style.marginTop="-3px";O=["automatic","leftToRight","rightToLeft"];
g.html&&(O.push("vertical-leftToRight"),O.push("vertical-rightToLeft"));var ba={automatic:null,leftToRight:mxConstants.TEXT_DIRECTION_LTR,rightToLeft:mxConstants.TEXT_DIRECTION_RTL,"vertical-leftToRight":mxConstants.TEXT_DIRECTION_VERTICAL_LR,"vertical-rightToLeft":mxConstants.TEXT_DIRECTION_VERTICAL_RL};for(E=0;E<O.length;E++){var da=document.createElement("option");da.setAttribute("value",O[E]);"vertical-"==O[E].substring(0,9)?mxUtils.write(da,mxResources.get("vertical")+" ("+mxResources.get(O[E].substring(9))+
-")"):mxUtils.write(da,mxResources.get(O[E]));X.appendChild(da)}oa.appendChild(X);d.isEditing()||(a.appendChild(C),mxEvent.addListener(ia,"change",function(q){d.getModel().beginUpdate();try{var A=sa[ia.value];null!=A&&(d.setCellStyles(mxConstants.STYLE_LABEL_POSITION,A[0],g.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_LABEL_POSITION,A[1],g.cells),d.setCellStyles(mxConstants.STYLE_ALIGN,A[2],g.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_ALIGN,A[3],g.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(q)}),
-a.appendChild(oa),mxEvent.addListener(X,"change",function(q){d.setCellStyles(mxConstants.STYLE_TEXT_DIRECTION,ba[X.value],g.cells);mxEvent.consume(q)}));var ca=document.createElement("input");ca.style.position="absolute";ca.style.borderWidth="1px";ca.style.borderStyle="solid";ca.style.textAlign="right";ca.style.marginTop="4px";ca.style.left="161px";ca.style.width="53px";ca.style.height="23px";ca.style.boxSizing="border-box";k.appendChild(ca);C=this.installInputHandler(ca,mxConstants.STYLE_FONTSIZE,
-Menus.prototype.defaultFontSize,1,999," "+Editor.fontSizeUnit,function(q){if(null!=d.getSelectedEditingElement()){ca.value=q+" "+Editor.fontSizeUnit;document.execCommand("fontSize",!1,"1");for(var A=d.cellEditor.textarea.getElementsByTagName("font"),B=0;B<A.length;B++)if("1"==A[B].getAttribute("size")){A[B].removeAttribute("size");A[B].style.fontSize="";var F=mxUtils.getCurrentStyle(A[B]);q!=b(F)?A[B].style.fontSize=q+"px":""==A[B].getAttribute("style")&&A[B].removeAttribute("style")}}},!0);C=this.createStepper(ca,
+")"):mxUtils.write(da,mxResources.get(O[E]));X.appendChild(da)}oa.appendChild(X);d.isEditing()||(a.appendChild(C),mxEvent.addListener(ia,"change",function(p){d.getModel().beginUpdate();try{var A=sa[ia.value];null!=A&&(d.setCellStyles(mxConstants.STYLE_LABEL_POSITION,A[0],g.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_LABEL_POSITION,A[1],g.cells),d.setCellStyles(mxConstants.STYLE_ALIGN,A[2],g.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_ALIGN,A[3],g.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(p)}),
+a.appendChild(oa),mxEvent.addListener(X,"change",function(p){d.setCellStyles(mxConstants.STYLE_TEXT_DIRECTION,ba[X.value],g.cells);mxEvent.consume(p)}));var ca=document.createElement("input");ca.style.position="absolute";ca.style.borderWidth="1px";ca.style.borderStyle="solid";ca.style.textAlign="right";ca.style.marginTop="4px";ca.style.left="161px";ca.style.width="53px";ca.style.height="23px";ca.style.boxSizing="border-box";k.appendChild(ca);C=this.installInputHandler(ca,mxConstants.STYLE_FONTSIZE,
+Menus.prototype.defaultFontSize,1,999," "+Editor.fontSizeUnit,function(p){if(null!=d.getSelectedEditingElement()){ca.value=p+" "+Editor.fontSizeUnit;document.execCommand("fontSize",!1,"1");for(var A=d.cellEditor.textarea.getElementsByTagName("font"),B=0;B<A.length;B++)if("1"==A[B].getAttribute("size")){A[B].removeAttribute("size");A[B].style.fontSize="";var F=mxUtils.getCurrentStyle(A[B]);p!=b(F)?A[B].style.fontSize=p+"px":""==A[B].getAttribute("style")&&A[B].removeAttribute("style")}}},!0);C=this.createStepper(ca,
C,1,10,!0,Menus.prototype.defaultFontSize);C.style.display=ca.style.display;C.style.marginTop="4px";C.style.left="214px";k.appendChild(C);k=u.getElementsByTagName("div")[0];k.style.cssFloat="right";var H=null,ea=d.shapeBackgroundColor,ra=null,qa=d.shapeForegroundColor;k=mxUtils.getLightDarkColor(d.shapeBackgroundColor);var Pa="light-dark("+mxUtils.hex2rgb(k.light)+", "+mxUtils.hex2rgb(k.dark)+")",ma=d.cellEditor.isContentEditing()?this.createColorOption(mxResources.get("backgroundColor"),function(){return ea==
-d.shapeBackgroundColor||ea==Pa?"default":ea},function(q){null!=d.cellEditor.textarea&&("default"==q&&(q=d.shapeBackgroundColor),Graph.setTextColor(d.cellEditor.textarea,q,!1),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[q],"cells",g.cells)))},"default",{install:function(q){H=q},destroy:function(){H=null}},null,null,d.shapeBackgroundColor):this.createCellColorOption(mxResources.get("backgroundColor"),mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,
-"default",null,function(q){d.updateLabelElements(g.cells,function(A){A.style.backgroundColor=null})},d.shapeBackgroundColor);ma.style.fontWeight="bold";var Ba=this.createCellColorOption(mxResources.get("borderColor"),mxConstants.STYLE_LABEL_BORDERCOLOR,"default",null,null,d.shapeForegroundColor);Ba.style.fontWeight="bold";k=1<=g.vertices.length?d.stylesheet.getDefaultVertexStyle():d.stylesheet.getDefaultEdgeStyle();k=d.cellEditor.isContentEditing()?this.createColorOption(mxResources.get("fontColor"),
-function(){return qa},function(q){null!=d.cellEditor.textarea&&("default"==q&&(q=mxConstants.NONE),Graph.setTextColor(d.cellEditor.textarea,q,!0),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTCOLOR],"values",[q],"cells",g.cells)))},"default",{install:function(q){ra=q},destroy:function(){ra=null}},null,!0,null!=k[mxConstants.STYLE_FONTCOLOR]&&"default"!=k[mxConstants.STYLE_FONTCOLOR]?k[mxConstants.STYLE_FONTCOLOR]:d.shapeForegroundColor):this.createCellColorOption(mxResources.get("fontColor"),
-mxConstants.STYLE_FONTCOLOR,"default",function(q){ma.style.display=q==mxConstants.NONE?"none":"";Ba.style.display=ma.style.display},function(q){q==mxConstants.NONE?d.setCellStyles(mxConstants.STYLE_NOLABEL,"1",g.cells):d.setCellStyles(mxConstants.STYLE_NOLABEL,null,g.cells);d.setCellStyles(mxConstants.STYLE_FONTCOLOR,q,g.cells);d.updateLabelElements(g.cells,function(A){A.removeAttribute("color");A.style.color=null})},d.shapeForegroundColor);k.style.fontWeight="bold";p.appendChild(k);p.appendChild(ma);
-k=this.createCellOption(mxResources.get("shadow"),mxConstants.STYLE_TEXT_SHADOW,0);k.style.width="100%";k.style.fontWeight="bold";Editor.enableShadowOption||(k.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(k,60));d.cellEditor.isContentEditing()||(p.appendChild(Ba),p.appendChild(k));a.appendChild(p);p=this.createPanel();p.style.paddingTop="2px";p.style.paddingBottom="4px";k=d.filterSelectionCells(mxUtils.bind(this,function(q){var A=d.view.getState(q);return null==
-A||d.getModel().isEdge(q)||d.isAutoSizeState(A)}));C=this.createCellOption(mxResources.get("wordWrap"),mxConstants.STYLE_WHITE_SPACE,null,"wrap","null",null,null,!0,k);C.style.fontWeight="bold";0<k.length&&p.appendChild(C);k=this.createCellOption(mxResources.get("formattedText"),"html",0,null,null,null,h.actions.get("formattedText"));k.style.fontWeight="bold";p.appendChild(k);k=this.createPanel();k.style.paddingTop="10px";k.style.paddingBottom="28px";k.style.fontWeight="normal";C=document.createElement("div");
+d.shapeBackgroundColor||ea==Pa?"default":ea},function(p){null!=d.cellEditor.textarea&&("default"==p&&(p=d.shapeBackgroundColor),Graph.setTextColor(d.cellEditor.textarea,p,!1),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[p],"cells",g.cells)))},"default",{install:function(p){H=p},destroy:function(){H=null}},null,null,d.shapeBackgroundColor):this.createCellColorOption(mxResources.get("backgroundColor"),mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,
+"default",null,function(p){d.updateLabelElements(g.cells,function(A){A.style.backgroundColor=null})},d.shapeBackgroundColor);ma.style.fontWeight="bold";var Ba=this.createCellColorOption(mxResources.get("borderColor"),mxConstants.STYLE_LABEL_BORDERCOLOR,"default",null,null,d.shapeForegroundColor);Ba.style.fontWeight="bold";k=1<=g.vertices.length?d.stylesheet.getDefaultVertexStyle():d.stylesheet.getDefaultEdgeStyle();k=d.cellEditor.isContentEditing()?this.createColorOption(mxResources.get("fontColor"),
+function(){return qa},function(p){null!=d.cellEditor.textarea&&("default"==p&&(p=mxConstants.NONE),Graph.setTextColor(d.cellEditor.textarea,p,!0),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTCOLOR],"values",[p],"cells",g.cells)))},"default",{install:function(p){ra=p},destroy:function(){ra=null}},null,!0,null!=k[mxConstants.STYLE_FONTCOLOR]&&"default"!=k[mxConstants.STYLE_FONTCOLOR]?k[mxConstants.STYLE_FONTCOLOR]:d.shapeForegroundColor):this.createCellColorOption(mxResources.get("fontColor"),
+mxConstants.STYLE_FONTCOLOR,"default",function(p){ma.style.display=p==mxConstants.NONE?"none":"";Ba.style.display=ma.style.display},function(p){p==mxConstants.NONE?d.setCellStyles(mxConstants.STYLE_NOLABEL,"1",g.cells):d.setCellStyles(mxConstants.STYLE_NOLABEL,null,g.cells);d.setCellStyles(mxConstants.STYLE_FONTCOLOR,p,g.cells);d.updateLabelElements(g.cells,function(A){A.removeAttribute("color");A.style.color=null})},d.shapeForegroundColor);k.style.fontWeight="bold";q.appendChild(k);q.appendChild(ma);
+k=this.createCellOption(mxResources.get("shadow"),mxConstants.STYLE_TEXT_SHADOW,0);k.style.width="100%";k.style.fontWeight="bold";Editor.enableShadowOption||(k.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(k,60));d.cellEditor.isContentEditing()||(q.appendChild(Ba),q.appendChild(k));a.appendChild(q);q=this.createPanel();q.style.paddingTop="2px";q.style.paddingBottom="4px";k=d.filterSelectionCells(mxUtils.bind(this,function(p){var A=d.view.getState(p);return null==
+A||d.getModel().isEdge(p)||d.isAutoSizeState(A)}));C=this.createCellOption(mxResources.get("wordWrap"),mxConstants.STYLE_WHITE_SPACE,null,"wrap","null",null,null,!0,k);C.style.fontWeight="bold";0<k.length&&q.appendChild(C);k=this.createCellOption(mxResources.get("formattedText"),"html",0,null,null,null,h.actions.get("formattedText"));k.style.fontWeight="bold";q.appendChild(k);k=this.createPanel();k.style.paddingTop="10px";k.style.paddingBottom="28px";k.style.fontWeight="normal";C=document.createElement("div");
C.style.position="absolute";C.style.width="70px";C.style.marginTop="0px";C.style.fontWeight="bold";mxUtils.write(C,mxResources.get("spacing"));k.appendChild(C);var Ca=this.addUnitInput(k,this.getUnit(),87,52,function(){fb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ja=this.addUnitInput(k,this.getUnit(),16,52,function(){cb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(k);this.addLabel(k,mxResources.get("top"),87,64);this.addLabel(k,mxResources.get("global"),
16,64);mxUtils.br(k);mxUtils.br(k);var Ia=this.addUnitInput(k,this.getUnit(),158,52,function(){ab.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Da=this.addUnitInput(k,this.getUnit(),87,52,function(){gb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ga=this.addUnitInput(k,this.getUnit(),16,52,function(){pb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(k);this.addLabel(k,mxResources.get("left"),158,64);this.addLabel(k,
-mxResources.get("bottom"),87,64);this.addLabel(k,mxResources.get("right"),16,64);if(d.cellEditor.isContentEditing()){var ta=null,La=null;a.appendChild(this.createRelativeOption(mxResources.get("lineheight"),null,null,function(q){var A=""==q.value?120:parseInt(q.value);A=Math.max(0,isNaN(A)?120:A);if(window.getSelection){null!=ta&&(d.cellEditor.restoreSelection(ta),ta=null);var B=d.getSelectedEditingElement();if(null!=d.cellEditor.textarea&&B==d.cellEditor.textarea){var F=window.getSelection();if(F.getRangeAt&&
-0<F.rangeCount){var M=F.getRangeAt(0);B=document.createElement("div");B.appendChild(M.extractContents());d.cellEditor.textarea.innerHTML="";d.cellEditor.textarea.appendChild(B);F.removeAllRanges();M=new Range;M.selectNodeContents(B);F.addRange(M)}}if(null!=B)for(B!=d.cellEditor.textarea&&e(B,A),B=B.getElementsByTagName("*"),F=window.getSelection(),M=0;M<B.length;M++)F.containsNode(B[M],!0)&&e(B[M],A)}q.value=A+" %"},function(q){La=q;mxEvent.addGestureListeners(q,mxUtils.bind(this,function(A){document.activeElement==
-d.cellEditor.textarea&&(ta=d.cellEditor.saveSelection())}));mxEvent.addListener(q,"touchstart",function(){document.activeElement==d.cellEditor.textarea&&(ta=d.cellEditor.saveSelection())});q.value="120 %"}));p=m.cloneNode(!1);p.style.paddingLeft="0px";k=this.editorUi.toolbar.addItems(["link","image"],p,!0,[Editor.linkImage,Editor.imageImage]);C=[this.editorUi.toolbar.addButton(Editor.horizontalRuleImage,mxResources.get("insertHorizontalRule"),function(){document.execCommand("inserthorizontalrule",
-!1)},p),this.editorUi.toolbar.addMenuFunctionInContainer(p,Editor.tableImage,mxResources.get("table"),!1,mxUtils.bind(this,function(q){this.editorUi.menus.addInsertTableItem(q,null,null,!1)}))];this.styleButtons(k);this.styleButtons(C);k=this.createPanel();k.style.height="57px";k.style.paddingTop="10px";k.style.paddingBottom="8px";k.appendChild(this.createTitle(mxResources.get("insert")));k.appendChild(p);a.appendChild(k);k=m.cloneNode(!1);k.style.height="33px";k.style.paddingLeft="0px";C=[this.editorUi.toolbar.addButton(Editor.addColumnLeftImage,
-mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{null!=T&&d.insertColumn(T,null!=K?K.cellIndex:0)}catch(q){this.editorUi.handleError(q)}}),k),this.editorUi.toolbar.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{null!=T&&d.insertColumn(T,null!=K?K.cellIndex+1:-1)}catch(q){this.editorUi.handleError(q)}}),k),this.editorUi.toolbar.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{null!=
-T&&null!=K&&d.deleteColumn(T,K.cellIndex)}catch(q){this.editorUi.handleError(q)}}),k),this.editorUi.toolbar.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{null!=T&&null!=V&&d.insertRow(T,V.sectionRowIndex)}catch(q){this.editorUi.handleError(q)}}),k),this.editorUi.toolbar.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{null!=T&&null!=V&&d.insertRow(T,V.sectionRowIndex+1)}catch(q){this.editorUi.handleError(q)}}),
-k),this.editorUi.toolbar.addButton(Editor.removeRowImage,mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{null!=T&&null!=V&&d.deleteRow(T,V.sectionRowIndex)}catch(q){this.editorUi.handleError(q)}}),k)];this.styleButtons(C);C[2].style.marginRight="10px";p=this.createPanel();p.style.paddingTop="10px";p.style.paddingBottom="10px";p.appendChild(this.createTitle(mxResources.get("table")));p.appendChild(k);m=m.cloneNode(!1);m.style.height="33px";m.style.padding="0";C=[this.editorUi.toolbar.addButton(Editor.strokeColorImage,
-mxResources.get("borderColor"),mxUtils.bind(this,function(q){if(null!=T){var A=T.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,M,R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(M).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});this.editorUi.pickColor(A,function(B){var F=null==K||null!=q&&mxEvent.isShiftDown(q)?T:K;d.processElements(F,function(M){M.style.border=null});null==B||B==mxConstants.NONE?(F.removeAttribute("border"),
-F.style.border="",F.style.borderCollapse=""):(F.setAttribute("border","1"),F.style.border="1px solid "+B,F.style.borderCollapse="collapse")})}}),m),this.editorUi.toolbar.addButton(Editor.fillColorImage,mxResources.get("backgroundColor"),mxUtils.bind(this,function(q){if(null!=T){var A=T.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,M,R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(M).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});
-this.editorUi.pickColor(A,function(B){var F=null==K||null!=q&&mxEvent.isShiftDown(q)?T:K;d.processElements(F,function(M){M.style.backgroundColor=null});F.style.backgroundColor=null==B||B==mxConstants.NONE?"":B})}}),m),this.editorUi.toolbar.addButton(Editor.spacingImage,mxResources.get("spacing"),function(){if(null!=T){var q=T.getAttribute("cellPadding")||0;q=new FilenameDialog(h,q,mxResources.get("apply"),mxUtils.bind(this,function(A){null!=A&&0<A.length?T.setAttribute("cellPadding",A):T.removeAttribute("cellPadding")}),
-mxResources.get("spacing"));h.showDialog(q.container,300,80,!0,!0);q.init()}},m),this.editorUi.toolbar.addButton(Editor.alignLeftImage,mxResources.get("left"),function(){null!=T&&T.setAttribute("align","left")},m),this.editorUi.toolbar.addButton(Editor.alignCenterImage,mxResources.get("center"),function(){null!=T&&T.setAttribute("align","center")},m),this.editorUi.toolbar.addButton(Editor.alignRightImage,mxResources.get("right"),function(){null!=T&&T.setAttribute("align","right")},m)];this.styleButtons(C);
-C[2].style.marginRight="10px";p.appendChild(m);a.appendChild(p);var Xa=p}else a.appendChild(p),a.appendChild(this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_TEXT_OPACITY)),a.appendChild(k);for(E=0;3>E;E++)(function(q){mxEvent.addListener(w[q],"click",function(){f(w[q],""==w[q].style.backgroundImage)})})(E);var Ya=mxUtils.bind(this,function(q,A,B){g=h.getSelectionState();q=mxUtils.getValue(g.style,mxConstants.STYLE_FONTSTYLE,0);f(w[0],(q&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD);
-f(w[1],(q&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC);f(w[2],(q&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE);u.firstChild.nodeValue=mxUtils.getValue(g.style,mxConstants.STYLE_FONTFAMILY,Menus.prototype.defaultFont);f(z,"0"==mxUtils.getValue(g.style,mxConstants.STYLE_HORIZONTAL,"1"));if(B||document.activeElement!=ca)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize)),ca.value=isNaN(q)?"":q+" "+Editor.fontSizeUnit;q=mxUtils.getValue(g.style,
-mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);f(D,q==mxConstants.ALIGN_LEFT);f(G,q==mxConstants.ALIGN_CENTER);f(J,q==mxConstants.ALIGN_RIGHT);q=mxUtils.getValue(g.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);f(Q,q==mxConstants.ALIGN_TOP);f(N,q==mxConstants.ALIGN_MIDDLE);f(U,q==mxConstants.ALIGN_BOTTOM);q=mxUtils.getValue(g.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);A=mxUtils.getValue(g.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);
-ia.value=q==mxConstants.ALIGN_LEFT&&A==mxConstants.ALIGN_TOP?"topLeft":q==mxConstants.ALIGN_CENTER&&A==mxConstants.ALIGN_TOP?"top":q==mxConstants.ALIGN_RIGHT&&A==mxConstants.ALIGN_TOP?"topRight":q==mxConstants.ALIGN_LEFT&&A==mxConstants.ALIGN_BOTTOM?"bottomLeft":q==mxConstants.ALIGN_CENTER&&A==mxConstants.ALIGN_BOTTOM?"bottom":q==mxConstants.ALIGN_RIGHT&&A==mxConstants.ALIGN_BOTTOM?"bottomRight":q==mxConstants.ALIGN_LEFT?"left":q==mxConstants.ALIGN_RIGHT?"right":"center";q=mxUtils.getValue(g.style,
-mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);q==mxConstants.TEXT_DIRECTION_RTL?X.value="rightToLeft":q==mxConstants.TEXT_DIRECTION_LTR?X.value="leftToRight":q!=mxConstants.TEXT_DIRECTION_AUTO&&g.html?q==mxConstants.TEXT_DIRECTION_VERTICAL_LR?X.value="vertical-leftToRight":q==mxConstants.TEXT_DIRECTION_VERTICAL_RL&&(X.value="vertical-rightToLeft"):X.value="automatic";if(B||document.activeElement!=Ja)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING,2)),Ja.value=
-isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Ca)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_TOP,0)),Ca.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Ga)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_RIGHT,0)),Ga.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Da)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_BOTTOM,0)),Da.value=isNaN(q)?"":this.inUnit(q)+
-" "+this.getUnit();if(B||document.activeElement!=Ia)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_LEFT,0)),Ia.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit()});var cb=this.installInputHandler(Ja,mxConstants.STYLE_SPACING,2,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var fb=this.installInputHandler(Ca,mxConstants.STYLE_SPACING_TOP,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var pb=this.installInputHandler(Ga,mxConstants.STYLE_SPACING_RIGHT,0,-999,999,this.getUnit(" "),
+mxResources.get("bottom"),87,64);this.addLabel(k,mxResources.get("right"),16,64);if(d.cellEditor.isContentEditing()){var ta=null,La=null;a.appendChild(this.createRelativeOption(mxResources.get("lineheight"),null,null,function(p){var A=""==p.value?120:parseInt(p.value);A=Math.max(0,isNaN(A)?120:A);if(window.getSelection){null!=ta&&(d.cellEditor.restoreSelection(ta),ta=null);var B=d.getSelectedEditingElement();if(null!=d.cellEditor.textarea&&B==d.cellEditor.textarea){var F=window.getSelection();if(F.getRangeAt&&
+0<F.rangeCount){var M=F.getRangeAt(0);B=document.createElement("div");B.appendChild(M.extractContents());d.cellEditor.textarea.innerHTML="";d.cellEditor.textarea.appendChild(B);F.removeAllRanges();M=new Range;M.selectNodeContents(B);F.addRange(M)}}if(null!=B)for(B!=d.cellEditor.textarea&&e(B,A),B=B.getElementsByTagName("*"),F=window.getSelection(),M=0;M<B.length;M++)F.containsNode(B[M],!0)&&e(B[M],A)}p.value=A+" %"},function(p){La=p;mxEvent.addGestureListeners(p,mxUtils.bind(this,function(A){document.activeElement==
+d.cellEditor.textarea&&(ta=d.cellEditor.saveSelection())}));mxEvent.addListener(p,"touchstart",function(){document.activeElement==d.cellEditor.textarea&&(ta=d.cellEditor.saveSelection())});p.value="120 %"}));q=m.cloneNode(!1);q.style.paddingLeft="0px";k=this.editorUi.toolbar.addItems(["link","image"],q,!0,[Editor.linkImage,Editor.imageImage]);C=[this.editorUi.toolbar.addButton(Editor.horizontalRuleImage,mxResources.get("insertHorizontalRule"),function(){document.execCommand("inserthorizontalrule",
+!1)},q),this.editorUi.toolbar.addMenuFunctionInContainer(q,Editor.tableImage,mxResources.get("table"),!1,mxUtils.bind(this,function(p){this.editorUi.menus.addInsertTableItem(p,null,null,!1)}))];this.styleButtons(k);this.styleButtons(C);k=this.createPanel();k.style.height="57px";k.style.paddingTop="10px";k.style.paddingBottom="8px";k.appendChild(this.createTitle(mxResources.get("insert")));k.appendChild(q);a.appendChild(k);k=m.cloneNode(!1);k.style.height="33px";k.style.paddingLeft="0px";C=[this.editorUi.toolbar.addButton(Editor.addColumnLeftImage,
+mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{null!=T&&d.insertColumn(T,null!=K?K.cellIndex:0)}catch(p){this.editorUi.handleError(p)}}),k),this.editorUi.toolbar.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{null!=T&&d.insertColumn(T,null!=K?K.cellIndex+1:-1)}catch(p){this.editorUi.handleError(p)}}),k),this.editorUi.toolbar.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{null!=
+T&&null!=K&&d.deleteColumn(T,K.cellIndex)}catch(p){this.editorUi.handleError(p)}}),k),this.editorUi.toolbar.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{null!=T&&null!=V&&d.insertRow(T,V.sectionRowIndex)}catch(p){this.editorUi.handleError(p)}}),k),this.editorUi.toolbar.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{null!=T&&null!=V&&d.insertRow(T,V.sectionRowIndex+1)}catch(p){this.editorUi.handleError(p)}}),
+k),this.editorUi.toolbar.addButton(Editor.removeRowImage,mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{null!=T&&null!=V&&d.deleteRow(T,V.sectionRowIndex)}catch(p){this.editorUi.handleError(p)}}),k)];this.styleButtons(C);C[2].style.marginRight="10px";q=this.createPanel();q.style.paddingTop="10px";q.style.paddingBottom="10px";q.appendChild(this.createTitle(mxResources.get("table")));q.appendChild(k);m=m.cloneNode(!1);m.style.height="33px";m.style.padding="0";C=[this.editorUi.toolbar.addButton(Editor.strokeColorImage,
+mxResources.get("borderColor"),mxUtils.bind(this,function(p){if(null!=T){var A=T.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,M,R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(M).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});this.editorUi.pickColor(A,function(B){var F=null==K||null!=p&&mxEvent.isShiftDown(p)?T:K;d.processElements(F,function(M){M.style.border=null});null==B||B==mxConstants.NONE?(F.removeAttribute("border"),
+F.style.border="",F.style.borderCollapse=""):(F.setAttribute("border","1"),F.style.border="1px solid "+B,F.style.borderCollapse="collapse")})}}),m),this.editorUi.toolbar.addButton(Editor.fillColorImage,mxResources.get("backgroundColor"),mxUtils.bind(this,function(p){if(null!=T){var A=T.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,M,R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(M).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});
+this.editorUi.pickColor(A,function(B){var F=null==K||null!=p&&mxEvent.isShiftDown(p)?T:K;d.processElements(F,function(M){M.style.backgroundColor=null});F.style.backgroundColor=null==B||B==mxConstants.NONE?"":B})}}),m),this.editorUi.toolbar.addButton(Editor.spacingImage,mxResources.get("spacing"),function(){if(null!=T){var p=T.getAttribute("cellPadding")||0;p=new FilenameDialog(h,p,mxResources.get("apply"),mxUtils.bind(this,function(A){null!=A&&0<A.length?T.setAttribute("cellPadding",A):T.removeAttribute("cellPadding")}),
+mxResources.get("spacing"));h.showDialog(p.container,300,80,!0,!0);p.init()}},m),this.editorUi.toolbar.addButton(Editor.alignLeftImage,mxResources.get("left"),function(){null!=T&&T.setAttribute("align","left")},m),this.editorUi.toolbar.addButton(Editor.alignCenterImage,mxResources.get("center"),function(){null!=T&&T.setAttribute("align","center")},m),this.editorUi.toolbar.addButton(Editor.alignRightImage,mxResources.get("right"),function(){null!=T&&T.setAttribute("align","right")},m)];this.styleButtons(C);
+C[2].style.marginRight="10px";q.appendChild(m);a.appendChild(q);var Xa=q}else a.appendChild(q),a.appendChild(this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_TEXT_OPACITY)),a.appendChild(k);for(E=0;3>E;E++)(function(p){mxEvent.addListener(w[p],"click",function(){f(w[p],""==w[p].style.backgroundImage)})})(E);var Ya=mxUtils.bind(this,function(p,A,B){g=h.getSelectionState();p=mxUtils.getValue(g.style,mxConstants.STYLE_FONTSTYLE,0);f(w[0],(p&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD);
+f(w[1],(p&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC);f(w[2],(p&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE);u.firstChild.nodeValue=mxUtils.getValue(g.style,mxConstants.STYLE_FONTFAMILY,Menus.prototype.defaultFont);f(z,"0"==mxUtils.getValue(g.style,mxConstants.STYLE_HORIZONTAL,"1"));if(B||document.activeElement!=ca)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize)),ca.value=isNaN(p)?"":p+" "+Editor.fontSizeUnit;p=mxUtils.getValue(g.style,
+mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);f(D,p==mxConstants.ALIGN_LEFT);f(G,p==mxConstants.ALIGN_CENTER);f(J,p==mxConstants.ALIGN_RIGHT);p=mxUtils.getValue(g.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);f(Q,p==mxConstants.ALIGN_TOP);f(N,p==mxConstants.ALIGN_MIDDLE);f(U,p==mxConstants.ALIGN_BOTTOM);p=mxUtils.getValue(g.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);A=mxUtils.getValue(g.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);
+ia.value=p==mxConstants.ALIGN_LEFT&&A==mxConstants.ALIGN_TOP?"topLeft":p==mxConstants.ALIGN_CENTER&&A==mxConstants.ALIGN_TOP?"top":p==mxConstants.ALIGN_RIGHT&&A==mxConstants.ALIGN_TOP?"topRight":p==mxConstants.ALIGN_LEFT&&A==mxConstants.ALIGN_BOTTOM?"bottomLeft":p==mxConstants.ALIGN_CENTER&&A==mxConstants.ALIGN_BOTTOM?"bottom":p==mxConstants.ALIGN_RIGHT&&A==mxConstants.ALIGN_BOTTOM?"bottomRight":p==mxConstants.ALIGN_LEFT?"left":p==mxConstants.ALIGN_RIGHT?"right":"center";p=mxUtils.getValue(g.style,
+mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);p==mxConstants.TEXT_DIRECTION_RTL?X.value="rightToLeft":p==mxConstants.TEXT_DIRECTION_LTR?X.value="leftToRight":p!=mxConstants.TEXT_DIRECTION_AUTO&&g.html?p==mxConstants.TEXT_DIRECTION_VERTICAL_LR?X.value="vertical-leftToRight":p==mxConstants.TEXT_DIRECTION_VERTICAL_RL&&(X.value="vertical-rightToLeft"):X.value="automatic";if(B||document.activeElement!=Ja)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING,2)),Ja.value=
+isNaN(p)?"":this.inUnit(p)+" "+this.getUnit();if(B||document.activeElement!=Ca)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_TOP,0)),Ca.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit();if(B||document.activeElement!=Ga)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_RIGHT,0)),Ga.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit();if(B||document.activeElement!=Da)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_BOTTOM,0)),Da.value=isNaN(p)?"":this.inUnit(p)+
+" "+this.getUnit();if(B||document.activeElement!=Ia)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_LEFT,0)),Ia.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit()});var cb=this.installInputHandler(Ja,mxConstants.STYLE_SPACING,2,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var fb=this.installInputHandler(Ca,mxConstants.STYLE_SPACING_TOP,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var pb=this.installInputHandler(Ga,mxConstants.STYLE_SPACING_RIGHT,0,-999,999,this.getUnit(" "),
null,this.isFloatUnit(),!0);var gb=this.installInputHandler(Da,mxConstants.STYLE_SPACING_BOTTOM,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ab=this.installInputHandler(Ia,mxConstants.STYLE_SPACING_LEFT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);this.addKeyHandler(ca,Ya);this.addKeyHandler(Ja,Ya);this.addKeyHandler(Ca,Ya);this.addKeyHandler(Ga,Ya);this.addKeyHandler(Da,Ya);this.addKeyHandler(Ia,Ya);d.getModel().addListener(mxEvent.CHANGE,Ya);this.listeners.push({destroy:function(){d.getModel().removeListener(Ya)}});
-Ya();if(d.cellEditor.isContentEditing()){var ib=null,eb=!1;m=mxUtils.bind(this,function(){eb||(eb=!0,window.setTimeout(mxUtils.bind(this,function(){var q=d.getSelectedEditingElement();if(null!=q&&null!=d.cellEditor.textarea){var A=function(ya,Ha){if(null!=ya&&null!=Ha){if(ya==Ha)return!0;if(ya.length>Ha.length+1)return ya.substring(ya.length-Ha.length-1,ya.length)=="-"+Ha}return!1},B=function(ya){if(null!=d.getParentByName(q,ya,d.cellEditor.textarea))return!0;for(var Ha=q;null!=Ha&&1==Ha.childNodes.length;)if(Ha=
-Ha.childNodes[0],Ha.nodeName==ya)return!0;return!1},F=function(ya){for(;null!=ya&&ya!=d.cellEditor.textarea;){if("block"==mxUtils.getCurrentStyle(ya).display)return ya;ya=ya.parentNode}return null},M=mxUtils.getCurrentStyle(q),R=q==d.cellEditor.textarea||""==q.style.lineHeight?null:q.style.lineHeight,W=q==d.cellEditor.textarea||""==q.style.fontSize?null:b(M);if(window.getSelection)for(var ha=q.getElementsByTagName("*"),fa=window.getSelection(),ja=0;ja<ha.length&&(!fa.containsNode(ha[ja],!0)||(null==
-W&&""!=ha[ja].style.fontSize&&(W=parseFloat(ha[ja].style.fontSize)),null==R&&""!=ha[ja].style.lineHeight&&(R=ha[ja].style.lineHeight),null==W||null==R));ja++);null==W&&(W=b(M));if(null==R)for(ha=q;null!=ha&&ha!=d.cellEditor.textarea.parentNode;){if(null!=ha.style&&""!=ha.style.lineHeight){R=ha.style.lineHeight;break}ha=ha.parentNode}if(null!=M){f(w[0],"bold"==M.fontWeight||400<M.fontWeight||B("B")||B("STRONG"));f(w[1],"italic"==M.fontStyle||B("I")||B("EM"));f(w[2],"underline"==M.textDecorationLine||
-B("U"));f(L,"line-through"==M.textDecorationLine||B("STRIKE"));f(P,B("SUP"));f(Y,B("SUB"));var va=F(q);if(null!=va){B=function(ya,Ha){Na.push({name:ya,dispName:Ha,type:"string",getValue:function(){return Ma[ya]},valueChanged:function(wa,ua){var Va=va.style,Qa=wa;parseInt(Qa)==Qa&&(Qa+="px",null!=ua&&(ua.value=Qa));Va[ya]=Qa;""==wa&&null!=ua&&(ua.value=Ma[ya])}})};var Ma=mxUtils.getCurrentStyle(va),Na=[];B("paddingTop","Padding Top");B("paddingRight","Padding Right");B("paddingLeft","Padding Left");
+Ya();if(d.cellEditor.isContentEditing()){var ib=null,eb=!1;m=mxUtils.bind(this,function(){eb||(eb=!0,window.setTimeout(mxUtils.bind(this,function(){var p=d.getSelectedEditingElement();if(null!=p&&null!=d.cellEditor.textarea){var A=function(ya,Ha){if(null!=ya&&null!=Ha){if(ya==Ha)return!0;if(ya.length>Ha.length+1)return ya.substring(ya.length-Ha.length-1,ya.length)=="-"+Ha}return!1},B=function(ya){if(null!=d.getParentByName(p,ya,d.cellEditor.textarea))return!0;for(var Ha=p;null!=Ha&&1==Ha.childNodes.length;)if(Ha=
+Ha.childNodes[0],Ha.nodeName==ya)return!0;return!1},F=function(ya){for(;null!=ya&&ya!=d.cellEditor.textarea;){if("block"==mxUtils.getCurrentStyle(ya).display)return ya;ya=ya.parentNode}return null},M=mxUtils.getCurrentStyle(p),R=p==d.cellEditor.textarea||""==p.style.lineHeight?null:p.style.lineHeight,W=p==d.cellEditor.textarea||""==p.style.fontSize?null:b(M);if(window.getSelection)for(var ha=p.getElementsByTagName("*"),fa=window.getSelection(),ja=0;ja<ha.length&&(!fa.containsNode(ha[ja],!0)||(null==
+W&&""!=ha[ja].style.fontSize&&(W=parseFloat(ha[ja].style.fontSize)),null==R&&""!=ha[ja].style.lineHeight&&(R=ha[ja].style.lineHeight),null==W||null==R));ja++);null==W&&(W=b(M));if(null==R)for(ha=p;null!=ha&&ha!=d.cellEditor.textarea.parentNode;){if(null!=ha.style&&""!=ha.style.lineHeight){R=ha.style.lineHeight;break}ha=ha.parentNode}if(null!=M){f(w[0],"bold"==M.fontWeight||400<M.fontWeight||B("B")||B("STRONG"));f(w[1],"italic"==M.fontStyle||B("I")||B("EM"));f(w[2],"underline"==M.textDecorationLine||
+B("U"));f(L,"line-through"==M.textDecorationLine||B("STRIKE"));f(P,B("SUP"));f(Y,B("SUB"));var va=F(p);if(null!=va){B=function(ya,Ha){Na.push({name:ya,dispName:Ha,type:"string",getValue:function(){return Ma[ya]},valueChanged:function(wa,ua){var Va=va.style,Qa=wa;parseInt(Qa)==Qa&&(Qa+="px",null!=ua&&(ua.value=Qa));Va[ya]=Qa;""==wa&&null!=ua&&(ua.value=Ma[ya])}})};var Ma=mxUtils.getCurrentStyle(va),Na=[];B("paddingTop","Padding Top");B("paddingRight","Padding Right");B("paddingLeft","Padding Left");
B("paddingBottom","Padding Bottom");B("marginTop","Margin Top");B("marginRight","Margin Right");B("marginLeft","Margin Left");B("marginBottom","Margin Bottom");B=this.createPanel();this.addProperties(B,Na,g,!0);null!=ib?ib.parentNode.replaceChild(B,ib):a.appendChild(B);ib=B}d.cellEditor.isTableSelected()?(f(Z,A(M.textAlign,"justify")),f(D,A(M.textAlign,"left")),f(G,A(M.textAlign,"center")),f(J,A(M.textAlign,"right"))):(B=d.cellEditor.align||mxUtils.getValue(g.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),
-A(M.textAlign,"justify")?(f(Z,A(M.textAlign,"justify")),f(D,!1),f(G,!1),f(J,!1)):(f(Z,!1),f(D,B==mxConstants.ALIGN_LEFT),f(G,B==mxConstants.ALIGN_CENTER),f(J,B==mxConstants.ALIGN_RIGHT)));T=d.getParentByName(q,"TABLE",d.cellEditor.textarea);V=null==T?null:d.getParentByName(q,"TR",T);K=null==T?null:d.getParentByNames(q,["TD","TH"],T);Xa.style.display=null!=T?"":"none";document.activeElement!=ca&&(ca.value=isNaN(W)?"":W+" "+Editor.fontSizeUnit,"string"===typeof R&&0<R.indexOf("%")?La.value=R.replace("%",
-" %"):(A=parseFloat(R),isNaN(A)?La.value="120 %":La.value=Math.round(100*A)+" %"));null!=ra&&(qa=d.getTextColor(q,!0),ra(qa,!0));null!=H&&(ea=d.getTextColor(q,!1),H(ea,!0));null!=u.firstChild&&(u.firstChild.nodeValue=mxUtils.getCssFontFamily(M.fontFamily))}}eb=!1}),0))});(mxClient.IS_FF||mxClient.IS_EDGE||mxClient.IS_IE||mxClient.IS_IE11)&&mxEvent.addListener(d.cellEditor.textarea,"DOMSubtreeModified",m);mxEvent.addListener(d.cellEditor.textarea,"input",m);mxEvent.addListener(d.cellEditor.textarea,
+A(M.textAlign,"justify")?(f(Z,A(M.textAlign,"justify")),f(D,!1),f(G,!1),f(J,!1)):(f(Z,!1),f(D,B==mxConstants.ALIGN_LEFT),f(G,B==mxConstants.ALIGN_CENTER),f(J,B==mxConstants.ALIGN_RIGHT)));T=d.getParentByName(p,"TABLE",d.cellEditor.textarea);V=null==T?null:d.getParentByName(p,"TR",T);K=null==T?null:d.getParentByNames(p,["TD","TH"],T);Xa.style.display=null!=T?"":"none";document.activeElement!=ca&&(ca.value=isNaN(W)?"":W+" "+Editor.fontSizeUnit,"string"===typeof R&&0<R.indexOf("%")?La.value=R.replace("%",
+" %"):(A=parseFloat(R),isNaN(A)?La.value="120 %":La.value=Math.round(100*A)+" %"));null!=ra&&(qa=d.getTextColor(p,!0),ra(qa,!0));null!=H&&(ea=d.getTextColor(p,!1),H(ea,!0));null!=u.firstChild&&(u.firstChild.nodeValue=mxUtils.getCssFontFamily(M.fontFamily))}}eb=!1}),0))});(mxClient.IS_FF||mxClient.IS_EDGE||mxClient.IS_IE||mxClient.IS_IE11)&&mxEvent.addListener(d.cellEditor.textarea,"DOMSubtreeModified",m);mxEvent.addListener(d.cellEditor.textarea,"input",m);mxEvent.addListener(d.cellEditor.textarea,
"touchend",m);mxEvent.addListener(d.cellEditor.textarea,"mouseup",m);mxEvent.addListener(d.cellEditor.textarea,"keyup",m);this.listeners.push({destroy:function(){}});m()}return a};StyleFormatPanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(StyleFormatPanel,BaseFormatPanel);
StyleFormatPanel.prototype.init=function(){var a=this.editorUi.getSelectionState();if(!a.containsLabel&&0<a.cells.length){a.containsImage&&1==a.vertices.length&&"image"==a.style.shape&&null!=a.style.image&&"data:image/svg+xml;"==String(a.style.image).substring(0,19)&&this.container.appendChild(this.addSvgStyles(this.createPanel()));a.fill&&this.container.appendChild(this.addFill(this.createPanel()));this.container.appendChild(this.addStroke(this.createPanel()));this.container.appendChild(this.addLineJumps(this.createPanel()));
var b=this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_OPACITY);b.style.paddingTop="8px";b.style.paddingBottom="10px";this.container.appendChild(b);this.container.appendChild(this.addEffects(this.createPanel()))}b=this.createPanel();b.style.paddingTop="8px";1==a.cells.length&&(this.addEditOps(b),null!=b.firstChild&&mxUtils.br(b));1<=a.cells.length&&this.addStyleOps(b);null!=b.firstChild&&this.container.appendChild(b)};
StyleFormatPanel.prototype.getCssRules=function(a){var b=document.implementation.createHTMLDocument(""),e=document.createElement("style");mxUtils.setTextContent(e,a);b.body.appendChild(e);return e.sheet.cssRules};
StyleFormatPanel.prototype.addSvgStyles=function(a){var b=this.editorUi.getSelectionState();a.style.paddingTop="6px";a.style.paddingBottom="6px";a.style.fontWeight="bold";a.style.display="none";try{var e=b.style.editableCssRules;if(null!=e){var f=new RegExp(e),h=b.style.image.substring(b.style.image.indexOf(",")+1),d=window.atob?decodeURIComponent(escape(atob(h))):Base64.decode(h,!0),g=mxUtils.parseXml(d);if(null!=g){var m="light"==g.documentElement.style.colorScheme||"0"==mxUtils.getValue(b.style,
-"darkMode",null),p=""==g.documentElement.style.colorScheme,k=g.getElementsByTagName("style");for(b=0;b<k.length;b++){var u=this.getCssRules(mxUtils.getTextContent(k[b]));for(e=0;e<u.length;e++)this.addSvgRule(a,u[e],g,k[b],u,e,f,m,p)}}}}catch(w){}return a};StyleFormatPanel.prototype.getColorSchemeFromCss=function(a){return(a=a.match(/color-scheme\s*:\s*([^;]+)/i))?a[1].trim():null};
-StyleFormatPanel.prototype.addSvgRule=function(a,b,e,f,h,d,g,m,p){var k=this.editorUi,u=k.editor.graph;g.test(b.selectorText)&&(g=mxUtils.bind(this,function(w,z,C,E){var D=mxUtils.trim(w.style[z]);if(""!=D&&"url("!=D.substring(0,4)){var G=D;"transparent"==G?G=mxConstants.NONE:(D=mxUtils.isLightDarkColor(G))&&E?E=!1:D||E||(G="light-dark("+G+", "+G+")");w=this.createColorOption(C+" "+w.selectorText,function(){return G},mxUtils.bind(this,function(J){h[d].style[z]=J==mxConstants.NONE?"transparent":mxUtils.getLightDarkColor(J).cssText;
-J="";p&&mxUtils.isLightDarkColor(h[d].style[z])&&(e.documentElement.style.colorScheme="light dark");for(var L=0;L<h.length;L++)J+=h[L].cssText+" ";f.textContent=J;J=mxUtils.getXml(e.documentElement);u.setCellStyles(mxConstants.STYLE_IMAGE,"data:image/svg+xml,"+(window.btoa?btoa(unescape(encodeURIComponent(J))):Base64.encode(J,!0)),k.getSelectionState().cells)}),"#ffffff",{install:function(J){},destroy:function(){}},null,null,null,E);a.appendChild(w);a.style.display=""}}),g(b,"fill",mxResources.get("fill"),
+"darkMode",null),q=""==g.documentElement.style.colorScheme,k=g.getElementsByTagName("style");for(b=0;b<k.length;b++){var u=this.getCssRules(mxUtils.getTextContent(k[b]));for(e=0;e<u.length;e++)this.addSvgRule(a,u[e],g,k[b],u,e,f,m,q)}}}}catch(w){}return a};StyleFormatPanel.prototype.getColorSchemeFromCss=function(a){return(a=a.match(/color-scheme\s*:\s*([^;]+)/i))?a[1].trim():null};
+StyleFormatPanel.prototype.addSvgRule=function(a,b,e,f,h,d,g,m,q){var k=this.editorUi,u=k.editor.graph;g.test(b.selectorText)&&(g=mxUtils.bind(this,function(w,z,C,E){var D=mxUtils.trim(w.style[z]);if(""!=D&&"url("!=D.substring(0,4)){var G=D;"transparent"==G?G=mxConstants.NONE:(D=mxUtils.isLightDarkColor(G))&&E?E=!1:D||E||(G="light-dark("+G+", "+G+")");w=this.createColorOption(C+" "+w.selectorText,function(){return G},mxUtils.bind(this,function(J){h[d].style[z]=J==mxConstants.NONE?"transparent":mxUtils.getLightDarkColor(J).cssText;
+J="";q&&mxUtils.isLightDarkColor(h[d].style[z])&&(e.documentElement.style.colorScheme="light dark");for(var L=0;L<h.length;L++)J+=h[L].cssText+" ";f.textContent=J;J=mxUtils.getXml(e.documentElement);u.setCellStyles(mxConstants.STYLE_IMAGE,"data:image/svg+xml,"+(window.btoa?btoa(unescape(encodeURIComponent(J))):Base64.encode(J,!0)),k.getSelectionState().cells)}),"#ffffff",{install:function(J){},destroy:function(){}},null,null,null,E);a.appendChild(w);a.style.display=""}}),g(b,"fill",mxResources.get("fill"),
m),g(b,"stroke",mxResources.get("line"),m),g(b,"stop-color",mxResources.get("gradient"),m))};
StyleFormatPanel.prototype.addEditOps=function(a){var b=this.editorUi.getSelectionState();if(1==b.cells.length){var e=document.createElement("select");e.style.width="210px";e.style.textAlign="center";e.style.marginBottom="2px";var f="edit copyAsText editLink editShape editImage editData copyData pasteData editConnectionPoints editGeometry editTooltip editStyle".split(" "),h=null;if(null!=this.editorUi.sidebar){var d=this.editorUi.sidebar.getKeyStyle(b.cells[0].style);h=this.editorUi.sidebar.getLibsForStyle(d);
-null!=h||this.editorUi.sidebar.isSearchIndexLoaded()||null==b.style.shape||"mxgraph."!=String(b.style.shape).substring(0,8)||(h=[])}null!=h&&f.push("openLibrary");for(d=0;d<f.length;d++){var g=this.editorUi.actions.get(f[d]);if(null==g||g.enabled){var m=document.createElement("option");m.setAttribute("value",f[d]);var p=mxResources.get(f[d]);mxUtils.write(m,p+("edit"==f[d]?"":"..."));null!=g&&null!=g.shortcut&&(p+=" ("+g.shortcut+")");m.setAttribute("title",p);e.appendChild(m)}}1<e.children.length&&
+null!=h||this.editorUi.sidebar.isSearchIndexLoaded()||null==b.style.shape||"mxgraph."!=String(b.style.shape).substring(0,8)||(h=[])}null!=h&&f.push("openLibrary");for(d=0;d<f.length;d++){var g=this.editorUi.actions.get(f[d]);if(null==g||g.enabled){var m=document.createElement("option");m.setAttribute("value",f[d]);var q=mxResources.get(f[d]);mxUtils.write(m,q+("edit"==f[d]?"":"..."));null!=g&&null!=g.shortcut&&(q+=" ("+g.shortcut+")");m.setAttribute("title",q);e.appendChild(m)}}1<e.children.length&&
(a.appendChild(e),mxEvent.addListener(e,"change",mxUtils.bind(this,function(k){"openLibrary"==e.value?(null!=h&&0==h.length&&(this.editorUi.sidebar.updateSearchIndex(),k=this.editorUi.sidebar.getKeyStyle(b.cells[0].style),h=this.editorUi.sidebar.getLibsForStyle(k)),null!=h&&0<h.length?this.editorUi.sidebar.openLibraries(h):this.editorUi.handleError({message:mxResources.get("objectNotFound")}),e.value="edit"):(k=this.editorUi.actions.get(e.value),e.value="edit",null!=k&&k.funct())})),b.image&&(f=this.editorUi.editor.graph,
f=f.view.getState(f.getSelectionCell()),null!=f&&null!=mxUtils.getValue(f.style,mxConstants.STYLE_IMAGE,null)&&(f=mxUtils.button(mxResources.get("crop")+"...",mxUtils.bind(this,function(k){this.editorUi.actions.get("crop").funct()})),f.setAttribute("title",mxResources.get("crop")),e.style.width="104px",f.style.width="104px",f.style.marginLeft="2px",f.style.marginBottom="2px",a.appendChild(f))))}return a};
StyleFormatPanel.prototype.addFill=function(a){function b(){g.innerHTML="";C=1;for(var D=0;D<Editor.fillStyles.length;D++){var G=document.createElement("option");G.setAttribute("value",Editor.fillStyles[D].val);mxUtils.write(G,Editor.fillStyles[D].dispName);g.appendChild(G)}}var e=this.editorUi,f=e.editor.graph,h=e.getSelectionState();a.style.paddingTop="6px";a.style.paddingBottom="6px";var d=document.createElement("select");d.style.position="absolute";d.style.left="104px";d.style.width="70px";d.style.height=
"22px";d.style.marginTop="-3px";d.style.borderWidth="1px";d.style.borderStyle="solid";d.style.boxSizing="border-box";var g=d.cloneNode(!1);mxEvent.addListener(d,"click",function(D){mxEvent.consume(D)});mxEvent.addListener(g,"click",function(D){mxEvent.consume(D)});var m=this.createCellColorOption(mxResources.get("gradient"),mxConstants.STYLE_GRADIENTCOLOR,"default",function(D){d.style.display=null==D||D==mxConstants.NONE?"none":""},function(D){f.updateCellStyles({gradientColor:D},f.getSelectionCells())},
-f.getDefaultColor(h.style,mxConstants.STYLE_GRADIENTCOLOR,f.shapeForegroundColor,f.shapeBackgroundColor));m.style.fontWeight="bold";var p="image"==h.style.shape?mxConstants.STYLE_IMAGE_BACKGROUND:mxConstants.STYLE_FILLCOLOR,k=this.createCellColorOption(mxResources.get("fill"),p,"default",null,mxUtils.bind(this,function(D){f.setCellStyles(p,D,h.cells)}),f.getDefaultColor(h.style,p,f.shapeBackgroundColor,f.shapeForegroundColor));k.style.fontWeight="bold";var u=mxUtils.getValue(h.style,p,null);m.style.display=
+f.getDefaultColor(h.style,mxConstants.STYLE_GRADIENTCOLOR,f.shapeForegroundColor,f.shapeBackgroundColor));m.style.fontWeight="bold";var q="image"==h.style.shape?mxConstants.STYLE_IMAGE_BACKGROUND:mxConstants.STYLE_FILLCOLOR,k=this.createCellColorOption(mxResources.get("fill"),q,"default",null,mxUtils.bind(this,function(D){f.setCellStyles(q,D,h.cells)}),f.getDefaultColor(h.style,q,f.shapeBackgroundColor,f.shapeForegroundColor));k.style.fontWeight="bold";var u=mxUtils.getValue(h.style,q,null);m.style.display=
null!=u&&u!=mxConstants.NONE&&h.fill&&"image"!=h.style.shape?"":"none";var w=[mxConstants.DIRECTION_NORTH,mxConstants.DIRECTION_EAST,mxConstants.DIRECTION_SOUTH,mxConstants.DIRECTION_WEST,mxConstants.DIRECTION_RADIAL];for(u=0;u<w.length;u++){var z=document.createElement("option");z.setAttribute("value",w[u]);mxUtils.write(z,mxResources.get(w[u]));d.appendChild(z)}m.appendChild(d);var C;b();h.gradient&&k.appendChild(g);var E=mxUtils.bind(this,function(){h=e.getSelectionState();var D=mxUtils.getValue(h.style,
-mxConstants.STYLE_GRADIENT_DIRECTION,mxConstants.DIRECTION_SOUTH),G=mxUtils.getValue(h.style,"fillStyle","auto");""==D&&(D=mxConstants.DIRECTION_SOUTH);d.value=D;a.style.display=h.fill?"":"none";D=mxUtils.getValue(h.style,p,null);if(h.fill&&null!=D&&D!=mxConstants.NONE&&"filledEdge"!=h.style.shape){if("1"==h.style.sketch){if(2!=C){g.innerHTML="";C=2;for(D=0;D<Editor.roughFillStyles.length;D++){var J=document.createElement("option");J.setAttribute("value",Editor.roughFillStyles[D].val);mxUtils.write(J,
+mxConstants.STYLE_GRADIENT_DIRECTION,mxConstants.DIRECTION_SOUTH),G=mxUtils.getValue(h.style,"fillStyle","auto");""==D&&(D=mxConstants.DIRECTION_SOUTH);d.value=D;a.style.display=h.fill?"":"none";D=mxUtils.getValue(h.style,q,null);if(h.fill&&null!=D&&D!=mxConstants.NONE&&"filledEdge"!=h.style.shape){if("1"==h.style.sketch){if(2!=C){g.innerHTML="";C=2;for(D=0;D<Editor.roughFillStyles.length;D++){var J=document.createElement("option");J.setAttribute("value",Editor.roughFillStyles[D].val);mxUtils.write(J,
Editor.roughFillStyles[D].dispName);g.appendChild(J)}g.value="auto"}}else 1!=C&&b();g.value=G;g.value||(G="auto",g.value=G);g.style.display="1"==h.style.sketch||"none"==d.style.display?"":"none";m.style.display=!h.gradient||h.containsImage||"1"==h.style.sketch&&"solid"!=G&&"auto"!=G?"none":""}else g.style.display="none",m.style.display="none"});f.getModel().addListener(mxEvent.CHANGE,E);this.listeners.push({destroy:function(){f.getModel().removeListener(E)}});E();mxEvent.addListener(d,"change",function(D){f.setCellStyles(mxConstants.STYLE_GRADIENT_DIRECTION,
d.value,h.cells);e.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_GRADIENT_DIRECTION],"values",[d.value],"cells",h.cells));mxEvent.consume(D)});mxEvent.addListener(g,"change",function(D){f.setCellStyles("fillStyle",g.value,h.cells);e.fireEvent(new mxEventObject("styleChanged","keys",["fillStyle"],"values",[g.value],"cells",h.cells));mxEvent.consume(D)});a.appendChild(k);a.appendChild(m);k=this.getCustomColors();for(u=0;u<k.length;u++)a.appendChild(this.createCellColorOption(k[u].title,
k[u].key,k[u].defaultValue));return a};StyleFormatPanel.prototype.getCustomColors=function(){var a=[];this.editorUi.getSelectionState().swimlane&&a.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return a};
StyleFormatPanel.prototype.addStroke=function(a){function b(H){var ea=f.fromUnit(parseFloat(J.value));ea=Math.min(999,Math.max(0,isNaN(ea)?1:ea));ea!=mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)&&(d.setCellStyles(mxConstants.STYLE_STROKEWIDTH,ea,g.cells),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_STROKEWIDTH],"values",[ea],"cells",g.cells)));J.value=f.inUnit(ea)+" "+f.getUnit();mxEvent.consume(H)}function e(H){var ea=f.fromUnit(parseFloat(L.value));ea=Math.min(999,
Math.max(0,isNaN(ea)?1:ea));ea!=mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)&&(d.setCellStyles(mxConstants.STYLE_STROKEWIDTH,ea,g.cells),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_STROKEWIDTH],"values",[ea],"cells",g.cells)));L.value=f.inUnit(ea)+" "+f.getUnit();mxEvent.consume(H)}var f=this,h=this.editorUi,d=h.editor.graph,g=h.getSelectionState();a.style.paddingTop="6px";a.style.paddingBottom="4px";a.style.whiteSpace="normal";var m=document.createElement("div");
-m.style.fontWeight="bold";g.stroke||(m.style.display="none");var p=document.createElement("select");p.style.position="absolute";p.style.height="22px";p.style.marginTop="-3px";p.style.textAlign="center";p.style.boxSizing="border-box";p.style.left="90px";p.style.width="83px";p.style.borderWidth="1px";p.style.borderStyle="solid";for(var k=["sharp","rounded","curved"],u=0;u<k.length;u++){var w=document.createElement("option");w.setAttribute("value",k[u]);mxUtils.write(w,mxResources.get(k[u]));p.appendChild(w)}mxEvent.addListener(p,
-"change",function(H){d.getModel().beginUpdate();try{var ea=[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],ra=["0","0"];"rounded"==p.value?ra=["1","0"]:"curved"==p.value&&(ra=["0","1"]);for(var qa=0;qa<ea.length;qa++)d.setCellStyles(ea[qa],ra[qa],g.cells);h.fireEvent(new mxEventObject("styleChanged","keys",ea,"values",ra,"cells",g.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(H)});mxEvent.addListener(p,"click",function(H){mxEvent.consume(H)});var z="image"==g.style.shape?mxConstants.STYLE_IMAGE_BORDER:
-mxConstants.STYLE_STROKECOLOR;k="image"==g.style.shape?mxResources.get("border"):mxResources.get("line");k=this.createCellColorOption(k,z,"default",null,mxUtils.bind(this,function(H){d.setCellStyles(z,H,g.cells);if(null==H||H==mxConstants.NONE){H=[];for(var ea=0;ea<g.cells.length;ea++)(d.isTableCell(g.cells[ea])||d.isTableRow(g.cells[ea]))&&H.push(g.cells[ea]);0<H.length&&d.setCellStyles(z,"inherit",H)}}),d.shapeForegroundColor);k.appendChild(p);m.appendChild(k);var C=m.cloneNode(!1);C.style.display=
+m.style.fontWeight="bold";g.stroke||(m.style.display="none");var q=document.createElement("select");q.style.position="absolute";q.style.height="22px";q.style.marginTop="-3px";q.style.textAlign="center";q.style.boxSizing="border-box";q.style.left="90px";q.style.width="83px";q.style.borderWidth="1px";q.style.borderStyle="solid";for(var k=["sharp","rounded","curved"],u=0;u<k.length;u++){var w=document.createElement("option");w.setAttribute("value",k[u]);mxUtils.write(w,mxResources.get(k[u]));q.appendChild(w)}mxEvent.addListener(q,
+"change",function(H){d.getModel().beginUpdate();try{var ea=[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],ra=["0","0"];"rounded"==q.value?ra=["1","0"]:"curved"==q.value&&(ra=["0","1"]);for(var qa=0;qa<ea.length;qa++)d.setCellStyles(ea[qa],ra[qa],g.cells);h.fireEvent(new mxEventObject("styleChanged","keys",ea,"values",ra,"cells",g.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(H)});mxEvent.addListener(q,"click",function(H){mxEvent.consume(H)});var z="image"==g.style.shape?mxConstants.STYLE_IMAGE_BORDER:
+mxConstants.STYLE_STROKECOLOR;k="image"==g.style.shape?mxResources.get("border"):mxResources.get("line");k=this.createCellColorOption(k,z,"default",null,mxUtils.bind(this,function(H){d.setCellStyles(z,H,g.cells);if(null==H||H==mxConstants.NONE){H=[];for(var ea=0;ea<g.cells.length;ea++)(d.isTableCell(g.cells[ea])||d.isTableRow(g.cells[ea]))&&H.push(g.cells[ea]);0<H.length&&d.setCellStyles(z,"inherit",H)}}),d.shapeForegroundColor);k.appendChild(q);m.appendChild(k);var C=m.cloneNode(!1);C.style.display=
"inline-flex";C.style.alignItems="top";C.style.fontWeight="normal";C.style.whiteSpace="nowrap";C.style.position="relative";C.style.paddingLeft="5px";C.style.overflow="hidden";C.style.marginTop="2px";C.style.width="220px";var E=mxUtils.bind(this,function(H,ea,ra,qa,Pa){H=this.editorUi.menus.styleChange(H,"",qa,Pa,"geIcon",null);qa=document.createElement("div");qa.style.width=ea+"px";qa.style.height="1px";qa.style.paddingTop="6px";Pa=ra.split(" ");2==Pa.length?(ra=parseInt(Pa[0])+parseInt(Pa[1]),Pa=
parseInt(Pa[0])/ra*100,qa.style.borderBottom="1px pat transparent",qa.style.backgroundImage="linear-gradient(to right, currentcolor "+Pa+"%, transparent 0%)",qa.style.backgroundPosition="bottom left",qa.style.backgroundSize=ra+"px 1px",qa.style.backgroundRepeat="repeat-x"):qa.style.borderBottom="1px "+ra+" currentcolor";H.firstChild.firstChild.style.padding="0px 4px 0px 4px";H.firstChild.firstChild.style.width=ea+"px";H.firstChild.firstChild.appendChild(qa);return H});u=this.editorUi.toolbar.addMenuFunctionInContainer(C,
null,mxResources.get("pattern"),!1,mxUtils.bind(this,function(H){E(H,75,"solid",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],[null,null]).setAttribute("title",mxResources.get("solid"));E(H,75,"dashed",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1",null]).setAttribute("title",mxResources.get("dashed")+" (1)");E(H,75,"8 8",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","8 8"]).setAttribute("title",mxResources.get("dashed")+" (2)");E(H,75,"12 12",[mxConstants.STYLE_DASHED,
@@ -3243,7 +3243,7 @@ Q.appendChild(P);var T=document.createElement("div");T.style.width="30px";T.styl
mxUtils.write(w,mxResources.get("linestart"));u.appendChild(w);var Z=this.addUnitInput(u,this.getUnit(),98,52,function(){X.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),ia=this.addUnitInput(u,this.getUnit(),30,52,function(){O.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(u);this.addLabel(u,mxResources.get("spacing"),98,64).style.fontSize="11px";this.addLabel(u,mxResources.get("size"),30,64).style.fontSize="11px";mxUtils.br(u);m=m.cloneNode(!1);
m.style.fontWeight="normal";m.style.position="relative";m.style.paddingLeft="16px";m.style.marginBottom="2px";m.style.marginTop="6px";m.style.borderWidth="0px";m.style.paddingBottom="18px";w=document.createElement("div");w.style.position="absolute";w.style.marginLeft="3px";w.style.marginBottom="12px";w.style.marginTop="1px";w.style.fontWeight="normal";w.style.width="120px";mxUtils.write(w,mxResources.get("perimeter"));m.appendChild(w);var oa=this.addUnitInput(m,this.getUnit(),30,52,function(){ca.apply(this,
arguments)},this.getUnitStep(),null,null,this.isFloatUnit());g.edges.length==g.cells.length?(a.appendChild(k),a.appendChild(u)):g.vertices.length==g.cells.length&&a.appendChild(m);var sa=mxUtils.bind(this,function(H,ea,ra){function qa(Pa,ma,Ba,Ca){Ba=Ba.getElementsByTagName("div")[0];null!=Ba&&h.updateCssForMarker(Ba,Ca,g.style.shape,Pa,ma);return Ba}g=h.getSelectionState();if(ra||document.activeElement!=J)H=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)),J.value=isNaN(H)?"":
-this.inUnit(H)+" "+this.getUnit();if(ra||document.activeElement!=L)H=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)),L.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();p.style.visibility="connector"==g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape?"":"hidden";"1"==mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,null)?p.value="curved":"1"==mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,null)&&(p.value="rounded");P.style.borderBottom="1px solid currentcolor";
+this.inUnit(H)+" "+this.getUnit();if(ra||document.activeElement!=L)H=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)),L.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();q.style.visibility="connector"==g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape?"":"hidden";"1"==mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,null)?q.value="curved":"1"==mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,null)&&(q.value="rounded");P.style.borderBottom="1px solid currentcolor";
"1"==mxUtils.getValue(g.style,mxConstants.STYLE_DASHED,null)&&(H=mxUtils.getValue(g.style,mxConstants.STYLE_DASH_PATTERN,""),ea=String(H).split(" "),2<=ea.length?(H=parseInt(ea[0])+parseInt(ea[1]),ea=parseInt(ea[0])/H*100,P.style.borderBottom="1px solid transparent",P.style.backgroundImage="linear-gradient(to right, currentcolor "+ea+"%, transparent 0%)",P.style.backgroundPosition="bottom left",P.style.backgroundSize=H+"px 1px",P.style.backgroundRepeat="repeat-x"):P.style.borderBottom="1px dashed currentcolor");
T.style.backgroundImage=P.style.backgroundImage;T.style.backgroundPosition=P.style.backgroundPosition;T.style.backgroundSize=P.style.backgroundSize;T.style.backgroundRepeat=P.style.backgroundRepeat;T.style.borderBottom=P.style.borderBottom;H=N.getElementsByTagName("div")[0];null!=H&&(H.style.backgroundPosition="center center",H.style.backgroundRepeat="no-repeat",H.className="geAdaptiveAsset",H.style.height="",ea=mxUtils.getValue(g.style,mxConstants.STYLE_EDGE,null),"1"==mxUtils.getValue(g.style,mxConstants.STYLE_NOEDGESTYLE,
null)&&(ea=null),"orthogonalEdgeStyle"==ea&&"1"==mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,null)?H.style.backgroundImage="url("+Format.curvedImage.src+")":"straight"==ea||"none"==ea||null==ea?H.style.backgroundImage="url("+Format.straightImage.src+")":"entityRelationEdgeStyle"==ea?H.style.backgroundImage="url("+Format.entityImage.src+")":"elbowEdgeStyle"==ea?"vertical"==mxUtils.getValue(g.style,mxConstants.STYLE_ELBOW,null)?H.style.backgroundImage="url("+Format.verticalElbowImage.src+")":
@@ -3256,30 +3256,30 @@ parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0))
sa);this.addKeyHandler(Z,sa);this.addKeyHandler(V,sa);this.addKeyHandler(K,sa);this.addKeyHandler(oa,sa);d.getModel().addListener(mxEvent.CHANGE,sa);this.listeners.push({destroy:function(){d.getModel().removeListener(sa)}});sa();return a};
StyleFormatPanel.prototype.addLineJumps=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();if(Graph.lineJumpsEnabled&&0<f.edges.length&&0==f.vertices.length&&f.lineJumps){a.style.padding="2px 0px 24px 14px";var h=document.createElement("div");h.style.position="absolute";h.style.maxWidth="78px";h.style.overflow="hidden";h.style.textOverflow="ellipsis";mxUtils.write(h,mxResources.get("lineJumps"));a.appendChild(h);var d=document.createElement("select");d.style.position="absolute";
d.style.height="21px";d.style.marginTop="-2px";d.style.boxSizing="border-box";d.style.textAlign="center";d.style.right="84px";d.style.width="64px";d.style.borderWidth="1px";d.style.borderStyle="solid";h=["none","arc","gap","sharp","line"];for(var g=0;g<h.length;g++){var m=document.createElement("option");m.setAttribute("value",h[g]);mxUtils.write(m,mxResources.get(h[g]));d.appendChild(m)}mxEvent.addListener(d,"change",function(w){e.getModel().beginUpdate();try{e.setCellStyles("jumpStyle",d.value,
-f.cells),b.fireEvent(new mxEventObject("styleChanged","keys",["jumpStyle"],"values",[d.value],"cells",f.cells))}finally{e.getModel().endUpdate()}mxEvent.consume(w)});mxEvent.addListener(d,"click",function(w){mxEvent.consume(w)});a.appendChild(d);var p=this.addUnitInput(a,this.getUnit(),16,52,function(){k.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());var k=this.installInputHandler(p,"jumpSize",Graph.defaultJumpSize,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var u=
-mxUtils.bind(this,function(w,z,C){f=b.getSelectionState();d.value=mxUtils.getValue(f.style,"jumpStyle","none");if(C||document.activeElement!=p)w=parseInt(mxUtils.getValue(f.style,"jumpSize",Graph.defaultJumpSize)),p.value=isNaN(w)?"":this.inUnit(w)+" "+this.getUnit()});this.addKeyHandler(p,u);e.getModel().addListener(mxEvent.CHANGE,u);this.listeners.push({destroy:function(){e.getModel().removeListener(u)}});u()}else a.style.display="none";return a};
-StyleFormatPanel.prototype.addEffects=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();a.style.paddingTop="4px";a.style.paddingBottom="4px";var h=document.createElement("table");h.style.width="210px";h.style.fontWeight="bold";h.style.tableLayout="fixed";var d=document.createElement("tbody"),g=document.createElement("tr");g.style.padding="0px";var m=document.createElement("td");m.style.padding="0px";m.style.width="50%";m.setAttribute("valign","top");var p=m.cloneNode(!0);p.style.paddingLeft=
-"8px";g.appendChild(m);g.appendChild(p);d.appendChild(g);h.appendChild(d);a.appendChild(h);var k=m,u=mxUtils.bind(this,function(z,C,E,D){z=this.createCellOption(z,C,E,null,null,D);z.style.width="100%";k.appendChild(z);k=k==m?p:m;return z}),w=mxUtils.bind(this,function(z,C,E){f=b.getSelectionState();m.innerText="";p.innerText="";k=m;f.rounded&&u(mxResources.get("rounded"),mxConstants.STYLE_ROUNDED,0);f.swimlane&&u(mxResources.get("divider"),"swimlaneLine",1);u(mxResources.get("sketch"),"sketch",0,
+f.cells),b.fireEvent(new mxEventObject("styleChanged","keys",["jumpStyle"],"values",[d.value],"cells",f.cells))}finally{e.getModel().endUpdate()}mxEvent.consume(w)});mxEvent.addListener(d,"click",function(w){mxEvent.consume(w)});a.appendChild(d);var q=this.addUnitInput(a,this.getUnit(),16,52,function(){k.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());var k=this.installInputHandler(q,"jumpSize",Graph.defaultJumpSize,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var u=
+mxUtils.bind(this,function(w,z,C){f=b.getSelectionState();d.value=mxUtils.getValue(f.style,"jumpStyle","none");if(C||document.activeElement!=q)w=parseInt(mxUtils.getValue(f.style,"jumpSize",Graph.defaultJumpSize)),q.value=isNaN(w)?"":this.inUnit(w)+" "+this.getUnit()});this.addKeyHandler(q,u);e.getModel().addListener(mxEvent.CHANGE,u);this.listeners.push({destroy:function(){e.getModel().removeListener(u)}});u()}else a.style.display="none";return a};
+StyleFormatPanel.prototype.addEffects=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();a.style.paddingTop="4px";a.style.paddingBottom="4px";var h=document.createElement("table");h.style.width="210px";h.style.fontWeight="bold";h.style.tableLayout="fixed";var d=document.createElement("tbody"),g=document.createElement("tr");g.style.padding="0px";var m=document.createElement("td");m.style.padding="0px";m.style.width="50%";m.setAttribute("valign","top");var q=m.cloneNode(!0);q.style.paddingLeft=
+"8px";g.appendChild(m);g.appendChild(q);d.appendChild(g);h.appendChild(d);a.appendChild(h);var k=m,u=mxUtils.bind(this,function(z,C,E,D){z=this.createCellOption(z,C,E,null,null,D);z.style.width="100%";k.appendChild(z);k=k==m?q:m;return z}),w=mxUtils.bind(this,function(z,C,E){f=b.getSelectionState();m.innerText="";q.innerText="";k=m;f.rounded&&u(mxResources.get("rounded"),mxConstants.STYLE_ROUNDED,0);f.swimlane&&u(mxResources.get("divider"),"swimlaneLine",1);u(mxResources.get("sketch"),"sketch",0,
function(D,G){e.updateCellStyles({sketch:G?"1":null,curveFitting:G?Editor.sketchDefaultCurveFitting:null,jiggle:G?Editor.sketchDefaultJiggle:null},D)});f.glass&&u(mxResources.get("glass"),mxConstants.STYLE_GLASS,0);z=u(mxResources.get("shadow"),mxConstants.STYLE_SHADOW,0);Editor.enableShadowOption||(z.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(z,60));0<f.edges.length&&0==f.vertices.length&&u(mxResources.get("flowAnimation",null,"Flow Animation"),"flowAnimation",
0)});e.getModel().addListener(mxEvent.CHANGE,w);this.listeners.push({destroy:function(){e.getModel().removeListener(w)}});w();return a};StyleFormatPanel.prototype.addStyleOps=function(a){1==this.editorUi.getSelectionState().cells.length&&this.addActions(a,["setAsDefaultStyle"]);return a};DiagramStylePanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(DiagramStylePanel,BaseFormatPanel);DiagramStylePanel.prototype.init=function(){this.container.appendChild(this.addView(this.createPanel()))};
DiagramStylePanel.prototype.getGlobalStyleButtons=function(){var a=this.editorUi,b=a.editor.graph,e=document.createElement("div");e.style.alignItems="center";e.style.textAlign="left";e.style.display="flex";var f=document.createElement("input");f.setAttribute("type","checkbox");f.style.margin="1px 6px 0px 0px";f.checked=Editor.sketchMode;e.appendChild(f);mxUtils.write(e,mxResources.get("sketch"));mxEvent.addListener(e,"click",function(d){if(b.isEnabled()){var g=!Editor.sketchMode;Editor.sketchMode=
-g;b.updateCellStyles({sketch:g?"1":null,curveFitting:g?Editor.sketchDefaultCurveFitting:null,jiggle:g?Editor.sketchDefaultJiggle:null},b.getVerticesAndEdges());mxEvent.consume(d);window.setTimeout(function(){Editor.sketchMode=!g;a.setSketchMode(g)})}});e=[e,mxUtils.button(mxResources.get("rounded"),mxUtils.bind(this,function(d){var g=b.getVerticesAndEdges(),m=!0;if(0<g.length)for(var p=0;p<g.length;p++){var k=b.getCellStyle(g[p]);if(0==mxUtils.getValue(k,mxConstants.STYLE_ROUNDED,0)){m=!1;break}}m=
+g;b.updateCellStyles({sketch:g?"1":null,curveFitting:g?Editor.sketchDefaultCurveFitting:null,jiggle:g?Editor.sketchDefaultJiggle:null},b.getVerticesAndEdges());mxEvent.consume(d);window.setTimeout(function(){Editor.sketchMode=!g;a.setSketchMode(g)})}});e=[e,mxUtils.button(mxResources.get("rounded"),mxUtils.bind(this,function(d){var g=b.getVerticesAndEdges(),m=!0;if(0<g.length)for(var q=0;q<g.length;q++){var k=b.getCellStyle(g[q]);if(0==mxUtils.getValue(k,mxConstants.STYLE_ROUNDED,0)){m=!1;break}}m=
!m;b.updateCellStyles({rounded:m?"1":"0"},g);m?(b.currentEdgeStyle.rounded="1",b.currentVertexStyle.rounded="1"):(delete b.currentEdgeStyle.rounded,delete b.currentVertexStyle.rounded);mxEvent.consume(d)}))];if(!b.isEnabled())for(f=0;f<e.length;f++)if("BUTTON"==e[f].nodeName)e[f].setAttribute("disabled","disabled");else{var h=e[f].getElementsByTagName("input");0<h.length&&h[0].setAttribute("disabled","disabled")}return e};
DiagramStylePanel.prototype.addView=function(a){var b=this.editorUi,e=b.editor.graph;a.style.paddingTop="2px";a.style.whiteSpace="normal";var f=document.createElement("div");f.style.marginRight="16px";f.style.paddingBottom="2px";if(e.isEnabled()){var h=document.createElement("div");h.style.display="flex";h.style.alignItems="center";h.style.padding="4px 0px 0px 4px";h.style.height="18px";var d=mxResources.get("adaptiveColors"),g=document.createElement("div");g.setAttribute("title",d);g.style.display=
"inline-block";g.style.whiteSpace="nowrap";g.style.textOverflow="ellipsis";g.style.overflow="hidden";g.style.maxWidth="92px";g.style.width="92px";g.style.userSelect="none";mxUtils.write(g,d);h.appendChild(g);mxClient.IS_FF&&(g.style.marginTop="1px");var m=document.createElement("select");m.style.textOverflow="ellipsis";m.style.height="22px";m.style.position="absolute";m.style.maxWidth="70px";m.style.width="70px";m.style.left="127px";d=document.createElement("option");d.setAttribute("title",mxResources.get("default")+
" ("+mxResources.get(Graph.getDefaultAdaptiveColorsKey())+")");mxUtils.write(d,mxUtils.htmlEntities(d.getAttribute("title")));d.setAttribute("value","default");m.appendChild(d);d=document.createElement("option");d.setAttribute("title",mxResources.get("automatic"));mxUtils.write(d,mxUtils.htmlEntities(d.getAttribute("title")));d.setAttribute("value","auto");m.appendChild(d);d=document.createElement("option");d.setAttribute("title",mxResources.get("simple"));mxUtils.write(d,mxUtils.htmlEntities(d.getAttribute("title")));
d.setAttribute("value","simple");m.appendChild(d);d=document.createElement("option");d.setAttribute("title",mxResources.get("none"));mxUtils.write(d,mxUtils.htmlEntities(d.getAttribute("title")));d.setAttribute("value","none");m.appendChild(d);m.value=null==e.adaptiveColors?"default":e.adaptiveColors;mxEvent.addListener(m,"change",function(){var C=new ChangePageSetup(b);C.ignoreColor=!0;C.ignoreImage=!0;C.adaptiveColors=m.value;e.model.execute(C)});h.appendChild(m);if(!b.isOffline()||mxClient.IS_CHROMEAPP||
-EditorUi.isElectronApp)d=b.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/4713"),d.style.position="absolute",d.style.left="196px",h.appendChild(d);a.appendChild(h)}h=document.createElement("table");h.style.width="204px";d=document.createElement("tbody");g=document.createElement("tr");g.style.padding="0px";var p=document.createElement("td");p.style.textAlign="center";p.style.padding="2px";p.style.width="50%";for(var k=p.cloneNode(!0),u=this.getGlobalStyleButtons(),w=0;w<u.length;w+=
-2){var z=u[w];z.style.height="22px";z.style.width="88px";p.appendChild(z);g.appendChild(p);z=u[w+1];null!=z&&(z.style.height="22px",z.style.width="88px",k.appendChild(z));g.appendChild(k);d.appendChild(g);p=p.cloneNode(!1);k=k.cloneNode(!1);g=g.cloneNode(!1)}h.appendChild(d);f.appendChild(h);a.appendChild(f);e.isEnabled()&&this.addGraphStyles(a);return a};
-DiagramStylePanel.prototype.addGraphStyles=function(a){var b=this.editorUi,e=b.editor.graph,f=e.getModel(),h=e.view.gridColor,d=["fillColor","strokeColor","fontColor","gradientColor"];a.style.whiteSpace="normal";a.style.paddingLeft="18px";a.style.paddingTop="6px";var g=mxUtils.bind(this,function(Y,P){var T=e.getVerticesAndEdges();f.beginUpdate();try{for(var K=0;K<T.length;K++){var V=e.getCellStyle(T[K]);p||null==V.labelBackgroundColor?p&&e.updateCellStyles({labelBackgroundColor:mxConstants.NONE},
-[T[K]]):e.updateCellStyles({labelBackgroundColor:null!=P?P.background:null},[T[K]]);for(var Z=f.isEdge(T[K]),ia=f.getStyle(T[K]),oa=Z?e.currentEdgeStyle:e.currentVertexStyle,sa=0;sa<Y.length;sa++)if(null!=V[Y[sa]]&&V[Y[sa]]!=mxConstants.NONE||Y[sa]!=mxConstants.STYLE_FILLCOLOR&&Y[sa]!=mxConstants.STYLE_STROKECOLOR)ia=p&&Z&&Y[sa]==mxConstants.STYLE_FONTCOLOR?mxUtils.setStyle(ia,Y[sa],"default"):mxUtils.setStyle(ia,Y[sa],oa[Y[sa]]);f.setStyle(T[K],ia)}}finally{f.endUpdate()}}),m=mxUtils.bind(this,function(Y,
-P,T){if(null!=Y)for(var K=0;K<P.length;K++)if(null!=Y[P[K]]&&Y[P[K]]!=mxConstants.NONE||P[K]!=mxConstants.STYLE_FILLCOLOR&&P[K]!=mxConstants.STYLE_STROKECOLOR)Y[P[K]]=T[P[K]]}),p=!0,k=mxUtils.bind(this,function(Y,P,T,K,V){if(null!=Y){null!=T&&(p||null==P.labelBackgroundColor?p&&(P.labelBackgroundColor=mxConstants.NONE):(K=null!=K?K.background:null,V=null!=V?V:e,null==K&&(K=V.background),null==K&&(K=V.defaultPageBackgroundColor),P.labelBackgroundColor=K));for(var Z in Y)if(null==T||null!=P[Z]&&P[Z]!=
-mxConstants.NONE||Z!=mxConstants.STYLE_FILLCOLOR&&Z!=mxConstants.STYLE_STROKECOLOR)p&&f.isEdge(T)&&Z==mxConstants.STYLE_FONTCOLOR?P[Z]="default":P[Z]=Y[Z]}}),u=mxUtils.bind(this,function(Y,P,T,K,V){var Z=document.createElement("div");Z.style.position="absolute";Z.style.display="inline-block";Z.style.overflow="hidden";Z.style.pointerEvents="none";Z.style.width="100%";Z.style.height="100%";V.appendChild(Z);var ia=new Graph(Z,null,null,e.getStylesheet());ia.shapeBackgroundColor="light-dark(#f1f3f4, "+
+EditorUi.isElectronApp)d=b.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/4713"),d.style.position="absolute",d.style.left="196px",h.appendChild(d);a.appendChild(h)}h=document.createElement("table");h.style.width="204px";d=document.createElement("tbody");g=document.createElement("tr");g.style.padding="0px";var q=document.createElement("td");q.style.textAlign="center";q.style.padding="2px";q.style.width="50%";for(var k=q.cloneNode(!0),u=this.getGlobalStyleButtons(),w=0;w<u.length;w+=
+2){var z=u[w];z.style.height="22px";z.style.width="88px";q.appendChild(z);g.appendChild(q);z=u[w+1];null!=z&&(z.style.height="22px",z.style.width="88px",k.appendChild(z));g.appendChild(k);d.appendChild(g);q=q.cloneNode(!1);k=k.cloneNode(!1);g=g.cloneNode(!1)}h.appendChild(d);f.appendChild(h);a.appendChild(f);e.isEnabled()&&this.addGraphStyles(a);return a};
+DiagramStylePanel.prototype.addGraphStyles=function(a){var b=this.editorUi,e=b.editor.graph,f=e.getModel(),h=e.view.gridColor,d=["fillColor","strokeColor","fontColor","gradientColor"];a.style.whiteSpace="normal";a.style.paddingLeft="18px";a.style.paddingTop="6px";var g=mxUtils.bind(this,function(Y,P){var T=e.getVerticesAndEdges();f.beginUpdate();try{for(var K=0;K<T.length;K++){var V=e.getCellStyle(T[K]);q||null==V.labelBackgroundColor?q&&e.updateCellStyles({labelBackgroundColor:mxConstants.NONE},
+[T[K]]):e.updateCellStyles({labelBackgroundColor:null!=P?P.background:null},[T[K]]);for(var Z=f.isEdge(T[K]),ia=f.getStyle(T[K]),oa=Z?e.currentEdgeStyle:e.currentVertexStyle,sa=0;sa<Y.length;sa++)if(null!=V[Y[sa]]&&V[Y[sa]]!=mxConstants.NONE||Y[sa]!=mxConstants.STYLE_FILLCOLOR&&Y[sa]!=mxConstants.STYLE_STROKECOLOR)ia=q&&Z&&Y[sa]==mxConstants.STYLE_FONTCOLOR?mxUtils.setStyle(ia,Y[sa],"default"):mxUtils.setStyle(ia,Y[sa],oa[Y[sa]]);f.setStyle(T[K],ia)}}finally{f.endUpdate()}}),m=mxUtils.bind(this,function(Y,
+P,T){if(null!=Y)for(var K=0;K<P.length;K++)if(null!=Y[P[K]]&&Y[P[K]]!=mxConstants.NONE||P[K]!=mxConstants.STYLE_FILLCOLOR&&P[K]!=mxConstants.STYLE_STROKECOLOR)Y[P[K]]=T[P[K]]}),q=!0,k=mxUtils.bind(this,function(Y,P,T,K,V){if(null!=Y){null!=T&&(q||null==P.labelBackgroundColor?q&&(P.labelBackgroundColor=mxConstants.NONE):(K=null!=K?K.background:null,V=null!=V?V:e,null==K&&(K=V.background),null==K&&(K=V.defaultPageBackgroundColor),P.labelBackgroundColor=K));for(var Z in Y)if(null==T||null!=P[Z]&&P[Z]!=
+mxConstants.NONE||Z!=mxConstants.STYLE_FILLCOLOR&&Z!=mxConstants.STYLE_STROKECOLOR)q&&f.isEdge(T)&&Z==mxConstants.STYLE_FONTCOLOR?P[Z]="default":P[Z]=Y[Z]}}),u=mxUtils.bind(this,function(Y,P,T,K,V){var Z=document.createElement("div");Z.style.position="absolute";Z.style.display="inline-block";Z.style.overflow="hidden";Z.style.pointerEvents="none";Z.style.width="100%";Z.style.height="100%";V.appendChild(Z);var ia=new Graph(Z,null,null,e.getStylesheet());ia.shapeBackgroundColor="light-dark(#f1f3f4, "+
Editor.darkColor+")";ia.resetViewOnRootChange=!1;ia.foldingEnabled=!1;ia.gridEnabled=!1;ia.autoScroll=!1;ia.setTooltips(!1);ia.setConnectable(!1);ia.setPanning(!1);ia.setEnabled(!1);ia.getCellStyle=function(O,X){X=null!=X?X:!0;var ba=mxUtils.clone(e.getCellStyle.apply(this,arguments)),da=e.stylesheet.getDefaultVertexStyle(),ca=P;f.isEdge(O)&&(da=e.stylesheet.getDefaultEdgeStyle(),ca=T);m(ba,d,da);k(Y,ba,O,K,ia);k(ca,ba,O,K,ia);X&&(ba=e.postProcessCellStyle(O,ba));return ba};ia.model.beginUpdate();
try{var oa=ia.insertVertex(ia.getDefaultParent(),null,"Shape",14,8,70,36,"strokeWidth=2;"),sa=ia.insertEdge(ia.getDefaultParent(),null,"Connector",oa,oa,"edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;endSize=5;strokeWidth=2;");sa.geometry.points=[new mxPoint(32,66)];sa.geometry.offset=new mxPoint(0,8)}finally{ia.model.endUpdate()}V=ia.view.getDrawPane().ownerSVGElement;null!=V&&(Z=V.cloneNode(!0),Z.style.position="absolute",Z.style.clipPath="rect(0 52% 100% 0)",V.style.clipPath=
"rect(0 100% 100% 51%)",V.style.colorScheme="light",V.parentNode.appendChild(Z))}),w=document.createElement("div");w.style.position="relative";w.style.width="210px";a.appendChild(w);null==this.format.cachedStyleEntries&&(this.format.cachedStyleEntries=[]);var z=mxUtils.bind(this,function(Y,P,T,K,V){var Z=this.format.cachedStyleEntries[V];null==Z&&(Z=document.createElement("div"),Z.className="geItem",Z.style.position="relative",Z.style.width="96px",Z.style.height="86px",Z.style.cursor="pointer",Z.style.border=
-"1px solid gray",Z.style.borderRadius="8px",Z.style.margin="1px 2px",Z.style.overflow="hidden",p||null==K||null==K.background||(Z.style.backgroundColor=K.background),u(Y,P,T,K,Z),mxEvent.addListener(Z,"click",mxUtils.bind(this,function(ia){e.currentVertexStyle=mxUtils.clone(e.defaultVertexStyle);e.currentEdgeStyle=mxUtils.clone(e.defaultEdgeStyle);k(Y,e.currentVertexStyle);k(Y,e.currentEdgeStyle);k(P,e.currentVertexStyle);k(T,e.currentEdgeStyle);f.beginUpdate();try{var oa=d.slice(),sa;for(sa in Y)oa.push(sa);
-g(oa,K);if(!p){var O=new ChangePageSetup(b,null!=K?K.background:null);O.ignoreImage=!0;f.execute(O);f.execute(new ChangeGridColor(b,null!=K&&null!=K.gridColor?K.gridColor:h))}}finally{f.endUpdate()}})),mxEvent.addGestureListeners(Z,mxUtils.bind(this,function(ia){Z.style.opacity=.5}),null,mxUtils.bind(this,function(ia){Z.style.opacity=1})),mxEvent.addListener(Z,"mouseenter",mxUtils.bind(this,function(ia){var oa=e.getCellStyle;ia=e.background;var sa=e.view.gridColor;p||(e.background=null!=K?K.background:
+"1px solid gray",Z.style.borderRadius="8px",Z.style.margin="1px 2px",Z.style.overflow="hidden",q||null==K||null==K.background||(Z.style.backgroundColor=K.background),u(Y,P,T,K,Z),mxEvent.addListener(Z,"click",mxUtils.bind(this,function(ia){e.currentVertexStyle=mxUtils.clone(e.defaultVertexStyle);e.currentEdgeStyle=mxUtils.clone(e.defaultEdgeStyle);k(Y,e.currentVertexStyle);k(Y,e.currentEdgeStyle);k(P,e.currentVertexStyle);k(T,e.currentEdgeStyle);f.beginUpdate();try{var oa=d.slice(),sa;for(sa in Y)oa.push(sa);
+g(oa,K);if(!q){var O=new ChangePageSetup(b,null!=K?K.background:null);O.ignoreImage=!0;f.execute(O);f.execute(new ChangeGridColor(b,null!=K&&null!=K.gridColor?K.gridColor:h))}}finally{f.endUpdate()}})),mxEvent.addGestureListeners(Z,mxUtils.bind(this,function(ia){Z.style.opacity=.5}),null,mxUtils.bind(this,function(ia){Z.style.opacity=1})),mxEvent.addListener(Z,"mouseenter",mxUtils.bind(this,function(ia){var oa=e.getCellStyle;ia=e.background;var sa=e.view.gridColor;q||(e.background=null!=K?K.background:
null,e.view.gridColor=null!=K&&null!=K.gridColor?K.gridColor:h);e.getCellStyle=function(O,X){X=null!=X?X:!0;var ba=mxUtils.clone(oa.apply(this,arguments)),da=e.stylesheet.getDefaultVertexStyle(),ca=P;f.isEdge(O)&&(da=e.stylesheet.getDefaultEdgeStyle(),ca=T);m(ba,d,da);k(Y,ba,O,K);k(ca,ba,O,K);X&&(ba=this.postProcessCellStyle(O,ba));return ba};e.refresh();e.getCellStyle=oa;e.background=ia;e.view.gridColor=sa;Z.style.border="2px solid blue";Z.style.margin="0px 1px"})),mxEvent.addListener(Z,"mouseleave",
mxUtils.bind(this,function(ia){Z.style.border="1px solid gray";Z.style.margin="1px 2px";e.refresh()})),mxClient.IS_IE||mxClient.IS_IE11||(this.format.cachedStyleEntries[V]=Z));w.appendChild(Z)}),C=Math.ceil(Editor.styles.length/10);this.format.currentStylePage=null!=this.format.currentStylePage?this.format.currentStylePage:0;var E=[],D=mxUtils.bind(this,function(){0<E.length&&(E[this.format.currentStylePage].style.background="#84d7ff");for(var Y=10*this.format.currentStylePage;Y<Math.min(10*(this.format.currentStylePage+
1),Editor.styles.length);Y++){var P=Editor.styles[Y];z(P.commonStyle,P.vertexStyle,P.edgeStyle,P.graph,Y)}}),G=mxUtils.bind(this,function(Y){0<=Y&&Y<C&&(E[this.format.currentStylePage].style.background="transparent",w.innerText="",this.format.currentStylePage=Y,D())});if(1<C){var J=document.createElement("div");J.style.whiteSpace="nowrap";J.style.position="relative";J.style.textAlign="center";J.style.paddingTop="4px";J.style.width="210px";for(var L=0;L<C;L++){var Q=document.createElement("div");Q.style.display=
@@ -3297,17 +3297,17 @@ a.appendChild(this.createOption(mxResources.get("connectionPoints"),function(){r
{install:function(f){this.listener=function(){f(e.graphHandler.guidesEnabled)};b.addListener("guidesEnabledChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}})));return a};
DiagramFormatPanel.prototype.addGridOption=function(a){function b(k){var u=e.isFloatUnit()?parseFloat(d.value):parseInt(d.value);u=e.fromUnit(Math.max(e.inUnit(1),isNaN(u)?e.inUnit(10):u));u!=h.getGridSize()&&(mxGraph.prototype.gridSize=u,h.setGridSize(u));d.value=e.inUnit(u)+" "+e.getUnit();mxEvent.consume(k)}var e=this,f=this.editorUi,h=f.editor.graph,d=document.createElement("input");d.style.position="absolute";d.style.textAlign="right";d.style.width="48px";d.style.marginTop="-2px";d.style.height=
"21px";d.style.borderWidth="1px";d.style.borderStyle="solid";d.style.boxSizing="border-box";d.value=this.inUnit(h.getGridSize())+" "+this.getUnit();var g=this.createStepper(d,b,this.getUnitStep(),null,null,null,this.isFloatUnit());d.style.display=h.isGridEnabled()?"":"none";g.style.display=d.style.display;mxEvent.addListener(d,"keydown",function(k){13==k.keyCode?(h.container.focus(),mxEvent.consume(k)):27==k.keyCode&&(d.value=h.getGridSize(),h.container.focus(),mxEvent.consume(k))});mxEvent.addListener(d,
-"blur",b);mxEvent.addListener(d,"change",b);d.style.left="104px";g.style.marginTop="-2px";g.style.left="152px";var m=function(){return"none"!=h.getAdaptiveColors()&&Editor.isDarkMode()},p="light-dark("+mxGraphView.prototype.defaultGridColor+","+mxGraphView.prototype.defaultDarkGridColor+")";p=this.createColorOption(mxResources.get("grid"),function(){return h.isGridEnabled()?h.view.gridColor:null},function(k){var u=h.isGridEnabled();k==mxConstants.NONE?h.setGridEnabled(!1):(h.setGridEnabled(!0),f.setGridColor(k,
+"blur",b);mxEvent.addListener(d,"change",b);d.style.left="104px";g.style.marginTop="-2px";g.style.left="152px";var m=function(){return"none"!=h.getAdaptiveColors()&&Editor.isDarkMode()},q="light-dark("+mxGraphView.prototype.defaultGridColor+","+mxGraphView.prototype.defaultDarkGridColor+")";q=this.createColorOption(mxResources.get("grid"),function(){return h.isGridEnabled()?h.view.gridColor:null},function(k){var u=h.isGridEnabled();k==mxConstants.NONE?h.setGridEnabled(!1):(h.setGridEnabled(!0),f.setGridColor(k,
m()));d.style.display=h.isGridEnabled()?"":"none";g.style.display=d.style.display;u!=h.isGridEnabled()&&(h.defaultGridEnabled=h.isGridEnabled(),f.fireEvent(new mxEventObject("gridEnabledChanged")))},h.view.gridColor,{install:function(k){this.listener=function(){k(h.isGridEnabled()?h.view.gridColor:mxConstants.NONE)};f.addListener("darkModeChanged",this.listener);f.addListener("gridColorChanged",this.listener);f.addListener("gridEnabledChanged",this.listener)},destroy:function(){f.removeListener(this.listener)}},
-null,null,p,!0,m);p.style.padding="6px 0 0 0";p.appendChild(d);p.appendChild(g);a.appendChild(p)};DiagramFormatPanel.prototype.addDocumentProperties=function(a){a.appendChild(this.createTitle(mxResources.get("options")));return a};
+null,null,q,!0,m);q.style.padding="6px 0 0 0";q.appendChild(d);q.appendChild(g);a.appendChild(q)};DiagramFormatPanel.prototype.addDocumentProperties=function(a){a.appendChild(this.createTitle(mxResources.get("options")));return a};
DiagramFormatPanel.prototype.addPaperSize=function(a){var b=this.editorUi,e=b.editor.graph;a.appendChild(this.createTitle(mxResources.get("paperSize")));var f=PageSetupDialog.addPageFormatPanel(a,"formatpanel",e.pageFormat,function(d){if(null==e.pageFormat||e.pageFormat.width!=d.width||e.pageFormat.height!=d.height)d=new ChangePageSetup(b,null,null,d),d.ignoreColor=!0,d.ignoreImage=!0,e.model.execute(d)});this.addKeyHandler(f.widthInput,function(){f.set(e.pageFormat)});this.addKeyHandler(f.heightInput,
function(){f.set(e.pageFormat)});var h=function(){f.set(e.pageFormat)};b.addListener("pageFormatChanged",h);this.listeners.push({destroy:function(){b.removeListener(h)}});e.getModel().addListener(mxEvent.CHANGE,h);this.listeners.push({destroy:function(){e.getModel().removeListener(h)}});return a};DiagramFormatPanel.prototype.addStyleOps=function(a){this.addActions(a,["editData"]);this.addActions(a,["clearDefaultStyle"]);return a};
-DiagramFormatPanel.prototype.destroy=function(){BaseFormatPanel.prototype.destroy.apply(this,arguments);this.gridEnabledListener&&(this.editorUi.removeListener(this.gridEnabledListener),this.gridEnabledListener=null)};(function(){function a(c,l,t){mxShape.call(this);this.line=c;this.stroke=l;this.strokewidth=null!=t?t:1;this.updateBoundsFromLine()}function b(){mxSwimlane.call(this)}function e(){mxSwimlane.call(this)}function f(){mxCylinder.call(this)}function h(){mxConnector.call(this)}function d(){mxCylinder.call(this)}function g(){mxActor.call(this)}function m(){mxCylinder.call(this)}function p(){mxCylinder.call(this)}function k(){mxCylinder.call(this)}function u(){mxCylinder.call(this)}function w(){mxShape.call(this)}
+DiagramFormatPanel.prototype.destroy=function(){BaseFormatPanel.prototype.destroy.apply(this,arguments);this.gridEnabledListener&&(this.editorUi.removeListener(this.gridEnabledListener),this.gridEnabledListener=null)};(function(){function a(c,l,t){mxShape.call(this);this.line=c;this.stroke=l;this.strokewidth=null!=t?t:1;this.updateBoundsFromLine()}function b(){mxSwimlane.call(this)}function e(){mxSwimlane.call(this)}function f(){mxCylinder.call(this)}function h(){mxConnector.call(this)}function d(){mxCylinder.call(this)}function g(){mxActor.call(this)}function m(){mxCylinder.call(this)}function q(){mxCylinder.call(this)}function k(){mxCylinder.call(this)}function u(){mxCylinder.call(this)}function w(){mxShape.call(this)}
function z(){mxShape.call(this)}function C(c,l,t,n){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=t;this.strokewidth=null!=n?n:1}function E(){mxActor.call(this)}function D(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function J(){mxActor.call(this)}function L(){mxActor.call(this)}function Q(){mxActor.call(this)}function N(){mxActor.call(this)}function U(){mxActor.call(this)}function Y(){mxActor.call(this)}function P(){mxActor.call(this)}function T(c,l){this.canvas=c;this.canvas.setLineJoin("round");
this.canvas.setLineCap("round");this.defaultVariation=l;this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,T.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,T.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,T.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,T.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,
T.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,T.prototype.arcTo)}function K(){mxRectangleShape.call(this)}function V(){mxRectangleShape.call(this)}function Z(){mxActor.call(this)}function ia(){mxActor.call(this)}function oa(){mxActor.call(this)}function sa(){mxRectangleShape.call(this)}function O(){mxRectangleShape.call(this)}function X(){mxCylinder.call(this)}function ba(){mxShape.call(this)}function da(){mxShape.call(this)}function ca(){mxEllipse.call(this)}
function H(){mxShape.call(this)}function ea(){mxShape.call(this)}function ra(){mxRectangleShape.call(this)}function qa(){mxShape.call(this)}function Pa(){mxShape.call(this)}function ma(){mxShape.call(this)}function Ba(){mxShape.call(this)}function Ca(){mxShape.call(this)}function Ja(){mxCylinder.call(this)}function Ia(){mxCylinder.call(this)}function Da(){mxRectangleShape.call(this)}function Ga(){mxDoubleEllipse.call(this)}function ta(){mxDoubleEllipse.call(this)}function La(){mxArrowConnector.call(this);
-this.spacing=0}function Xa(){mxArrowConnector.call(this);this.spacing=0}function Ya(){mxActor.call(this)}function cb(){mxRectangleShape.call(this)}function fb(){mxActor.call(this)}function pb(){mxActor.call(this)}function gb(){mxActor.call(this)}function ab(){mxActor.call(this)}function ib(){mxActor.call(this)}function eb(){mxActor.call(this)}function q(){mxActor.call(this)}function A(){mxActor.call(this)}function B(){mxActor.call(this)}function F(){mxActor.call(this)}function M(){mxEllipse.call(this)}
+this.spacing=0}function Xa(){mxArrowConnector.call(this);this.spacing=0}function Ya(){mxActor.call(this)}function cb(){mxRectangleShape.call(this)}function fb(){mxActor.call(this)}function pb(){mxActor.call(this)}function gb(){mxActor.call(this)}function ab(){mxActor.call(this)}function ib(){mxActor.call(this)}function eb(){mxActor.call(this)}function p(){mxActor.call(this)}function A(){mxActor.call(this)}function B(){mxActor.call(this)}function F(){mxActor.call(this)}function M(){mxEllipse.call(this)}
function R(){mxEllipse.call(this)}function W(){mxEllipse.call(this)}function ha(){mxRhombus.call(this)}function fa(){mxEllipse.call(this)}function ja(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Ma(){mxEllipse.call(this)}function Na(){mxActor.call(this)}function ya(){mxActor.call(this)}function Ha(){mxActor.call(this)}function wa(c,l,t,n){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=t;this.strokewidth=null!=n?n:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=
!0;this.indent=2;this.rectOutline="single"}function ua(){mxConnector.call(this)}function Va(c,l,t,n,r,v,x,I,y,aa){x+=y;var S=n.clone();n.x-=r*(2*x+y);n.y-=v*(2*x+y);r*=x+y;v*=x+y;return function(){c.ellipse(S.x-r-x,S.y-v-x,2*x,2*x);aa?c.fillAndStroke():c.stroke()}}mxUtils.extend(a,mxShape);a.prototype.updateBoundsFromLine=function(){var c=null;if(null!=this.line)for(var l=0;l<this.line.length;l++){var t=this.line[l];null!=t&&(t=new mxRectangle(t.x,t.y,this.strokewidth,this.strokewidth),null==c?c=
t:c.add(t))}this.bounds=null!=c?c:new mxRectangle};a.prototype.paintVertexShape=function(c,l,t,n,r){this.paintTableLine(c,this.line,0,0)};a.prototype.paintTableLine=function(c,l,t,n){if(null!=l){var r=null;c.begin();for(var v=0;v<l.length;v++){var x=l[v];null!=x&&(null==r?c.moveTo(x.x+t,x.y+n):null!=r&&c.lineTo(x.x+t,x.y+n));r=x}c.end();c.stroke()}};a.prototype.intersectsRectangle=function(c){var l=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=this.line)for(var t=null,n=
@@ -3320,8 +3320,8 @@ v),c.close(),c.fill()),0!=I&&(c.setFillAlpha(Math.abs(I)),c.setFillColor(0>I?"#F
f);var Qa=Math.tan(mxUtils.toRadians(30)),Ka=(.5-Qa)/2;mxCellRenderer.registerShape("isoRectangle",g);mxUtils.extend(h,mxConnector);h.prototype.paintEdgeShape=function(c,l){var t=this.createMarker(c,l,!0),n=this.createMarker(c,l,!1);c.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&c.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);c.setShadow(!1);c.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,
arguments);c.setStrokeColor(this.stroke);c.setFillColor(this.stroke);c.setDashed(!1);null!=t&&t();null!=n&&n()};mxCellRenderer.registerShape("wire",h);mxUtils.extend(d,mxCylinder);d.prototype.size=6;d.prototype.paintVertexShape=function(c,l,t,n,r){c.setFillColor(this.stroke);var v=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;c.ellipse(l+.5*(n-v),t+.5*(r-v),v,v);c.fill();c.setFillColor(mxConstants.NONE);c.rect(l,t,n,r);c.fill()};mxCellRenderer.registerShape("waypoint",
d);mxUtils.extend(g,mxActor);g.prototype.size=20;g.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(n,r/Qa);c.translate((n-l)/2,(r-l)/2+l/4);c.moveTo(0,.25*l);c.lineTo(.5*l,l*Ka);c.lineTo(l,.25*l);c.lineTo(.5*l,(.5-Ka)*l);c.lineTo(0,.25*l);c.close();c.end()};mxCellRenderer.registerShape("isoRectangle",g);mxUtils.extend(m,mxCylinder);m.prototype.size=20;m.prototype.redrawPath=function(c,l,t,n,r,v){l=Math.min(n,r/(.5+Qa));v?(c.moveTo(0,.25*l),c.lineTo(.5*l,(.5-Ka)*l),c.lineTo(l,.25*l),c.moveTo(.5*
-l,(.5-Ka)*l),c.lineTo(.5*l,(1-Ka)*l)):(c.translate((n-l)/2,(r-l)/2),c.moveTo(0,.25*l),c.lineTo(.5*l,l*Ka),c.lineTo(l,.25*l),c.lineTo(l,.75*l),c.lineTo(.5*l,(1-Ka)*l),c.lineTo(0,.75*l),c.close());c.end()};mxCellRenderer.registerShape("isoCube",m);mxUtils.extend(p,mxCylinder);p.prototype.redrawPath=function(c,l,t,n,r,v){l=Math.min(r/2,Math.round(r/8)+this.strokewidth-1);if(v&&null!=this.fill||!v&&null==this.fill)c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,
-l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,-l);v||(c.moveTo(0,l),c.curveTo(0,-l/3,n,-l/3,n,l),c.lineTo(n,r-l),c.curveTo(n,r+l/3,0,r+l/3,0,r-l),c.close())};p.prototype.getLabelMargins=function(c){return new mxRectangle(0,2.5*Math.min(c.height/2,Math.round(c.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",p);mxUtils.extend(k,mxCylinder);k.prototype.size=30;k.prototype.darkOpacity=
+l,(.5-Ka)*l),c.lineTo(.5*l,(1-Ka)*l)):(c.translate((n-l)/2,(r-l)/2),c.moveTo(0,.25*l),c.lineTo(.5*l,l*Ka),c.lineTo(l,.25*l),c.lineTo(l,.75*l),c.lineTo(.5*l,(1-Ka)*l),c.lineTo(0,.75*l),c.close());c.end()};mxCellRenderer.registerShape("isoCube",m);mxUtils.extend(q,mxCylinder);q.prototype.redrawPath=function(c,l,t,n,r,v){l=Math.min(r/2,Math.round(r/8)+this.strokewidth-1);if(v&&null!=this.fill||!v&&null==this.fill)c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,
+l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,-l);v||(c.moveTo(0,l),c.curveTo(0,-l/3,n,-l/3,n,l),c.lineTo(n,r-l),c.curveTo(n,r+l/3,0,r+l/3,0,r-l),c.close())};q.prototype.getLabelMargins=function(c){return new mxRectangle(0,2.5*Math.min(c.height/2,Math.round(c.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",q);mxUtils.extend(k,mxCylinder);k.prototype.size=30;k.prototype.darkOpacity=
0;k.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(0,Math.min(n,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),x=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));c.translate(l,t);c.begin();c.moveTo(0,0);c.lineTo(n-v,0);c.lineTo(n,v);c.lineTo(n,r);c.lineTo(0,r);c.lineTo(0,0);c.close();c.end();c.fillAndStroke();this.outline||(c.setShadow(!1),0!=x&&(c.setFillAlpha(Math.abs(x)),c.setFillColor(0>x?"#FFFFFF":"#000000"),
c.begin(),c.moveTo(n-v,0),c.lineTo(n-v,v),c.lineTo(n,v),c.close(),c.fill()),c.begin(),c.moveTo(n-v,0),c.lineTo(n-v,v),c.lineTo(n,v),c.end(),c.stroke())};mxCellRenderer.registerShape("note",k);mxUtils.extend(u,k);mxCellRenderer.registerShape("note2",u);u.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,l*this.scale),0,0)}return null};mxUtils.extend(w,mxShape);w.prototype.isoAngle=
15;w.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;v=Math.min(n*Math.tan(v),.5*r);c.translate(l,t);c.begin();c.moveTo(.5*n,0);c.lineTo(n,v);c.lineTo(n,r-v);c.lineTo(.5*n,r);c.lineTo(0,r-v);c.lineTo(0,v);c.close();c.fillAndStroke();c.setShadow(!1);c.begin();c.moveTo(0,v);c.lineTo(.5*n,2*v);c.lineTo(n,v);c.moveTo(.5*n,2*v);c.lineTo(.5*n,r);c.stroke()};mxCellRenderer.registerShape("isoCube2",
@@ -3406,7 +3406,7 @@ r/2);c.end()};mxCellRenderer.registerShape("crossbar",pb);mxUtils.extend(gb,mxAc
"arrowSize",this.arrowSize))));t=(r-v)/2;v=t+v;var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,t),new mxPoint(n-l,t),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(n-l,v),new mxPoint(0,v)],this.isRounded,x,!0);c.end()};mxCellRenderer.registerShape("singleArrow",ab);mxUtils.extend(ib,mxActor);ib.prototype.redrawPath=function(c,l,t,n,r){var v=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",
ab.prototype.arrowWidth))));l=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",ab.prototype.arrowSize))));t=(r-v)/2;v=t+v;var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,r/2),new mxPoint(l,0),new mxPoint(l,t),new mxPoint(n-l,t),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(n-l,v),new mxPoint(l,v),new mxPoint(l,r)],this.isRounded,x,!0);c.end()};mxCellRenderer.registerShape("doubleArrow",
ib);mxUtils.extend(eb,mxActor);eb.prototype.size=.1;eb.prototype.fixedSize=20;eb.prototype.redrawPath=function(c,l,t,n,r){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.moveTo(l,0);c.lineTo(n,0);c.quadTo(n-2*l,r/2,n,r);c.lineTo(l,r);c.quadTo(l-2*l,r/2,l,0);c.close();c.end()};mxCellRenderer.registerShape("dataStorage",eb);
-mxUtils.extend(q,mxActor);q.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.close();c.end()};mxCellRenderer.registerShape("or",q);mxUtils.extend(A,mxActor);A.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.quadTo(n/2,r/2,0,0);c.close();c.end()};mxCellRenderer.registerShape("xor",A);mxUtils.extend(B,mxActor);B.prototype.size=20;B.prototype.isRoundable=function(){return!0};B.prototype.redrawPath=function(c,
+mxUtils.extend(p,mxActor);p.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.close();c.end()};mxCellRenderer.registerShape("or",p);mxUtils.extend(A,mxActor);A.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.quadTo(n/2,r/2,0,0);c.close();c.end()};mxCellRenderer.registerShape("xor",A);mxUtils.extend(B,mxActor);B.prototype.size=20;B.prototype.isRoundable=function(){return!0};B.prototype.redrawPath=function(c,
l,t,n,r){l=Math.min(n/2,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(l,0),new mxPoint(n-l,0),new mxPoint(n,.8*l),new mxPoint(n,r),new mxPoint(0,r),new mxPoint(0,.8*l)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("loopLimit",B);mxUtils.extend(F,mxActor);F.prototype.size=.375;F.prototype.isRoundable=function(){return!0};F.prototype.redrawPath=function(c,
l,t,n,r){l=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,r-l),new mxPoint(n/2,r),new mxPoint(0,r-l)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("offPageConnector",F);mxUtils.extend(M,mxEllipse);M.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);
c.begin();c.moveTo(l+n/2,t+r);c.lineTo(l+n,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("tapeData",M);mxUtils.extend(R,mxEllipse);R.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();c.moveTo(l,t+r/2);c.lineTo(l+n,t+r/2);c.end();c.stroke();c.begin();c.moveTo(l+n/2,t);c.lineTo(l+n/2,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("orEllipse",R);mxUtils.extend(W,mxEllipse);W.prototype.paintVertexShape=function(c,
@@ -3567,7 +3567,7 @@ function(c,l,t){c=[];var n=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(t
function(c,l,t){c=[];var n=Math.min(t,l),r=Math.max(0,Math.min(n,n*parseFloat(mxUtils.getValue(this.style,"size",this.size))));n=(t-r)/2;var v=n+r,x=(l-r)/2;r=x+r;c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,0));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,r,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,t));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+r),n));c.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,l,n));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+r),v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*x,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,0,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*x,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,n));return c};ra.prototype.constraints=null;q.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.25),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,
+0),!1,null,0,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*x,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,n));return c};ra.prototype.constraints=null;p.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.25),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,
.9),!1)];A.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.175,.25),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.175,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];Ba.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];Ca.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,
.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)]})();function Actions(a){this.editorUi=a;this.actions={};this.init()}
Actions.prototype.init=function(){function a(k){d.escape();k=d.deleteCells(d.getDeletableCells(d.getSelectionCells()),k);null!=k&&d.setSelectionCells(k)}function b(){if(!d.isSelectionEmpty()){d.getModel().beginUpdate();try{for(var k=d.getSelectionCells(),u=0;u<k.length;u++)d.cellLabelChanged(k[u],"")}finally{d.getModel().endUpdate()}}}function e(k,u,w,z,C){C.getModel().beginUpdate();try{var E=C.getCellGeometry(k);null!=E&&w&&z&&(w/=z,E=E.clone(),1<w?E.height=E.width/w:E.width=E.height*w,C.getModel().setGeometry(k,
@@ -3610,7 +3610,7 @@ m.setEnabled(!1);m=this.addAction("animations",function(){Editor.enableAnimation
m=this.addAction("collapseExpand",function(){var k=new ChangePageSetup(f);k.ignoreColor=!0;k.ignoreImage=!0;k.foldingEnabled=!d.foldingEnabled;d.model.execute(k)});m.setToggleAction(!0);m.setSelectedCallback(function(){return d.foldingEnabled});m.isEnabled=g;m=this.addAction("pageView",mxUtils.bind(this,function(){f.setPageVisible(!d.pageVisible)}));m.setToggleAction(!0);m.setSelectedCallback(function(){return d.pageVisible});m=this.addAction("connectionArrows",function(){d.connectionArrowsEnabled=
!d.connectionArrowsEnabled;f.fireEvent(new mxEventObject("connectionArrowsChanged"))},null,null,"Alt+Shift+A");m.setToggleAction(!0);m.setSelectedCallback(function(){return d.connectionArrowsEnabled});m=this.addAction("connectionPoints",function(){d.setConnectable(!d.connectionHandler.isEnabled());f.fireEvent(new mxEventObject("connectionPointsChanged"))},null,null,"Alt+Shift+O");m.setToggleAction(!0);m.setSelectedCallback(function(){return d.connectionHandler.isEnabled()});m=this.addAction("copyConnect",
function(){d.connectionHandler.setCreateTarget(!d.connectionHandler.isCreateTarget());f.fireEvent(new mxEventObject("copyConnectChanged"))});m.setToggleAction(!0);m.setSelectedCallback(function(){return d.connectionHandler.isCreateTarget()});m.isEnabled=g;m=this.addAction("autosave",function(){f.editor.setAutosave(!f.editor.autosave)});m.setToggleAction(!0);m.setSelectedCallback(function(){return f.editor.autosave});m.isEnabled=g;m.visible=!1;this.addAction("help",function(){var k="";mxResources.isLanguageSupported(mxClient.language)&&
-(k="_"+mxClient.language);d.openLink(RESOURCES_PATH+"/help"+k+".html")});var p=!1;this.put("about",new Action(mxResources.get("about")+" Graph Editor...",function(){p||(f.showDialog((new AboutDialog(f)).container,320,280,!0,!0,function(){p=!1}),p=!0)}));m=mxUtils.bind(this,function(k,u,w,z){return this.addAction(k,function(){if(null!=w&&d.cellEditor.isContentEditing())w();else{d.stopEditing(!1);d.getModel().beginUpdate();try{var C=d.getEditableCells(d.getSelectionCells());d.toggleCellStyleFlags(mxConstants.STYLE_FONTSTYLE,
+(k="_"+mxClient.language);d.openLink(RESOURCES_PATH+"/help"+k+".html")});var q=!1;this.put("about",new Action(mxResources.get("about")+" Graph Editor...",function(){q||(f.showDialog((new AboutDialog(f)).container,320,280,!0,!0,function(){q=!1}),q=!0)}));m=mxUtils.bind(this,function(k,u,w,z){return this.addAction(k,function(){if(null!=w&&d.cellEditor.isContentEditing())w();else{d.stopEditing(!1);d.getModel().beginUpdate();try{var C=d.getEditableCells(d.getSelectionCells());d.toggleCellStyleFlags(mxConstants.STYLE_FONTSTYLE,
u,C);(u&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD?d.updateLabelElements(C,function(D){D.style.fontWeight=null;"B"==D.nodeName&&d.replaceElement(D)}):(u&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC?d.updateLabelElements(C,function(D){D.style.fontStyle=null;"I"==D.nodeName&&d.replaceElement(D)}):(u&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&d.updateLabelElements(C,function(D){D.style.textDecoration=null;"U"==D.nodeName&&d.replaceElement(D)});for(var E=0;E<C.length;E++)0==d.model.getChildCount(C[E])&&
d.autoSizeCell(C[E],!1)}finally{d.getModel().endUpdate()}}},null,null,z)});m("bold",mxConstants.FONT_BOLD,function(){document.execCommand("bold",!1,null)},Editor.ctrlKey+"+B");m("italic",mxConstants.FONT_ITALIC,function(){document.execCommand("italic",!1,null)},Editor.ctrlKey+"+I");m("underline",mxConstants.FONT_UNDERLINE,function(){document.execCommand("underline",!1,null)},Editor.ctrlKey+"+U");this.addAction("fontColor...",function(){f.menus.pickColor(mxConstants.STYLE_FONTCOLOR,"forecolor","000000",
"default",d.shapeForegroundColor)});this.addAction("strokeColor...",function(){f.menus.pickColor(mxConstants.STYLE_STROKECOLOR,null,null,"default",d.shapeForegroundColor)});this.addAction("fillColor...",function(){f.menus.pickColor(mxConstants.STYLE_FILLCOLOR,null,null,"default",d.shapeBackgroundColor)});this.addAction("gradientColor...",function(){f.menus.pickColor(mxConstants.STYLE_GRADIENTCOLOR,null,null,"default",d.shapeForegroundColor)});this.addAction("backgroundColor...",function(){f.menus.pickColor(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,
@@ -3639,12 +3639,12 @@ k);f.showDialog(u.container,350,450,!0,!1,function(){u.destroy()});u.init()}},nu
function Action(a,b,e,f,h){mxEventSource.call(this);this.label=a;this.funct=this.createFunction(b);this.enabled=null!=e?e:!0;this.iconCls=f;this.shortcut=h;this.visible=!0}mxUtils.extend(Action,mxEventSource);Action.prototype.createFunction=function(a){return a};Action.prototype.setEnabled=function(a){this.enabled!=a&&(this.enabled=a,this.fireEvent(new mxEventObject("stateChanged")))};Action.prototype.isEnabled=function(){return this.enabled};
Action.prototype.setToggleAction=function(a){this.toggleAction=a};Action.prototype.setSelectedCallback=function(a){this.selectedCallback=a};Action.prototype.isSelected=function(){return this.selectedCallback()};Menus=function(a){this.editorUi=a;this.menus={};this.init()};Menus.prototype.defaultFont="Helvetica";Menus.prototype.defaultFontSize="12";Menus.prototype.defaultMenuItems="file edit view arrange extras help".split(" ");Menus.prototype.defaultFonts="Helvetica;Verdana;Times New Roman;Garamond;Comic Sans MS;Courier New;Georgia;Lucida Console;Tahoma".split(";");Menus.prototype.autoPopup=!0;
Menus.prototype.init=function(){var a=this.editorUi,b=a.editor.graph,e=mxUtils.bind(b,b.isEnabled);this.customFonts=[];this.customFontSizes=[];this.put("fontFamily",new Menu(mxUtils.bind(this,function(f,h){for(var d=mxUtils.bind(this,function(m){this.styleChange(f,m,[mxConstants.STYLE_FONTFAMILY],[m],null,h,function(){document.execCommand("fontname",!1,m);a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTFAMILY],"values",[m],"cells",[b.cellEditor.getEditingCell()]))},function(){b.updateLabelElements(b.getSelectionCells(),
-function(p){p.removeAttribute("face");p.style.fontFamily=null;"PRE"==p.nodeName&&b.replaceElement(p,"div")})}).firstChild.nextSibling.style.fontFamily=m}),g=0;g<this.defaultFonts.length;g++)d(this.defaultFonts[g]);f.addSeparator(h);if(0<this.customFonts.length){for(g=0;g<this.customFonts.length;g++)d(this.customFonts[g]);f.addSeparator(h);f.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFonts=[];this.editorUi.fireEvent(new mxEventObject("customFontsChanged"))}),h);f.addSeparator(h)}this.promptChange(f,
+function(q){q.removeAttribute("face");q.style.fontFamily=null;"PRE"==q.nodeName&&b.replaceElement(q,"div")})}).firstChild.nextSibling.style.fontFamily=m}),g=0;g<this.defaultFonts.length;g++)d(this.defaultFonts[g]);f.addSeparator(h);if(0<this.customFonts.length){for(g=0;g<this.customFonts.length;g++)d(this.customFonts[g]);f.addSeparator(h);f.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFonts=[];this.editorUi.fireEvent(new mxEventObject("customFontsChanged"))}),h);f.addSeparator(h)}this.promptChange(f,
mxResources.get("custom")+"...","",mxConstants.DEFAULT_FONTFAMILY,mxConstants.STYLE_FONTFAMILY,h,!0,mxUtils.bind(this,function(m){0>mxUtils.indexOf(this.customFonts,m)&&(this.customFonts.push(m),this.editorUi.fireEvent(new mxEventObject("customFontsChanged")))}))})));this.put("formatBlock",new Menu(mxUtils.bind(this,function(f,h){function d(g,m){return f.addItem(g,null,mxUtils.bind(this,function(){null!=b.cellEditor.textarea&&(b.cellEditor.textarea.focus(),document.execCommand("formatBlock",!1,"<"+
m+">"))}),h)}d(mxResources.get("normal"),"p");d("","h1").firstChild.nextSibling.innerHTML='<h1 style="margin:0px;">'+mxResources.get("heading")+" 1</h1>";d("","h2").firstChild.nextSibling.innerHTML='<h2 style="margin:0px;">'+mxResources.get("heading")+" 2</h2>";d("","h3").firstChild.nextSibling.innerHTML='<h3 style="margin:0px;">'+mxResources.get("heading")+" 3</h3>";d("","h4").firstChild.nextSibling.innerHTML='<h4 style="margin:0px;">'+mxResources.get("heading")+" 4</h4>";d("","h5").firstChild.nextSibling.innerHTML=
'<h5 style="margin:0px;">'+mxResources.get("heading")+" 5</h5>";d("","h6").firstChild.nextSibling.innerHTML='<h6 style="margin:0px;">'+mxResources.get("heading")+" 6</h6>";d("","pre").firstChild.nextSibling.innerHTML='<pre style="margin:0px;">'+mxResources.get("formatted")+"</pre>";d("","blockquote").firstChild.nextSibling.innerHTML='<blockquote style="margin-top:0px;margin-bottom:0px;">'+mxResources.get("blockquote")+"</blockquote>"})));this.put("fontSize",new Menu(mxUtils.bind(this,function(f,h){var d=
[6,8,9,10,11,12,14,18,24,36,48,72];0>mxUtils.indexOf(d,this.defaultFontSize)&&(d.push(this.defaultFontSize),d.sort(function(w,z){return w-z}));for(var g=mxUtils.bind(this,function(w){if(null!=b.cellEditor.textarea){document.execCommand("fontSize",!1,"3");for(var z=b.cellEditor.textarea.getElementsByTagName("font"),C=0;C<z.length;C++)if("3"==z[C].getAttribute("size")){z[C].removeAttribute("size");z[C].style.fontSize=w+"px";break}a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTSIZE],
-"values",[w],"cells",[b.cellEditor.getEditingCell()]))}}),m=mxUtils.bind(this,function(w){this.styleChange(f,w,[mxConstants.STYLE_FONTSIZE],[w],null,h,function(){g(w)})}),p=0;p<d.length;p++)m(d[p]);f.addSeparator(h);if(0<this.customFontSizes.length){var k=0;for(p=0;p<this.customFontSizes.length;p++)0>mxUtils.indexOf(d,this.customFontSizes[p])&&(m(this.customFontSizes[p]),k++);0<k&&f.addSeparator(h);f.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFontSizes=[]}),h);f.addSeparator(h)}var u=
+"values",[w],"cells",[b.cellEditor.getEditingCell()]))}}),m=mxUtils.bind(this,function(w){this.styleChange(f,w,[mxConstants.STYLE_FONTSIZE],[w],null,h,function(){g(w)})}),q=0;q<d.length;q++)m(d[q]);f.addSeparator(h);if(0<this.customFontSizes.length){var k=0;for(q=0;q<this.customFontSizes.length;q++)0>mxUtils.indexOf(d,this.customFontSizes[q])&&(m(this.customFontSizes[q]),k++);0<k&&f.addSeparator(h);f.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFontSizes=[]}),h);f.addSeparator(h)}var u=
null;this.promptChange(f,mxResources.get("custom")+"...","("+mxResources.get("points")+")",this.defaultFontSize,mxConstants.STYLE_FONTSIZE,h,!0,mxUtils.bind(this,function(w){null!=u&&null!=b.cellEditor.textarea&&(b.cellEditor.textarea.focus(),b.cellEditor.restoreSelection(u));null!=w&&0<w.length&&(this.customFontSizes.push(w),g(w))}),null,function(){u=b.cellEditor.saveSelection();return!1})})));this.put("direction",new Menu(mxUtils.bind(this,function(f,h){f.addItem(mxResources.get("flipH"),null,function(){b.toggleCellStyles(mxConstants.STYLE_FLIPH,
!1)},h);f.addItem(mxResources.get("flipV"),null,function(){b.toggleCellStyles(mxConstants.STYLE_FLIPV,!1)},h);this.addMenuItems(f,["-","rotation"],h)})));this.put("align",new Menu(mxUtils.bind(this,function(f,h){var d=1<this.editorUi.getSelectionState().vertices.length;f.addItem(mxResources.get("leftAlign"),null,function(){b.alignCells(mxConstants.ALIGN_LEFT)},h,null,d);f.addItem(mxResources.get("center"),null,function(){b.alignCells(mxConstants.ALIGN_CENTER)},h,null,d);f.addItem(mxResources.get("rightAlign"),
null,function(){b.alignCells(mxConstants.ALIGN_RIGHT)},h,null,d);f.addSeparator(h);f.addItem(mxResources.get("topAlign"),null,function(){b.alignCells(mxConstants.ALIGN_TOP)},h,null,d);f.addItem(mxResources.get("middle"),null,function(){b.alignCells(mxConstants.ALIGN_MIDDLE)},h,null,d);f.addItem(mxResources.get("bottomAlign"),null,function(){b.alignCells(mxConstants.ALIGN_BOTTOM)},h,null,d);this.addMenuItems(f,["-","snapToGrid"],h)})));this.put("distribute",new Menu(mxUtils.bind(this,function(f,h){f.addItem(mxResources.get("horizontal"),
@@ -3655,43 +3655,43 @@ mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle","vertical",null,null],null,h,!0
mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],null,h,!0,Format.verticalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),"connector"==d&&Format.processMenuIcon(this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],null,h,!0,Format.curvedImage.src)).setAttribute("title",mxResources.get("curved")),Format.processMenuIcon(this.edgeStyleChange(f,
"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],null,h,!0,Format.entityImage.src)).setAttribute("title",mxResources.get("entityRelation"))),f.addSeparator(h),Format.processMenuIcon(this.styleChange(f,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],[null,null,null,null],null,h,null,null,!0,Format.connectionImage.src)).setAttribute("title",mxResources.get("line")),Format.processMenuIcon(this.styleChange(f,
"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["link",null,null,null],null,h,null,null,!0,Format.linkEdgeImage.src)).setAttribute("title",mxResources.get("link")),Format.processMenuIcon(this.styleChange(f,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["flexArrow",null,null,null],null,h,null,null,!0,Format.arrowImage.src)).setAttribute("title",mxResources.get("arrow")),Format.processMenuIcon(this.styleChange(f,
-"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["arrow",null,null,null],null,h,null,null,!0,Format.simpleArrowImage.src)).setAttribute("title",mxResources.get("simpleArrow")))})));this.put("layout",new Menu(mxUtils.bind(this,function(f,h){var d=mxUtils.bind(this,function(m,p){this.editorUi.prompt(mxResources.get("spacing"),m,p)}),g=mxUtils.bind(this,function(m){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var p=b.getSelectionCell(),k=null;null==
-p||0==b.getModel().getChildCount(p)?0==b.getModel().getEdgeCount(p)&&(k=b.findTreeRoots(b.getDefaultParent())):k=b.findTreeRoots(p);null!=k&&0<k.length&&(p=k[0]);null!=p&&this.editorUi.executeLayout(function(){m.execute(b.getDefaultParent(),p);b.isSelectionEmpty()||(p=b.getModel().getParent(p),b.getModel().isVertex(p)&&b.updateGroupBounds([p],2*b.gridSize,!0))},!0)}))});f.addItem(mxResources.get("horizontalFlow"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=
-new mxHierarchicalLayout(b,mxConstants.DIRECTION_WEST);this.editorUi.executeLayout(function(){var p=b.getSelectionCells();m.execute(b.getDefaultParent(),0==p.length?null:p)},!0)}))}),h);f.addItem(mxResources.get("verticalFlow"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxHierarchicalLayout(b,mxConstants.DIRECTION_NORTH);this.editorUi.executeLayout(function(){var p=b.getSelectionCells();m.execute(b.getDefaultParent(),0==p.length?null:p)},!0)}))}),
-h);f.addSeparator(h);f.addItem(mxResources.get("horizontalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!0);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=p,g(m))}))}),h);f.addItem(mxResources.get("verticalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!1);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=
-p,g(m))}))}),h);f.addItem(mxResources.get("radialTree"),null,mxUtils.bind(this,function(){var m=new mxRadialTreeLayout(b);m.levelDistance=80;m.autoRadius=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=p,g(m))}))}),h);f.addSeparator(h);f.addItem(mxResources.get("organic"),null,mxUtils.bind(this,function(){var m=new mxFastOrganicLayout(b);d(m.forceConstant,mxUtils.bind(this,function(p){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){m.forceConstant=p;this.editorUi.executeLayout(function(){var k=
-b.getSelectionCell();if(null==k||0==b.getModel().getChildCount(k))k=b.getDefaultParent();m.execute(k);b.getModel().isVertex(k)&&b.updateGroupBounds([k],2*b.gridSize,!0)},!0)}))}))}),h);f.addItem(mxResources.get("circle"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxCircleLayout(b);this.editorUi.executeLayout(function(){var p=b.getSelectionCell();if(null==p||0==b.getModel().getChildCount(p))p=b.getDefaultParent();m.execute(p);b.getModel().isVertex(p)&&
-b.updateGroupBounds([p],2*b.gridSize,!0)},!0)}))}),h)})));this.put("navigation",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,"home - exitGroup enterGroup - expand collapse - collapsible".split(" "),h)})));this.put("arrange",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["toFront","toBack","bringForward","sendBackward","-"],h);this.addSubmenu("direction",f,h);this.addMenuItems(f,["turn","-"],h);this.addSubmenu("align",f,h);this.addSubmenu("distribute",f,h);f.addSeparator(h);
+"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["arrow",null,null,null],null,h,null,null,!0,Format.simpleArrowImage.src)).setAttribute("title",mxResources.get("simpleArrow")))})));this.put("layout",new Menu(mxUtils.bind(this,function(f,h){var d=mxUtils.bind(this,function(m,q){this.editorUi.prompt(mxResources.get("spacing"),m,q)}),g=mxUtils.bind(this,function(m){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var q=b.getSelectionCell(),k=null;null==
+q||0==b.getModel().getChildCount(q)?0==b.getModel().getEdgeCount(q)&&(k=b.findTreeRoots(b.getDefaultParent())):k=b.findTreeRoots(q);null!=k&&0<k.length&&(q=k[0]);null!=q&&this.editorUi.executeLayout(function(){m.execute(b.getDefaultParent(),q);b.isSelectionEmpty()||(q=b.getModel().getParent(q),b.getModel().isVertex(q)&&b.updateGroupBounds([q],2*b.gridSize,!0))},!0)}))});f.addItem(mxResources.get("horizontalFlow"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=
+new mxHierarchicalLayout(b,mxConstants.DIRECTION_WEST);this.editorUi.executeLayout(function(){var q=b.getSelectionCells();m.execute(b.getDefaultParent(),0==q.length?null:q)},!0)}))}),h);f.addItem(mxResources.get("verticalFlow"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxHierarchicalLayout(b,mxConstants.DIRECTION_NORTH);this.editorUi.executeLayout(function(){var q=b.getSelectionCells();m.execute(b.getDefaultParent(),0==q.length?null:q)},!0)}))}),
+h);f.addSeparator(h);f.addItem(mxResources.get("horizontalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!0);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(q){isNaN(q)||(m.levelDistance=q,g(m))}))}),h);f.addItem(mxResources.get("verticalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!1);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(q){isNaN(q)||(m.levelDistance=
+q,g(m))}))}),h);f.addItem(mxResources.get("radialTree"),null,mxUtils.bind(this,function(){var m=new mxRadialTreeLayout(b);m.levelDistance=80;m.autoRadius=!0;d(m.levelDistance,mxUtils.bind(this,function(q){isNaN(q)||(m.levelDistance=q,g(m))}))}),h);f.addSeparator(h);f.addItem(mxResources.get("organic"),null,mxUtils.bind(this,function(){var m=new mxFastOrganicLayout(b);d(m.forceConstant,mxUtils.bind(this,function(q){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){m.forceConstant=q;this.editorUi.executeLayout(function(){var k=
+b.getSelectionCell();if(null==k||0==b.getModel().getChildCount(k))k=b.getDefaultParent();m.execute(k);b.getModel().isVertex(k)&&b.updateGroupBounds([k],2*b.gridSize,!0)},!0)}))}))}),h);f.addItem(mxResources.get("circle"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxCircleLayout(b);this.editorUi.executeLayout(function(){var q=b.getSelectionCell();if(null==q||0==b.getModel().getChildCount(q))q=b.getDefaultParent();m.execute(q);b.getModel().isVertex(q)&&
+b.updateGroupBounds([q],2*b.gridSize,!0)},!0)}))}),h)})));this.put("navigation",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,"home - exitGroup enterGroup - expand collapse - collapsible".split(" "),h)})));this.put("arrange",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["toFront","toBack","bringForward","sendBackward","-"],h);this.addSubmenu("direction",f,h);this.addMenuItems(f,["turn","-"],h);this.addSubmenu("align",f,h);this.addSubmenu("distribute",f,h);f.addSeparator(h);
this.addSubmenu("navigation",f,h);this.addSubmenu("insert",f,h);this.addSubmenu("layout",f,h);this.addMenuItems(f,"- group ungroup removeFromGroup - clearWaypoints autosize".split(" "),h)}))).isEnabled=e;this.put("insert",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["insertLink","insertImage"],h)})));this.put("view",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,(null!=this.editorUi.format?["format"]:[]).concat("outline layers - pageView pageScale - tooltips grid guides - connectionArrows connectionPoints - resetView zoomIn zoomOut".split(" "),
h))})));this.put("viewPanels",new Menu(mxUtils.bind(this,function(f,h){null!=this.editorUi.format&&this.addMenuItems(f,["format"],h);this.addMenuItems(f,["outline","layers"],h)})));this.put("viewZoom",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["smartFit","-"],h);for(var d=[.25,.5,.75,1,1.25,1.5,2,3,4],g=0;g<d.length;g++)(function(m){f.addItem(100*m+"%",null,function(){b.zoomTo(m)},h)})(d[g]);this.addMenuItems(f,"- fitWindow fitPageWidth fitPage fitTwoPages - customZoom".split(" "),
h)})));this.put("file",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,"new open - save saveAs - import export - pageSetup print".split(" "),h)})));this.put("edit",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,"undo redo - cut copy paste delete - duplicate - editData editTooltip - editStyle - edit - editLink openLink - selectVertices selectEdges selectAll selectNone - lockUnlock".split(" "))})));this.put("extras",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,
["copyConnect","collapseExpand","-","editDiagram"])})));this.put("help",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["help","-","about"])})))};Menus.prototype.put=function(a,b){return this.menus[a]=b};Menus.prototype.get=function(a){return this.menus[a]};Menus.prototype.addSubmenu=function(a,b,e,f){var h=this.get(a),d=null;null!=h&&(h=h.isEnabled(),b.showDisabled||h)&&(d=b.addItem(f||mxResources.get(a),null,null,e,null,h),this.addMenu(a,b,d));return d};
Menus.prototype.addMenu=function(a,b,e){a=this.get(a);null!=a&&(b.showDisabled||a.isEnabled())&&a.execute(b,e)};
-Menus.prototype.addInsertTableCellItem=function(a,b){var e=this.editorUi.editor.graph,f=e.getSelectionCell(),h=e.getCurrentCellStyle(f);1<e.getSelectionCount()&&(e.isTableCell(f)&&(f=e.model.getParent(f)),e.isTableRow(f)&&(f=e.model.getParent(f)));var d=e.isTable(f)||e.isTableRow(f)||e.isTableCell(f),g=e.isStack(f)||e.isStackChild(f),m=d,p=d;g&&(h=e.isStack(f)?h:e.getCellStyle(e.model.getParent(f)),p="0"==h.horizontalStack,m=!p);null!=b||!d&&!g?this.addInsertTableItem(a,mxUtils.bind(this,function(k,
+Menus.prototype.addInsertTableCellItem=function(a,b){var e=this.editorUi.editor.graph,f=e.getSelectionCell(),h=e.getCurrentCellStyle(f);1<e.getSelectionCount()&&(e.isTableCell(f)&&(f=e.model.getParent(f)),e.isTableRow(f)&&(f=e.model.getParent(f)));var d=e.isTable(f)||e.isTableRow(f)||e.isTableCell(f),g=e.isStack(f)||e.isStackChild(f),m=d,q=d;g&&(h=e.isStack(f)?h:e.getCellStyle(e.model.getParent(f)),q="0"==h.horizontalStack,m=!q);null!=b||!d&&!g?this.addInsertTableItem(a,mxUtils.bind(this,function(k,
u,w,z,C){u=C||mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)?e.createCrossFunctionalSwimlane(u,w,null,null,z||mxEvent.isShiftDown(k)?"Cross-Functional Flowchart":null):e.createTable(u,w,null,null,z||mxEvent.isShiftDown(k)?"Table":null);k=mxEvent.isAltDown(k)?e.getFreeInsertPoint():e.getCenterInsertPoint(e.getBoundingBoxFromGeometry([u],!0));w=null;e.getModel().beginUpdate();try{w=e.importCells([u],k.x,k.y),e.fireEvent(new mxEventObject("cellsInserted","cells",e.model.getDescendants(w[0])))}finally{e.getModel().endUpdate()}null!=
w&&0<w.length&&(e.scrollCellToVisible(w[0]),e.setSelectionCells(w))}),b):(m&&(b=a.addItem(mxResources.get("insertColumnBefore"),Editor.addColumnLeftImage,mxUtils.bind(this,function(){try{g?e.insertLane(f,!0):e.insertTableColumn(f,!0)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("insertColumnBefore")),b=a.addItem(mxResources.get("insertColumnAfter"),Editor.addColumnRightImage,mxUtils.bind(this,function(){try{g?e.insertLane(f,!1):e.insertTableColumn(f,!1)}catch(k){this.editorUi.handleError(k)}})),
-b.setAttribute("title",mxResources.get("insertColumnAfter")),b=a.addItem(mxResources.get("deleteColumn"),Editor.removeColumnImage,mxUtils.bind(this,function(){if(null!=f)try{g?e.deleteLane(f):e.deleteTableColumn(f)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("deleteColumn"))),p&&(b=a.addItem(mxResources.get("insertRowBefore"),Editor.addRowAboveImage,mxUtils.bind(this,function(){try{g?e.insertLane(f,!0):e.insertTableRow(f,!0)}catch(k){this.editorUi.handleError(k)}})),
+b.setAttribute("title",mxResources.get("insertColumnAfter")),b=a.addItem(mxResources.get("deleteColumn"),Editor.removeColumnImage,mxUtils.bind(this,function(){if(null!=f)try{g?e.deleteLane(f):e.deleteTableColumn(f)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("deleteColumn"))),q&&(b=a.addItem(mxResources.get("insertRowBefore"),Editor.addRowAboveImage,mxUtils.bind(this,function(){try{g?e.insertLane(f,!0):e.insertTableRow(f,!0)}catch(k){this.editorUi.handleError(k)}})),
b.setAttribute("title",mxResources.get("insertRowBefore")),b=a.addItem(mxResources.get("insertRowAfter"),Editor.addRowBelowImage,mxUtils.bind(this,function(){try{g?e.insertLane(f,!1):e.insertTableRow(f,!1)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("insertRowAfter")),b=a.addItem(mxResources.get("deleteRow"),Editor.removeRowImage,mxUtils.bind(this,function(){try{g?e.deleteLane(f):e.deleteTableRow(f)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",
-mxResources.get("deleteRow")),p=this.editorUi.getSelectionState(),null!=p.mergeCell?this.addMenuItem(a,"mergeCells"):(1<p.style.colspan||1<p.style.rowspan)&&this.addMenuItem(a,"unmergeCells")))};
+mxResources.get("deleteRow")),q=this.editorUi.getSelectionState(),null!=q.mergeCell?this.addMenuItem(a,"mergeCells"):(1<q.style.colspan||1<q.style.rowspan)&&this.addMenuItem(a,"unmergeCells")))};
Menus.prototype.addInsertTableItem=function(a,b,e,f){function h(C){m=d.getParentByName(mxEvent.getSource(C),"TD");var E=!1;if(null!=m){g=d.getParentByName(m,"TR");var D=mxEvent.isMouseEvent(C)?2:4,G=w,J=Math.min(20,g.sectionRowIndex+D);D=Math.min(20,m.cellIndex+D);for(var L=G.rows.length;L<J;L++)for(var Q=G.insertRow(L),N=0;N<G.rows[0].cells.length;N++)Q.insertCell(-1);for(L=0;L<G.rows.length;L++)for(Q=G.rows[L],N=Q.cells.length;N<D;N++)Q.insertCell(-1);z.innerHTML=m.cellIndex+1+"x"+(g.sectionRowIndex+
1);for(G=0;G<w.rows.length;G++)for(J=w.rows[G],D=0;D<J.cells.length;D++)L=J.cells[D],G==g.sectionRowIndex&&D==m.cellIndex&&(E="blue"==L.style.backgroundColor),L.style.backgroundColor=G<=g.sectionRowIndex&&D<=m.cellIndex?"blue":"transparent"}mxEvent.consume(C);return E}f=null!=f?f:!0;b=null!=b?b:mxUtils.bind(this,function(C,E,D){var G=this.editorUi.editor.graph;if(null!=G.getParentByName(mxEvent.getSource(C),"TD")&&null!=G.cellEditor.textarea){var J=G.cellEditor.textarea.getElementsByTagName("table");
C=[];for(var L=0;L<J.length;L++)C.push(J[L]);G.container.focus();L=G.pasteHtmlAtCaret;J=["<table>"];for(var Q=0;Q<E;Q++){J.push("<tr>");for(var N=0;N<D;N++)J.push("<td><br></td>");J.push("</tr>")}J.push("</table>");E=J.join("");L.call(G,E);E=G.cellEditor.textarea.getElementsByTagName("table");if(E.length==C.length+1)for(L=E.length-1;0<=L;L--)if(0==L||E[L]!=C[L-1]){G.selectNode(E[L].rows[0].cells[0]);break}}});var d=this.editorUi.editor.graph,g=null,m=null;null==e&&(a.div.className+=" geToolbarMenu",
-a.labels=!1);a=a.addItem("",null,null,e,null,null,null,!0);a.firstChild.style.fontSize=Menus.prototype.defaultFontSize+"px";e=a.getElementsByTagName("td");1<e.length&&(e[1].style.display="none",e[2].style.display="none");a.firstChild.innerText="";var p=document.createElement("input");p.setAttribute("id","geTitleOption");p.setAttribute("type","checkbox");p.style.verticalAlign="middle";e=document.createElement("label");mxUtils.write(e,mxResources.get("title"));e.setAttribute("for","geTitleOption");
-e.style.verticalAlign="middle";mxEvent.addGestureListeners(e,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));mxEvent.addGestureListeners(p,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));var k=document.createElement("input");k.setAttribute("id","geContainerOption");k.setAttribute("type","checkbox");k.style.verticalAlign="middle";var u=document.createElement("label");mxUtils.write(u,mxResources.get("container"));u.setAttribute("for","geContainerOption");u.style.verticalAlign=
-"middle";mxEvent.addGestureListeners(u,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));mxEvent.addGestureListeners(k,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));f&&(a.firstChild.appendChild(p),a.firstChild.appendChild(e),mxUtils.br(a.firstChild),a.firstChild.appendChild(k),a.firstChild.appendChild(u),mxUtils.br(a.firstChild));var w=function(C,E){var D=document.createElement("table");D.className="geInsertTablePicker";D.setAttribute("border","1");D.style.borderCollapse=
+a.labels=!1);a=a.addItem("",null,null,e,null,null,null,!0);a.firstChild.style.fontSize=Menus.prototype.defaultFontSize+"px";e=a.getElementsByTagName("td");1<e.length&&(e[1].style.display="none",e[2].style.display="none");a.firstChild.innerText="";var q=document.createElement("input");q.setAttribute("id","geTitleOption");q.setAttribute("type","checkbox");q.style.verticalAlign="middle";e=document.createElement("label");mxUtils.write(e,mxResources.get("title"));e.setAttribute("for","geTitleOption");
+e.style.verticalAlign="middle";mxEvent.addGestureListeners(e,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));mxEvent.addGestureListeners(q,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));var k=document.createElement("input");k.setAttribute("id","geContainerOption");k.setAttribute("type","checkbox");k.style.verticalAlign="middle";var u=document.createElement("label");mxUtils.write(u,mxResources.get("container"));u.setAttribute("for","geContainerOption");u.style.verticalAlign=
+"middle";mxEvent.addGestureListeners(u,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));mxEvent.addGestureListeners(k,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));f&&(a.firstChild.appendChild(q),a.firstChild.appendChild(e),mxUtils.br(a.firstChild),a.firstChild.appendChild(k),a.firstChild.appendChild(u),mxUtils.br(a.firstChild));var w=function(C,E){var D=document.createElement("table");D.className="geInsertTablePicker";D.setAttribute("border","1");D.style.borderCollapse=
"collapse";D.style.borderStyle="solid";D.style.marginBottom="4px";D.style.marginTop="8px";D.setAttribute("cellPadding","8");for(var G=0;G<C;G++)for(var J=D.insertRow(G),L=0;L<E;L++)J.insertCell(-1);return D}(5,5);a.firstChild.appendChild(w);var z=document.createElement("div");z.style.textAlign="center";z.style.padding="4px";z.style.width="100%";z.innerHTML="1x1";a.firstChild.appendChild(z);mxEvent.addGestureListeners(w,null,null,mxUtils.bind(this,function(C){var E=h(C);null!=m&&null!=g&&E&&(b(C,g.sectionRowIndex+
-1,m.cellIndex+1,p.checked,k.checked),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0))}));mxEvent.addListener(w,"mouseover",h)};
-Menus.prototype.edgeStyleChange=function(a,b,e,f,h,d,g,m){return this.showIconOnly(a.addItem(b,m,mxUtils.bind(this,function(){var p=this.editorUi.editor.graph;p.stopEditing(!1);p.getModel().beginUpdate();try{for(var k=p.getSelectionCells(),u=[],w=0;w<k.length;w++){var z=k[w];if(p.getModel().isEdge(z)){if(g){var C=p.getCellGeometry(z);null!=C&&(C=C.clone(),C.points=null,p.getModel().setGeometry(z,C))}for(var E=0;E<e.length;E++)p.setCellStyles(e[E],f[E],[z]);u.push(z)}}this.editorUi.fireEvent(new mxEventObject("styleChanged",
-"cells",u,"keys",e,"values",f,"force",0==k.length))}finally{p.getModel().endUpdate()}}),d,h))};Menus.prototype.showIconOnly=function(a){var b=a.getElementsByTagName("td");for(i=0;i<b.length;i++)"mxPopupMenuItem"==b[i].getAttribute("class")&&(b[i].style.display="none");return a};
-Menus.prototype.styleChange=function(a,b,e,f,h,d,g,m,p,k){var u=this.createStyleChangeFunction(e,f);a=a.addItem(b,k,mxUtils.bind(this,function(){var w=this.editorUi.editor.graph;null!=g&&w.cellEditor.isContentEditing()?g():u(m)}),d,h);p&&this.showIconOnly(a);return a};
+1,m.cellIndex+1,q.checked,k.checked),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0))}));mxEvent.addListener(w,"mouseover",h)};
+Menus.prototype.edgeStyleChange=function(a,b,e,f,h,d,g,m){return this.showIconOnly(a.addItem(b,m,mxUtils.bind(this,function(){var q=this.editorUi.editor.graph;q.stopEditing(!1);q.getModel().beginUpdate();try{for(var k=q.getSelectionCells(),u=[],w=0;w<k.length;w++){var z=k[w];if(q.getModel().isEdge(z)){if(g){var C=q.getCellGeometry(z);null!=C&&(C=C.clone(),C.points=null,q.getModel().setGeometry(z,C))}for(var E=0;E<e.length;E++)q.setCellStyles(e[E],f[E],[z]);u.push(z)}}this.editorUi.fireEvent(new mxEventObject("styleChanged",
+"cells",u,"keys",e,"values",f,"force",0==k.length))}finally{q.getModel().endUpdate()}}),d,h))};Menus.prototype.showIconOnly=function(a){var b=a.getElementsByTagName("td");for(i=0;i<b.length;i++)"mxPopupMenuItem"==b[i].getAttribute("class")&&(b[i].style.display="none");return a};
+Menus.prototype.styleChange=function(a,b,e,f,h,d,g,m,q,k){var u=this.createStyleChangeFunction(e,f);a=a.addItem(b,k,mxUtils.bind(this,function(){var w=this.editorUi.editor.graph;null!=g&&w.cellEditor.isContentEditing()?g():u(m)}),d,h);q&&this.showIconOnly(a);return a};
Menus.prototype.createStyleChangeFunction=function(a,b){return mxUtils.bind(this,function(e){var f=this.editorUi.editor.graph;f.stopEditing(!1);f.getModel().beginUpdate();try{for(var h=f.getEditableCells(f.getSelectionCells()),d=!1,g=0;g<a.length;g++)if(f.setCellStyles(a[g],b[g],h),a[g]==mxConstants.STYLE_ALIGN&&f.updateLabelElements(h,function(m){m.removeAttribute("align");m.style.textAlign=null}),a[g]==mxConstants.STYLE_FONTFAMILY||"fontSource"==a[g])d=!0;if(d)for(d=0;d<h.length;d++)0==f.model.getChildCount(h[d])&&
f.autoSizeCell(h[d],!1);null!=e&&e();this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",a,"values",b,"cells",h))}finally{f.getModel().endUpdate()}})};
-Menus.prototype.promptChange=function(a,b,e,f,h,d,g,m,p,k){return a.addItem(b,null,mxUtils.bind(this,function(){var u=this.editorUi.editor.graph,w=f,z=u.getView().getState(u.getSelectionCell());null!=z&&(w=z.style[h]||w);var C=null!=k?k():!0;w=new FilenameDialog(this.editorUi,w,mxResources.get("apply"),mxUtils.bind(this,function(E){if(null!=E&&0<E.length){if(C){u.getModel().beginUpdate();try{u.stopEditing(!1),u.setCellStyles(h,E)}finally{u.getModel().endUpdate()}}null!=m&&m(E)}}),mxResources.get("enterValue")+
-(0<e.length?" "+e:""),null,null,null,null,function(){null!=m&&null!=k&&m(null)});this.editorUi.showDialog(w.container,300,80,!0,!0);w.init()}),d,p,g)};
+Menus.prototype.promptChange=function(a,b,e,f,h,d,g,m,q,k){return a.addItem(b,null,mxUtils.bind(this,function(){var u=this.editorUi.editor.graph,w=f,z=u.getView().getState(u.getSelectionCell());null!=z&&(w=z.style[h]||w);var C=null!=k?k():!0;w=new FilenameDialog(this.editorUi,w,mxResources.get("apply"),mxUtils.bind(this,function(E){if(null!=E&&0<E.length){if(C){u.getModel().beginUpdate();try{u.stopEditing(!1),u.setCellStyles(h,E)}finally{u.getModel().endUpdate()}}null!=m&&m(E)}}),mxResources.get("enterValue")+
+(0<e.length?" "+e:""),null,null,null,null,function(){null!=m&&null!=k&&m(null)});this.editorUi.showDialog(w.container,300,80,!0,!0);w.init()}),d,q,g)};
Menus.prototype.pickColor=function(a,b,e,f,h,d){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var g=this.editorUi.editor.graph;if(null!=b&&g.cellEditor.isContentEditing()){var m=g.getSelectedEditingElement();null!=m&&null!=g.cellEditor.textarea&&(m=g.getTextColor(m,"forecolor"==b),this.editorUi.pickColor(m,mxUtils.bind(this,function(k){null!=g.cellEditor.textarea&&(Graph.setTextColor(g.cellEditor.textarea,k,"forecolor"==b),this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",
-["forecolor"==b?mxConstants.STYLE_FONTCOLOR:mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[k],"cells",[g.cellEditor.getEditingCell()])))}),f,h,d))}else{var p=g.getView().getState(g.getSelectionCell());m=mxConstants.NONE;null!=p&&(m=p.style[a]||m);this.editorUi.pickColor(m,ColorDialog.createApplyFunction(this.editorUi,a),f,h,d)}}))};
+["forecolor"==b?mxConstants.STYLE_FONTCOLOR:mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[k],"cells",[g.cellEditor.getEditingCell()])))}),f,h,d))}else{var q=g.getView().getState(g.getSelectionCell());m=mxConstants.NONE;null!=q&&(m=q.style[a]||m);this.editorUi.pickColor(m,ColorDialog.createApplyFunction(this.editorUi,a),f,h,d)}}))};
Menus.prototype.toggleStyle=function(a,b){var e=this.editorUi.editor.graph;b=e.toggleCellStyles(a,b);this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",[a],"values",[b],"cells",e.getSelectionCells()))};
-Menus.prototype.addMenuItem=function(a,b,e,f,h,d){var g=this.editorUi.actions.get(b);return null!=g&&(a.showDisabled||g.isEnabled())&&g.visible?(b=a.addItem(d||g.label,null,mxUtils.bind(this,function(m){try{g.funct(f,m)}catch(p){this.editorUi.handleError(p)}}),e,h,g.isEnabled()),g.toggleAction&&g.isSelected()&&a.addCheckmark(b,Editor.checkmarkImage),this.addShortcut(b,g,a.hideShortcuts),b):null};
+Menus.prototype.addMenuItem=function(a,b,e,f,h,d){var g=this.editorUi.actions.get(b);return null!=g&&(a.showDisabled||g.isEnabled())&&g.visible?(b=a.addItem(d||g.label,null,mxUtils.bind(this,function(m){try{g.funct(f,m)}catch(q){this.editorUi.handleError(q)}}),e,h,g.isEnabled()),g.toggleAction&&g.isSelected()&&a.addCheckmark(b,Editor.checkmarkImage),this.addShortcut(b,g,a.hideShortcuts),b):null};
Menus.prototype.addShortcut=function(a,b,e){null!=b.shortcut&&(e?a.setAttribute("title",b.shortcut):(a=a.firstChild.nextSibling.nextSibling,e=document.createElement("span"),e.style.color="gray",mxUtils.write(e,b.shortcut),a.appendChild(e)))};Menus.prototype.addMenuItems=function(a,b,e,f,h){for(var d=0;d<b.length;d++)"-"==b[d]?a.addSeparator(e):this.addMenuItem(a,b[d],e,f,null!=h?h[d]:null)};
Menus.prototype.createPopupMenu=function(a,b,e){a.smartSeparators=!0;a.hideShortcuts=!0;this.addPopupMenuItems(a,b,e)};Menus.prototype.addPopupMenuItems=function(a,b,e){this.isShowHistoryItems()&&this.addPopupMenuHistoryItems(a,b,e);this.addPopupMenuEditItems(a,b,e);this.isShowStyleItems()&&this.addPopupMenuStyleItems(a,b,e);this.isShowArrangeItems()&&this.addPopupMenuArrangeItems(a,b,e);this.addPopupMenuCellItems(a,b,e);this.addPopupMenuSelectionItems(a,b,e)};Menus.prototype.isShowHistoryItems=function(){return!0};
Menus.prototype.addPopupMenuHistoryItems=function(a,b,e){this.editorUi.editor.graph.isSelectionEmpty()&&this.addMenuItems(a,["undo","redo"],null,e)};Menus.prototype.addPopupDeleteItem=function(a,b,e){a=this.addMenuItem(a,"delete");null!=a&&null!=a.firstChild&&null!=a.firstChild.nextSibling&&(a.firstChild.nextSibling.style.color="red",b=this.editorUi.editor.graph,1<b.getSelectionCount()&&(a.firstChild.nextSibling.innerHTML=mxUtils.htmlEntities(mxResources.get("delete")+" ("+b.getSelectionCount()+")")))};
@@ -3736,15 +3736,15 @@ function(){document.execCommand("insertunorderedlist",!1,null)}));f.setAttribute
e=this.addMenuFunction("",mxResources.get("format"),!1,mxUtils.bind(this,function(h){f=h.addItem("",Editor.subscriptImage,this.editorUi.actions.get("subscript").funct);f.setAttribute("title",mxResources.get("subscript")+" ("+Editor.ctrlKey+"+,)");f=h.addItem("",Editor.superscriptImage,this.editorUi.actions.get("superscript").funct);f.setAttribute("title",mxResources.get("superscript")+" ("+Editor.ctrlKey+"+.)");f=h.addItem("",Editor.fontColorImage,this.editorUi.actions.get("fontColor").funct);f.setAttribute("title",
mxResources.get("fontColor"));f=h.addItem("",Editor.backgroundColorImage,this.editorUi.actions.get("backgroundColor").funct);f.setAttribute("title",mxResources.get("backgroundColor"));f=h.addItem("",Editor.removeFormatImage,mxUtils.bind(this,function(){document.execCommand("removeformat",!1,null)}));f.setAttribute("title",mxResources.get("removeFormat"))}));this.addDropDownArrow(e,Editor.textFormatImage,38);this.addSeparator();this.addButton(Editor.codeImage,mxResources.get("html"),function(){b.cellEditor.toggleViewMode();
0<b.cellEditor.textarea.innerHTML.length&&("&nbsp;"!=b.cellEditor.textarea.innerHTML||!b.cellEditor.clearOnChange)&&window.setTimeout(function(){document.execCommand("selectAll",!1,null)})});this.addSeparator();e=this.addMenuFunction("",mxResources.get("insert"),!0,mxUtils.bind(this,function(h){h.addItem(mxResources.get("insertLink"),null,mxUtils.bind(this,function(){this.editorUi.actions.get("link").funct()}));h.addItem(mxResources.get("insertImage"),null,mxUtils.bind(this,function(){this.editorUi.actions.get("image").funct()}));
-h.addItem(mxResources.get("insertHorizontalRule"),null,mxUtils.bind(this,function(){document.execCommand("inserthorizontalrule",!1,null)}))}));this.addDropDownArrow(e,Editor.plusImage,38);this.addSeparator();var f=this.addMenuFunction(Editor.tableImage,mxResources.get("table"),!1,mxUtils.bind(this,function(h){var d=b.getSelectedElement(),g=b.getParentByNames(d,["TD","TH"],b.cellEditor.text2),m=b.getParentByName(d,"TR",b.cellEditor.text2);if(null==m)this.editorUi.menus.addInsertTableItem(h);else{var p=
-b.getParentByName(m,"TABLE",b.cellEditor.text2);d=h.addItem("",Editor.addColumnLeftImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(p,null!=g?g.cellIndex:0))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertColumnBefore"));d=h.addItem("",Editor.addColumnRightImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(p,null!=g?g.cellIndex+1:-1))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertColumnAfter"));
-d=h.addItem("Delete column",Editor.removeColumnImage,mxUtils.bind(this,function(){if(null!=g)try{b.deleteColumn(p,g.cellIndex)}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("deleteColumn"));d=h.addItem("",Editor.addRowAboveImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertRow(p,m.sectionRowIndex))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertRowBefore"));d=h.addItem("",Editor.addRowBelowImage,mxUtils.bind(this,
-function(){try{b.selectNode(b.insertRow(p,m.sectionRowIndex+1))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertRowAfter"));d=h.addItem("",Editor.removeRowImage,mxUtils.bind(this,function(){try{b.deleteRow(p,m.sectionRowIndex)}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("deleteRow"));d=h.addItem("",Editor.strokeColorImage,mxUtils.bind(this,function(){var k=p.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,
-function(u,w,z,C){return"#"+("0"+Number(w).toString(16)).substr(-2)+("0"+Number(z).toString(16)).substr(-2)+("0"+Number(C).toString(16)).substr(-2)});this.editorUi.pickColor(k,function(u){null==u||u==mxConstants.NONE?(p.removeAttribute("border"),p.style.border="",p.style.borderCollapse=""):(p.setAttribute("border","1"),p.style.border="1px solid "+u,p.style.borderCollapse="collapse")})}));d.setAttribute("title",mxResources.get("borderColor"));d=h.addItem("",Editor.fillColorImage,mxUtils.bind(this,
-function(){var k=p.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(u,w,z,C){return"#"+("0"+Number(w).toString(16)).substr(-2)+("0"+Number(z).toString(16)).substr(-2)+("0"+Number(C).toString(16)).substr(-2)});this.editorUi.pickColor(k,function(u){p.style.backgroundColor=null==u||u==mxConstants.NONE?"":u})}));d.setAttribute("title",mxResources.get("backgroundColor"));d=h.addItem("",Editor.spacingImage,mxUtils.bind(this,function(){var k=p.getAttribute("cellPadding")||
-0;k=new FilenameDialog(this.editorUi,k,mxResources.get("apply"),mxUtils.bind(this,function(u){null!=u&&0<u.length?p.setAttribute("cellPadding",u):p.removeAttribute("cellPadding")}),mxResources.get("spacing"));this.editorUi.showDialog(k.container,300,80,!0,!0);k.init()}));d.setAttribute("title",mxResources.get("spacing"));d=h.addItem("",Editor.alignLeftImage,mxUtils.bind(this,function(){p.setAttribute("align","left")}));d.setAttribute("title",mxResources.get("left"));d=h.addItem("",Editor.alignCenterImage,
-mxUtils.bind(this,function(){p.setAttribute("align","center")}));d.setAttribute("title",mxResources.get("center"));d=h.addItem("",Editor.alignRightImage,mxUtils.bind(this,function(){p.setAttribute("align","right")}));d.setAttribute("title",mxResources.get("right"))}}));this.addDropDownArrow(f,Editor.tableImage,38)};Toolbar.prototype.hideMenu=function(){this.editorUi.hideCurrentMenu()};
-Toolbar.prototype.addMenu=function(a,b,e,f,h,d,g){var m=this.editorUi.menus.get(f),p=this.addMenuFunction(a,b,e,function(){m.funct.apply(m,arguments)},h,d);g||"function"!==typeof p.setEnabled||m.addListener("stateChanged",function(){p.setEnabled(m.enabled)});return p};Toolbar.prototype.addMenuFunction=function(a,b,e,f,h,d){return this.addMenuFunctionInContainer(null!=h?h:this.container,a,b,e,f,d)};
+h.addItem(mxResources.get("insertHorizontalRule"),null,mxUtils.bind(this,function(){document.execCommand("inserthorizontalrule",!1,null)}))}));this.addDropDownArrow(e,Editor.plusImage,38);this.addSeparator();var f=this.addMenuFunction(Editor.tableImage,mxResources.get("table"),!1,mxUtils.bind(this,function(h){var d=b.getSelectedElement(),g=b.getParentByNames(d,["TD","TH"],b.cellEditor.text2),m=b.getParentByName(d,"TR",b.cellEditor.text2);if(null==m)this.editorUi.menus.addInsertTableItem(h);else{var q=
+b.getParentByName(m,"TABLE",b.cellEditor.text2);d=h.addItem("",Editor.addColumnLeftImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(q,null!=g?g.cellIndex:0))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertColumnBefore"));d=h.addItem("",Editor.addColumnRightImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(q,null!=g?g.cellIndex+1:-1))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertColumnAfter"));
+d=h.addItem("Delete column",Editor.removeColumnImage,mxUtils.bind(this,function(){if(null!=g)try{b.deleteColumn(q,g.cellIndex)}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("deleteColumn"));d=h.addItem("",Editor.addRowAboveImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertRow(q,m.sectionRowIndex))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertRowBefore"));d=h.addItem("",Editor.addRowBelowImage,mxUtils.bind(this,
+function(){try{b.selectNode(b.insertRow(q,m.sectionRowIndex+1))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertRowAfter"));d=h.addItem("",Editor.removeRowImage,mxUtils.bind(this,function(){try{b.deleteRow(q,m.sectionRowIndex)}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("deleteRow"));d=h.addItem("",Editor.strokeColorImage,mxUtils.bind(this,function(){var k=q.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,
+function(u,w,z,C){return"#"+("0"+Number(w).toString(16)).substr(-2)+("0"+Number(z).toString(16)).substr(-2)+("0"+Number(C).toString(16)).substr(-2)});this.editorUi.pickColor(k,function(u){null==u||u==mxConstants.NONE?(q.removeAttribute("border"),q.style.border="",q.style.borderCollapse=""):(q.setAttribute("border","1"),q.style.border="1px solid "+u,q.style.borderCollapse="collapse")})}));d.setAttribute("title",mxResources.get("borderColor"));d=h.addItem("",Editor.fillColorImage,mxUtils.bind(this,
+function(){var k=q.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(u,w,z,C){return"#"+("0"+Number(w).toString(16)).substr(-2)+("0"+Number(z).toString(16)).substr(-2)+("0"+Number(C).toString(16)).substr(-2)});this.editorUi.pickColor(k,function(u){q.style.backgroundColor=null==u||u==mxConstants.NONE?"":u})}));d.setAttribute("title",mxResources.get("backgroundColor"));d=h.addItem("",Editor.spacingImage,mxUtils.bind(this,function(){var k=q.getAttribute("cellPadding")||
+0;k=new FilenameDialog(this.editorUi,k,mxResources.get("apply"),mxUtils.bind(this,function(u){null!=u&&0<u.length?q.setAttribute("cellPadding",u):q.removeAttribute("cellPadding")}),mxResources.get("spacing"));this.editorUi.showDialog(k.container,300,80,!0,!0);k.init()}));d.setAttribute("title",mxResources.get("spacing"));d=h.addItem("",Editor.alignLeftImage,mxUtils.bind(this,function(){q.setAttribute("align","left")}));d.setAttribute("title",mxResources.get("left"));d=h.addItem("",Editor.alignCenterImage,
+mxUtils.bind(this,function(){q.setAttribute("align","center")}));d.setAttribute("title",mxResources.get("center"));d=h.addItem("",Editor.alignRightImage,mxUtils.bind(this,function(){q.setAttribute("align","right")}));d.setAttribute("title",mxResources.get("right"))}}));this.addDropDownArrow(f,Editor.tableImage,38)};Toolbar.prototype.hideMenu=function(){this.editorUi.hideCurrentMenu()};
+Toolbar.prototype.addMenu=function(a,b,e,f,h,d,g){var m=this.editorUi.menus.get(f),q=this.addMenuFunction(a,b,e,function(){m.funct.apply(m,arguments)},h,d);g||"function"!==typeof q.setEnabled||m.addListener("stateChanged",function(){q.setEnabled(m.enabled)});return q};Toolbar.prototype.addMenuFunction=function(a,b,e,f,h,d){return this.addMenuFunctionInContainer(null!=h?h:this.container,a,b,e,f,d)};
Toolbar.prototype.addMenuFunctionInContainer=function(a,b,e,f,h,d){b=f?this.createLabel(b):this.createButton(b);this.initElement(b,e);this.addMenuHandler(b,f,h,d);a.appendChild(b);return b};Toolbar.prototype.addSeparator=function(a){a=null!=a?a:this.container;var b=document.createElement("div");b.className="geSeparator";a.appendChild(b);return b};
Toolbar.prototype.addItems=function(a,b,e,f){for(var h=[],d=0;d<a.length;d++){var g=a[d];"-"==g?h.push(this.addSeparator(b)):h.push(this.addItem(null!=f?f[d]:null,g,b,e))}return h};Toolbar.prototype.addItem=function(a,b,e,f){var h=this.editorUi.actions.get(b),d=null;null!=h&&(b=h.label,null!=h.shortcut&&(b+=" ("+h.shortcut+")"),d=this.addButton(a,b,h.funct,e),f||"function"!==typeof d.setEnabled||(d.setEnabled(h.enabled),h.addListener("stateChanged",function(){d.setEnabled(h.enabled)})));return d};
Toolbar.prototype.addButton=function(a,b,e,f){a=this.createButton(a);f=null!=f?f:this.container;this.initElement(a,b);this.addClickHandler(a,e);f.appendChild(a);return a};Toolbar.prototype.initElement=function(a,b){null!=b&&a.setAttribute("title",b);this.addEnabledState(a)};Toolbar.prototype.addEnabledState=function(a){var b=a.className;a.setEnabled=function(e){a.enabled=e;a.className=e?b:b+" mxDisabled"};a.setEnabled(!0)};
@@ -3752,17 +3752,17 @@ Toolbar.prototype.addClickHandler=function(a,b){null!=b&&(mxEvent.addListener(a,
Toolbar.prototype.createButton=function(a){var b=document.createElement("a");b.className="geButton";var e=document.createElement("div");null!=a&&"data:"==a.substring(0,5)&&(e.className="geAdaptiveAsset",e.style.backgroundImage="url("+a+")",e.style.backgroundPosition="center center",e.style.backgroundRepeat="no-repeat",e.style.backgroundSize="18px",e.style.width="22px",e.style.height="20px");b.appendChild(e);return b};
Toolbar.prototype.createLabel=function(a,b){b=document.createElement("a");b.className="geLabel";mxUtils.write(b,a);return b};
Toolbar.prototype.addMenuHandler=function(a,b,e,f){if(null!=e){var h=this.editorUi.editor.graph,d=null,g=!0;mxEvent.addListener(a,"click",mxUtils.bind(this,function(m){if(g&&(null==a.enabled||a.enabled)){h.popupMenuHandler.hideMenu();d=new mxPopupMenu(e);d.smartSeparators=!0;d.div.className+=" geToolbarMenu";d.showDisabled=f;d.labels=b;d.autoExpand=!0;!b&&d.div.scrollHeight>d.div.clientHeight&&(d.div.style.width="40px");d.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(d,
-arguments);this.editorUi.resetCurrentMenu();d.destroy()});var p=mxUtils.getOffset(a);d.popup(p.x,p.y+a.offsetHeight,null,m);this.editorUi.setCurrentMenu(d,a)}g=!0;mxEvent.consume(m)}));mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(m){g=null==d||null==d.div||null==d.div.parentNode;m.preventDefault()}))}};Toolbar.prototype.destroy=function(){null!=this.gestureHandler&&(mxEvent.removeGestureListeners(document,this.gestureHandler),this.gestureHandler=null)};var OpenDialog=function(){var a=document.createElement("iframe");a.style.backgroundColor="transparent";a.allowTransparency="true";a.style.borderStyle="none";a.style.borderWidth="0px";a.style.overflow="hidden";a.style.maxWidth="100%";a.frameBorder="0";a.setAttribute("width",(Editor.useLocalStorage?640:320)+"px");a.setAttribute("height",(Editor.useLocalStorage?480:220)+"px");a.setAttribute("src",OPEN_FORM);this.container=a},ColorPicker=function(){function a(E,D,G){if(null==E)return[G,G,G];var J=Math.floor(E),
+arguments);this.editorUi.resetCurrentMenu();d.destroy()});var q=mxUtils.getOffset(a);d.popup(q.x,q.y+a.offsetHeight,null,m);this.editorUi.setCurrentMenu(d,a)}g=!0;mxEvent.consume(m)}));mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(m){g=null==d||null==d.div||null==d.div.parentNode;m.preventDefault()}))}};Toolbar.prototype.destroy=function(){null!=this.gestureHandler&&(mxEvent.removeGestureListeners(document,this.gestureHandler),this.gestureHandler=null)};var OpenDialog=function(){var a=document.createElement("iframe");a.style.backgroundColor="transparent";a.allowTransparency="true";a.style.borderStyle="none";a.style.borderWidth="0px";a.style.overflow="hidden";a.style.maxWidth="100%";a.frameBorder="0";a.setAttribute("width",(Editor.useLocalStorage?640:320)+"px");a.setAttribute("height",(Editor.useLocalStorage?480:220)+"px");a.setAttribute("src",OPEN_FORM);this.container=a},ColorPicker=function(){function a(E,D,G){if(null==E)return[G,G,G];var J=Math.floor(E),
L=G*(1-D);E=G*(1-D*(J%2?E-J:1-(E-J)));switch(J){case 6:case 0:return[G,E,L];case 1:return[E,G,L];case 2:return[L,G,E];case 3:return[L,E,G];case 4:return[E,L,G];case 5:return[G,L,E]}}mxEventSource.call(this);var b=document.createElement("div");b.style.overflow="visible";b.style.position="relative";b.style.top="0px";b.style.left="0px";b.style.width="230px";b.style.height="114px";var e=document.createElement("div");e.style.border="1px solid light-dark(black, white)";e.style.backgroundImage="url("+this.hsImage+
")";e.style.position="absolute";e.style.overflow="hidden";e.style.cursor="crosshair";e.style.width="181px";e.style.height="101px";e.style.left="6px";e.style.top="4px";var f=document.createElement("div");f.style.background="url("+this.crossImage+")";f.style.pointerEvents="none";f.style.position="absolute";f.style.width="15px";f.style.height="15px";f.style.left="-8px";f.style.top="-8px";var h=[0,0,1];e.appendChild(f);b.appendChild(e);sliderBox=document.createElement("div");sliderBox.style.position=
-"absolute";sliderBox.style.cursor="pointer";sliderBox.style.width="38px";sliderBox.style.height="110px";sliderBox.style.left="199px";sliderBox.style.top="4px";var d=document.createElement("div");d.style.border="1px solid light-dark(black, white)";d.style.pointerEvents="none";d.style.overflow="hidden";d.style.position="absolute";d.style.width="16px";d.style.height="101px";d.style.left="9px";d.style.top="0px";var g=!1,m=!1,p=mxUtils.bind(this,function(E){var D=Math.round(100*(1-h[1]));f.style.left=
+"absolute";sliderBox.style.cursor="pointer";sliderBox.style.width="38px";sliderBox.style.height="110px";sliderBox.style.left="199px";sliderBox.style.top="4px";var d=document.createElement("div");d.style.border="1px solid light-dark(black, white)";d.style.pointerEvents="none";d.style.overflow="hidden";d.style.position="absolute";d.style.width="16px";d.style.height="101px";d.style.left="9px";d.style.top="0px";var g=!1,m=!1,q=mxUtils.bind(this,function(E){var D=Math.round(100*(1-h[1]));f.style.left=
Math.round(h[0]/6*180)-8+"px";f.style.top=D-8+"px";D=d.childNodes;for(var G=a(h[0],h[1],1),J=0;J<D.length;J++)D[J].style.backgroundColor="rgb("+G[0]*(1-J/D.length)*255+", "+G[1]*(1-J/D.length)*255+", "+G[2]*(1-J/D.length)*255+")";C.style.top=Math.round(100*(1-h[2]))-4+"px";D=a(h[0],h[1],h[2]);D="#"+("0"+Math.round(255*D[0]).toString(16)).slice(-2)+("0"+Math.round(255*D[1]).toString(16)).slice(-2)+("0"+Math.round(255*D[2]).toString(16)).slice(-2);1!=E&&this.fireEvent(new mxEventObject("change","color",
mxUtils.rgba2hex(D)))}),k=mxUtils.bind(this,function(E){0==h[2]&&(h[2]=1);g=!0;w(E)}),u=mxUtils.bind(this,function(E){m=!0;w(E)}),w=mxUtils.bind(this,function(E){if(g){var D=e.getBoundingClientRect(),G=mxEvent.getClientX(E)-D.left;E=mxEvent.getClientY(E)-D.top;f.style.left=G-8+"px";f.style.top=E-8+"px";G*=6/180;E=1-E/100;D=void 0;0>G&&(G=0);6<G&&(G=6);0>E&&(E=0);1<E&&(E=1);0>D&&(D=0);1<D&&(D=1);G=a(null==G?h[0]:h[0]=G,null==E?h[1]:h[1]=E,null==D?h[2]:h[2]=D);this.fromString("#"+("0"+Math.floor(255*
-G[0]).toString(16)).slice(-2)+("0"+Math.floor(255*G[1]).toString(16)).slice(-2)+("0"+Math.floor(255*G[2]).toString(16)).slice(-2))}else m&&(D=sliderBox.getBoundingClientRect(),E=mxEvent.getClientY(E)-D.top,h[2]=Math.max(Math.min(1,1-E/100),0),p())}),z=mxUtils.bind(this,function(){g=m=!1});mxEvent.addGestureListeners(e,k);mxEvent.addGestureListeners(sliderBox,u);mxEvent.addGestureListeners(b,null,w,z);mxEvent.addListener(b,"mouseleave",z);for(k=0;101>k;k+=4)u=document.createElement("div"),u.style.height=
+G[0]).toString(16)).slice(-2)+("0"+Math.floor(255*G[1]).toString(16)).slice(-2)+("0"+Math.floor(255*G[2]).toString(16)).slice(-2))}else m&&(D=sliderBox.getBoundingClientRect(),E=mxEvent.getClientY(E)-D.top,h[2]=Math.max(Math.min(1,1-E/100),0),q())}),z=mxUtils.bind(this,function(){g=m=!1});mxEvent.addGestureListeners(e,k);mxEvent.addGestureListeners(sliderBox,u);mxEvent.addGestureListeners(b,null,w,z);mxEvent.addListener(b,"mouseleave",z);for(k=0;101>k;k+=4)u=document.createElement("div"),u.style.height=
"4px",u.style.pointerEvents="none",d.appendChild(u);b.appendChild(d);var C=document.createElement("div");C.style.background="url("+this.arrowImage+")";C.style.position="absolute";C.style.pointerEvents="none";C.style.width="7px";C.style.height="11px";C.style.left="2px";C.style.top="-3px";sliderBox.appendChild(C);sliderBox.appendChild(d);b.appendChild(sliderBox);this.fromString=function(E,D){D=null!=D?D:!1;if(null==E||""==E||mxUtils.isVarColor(E)||E==mxConstants.NONE)E="#ffffff",D=!0;var G=mxUtils.parseColor(E);
-E=G.r/255;var J=G.g/255,L=G.b/255,Q=Math.min(Math.min(E,J),L);G=Math.max(Math.max(E,J),L);var N=G-Q;0===N?E=[null,0,G]:(E=E===Q?3+(L-J)/N:J===Q?5+(E-L)/N:1+(J-E)/N,E=[6===E?0:E,N/G,G]);null!=E[0]&&(h[0]=E[0]);0!=E[2]&&(h[1]=E[1]);h[2]=E[2];p(D)};this.fromString("#ffffff");this.div=b};mxUtils.extend(ColorPicker,mxEventSource);ColorPicker.prototype.hsImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALUAAABlCAIAAACEDzXRAAAKQ0lEQVR42u2d23IjKwxFBeRh5v8/9uQlzXlI2gGELoCEm6pxubp6PI69WoV3C20uIQPAH4A/AH/p41/pDcTxP4BPGDtq3vYJGPpv8craeRdo/fyTI8ZhHnodOGgcV/3rnx8QI0SABO2xfAbiCfVR8Wj+CD8jenbRJNyGOxLoAaH1iLu4EUEHAv1+MsQ4zLE4AiIOcpibv4u9OET6+cP4ASnJ1JH4/G60A9km+GbBxLlpKAkADoR2JnaBrvWD/x1GCZn9EYLEHqVfI6Efx0D7E9tDF/rBSJ54l8FqTUse0J+EvxPrdK0fD4aOLXQi7zyGxMaRvvWjjH2U8o9I44OKnf+wyCpHoR/Phk6d/COq8481YrNI3/qR2B+kMl1Fl6J8o/JrU/GEA6HdiB2ha/0YBVx7rFwNHAj9JuIl6EI/qKyJug4Yvg7xA0QEpB8nQe8itoQu9EOT8M3mTsqUSUzykH6cBO1PbA9d91+ShDzV9xrtcgW21IT6L0yfcS90FKCdw+wS6Q9ISWjVfLTVVT2mdiPGGRduFKWm7dBStWlLmI0j/QExdgp7gT5qCu2BLKiLqtc94hI7PB8auQP4KuyIvSJ960fUqXWcd2F48Khr1bHSj2dDp/afmg7tMrFxpG/9mHMFuqrH3spFw0s0Bgr9OAzamdgFutaPpMuqo6WVEXWJdSL14xhof2J76MKfS2yXWGOVB1WXXGOVdxFSx587CXoLsTE0689RH7VW4RMLeKI9wPpzz4XeS2wDzdbXR52AWStjwiSAA6HdiB2h1f6cqT0whzzuzz0LejuxATTy90Xt40v7CzdGRvKS4O/zQ0AiXaRW5x/dv4vS4A/a308LYR5pFquRRvlHIrKWoCj5woCVId4eR/KPNDjURg2tdEC7rSQN5B9DYR70X5YivVxft7AyrOvrD4V2JnaBJurr+qpemLEywlRhT6qvPx16C7ExdK0fSjcj0maAzsqgBt7rfIxGP46B9iT2gi70I842bNj0U4wd/WAG/L5VP3p0W4iNoYv6Oh6eoJmSMW5laIzF8iT1TtgeV9RZoZ7QvdEUzsQu0CP+HOMKDFoZvDFg6s89CNqf2B5a4e8Hts84W0pgeohBtspBXYp8H3Tk/H23MBtHuvbn5mp7dlU9TUkP+XNJMabzHdCIbnuYDSItzZ+bdgUWrAwNPhwInRxw1/wXuYGj+4vo7flboRpjEQ6EjgojYK9/K04NFfNTauEBypXQWQLAfqQoHl9CfvpQ6C3ExtC9/q2YW2u6X1JWzfsYFPKX3L99LrQ/sT10XR+jKh+UN2AxlDOyXfLQaxxf/fkvT4d2JnaBZv258M6h4IFu2Em7/sezoLcQG0Mjfy6xrqLnVBLGWHw1i69WP5LCCn0TNEL3DLNXpCV/n5oo5jAVLY5Em6i8Pwm6uSNuCrNxpNX+nDira20qqyZriv384xhoZ2IX6Lr/wg8eiwpXYGQqPEgjsBrX+er3X46B9ie2h6bX/4i6IfcLS2mIY++7TfoCuLj6hwgN89CwBJ3Gx8rOVsn0kQ48tDS/4X1L8SzMb3BbkGdtwsD05AbP9YOU8xui+uljZei/P/3qx2HQbsSO0Ar/lveHLZYCVK4GeN1P5N+eAb2R2Aya9ueUY+8dlhLtdhWvgfEfz4AeGf9hR2wcaeTPpacvRdzLTx8J/Qq1Ij995PrJ3/mp0p8LO5YyF0s215g/9yxoZ2IXaLo+FiwtgTlvIAznp4+G3khsBk3Pf5mYvqOwMqZnNnw3i9cRDoT2JPaCZuvreskDuXkHxfQMvfbBgdBbiI2hC/3QLCg6lESZZkrfJ7nSj3gWNEMcRkYJsf5L0BXENBl1WV8/aquMLM9/eSJ0UtxZmFGGg4MigZ75ovHnvsOcUX09zRbzjCrU/K/Rev0gT2i2vu4cZrNI1+sH2e49Yb3lRC6e9fSS9ETohjj7hdkx0rQ/57/rxIrhBQdCv494Hlrtz1lo30Qjz1z+cRh02ndTNIMm1j8NxtmePs+76i+/esJHrH/6dGh/YntoRf9l2RtQWgJXzY4bdtbqx0OhnYldoHv7I79jf4+rOGGaRWr14yToLcTG0Ky/v32rjAsdX9S5vgI4ENqT2Asa7Z/9vq0yStiGNNVHkOe/RGmqwBQ0jEDHFpoJ85BLN+jPaRoHGWl2/2yx3msxVRHjZ0Td4GfV/Bf9bCM1dBiBfrHeJ1HR6dKEedDf5yPdBLilp/efC3Ribb1VxlUHGQe8iTb0598+Hdqf2B6a3b9SOerezsoIBWaJ3IBn1fp0j4PeQmwMzc5/idLK3UZWRkmKX2zA4Vc/DoPeSGwGrdvfY24RpKmVjrLuCQdCuxE7Qkv64TZ3Z44dVPrxUOh3EK9C1/lHGpz7ZzpVsYTF7K8Hyj+Ogd5FbAk9uL9H9LIyYg821sjo13gYtD+xPbRU/9Ds/b1sZTTIr5OStMGHA6GdiV2gUf2UmQcfJdUbXOoe6HoN1A0b2uQD4EBosXJqQTwKnXvXAEX+oZlfGaS9ewetDGCLeV1exH4e9Mr+2TDpv2iggYFW+LdBsTbngv/yUroGH0jleEX7MOgtxMbQ7PzKoMuajKyM8pYIiB194HnQzsQu0Gp/LvpulVHylsgK/TgG2p/YHrqXf6T3bJUBhfxFWUDPg95CbAytm/+ycasM9WOxWu0PnTniLWE2iLRi/4Z3bJXRvY76s0+Arl93I3aMNOHPBce2PdSkL7Kpnwe9l9gGutCPoFgkUtytXAGbex0vKCznSOs00o+ToLcQG0N/QErCrG6jrTIynVUDwo896vCzssPrNnAYtD+xPfR9fwmKeu/CVhm5OAn1STPkvhxBW1KXjeP60Y/DoJ2JXaAL/RCPy+PXc80L9d7OV294dVPbC/fb4EDoLcTG0IV+TCDrrIxMHIFg512BWj9OgvYk9oK+9SMoZG55q/JMiGS40/sLjacu28T3MVfd0Aha+u3QJXr+0Q//MBtHutaPQOzh3H0RBoZS5OJ/MjqJ9x2vQb7qgSuvX0StH0+FLptzrvTDh9gl0oV+iAbi2lAsqNmbK3yBAyLNdbRzW8Y6Btqf2B76A2IURE2zZY16KGfZlwqofJSL4feABka+xCNX+ekx0LuILaFr/Zit7s4ZA7y5Qg2sDr/t4zDodxCvQt/6occctDKGriMPzH85D9qN2BG61g/QwcLSVDSGl78C6LePY6A3EptBf0BKcjWWH/GqyJqoxKnMufEVBLJxAJwJ7U9sDH3fX0CxnIB4orMyuilTyRh6g+0bfDgQ2p/YHrrQD+jV6qb/SdRrMit8TRWwyEabxgFwJrQnsQt0rR+LR3VqFNiGHRBv73ge9EZiM+haPyicuRcVmIxzAMTMl9wfi3sGtBuxF3ShH92C29yJTteU+ohbRrZk3Qe9hdgY+tYPnOqanA+mTN33ZGKE06HQbsQu0LV+MF8+94rU5dK8B8/KyJaI+6D9ie2hC/3Q12QnSnYLn5p9P/6d0D7EltAh5wz/Hv8exON/LUjHOuz5CksAAAAASUVORK5CYII=";
+E=G.r/255;var J=G.g/255,L=G.b/255,Q=Math.min(Math.min(E,J),L);G=Math.max(Math.max(E,J),L);var N=G-Q;0===N?E=[null,0,G]:(E=E===Q?3+(L-J)/N:J===Q?5+(E-L)/N:1+(J-E)/N,E=[6===E?0:E,N/G,G]);null!=E[0]&&(h[0]=E[0]);0!=E[2]&&(h[1]=E[1]);h[2]=E[2];q(D)};this.fromString("#ffffff");this.div=b};mxUtils.extend(ColorPicker,mxEventSource);ColorPicker.prototype.hsImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALUAAABlCAIAAACEDzXRAAAKQ0lEQVR42u2d23IjKwxFBeRh5v8/9uQlzXlI2gGELoCEm6pxubp6PI69WoV3C20uIQPAH4A/AH/p41/pDcTxP4BPGDtq3vYJGPpv8craeRdo/fyTI8ZhHnodOGgcV/3rnx8QI0SABO2xfAbiCfVR8Wj+CD8jenbRJNyGOxLoAaH1iLu4EUEHAv1+MsQ4zLE4AiIOcpibv4u9OET6+cP4ASnJ1JH4/G60A9km+GbBxLlpKAkADoR2JnaBrvWD/x1GCZn9EYLEHqVfI6Efx0D7E9tDF/rBSJ54l8FqTUse0J+EvxPrdK0fD4aOLXQi7zyGxMaRvvWjjH2U8o9I44OKnf+wyCpHoR/Phk6d/COq8481YrNI3/qR2B+kMl1Fl6J8o/JrU/GEA6HdiB2ha/0YBVx7rFwNHAj9JuIl6EI/qKyJug4Yvg7xA0QEpB8nQe8itoQu9EOT8M3mTsqUSUzykH6cBO1PbA9d91+ShDzV9xrtcgW21IT6L0yfcS90FKCdw+wS6Q9ISWjVfLTVVT2mdiPGGRduFKWm7dBStWlLmI0j/QExdgp7gT5qCu2BLKiLqtc94hI7PB8auQP4KuyIvSJ960fUqXWcd2F48Khr1bHSj2dDp/afmg7tMrFxpG/9mHMFuqrH3spFw0s0Bgr9OAzamdgFutaPpMuqo6WVEXWJdSL14xhof2J76MKfS2yXWGOVB1WXXGOVdxFSx587CXoLsTE0689RH7VW4RMLeKI9wPpzz4XeS2wDzdbXR52AWStjwiSAA6HdiB2h1f6cqT0whzzuzz0LejuxATTy90Xt40v7CzdGRvKS4O/zQ0AiXaRW5x/dv4vS4A/a308LYR5pFquRRvlHIrKWoCj5woCVId4eR/KPNDjURg2tdEC7rSQN5B9DYR70X5YivVxft7AyrOvrD4V2JnaBJurr+qpemLEywlRhT6qvPx16C7ExdK0fSjcj0maAzsqgBt7rfIxGP46B9iT2gi70I842bNj0U4wd/WAG/L5VP3p0W4iNoYv6Oh6eoJmSMW5laIzF8iT1TtgeV9RZoZ7QvdEUzsQu0CP+HOMKDFoZvDFg6s89CNqf2B5a4e8Hts84W0pgeohBtspBXYp8H3Tk/H23MBtHuvbn5mp7dlU9TUkP+XNJMabzHdCIbnuYDSItzZ+bdgUWrAwNPhwInRxw1/wXuYGj+4vo7flboRpjEQ6EjgojYK9/K04NFfNTauEBypXQWQLAfqQoHl9CfvpQ6C3ExtC9/q2YW2u6X1JWzfsYFPKX3L99LrQ/sT10XR+jKh+UN2AxlDOyXfLQaxxf/fkvT4d2JnaBZv258M6h4IFu2Em7/sezoLcQG0Mjfy6xrqLnVBLGWHw1i69WP5LCCn0TNEL3DLNXpCV/n5oo5jAVLY5Em6i8Pwm6uSNuCrNxpNX+nDira20qqyZriv384xhoZ2IX6Lr/wg8eiwpXYGQqPEgjsBrX+er3X46B9ie2h6bX/4i6IfcLS2mIY++7TfoCuLj6hwgN89CwBJ3Gx8rOVsn0kQ48tDS/4X1L8SzMb3BbkGdtwsD05AbP9YOU8xui+uljZei/P/3qx2HQbsSO0Ar/lveHLZYCVK4GeN1P5N+eAb2R2Aya9ueUY+8dlhLtdhWvgfEfz4AeGf9hR2wcaeTPpacvRdzLTx8J/Qq1Ij995PrJ3/mp0p8LO5YyF0s215g/9yxoZ2IXaLo+FiwtgTlvIAznp4+G3khsBk3Pf5mYvqOwMqZnNnw3i9cRDoT2JPaCZuvreskDuXkHxfQMvfbBgdBbiI2hC/3QLCg6lESZZkrfJ7nSj3gWNEMcRkYJsf5L0BXENBl1WV8/aquMLM9/eSJ0UtxZmFGGg4MigZ75ovHnvsOcUX09zRbzjCrU/K/Rev0gT2i2vu4cZrNI1+sH2e49Yb3lRC6e9fSS9ETohjj7hdkx0rQ/57/rxIrhBQdCv494Hlrtz1lo30Qjz1z+cRh02ndTNIMm1j8NxtmePs+76i+/esJHrH/6dGh/YntoRf9l2RtQWgJXzY4bdtbqx0OhnYldoHv7I79jf4+rOGGaRWr14yToLcTG0Ky/v32rjAsdX9S5vgI4ENqT2Asa7Z/9vq0yStiGNNVHkOe/RGmqwBQ0jEDHFpoJ85BLN+jPaRoHGWl2/2yx3msxVRHjZ0Td4GfV/Bf9bCM1dBiBfrHeJ1HR6dKEedDf5yPdBLilp/efC3Ribb1VxlUHGQe8iTb0598+Hdqf2B6a3b9SOerezsoIBWaJ3IBn1fp0j4PeQmwMzc5/idLK3UZWRkmKX2zA4Vc/DoPeSGwGrdvfY24RpKmVjrLuCQdCuxE7Qkv64TZ3Z44dVPrxUOh3EK9C1/lHGpz7ZzpVsYTF7K8Hyj+Ogd5FbAk9uL9H9LIyYg821sjo13gYtD+xPbRU/9Ds/b1sZTTIr5OStMGHA6GdiV2gUf2UmQcfJdUbXOoe6HoN1A0b2uQD4EBosXJqQTwKnXvXAEX+oZlfGaS9ewetDGCLeV1exH4e9Mr+2TDpv2iggYFW+LdBsTbngv/yUroGH0jleEX7MOgtxMbQ7PzKoMuajKyM8pYIiB194HnQzsQu0Gp/LvpulVHylsgK/TgG2p/YHrqXf6T3bJUBhfxFWUDPg95CbAytm/+ycasM9WOxWu0PnTniLWE2iLRi/4Z3bJXRvY76s0+Arl93I3aMNOHPBce2PdSkL7Kpnwe9l9gGutCPoFgkUtytXAGbex0vKCznSOs00o+ToLcQG0N/QErCrG6jrTIynVUDwo896vCzssPrNnAYtD+xPfR9fwmKeu/CVhm5OAn1STPkvhxBW1KXjeP60Y/DoJ2JXaAL/RCPy+PXc80L9d7OV294dVPbC/fb4EDoLcTG0IV+TCDrrIxMHIFg512BWj9OgvYk9oK+9SMoZG55q/JMiGS40/sLjacu28T3MVfd0Aha+u3QJXr+0Q//MBtHutaPQOzh3H0RBoZS5OJ/MjqJ9x2vQb7qgSuvX0StH0+FLptzrvTDh9gl0oV+iAbi2lAsqNmbK3yBAyLNdbRzW8Y6Btqf2B76A2IURE2zZY16KGfZlwqofJSL4feABka+xCNX+ekx0LuILaFr/Zit7s4ZA7y5Qg2sDr/t4zDodxCvQt/6occctDKGriMPzH85D9qN2BG61g/QwcLSVDSGl78C6LePY6A3EptBf0BKcjWWH/GqyJqoxKnMufEVBLJxAJwJ7U9sDH3fX0CxnIB4orMyuilTyRh6g+0bfDgQ2p/YHrrQD+jV6qb/SdRrMit8TRWwyEabxgFwJrQnsQt0rR+LR3VqFNiGHRBv73ge9EZiM+haPyicuRcVmIxzAMTMl9wfi3sGtBuxF3ShH92C29yJTteU+ohbRrZk3Qe9hdgY+tYPnOqanA+mTN33ZGKE06HQbsQu0LV+MF8+94rU5dK8B8/KyJaI+6D9ie2hC/3Q12QnSnYLn5p9P/6d0D7EltAh5wz/Hv8exON/LUjHOuz5CksAAAAASUVORK5CYII=";
ColorPicker.prototype.crossImage="data:image/gif;base64,R0lGODlhDwAPAKEBAAAAAP///////////yH5BAEKAAIALAAAAAAPAA8AAAIklB8Qx53b4otSUWcvyiz4/4AeQJbmKY4p1HHapBlwPL/uVRsFADs=";ColorPicker.prototype.arrowImage="data:image/gif;base64,R0lGODlhBwALAKECAAAAAP///6g8eKg8eCH5BAEKAAIALAAAAAAHAAsAAAITTIQYcLnsgGxvijrxqdQq6DRJAQA7";
-var ColorDialog=function(a,b,e,f,h,d,g){function m(ca){return mxUtils.color2hex("#"+ca).substring(1).toUpperCase()}function p(){Z.src="none"==V.style.display?Editor.arrowRightImage:Editor.arrowDownImage}function k(ca){V.style.display=ca||"none"==V.style.display?"flex":"none";p()}function u(ca){""==ca.value&&null!=L&&N?ca.style.background=ca==P?L.dark:L.light:""==ca.value||ca.value==mxConstants.NONE||mxUtils.isVarColor(ca.value)?ca.style.background="transparent":ca.style.background="#"+ca.value;ca.style.color=
+var ColorDialog=function(a,b,e,f,h,d,g){function m(ca){return mxUtils.color2hex("#"+ca).substring(1).toUpperCase()}function q(){Z.src="none"==V.style.display?Editor.arrowRightImage:Editor.arrowDownImage}function k(ca){V.style.display=ca||"none"==V.style.display?"flex":"none";q()}function u(ca){""==ca.value&&null!=L&&N?ca.style.background=ca==P?L.dark:L.light:""==ca.value||ca.value==mxConstants.NONE||mxUtils.isVarColor(ca.value)?ca.style.background="transparent":ca.style.background="#"+ca.value;ca.style.color=
"transparent"==ca.style.background?"light-dark(#000000, #ffffff)":mxUtils.isDarkColor(ca.style.background)?"#ffffff":"#000000"}function w(){u(U);u(P)}function z(ca){ca?g&&null!=L?(U.value=L.light.substring(1).toUpperCase(),ca=!1):(U.value="",P.value="",T.value="automatic",U.setAttribute("placeholder",mxResources.get("useBlackAndWhite")),P.setAttribute("title",mxResources.get("useBlackAndWhite")),U.setAttribute("title",mxResources.get("useBlackAndWhite"))):(""==U.value&&null!=L&&(U.value=L.light.substring(1).toUpperCase()),
U.removeAttribute("placeholder"),U.removeAttribute("title"),""==P.value&&null!=L&&(P.value=L.dark.substring(1).toUpperCase()),P.removeAttribute("placeholder"),P.removeAttribute("title"),ca=!1);N=ca}function C(ca){var H=ca.value,ea=H.toLowerCase();null==h||""!=H&&"automatic"!=ea&&"default"!=ea&&ea!=mxResources.get("default").toLowerCase()&&ea!=mxResources.get("automatic").toLowerCase()||null==L?(ca.value==mxConstants.NONE||mxUtils.isVarColor(ca.value)||(ca.value=m(ca.value),sa.fromString("#"+ca.value)),
z(!1),ca!=P||U.value==mxConstants.NONE&&P.value==mxConstants.NONE||(T.value="custom"),ca==U&&"automatic"==T.value&&(U.value==mxConstants.NONE?P.value=mxConstants.NONE:mxUtils.isVarColor(U.value)?P.value=U.value:P.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+ca.value)).substring(1).toUpperCase()),w()):ia.click()}function E(){var ca=U.value,H=P.value;if(N&&null!=L||(/(^#?[a-zA-Z0-9]*$)/.test(ca)||mxUtils.isVarColor(ca))&&(/(^#?[a-zA-Z0-9]*$)/.test(H)||mxUtils.isVarColor(H))){if(N)ca="default";
@@ -3771,95 +3771,95 @@ ColorDialog.addRecentColor(ca.substring(1),12),"none"!=ca||"none"!=H)ca=ca==mxCo
["FFFFFF"]:ColorDialog.recentColors,11,"FFFFFF",!0);ca.style.marginBottom="8px";return ca}function J(ca){13==ca.keyCode&&(C(mxEvent.getSource(ca)),E())}var L=null!=d?mxUtils.getLightDarkColor(d,null,null,g):null,Q=a.editor.graph;this.editorUi=a;var N=!1;"default"==b||"transparent"==b||b==mxConstants.NONE||mxUtils.isVarColor(b)||mxUtils.isHexColor(b)||mxUtils.isRgbColor(b)||mxUtils.isLightDarkColor(b)||(b=mxUtils.color2hex(b));var U=document.createElement("input");U.style.textOverflow="ellipsis";U.style.margin=
"0 0 0 4px";U.style.width="100%";d=document.createElement("div");d.style.padding="0 4px";var Y=document.createElement("div");Y.style.display="flex";Y.style.alignItems="center";d.appendChild(Y);var P=document.createElement("input");P.style.textOverflow="ellipsis";P.style.margin="0 4px";P.style.maxWidth="60px";P.style.width="100%";var T=document.createElement("select");T.style.textOverflow="ellipsis";T.style.width="100%";var K=document.createElement("option");K.setAttribute("value","automatic");mxUtils.write(K,
mxResources.get("automatic"));T.appendChild(K);K=document.createElement("option");K.setAttribute("value","custom");mxUtils.write(K,mxResources.get("userDefined"));T.appendChild(K);T.value=mxUtils.isLightDarkColor(b)?"custom":"automatic";var V=document.createElement("div");V.style.padding="0 6px 0 6px";K=document.createElement("img");K.setAttribute("title",mxResources.get("dark"));K.className="geAdaptiveAsset";K.src=Editor.thinDarkImage;K.style.width="20px";V.appendChild(K);mxEvent.addListener(K,"click",
-function(){P.focus()});V.appendChild(P);V.appendChild(T);V.style.display="flex";V.style.alignItems="center";K=document.createElement("div");K.style.display="flex";K.style.alignItems="center";K.style.userSelect="none";K.style.cursor="pointer";K.style.padding="2px 0 2px 0";var Z=document.createElement("img");Z.setAttribute("title",mxResources.get("dark"));Z.className="geAdaptiveAsset";Z.style.marginLeft="-2px";K.appendChild(Z);mxUtils.write(K,mxResources.get("advanced"));p();mxEvent.addListener(K,"click",
-function(){k();p();ColorDialog.collapsed="none"==V.style.display});var ia=mxUtils.button("",function(){z(!0);w();O.focus();""==O.value&&null!=L&&N&&sa.fromString(O==P?L.dark:L.light,!0)});mxEvent.addListener(T,"change",function(){"automatic"==T.value?(U.focus(),C(U)):(z(!1),mxUtils.isVarColor(P.value)||(P.value=N&&null!=L?L.dark.substring(1).toUpperCase():P.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+U.value)).substring(1).toUpperCase()),P.focus(),D());w()});mxEvent.addListener(U,"change",
+function(){P.focus()});V.appendChild(P);V.appendChild(T);V.style.display="flex";V.style.alignItems="center";K=document.createElement("div");K.style.display="flex";K.style.alignItems="center";K.style.userSelect="none";K.style.cursor="pointer";K.style.padding="2px 0 2px 0";var Z=document.createElement("img");Z.setAttribute("title",mxResources.get("dark"));Z.className="geAdaptiveAsset";Z.style.marginLeft="-2px";K.appendChild(Z);mxUtils.write(K,mxResources.get("advanced"));q();mxEvent.addListener(K,"click",
+function(){k();q();ColorDialog.collapsed="none"==V.style.display});var ia=mxUtils.button("",function(){z(!0);w();O.focus();""==O.value&&null!=L&&N&&sa.fromString(O==P?L.dark:L.light,!0)});mxEvent.addListener(T,"change",function(){"automatic"==T.value?(U.focus(),C(U)):(z(!1),mxUtils.isVarColor(P.value)||(P.value=N&&null!=L?L.dark.substring(1).toUpperCase():P.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+U.value)).substring(1).toUpperCase()),P.focus(),D());w()});mxEvent.addListener(U,"change",
function(){C(U)});mxEvent.addListener(P,"change",function(){C(P)});var oa=null!=e?e:this.createApplyFunction();this.init=function(){D()};var sa=new ColorPicker,O=Editor.isDarkMode()&&("auto"==Q.getAdaptiveColors()||"simple"==Q.getAdaptiveColors()&&"custom"==T.value)&&!g?P:U;mxEvent.addListener(U,"focus",function(){O=U});mxEvent.addListener(P,"focus",function(){O=P});sa.addListener("change",function(ca,H){ca=H.getProperty("color").substring(1).toUpperCase();O.value.toUpperCase()!=ca&&(O.value=ca,C(O),
window.setTimeout(function(){O.focus()},0))});e=document.createElement("div");e.appendChild(sa.div);var X=document.createElement("div");X.style.display="flex";X.style.flexFlow="row wrap";X.style.justifyContent="center";X.style.paddingTop="10px";var ba=mxUtils.bind(this,function(ca,H,ea,ra){H=null!=H?H:12;var qa=document.createElement("table");qa.style.borderCollapse="collapse";qa.setAttribute("cellspacing","0");qa.style.marginBottom="20px";qa.style.cellSpacing="0px";qa.style.marginLeft="1px";var Pa=
document.createElement("tbody");qa.appendChild(Pa);for(var ma=ca.length/H,Ba=0;Ba<ma;Ba++){for(var Ca=document.createElement("tr"),Ja=0;Ja<H;Ja++)mxUtils.bind(this,function(Ia){var Da=document.createElement("td");Da.style.border="0px solid black";Da.style.padding="0px";Da.style.width="16px";Da.style.height="16px";null==Ia&&(Ia=ea);if(null!=Ia){Da.style.borderWidth="1px";if(Ia==mxConstants.NONE||null==Ia)Da.style.background="url('"+Dialog.prototype.noColorImage+"')";else if(mxUtils.isLightDarkColor(Ia)){var Ga=
mxUtils.getLightDarkColor(Ia);Da.style.background="linear-gradient(to right bottom, "+Ga.cssText+" 50%, "+mxUtils.invertLightDarkColor(Ga).cssText+" 50.3%)"}else Da.style.backgroundColor="#"+Ia;Ga=this.colorNames[String(Ia).toUpperCase()];null!=Ga&&Da.setAttribute("title",Ga)}Ca.appendChild(Da);null!=Ia&&(Da.style.cursor="pointer",mxEvent.addListener(Da,"click",function(){if(Ia==mxConstants.NONE){O==P&&P.value==mxConstants.NONE?U.value=mxConstants.NONE:O.value=mxConstants.NONE;if(O==U||O==P&&U.value==
mxConstants.NONE)T.value="automatic";C(O);window.setTimeout(function(){O.focus()},0)}else if(mxUtils.isLightDarkColor(Ia)){k(!0);T.value="custom";var ta=mxUtils.getLightDarkColor(Ia);U.value=ta.light.substring(1).toUpperCase();P.value=ta.dark.substring(1).toUpperCase();C(U);C(P);O==U?sa.fromString(ta.light):sa.fromString(ta.dark)}else sa.fromString("#"+Ia)}),mxEvent.addListener(Da,"dblclick",E))})(ca[Ba*H+Ja]);Pa.appendChild(Ca)}ra&&(ca=document.createElement("td"),ca.setAttribute("title",mxResources.get("reset")),
ca.className="geAdaptiveAsset",ca.style.border="1px solid black",ca.style.padding="0px",ca.style.width="16px",ca.style.height="16px",ca.style.backgroundImage="url('"+Editor.crossImage+"')",ca.style.backgroundPosition="center center",ca.style.backgroundSize="14px 14px",ca.style.backgroundRepeat="no-repeat",ca.style.cursor="pointer",Ca.appendChild(ca),mxEvent.addListener(ca,"click",function(){ColorDialog.resetRecentColors();qa.parentNode.replaceChild(G(),qa)}));X.appendChild(qa);return qa});g||(d.appendChild(K),
-!ColorDialog.collapsed||Editor.isDarkMode()&&"auto"==Q.getAdaptiveColors()||"automatic"!=T.value||(V.style.display="none",p()),K=document.createElement("img"),K.setAttribute("title",mxResources.get("light")),K.className="geAdaptiveAsset",K.src=Editor.thinLightImage,K.style.width="20px",Y.appendChild(K),mxEvent.addListener(K,"click",function(){U.focus()}));Y.appendChild(U);null!=L&&(ia.setAttribute("title",mxResources.get(g?"default":"useBlackAndWhite")),ia.style.cursor="pointer",ia.style.position=
+!ColorDialog.collapsed||Editor.isDarkMode()&&"auto"==Q.getAdaptiveColors()||"automatic"!=T.value||(V.style.display="none",q()),K=document.createElement("img"),K.setAttribute("title",mxResources.get("light")),K.className="geAdaptiveAsset",K.src=Editor.thinLightImage,K.style.width="20px",Y.appendChild(K),mxEvent.addListener(K,"click",function(){U.focus()}));Y.appendChild(U);null!=L&&(ia.setAttribute("title",mxResources.get(g?"default":"useBlackAndWhite")),ia.style.cursor="pointer",ia.style.position=
"relative",ia.style.marginLeft="4px",ia.innerText="",Q=document.createElement("div"),Q.style.display="inline-block",Q.style.verticalAlign="middle",Q.style.borderStyle="solid",Q.style.borderWidth="1px",Q.style.marginTop="-2px",Q.style.width="12px",Q.style.height="12px",g?Q.style.backgroundColor=L.light:Q.style.backgroundImage="linear-gradient(to right bottom, "+L.cssText+" 50%, "+mxUtils.invertLightDarkColor(L).cssText+" 50.3%)",ia.appendChild(Q),Y.appendChild(ia),mxEvent.addListener(ia,"dblclick",
E));var da=document.createElement("input");da.setAttribute("type","color");da.style.position="relative";da.style.visibility="hidden";da.style.top="10px";da.style.width="0px";da.style.height="0px";da.style.border="none";e.style.whiteSpace="nowrap";Y.appendChild(da);Q=mxUtils.button("",function(){document.activeElement==da?U.focus():(da.value="#"+U.value,da.click())});Q.style.cursor="pointer";K=document.createElement("img");K.src=Editor.colorDropperImage;K.className="geAdaptiveAsset";K.style.position=
"relative";K.style.verticalAlign="middle";K.style.marginTop="-2px";K.style.width="auto";K.style.height="14px";Q.appendChild(K);Y.appendChild(Q);e.appendChild(d);mxEvent.addListener(da,"change",function(){sa.fromString(da.value)});g||e.appendChild(V);G();d=ba(this.presetColors);d.style.marginBottom="8px";d=ba(this.defaultColors);d.style.marginBottom="16px";e.appendChild(X);d=document.createElement("div");d.style.display="flex";d.style.whiteSpace="nowrap";d.style.alignItems="center";d.style.justifyContent=
"end";a.isOffline()||d.appendChild(a.createHelpIcon("https://github.com/jgraph/drawio/discussions/4713"));Y=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=f&&f()});Y.className="geBtn";a.editor.cancelFirst&&d.appendChild(Y);Q=mxUtils.button(mxResources.get("apply"),E);Q.className="geBtn gePrimaryBtn";d.appendChild(Q);a.editor.cancelFirst||d.appendChild(Y);null!=b&&("default"==b?ia.click():(Y=mxUtils.getLightDarkColor(b),b==mxConstants.NONE||"transparent"==Y.light?U.value=
mxConstants.NONE:mxUtils.isVarColor(Y.light)?U.value=Y.light:(mxUtils.isRgbColor(Y.light)?Y.light=mxUtils.rgba2hex(Y.light):mxUtils.isHexColor(Y.light)||(Y.light="#"+m(Y.light)),U.value=Y.light.substring(1).toUpperCase()),b==mxConstants.NONE||"transparent"==Y.dark?P.value=mxConstants.NONE:mxUtils.isVarColor(Y.dark)?P.value=Y.dark:(mxUtils.isRgbColor(Y.dark)?Y.dark=mxUtils.rgba2hex(Y.dark):mxUtils.isHexColor(Y.dark)||(Y.dark="#"+m(Y.dark)),P.value=Y.dark.substring(1).toUpperCase()),sa.fromString(O.value,
-!0),w()));g||!ColorDialog.collapsed||"automatic"!=T.value||Editor.isDarkMode()||(V.style.display="none",p());e.appendChild(d);this.picker=sa;this.colorInput=U;mxEvent.addListener(U,"keypress",J);mxEvent.addListener(P,"keypress",J);mxEvent.addListener(e,"keydown",function(ca){27==ca.keyCode&&(a.hideDialog(),null!=f&&f(),mxEvent.consume(ca))});this.container=e};ColorDialog.prototype.presetColors="E6D0DE CDA2BE B5739D E1D5E7 C3ABD0 A680B8 D4E1F5 A9C4EB 7EA6E0 D5E8D4 9AC7BF 67AB9F D5E8D4 B9E0A5 97D077 FFF2CC FFE599 FFD966 FFF4C3 FFCE9F FFB570 F8CECC F19C99 EA6B66".split(" ");
+!0),w()));g||!ColorDialog.collapsed||"automatic"!=T.value||Editor.isDarkMode()||(V.style.display="none",q());e.appendChild(d);this.picker=sa;this.colorInput=U;mxEvent.addListener(U,"keypress",J);mxEvent.addListener(P,"keypress",J);mxEvent.addListener(e,"keydown",function(ca){27==ca.keyCode&&(a.hideDialog(),null!=f&&f(),mxEvent.consume(ca))});this.container=e};ColorDialog.prototype.presetColors="E6D0DE CDA2BE B5739D E1D5E7 C3ABD0 A680B8 D4E1F5 A9C4EB 7EA6E0 D5E8D4 9AC7BF 67AB9F D5E8D4 B9E0A5 97D077 FFF2CC FFE599 FFD966 FFF4C3 FFCE9F FFB570 F8CECC F19C99 EA6B66".split(" ");
ColorDialog.prototype.colorNames={};ColorDialog.prototype.defaultColors="none FFFFFF E6E6E6 CCCCCC B3B3B3 999999 808080 666666 4D4D4D 333333 1A1A1A 000000 FFCCCC FFE6CC FFFFCC E6FFCC CCFFCC CCFFE6 CCFFFF CCE5FF CCCCFF E5CCFF FFCCFF FFCCE6 FF9999 FFCC99 FFFF99 CCFF99 99FF99 99FFCC 99FFFF 99CCFF 9999FF CC99FF FF99FF FF99CC FF6666 FFB366 FFFF66 B3FF66 66FF66 66FFB3 66FFFF 66B2FF 6666FF B266FF FF66FF FF66B3 FF3333 FF9933 FFFF33 99FF33 33FF33 33FF99 33FFFF 3399FF 3333FF 9933FF FF33FF FF3399 FF0000 FF8000 FFFF00 80FF00 00FF00 00FF80 00FFFF 007FFF 0000FF 7F00FF FF00FF FF0080 CC0000 CC6600 CCCC00 66CC00 00CC00 00CC66 00CCCC 0066CC 0000CC 6600CC CC00CC CC0066 990000 994C00 999900 4D9900 009900 00994D 009999 004C99 000099 4C0099 990099 99004D 660000 663300 666600 336600 006600 006633 006666 003366 000066 330066 660066 660033 330000 331A00 333300 1A3300 003300 00331A 003333 001933 000033 190033 330033 33001A".split(" ");
ColorDialog.prototype.createApplyFunction=function(){return ColorDialog.createApplyFunction(this.editorUi,this.currentColorKey)};ColorDialog.createApplyFunction=function(a,b){return function(e){var f=a.editor.graph;f.getModel().beginUpdate();try{f.setCellStyles(b,e),a.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[e],"cells",f.getSelectionCells()))}finally{f.getModel().endUpdate()}}};ColorDialog.recentColors=[];
ColorDialog.addRecentColor=function(a,b){null!=a&&(mxUtils.remove(a,ColorDialog.recentColors),ColorDialog.recentColors.splice(0,0,a),ColorDialog.recentColors.length>=b&&ColorDialog.recentColors.pop())};ColorDialog.resetRecentColors=function(){ColorDialog.recentColors=[]};ColorDialog.collapsed=!0;
var AboutDialog=function(a){var b=document.createElement("div");b.setAttribute("align","center");var e=document.createElement("h3");mxUtils.write(e,mxResources.get("about")+" GraphEditor");b.appendChild(e);e=document.createElement("img");e.style.border="0px";e.setAttribute("width","176");e.setAttribute("width","151");e.setAttribute("src",IMAGE_PATH+"/logo.png");b.appendChild(e);mxUtils.br(b);mxUtils.write(b,"Powered by mxGraph "+mxClient.VERSION);mxUtils.br(b);e=document.createElement("a");e.setAttribute("href",
-"http://www.jgraph.com/");e.setAttribute("target","_blank");mxUtils.write(e,"www.jgraph.com");b.appendChild(e);mxUtils.br(b);mxUtils.br(b);e=mxUtils.button(mxResources.get("close"),function(){a.hideDialog()});e.className="geBtn gePrimaryBtn";b.appendChild(e);this.container=b},TextareaDialog=function(a,b,e,f,h,d,g,m,p,k,u,w,z,C,E){k=null!=k?k:!1;g=document.createElement("div");g.style.position="absolute";g.style.top="20px";g.style.bottom="20px";g.style.left="20px";g.style.right="20px";m=document.createElement("div");
+"http://www.jgraph.com/");e.setAttribute("target","_blank");mxUtils.write(e,"www.jgraph.com");b.appendChild(e);mxUtils.br(b);mxUtils.br(b);e=mxUtils.button(mxResources.get("close"),function(){a.hideDialog()});e.className="geBtn gePrimaryBtn";b.appendChild(e);this.container=b},TextareaDialog=function(a,b,e,f,h,d,g,m,q,k,u,w,z,C,E){k=null!=k?k:!1;g=document.createElement("div");g.style.position="absolute";g.style.top="20px";g.style.bottom="20px";g.style.left="20px";g.style.right="20px";m=document.createElement("div");
m.style.position="absolute";m.style.left="0px";m.style.right="0px";var D=m.cloneNode(!1),G=m.cloneNode(!1);m.style.top="0px";m.style.height="20px";D.style.top="20px";D.style.bottom="64px";G.style.bottom="0px";G.style.height="60px";G.style.textAlign="right";G.style.paddingTop="14px";G.style.boxSizing="border-box";mxUtils.write(m,b);g.appendChild(m);g.appendChild(D);g.appendChild(G);null!=E&&m.appendChild(E);var J=document.createElement("textarea");u?J.setAttribute("wrap","off"):J.style.wordBreak="break-all";
J.setAttribute("spellcheck","false");J.setAttribute("autocorrect","off");J.setAttribute("autocomplete","off");J.setAttribute("autocapitalize","off");mxUtils.write(J,e||"");J.style.resize="none";J.style.outline="none";J.style.position="absolute";J.style.boxSizing="border-box";J.style.top="0px";J.style.left="0px";J.style.height="100%";J.style.width="100%";this.textarea=J;this.init=function(){J.focus();J.scrollTop=0};D.appendChild(J);null==z||a.isOffline()||G.appendChild(a.createHelpIcon(z));if(null!=
-C)for(b=0;b<C.length;b++)(function(Q,N,U){Q=mxUtils.button(Q,function(Y){N(Y,J)});null!=U&&Q.setAttribute("title",U);Q.className="geBtn";G.appendChild(Q)})(C[b][0],C[b][1],C[b][2]);d=mxUtils.button(d||mxResources.get("cancel"),function(){a.hideDialog();null!=h&&h()});d.setAttribute("title","Escape");d.className="geBtn";a.editor.cancelFirst&&G.appendChild(d);null!=p&&p(G,J);if(null!=f){var L=mxUtils.button(w||mxResources.get("apply"),function(){k||a.hideDialog();f(J.value)});L.setAttribute("title",
+C)for(b=0;b<C.length;b++)(function(Q,N,U){Q=mxUtils.button(Q,function(Y){N(Y,J)});null!=U&&Q.setAttribute("title",U);Q.className="geBtn";G.appendChild(Q)})(C[b][0],C[b][1],C[b][2]);d=mxUtils.button(d||mxResources.get("cancel"),function(){a.hideDialog();null!=h&&h()});d.setAttribute("title","Escape");d.className="geBtn";a.editor.cancelFirst&&G.appendChild(d);null!=q&&q(G,J);if(null!=f){var L=mxUtils.button(w||mxResources.get("apply"),function(){k||a.hideDialog();f(J.value)});L.setAttribute("title",
"Ctrl+Enter");L.className="geBtn gePrimaryBtn";G.appendChild(L);mxEvent.addListener(J,"keydown",function(Q){13==Q.keyCode&&mxEvent.isControlDown(Q)&&L.click()})}a.editor.cancelFirst||G.appendChild(d);this.container=g},EditDiagramDialog=function(a){var b=document.createElement("div");b.style.textAlign="right";var e=document.createElement("textarea");e.setAttribute("wrap","off");e.setAttribute("spellcheck","false");e.setAttribute("autocorrect","off");e.setAttribute("autocomplete","off");e.setAttribute("autocapitalize",
-"off");e.style.overflow="auto";e.style.resize="none";e.style.width="600px";e.style.height="360px";e.style.marginBottom="16px";var f=a.getDiagramSnapshot();e.value=mxUtils.getPrettyXml(f.node);b.appendChild(e);this.init=function(){e.focus()};Graph.fileSupport&&(e.addEventListener("dragover",function(m){m.stopPropagation();m.preventDefault()},!1),e.addEventListener("drop",function(m){m.stopPropagation();m.preventDefault();if(0<m.dataTransfer.files.length){m=m.dataTransfer.files[0];var p=new FileReader;
-p.onload=function(k){e.value=k.target.result};p.readAsText(m)}else e.value=a.extractGraphModelFromEvent(m)},!1));var h=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});h.className="geBtn";a.editor.cancelFirst&&b.appendChild(h);var d=document.createElement("select");d.style.textOverflow="ellipsis";d.style.width="196px";d.className="geBtn";if(a.editor.graph.isEnabled()){var g=document.createElement("option");g.setAttribute("value","apply");mxUtils.write(g,mxResources.get("apply",
-null,"Update Existing Drawing"));d.appendChild(g)}a.editor.graph.isEnabled()&&(g=document.createElement("option"),g.setAttribute("value","insert"),mxUtils.write(g,mxResources.get("insert")),d.appendChild(g));g=document.createElement("option");g.setAttribute("value","new");mxUtils.write(g,mxResources.get("openInNewWindow"));EditDiagramDialog.showNewWindowOption&&d.appendChild(g);b.appendChild(d);g=mxUtils.button(mxResources.get("ok"),function(){var m=Graph.zapGremlins(mxUtils.trim(e.value)),p=null;
-if("new"==d.value)a.hideDialog(),a.editor.editAsNew(m);else if("apply"==d.value)try{var k=mxUtils.parseXml(m).documentElement;a.updateDiagramData(f,k);a.hideDialog()}catch(C){p=C}else if("insert"==d.value){a.editor.graph.model.beginUpdate();try{var u=mxUtils.parseXml(m),w=new mxGraphModel;(new mxCodec(u)).decode(u.documentElement,w);var z=w.getChildren(w.getChildAt(w.getRoot(),0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(z));a.hideDialog()}catch(C){p=C}finally{a.editor.graph.model.endUpdate()}}null!=
-p&&a.handleError(p)});g.className="geBtn gePrimaryBtn";b.appendChild(g);a.editor.cancelFirst||b.appendChild(h);this.container=b};EditDiagramDialog.showNewWindowOption=!0;
+"off");e.style.overflow="auto";e.style.resize="none";e.style.width="600px";e.style.height="360px";e.style.marginBottom="16px";var f=a.getDiagramSnapshot();e.value=mxUtils.getPrettyXml(f.node);b.appendChild(e);this.init=function(){e.focus()};Graph.fileSupport&&(e.addEventListener("dragover",function(m){m.stopPropagation();m.preventDefault()},!1),e.addEventListener("drop",function(m){m.stopPropagation();m.preventDefault();if(0<m.dataTransfer.files.length){m=m.dataTransfer.files[0];var q=new FileReader;
+q.onload=function(k){e.value=k.target.result};q.readAsText(m)}else e.value=a.extractGraphModelFromEvent(m)},!1));var h=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});h.className="geBtn";a.editor.cancelFirst&&b.appendChild(h);var d=document.createElement("select");d.style.textOverflow="ellipsis";d.style.width="196px";d.className="geBtn";if(a.editor.graph.isEnabled()){var g=document.createElement("option");g.setAttribute("value","apply");mxUtils.write(g,mxResources.get("apply",
+null,"Update Existing Drawing"));d.appendChild(g)}a.editor.graph.isEnabled()&&(g=document.createElement("option"),g.setAttribute("value","insert"),mxUtils.write(g,mxResources.get("insert")),d.appendChild(g));g=document.createElement("option");g.setAttribute("value","new");mxUtils.write(g,mxResources.get("openInNewWindow"));EditDiagramDialog.showNewWindowOption&&d.appendChild(g);b.appendChild(d);g=mxUtils.button(mxResources.get("ok"),function(){var m=Graph.zapGremlins(mxUtils.trim(e.value)),q=null;
+if("new"==d.value)a.hideDialog(),a.editor.editAsNew(m);else if("apply"==d.value)try{var k=mxUtils.parseXml(m).documentElement;a.updateDiagramData(f,k);a.hideDialog()}catch(C){q=C}else if("insert"==d.value){a.editor.graph.model.beginUpdate();try{var u=mxUtils.parseXml(m),w=new mxGraphModel;(new mxCodec(u)).decode(u.documentElement,w);var z=w.getChildren(w.getChildAt(w.getRoot(),0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(z));a.hideDialog()}catch(C){q=C}finally{a.editor.graph.model.endUpdate()}}null!=
+q&&a.handleError(q)});g.className="geBtn gePrimaryBtn";b.appendChild(g);a.editor.cancelFirst||b.appendChild(h);this.container=b};EditDiagramDialog.showNewWindowOption=!0;
var ExportDialog=function(a){function b(){var P=u.value,T=P.lastIndexOf(".");u.value=0<T?P.substring(0,T+1)+w.value:P+"."+w.value;"xml"===w.value?(z.setAttribute("disabled","true"),C.setAttribute("disabled","true"),E.setAttribute("disabled","true"),N.setAttribute("disabled","true")):(z.removeAttribute("disabled"),C.removeAttribute("disabled"),E.removeAttribute("disabled"),N.removeAttribute("disabled"));"png"===w.value||"svg"===w.value||"pdf"===w.value?L.removeAttribute("disabled"):L.setAttribute("disabled",
"disabled");"png"===w.value||"jpg"===w.value||"pdf"===w.value?Q.removeAttribute("disabled"):Q.setAttribute("disabled","disabled");"png"===w.value?(D.removeAttribute("disabled"),G.removeAttribute("disabled")):(D.setAttribute("disabled","disabled"),G.setAttribute("disabled","disabled"))}function e(){C.style.backgroundColor=C.value*E.value>MAX_AREA||0>=C.value?"red":"";E.style.backgroundColor=C.value*E.value>MAX_AREA||0>=E.value?"red":""}var f=a.editor.graph,h=f.getGraphBounds(),d=f.view.scale,g=Math.ceil(h.width/
-d),m=Math.ceil(h.height/d);d=document.createElement("table");var p=document.createElement("tbody");d.setAttribute("cellpadding",mxClient.IS_SF?"0":"2");h=document.createElement("tr");var k=document.createElement("td");k.style.fontSize="10pt";k.style.width="100px";mxUtils.write(k,mxResources.get("filename")+":");h.appendChild(k);var u=document.createElement("input");u.setAttribute("value",a.editor.getOrCreateFilename());u.style.width="180px";k=document.createElement("td");k.appendChild(u);h.appendChild(k);
-p.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("format")+":");h.appendChild(k);var w=document.createElement("select");w.style.width="180px";k=document.createElement("option");k.setAttribute("value","png");mxUtils.write(k,mxResources.get("formatPng"));w.appendChild(k);k=document.createElement("option");ExportDialog.showGifOption&&(k.setAttribute("value","gif"),mxUtils.write(k,mxResources.get("formatGif")),w.appendChild(k));
-k=document.createElement("option");k.setAttribute("value","jpg");mxUtils.write(k,mxResources.get("formatJpg"));w.appendChild(k);k=document.createElement("option");k.setAttribute("value","svg");mxUtils.write(k,mxResources.get("formatSvg"));w.appendChild(k);ExportDialog.showXmlOption&&(k=document.createElement("option"),k.setAttribute("value","xml"),mxUtils.write(k,mxResources.get("formatXml")),w.appendChild(k));k=document.createElement("td");k.appendChild(w);h.appendChild(k);p.appendChild(h);h=document.createElement("tr");
-k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("zoom")+" (%):");h.appendChild(k);var z=document.createElement("input");z.setAttribute("type","number");z.setAttribute("value","100");z.style.width="180px";k=document.createElement("td");k.appendChild(z);h.appendChild(k);p.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("width")+":");h.appendChild(k);var C=document.createElement("input");
-C.setAttribute("value",g);C.style.width="180px";k=document.createElement("td");k.appendChild(C);h.appendChild(k);p.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("height")+":");h.appendChild(k);var E=document.createElement("input");E.setAttribute("value",m);E.style.width="180px";k=document.createElement("td");k.appendChild(E);h.appendChild(k);p.appendChild(h);h=document.createElement("tr");k=document.createElement("td");
+d),m=Math.ceil(h.height/d);d=document.createElement("table");var q=document.createElement("tbody");d.setAttribute("cellpadding",mxClient.IS_SF?"0":"2");h=document.createElement("tr");var k=document.createElement("td");k.style.fontSize="10pt";k.style.width="100px";mxUtils.write(k,mxResources.get("filename")+":");h.appendChild(k);var u=document.createElement("input");u.setAttribute("value",a.editor.getOrCreateFilename());u.style.width="180px";k=document.createElement("td");k.appendChild(u);h.appendChild(k);
+q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("format")+":");h.appendChild(k);var w=document.createElement("select");w.style.width="180px";k=document.createElement("option");k.setAttribute("value","png");mxUtils.write(k,mxResources.get("formatPng"));w.appendChild(k);k=document.createElement("option");ExportDialog.showGifOption&&(k.setAttribute("value","gif"),mxUtils.write(k,mxResources.get("formatGif")),w.appendChild(k));
+k=document.createElement("option");k.setAttribute("value","jpg");mxUtils.write(k,mxResources.get("formatJpg"));w.appendChild(k);k=document.createElement("option");k.setAttribute("value","svg");mxUtils.write(k,mxResources.get("formatSvg"));w.appendChild(k);ExportDialog.showXmlOption&&(k=document.createElement("option"),k.setAttribute("value","xml"),mxUtils.write(k,mxResources.get("formatXml")),w.appendChild(k));k=document.createElement("td");k.appendChild(w);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");
+k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("zoom")+" (%):");h.appendChild(k);var z=document.createElement("input");z.setAttribute("type","number");z.setAttribute("value","100");z.style.width="180px";k=document.createElement("td");k.appendChild(z);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("width")+":");h.appendChild(k);var C=document.createElement("input");
+C.setAttribute("value",g);C.style.width="180px";k=document.createElement("td");k.appendChild(C);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("height")+":");h.appendChild(k);var E=document.createElement("input");E.setAttribute("value",m);E.style.width="180px";k=document.createElement("td");k.appendChild(E);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");
k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("dpi")+":");h.appendChild(k);var D=document.createElement("select");D.style.width="180px";k=document.createElement("option");k.setAttribute("value","100");mxUtils.write(k,"100dpi");D.appendChild(k);k=document.createElement("option");k.setAttribute("value","200");mxUtils.write(k,"200dpi");D.appendChild(k);k=document.createElement("option");k.setAttribute("value","300");mxUtils.write(k,"300dpi");D.appendChild(k);k=document.createElement("option");
k.setAttribute("value","400");mxUtils.write(k,"400dpi");D.appendChild(k);k=document.createElement("option");k.setAttribute("value","custom");mxUtils.write(k,mxResources.get("custom"));D.appendChild(k);var G=document.createElement("input");G.style.width="180px";G.style.display="none";G.setAttribute("value","100");G.setAttribute("type","number");G.setAttribute("min","50");G.setAttribute("step","50");var J=!1;mxEvent.addListener(D,"change",function(){"custom"==this.value?(this.style.display="none",G.style.display=
-"",G.focus()):(G.value=this.value,J||(z.value=this.value))});mxEvent.addListener(G,"change",function(){var P=parseInt(G.value);isNaN(P)||0>=P?G.style.backgroundColor="red":(G.style.backgroundColor="",J||(z.value=P))});k=document.createElement("td");k.appendChild(D);k.appendChild(G);h.appendChild(k);p.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("background")+":");h.appendChild(k);var L=document.createElement("input");
-L.setAttribute("type","checkbox");L.checked=null==f.background||f.background==mxConstants.NONE;k=document.createElement("td");k.appendChild(L);mxUtils.write(k,mxResources.get("transparent"));h.appendChild(k);p.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("grid")+":");h.appendChild(k);var Q=document.createElement("input");Q.setAttribute("type","checkbox");Q.checked=!1;k=document.createElement("td");k.appendChild(Q);
-h.appendChild(k);p.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("borderWidth")+":");h.appendChild(k);var N=document.createElement("input");N.setAttribute("type","number");N.setAttribute("value",ExportDialog.lastBorderValue);N.style.width="180px";k=document.createElement("td");k.appendChild(N);h.appendChild(k);p.appendChild(h);d.appendChild(p);mxEvent.addListener(w,"change",b);b();mxEvent.addListener(z,"change",
+"",G.focus()):(G.value=this.value,J||(z.value=this.value))});mxEvent.addListener(G,"change",function(){var P=parseInt(G.value);isNaN(P)||0>=P?G.style.backgroundColor="red":(G.style.backgroundColor="",J||(z.value=P))});k=document.createElement("td");k.appendChild(D);k.appendChild(G);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("background")+":");h.appendChild(k);var L=document.createElement("input");
+L.setAttribute("type","checkbox");L.checked=null==f.background||f.background==mxConstants.NONE;k=document.createElement("td");k.appendChild(L);mxUtils.write(k,mxResources.get("transparent"));h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("grid")+":");h.appendChild(k);var Q=document.createElement("input");Q.setAttribute("type","checkbox");Q.checked=!1;k=document.createElement("td");k.appendChild(Q);
+h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("borderWidth")+":");h.appendChild(k);var N=document.createElement("input");N.setAttribute("type","number");N.setAttribute("value",ExportDialog.lastBorderValue);N.style.width="180px";k=document.createElement("td");k.appendChild(N);h.appendChild(k);q.appendChild(h);d.appendChild(q);mxEvent.addListener(w,"change",b);b();mxEvent.addListener(z,"change",
function(){J=!0;var P=Math.max(0,parseFloat(z.value)||100)/100;z.value=parseFloat((100*P).toFixed(2));0<g?(C.value=Math.floor(g*P),E.value=Math.floor(m*P)):(z.value="100",C.value=g,E.value=m);e()});mxEvent.addListener(C,"change",function(){var P=parseInt(C.value)/g;0<P?(z.value=parseFloat((100*P).toFixed(2)),E.value=Math.floor(m*P)):(z.value="100",C.value=g,E.value=m);e()});mxEvent.addListener(E,"change",function(){var P=parseInt(E.value)/m;0<P?(z.value=parseFloat((100*P).toFixed(2)),C.value=Math.floor(g*
P)):(z.value="100",C.value=g,E.value=m);e()});h=document.createElement("tr");k=document.createElement("td");k.setAttribute("align","right");k.style.paddingTop="22px";k.colSpan=2;var U=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(){if(0>=parseInt(z.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var P=u.value,T=w.value,K=Math.max(0,parseFloat(z.value)||100)/100,V=Math.max(0,parseInt(N.value)),Z=f.background,ia=Math.max(1,parseInt(G.value));if(("svg"==T||"png"==T||
-"pdf"==T)&&L.checked)Z=null;else if(null==Z||Z==mxConstants.NONE)Z="#ffffff";ExportDialog.lastBorderValue=V;ExportDialog.exportFile(a,P,T,Z,K,V,ia,Q.checked)}}));U.className="geBtn gePrimaryBtn";var Y=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});Y.className="geBtn";a.editor.cancelFirst?(k.appendChild(Y),k.appendChild(U)):(k.appendChild(U),k.appendChild(Y));h.appendChild(k);p.appendChild(h);d.appendChild(p);this.container=d};ExportDialog.lastBorderValue=0;
+"pdf"==T)&&L.checked)Z=null;else if(null==Z||Z==mxConstants.NONE)Z="#ffffff";ExportDialog.lastBorderValue=V;ExportDialog.exportFile(a,P,T,Z,K,V,ia,Q.checked)}}));U.className="geBtn gePrimaryBtn";var Y=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});Y.className="geBtn";a.editor.cancelFirst?(k.appendChild(Y),k.appendChild(U)):(k.appendChild(U),k.appendChild(Y));h.appendChild(k);q.appendChild(h);d.appendChild(q);this.container=d};ExportDialog.lastBorderValue=0;
ExportDialog.showGifOption=!0;ExportDialog.showXmlOption=!0;
-ExportDialog.exportFile=function(a,b,e,f,h,d,g,m){m=a.editor.graph;if("xml"==e)ExportDialog.saveLocalFile(a,mxUtils.getXml(a.editor.getGraphXml()),b,e);else if("svg"==e)ExportDialog.saveLocalFile(a,mxUtils.getXml(m.getSvg(f,h,d)),b,e);else{var p=m.getGraphBounds(),k=mxUtils.createXmlDocument(),u=k.createElement("output");k.appendChild(u);k=new mxXmlCanvas2D(u);k.translate(Math.floor((d/h-p.x)/m.view.scale),Math.floor((d/h-p.y)/m.view.scale));k.scale(h/m.view.scale);(new mxImageExport).drawState(m.getView().getState(m.model.root),
-k);u="xml="+encodeURIComponent(mxUtils.getXml(u));k=Math.ceil(p.width*h/m.view.scale+2*d);h=Math.ceil(p.height*h/m.view.scale+2*d);u.length<=MAX_REQUEST_SIZE&&k*h<MAX_AREA?(a.hideDialog(),(new mxXmlRequest(EXPORT_URL,"format="+e+"&filename="+encodeURIComponent(b)+"&bg="+(null!=f?f:"none")+"&w="+k+"&h="+h+"&"+u+"&dpi="+g)).simulate(document,"_blank")):mxUtils.alert(mxResources.get("drawingTooLarge"))}};
+ExportDialog.exportFile=function(a,b,e,f,h,d,g,m){m=a.editor.graph;if("xml"==e)ExportDialog.saveLocalFile(a,mxUtils.getXml(a.editor.getGraphXml()),b,e);else if("svg"==e)ExportDialog.saveLocalFile(a,mxUtils.getXml(m.getSvg(f,h,d)),b,e);else{var q=m.getGraphBounds(),k=mxUtils.createXmlDocument(),u=k.createElement("output");k.appendChild(u);k=new mxXmlCanvas2D(u);k.translate(Math.floor((d/h-q.x)/m.view.scale),Math.floor((d/h-q.y)/m.view.scale));k.scale(h/m.view.scale);(new mxImageExport).drawState(m.getView().getState(m.model.root),
+k);u="xml="+encodeURIComponent(mxUtils.getXml(u));k=Math.ceil(q.width*h/m.view.scale+2*d);h=Math.ceil(q.height*h/m.view.scale+2*d);u.length<=MAX_REQUEST_SIZE&&k*h<MAX_AREA?(a.hideDialog(),(new mxXmlRequest(EXPORT_URL,"format="+e+"&filename="+encodeURIComponent(b)+"&bg="+(null!=f?f:"none")+"&w="+k+"&h="+h+"&"+u+"&dpi="+g)).simulate(document,"_blank")):mxUtils.alert(mxResources.get("drawingTooLarge"))}};
ExportDialog.saveLocalFile=function(a,b,e,f){b.length<MAX_REQUEST_SIZE?(a.hideDialog(),(new mxXmlRequest(SAVE_URL,"xml="+encodeURIComponent(b)+"&filename="+encodeURIComponent(e)+"&format="+f)).simulate(document,"_blank")):(mxUtils.alert(mxResources.get("drawingTooLarge")),mxUtils.popup(xml))};
-var EditDataDialog=function(a,b){function e(){0<N.value.length?U.removeAttribute("disabled"):U.setAttribute("disabled","disabled")}var f=document.createElement("div"),h=a.editor.graph,d=h.getModel().getValue(b);if(!mxUtils.isNode(d)){var g=mxUtils.createXmlDocument().createElement("object");g.setAttribute("label",d||"");d=g}var m={};try{var p=mxUtils.getValue(a.editor.graph.getCurrentCellStyle(b),"metaData",null);null!=p&&(m=JSON.parse(p))}catch(P){}var k=new mxForm("properties");k.table.style.width=
+var EditDataDialog=function(a,b){function e(){0<N.value.length?U.removeAttribute("disabled"):U.setAttribute("disabled","disabled")}var f=document.createElement("div"),h=a.editor.graph,d=h.getModel().getValue(b);if(!mxUtils.isNode(d)){var g=mxUtils.createXmlDocument().createElement("object");g.setAttribute("label",d||"");d=g}var m={};try{var q=mxUtils.getValue(a.editor.graph.getCurrentCellStyle(b),"metaData",null);null!=q&&(m=JSON.parse(q))}catch(P){}var k=new mxForm("properties");k.table.style.width=
"100%";var u=d.attributes,w=[],z=[],C=0,E=null!=EditDataDialog.getDisplayIdForCell?EditDataDialog.getDisplayIdForCell(a,b):null,D=function(P,T){var K=document.createElement("div");K.style.position="relative";K.style.paddingRight="20px";K.style.boxSizing="border-box";K.style.width="100%";var V=document.createElement("a"),Z=mxUtils.createImage(Dialog.prototype.closeImage);Z.style.height="9px";Z.style.fontSize="9px";Z.style.marginBottom=mxClient.IS_IE11?"-1px":"5px";V.className="geButton";V.setAttribute("title",
mxResources.get("delete"));V.style.position="absolute";V.style.top="4px";V.style.right="0px";V.style.margin="0px";V.style.width="9px";V.style.height="9px";V.style.cursor="pointer";V.appendChild(Z);T=function(ia){return function(){for(var oa=0,sa=0;sa<w.length;sa++){if(w[sa]==ia){z[sa]=null;k.table.deleteRow(oa+(null!=E?1:0));break}null!=z[sa]&&oa++}}}(T);mxEvent.addListener(V,"click",T);T=P.parentNode;K.appendChild(P);K.appendChild(V);T.appendChild(K)};g=function(P,T,K){w[P]=T;z[P]=k.addTextarea(w[C]+
-":",K,2);z[P].style.width="100%";0<K.indexOf("\n")&&z[P].setAttribute("rows","2");D(z[P],T);null!=m[T]&&0==m[T].editable&&z[P].setAttribute("disabled","disabled")};p=[];for(var G=h.getModel().getParent(b)==h.getModel().getRoot(),J=h.getCellStyle(b),L=0;L<u.length;L++)("label"!=u[L].nodeName||"1"==J.metaEdit||Graph.translateDiagram||G)&&"placeholders"!=u[L].nodeName&&p.push({name:u[L].nodeName,value:u[L].nodeValue});p.sort(function(P,T){return"label"==P.name?1:"label"==T.name?-1:P.name<T.name?-1:P.name>
+":",K,2);z[P].style.width="100%";0<K.indexOf("\n")&&z[P].setAttribute("rows","2");D(z[P],T);null!=m[T]&&0==m[T].editable&&z[P].setAttribute("disabled","disabled")};q=[];for(var G=h.getModel().getParent(b)==h.getModel().getRoot(),J=h.getCellStyle(b),L=0;L<u.length;L++)("label"!=u[L].nodeName||"1"==J.metaEdit||Graph.translateDiagram||G)&&"placeholders"!=u[L].nodeName&&q.push({name:u[L].nodeName,value:u[L].nodeValue});q.sort(function(P,T){return"label"==P.name?1:"label"==T.name?-1:P.name<T.name?-1:P.name>
T.name?1:0});if(null!=E){u=document.createElement("div");u.style.width="100%";u.style.fontSize="11px";u.style.textAlign="center";mxUtils.write(u,E);var Q=k.addField(mxResources.get("id")+":",u);mxEvent.addListener(u,"dblclick",function(P){P=new FilenameDialog(a,E,mxResources.get("apply"),mxUtils.bind(this,function(T){if(null!=T&&0<T.length&&T!=E)if(h.model.isRoot(b)){var K=a.getPageById(E);if(null!=K)if(null==a.getPageById(T)){var V=a.getPageIndex(K);0<=V&&(a.removePage(K),K.node.setAttribute("id",
-T),E=T,Q.innerHTML=mxUtils.htmlEntities(T),a.insertPage(K,V))}else a.handleError({message:mxResources.get("alreadyExst",[mxResources.get("page")])})}else null==h.getModel().getCell(T)?(h.getModel().cellRemoved(b),b.setId(T),E=T,Q.innerHTML=mxUtils.htmlEntities(T),h.getModel().cellAdded(b)):a.handleError({message:mxResources.get("alreadyExst",[T])})}),mxResources.get("id"));a.showDialog(P.container,300,80,!0,!0);P.init()})}for(L=0;L<p.length;L++)g(C,p[L].name,p[L].value),C++;p=document.createElement("div");
-p.style.position="absolute";p.style.top="30px";p.style.left="30px";p.style.right="30px";p.style.bottom="80px";p.style.overflowY="auto";p.appendChild(k.table);g=document.createElement("div");g.style.display="flex";g.style.alignItems="center";g.style.boxSizing="border-box";g.style.paddingRight="160px";g.style.whiteSpace="nowrap";g.style.marginTop="6px";g.style.width="100%";var N=document.createElement("input");N.setAttribute("placeholder",mxResources.get("enterPropertyName"));N.setAttribute("type",
-"text");N.setAttribute("size",mxClient.IS_IE||mxClient.IS_IE11?"36":"40");N.style.boxSizing="border-box";N.style.borderWidth="1px";N.style.borderStyle="solid";N.style.marginLeft="2px";N.style.padding="4px";N.style.width="100%";g.appendChild(N);p.appendChild(g);f.appendChild(p);var U=mxUtils.button(mxResources.get("addProperty"),function(){var P=N.value;if(0<P.length&&"label"!=P&&"id"!=P&&"placeholders"!=P&&0>P.indexOf(":"))try{var T=mxUtils.indexOf(w,P);if(0<=T&&null!=z[T])z[T].focus();else{d.cloneNode(!1).setAttribute(P,
+T),E=T,Q.innerHTML=mxUtils.htmlEntities(T),a.insertPage(K,V))}else a.handleError({message:mxResources.get("alreadyExst",[mxResources.get("page")])})}else null==h.getModel().getCell(T)?(h.getModel().cellRemoved(b),b.setId(T),E=T,Q.innerHTML=mxUtils.htmlEntities(T),h.getModel().cellAdded(b)):a.handleError({message:mxResources.get("alreadyExst",[T])})}),mxResources.get("id"));a.showDialog(P.container,300,80,!0,!0);P.init()})}for(L=0;L<q.length;L++)g(C,q[L].name,q[L].value),C++;q=document.createElement("div");
+q.style.position="absolute";q.style.top="30px";q.style.left="30px";q.style.right="30px";q.style.bottom="80px";q.style.overflowY="auto";q.appendChild(k.table);g=document.createElement("div");g.style.display="flex";g.style.alignItems="center";g.style.boxSizing="border-box";g.style.paddingRight="160px";g.style.whiteSpace="nowrap";g.style.marginTop="6px";g.style.width="100%";var N=document.createElement("input");N.setAttribute("placeholder",mxResources.get("enterPropertyName"));N.setAttribute("type",
+"text");N.setAttribute("size",mxClient.IS_IE||mxClient.IS_IE11?"36":"40");N.style.boxSizing="border-box";N.style.borderWidth="1px";N.style.borderStyle="solid";N.style.marginLeft="2px";N.style.padding="4px";N.style.width="100%";g.appendChild(N);q.appendChild(g);f.appendChild(q);var U=mxUtils.button(mxResources.get("addProperty"),function(){var P=N.value;if(0<P.length&&"label"!=P&&"id"!=P&&"placeholders"!=P&&0>P.indexOf(":"))try{var T=mxUtils.indexOf(w,P);if(0<=T&&null!=z[T])z[T].focus();else{d.cloneNode(!1).setAttribute(P,
"");0<=T&&(w.splice(T,1),z.splice(T,1));w.push(P);var K=k.addTextarea(P+":","",2);K.style.width="100%";z.push(K);D(K,P);K.focus()}U.setAttribute("disabled","disabled");N.value=""}catch(V){mxUtils.alert(V)}else mxUtils.alert(mxResources.get("invalidName"))});mxEvent.addListener(N,"keypress",function(P){13==P.keyCode&&U.click()});this.init=function(){0<z.length?z[0].focus():N.focus()};U.setAttribute("title",mxResources.get("addProperty"));U.setAttribute("disabled","disabled");U.style.textOverflow="ellipsis";
-U.style.position="absolute";U.style.overflow="hidden";U.style.width="144px";U.style.right="0px";U.className="geBtn";g.appendChild(U);p=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog.apply(a,arguments)});p.setAttribute("title","Escape");p.className="geBtn";g=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(P){var T=h.getDataForCells([b],!0);P=new EmbedDialog(a,JSON.stringify(T,null,2),null,null,function(){console.log(T);a.alert("Written to Console (Dev Tools)")},
+U.style.position="absolute";U.style.overflow="hidden";U.style.width="144px";U.style.right="0px";U.className="geBtn";g.appendChild(U);q=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog.apply(a,arguments)});q.setAttribute("title","Escape");q.className="geBtn";g=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(P){var T=h.getDataForCells([b],!0);P=new EmbedDialog(a,JSON.stringify(T,null,2),null,null,function(){console.log(T);a.alert("Written to Console (Dev Tools)")},
mxResources.get("export"),null,"Console","data.json");a.showDialog(P.container,450,240,!0,!0);P.init()}));g.setAttribute("title",mxResources.get("export"));g.className="geBtn";var Y=mxUtils.button(mxResources.get("apply"),function(){try{a.hideDialog.apply(a,arguments);d=d.cloneNode(!0);for(var P=!1,T=0;T<w.length;T++)null==z[T]?d.removeAttribute(w[T]):(d.setAttribute(w[T],z[T].value),P=P||"placeholder"==w[T]&&"1"==d.getAttribute("placeholders"));P&&d.removeAttribute("label");h.getModel().setValue(b,
d)}catch(K){mxUtils.alert(K)}});Y.setAttribute("title","Ctrl+Enter");Y.className="geBtn gePrimaryBtn";mxEvent.addListener(f,"keydown",function(P){13==P.keyCode&&mxEvent.isControlDown(P)&&Y.click()});mxEvent.addListener(N,"keyup",e);mxEvent.addListener(N,"change",e);u=document.createElement("div");u.style.cssText="position:absolute;left:30px;right:30px;text-align:right;bottom:30px;height:40px;";if(a.editor.graph.getModel().isVertex(b)||a.editor.graph.getModel().isEdge(b))G=document.createElement("span"),
G.style.marginRight="10px",J=document.createElement("input"),J.setAttribute("type","checkbox"),J.style.marginRight="6px","1"==d.getAttribute("placeholders")&&(J.setAttribute("checked","checked"),J.defaultChecked=!0),mxEvent.addListener(J,"click",function(){"1"==d.getAttribute("placeholders")?d.removeAttribute("placeholders"):d.setAttribute("placeholders","1")}),G.appendChild(J),mxUtils.write(G,mxResources.get("placeholders")),null!=EditDataDialog.placeholderHelpLink&&G.appendChild(a.createHelpIcon(EditDataDialog.placeholderHelpLink)),
-u.appendChild(G);a.editor.cancelFirst&&u.appendChild(p);u.appendChild(g);u.appendChild(Y);a.editor.cancelFirst||u.appendChild(p);f.appendChild(u);this.container=f};EditDataDialog.getDisplayIdForCell=function(a,b){var e=null;null!=a.editor.graph.getModel().getParent(b)&&(e=b.getId());return e};EditDataDialog.placeholderHelpLink=null;
+u.appendChild(G);a.editor.cancelFirst&&u.appendChild(q);u.appendChild(g);u.appendChild(Y);a.editor.cancelFirst||u.appendChild(q);f.appendChild(u);this.container=f};EditDataDialog.getDisplayIdForCell=function(a,b){var e=null;null!=a.editor.graph.getModel().getParent(b)&&(e=b.getId());return e};EditDataDialog.placeholderHelpLink=null;
var LinkDialog=function(a,b,e,f){var h=document.createElement("div");mxUtils.write(h,mxResources.get("editLink")+":");var d=document.createElement("div");d.className="geTitle";d.style.backgroundColor="transparent";d.style.borderColor="transparent";d.style.whiteSpace="nowrap";d.style.textOverflow="clip";d.style.cursor="default";d.style.paddingRight="20px";var g=document.createElement("input");g.setAttribute("value",b);g.setAttribute("placeholder","http://www.example.com/");g.setAttribute("type","text");
g.style.marginTop="6px";g.style.width="400px";g.style.backgroundImage="url('"+Dialog.prototype.clearImage+"')";g.style.backgroundRepeat="no-repeat";g.style.backgroundPosition="100% 50%";g.style.paddingRight="14px";b=document.createElement("div");b.setAttribute("title",mxResources.get("reset"));b.style.position="relative";b.style.left="-16px";b.style.width="12px";b.style.height="14px";b.style.cursor="pointer";b.style.display="inline-block";b.style.top="3px";b.style.background="url("+IMAGE_PATH+"/transparent.gif)";
mxEvent.addListener(b,"click",function(){g.value="";g.focus()});d.appendChild(g);d.appendChild(b);h.appendChild(d);this.init=function(){g.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?g.select():document.execCommand("selectAll",!1,null)};d=document.createElement("div");d.style.marginTop="18px";d.style.textAlign="right";mxEvent.addListener(g,"keypress",function(m){13==m.keyCode&&(a.hideDialog(),f(g.value))});b=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});
b.className="geBtn";a.editor.cancelFirst&&d.appendChild(b);e=mxUtils.button(e,function(){a.hideDialog();f(g.value)});e.className="geBtn gePrimaryBtn";d.appendChild(e);a.editor.cancelFirst||d.appendChild(b);h.appendChild(d);this.container=h},OutlineWindow=function(a,b,e,f,h){var d=a.editor.graph,g=document.createElement("div");g.style.position="absolute";g.style.width="100%";g.style.height="100%";g.style.overflow="hidden";this.window=new mxWindow(mxResources.get("outline"),g,b,e,f,h,!0,!0);this.window.minimumSize=
new mxRectangle(0,0,80,80);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);var m=a.createOutline(this.window);a.installResizeHandler(this,!0,function(){m.destroy()});this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit();m.setSuspended(!1)}));this.window.addListener(mxEvent.HIDE,mxUtils.bind(this,function(){m.setSuspended(!0)}));this.window.addListener(mxEvent.NORMALIZE,mxUtils.bind(this,
-function(){m.setSuspended(!1)}));this.window.addListener(mxEvent.MINIMIZE,mxUtils.bind(this,function(){m.setSuspended(!0)}));m.init(g);mxEvent.addMouseWheelListener(function(p,k){for(var u=!1,w=mxEvent.getSource(p);null!=w;){if(w==m.svg){u=!0;break}w=w.parentNode}u&&(u=d.zoomFactor,null!=p.deltaY&&Math.round(p.deltaY)!=p.deltaY&&(u=1+Math.abs(p.deltaY)/20*(u-1)),d.lazyZoom(k,null,null,u),mxEvent.consume(p))})},LayersWindow=function(a,b,e,f,h){function d(){var T=N.get(p.getLayerForCells(p.getSelectionCells()));
+function(){m.setSuspended(!1)}));this.window.addListener(mxEvent.MINIMIZE,mxUtils.bind(this,function(){m.setSuspended(!0)}));m.init(g);mxEvent.addMouseWheelListener(function(q,k){for(var u=!1,w=mxEvent.getSource(q);null!=w;){if(w==m.svg){u=!0;break}w=w.parentNode}u&&(u=d.zoomFactor,null!=q.deltaY&&Math.round(q.deltaY)!=q.deltaY&&(u=1+Math.abs(q.deltaY)/20*(u-1)),d.lazyZoom(k,null,null,u),mxEvent.consume(q))})},LayersWindow=function(a,b,e,f,h){function d(){var T=N.get(q.getLayerForCells(q.getSelectionCells()));
null!=T?T.appendChild(P):null!=P.parentNode&&P.parentNode.removeChild(P)}function g(){function T(Z,ia,oa,sa){var O=document.createElement("div");O.className="geToolbarContainer";N.put(oa,O);O.style.overflow="hidden";O.style.position="relative";O.style.padding="4px";O.style.height="22px";O.style.display="flex";O.style.alignItems="center";O.style.borderWidth="0px 0px 1px 0px";O.style.borderStyle="solid";O.style.whiteSpace="nowrap";O.setAttribute("title",ia+" ("+oa.getId()+")");var X=document.createElement("div");
-X.style.display="inline-flex";X.style.alignItems="center";X.style.width="100%";X.style.textOverflow="ellipsis";X.style.overflow="hidden";var ba=document.createElement("span");mxEvent.addListener(O,"dragover",function(H){H.dataTransfer.dropEffect="move";z=Z;H.stopPropagation();H.preventDefault()});mxEvent.addListener(O,"dragstart",function(H){"true"!=ba.contentEditable&&(w=O,mxClient.IS_FF&&H.dataTransfer.setData("Text","<layer/>"))});mxEvent.addListener(O,"dragend",function(H){null!=w&&null!=z&&p.addCell(oa,
-p.model.root,z);z=w=null;H.stopPropagation();H.preventDefault()});var da=document.createElement("img");da.setAttribute("draggable","false");da.setAttribute("align","top");da.setAttribute("border","0");da.className="geAdaptiveAsset";da.style.width="16px";da.style.padding="0px 6px 0 4px";da.style.cursor="pointer";da.setAttribute("title",mxResources.get(p.model.isVisible(oa)?"hide":"show"));p.model.isVisible(oa)?(da.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(O,90)):(da.setAttribute("src",
-Editor.hiddenImage),mxUtils.setOpacity(O,40));p.isEnabled()||mxUtils.setOpacity(da,50);X.appendChild(da);mxEvent.addListener(da,"click",function(H){p.isEnabled()&&p.model.setVisible(oa,!p.model.isVisible(oa));mxEvent.consume(H)});da=document.createElement("img");da.setAttribute("draggable","false");da.setAttribute("align","top");da.setAttribute("border","0");da.className="geAdaptiveAsset";da.style.width="16px";da.style.padding="0px 6px 0 0";da.setAttribute("title",mxResources.get("lockUnlock"));var ca=
-p.getCurrentCellStyle(oa);"1"==mxUtils.getValue(ca,"locked","0")?(da.setAttribute("src",Editor.lockedImage),mxUtils.setOpacity(da,90),O.style.color="red"):(da.setAttribute("src",Editor.unlockedImage),mxUtils.setOpacity(da,40));p.isEnabled()&&(da.style.cursor="pointer");mxEvent.addListener(da,"click",function(H){if(p.isEnabled()){var ea=null;p.getModel().beginUpdate();try{ea="1"==mxUtils.getValue(ca,"locked","0")?null:"1",p.setCellStyles("locked",ea,[oa])}finally{p.getModel().endUpdate()}"1"==ea&&
-p.removeSelectionCells(p.getModel().getDescendants(oa));mxEvent.consume(H)}});X.appendChild(da);mxUtils.write(ba,ia);ba.style.display="block";ba.style.whiteSpace="nowrap";ba.style.overflow="hidden";ba.style.textOverflow="ellipsis";ba.style.position="absolute";ba.style.padding="2px";ba.style.left="52px";ba.style.right="8px";X.appendChild(ba);O.appendChild(X);if(p.isEnabled()){if(mxClient.IS_TOUCH||mxClient.IS_POINTER||mxClient.IS_IE&&10>document.documentMode)ia=document.createElement("div"),ia.style.display=
-"block",ia.style.textAlign="right",ia.style.whiteSpace="nowrap",ia.style.position="absolute",ia.style.right="16px",ia.style.top="6px",0<Z&&(X=document.createElement("a"),X.setAttribute("title",mxResources.get("toBack")),X.className="geButton",X.style.cssFloat="none",X.innerHTML="&#9660;",X.style.width="14px",X.style.height="14px",X.style.fontSize="14px",X.style.margin="0px",X.style.marginTop="-1px",ia.appendChild(X),mxEvent.addListener(X,"click",function(H){p.isEnabled()&&p.addCell(oa,p.model.root,
-Z-1);mxEvent.consume(H)})),0<=Z&&Z<C-1&&(X=document.createElement("a"),X.setAttribute("title",mxResources.get("toFront")),X.className="geButton",X.style.cssFloat="none",X.innerHTML="&#9650;",X.style.width="14px",X.style.height="14px",X.style.fontSize="14px",X.style.margin="0px",X.style.marginTop="-1px",ia.appendChild(X),mxEvent.addListener(X,"click",function(H){p.isEnabled()&&p.addCell(oa,p.model.root,Z+1);mxEvent.consume(H)})),O.appendChild(ia);mxClient.IS_SVG&&(!mxClient.IS_IE||10<=document.documentMode)&&
-(O.setAttribute("draggable","true"),O.style.cursor="move")}mxEvent.addListener(O,"dblclick",function(H){var ea=mxEvent.getSource(H).nodeName;"INPUT"!=ea&&"IMG"!=ea&&"true"!=ba.contentEditable&&(m(oa),mxEvent.consume(H))});p.getDefaultParent()==oa&&(O.classList.add("geActivePage"),O.style.fontWeight=p.isEnabled()?"bold":"",E=oa);mxEvent.addListener(O,"click",function(H){p.isEnabled()&&"true"!=ba.contentEditable&&(p.setDefaultParent(sa),p.view.setCurrentRoot(null),mxEvent.isShiftDown(H)&&p.setSelectionCells(oa.children),
-mxEvent.consume(H))});u.appendChild(O)}p.isEnabled()?(J.classList.remove("mxDisabled"),Q.classList.remove("mxDisabled"),U.classList.remove("mxDisabled"),Y.classList.remove("mxDisabled")):(J.classList.add("mxDisabled"),Q.classList.add("mxDisabled"),U.classList.add("mxDisabled"),Y.classList.add("mxDisabled"));C=p.model.getChildCount(p.model.root);u.innerText="";N.clear();for(var K=C-1;0<=K;K--)mxUtils.bind(this,function(Z){T(K,p.convertValueToString(Z)||mxResources.get("background"),Z,Z)})(p.model.getChildAt(p.model.root,
-K));var V=p.convertValueToString(E)||mxResources.get("background");J.setAttribute("title",mxResources.get("removeIt",[V]));U.setAttribute("title",mxResources.get("duplicateIt",[V]));p.isSelectionEmpty()&&L.classList.add("mxDisabled");d()}function m(T){if(p.isEnabled()&&null!=T){var K=N.get(T);if(null!=K){var V=K.getElementsByTagName("span");if(null!=V&&0<V.length){var Z=V[0],ia=mxUtils.getTextContent(Z);Z.style.textOverflow="";Z.style.cursor="text";Z.contentEditable="true";Z.focus();document.execCommand("selectAll",
-!1,null);K.removeAttribute("draggable");K.style.cursor="";var oa=function(sa){if("true"==Z.contentEditable){Z.contentEditable="false";var O=mxUtils.getTextContent(Z);sa&&O!=ia?(O=mxUtils.getTextContent(Z),0<O.length?p.cellLabelChanged(T,O):p.cellLabelChanged(T,mxResources.get("untitledLayer"))):g()}};mxEvent.addListener(Z,"keydown",function(sa){if(13==sa.keyCode||27==sa.keyCode)oa(13==sa.keyCode),mxEvent.consume(sa)});mxEvent.addListener(Z,"blur",function(sa){oa(!0);mxEvent.consume(sa)})}}}}var p=
+X.style.display="inline-flex";X.style.alignItems="center";X.style.width="100%";X.style.textOverflow="ellipsis";X.style.overflow="hidden";var ba=document.createElement("span");mxEvent.addListener(O,"dragover",function(H){H.dataTransfer.dropEffect="move";z=Z;H.stopPropagation();H.preventDefault()});mxEvent.addListener(O,"dragstart",function(H){"true"!=ba.contentEditable&&(w=O,mxClient.IS_FF&&H.dataTransfer.setData("Text","<layer/>"))});mxEvent.addListener(O,"dragend",function(H){null!=w&&null!=z&&q.addCell(oa,
+q.model.root,z);z=w=null;H.stopPropagation();H.preventDefault()});var da=document.createElement("img");da.setAttribute("draggable","false");da.setAttribute("align","top");da.setAttribute("border","0");da.className="geAdaptiveAsset";da.style.width="16px";da.style.padding="0px 6px 0 4px";da.style.cursor="pointer";da.setAttribute("title",mxResources.get(q.model.isVisible(oa)?"hide":"show"));q.model.isVisible(oa)?(da.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(O,90)):(da.setAttribute("src",
+Editor.hiddenImage),mxUtils.setOpacity(O,40));q.isEnabled()||mxUtils.setOpacity(da,50);X.appendChild(da);mxEvent.addListener(da,"click",function(H){q.isEnabled()&&q.model.setVisible(oa,!q.model.isVisible(oa));mxEvent.consume(H)});da=document.createElement("img");da.setAttribute("draggable","false");da.setAttribute("align","top");da.setAttribute("border","0");da.className="geAdaptiveAsset";da.style.width="16px";da.style.padding="0px 6px 0 0";da.setAttribute("title",mxResources.get("lockUnlock"));var ca=
+q.getCurrentCellStyle(oa);"1"==mxUtils.getValue(ca,"locked","0")?(da.setAttribute("src",Editor.lockedImage),mxUtils.setOpacity(da,90),O.style.color="red"):(da.setAttribute("src",Editor.unlockedImage),mxUtils.setOpacity(da,40));q.isEnabled()&&(da.style.cursor="pointer");mxEvent.addListener(da,"click",function(H){if(q.isEnabled()){var ea=null;q.getModel().beginUpdate();try{ea="1"==mxUtils.getValue(ca,"locked","0")?null:"1",q.setCellStyles("locked",ea,[oa])}finally{q.getModel().endUpdate()}"1"==ea&&
+q.removeSelectionCells(q.getModel().getDescendants(oa));mxEvent.consume(H)}});X.appendChild(da);mxUtils.write(ba,ia);ba.style.display="block";ba.style.whiteSpace="nowrap";ba.style.overflow="hidden";ba.style.textOverflow="ellipsis";ba.style.position="absolute";ba.style.padding="2px";ba.style.left="52px";ba.style.right="8px";X.appendChild(ba);O.appendChild(X);if(q.isEnabled()){if(mxClient.IS_TOUCH||mxClient.IS_POINTER||mxClient.IS_IE&&10>document.documentMode)ia=document.createElement("div"),ia.style.display=
+"block",ia.style.textAlign="right",ia.style.whiteSpace="nowrap",ia.style.position="absolute",ia.style.right="16px",ia.style.top="6px",0<Z&&(X=document.createElement("a"),X.setAttribute("title",mxResources.get("toBack")),X.className="geButton",X.style.cssFloat="none",X.innerHTML="&#9660;",X.style.width="14px",X.style.height="14px",X.style.fontSize="14px",X.style.margin="0px",X.style.marginTop="-1px",ia.appendChild(X),mxEvent.addListener(X,"click",function(H){q.isEnabled()&&q.addCell(oa,q.model.root,
+Z-1);mxEvent.consume(H)})),0<=Z&&Z<C-1&&(X=document.createElement("a"),X.setAttribute("title",mxResources.get("toFront")),X.className="geButton",X.style.cssFloat="none",X.innerHTML="&#9650;",X.style.width="14px",X.style.height="14px",X.style.fontSize="14px",X.style.margin="0px",X.style.marginTop="-1px",ia.appendChild(X),mxEvent.addListener(X,"click",function(H){q.isEnabled()&&q.addCell(oa,q.model.root,Z+1);mxEvent.consume(H)})),O.appendChild(ia);mxClient.IS_SVG&&(!mxClient.IS_IE||10<=document.documentMode)&&
+(O.setAttribute("draggable","true"),O.style.cursor="move")}mxEvent.addListener(O,"dblclick",function(H){var ea=mxEvent.getSource(H).nodeName;"INPUT"!=ea&&"IMG"!=ea&&"true"!=ba.contentEditable&&(m(oa),mxEvent.consume(H))});q.getDefaultParent()==oa&&(O.classList.add("geActivePage"),O.style.fontWeight=q.isEnabled()?"bold":"",E=oa);mxEvent.addListener(O,"click",function(H){q.isEnabled()&&"true"!=ba.contentEditable&&(q.setDefaultParent(sa),q.view.setCurrentRoot(null),mxEvent.isShiftDown(H)&&q.setSelectionCells(oa.children),
+mxEvent.consume(H))});u.appendChild(O)}q.isEnabled()?(J.classList.remove("mxDisabled"),Q.classList.remove("mxDisabled"),U.classList.remove("mxDisabled"),Y.classList.remove("mxDisabled")):(J.classList.add("mxDisabled"),Q.classList.add("mxDisabled"),U.classList.add("mxDisabled"),Y.classList.add("mxDisabled"));C=q.model.getChildCount(q.model.root);u.innerText="";N.clear();for(var K=C-1;0<=K;K--)mxUtils.bind(this,function(Z){T(K,q.convertValueToString(Z)||mxResources.get("background"),Z,Z)})(q.model.getChildAt(q.model.root,
+K));var V=q.convertValueToString(E)||mxResources.get("background");J.setAttribute("title",mxResources.get("removeIt",[V]));U.setAttribute("title",mxResources.get("duplicateIt",[V]));q.isSelectionEmpty()&&L.classList.add("mxDisabled");d()}function m(T){if(q.isEnabled()&&null!=T){var K=N.get(T);if(null!=K){var V=K.getElementsByTagName("span");if(null!=V&&0<V.length){var Z=V[0],ia=mxUtils.getTextContent(Z);Z.style.textOverflow="";Z.style.cursor="text";Z.contentEditable="true";Z.focus();document.execCommand("selectAll",
+!1,null);K.removeAttribute("draggable");K.style.cursor="";var oa=function(sa){if("true"==Z.contentEditable){Z.contentEditable="false";var O=mxUtils.getTextContent(Z);sa&&O!=ia?(O=mxUtils.getTextContent(Z),0<O.length?q.cellLabelChanged(T,O):q.cellLabelChanged(T,mxResources.get("untitledLayer"))):g()}};mxEvent.addListener(Z,"keydown",function(sa){if(13==sa.keyCode||27==sa.keyCode)oa(13==sa.keyCode),mxEvent.consume(sa)});mxEvent.addListener(Z,"blur",function(sa){oa(!0);mxEvent.consume(sa)})}}}}var q=
a.editor.graph,k=document.createElement("div");k.style.userSelect="none";k.style.height="100%";k.style.marginBottom="10px";k.style.overflow="auto";var u=document.createElement("div");u.style.position="absolute";u.style.overflow="auto";u.style.left="0px";u.style.right="0px";u.style.top="0px";u.style.bottom=parseInt("26px")+7+"px";k.appendChild(u);var w=null,z=null;mxEvent.addListener(k,"dragover",function(T){T.dataTransfer.dropEffect="move";z=0;T.stopPropagation();T.preventDefault()});mxEvent.addListener(k,
"drop",function(T){T.stopPropagation();T.preventDefault()});var C=null,E=null,D=document.createElement("div");D.className="geToolbarContainer";D.style.position="absolute";D.style.bottom="0px";D.style.left="0px";D.style.right="0px";D.style.height="26px";D.style.overflow="hidden";D.style.padding="3px 4px 4px 4px";D.style.borderWidth="1px 0px 0px 0px";D.style.borderStyle="solid";D.style.display="block";D.style.whiteSpace="nowrap";var G=document.createElement("a");G.className="geToolbarButton geAdaptiveAsset geToggleItem";
-G.style.width="16px";G.style.height="18px";G.style.backgroundPosition="center center";G.style.backgroundRepeat="no-repeat";G.style.backgroundSize="20px";G.style.margin="0 2px";G.style.display="inline-block";G.style.cursor="pointer";var J=G.cloneNode(!1);J.style.backgroundImage="url("+Editor.trashImage+")";J.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(J,"click",function(T){if(p.isEnabled()){p.model.beginUpdate();try{var K=p.model.root.getIndex(E);p.removeCells([E],!1);
-0==p.model.getChildCount(p.model.root)?(p.model.add(p.model.root,new mxCell),p.setDefaultParent(null)):0<K&&K<=p.model.getChildCount(p.model.root)?p.setDefaultParent(p.model.getChildAt(p.model.root,K-1)):p.setDefaultParent(null)}finally{p.model.endUpdate()}}mxEvent.consume(T)});p.isEnabled()||J.classList.add("mxDisabled");D.appendChild(J);var L=G.cloneNode();L.style.backgroundImage="url("+Editor.layersImage+")";L.setAttribute("title",mxUtils.trim(mxResources.get("moveSelectionTo",["..."])));mxEvent.addListener(L,
-"click",function(T){if(p.isEnabled()&&!p.isSelectionEmpty()){var K=mxUtils.getOffset(L);a.showPopupMenu(mxUtils.bind(this,function(V,Z){for(var ia=p.getLayerForCells(p.getSelectionCells()),oa=C-1;0<=oa;oa--)mxUtils.bind(this,function(sa){var O="1"==mxUtils.getValue(p.getCurrentCellStyle(sa),"locked","0"),X=V.addItem(p.convertValueToString(sa)||mxResources.get("background"),null,mxUtils.bind(this,function(){O||p.moveCells(p.getSelectionCells(),0,0,!1,sa)}),Z,null,null,!O);O?V.addCheckmark(X,Editor.lockedImage):
-sa==ia&&V.addCheckmark(X,Editor.checkmarkImage)})(p.model.getChildAt(p.model.root,oa))}),K.x,K.y+L.offsetHeight,T)}});D.appendChild(L);var Q=G.cloneNode(!1);Q.style.backgroundImage="url("+Editor.editImage+")";Q.setAttribute("title",mxResources.get("editData"));mxEvent.addListener(Q,"click",function(T){p.isEnabled()&&a.showDataDialog(E);mxEvent.consume(T)});p.isEnabled()||Q.classList.add("mxDisabled");D.appendChild(Q);var N=new mxDictionary,U=G.cloneNode(!1);U.style.backgroundImage="url("+Editor.duplicateImage+
-")";U.setAttribute("title",mxResources.get("duplicate"));mxEvent.addListener(U,"click",function(T){if(p.isEnabled()){T=null;p.model.beginUpdate();try{T=p.cloneCell(E),p.cellLabelChanged(T,mxResources.get("untitledLayer")),T.setVisible(!0),T=p.addCell(T,p.model.root),p.setDefaultParent(T)}finally{p.model.endUpdate()}null==T||p.isCellLocked(T)||p.selectAll(T)}});p.isEnabled()||U.classList.add("mxDisabled");D.appendChild(U);var Y=G.cloneNode(!1);Y.style.backgroundImage="url("+Editor.plusImage+")";Y.setAttribute("title",
-mxResources.get("addLayer"));mxEvent.addListener(Y,"click",function(T){if(p.isEnabled()){p.model.beginUpdate();try{var K=p.addCell(new mxCell(mxResources.get("untitledLayer")),p.model.root);p.setDefaultParent(K)}finally{p.model.endUpdate()}m(K)}mxEvent.consume(T)});p.isEnabled()||Y.classList.add("mxDisabled");D.appendChild(Y);k.appendChild(D);var P=document.createElement("span");P.setAttribute("title",mxResources.get("selectionOnly"));P.innerHTML="&#8226;";P.style.position="absolute";P.style.fontWeight=
-"bold";P.style.fontSize="16pt";P.style.right="6px";g();p.model.addListener(mxEvent.CHANGE,g);p.addListener("defaultParentChanged",g);a.addListener("lockedChanged",g);p.selectionModel.addListener(mxEvent.CHANGE,function(){p.isSelectionEmpty()?L.classList.add("mxDisabled"):L.classList.remove("mxDisabled");d()});this.window=new mxWindow(mxResources.get("layers"),k,b,e,f,h,!0,!0);this.window.minimumSize=new mxRectangle(0,0,150,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);
+G.style.width="16px";G.style.height="18px";G.style.backgroundPosition="center center";G.style.backgroundRepeat="no-repeat";G.style.backgroundSize="20px";G.style.margin="0 2px";G.style.display="inline-block";G.style.cursor="pointer";var J=G.cloneNode(!1);J.style.backgroundImage="url("+Editor.trashImage+")";J.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(J,"click",function(T){if(q.isEnabled()){q.model.beginUpdate();try{var K=q.model.root.getIndex(E);q.removeCells([E],!1);
+0==q.model.getChildCount(q.model.root)?(q.model.add(q.model.root,new mxCell),q.setDefaultParent(null)):0<K&&K<=q.model.getChildCount(q.model.root)?q.setDefaultParent(q.model.getChildAt(q.model.root,K-1)):q.setDefaultParent(null)}finally{q.model.endUpdate()}}mxEvent.consume(T)});q.isEnabled()||J.classList.add("mxDisabled");D.appendChild(J);var L=G.cloneNode();L.style.backgroundImage="url("+Editor.layersImage+")";L.setAttribute("title",mxUtils.trim(mxResources.get("moveSelectionTo",["..."])));mxEvent.addListener(L,
+"click",function(T){if(q.isEnabled()&&!q.isSelectionEmpty()){var K=mxUtils.getOffset(L);a.showPopupMenu(mxUtils.bind(this,function(V,Z){for(var ia=q.getLayerForCells(q.getSelectionCells()),oa=C-1;0<=oa;oa--)mxUtils.bind(this,function(sa){var O="1"==mxUtils.getValue(q.getCurrentCellStyle(sa),"locked","0"),X=V.addItem(q.convertValueToString(sa)||mxResources.get("background"),null,mxUtils.bind(this,function(){O||q.moveCells(q.getSelectionCells(),0,0,!1,sa)}),Z,null,null,!O);O?V.addCheckmark(X,Editor.lockedImage):
+sa==ia&&V.addCheckmark(X,Editor.checkmarkImage)})(q.model.getChildAt(q.model.root,oa))}),K.x,K.y+L.offsetHeight,T)}});D.appendChild(L);var Q=G.cloneNode(!1);Q.style.backgroundImage="url("+Editor.editImage+")";Q.setAttribute("title",mxResources.get("editData"));mxEvent.addListener(Q,"click",function(T){q.isEnabled()&&a.showDataDialog(E);mxEvent.consume(T)});q.isEnabled()||Q.classList.add("mxDisabled");D.appendChild(Q);var N=new mxDictionary,U=G.cloneNode(!1);U.style.backgroundImage="url("+Editor.duplicateImage+
+")";U.setAttribute("title",mxResources.get("duplicate"));mxEvent.addListener(U,"click",function(T){if(q.isEnabled()){T=null;q.model.beginUpdate();try{T=q.cloneCell(E),q.cellLabelChanged(T,mxResources.get("untitledLayer")),T.setVisible(!0),T=q.addCell(T,q.model.root),q.setDefaultParent(T)}finally{q.model.endUpdate()}null==T||q.isCellLocked(T)||q.selectAll(T)}});q.isEnabled()||U.classList.add("mxDisabled");D.appendChild(U);var Y=G.cloneNode(!1);Y.style.backgroundImage="url("+Editor.plusImage+")";Y.setAttribute("title",
+mxResources.get("addLayer"));mxEvent.addListener(Y,"click",function(T){if(q.isEnabled()){q.model.beginUpdate();try{var K=q.addCell(new mxCell(mxResources.get("untitledLayer")),q.model.root);q.setDefaultParent(K)}finally{q.model.endUpdate()}m(K)}mxEvent.consume(T)});q.isEnabled()||Y.classList.add("mxDisabled");D.appendChild(Y);k.appendChild(D);var P=document.createElement("span");P.setAttribute("title",mxResources.get("selectionOnly"));P.innerHTML="&#8226;";P.style.position="absolute";P.style.fontWeight=
+"bold";P.style.fontSize="16pt";P.style.right="6px";g();q.model.addListener(mxEvent.CHANGE,g);q.addListener("defaultParentChanged",g);a.addListener("lockedChanged",g);q.selectionModel.addListener(mxEvent.CHANGE,function(){q.isSelectionEmpty()?L.classList.add("mxDisabled"):L.classList.remove("mxDisabled");d()});this.window=new mxWindow(mxResources.get("layers"),k,b,e,f,h,!0,!0);this.window.minimumSize=new mxRectangle(0,0,150,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);
this.window.setClosable(!0);this.window.setVisible(!0);this.init=function(){u.scrollTop=u.scrollHeight-u.clientHeight};this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));this.refreshLayers=g;a.installResizeHandler(this,!0)};
(function(){Sidebar.prototype.tagIndex="5V1dV+M6sv01rDvngax0oLvveYQEaGaAziE0PW8sxVYSDbblI9uk6V9/VVWS7ST+kB0zL3etbmIn3ltlfZRKUqkU/rpRLN6MmFJym5yM/8QL/Xnw7yLceXQ03fA3JaOTyfjCQCKZehvu66tErCMW6J9E1M4jlJcFTJWIPP1VIKK1ixj/zML4VBRiTMaf9HOKx8G7/lwy71V/ZJEv8Vv8cKea9KW646tU41nk678/4tK7SZVu5FpC9oz/TDPVnkEPJlsn4wVma1lEnVemGByy6q+M+SXkSmaQ6Vv27gJeBDzyOQDMu1ma5FVEEVBEtuokgQhdyZ62Uv/9qWWoYPRltgx4A3U970/hc6BnIuD+kdI+KbGTcelGce6ec4evOBl/k0r8llGKtWBTvulF98xVKjzEvxWXDVS/M8VHF57Hk0TDpzpxJQGScC9TIoX3euXvVV/UcWWpDFkqsCYyfaM/1ly36vGfgVhv0oiasyfh7ypgyaaBaKHl5/nThqb5VeAvZEigXx8k0AolJJUkVjo7jGBOHFOm29Se3FZin6VsyRL42V+2U90z9crTOGAeIEK8Q1UCnMlGxk4CLWb/gsflKt0y/MLnbzyQccgjaIivAjgTT/Gtr4Quf9cXXWRLjRKxyRwvkBko75hHnjisPzUkP/kyESnHtwoAtQ7kkrehL7UyzUAtLrh6E5g7Nnn9iYo2SWW8ZVr1QYsTIW8gE+ll5kHWQlXGdr/Qug1Zl/RDe2O4FL+fWPBaiJSUZGoDT6HRYT3DN9Gdgy4agY3Q59gj+iIOdAOB/MmYYlHKqYp5PMLaFHMVirSSG2XYySnnZrGHNW19JdaZoiYxGV8LbGq+9DKsT0APT3Sk1ldzXaZszQvOpfzlkndUYodytAPDOEuxuocyEqlUmM+Jbm6HevkAq0sAW8+MB9BmQJs+8HQr1Wup3G2zL6uCetJZjXKofV7J+FLnUUWtxZyLTYa20FzpV1GxEgnVdxH4JOgyS0QECr4F3z3nEUHWUQfUjUi/ZUv7tjqTGaCkl0q6Wou0Ef9tdhslUBAn9Xq4GshZkG6gTmx0m8EqvuGoYzb4iwMYdDnVMcpbS2QM3TYB3mM0Sp71/0fuSVPf7lmki1d10DN3LE6x0/CKut+GuddVgGpRyFCtc/sZYS/Cm9FySdUj3sgIPlOZeZvWNAm1o0uTXH81UO3zZEEqQDkwD5q37t+zdAOqNe/RS/aJ6Tdi5purBt73xV930PiLapT8HTTXqz2Kh7JloQ26bIlVOtAl6dIY9uBPMhbeCdgtu/ZLJeEe1XdduTSPrpc6v9+TlIf64jakMpeQ9RumQFVr3YiV3vcb+eZyy9Viw4Ogl1p+nM2xmofSyNSdYgHjnSzA6m26fu+wTKtwYM30S1LXTkxPsYp0qp+nbu8yg271r4xnWM3/hoseBI+8qttygmLlSfLhZtmsS7CZUd1Kds295iT2m4dTh7aH0qLgF2QqGo5qVVdLtHiPvIp2mdDXinvvXtBgGhLRI4/1sJs09z5TqY6sRCNVqlU+2qxPDNuRuxm20MqLmqNOO3CqHRqxEGEclC3jNtATkMOLhFZpOynrH5FAc3UlcKRsbJHvy/9wD8iylUSFJHhrrfmRYBPaZCGDZ2Mu6QXolr3prFf16OdvsxOjqyqUVPXzVEngw+g2Qrur8WehCxWnqu71sE9gv/QWnrSalK00WglxllLFX+VXVaxv1TMae7yFcRrlV2059PNiNr2+wdxh60gmKamJ7trRDvIm4xsecYXqxI7z6sQ5pICWKDHp6jFiEyjpgtLioL1lU6MmSu3VHZm0QtcI1RVNeCPPjIeKHnuZLamxJzHnNIzdyIzsV2+DJm+Y22ZVlPINS35AxuFl1Bo4nQ5IJ7PIfxyW8xzGplLgaG9BGginPqsrUhn55RCZiLoxbRn4v4dAbkYubdBLFkWoRfXYs24CvPz8lGzpNZchT1XDzN8OSEkcF8ZBhnP+1cq2jJgddJORxMmOmMX7w5A96HXzILoS882Mr/IBWqAHTcjxejheKQPvJRo3kWNuP0g0msMlzn6upFoK36/o6A6R34t5fG0RKMGiNdXSwyFVJX4R6mwE9Y+GsodSb1gcv7cCTRUWmCEx1rI2SAbsPvY2+m9QmTl7mCeBdrAdKeMnTGC24X4ylMvU3qWtzY2Yf5/QdB+kwyKPB1i9agqkwEqZJqm+HLULWY27rx0Q72mUWoass8VjGOIQHihN0cRKenQVagMsqEtZ40YXPq4geB2yGWCXNjHdvWUBLwzZJqO0hL+TVEJ2va5urbACZWbCVYXEuLKywZep5bhnERlBRuANDHRa5c1HgwZlFJY2kWnipFFzIUE+znKy+EtINIQLcbvWDo8tdUmlOANNl1A7/85EXGmvHeBG00tYB81LS0AuLBVnVATUY8Ryv9DreSbjX5/Gw7BN6qTSVmRHniapOrKd1UqFa33dmLRcn4eiO68TzJgwXYga5OrAdj+l/P+s/3w5u4BXnkOdFpGwo5wOb+7Cf+7CX/0GtfRfzjCN8YfJX05g2BeQMAv9mxwCtgIWyOwr5L/o7pR+6SJ3Fe/5QLwwr4C6BIv1fKyzpToXHJTbLiG8/GQotrMJyTgA31zp7sYz07uavDfhI0+ET93fNFPKrlqZnmkCBaS85u7Qkeu8E9ciU7jYt/Oin4Cirkdwp8G3qlPh7jTYKupVrjsR5kytjqzkeYIFXRodnI/DcJL3VsvKmexWjgEoQCsdT/N5gLf5grrxeJ6vHTm4gO6UlxdM9fCJr5VdTooZGIdRDXwVSKniAK23gL3Xr/TsPT66RK06s+5MS1xeX2UqEqZDcGRYCDPKrMfWwKV89WhCtCt0umFC9cHJWKCO87lZ93ND0Yx1Ilesax5NH5/A6H4+Kc+ulmZcK+SoYJnx5BWnwRUNUOzoqJMouyS0VN6PSOkRm10jTnAgsGXKVzQTWkNVwXMVcD3cwHzgiccCc+0iwrV+eIB8vYYrzXPHQmiE1ZMQ1dCqZe8YRowhM391K5bkoGWFgTnpJC0cvypov69W1PHZKu61VvUKlrlgOFehv8dRqYiSVFVPrFeh9R+a6FKwUKF/2DYN5EtABZqrc/t6ZBF2b+Aky+I4EDDf0hE76YPlKyXWsFCNdaYrfEHqwDPaoVMBPZl25/OkuXfYh1AuGViPJI2HzBH4syPx50fiP/fFS0ErkVp1KFpUCxjqH1AdWqWlSspDr9t9mp8sRe05lZKcAbbwhWfvXCT5uaMGgh6KpJLW1xfoBw3LaFijA7pLbA/dLBaAHq0vExEoc+vIsCVvS8dsgKfzHs2zF5UcNegfdc9XQw7LtzEBEfnVuw5qsk9o/ZpU+TG0Qy5lmqJsZZKl/bKVR1cmoRI9kMKywhvIGYGrFIq+bi/73BQ0hZ97urenL6JXo5mqakobbtIVV66p/w8gNxay1cYALkHB9QnaBuTxx//OCudewXQalev3OcXoIopkah29PmH7C415oHVru0dODdPkGKapDAJyVt7oUe06YBVuotXIfZ+gJPdtaYfWuto0odAH8LSEDeELJ+eFgmTOYjMjHzutTu3jF0WpG5cTsOdrF/oO4OA7ZEqfB4GIEzsLWN3o6/CT3nipaAhKotcVWg06C0PjypdFnnW8zKDa16wc7zM8ads4WfHympGqW4QkbMBZ9BJqM5HWi99YkIFBog0Hzio7lkrk6FpEIqHNUzdS+rD2lUqc/dJZEPYVaHSDy8bczBP5mZ0nMo6LJDO2Kt7crnZYv2dpIkqO4Lj+UwiaZGA0N9XXHbZnPaKg7UVm+cmsVbpgLwQqTBDlK2QRjYqU9WGg36q1rR4EKSmgVoQS93g0qWbzMLnj/zKeThc2Ny9xdcxvW89tJ4FBZ+TrYS822IEJJ+OfG7MBproKdaU+lm6ha0k6VD5Wkg2Rn63EH5QRvWjn4LGOw95S7TY+lo3TH5bgr0x4r7qHlmhA5xdL8inC2+X+qnIjibHk+hEt7HPJHmiPr5FDKwqa25qJBIaLoGOvda+c0H4n10rRyKPrgymjDoVVMM5x8qynOBbcSwY9gDZTfidm4q9hNigH6Zq7EjwAgaEWn4CdRLdtSHCS1yLr+oE6voukO1CwEDCn2jNsm2CDCNlvtAe2HK3BYr8H2yZ1uJHuZl7so7STbMGZwqkd6+yc2C8a0q/ngU2T1/pvyFPmk83Tn/jK+AeZjy7QxdUCkrSe3NbTqNgL40jzsEOzt6u1D9tkTG81GT/skQ2ayLenp/lHp2H3zgzG+tdOZtsNHX1oJuNi99VAhH9Z9NF0P6/LNDBfboa6fZhgGdkTPhmqg3Eaf+zelGaa70Uruxfjpw7m7dWUBlIMPOJLqqEnlbYw7m/rCMN8W4EIq3yU28lRr/00O6EP07B7pPtJPgO3BzSObqMkNTPyh4nQVpli6C+Kh7umeGXIdYrzyrTE4a54V+7GdziaNakWdy8rutDfP+5Q6uGXHqZnFasiznRQXfSQERvNwMTfZtcLB/4N88lR1Bd6tC6Wmg+3UpO1nNAGReekn+dT/fCb2QYDbrLizeyyPyxWZ8bSBMBkfKP5KJTH8MncwhpdhJEJPjKZR2kWM4anfp4/4AqMtort1M9HJXJkDjXvCa99fDR7j1goZ+Ci5eNlH6zuA1JT24fiScpErMTelfGWWtwxQgHFjjzCtuJuPPlabFdZTK9hY7OU1LD5pjsLmKV+V7LRWsksxq1hcNHhDR5nYFYqnRg0I1Y7DGhmMD12qaM7njEng52y6I//yONAG9BDsy/0hb98H4T2Hv7Q9t5BMyMPDTB4Nn9XzMNV9SGpaZMwKq/cRu6MBdc0PRqMupDoGiLfYQUGNXqIoSzglobh11Ll0aDyYCql7wahxgrlvX5sEk9cZ8huDzRQKtakbzDk+1FCGCwTPmIQ6tuLe/08bRLHSBvMs1uV8of6M2tpff8UM/Pjklg8LY7ij2R0alrmSxLrke4KNjZKlWGvuIKL9jaT+K844epjeCsbzgtnkPNwXuM/X3fC4BwyjB44eY2kUW1gqzKElvowWzyKevTim5hHprYrSXGfbPU290OwgmbZRoHEXmVmBwR7emHQ9K589FG7k96B/hk0nQWuRNKy6Ee92NUl1NrCPFkWodFqXT7dWLX8EYuTjUw/LIFnGWQh/wD6BXjF5f1UsZTtMB/UxgsRVUy8uA9OYDJGlyEbZyNpS1HacBx90z06HU8knhzZ+GJAVIo1Vl/L92CjS6WtHnxx8r5FZ4xmPbZPYWNQQGbmEnRmuZ+BSxs5k2zBqQJpskiklWy1PIuQ4XrcZbGXdyOzpNmGIhLrhZhgucX6peINVyxIRreX0Gvda5tspRgFQCo8FlPjIwyemeTOGHtHJCIiCLF1sTgfj3fTib1jX+DJSDoQaa0feE+++5K/Z4mSnEGL3N11JS8SdE9HeEraqGfFD0fVEJwXKwldJ25PbrDKdG6T+y0F1RlOcDth5Q1LnHvED0S48Kx/2FCEsd33NxRhFplVkqLAB2obiywGV+ucayDaPEbVTg7QOnlfSrsfbDAhf+w3rmPInvWoA13OtB5XbLiyp9hIlxATesgqVVuZanqbKm6MJh1Y9lBCLL9k9Gl8cwW+HVN5dYJRLrKWiYZmurNPX2FH4z9mJNcfpaWJPKJ1YKpu6aZ3cv+m5HAb00cnVoSnzXdi39v8OjrjroXiW7JZiggXhh5ecLu4/2OIdA7Ih+C08S2Hz/Mi1Fqe56VEdMY8L6Zn4/H4j64J+gKCZEl0trLXXWAjGMsGJWQg26I8EcMmW9IrrmlhBZrg+JIlHLZJUsDSTda8UlJHNIXvj2Y5Dm0N7+NY9pee1o2LUIfB7vYSCPXf0b/4OxT2bsD8RsTjfKH/6Z9VXOcwfICpjK3rhMzX9DytZOyWPLfXrWCUPg9NPwImrq4cFDp2bgze3FOyVbYDpm9SprndbD67s+TRiPMDD27nJfk83rKrqZ7X5xQq0q9YDHNhWMhV5/fLowhZv+42gEJbG6qJssvEbZBSVOXSZTsKYuja+uiYEEIglnuoh940Z5eYnsnancUvHRghyGUuRsN2kzpsWYZVmcuVBAd9W77MgSF8cWI9JZs5sAeipm0DrrRhtrqDCGj+YStWogZxgwj9oEfBAkdsCZHMvHQ0uwCj1xdrQQeRMG1SSzqzI4JDRSpiZTWQ8TCDQIm6wsMEi66wv1qClVex6HKgZJe6zcRte5SqGO6zX6dWll1JmiVrIz2g68ZgQnab6IEXIcRmwh3ZYRxAHN5hGCfHMT5dGKlkiVuP1WAvj64TsOvFLGDWJOJAP/lY+rOPooctUXaFcG5CMCa1a0AHPB6LmSeMTZjfdEePpjmWiipzbiI1JJMhSCDb6SkZvNPUfwVnB0LYx541RzxuJ/k8hFT3ptWjI2OJC8b3RVLQnYF/CSf9GYYUlJRr45LCdn5cmnOM+J+nGctEOKfpC22h0DCFPGOcUCZPT0PubViEX01O6XyqRR4tbFvn7ONCdyczP8nnzoqrvnzzLNmUx3kP0PNFsKof4FFvGGqlYWNjR/bvu+xaITXs0W3mplMCaGSq9dDgslfw95VecO/809fRxfT0YkqMuRWRmxYdiWa1RIXZ4s43G5IMY9p07mxL6Mn4UtAY33ZVfdkuC2NpZQ2orngTjbcXfnaxl7EVNqU7WUX1OZLvoBYVfDWmbgulWK24yneHH1cVriJPvce4Kh95HZSwgX8Tx5T8neyLftHFIDycVUHfSFbhqFqHRluMTCF73Rk7urVIY0gLE+jEreOr5DkbiOfzMTy0c16rX25fTSgzM38k16QXl41tRaVVG+mqHQ9Kj2tRjO4N49KlY/vbrXN4V1f3WuAjOGZmozND0lk84L9yZ3zmzFEzTpQwu8YD2B2viUbXWWKDSOkmchQHFhbnzo2qkgRHQ8tEBty9dVYSnR8lzW0QZLBgZ46HuswCmA8R9ltgtcHh8HNJD3RKA4PMUdZbLlFOtrvUhnEyICPSHGYAsR3mR598eOA4RDUx91qTOIbeVNIBkpDJiqcJlB1dnsAJOg2hOSqwoxkt5cC8PixAfV9cX8Gqx8PJzjAM7N5oP9h+T2rYzFYabfWizslupwMJu8s4qIywhoDnZ+gK/DqkqPM94mMlfji1sFJxfTppGJD3YpwMzng2OOP54IyfB2f8cgzjvK6saydCejFOBmc8G5zxfHDGz4MzfunPCEXQt3+YDK4TahiP0Ak1jEfohBrGI3RCDeMROqGG8QidMBlcJ9QwHqETahiP0Ak1jEfohBrGI3RCDWMfnSDjVL6Y+cxIeMnoK67frkNzxEEetjrhb7XHe/VlzX35Z/NSCj73REj+FIdndDml9mfNO0Si1lGgL+nuK5gEjn+Du6vZ3iiMhyK1J7EeLjJ0IJ0MTApUp8xL0fUFY+1PIThD4lH4kcAc0ZZ7fsEUO87W7k3yOaX2XX9x6sksJg8y+L2461euSImrmyKhGTR4ZOeLfsTzjUylzdYYbqqzuZbvRY8OMSAUjkF3l2M7rL3GgfcSMN/nCg7P1gX0PUvjzEbVbDt124lo0ptoAFl6SwF7LF4S3QbMsrY0LjilL47hGt08fS+aQ3tDMPNvaYbHaMjVCm4278rUQudkb2+mtp+2Z3RgWoYf/YJS812Jv/v7mYQmH57QA7rd3d5cFu+VZMFuaksRSzpcr7Lp9ktr8l9M6+y/mNb5x6Y1f5j/18prJ60PLq+dtD64vHbS+uDyAhVlI6M799fdE5h8YAK31gsPt6BVaZt6RsUp69DTk3fr9ROx1h3yS5LHHaarfvARrtguLAODtUQzBeyZU8d6kM5KpOZkDlwuH5J18iGsZwOxPmOw7TcZpG2xuxs4cH33aI5Jd5J0A/u0wKZ8oZC56GjUdHaNAwVZp8aD2xqnlQ7dlXy5uknqlI8rfmfa4p+V00n/cZ2kaqGdDEA7r5a267C7hbLPjMiWvXFYo0Y/ZnPdiBUy+ToCJYpL0l6tk/j+06MLbE6e4m3OCmUMBlbBmIwYySAVIUXwCUXkNy1blzguKWaN4jE6VDljtma3rNJVX2ak5eHgFEcCGB0nG3TrWcrDQ+wrQdSQmIkm0+0tpXzFpGTTidwVMBCtiEwAsXob3RfLWCX4ypxyl0oZVL1mDXTKAh75Jk66e3WYbjBMgC8SL0vqzqOpBO7WH5vDDkAZ6haFYTV80TxG3EGhkULjQpwqMUeO68F4KirOKKgkwXBn/2FvzDVZc9pEc2C+SiA3Pgq6yskW3VGGFYeCeDJ2blwWhh1SQRGzpMmTZIdgizN+NtQNGoLctdpe2WPnJ+N/XIVx+o67L/O4wYoztyZe5jFhh4EpiyoZ6kje0SLH+OEmmkWxpN90tkyJ4zpgyWbHhcM19WsZkH6Ras0i8du55AloXNdaztzYgSmjVSMTb53tH+BUg7xhGZYONOBme6EMCujYxrX+rN3BeYD6xunkoQ3XlnTdTqBDlETN0hSK5ABzV3IzOXRyoYOyyjWjlS7C4Gzl2KFuctjgTfkpR62bf3bRrzgai5lv1GzlwbDVWPlKbkk35kykmnDxNfh7Eyk+b73cNsoi+HsbRY71qHcpDnlyBic7MhgeB3Q5TsmbJMsckqeTLbVSk+tI5EHclWjjK84IzRcv3ASRtGEiPyEv+h/61AUTSdPlpplatvIkMKP6LPiW06Ed6OhY1wfKmLYftpG+gY7Fc4RyhcXwxBznF3yQ2LXoERXmbJgl6LsIFIGoOEPugOC7tnWi/CywOxNXSxuzuPakZB7BoTLnqxhxGxNtsOAVRmUdSnF0fvb2MtDBzKimE2/MA2mNB7qTEI8873ZXiid0El/MsdYrniqHt38sni8oclZHCnqsvxCLcqZV5+t+fnro/r7m5ryWStYNhRnMYvM+Tnm60EOFmFThlPqfZeZcvRe6EzZntaWkS0wsOJ8spTa4HjHk+6Ibt48fQlPMCVXtlFkLkvG2iMbZYpnXMBwMWHzFas7yPYRn2FSxmTraXlU05nQ71NwNh5Uc4uTB2MANp7Sh5+EmdN03vFN026Vw7ud/xJ2r5Q8KdgOHyTIb+oN5bt1bHpGwXf/vNj8HUrMgLTPqDioiQ1eBf7KAoiFR2zLDcwecuIa+t7TluwWGYR+m9rzA4ghBJ5iZsdwJqknTOi4mHXJ0HtARirSFPaHPBXL1KyZjxYJaSwJh5izfLind6Vpr9KPN18QcHuVG8GizwuetHvkllLGJuoi6sGeG/eObVOI3NJkAhoY154U58DxDm/F6suBsH7TdDa8wy2tA3fQ6YlC9NOXTGgF0TuGI+bD1SyTEX3M0aAXOM1NHtJU7n0ZywCkYmwWjBz30PNV21NvJzuSeO0EfLBzLSaFI8HQybXkJbo+4tZ/tLMW0krl0QcGMLniY2CkXc+kC1c9lJPUyS1OcetH6+4SiDIMPmf4dGpT+0lgaIX3TQmvUXIL7tS5MjYlzg7gjwTfSQF3xN9z0aDhTy1PUXKarOmnpnCoJzWDUmgLFgLBZGF0hcDmELWGhtiVWVYyHIcbCnNNabPDKOwolTaRtHq1FxLnabcBlpslwVCMGezrNyo69hvxMhe7NKq2yCuzowiK1zpsqmSSnl5yFGAIM7kBRVJ1H68B2DYvgp5cBwwNf58z3A5yua4hje1NQxjHTqlC3Bed2VIAx6JNYZTRNUNy1A2UYw6GIJmxFftcFSGvDF8JELCgYOq0S75NO7UvgzpwS72R8qv8/ZWop8DTbmR5fknemaluT2kvj5fRFJLLje6ss2UCcubWuqSZOMX53Uj4XDH+0nxTziHBunKMpfIOWCGTtjU0KwgfbJPYIawXWuUKzqHiBn+9NQxjAUFssWiW8m2z0WSihRldm5Q/ElaZpXEz/6FMhmihnSOm+CF/mw3DTbBjZdrj6CLXi3E5041VrkdJWbsdN3SXA6E78nQk8jJVwWuBLIXHTLNl9S9Ec04PI8pHWKvfRbYEEcvuS8CixfoyRS1PbcJa+8F+wBL2m181vTnDqPM0v3FlG1+IX+QKnipndmk/ZksMe4W/ANBlflVJJs2W7StlP4oAHehqJJ3NiUn8MSXwN4xO/eAtQGNcsGjSN/bzqTf4DMn7D4rLAvbO91851AIa6CmB9wgvHx0e30ekd9TiPUo9cwMH+3uBFFLT571cSLcAO8roTkUFVIjoWj5N7XieKjDzA4dPtYd3b+jiPZCB+xaTSDirhaBFZnWFuWhNLdP3Sb/diemM6EMb2ms3QNzgeGsc+dOUKGM1ktsSZMgjAqTjuIn5idqksZYIGnp6A8MItr205EY/N+dkKcxzX0bLo3kLK9I8hiEr5BNFrh+KEfgwopR5JhgOTPkq5+gBK/QFjy4GFftODSX9ILqqJg5X/TGjj1R8yV3cYSdoPqRDXLMCAGUNSBtJGzhgsO/Y4jyg+xbxXE4/UhoiespQF77gOa0e7eWi0s/FkrD9WNG0CW882fBvwlNxvvFfyzRgorU/HptUVBG6zdODOGk83i2jQkJ/09x4uccbM/F6NH7EINuHhNEZktuOlMlO0SkxXYfnHZpoRBlaYybU5t2wpfL9lQyThV1L6NUm34kZThkF9C91FPjq0dLTEeyeea4Zle02yhLzFiaaEfORJyjLFIrtJa9XA0Uow6UZAnjseLcPmbjwh94VHlsZGJvFhyLlaFp2fuFnzDo/N8PQNxE4Sv5tiJNcw3WJ05d/Mzi2K0n03poX0KACac1zyGqKn2QyqF6wS7MV+zr3Ffc5W5pn9sNl7vLq9ZZrziinM8xgi12CwVt16W+ucAf8z04VDZ2xY+BrLXtdGBSPi9wrCaqp7RnE87+gFdANgfrM75R4c7dvjxeDKy9T7IFTkqpPoAXYQiJZlrB3kA4/TjEKfHyvEPMjQ8/9oogUz+xaPZ4rkdhWwV3hy27QQUIXFY31wI1PasqxWgZv0xJ31xJ13xv3QajQbpCI/82OJnMLpHwJG11x3p1i4shPunlAdMbY+mDQ74SadcT/xlUw/yfthJ12wCVtxPGJgw35XmVR1CLBmupkxBU53VCE5e4Jdu6a1N/jU1l1rz5B4AuZARroHljjTAMIHFadYVUBjqegcRrgofTqgIKykRANWm7VhSMLHsnbdtYLhX+yd4fYTuTUr3ZK8TFkk6wIn7BA84rk3y4CZBY38HByV/9CefZZqa1Lfl8YJ/XyCfkewgYfsgze+EV67KWnwCyZouIcpJvqubXp6Dx4JM7UHUTRkQsZPvlpZHKKVgpsUaIrDDQU11B6PcKoPHFdt7I03bXa7mAqW41X3yDo3lSmmJL/vwBFhASlaZ0jsXfm6MfThLpmtsXarWZdaWwJP3MEp9za1p9FUGY8NLHuHwdEZkWHpAMndYxfT4lC6Wk739fkD6OMCDguCJSBoA4IClZL1lcDRBKiPmgie8rc3xdFw+kwjeHIM+OwY8Pkx4M9dwLDLEephqUG/cXOaBJxi241gdIG+4kXW43VXMcosk0FYzgZhOR+E5fMgLF8GYfnan+USwwljIWfLACtK/kQvqslwVGfDUZ0PQTVlefBuPZhz8PpuYJkMwnI2CMv5kSxwXGOqMvSUXAmcQrK3XWhuFO41mYyfKrRZTYG1ki5oNfaSB2hC6bslXXbkMUtOTIXkCwSfOD/vaNHt0ykmoqEaniUbpOlZskEanyYLB3zLcLiXhOpJgh1RuSzNZBias2Fozoeh+TwMzZdhaL52pzEGUM0iQB1kRM61k/HD1QkeK5NuTjntucUb3rj/tprpZ8605QWTue7CtACZEpkVMuFND5kWP3MmIwfedJDpkq3XNBgIMnvlDFVLdMVZ0HaSDRPKa4knt0sAoRsm4wvsLhYye9Oj0RIfhHRISpdp4+kRO8y0lcR7L3nwnGCMOLdFAsNyFfA3490RiFWHF8OdweQFbLdrOSJxvmjOlJkv6jLjZBjmZqunZ7Og8kSzaixkPM4YUa53yfEfsR6TCvKKsRd7//4P";
Sidebar.prototype.searchIndexData="7Z1rU+M40Kh/zVbN+wEq98vHkHDbJUxeHGDrfFEpjkh0cKwc2R6G/fVHchKGKMwuRo7Usr21xQyBzUaPW62+qfuP9tkf3bM/Go0ofg2I+POP5kB+t8Rr8kdztPq54Hi9PMWcs5fodCD/QCP2Ev7RPFvGq0D8Sl389QfhMfVxcINnJJiwiMaUiV8ZzVgcs9W7XxgEdCF/ELO1eDWKOXsmj3QeL8VrjbdXhixgXLzyR6NZS/8RP5EfrTEUX182H7Jb23y73Hzb726+pfO3NWw+89t/F9DZBz/qjuRPsxK4IU+xdQK7JS/3gZghcEcXy5IjuF9bX7+lTXBGwjjdAyglYR2DIgZGMaQboeIgdgNMCL2mGQhDHAQsicXhmMwCAoRF245+2LH43wTPgZCwtDV2JMDsjo4iET1DHJbkB2chEAj9zh6EjiGzYUi5nwSYQ6GwvyU6fTMU/kxW6xO6FQVUt49hXxj6VjA0yoohtSJxOIejIVUQHYMgvCXma3Q+X5A5uiJQD09T+vKWxf5SkPDEOnDwtlns49iXkKYhHJU1tfG1dmIBBMW+MJgKQbzXFEBA2FES4JRD14py8AISzgkHHJUxJhBbEtMXhh7xawVDwhAfmqAppgEcdWHHB/NiTtdwINiJX3vil2gkKIA+Sk2JxJRTqIZVx1B4Zk9XoivG6T8sjHFgn4clkdjj8bBdlnUaavDOkGt6j6YJB2pfmQpgbhnI1DdMEJ2GURCA7Mzdyg07o1sQkPJ/dknAieAZ3hk+jXx2OktoMKfhIjo94zj0l+j70xP1yT6NNaNhTPj5DxLG0fa1OY6EDSa+kWt5okHwfo3NTk8s54PVP6X/fEjqi8jx9jufyI8oXmBJHNBQ/E/DkPjx9gOqsNv1fRO2fQA7xfMh6/QnZztuWszPw3lZgLf2gLcPjQAjwC9JSDj10e7dio69v2971Zu2uDOxqnAlSy7Kgr5eU9zkQ5vPCPrx6L7oqDv7/lbv0N8yQtpb4SAQ8h2JDxxFRYe+82F2Gr1lB/qUBMRnq1UiPjq6YklU+KO0Xts/S3uWFMsheTQZVvDNwL8PqViWWOtr4Yk3m/uK5rA08ojEhYCvpYBHabnHWhiP6yXhOIhOr8/GaIxp+MTxqvA6RynJ/CDk/x/PYLjj+EejJkiKr5NfLPN/LjSkaOC1Uke70A+mtb85PogagHowU/aSrq3Yz2Q/oNU9DGiBeSY3eL1ZaaEfiOIFd+pwH8gY+4I+i5aFfyb9/WeS2X0w+Eyoz9l6ycLCH/O9/0zVgXkoxXc1uj1nbK7JEA3m4igRjuAQ83nRn0xH8QFBbxN0x+SP/BI8F5d2DKfblRX6ifT382xNwKe852OxksI/EeWIz575NPhE1gQ/F/+JtPdd+D7kPZKE6JHx5yjGGyLFfjK99r6PAtiR9xLx3e7HhX8uyo45vPUH5rlM8SwgcdEfiHLMtwEbXlPCVzRUy2KL90g6yiMBfKrcF9+XVzYIZI/xgc4JE278Snxb9MfS2S/R+aAsG8xjeSQzdCaLPIt/vCsFwZBDw2UyhuFlGkNBJAh2z2XF5klAotN67fIcXQzZedGfiBqG/IL2eiP49kzGG4o5Po9mvdtC30YkehaL/R80DJIoDRS//XrRn1N3/5RpfmHnGHlOf8vndBEwxqun9FZTCu0pyf+LLKP2XmjsL9Hmf1D0Z9PraFsEJp7NBeXkRdYAe4T/oD7ZPh2xqV688f8U/SEpcczeFyLLJh7S/rMp/EOpO6HVvFdx2qxKdNqo4RmgttsD5XGCg91p8+t/ir49eEN5mbHwaq2ldFbLXH6c75OaizPGjxn/ZQmchwuxCPRtiP0lQaPtzwv/XNSivsw2wY6U3lPYvcvJMMBRhC7ojBM0XMpccvD2MIr+LNRTJnNCJq9nITjQWRKTeWnQK5FlW9vghon1zEvCXKkzameuJ86HuQw+LjhL1qURdjUGmTkhrwN+mcw2xtECx8LNe5WRxtoZjsgUXSWzoqNXjttWZu9OMPpl/1xuEebyGIby9TI8A+Wec3an4XjPYNdYYfumJXsS3cyn7vGeRLUPbNIfD7yy7IG2YgVlNvqP9xQ2nRhKsBMAn8rbG+o4KM1+0G1xdLxn8TC5LctTUPzhlrWzYSW+ntbbjeLfQe/rHsdj8eWrhDvdWk3m2ygpfMcdpd4je6hHh3O3XathHqFv3Xa9WfjgsnqTzKhID3yfRBGaSKqFB71/xSL7BTEt0MPC14hpZ0n0+HpF56vIb/bmRFp8R+PC89UNtWvx9Qao3S6+AddWenFkDqtrQY6ojyacyTOv+BkMJWjywZzXo8rzHarXSmMv9xTWmR1yLdbTQdH51mu61/70AI9Rs1d85azcUcp+YV8L8kPhLTi7FvLfk6LzVV1po3zPzrzCm8iqGt61HzREmBP8LIeFn7GfRSetNNs0q4rPOJ0vCl+v3tVNomghnnrCPi5BxF5t52tUkIcyNzvGIV6Ursy/aTSOPMTF57sfuWgajVwIvsKN5mmDPRou0OYSS9GRW02NDEeja3QhvhSdsl3felj8wHJ/35bLXr2kxVf+NQ3FFR2zcim0ZdSe22AeFj4Qp10Wrw/5PqTxKzr/ueYlGH2ktgqwwDttPFN0ztr9F7U4y1nSfowG/v9LKC++q6IOrTYap9vBHu4+cqFRd3Qv5euilteGpxyH0RPjq7R71a9bxNPzwld3KaPrDIu6dzIe3BU+raIWxpj1X7zxSeEJq+2/zAbxvHs08go/WbRe2+9FmP2ChRbk+7PCFyiqAxXNVtCNSFyKi9OKx5K9G7AWZBafzFnhS5mb+4yNxkVHk2nR8SpGW/aLPVp8vZtB4UOiSqcjs7W2I9lmaszmxc9wt22q4sfRGF3QoAROttKTKPswKB3OMkWF7mi4KDrlerNjUS1fcJY2QJuXp4BcGS5rVkmnXT6Enh6s1wHFoV94Za342Gavtu56qpRGtq1ejrjC4XxJgsIPSVTqyc2WzFxN0tnsRWes1NeZtfGuULPRLDzhusVj8HpYeF9QCWZkn2Gvx7fwwftuzSZf+UlDEiMv5kQOeio67Xptv07U7CWU6+8e8m7Oig5Z7bxjNFVyXfh7VIor0jV6y+d6Mi38jL6DklujZRmC8APa1WaU5HaE1eYO1xOBe7VKQrGaEmQA1UCd4SNwgkbeTdEZd21eJb6eFv4IVPWF0fjQn2ffR0UH3FAawRi1Mf4ihW9O2doX4LrRSyeCb+ErxpXrw9knw+sAvhncopgh8UfRMasFzEYNtxu6WMYvRH5Fg8KfeXa9khsWLjjBcvTXpPCliOpMNqPKYzwofDFtbz913TAqyeNh4fm2bd7gGZ/X68W/zqrdXVwLMZnTMoQqFCOuZ9QLGRMimzmsA1z86paWzXjFmETLyn47OmSxelQvQQ9b7ZlAWphpSNHD4O+iQ27rjpvRgsxmNCAlylkrCT+jBcxjr/DunnKhxGyR1vi+8MpCyYaYjdaP/y68/Kpd240G4W4Hw/JUgfcUx9qoCXdbDSk5Ll9hIuOwDNUWysUzs/qCxBELS9CQUrkOZdRCFpBfGH/elg+tSPHHRylnoFkb7pb8TKJSdPGzrKAl5oacW3KBZ/JC1PnPmITz4mtsu01AN9zbJRBvCJy7JeCsXNrpGE2wfvdjEhSdsJI6MesTfr/16mUYl6Z2wDaan/q+TteBBivhfD/R4h+Cyn1Vs27LjnbaLHHNeOENaqVRlNl7aZPBCNWLTliZSmc2rC8JNwpPeD/QYbZIYyI8b3Tty9UVm7JSy2zWmJucFT59ojTDMJvQngyRx57iF8wLH9xXSrrMTgkVnB/onLCiQ1ZLa43mAiejwk+A2Pkgu4slNaNW8mRc/MvBjX3Chg1jzmLms60fEpShCFQxL8yOqJv8fVF0vmr3cKNBjDsck1VS+HmhVodZ3pE1wSXo86kIstnpt3L0H0HeC439ZXn69Km6w6xcTzzxb9ERW22N4RH+gwpRLjpk5cKU2eqBLeS05wtnZctMmQ3KeSRGU7Yuw4zyet3meeh5hfcElXiR2aF0nneDpoSvaFgGH1Dtvmw0xOxNC9+xT6lrNtsK2Ct+vyI1hG9WfktyT0oZ5Gy2NtF7KH4eymYQY0oC4ssufeIDlyKrumu5ZSVRImnLAc6kBHd66k1FORutw5iKpRdelq1eUJtOUAlavih5P7ORuE1RHJYrLzblTt+iiTHlif9cdMIH2tjsuZdwTgpf2lnv7NfFmb3GOn0oOt9206II35/d9euFr7y3e1HnfnyJPMJp8RMjljlX6b2j8n3ASVD4085qWOihdONIzHoeD5NbmTeVn5hXiZBjw/YKr46tCvPjoGrwclS+117hx/X19gH3jQkwm5NVhHA4R+slC0l0OsSzgKSD3FdFh66UtDSzlyin9P5o1AQ/8XWSEsznKZAgQOn7Ff0hNLUnNB/tIVzg4lcbNTq6lsnR8F8xFq/LsAXUCujsyv9oz+B6Ug4tpBg4X4iXHO0RbNvmDnxZm45K+kB6oB5IGWyj/T4SjeylZUfjn77VyVMJDudaB+zBUAolBPhgvrsoh4+mzBz6QjX80R6BbLBQDvtUewJGTs9gTdg6IKeDcM7ZgoQsidCE8KgEVYX7BSzZL/tOUnJfRz7GPnpkK1x80vt2T72W2fDRRx2WA7Vq3tTbmQNwuqwnQ9lrufig9+2YeitzlEcX9F0ShjRclIF2bz9x3c9cRqTL2qOxnIBWDiWiXAHuZ44TaNOOhVFTEtFu7Bvj2ceL5wa7FLJtDzeXbTF4dCrMn9K1A85e93m3oaXBeTAdo827VLCNwJ7ixa7rSzm4a7eL0ud+xhme+ziKS4JcbTOeObOtj1z2JhGfGe16lZQSvA0dc0kXeEbjnY7ZqZxS8rch+NeDUTlh2xD26wlKbx4vWfhaTurZm2fnQN0bXpeEtnqdJXszUX3c+2UY5eDeV6azWVDkt8PzksAGoMhvSfwUsJeyAFcG02QOHeoD342n2TVsLAt5ZcpV5usE+uRLAtq+Ttm8A7oO0VlCAxm8LTp0pcHgW2sEC9QfabxEHg2oz8KtL1p0+kpHlex9SvXhV9EW08DXuDS468qFmezzx3LgHTMux2SVg7hSfJX9rr8+8Omoyg8Zg/3AKuVtEPcj/kECEi7isqTiAPidj5QL5qWJY6kJicw1nV8nHhE/4TR+PR3KXhcUXQjyLzgo/LiAltK+JXO+2duC02Iuv0Vv71Rw5KqUZ9YreSAvi3w3lJaSmVVKHrAvcUyeCVkXX4MrI4GzX1PPBXeC+bzwpBWLMHNsNg/S19+98pyUSm+dzLer8gB+w4rfo1bp75m9nXUeoG9J/ML4c2mMkpaiuDOHY/OAPrn+uzTqRPUurUj5Nv1QGuZKNZBZZ4f/SEs9U1/nPqRPlMzRZDsFIs0sF988VGacfMUaTynq8JdTTkKxILnOqJzcs98M1+c+EjrGjxl/LQlyJb/5FU9IF/kFDUhUCtg5RLHygF0S0VZof8VW1KV9xaLCd9ZWr4N/xUTU5Xw9mT6URKpzMMh1aY+pz9kLmZVDaUMA/v2qJNIN4ITcvMOm1q0c+Uxl2FL2+tkcoMtGlJz9LIvZrcSxvpJc00bOnuIXzAk6w5Fw8cvBXenHlD11nwN32XQC8zkqg3EIQZ9vqwvLIeBKCKWXuQJLH/h9SOOy6PG2km2zED7Z1BfKeGE57HEAQcLHx8eSyHdnvx+W0Uj4Rm9vMxFp3Oo8XNDi90fVno6zPfF0mAcsKXxpSr2nNIysZVcl2qRHNHomcVx4oW7rTpDUR30xRLs3KThsJWTVym4E6sOmM+FaDpdYfM4ASSlHXjKLXqO4+E3G9Z2eHPCL43KIZ+KzFt7HVFSLDdx3JEgT9ViIOo7xDEeF1zGKZZj9qo8+9an4IRpwjotf9mZfozySGRoGSVSCeLhdwzC9Vk82fSUvZHvDXfO383gpPKlS3Lrv6Hb08LYUdR9AOZoc6IdUcsA9DHAUoRZqlwS6cg88e6vxXKArHT23DSbr9eL3ae5D0DFv/Msh8rpztfNAvu+ZXuAZp35J+B80PrQi85ckJClz9hSXw5xRskTZ+03mgf1afOIgoJvvkRfj4l/RUrMX2bNzeXD3Rrcl0S9t5bKnFd43+JVw1EB3ZMViUhLyqmb/Qnw9N/TNkjAH4aSOL/9GvVqthsZJENNoz4wv+gPQbgyfywOQ3E92ZuSmdrQc+JVZWXasmhR/kOqdUil81ZWyJ/tbg3JEpOYpOnb1nLWj9Cdnf5dEzFWLMnuWKQ/cnInXVys8C8qiXkBEhMt8mloiTle/ztOScFc0jJWD9FcoDE0uH9H4clh47B0A5+gD5XGCA3RTInkHEYPf1KxXCVYL0MsBHEY87JHx5wVnybqifnzqL9smxKcDmVINcdFhK50V39owfB72rm2zDuxLId7hHE0JX9EQF741lzLCrL77sVnod3hOGZqyl+LX4jW7ipRnbr+QB3APp7nT4l/TUMeBtDIHdXPFLS8OFP7UVHRK9qKMPJA/0pMLKocKF5229rC4fGhv36PgsBXtnf36aJ6w0Rmn8xJc/tpvLZK9L3GuzG/YpoUlGqzXAcVh8VNEfd2O57nyn3IcRmvGC38LTG3TZQf7zeAWyZpezoKg+Mb5gb+fOa71Jegc+8+neO2fDiZD5K0wj9H9xEP1Wq120pS1MA8D1Ljfhx8oPDhdLON3Cw/Ik/w2WmOfhoub9LtRva0+IvFR5uzl4+f19lQOMHX2MTUPwyJySR9Skj8Qy8yDT3uLpg0YzQfGrwk03XZKpg6YTP3QE8ufzEadDeVXVO/X2rKgieIAydph8Wvxtk/Yb2dLuwxsuNNUOsgadSdZZdVIubBq1VPxEngqZJ9C1ujX3BQvC1ux0a+7yeqDiNvxWTmqtqywalesPsmq2W+0K1afZdWqWH2SVbdTa4Ln0jFvHwguLfBcPrgmYIBLBzyXj/L3BsD0wYNp1g8j2McHU4evYRofpFOODabXbNU2ofxNWP/ku3DgQnlgbScRilX/LtQPiZ2FU2vgDVC73Wuf/I0Gc7yO6Q/yNrbRBWQWHN6BdyejunXwW9GCg7tl0wDPxp7cNMRWq+j8jg58U9GCCb1lA99c7B32VjDDxgHDqN4/vCZoAk5fHFVwqVjSNAJKBy6UesvOPurX6jW4VBotS7LSl78OlUqnfVjsfWwqAsD8rStfs9aEJDRK2ap5OEPMhffJ0UT8gMS/Sp1QQ+1eCEmMLOjh34JqA+Zkwaf6LacOZIGyYAoOcYyD1yhGLXG8f3yJExIhK1vujVCjJ8zm/S7OIfm45SckaFb23xu0VgXtS9AqQL8H1GnXmifn8BC1lPmrFrWVQNRyAJGFJOJ7RB0HENU/aIdnklEfPKFGw3yY6B2hutBFgOH0zScX3+AoXm+jhp4YR1cTQLjUe+Dmc9S/o9VspLRGJAjg8vpgJJktXq0afF5Wgisf4qrXHMAFSLzqlfLKQqtZSdeHvK7nJIx3Y7XTutCPZuGW3NG7nnio1RYKyiNhJD8wVDYW4lHb8iw08H15LXh7RxUuIgvic0t+JpHMcNfQrjHg225zoD7LGrGG8B2mu0E65z9jEs5BVwdY49RotKYTdHlesfoEq2ZjMhGbsaL1SVrTcUXrs7Ravcn/VrQ+T6vSWp9j1azVO/DCnnDoVPmpf6PTaVV0fkunXcnO7+m0BZ1Jhef3ePqdKVwuVqIBOy738OXGGp+OvHoEnY61XdWRV0ig07FQS7Gh05XNtuq1Ey9gu6olOXM4imgEl5aNq7bvcfUcw9W1iqvlFi0bF9zf0eq7RatRM1++8/3WQ/V2s9beHyY6TKKYrQjf5Q4mAY6fGF/BhWfhTNyyExp/eIO877fn032IFbR/hTYeIG90BR1Zb39olYXC+w2xVru1kbGTQ2ic/aCRQCMbMcAjeCh05svMNgw7H89MhomtoTTabdTNFwRNlq+RbBz8q2lF6x55MeNY7akOScAsOACHoD5Ua4XqNmsQW5E6OxvE1gKMzcImvR96qC2LGcF7AhasDAmn02j17ie7pJ/sTMj9XTN4qKgsaK0NqjSO6hQqC5pKoho2GmjcRJvJznDpWBIkQadW4fkXPC0X6FjbWi0nhMcank6F51/wtNxQPdbwSOlpgMdjwZJ+HJyftOsNuEwsnFaSSadicsik24LLxIJqkUy6zVbVNe4QSreCsg/l4Rw1+oC3jxWVIqC0KyiHUDoVlEMo3XalaT+iUqnaQyq9SlYUKmT2Qbt65NW7NbicbGia33BqQuYESJ46FafT5fr0aoKEA9m+/NX67n2nBECENHtJXE2+iifl4b1GMVkhPx37ex76AYsSDrgcIWsyLyc8XUfw1FtWxCfqtN3gkzW893U81+ETDekZDufoYnQHXe00zMnNhLMbcVQJfXzTadT8bUR4I05g+RhUy+/5dCo+/8qn14bKp9m1zmd0U+/U0GUPDhRd7yIXKM1GjVRUDqh0KiofUllXVA6o9IDLSlYvMy8qsGXFEpV2ReWAShv4wWwBinfTaNYiUFR61nWtgNKGDcWcpOxaCg43lcHoIiA/T+o18e8IDh0bbhGdrU6vz8aoXq/Vag8DdD/xAAHRnF4uFqZBpF2rnTQa8Klk3UV6VLrtFrph/mYvRSwgaIxDvIBclpdV9+oBuhfKBcdogkPyi9FfNK74pHyaDuiZrPPJtYB0HACSNfKtBWT+U3jOcFkYVbdCKuTBDBhH1pyaLo62TKZdPcAFYlR5CCDddiUeWxo/m8LjQeMCFd9p4mg3KxzvcVTS8R5HR0pHEy4OoyftFgdg6TCNA/hmMY2jD/iUNcyiC3lytXEW7UqJ/sLRE1rj7zZcHEY92Z/NfoXj+ZSJrwE5vSUxx9tC2r+bJ40zePd5NQPw39OFagIaTprysvxgOhzsqo6hYVKs1nrG1qK5YepWmP4T07Rfg01J9YGyTk7OD1OtgvMhnG2RpNTZcNFktXPyIbPG3EfT1kkdvOhY5rM77NGYzZMAUK0tiDP/jVPxepzkwufvljzroaOxssX+7vxCU22ufUKbbXUuWwKuOY0IGrdcOOWz5kxyp9R2gVK9ZQNTddb/G5nqlP8PQvDP96zp67zItMCTyVp9qEsmCbcue8eZ+8OGNbJCaHdXfzdt/fznmsuRKRtlhBqtNarX0OXsHBBCy3ppn+C2Spr+Q+aolZL6DcsK4AHAKqL973hSN+Wth2clR4egRjjGQyLN8O39/5m8/78dmdXsAGKlWbaSA6udWqrXpJLaMuo21hWkDyD97+jufUeJSxyTF/wKr6uEfWK7SHfjBHDhi2kLfY8LoMtkAOxzJzIjFveR4HIDF4zpMIkEs5nYhRrycpmwhgac49eK0DtC/+fCe6PUrTcKVGiWN5wmZDiG00QCzgXlBE3roC/LmFfFKZW/G3VYVBogqLSAUYEhKy3Q94ks6ZW/W52SU1nT+Sle0BiL4yc6HWz/Jv5jcSBRztWg15pRGck4/0HCONq+tiPjp0EO8YKwEWM5PfFGQTljccxW735hsP0vY7ZW+aloejUlkHOIZr35+wEZ8fpuXVEObNC3QegvGf+fiswBmSFnUXRyRvCqonNIZ0QjHyqX5uGxZIyLbKxATjYB5QmezwMClVLLovRcpt0nINOxubeuSCA/PVQ0HziVxtBcr9YkCAjYA8smmwlnsOD0FR+q2bAHZ5rwGQ3BqhtjR9Z6jTmOkwiRgKzkqk/HOFwyNc9pDYz0d/fI1LLtqN36/mjUzrcrzAOSx/xnEktXYtueTawU3bJ//gEDrrnPLePpfixsyXrNeIzOpEdHYiCo6qqIQUJ1QxZAMDXaIHfiltMdDaGAUnVWI5syPzIo75lyODvPvnaXC+T0KVmQ6HT49nep2kfEx2ltyzfP5+QlDRyxgM6RtxR2FRTToX6gvjIx/LXkvNAJh4UulshbEzIHA0kVtGxK/hiQJoQ/MSG9BJo8AUSViM8Lxo0BuOHe9BNYoQLIjKSHh3AGIcUuAe4+YTCsVtX2+zdCAK0Ci3LEVmnhPeMROkE0YqdnAXshaeLtAodQAWUUo1+LFMbntfc9B0y/3lOiesB+kqzQJFmtK2T/jQx9e5NZOKFy4MRGVPwexwswGU3gvM7/L/FjONlx4LQmNIpZWMH6FCwZvqpQfQ4Vk0ktcT7CSd+AJxZj/lrB+hSs1JeuWH2KlcyisorVjhVP41QRWnAazoVCPx1uXgEK6IMSzH/js12dgHO5XV9+hIT1zuCqc1CgrjCoaAxkVNerNfbjCtUnUP2JwZ55oDhtjM8K1X+gSt9qiHZvi8bYF69BqY2BiG1MgyDN4CSBWBH9p7IaMsGqzsWvUauOyM9Qq/T+Zzk90BnHcoUVqh2qOafiHU5H8g+gUDJe/kiXkj0x+B6EvBmT0Hnat+sMcJ2QBTDb+KZwiH+QV8YFngCsgjbM51Xakt/FquUxtv12uMSr2Sa7LDPwT/L1aqNJXlcEx+k432QFF0i2IJ0ekE0cXAhIskIbdSyEZpqsZoEUpEpBbzF5a45fKxw7HGmQ+5e8yGqxX9+N2Q8pOzvNU3ZkT4TMJbOL9M9d5glN8QzO1c56raWjgjZL+zoaeS2PcbkOHKDNm4EBo6WbjwAGfRsTsV5AufGmwqhtH9F2jz1g4dVDwWRZlDYnGKj7eCoRQ4JD41jsnuj0TJg48/TsAsKjpXU8XWzXpQGEE/wcLzlLFksgSJo9rT2jjWQY4NVa+OMXAQ4XRHgOyTqAc6uuradR9OkwASeM0hZCMIgoW6hnHEglH+9wiF2zIrI7JongiAgsKOjbiMTCdpELOxG2DHsqir2SO6jzn+tALK3i9B+cZKu7kzsS0SjGIdwwKSxMaRij2om/RSesn/m7xh5AyDS0HIjcuIyS1epV0PkBJm7Ra9sFkwhBCaCwsOxWXbEIjMetsMjWi0sfxXW4uS4EBIdCw7RgXMul+UupQ2QweBNG//YrLAHl/LEdl/iY03fhem7+eh0ioXB8SCUWtpG9wal4bHhw+kR9giay92jFJGVyR+aJD8Zi6do15e6SdZxwAmnP2A5UeCR4OhGKRBavhQt0RwKCI7JJqgBBdJi3bBlmRAMSwtlEdVWnGJcZ8VWc0BvHCAgUu66QF3NMQzASYjlAvqMB63KbZSgPYm1ASNj2lR8oeZGHzWWAowgIE800db5M0LcbOaEEUPmHrejkUpZykp8bv5DL3Fs4J2EERtP2dJSKrFOVHTzflqeNZ8QS6TtP6JqgtAr27b2B8Orr7LL8eZ0HxI859VNYYCBpGnj5Y7qgP2VjRXmsC7WEpsmMRDDlS9VT2Y62/MldYcrXNATHqf+f8xHNYoK0/YDp9P19Jm1qGmy2IFTjAII0vSd2QcNQ6K+K2ReZ/bFpYAkVnfXj8YBdwDbRNPEDsDf8oAlcGrSvYH0OlremvDDdPg3g2rNcoWKzLWTpDkQ4nKMLLquonDDwMw6oy5/aHZkJgwwMH9Wwb9qlk/YGT2VKbj1FpFAdCLTOvkxla5VgGlqjgpYdWrOC9iG0TSZvImPOINV9H9YRubG7YKJST8Z+pulb+bOaLml4ckGDFTr/gdeMA7pApDfkNn9U9ycf6CwgrIBFCu+RJ39r7lIQ2jSzFf0pUV2HJzc0JGh7T3osX4VCqK/lMaZL0ebixVh8blhc9DxpPS5/hQQDasrQtYhC/NcyfjfBMZQ70o2ODRzrZLWOTof4B41fQU3kaTT3NWwmW0cu5MssyNuwnRQIGB9W2S6drjUiYBzUxh6Rrj0iULxPazIi23iA0h9aZQI6JC5xhLZj4WCg6DYsyYQk8W7yGwwaB2WAxg6WS4I5pC3S7u5HE+qmQFwxTv9hYbxVnkBw1NvKFPi6MSBFuk+pw2FCuLzGH4gPDASFGs3tm0KRzmqCtD1Uy6JjngQYu1N1TsztEC+ZrYSbR9MaYDjCUa/tA+lmur+lB0TIBWAS9Z6xjSK7ucKZRNLfb/mWLQ+mgwHedOF+f19bGDtEHrafFRKMutLspd4ytUHQCZrT8L3vDgWJXkx4i6Q2ur7VAvM2M7nC8h7Lue+nEuOjR8YrNvts0ts1bIUXIYFjtAOBI/39ish7Ilevc46ToBKUfSw39P8ldI7+JFCuDwPhckd8uubMT0vtKzR7aDYZ/80g+grNezRpvKBCskMiB1sLzbIJoHzbqBqo9fFfxPOVidbv8WzQvPMLKj4f8HlzDyo6H9CRxl4F5gMwlcb5LZrNmn6k3crWAfbJihSm0XPOpDhbyCyyhLWpVaowfYBpz2DeGocVqA9ApTZiReY0Imuclu1Hp5d8UwPo7V76Q46dJHEcvB9FCYOYXnX/2wqzx5Hf8dqMl36Hq0KzQ7MvQvQJbOMPu3SEy/HqB4D65wGjowSXK0r/RinaXHWYcGkC0Fj+rAKWEZhUV48EjAUOjNuE8BUOxYLRON2RFaYPMckuoAmnSJiYyUyYTBWmDzGJfVYh+ggRC+icPtG0D1jAIgImdAKNjpyNULF5xyadDLvbU6UHI16TjusK+0sakuj0/GfMk3SqMLC4SF2nYYS3WaZw/8fbheZJClaYBByoCQkC4Zn8I18ENHBCjScBACVjt+A2HlRMd0yIFRijCB6m7Xui7Tuib7/uE1XQPg1tVxtcIdsi+yE2Hwmi0zMMpdZImRyUrd3Pw2Y5OhjQt2vvOxT5sAyDcxLI+NCIJ1BqgJXb7xnTRvkiASUqeo00tMEk4fN2Mk569+IsXQkUNprJRl04AorwKWKCpjh8hoJEkZeuUdUylIZLOllKbKWUivhzKCxlwqEWdnZNi8xvAaFvZ4yBiUSrnLLNFTg2p0oLfRLVDVmA7SBdr9lRTuhbGnpNBwVsKvrSv17iCFC3bcVEzDZ6SBfVdjBTdcAdgJHmIeMI2mAvrbaXulAuGPfJ/GTE8VMsyLC0yGoKqGmQcme5n+nOsjadhIfYh3KTXclhWEHRgMnC8LmdttYSnz6AIhrN/ZZBZoMSksYVC+A09OzaDNFc4eBpMxZx29pz84ZA0BzYcd1MYxt04VyHckY86PNmv12IWRfzT+w/C5tt7ojoZGquo8vmr5D5zycsiSGFPtt1i5oGUjtppZlKr2cYhNwtdwQDal6n5gkydZfRJSJrktBZEjwjTxDBCyh2it7sa10qaV474fQfoWFBq9aGWXN2wtkaDRbb4mMYSKwqFFiapGXTnH27eQUpjmQ1vr2pbxxxCubwtcxjc8Igb70kHMpBYzc+sAvlgz5kzLo2gNSHVX0qOcDOFmbrv50Pj7dsxRmOwFxDVDtEWgJTFW/8O5o7xp6ggulb5pJOqYQmO/sxk7pZH3DHSHxyOFeaDo5mC0fSFok0WyCfTj0LaEZUfkDYisYuFik1jhxVDQukLnAQEWBgFCu4Xm9Y4BKwTYsgyFvLvJ+kgAGvks0CApQsrLf2lXCmiVa5gECPNF6iCfafAbWmtUplM3wCWji72dlnYjTrLltBoG9nBFJTPyXfYR5Hau9WPFIe8k9pzz09CRdAwBlRvCJitWBKatVkqlGV8otPau9uzDh5KHsJf8I+QdfhnMpeh3DuFCvGXc8mr/NwU6N9xtPqFjAy1bHpQf2G0aYnVOpGyeHs4kyHQsvqtcff0NoiOtnVkW3Kp8AQa8AjBulKieqANow6oL8BdAdpywEUIO+ZcjgqHKQITZeyQV0grIIoCUBZBTAEiq3AZPj6+2Xz2UYw5wXkIgmCk2kyIwfn2ZBROG0xGjajYjtWEwrmeAchOx5ZUQdkp25adiLx2aJTHFKhiKPTMznwvP7fMJ5oEAxZIING4n/UrKX/iNejmLNnsvtJyNLZpl8EdQD8QK6UeaWHR1q6uA9ppT8ZbFaty6vhCC81n/zBQOijAxsR4o6A9RQr4LCy1gwvVwRsF2z6fezp+LzYAn0PhfcmtKyj1A5rp45PLfE/UXIIgtZbO4XdCXmYHzg6rgvhxqArHPvCf3l1hJsiZR8Uhxwd218kDD9T4wuRV//wBt/ReY0Ziz5RJQ4Dl2KLWRCvW4aE9o/cBGbDtvDIZ+apg6B1UMRlwdb3AhY7Y1Ps9wLpWbApvBA/O6q9rGzGGM8+0ySj4rXhNSXz+Ss6+9TAdhDMOv/ZnudozJ4Ym8vun46Q0pauC7Her2Ia4jB6uwsQEFfMiW7LJjP29EQc1V2dzEejDqkRp6GsP0SPOHYpEGZTuhRmDUeYdTsWmV3gKEbpG7gBS9mUH1RhHROW+IKm3J0YmELrg2thR6T1V0ifnNH1+0GculFdf0eiGCcch7Ezel5tjmdUZ73j5YqOV8pE6rXMUcIvAlsSHMRLH3NyOgjEZwtxOpV+TObUp6Ez21NxiTIHDa/eMGgyDIXsLUlEsSvklPPSHrkoolEqezeyGXco7TTvVfztE33nQJDs6ZppeZE845iGjkADI35DzOdUrHnhTBpOiW1kNnRzJEeQF+OnJzTgxBm91wWyW4c4XiKxOle47YvdR11ITIGTv+BK2qmrWwCUF7URwU+uMOuDYcZXOHbqcFDQZa7Pyw0dFSuLnQl+q/EQa+bI+aujrpdVZOjRoWK9pmYWLy9uF3hFg1c04dgX63BG7HRTe7nhozyK0YA6GiC3B+6ShEQswNGjwd5+3bwPOp8nm/vvjvKzJnfifbg7gfR6TTknMgeG8+XWcISbKm6Zi7tzw8aiNY1x4IzEwdmoO3KuyFxPN+mVF7nr1SoJ6T/p8eDM+QrF278On4iwhFkSoRGNCHa1ct4mwbUQPfExXQEHJXNzLT5gGMkcmAyqu0IPjtil+evAteR1tw4E4F90HhJXQpxgqN0koTt3hRRo1pzYMV6tmPiZK8l9MEou1W1ppxvxQddyfgN3BaFyk8haoHiH8IbOOHbn2i00CbwjPuNzZzQfHHxhvGk1GDhzCVC7aj83eHfXjiADE3+6JQl3KXUNRtZuk5hTlwLsutcC8wL3PfRdEjgwJ8P3JEYTpwIn7Q4QkZssMV9h3xWRazeBiNxk+RqlxpxsoInXrvBTXQlrcndHFlSs3Kk8LJRgpydeQDc4XCSfmpUNAp7a+K5nLRvrMZ+KfesR/oP67tTXQUnyeAlfuNNy66BpjTVu09HIEWZg/Igpc6fbz8EI58z3XPOidh+IYzViSehMXZ2yRa3ZJI9LQgJ/iSlHA18cDRGdBcSZ6pPdhX2gGBuOYrSm/T7G2HQEo9p6w6w0hjhOZGE75s4cINrBlNt0zV+H9Weypu7kxHq6lwB0cY3xWmzHG3cuhfVsC9gYc2e8LeusCPcTZ7ysXdt/e5uRORNF0j4YdVndknWcOFPipW2O6eKaBEnMHIHV0Y2O68Ly5B+u7ER1pKLxneiF7OUpcKdFr/W96CWhM+64dlI5D1iuON0gYLniWls3TiWsVgXrc7CmURLiFXUFl5IfNo7rnuMwccVN7LQsq60H4hAs3Tt+X4a1JmwdkNMzPHt1xnxQ3MR6rZEV1yRdtSYuVwyIrm7yQ5fWcInDRdp5MXaqpkU316vNjYViwYnvEDM1kGpc1i7ICjszp0S7B7surbE7rNSWFW/fm6Tljovd1I1H5AHLlROyqRt31oaVrFauJDTUJuzGYU3InIgVU+zMoagbTNUl5i3Zi0PjXNR6WPPKawvMFf2lBnKM+0OeWG0QOFMgoVa+Zr81rAvsPqQR+ekILjUCbdzwesRiKcJ/vGNs5YwWU9zuL/S0zhWbK7qsp1vMr08tkOO8HMHVtm2NPbKVQ25RS7vRfD68XNmNLWviFeEnEr+enlG2xP9g7krBfr2m+JKZJ2h46cK/TmyIE4cChtrZbW1cS7JKL6s+Erx2FlvmU1IX2wUOgo1t4T+7kmXTbracBzSWxMhbksCdcnLrW/SC4wV1JlDd1a2+18V1hcN5QNAjjZdOdXzU7SKnzY0uluiBBTFeuHOzrWX7INij5oxZqxuRzZWaM8V1ugVQutT+ImSNRs5c/dC+h6XL69aV4nzrJsYtC0+uWUj/SW1aPKdOFaoo4y4zx2f16aHzMHZmXwKQNuStmENRRuvu5q+cLxpyFkUOodMtstZF55o2eyvn/PJsGl1iXkDX6MqlqGNXO6ytzSxmnKA7YdbG6H7tjPvUte0IKNxccaAsajWfktAnp2JFjGNBzxmrQxvZZuUazMZ4ERJX2oB2dS+Q5MCL+sLY8NnalRia9qUbfWa3iR8Q7E6xmX5QIzdkrip/C1L2SMP5SrBwhJg6qN0ksTXjcXQ6WK2XNCbYobSTbumBl65cAxn3l+5081RFLLse08R1hiMyw85syba2EtPlRUPmJ0GJGj9pE2PCI3/BwbMrwHSvd+UALEY3OAl9Rzv9tTNXsusiG+LV2qGrEor12jWuxba8HDVd21Z4PVF3ijJsWxWS14K71LFZ8SezR6+1iYXMnfoVNXeZvVw2F1yu6C/1FnTLvAJLuy7f0CdX4ojaLfu1iQV0NXMoYamdHdflJRO8aCh0fsxfkfdMZU2Go/rsC8nLY9BzRb2psmfe/H/1A4e2qnJ4Ghe2EeUxOqPOdOlU5csCsB8OiZd2NkmXFnsJl4KEc4eAImbGjVoVnKP637xCO/9JuE+jSp99ktcF5eSFMVec84POItnrpLSBRUuXVNnBkLjsxcU5EXNGhym1eHXj2n9HbELdSfbadtIlMzQMCA4dss/2Ja1jfGtessCVCT/q+Afjtqxk5Y5oabcV0ccVzlmAHcGlPTpaF9cVFvr+MqBzd0RMYdbpGGdGn505H7Wn1+QAyyHRUoKwxg/GK8ZlMZT/jKYcU1dKoqxH/q99grbGa4Xs88i8Zxw7hGzftPjKXSVdZsK0YBx5L3S1coibbRvjTxLLeKKjuIybF3/hV+xMpaJtNXZDnwj6UxyYzlxPOgiMGWc2ZjHjM1ni6UowUREz88Urv5A13ETWNK7GJtQPqe9ayzLbVRhbalMs59I7uj07xp3MPWqO7lDzFYx3OFwQvhuu5I602S4tVrg5I2+6s+K0uTH/GTlW1Kg9aSkfaHJIgkvjvOzv0XSsxCzALgW2bZdN3bEXaeO6gks5P+vGcSWhQ0lftWON+S354Agp1Zw1XkzsYRqgM4d2onaXAm1gIY0xf0UjKl6JcODaxFDbroAnPppwoB4oeUkhOcJNe0CaPrdkhpFbxdmKrBnPcXqERPjFTVpt4wEhjwRP6DJJCzSqpHAmck5HHo0nN2UymMxkpwx3dFnHtnfuPVP0Z7JaO8JrV9Bij1dA5g7Jl3pPzngSRfAia6n5HVNmfdvKbIWDjQvlVhsb+7cmvDANAvG5s8Jm3tAQyFZs5s6kIdUFML89BTGh0hhx5yhQu0GYl7KEO3QPQG1hZh7XtkjPnbTmvq2xa8togVjDFWJKVVDmYdw5EHNnQ+p3+tekNSVhSJ3pWWnbqKhCPRlgybi1I6x2sX1rLvijUylx7flB2rTEB4vSZhgVsk8iW+KApKkkh6DZbuos+9JHbln41uWMsTm6xPGScIeoWSuMiom/PB04VPOvuyWnYsEanBz1gvqZvSAdTkO8Ihy7KlPZ20TlwMpRucoej9BiRYIATZabFbpAq6Vr1mvRYqsVdrXRtVnFLlCtE4cSabqjM7RYceZMYtumTJ3/X+K7UjGnRpkzVxpqgZK2ujuDBNX4stHNlzZIdGjeg26bLB1WY2dDpV2j1vqEvbhz8tUtnnxy9DVzBZRSoZq5RkkLlOe5gslmOGFKArKW3owznnJrP071hXRhPrxc8ZabupWo+eBqOoJLmdH81l7ZNK+WK7zqILRX2xFcVnfjvXfmCKaWbjm4DqYHOicMbYKijvBSbIiW0TPxEW+ac4+xL/50xS/s6jad+CoyjsM0T5heAz1tocclEWrMGe9HCdNkPx731q8PcED5DLuSZFWH3fWz+0T541sH2CH7X20flj1OcSyCrngE9dq+C9XOHmo9FkJXvIS+dlLtWARd8Rv0o2jHIuiKK6HdNetoBDuuENzfxV/x9Y+FsOsIQvVaYCt74UreCFezRCD0XfFDtFtU5g4w9JeMu2MP6tYtHomfK9ag9pyqI/FzxhTUrTY+Ej9nDEHtQqKc+Z1R/9V3KCADzQzc8nPnANFtqncsgM6cINp5/iMBdPQIaWfPoR0JoDNniAIQjA50JpawfwhnbyaXO8AkcvUAAXACC3iOHh4N+4eHgOfowdHM3JPpGPBcOTR6+xHorxSS5UxviB0KuyidmqwrPQnPFaWnRk3tb1xJz1WtB0L0XNF62o0jjwHvhvnOzBVU6l+slx/IFt9zMkdXdLF8wa+OYFSb1lnfwxeEc1fgKTLYsR4vkFfCYp64s4mVE8R63veC8eeAPjlz/1A5RKwXEF1id8IFHe3a5iPAc8Vy1q/aPQI8ZwxnaFVrEp4rhjM8yeMsCedIeVs3YKoWjPWc2xXmM7lwF+llb2KfOz0SUJ+t3eleogZgOtYDMG65bx1oRRt/ErJ2xgJUs23WhS+l54oJqN/8JGd6N2LrxkuWRA7VvEDbv+8YuiKHbWgG4ZitydxVEbR/CWmDzxXpA1exMWYx42nVi5sEO9YzIRMs1oGD4BV5yWxF+EKI4yMn7kRVldSIdaCyWRIWUonSXuluUuxb39iez5hD+JRqXvv4CI7RGQlcie33oF3MFADRRF6KcwQguAtd3pK66xtbjwym9JyxCqGVok5x6Ir5osYE29bDqlP8kzoCD5zVMmUvaOBOQFXhZ78iQbyfH7t0DVhpX2vd+dgBdPTosF/YJufMhc7IXxua2bzB54r0dXSnsh4HnzOVHdDusG7weS4XJYCQwZUzClB13CBYMCtn9J96gxXABk78Z3eErw9O+CQ+R6WvBUDzSXzOnL5K9137zm+Kz5XKSnC3WDf4nLm7r9ygtp5I3+BzpQlgF1zINMXnSgNA9eiwfvLeh0RAQncMOzp20H7C6IEsqexe4tSdOAWilfjfDxKcDjinP2Q7/ItA1rRFjvA7mHvyFQ9ErF8LHHtB5zhyJVOu3oL7it2SA7Hbc1d45XDS5sFL7PGlI8h2MmUb2aMjvPKoa86Bl+fMlgTCiyXVlsyIrNqSmXg9EnfsCqW1knG74gwvFnjhTL2dYoYZN1zP3KlxUkXrK16SJis+Ixx5S3cGuO/r+6+1idNjRnASvyIPB+6kUjvWoTH2jAbhXNoWAg91S+aUM9O4SpNNue7Ep8OuTC9XujN8bZSLJrJoSV29JvGlWgc9XAzHaLh053aTWh78pcmHesgSzknov6Lzn/4Sh+4YaIqsGbdnh0kkFuBKJFa10b6STdbCNWIvYRRjyl0lZlzARpyGz2nMnyXi0KSumGk7X8neqTnaJkumLHHm6GxYPjrPA/JDXmt1hFdHNc2M+wLnkfjUDhFTL1J/paIjH2BIngWuUFNOAfP78o3avTOOpmKamd+aCWeOsOopVxSMB7LPf1JnQthKAMO4RXYlzFc/cQVXu2f7iLxiMXEl1qOW+tiBha7DJ8ZXTl1wUZquGz8hr1crKl6ukGVA9kvK3LmNYTvl+x5awxFobdvVUXIIhzPx624Od/U0aUVxml+SIR9HK437X7njrUVtnEQkWblCK4eeFlq0bhmaYC4Di64Qs51V2uJy5qTs5jAGJxdgrpyS1k2LiSSDvj8J8198QmeLyixsTYfOyTzam+vBEpIlPpwjuLq2I2OytMeZZKUiW8ZtMM+p1K7tOzZTKryiGI2xv6TOtKDsWY8nbrFNEu4vceQKN+t7c5qEoTNxWOsJkfu1W2Uqii7Tk6726P8D";
@@ -13015,7 +13015,7 @@ m}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mat
this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(m=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=m?m:"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 M=document.createElement("canvas"),T=new Image;T.onload=function(){try{M.getContext("2d").drawImage(T,
0,0);var m=M.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=m&&6<m.length}catch(z){}};T.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(m){}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.0.15";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.0.16";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"}};
diff --git a/src/main/webapp/js/extensions.min.js b/src/main/webapp/js/extensions.min.js
index 6761bd744..451dfc212 100644
--- a/src/main/webapp/js/extensions.min.js
+++ b/src/main/webapp/js/extensions.min.js
@@ -1,185 +1,185 @@
LucidImporter={};
-(function(){function g(w){if(w&&null!=LucidImporter.imgSrcRepl){var F=LucidImporter.imgSrcRepl.attMap;if(F[w])w=F[w];else{F=LucidImporter.imgSrcRepl.imgRepl;for(var D=0;D<F.length;D++){var u=F[D];w=w.replace(u.searchVal,u.replVal)}LucidImporter.hasExtImgs=!0}}return w}function y(w){lb="";try{if(w){var F=null;LucidImporter.advImpConfig&&LucidImporter.advImpConfig.fontMapping&&(F=LucidImporter.advImpConfig.fontMapping[w]);if(F){for(var D in F)lb+=D+"="+F[D]+";";return F.fontFamily?"font-family: "+F.fontFamily:
-""}if("Liberation Sans"!=w)return lb="fontFamily="+w+";","font-family: "+w+";"}}catch(u){}return""}function z(w){return Math.round(10*w)/10}function B(w,F,D){function u(la,Ma){var ya="",za=la.t,Pb=la.l||{v:za&&"ul"==za.v?"auto":"decimal"};if(null==za||0!=Na&&Na==za.v&&Ka==Pb.v)null==za&&(Na&&(ya+=P(!0),Na=!1),ya+='<div style="',Ca.push("div"));else{Na&&(ya+=P(!0));Na=za.v;Ka=Pb.v;"ul"==za.v?(ya+="<ul ",Ca.push("ul")):(ya+="<ol ",Ca.push("ol"));ya+='style="margin: 0px; padding-left: 10px;list-style-position: inside; list-style-type:';
-if("hl"==za.v)ya+="upper-roman";else switch(Pb.v){case "auto":ya+="disc";break;case "inv":ya+="circle";break;case "disc":ya+="circle";break;case "trib":ya+="square";break;case "square":ya+="square";break;case "dash":ya+="square";break;case "heart":ya+="disc";break;default:ya+="decimal"}ya+='">'}if(null!=za){ya+='<li style="text-align:'+(la.a?la.a.v:D.TextAlign||"center")+";";if(null!=Ma){if(Ma.c)var fa=Ma.c.v;if(Ma.s)var xb=Ma.s.v}try{var Va=aa[ka],rc=ra[Aa];Ma=ka;if(Va&&rc&&Va.s<rc.e)for(var vc=
-Va.s;null!=Va&&Va.s==vc;)"s"==Va.n?xb=Va.v:"c"==Va.n&&(fa=Va.v),Va=aa[++Ma]}catch(Fb){console.log(Fb)}fa=R(fa);null!=fa&&(fa=fa.substring(0,7),ya+="color:"+fa+";");xb&&(ya+="font-size:"+z(.75*xb)+"px;");ya+='">';Ca.push("li");ya+='<span style="';Ca.push("span")}Na||(xb=fa=la.a?la.a.v:D.TextAlign||"center","left"==fa?xb="flex-start":"right"==fa&&(xb="flex-end"),ya+="display: flex; justify-content: "+xb+"; text-align: "+fa+"; align-items: baseline; font-size: 0; line-height: 1.25;");la.il&&(ya+="margin-left: "+
-Math.max(0,z(.75*la.il.v-(Na?28:0)))+"px;");la.ir&&(ya+="margin-right: "+z(.75*la.ir.v)+"px;");la.mt&&(ya+="margin-top: "+z(.75*la.mt.v)+"px;");la.mb&&(ya+="margin-bottom: "+z(.75*la.mb.v)+"px;");ya+='margin-top: -2px;">';Na||(ya+="<span>",Ca.push("span"));return ya}function e(la){if(mxUtils.isEmptyObject(la))return"";var Ma="",ya=0;if(la.lk){var za=la.lk;null!=za.v&&0<za.v.length&&(Ma+='<a href="'+n(za.v[0])+'">',Ba.push("a"),ya++)}Ma+='<span style="';Ba.push("span");ya++;Ma+="font-size:"+(la.s&&
-la.s.v?z(.75*la.s.v):"13")+"px;";la.c&&(za=R(la.c.v),null!=za&&(za=za.substring(0,7),Ma+="color:"+za+";"));if(la.b&&la.b.v||la.fc&&la.fc.v&&0==la.fc.v.indexOf("Bold"))Ma+="font-weight: bold;";la.i&&la.i.v&&(Ma+="font-style: italic;");la.ac&&la.ac.v&&(Ma+="text-transform: uppercase;");za=null;la.f?za=la.f.v:D.Font&&(za=D.Font);Ma+=y(za);za=[];la.u&&la.u.v&&za.push("underline");la.k&&la.k.v&&za.push("line-through");0<za.length&&(Ma+="text-decoration: "+za.join(" ")+";");Ma+='">';Pa.push(ya);return Ma}
-function P(la){var Ma="";do{var ya=Ca.pop();if(!la&&Na&&("ul"==ya||"ol"==ya)){Ca.push(ya);break}Ma+="</"+ya+">"}while(0<Ca.length);return Ma}function r(la,Ma,ya,za){la=la?la.substring(Ma,ya):"";Na&&(la=la.trim());0==Ba.length&&0<la.length&&(la=e({dummy:1})+la);la=la.replace(/</g,"&lt;").replace(/>/g,"&gt;");do for(Ma=Pa.pop(),ya=0;ya<Ma;ya++){var Pb=Ba.pop();la+="</"+Pb+">"}while(za&&0<Ba.length);return la}var p={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,l:!0},Z={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!0,
-k:!0,f:!0,ac:!0};F.sort(function(la,Ma){return la.s-Ma.s});var aa=F.filter(function(la){return Z[la.n]});aa[0]&&0!=aa[0].s&&aa.unshift({s:0,n:"dummy",v:"",e:aa[0].s});F=F.filter(function(la){return p[la.n]});for(var V=[0],wa=0;0<(wa=w.indexOf("\n",wa));)wa++,V.push(wa);for(var ka=wa=0;ka<F.length;ka++){if(F[ka].s>V[wa])F.splice(ka,0,{s:V[wa],n:"a",v:D.TextAlign||"center"});else{for(var na=0;ka+na<F.length&&F[ka+na].s==V[wa];)na++;1<na&&(ka+=na-1)}wa++}null!=V[wa]&&F.push({s:V[wa],n:"a",v:D.TextAlign||
-"center"});V="";var ra=aa.slice();ra.sort(function(la,Ma){return la.e-Ma.e});var Aa=ka=0;wa=0;na={};for(var ma={},Ba=[],Pa=[],Ca=[],ua=!1,Na=!1,Ka,La=0,l=0,Ia=w.length,bb=!0;wa<F.length||bb;){bb=!1;if(wa<F.length){var Ea=F[wa],Ra=F[wa].s;ua&&(ma={},V+=r(w,La,Ia,!0),l=La=Ia,V+=P());for(;null!=Ea&&Ea.s==Ra;)ma[Ea.n]=Ea,Ea=F[++wa];Ia=null!=Ea?Ea.s:w.length;V+=u(ma,na);ua&&(V+=e(na));ua=!0}for(;ka>=Aa&&(ka<aa.length||Aa<ra.length);)if(Ea=aa[ka],Ra=ra[Aa],Ea&&Ra&&Ea.s<Ra.e){if(Ea.s>=Ia)break;La=Ea.s;0<
-La-l&&(V+=e(na)+r(w,l,La),l=La);for(;null!=Ea&&Ea.s==La;)na[Ea.n]=Ea,Ea=aa[++ka];V+=e(na)}else if(Ra){if(Ra.e>Ia)break;l=Ra.e;do delete na[Ra.n],Ra=ra[++Aa];while(null!=Ra&&Ra.e==l);V+=r(w,La,l);La=l;0!=Pa.length||null!=Ea&&Ea.s==l||(aa.splice(ka,0,{s:l,n:"dummy",v:""}),ra.splice(Aa,0,{e:Ea?Ea.s:Ia,n:"dummy",v:""}))}else break}V+=r(null,null,null,!0);ua&&(l!=Ia&&(V+=e({dummy:1})+r(w,l,Ia)),V+=P(!0));return V}function m(w,F){G=!1;var D=null!=w.Text&&w.Text.t?w.Text:null!=w.Value&&w.Value.t?w.Value:
+(function(){function g(w){if(w&&null!=LucidImporter.imgSrcRepl){var F=LucidImporter.imgSrcRepl.attMap;if(F[w])w=F[w];else{F=LucidImporter.imgSrcRepl.imgRepl;for(var D=0;D<F.length;D++){var u=F[D];w=w.replace(u.searchVal,u.replVal)}LucidImporter.hasExtImgs=!0}}return w}function y(w){mb="";try{if(w){var F=null;LucidImporter.advImpConfig&&LucidImporter.advImpConfig.fontMapping&&(F=LucidImporter.advImpConfig.fontMapping[w]);if(F){for(var D in F)mb+=D+"="+F[D]+";";return F.fontFamily?"font-family: "+F.fontFamily:
+""}if("Liberation Sans"!=w)return mb="fontFamily="+w+";","font-family: "+w+";"}}catch(u){}return""}function z(w){return Math.round(10*w)/10}function B(w,F,D){function u(ma,La){var ya="",za=ma.t,Qb=ma.l||{v:za&&"ul"==za.v?"auto":"decimal"};if(null==za||0!=Ma&&Ma==za.v&&Ja==Qb.v)null==za&&(Ma&&(ya+=O(!0),Ma=!1),ya+='<div style="',Ca.push("div"));else{Ma&&(ya+=O(!0));Ma=za.v;Ja=Qb.v;"ul"==za.v?(ya+="<ul ",Ca.push("ul")):(ya+="<ol ",Ca.push("ol"));ya+='style="margin: 0px; padding-left: 10px;list-style-position: inside; list-style-type:';
+if("hl"==za.v)ya+="upper-roman";else switch(Qb.v){case "auto":ya+="disc";break;case "inv":ya+="circle";break;case "disc":ya+="circle";break;case "trib":ya+="square";break;case "square":ya+="square";break;case "dash":ya+="square";break;case "heart":ya+="disc";break;default:ya+="decimal"}ya+='">'}if(null!=za){ya+='<li style="text-align:'+(ma.a?ma.a.v:D.TextAlign||"center")+";";if(null!=La){if(La.c)var ha=La.c.v;if(La.s)var xb=La.s.v}try{var Wa=ba[ka],rc=ra[Aa];La=ka;if(Wa&&rc&&Wa.s<rc.e)for(var wc=
+Wa.s;null!=Wa&&Wa.s==wc;)"s"==Wa.n?xb=Wa.v:"c"==Wa.n&&(ha=Wa.v),Wa=ba[++La]}catch(Gb){console.log(Gb)}ha=V(ha);null!=ha&&(ha=ha.substring(0,7),ya+="color:"+ha+";");xb&&(ya+="font-size:"+z(.75*xb)+"px;");ya+='">';Ca.push("li");ya+='<span style="';Ca.push("span")}Ma||(xb=ha=ma.a?ma.a.v:D.TextAlign||"center","left"==ha?xb="flex-start":"right"==ha&&(xb="flex-end"),ya+="display: flex; justify-content: "+xb+"; text-align: "+ha+"; align-items: baseline; font-size: 0; line-height: 1.25;");ma.il&&(ya+="margin-left: "+
+Math.max(0,z(.75*ma.il.v-(Ma?28:0)))+"px;");ma.ir&&(ya+="margin-right: "+z(.75*ma.ir.v)+"px;");ma.mt&&(ya+="margin-top: "+z(.75*ma.mt.v)+"px;");ma.mb&&(ya+="margin-bottom: "+z(.75*ma.mb.v)+"px;");ya+='margin-top: -2px;">';Ma||(ya+="<span>",Ca.push("span"));return ya}function e(ma){if(mxUtils.isEmptyObject(ma))return"";var La="",ya=0;if(ma.lk){var za=ma.lk;null!=za.v&&0<za.v.length&&(La+='<a href="'+n(za.v[0])+'">',Ba.push("a"),ya++)}La+='<span style="';Ba.push("span");ya++;La+="font-size:"+(ma.s&&
+ma.s.v?z(.75*ma.s.v):"13")+"px;";ma.c&&(za=V(ma.c.v),null!=za&&(za=za.substring(0,7),La+="color:"+za+";"));if(ma.b&&ma.b.v||ma.fc&&ma.fc.v&&0==ma.fc.v.indexOf("Bold"))La+="font-weight: bold;";ma.i&&ma.i.v&&(La+="font-style: italic;");ma.ac&&ma.ac.v&&(La+="text-transform: uppercase;");za=null;ma.f?za=ma.f.v:D.Font&&(za=D.Font);La+=y(za);za=[];ma.u&&ma.u.v&&za.push("underline");ma.k&&ma.k.v&&za.push("line-through");0<za.length&&(La+="text-decoration: "+za.join(" ")+";");La+='">';Oa.push(ya);return La}
+function O(ma){var La="";do{var ya=Ca.pop();if(!ma&&Ma&&("ul"==ya||"ol"==ya)){Ca.push(ya);break}La+="</"+ya+">"}while(0<Ca.length);return La}function r(ma,La,ya,za){ma=ma?ma.substring(La,ya):"";Ma&&(ma=ma.trim());0==Ba.length&&0<ma.length&&(ma=e({dummy:1})+ma);ma=ma.replace(/</g,"&lt;").replace(/>/g,"&gt;");do for(La=Oa.pop(),ya=0;ya<La;ya++){var Qb=Ba.pop();ma+="</"+Qb+">"}while(za&&0<Ba.length);return ma}var p={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,l:!0},aa={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!0,
+k:!0,f:!0,ac:!0};F.sort(function(ma,La){return ma.s-La.s});var ba=F.filter(function(ma){return aa[ma.n]});ba[0]&&0!=ba[0].s&&ba.unshift({s:0,n:"dummy",v:"",e:ba[0].s});F=F.filter(function(ma){return p[ma.n]});for(var W=[0],wa=0;0<(wa=w.indexOf("\n",wa));)wa++,W.push(wa);for(var ka=wa=0;ka<F.length;ka++){if(F[ka].s>W[wa])F.splice(ka,0,{s:W[wa],n:"a",v:D.TextAlign||"center"});else{for(var pa=0;ka+pa<F.length&&F[ka+pa].s==W[wa];)pa++;1<pa&&(ka+=pa-1)}wa++}null!=W[wa]&&F.push({s:W[wa],n:"a",v:D.TextAlign||
+"center"});W="";var ra=ba.slice();ra.sort(function(ma,La){return ma.e-La.e});var Aa=ka=0;wa=0;pa={};for(var na={},Ba=[],Oa=[],Ca=[],ua=!1,Ma=!1,Ja,Ka=0,l=0,Ha=w.length,cb=!0;wa<F.length||cb;){cb=!1;if(wa<F.length){var Ea=F[wa],Qa=F[wa].s;ua&&(na={},W+=r(w,Ka,Ha,!0),l=Ka=Ha,W+=O());for(;null!=Ea&&Ea.s==Qa;)na[Ea.n]=Ea,Ea=F[++wa];Ha=null!=Ea?Ea.s:w.length;W+=u(na,pa);ua&&(W+=e(pa));ua=!0}for(;ka>=Aa&&(ka<ba.length||Aa<ra.length);)if(Ea=ba[ka],Qa=ra[Aa],Ea&&Qa&&Ea.s<Qa.e){if(Ea.s>=Ha)break;Ka=Ea.s;0<
+Ka-l&&(W+=e(pa)+r(w,l,Ka),l=Ka);for(;null!=Ea&&Ea.s==Ka;)pa[Ea.n]=Ea,Ea=ba[++ka];W+=e(pa)}else if(Qa){if(Qa.e>Ha)break;l=Qa.e;do delete pa[Qa.n],Qa=ra[++Aa];while(null!=Qa&&Qa.e==l);W+=r(w,Ka,l);Ka=l;0!=Oa.length||null!=Ea&&Ea.s==l||(ba.splice(ka,0,{s:l,n:"dummy",v:""}),ra.splice(Aa,0,{e:Ea?Ea.s:Ha,n:"dummy",v:""}))}else break}W+=r(null,null,null,!0);ua&&(l!=Ha&&(W+=e({dummy:1})+r(w,l,Ha)),W+=O(!0));return W}function m(w,F){G=!1;var D=null!=w.Text&&w.Text.t?w.Text:null!=w.Value&&w.Value.t?w.Value:
null!=w.Lane_0&&w.Lane_0.t?w.Lane_0:null;null==D&&null!=w.State?w.State.t&&(D=w.State):null==D&&null!=w.Note?w.Note.t&&(D=w.Note):null==D&&null!=w.Title?w.Title.t&&(D=w.Title):w.t&&(D=w);null==D&&null!=w.TextAreas?null!=w.TextAreas.Text&&null!=w.TextAreas.Text.Value&&w.TextAreas.Text.Value.t&&(D=w.TextAreas.Text.Value):null==D&&null!=w.t0&&w.t0.t&&(D=w.t0);if(null!=D){if(null!=D.t){var u=D.t;u=u.replace(/\u2028/g,"\n");D=D.m;try{/ /.test(u)&&(LucidImporter.hasUnknownShapes=!0);for(var e=0;e<D.length;e++)if(0<
-D[e].s||null!=D[e].e&&D[e].e<u.length||"t"==D[e].n||"ac"==D[e].n||"lk"==D[e].n){G=!0;break}if(G=G||F)return B(u,D,w)}catch(P){console.log(P)}u=u.replace(/</g,"&lt;");return u=u.replace(/>/g,"&gt;")}if(null!=D.Value&&null!=D.Value.t)return D.Value.t=D.Value.t.replace(/</g,"&lt;"),D.Value.t=D.Value.t.replace(/>/g,"&gt;"),D.Value.t}return""}function h(w){return null!=w.Action?w.Action:w}function c(w){if(null!=w.Text){if(null!=w.Text.m)return w.Text.m}else if(null!=w.TextAreas){if(null!=w.TextAreas.Text&&
-null!=w.TextAreas.Text.Value&&null!=w.TextAreas.Text.Value.m)return w.TextAreas.Text.Value.m}else{if(null!=w.m)return w.m;if(null!=w.Title){if(null!=w.Title.m)return w.Title.m}else if(null!=w.State){if(null!=w.State.m)return w.State.m}else if(null!=w.Note&&null!=w.Note.m)return w.Note.m}return null}function a(w,F){w="whiteSpace=wrap;"+(F?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+lb:f(w)+k(w)+q(w)+t(w)+C(w)+I(w)+N(w)+K(w)+O(w))+S(w)+H(w)+Zb(mxConstants.STYLE_ALIGN,w.TextAlign,"center");lb=
-"";return w}function b(w,F,D,u,e,P){P=null==P?!1:P;var r="",p=!1,Z=!1;if(null!=w)if(P){P=w.split(";");w="";for(var aa=0;aa<P.length;aa++)"fillColor=none"==P[aa]?Z=!0:"strokeColor=none"==P[aa]?p=!0:""!=P[aa]&&(w+=P[aa]+";")}else""!=w&&";"!=w.charAt(w.length-1)&&(r=";");r+=(Xc(w,"whiteSpace")?"":"whiteSpace=wrap;")+(e?(Xc(w,"overflow")?"":"overflow=block;blockSpacing=1;")+(Xc(w,"html")?"":"html=1;")+"fontSize=13;"+lb:d(mxConstants.STYLE_FONTSIZE,w,F,D,u)+d(mxConstants.STYLE_FONTFAMILY,w,F,D,u)+d(mxConstants.STYLE_FONTCOLOR,
+D[e].s||null!=D[e].e&&D[e].e<u.length||"t"==D[e].n||"ac"==D[e].n||"lk"==D[e].n){G=!0;break}if(G=G||F)return B(u,D,w)}catch(O){console.log(O)}u=u.replace(/</g,"&lt;");return u=u.replace(/>/g,"&gt;")}if(null!=D.Value&&null!=D.Value.t)return D.Value.t=D.Value.t.replace(/</g,"&lt;"),D.Value.t=D.Value.t.replace(/>/g,"&gt;"),D.Value.t}return""}function h(w){return null!=w.Action?w.Action:w}function c(w){if(null!=w.Text){if(null!=w.Text.m)return w.Text.m}else if(null!=w.TextAreas){if(null!=w.TextAreas.Text&&
+null!=w.TextAreas.Text.Value&&null!=w.TextAreas.Text.Value.m)return w.TextAreas.Text.Value.m}else{if(null!=w.m)return w.m;if(null!=w.Title){if(null!=w.Title.m)return w.Title.m}else if(null!=w.State){if(null!=w.State.m)return w.State.m}else if(null!=w.Note&&null!=w.Note.m)return w.Note.m}return null}function a(w,F){w="whiteSpace=wrap;"+(F?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+mb:f(w)+k(w)+q(w)+t(w)+C(w)+I(w)+Q(w)+K(w)+L(w))+S(w)+R(w)+Zb(mxConstants.STYLE_ALIGN,w.TextAlign,"center");mb=
+"";return w}function b(w,F,D,u,e,O){O=null==O?!1:O;var r="",p=!1,aa=!1;if(null!=w)if(O){O=w.split(";");w="";for(var ba=0;ba<O.length;ba++)"fillColor=none"==O[ba]?aa=!0:"strokeColor=none"==O[ba]?p=!0:""!=O[ba]&&(w+=O[ba]+";")}else""!=w&&";"!=w.charAt(w.length-1)&&(r=";");r+=(Yc(w,"whiteSpace")?"":"whiteSpace=wrap;")+(e?(Yc(w,"overflow")?"":"overflow=block;blockSpacing=1;")+(Yc(w,"html")?"":"html=1;")+"fontSize=13;"+mb:d(mxConstants.STYLE_FONTSIZE,w,F,D,u)+d(mxConstants.STYLE_FONTFAMILY,w,F,D,u)+d(mxConstants.STYLE_FONTCOLOR,
w,F,D,u)+d(mxConstants.STYLE_FONTSTYLE,w,F,D,u)+d(mxConstants.STYLE_ALIGN,w,F,D,u)+d(mxConstants.STYLE_SPACING_LEFT,w,F,D,u)+d(mxConstants.STYLE_SPACING_RIGHT,w,F,D,u)+d(mxConstants.STYLE_SPACING_TOP,w,F,D,u)+d(mxConstants.STYLE_SPACING_BOTTOM,w,F,D,u))+d(mxConstants.STYLE_ALIGN+"Global",w,F,D,u)+d(mxConstants.STYLE_SPACING,w,F,D,u)+d(mxConstants.STYLE_VERTICAL_ALIGN,w,F,D,u)+d(mxConstants.STYLE_STROKECOLOR,w,F,D,u)+d(mxConstants.STYLE_OPACITY,w,F,D,u)+d(mxConstants.STYLE_ROUNDED,w,F,D,u)+d(mxConstants.STYLE_ROTATION,
-w,F,D,u)+d(mxConstants.STYLE_FLIPH,w,F,D,u)+d(mxConstants.STYLE_FLIPV,w,F,D,u)+d(mxConstants.STYLE_SHADOW,w,F,D,u)+d(mxConstants.STYLE_FILLCOLOR,w,F,D,u)+d(mxConstants.STYLE_DASHED,w,F,D,u)+d(mxConstants.STYLE_STROKEWIDTH,w,F,D,u)+d(mxConstants.STYLE_IMAGE,w,F,D,u)+d(mxConstants.STYLE_POINTER_EVENTS,w,F,D,u);Z&&!Xc(r,mxConstants.STYLE_FILLCOLOR)&&(r+="fillColor=none;");p&&!Xc(r,mxConstants.STYLE_STROKECOLOR)&&(r+="strokeColor=none;");lb="";return r}function d(w,F,D,u,e){if(!Xc(F,w))switch(w){case mxConstants.STYLE_FONTSIZE:return f(D);
-case mxConstants.STYLE_FONTFAMILY:return k(D);case mxConstants.STYLE_FONTCOLOR:return q(D);case mxConstants.STYLE_FONTSTYLE:return t(D);case mxConstants.STYLE_ALIGN:return C(D);case mxConstants.STYLE_ALIGN+"Global":return Zb(mxConstants.STYLE_ALIGN,D.TextAlign,"center");case mxConstants.STYLE_SPACING_LEFT:return I(D);case mxConstants.STYLE_SPACING_RIGHT:return N(D);case mxConstants.STYLE_SPACING_TOP:return K(D);case mxConstants.STYLE_SPACING_BOTTOM:return O(D);case mxConstants.STYLE_SPACING:return S(D);
-case mxConstants.STYLE_VERTICAL_ALIGN:return H(D);case mxConstants.STYLE_STROKECOLOR:return J(D,u);case mxConstants.STYLE_OPACITY:return Q(D,u,e);case mxConstants.STYLE_ROUNDED:return w=!e.edge&&!e.style.includes("rounded")&&null!=D.Rounding&&0<D.Rounding?"rounded=1;absoluteArcSize=1;arcSize="+z(.75*D.Rounding)+";":"",w;case mxConstants.STYLE_ROTATION:return ca(D,u,e);case mxConstants.STYLE_FLIPH:return w=D.FlipX?"flipH=1;":"",w;case mxConstants.STYLE_FLIPV:return w=D.FlipY?"flipV=1;":"",w;case mxConstants.STYLE_SHADOW:return W(D);
-case mxConstants.STYLE_FILLCOLOR:return ba(D,u);case mxConstants.STYLE_DASHED:return qa(D);case mxConstants.STYLE_STROKEWIDTH:return sa(D);case mxConstants.STYLE_IMAGE:return Fa(D,u);case mxConstants.STYLE_POINTER_EVENTS:return D.Magnetize?"container=1;pointerEvents=0;collapsible=0;recursiveResize=0;":""}return""}function f(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("s"==D.n&&D.v)return"fontSize="+z(.75*D.v)+";";F++}return"fontSize=13;"}function k(w){var F=c(w);if(null!=F)for(var D=
-0;D<F.length;D++)if("f"==F[D].n&&F[D].v){var u=F[D].v;break}!u&&w.Font&&(u=w.Font);y(u);return lb}function n(w){return"ext"==w.tp?w.url:"ml"==w.tp?"mailto:"+w.eml:"pg"==w.tp?"data:page/id,"+(LucidImporter.pageIdsMap[w.id]||0):"c"==w.tp?"data:confluence/id,"+w.ccid:null}function q(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("c"==D.n&&null!=D.v)return w=R(D.v).substring(0,7),"#000000"==w&&(w="default"),mxConstants.STYLE_FONTCOLOR+"="+w+";";F++}return""}function t(w){return A(c(w))}function A(w){if(null!=
+w,F,D,u)+d(mxConstants.STYLE_FLIPH,w,F,D,u)+d(mxConstants.STYLE_FLIPV,w,F,D,u)+d(mxConstants.STYLE_SHADOW,w,F,D,u)+d(mxConstants.STYLE_FILLCOLOR,w,F,D,u)+d(mxConstants.STYLE_DASHED,w,F,D,u)+d(mxConstants.STYLE_STROKEWIDTH,w,F,D,u)+d(mxConstants.STYLE_IMAGE,w,F,D,u)+d(mxConstants.STYLE_POINTER_EVENTS,w,F,D,u);aa&&!Yc(r,mxConstants.STYLE_FILLCOLOR)&&(r+="fillColor=none;");p&&!Yc(r,mxConstants.STYLE_STROKECOLOR)&&(r+="strokeColor=none;");mb="";return r}function d(w,F,D,u,e){if(!Yc(F,w))switch(w){case mxConstants.STYLE_FONTSIZE:return f(D);
+case mxConstants.STYLE_FONTFAMILY:return k(D);case mxConstants.STYLE_FONTCOLOR:return q(D);case mxConstants.STYLE_FONTSTYLE:return t(D);case mxConstants.STYLE_ALIGN:return C(D);case mxConstants.STYLE_ALIGN+"Global":return Zb(mxConstants.STYLE_ALIGN,D.TextAlign,"center");case mxConstants.STYLE_SPACING_LEFT:return I(D);case mxConstants.STYLE_SPACING_RIGHT:return Q(D);case mxConstants.STYLE_SPACING_TOP:return K(D);case mxConstants.STYLE_SPACING_BOTTOM:return L(D);case mxConstants.STYLE_SPACING:return S(D);
+case mxConstants.STYLE_VERTICAL_ALIGN:return R(D);case mxConstants.STYLE_STROKECOLOR:return H(D,u);case mxConstants.STYLE_OPACITY:return M(D,u,e);case mxConstants.STYLE_ROUNDED:return w=!e.edge&&!e.style.includes("rounded")&&null!=D.Rounding&&0<D.Rounding?"rounded=1;absoluteArcSize=1;arcSize="+z(.75*D.Rounding)+";":"",w;case mxConstants.STYLE_ROTATION:return T(D,u,e);case mxConstants.STYLE_FLIPH:return w=D.FlipX?"flipH=1;":"",w;case mxConstants.STYLE_FLIPV:return w=D.FlipY?"flipV=1;":"",w;case mxConstants.STYLE_SHADOW:return ca(D);
+case mxConstants.STYLE_FILLCOLOR:return Y(D,u);case mxConstants.STYLE_DASHED:return sa(D);case mxConstants.STYLE_STROKEWIDTH:return oa(D);case mxConstants.STYLE_IMAGE:return Ra(D,u);case mxConstants.STYLE_POINTER_EVENTS:return D.Magnetize?"container=1;pointerEvents=0;collapsible=0;recursiveResize=0;":""}return""}function f(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("s"==D.n&&D.v)return"fontSize="+z(.75*D.v)+";";F++}return"fontSize=13;"}function k(w){var F=c(w);if(null!=F)for(var D=
+0;D<F.length;D++)if("f"==F[D].n&&F[D].v){var u=F[D].v;break}!u&&w.Font&&(u=w.Font);y(u);return mb}function n(w){return"ext"==w.tp?w.url:"ml"==w.tp?"mailto:"+w.eml:"pg"==w.tp?"data:page/id,"+(LucidImporter.pageIdsMap[w.id]||0):"c"==w.tp?"data:confluence/id,"+w.ccid:null}function q(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("c"==D.n&&null!=D.v)return w=V(D.v).substring(0,7),"#000000"==w&&(w="default"),mxConstants.STYLE_FONTCOLOR+"="+w+";";F++}return""}function t(w){return A(c(w))}function A(w){if(null!=
w){var F=0,D=!1;if(null!=w)for(var u=0;!D&&u<w.length;){var e=w[u];"b"==e.n?null!=e.v&&e.v&&(D=!0,F+=1):"fc"==e.n&&"Bold"==e.v&&(D=!0,F+=1);u++}D=!1;if(null!=w)for(u=0;!D&&u<w.length;)e=w[u],"i"==e.n&&null!=e.v&&e.v&&(D=!0,F+=2),u++;D=!1;if(null!=w)for(u=0;!D&&u<w.length;)e=w[u],"u"==e.n&&null!=e.v&&e.v&&(D=!0,F+=4),u++;if(0<F)return"fontStyle="+F+";"}return""}function C(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("a"==D.n&&null!=D.v)return"align="+D.v+";";F++}return""}function I(w){w=
-c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if(null!=D.v&&"il"==D.n)return"spacingLeft="+z(.75*D.v)+";";F++}return""}function N(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("ir"==D.n&&null!=D.v)return"spacingRight="+z(.75*D.v)+";";F++}return""}function K(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("mt"==D.n&&null!=D.v)return"spacingTop="+z(.75*D.v)+";";F++}return""}function O(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("mb"==D.n&&null!=D.v)return"spacingBottom="+
-z(.75*D.v)+";";F++}return""}function S(w){return"number"===typeof w.InsetMargin?"spacing="+Math.max(0,z(.75*w.InsetMargin))+";":""}function H(w){return null!=w.Text_VAlign&&"string"===typeof w.Text_VAlign?"verticalAlign="+w.Text_VAlign+";":null!=w.Title_VAlign&&"string"===typeof w.Title_VAlign?"verticalAlign="+w.Title_VAlign+";":Zb(mxConstants.STYLE_VERTICAL_ALIGN,w.TextVAlign,"middle")}function J(w,F){return 0==w.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":Zb(mxConstants.STYLE_STROKECOLOR,U(w.LineColor),
-"#000000")}function M(w){return null!=w?mxConstants.STYLE_FILLCOLOR+"="+U(w)+";":""}function L(w){return null!=w?"swimlaneFillColor="+U(w)+";":""}function Q(w,F,D){F="";if("string"===typeof w.LineColor&&(w.LineColor=R(w.LineColor),7<w.LineColor.length)){var u="0x"+w.LineColor.substring(w.LineColor.length-2,w.LineColor.length);D.style.includes("strokeOpacity")||(F+="strokeOpacity="+Math.round(parseInt(u)/2.55)+";")}"string"===typeof w.FillColor&&(w.FillColor=R(w.FillColor),7<w.FillColor.length&&(w=
-"0x"+w.FillColor.substring(w.FillColor.length-2,w.FillColor.length),D.style.includes("fillOpacity")||(F+="fillOpacity="+Math.round(parseInt(w)/2.55)+";")));return F}function ca(w,F,D){var u="";if(null!=w.Rotation){w=mxUtils.toDegree(parseFloat(w.Rotation));var e=!0;0!=w&&F.Class&&("UMLSwimLaneBlockV2"==F.Class||(0<=F.Class.indexOf("Rotated")||-90==w||270==w)&&(0<=F.Class.indexOf("Pool")||0<=F.Class.indexOf("SwimLane")))?(w+=90,D.geometry.rotate90(),D.geometry.isRotated=!0,e=!1):0<=mxUtils.indexOf(vf,
-F.Class)?(w-=90,D.geometry.rotate90()):0<=mxUtils.indexOf(wf,F.Class)&&(w+=180);0!=w&&(u+="rotation="+w+";");e||(u+="horizontal=0;")}return u}function W(w){return null!=w.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function R(w){if(w){if("object"===typeof w)try{w=w.cs[0].c}catch(F){console.log(F),w="#ffffff"}"rgb"==w.substring(0,3)?w="#"+w.match(/\d+/g).map(function(F){F=parseInt(F).toString(16);return(1==F.length?"0":"")+F}).join(""):"#"!=w.charAt(0)&&(w="#"+w)}return w}function U(w){return(w=R(w))?
-w.substring(0,7):null}function ia(w,F){return(w=R(w))&&7<w.length?F+"="+Math.round(parseInt("0x"+w.substr(7))/2.55)+";":""}function ba(w,F){if(null!=w.FillColor)if("object"===typeof w.FillColor){if(null!=w.FillColor.cs&&1<w.FillColor.cs.length)return Zb(mxConstants.STYLE_FILLCOLOR,U(w.FillColor.cs[0].c))+Zb(mxConstants.STYLE_GRADIENTCOLOR,U(w.FillColor.cs[1].c))}else return"string"===typeof w.FillColor?Zb(mxConstants.STYLE_FILLCOLOR,U(w.FillColor),"#FFFFFF"):Zb(mxConstants.STYLE_FILLCOLOR,"none");
-return""}function qa(w){return"dotted"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 4;":"dashdot"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5;":"dashdotdot"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5 1 5;":"dotdotdot"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 2;":"longdash"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=16 6;":"dashlongdash"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 6 16 6;":"dashed24"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=3 8;":
-"dashed32"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=6 5;":"dashed44"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=8 8;":null!=w.StrokeStyle&&"dashed"==w.StrokeStyle.substring(0,6)?"dashed=1;fixDash=1;":""}function sa(w){return null!=w.LineWidth?Zb(mxConstants.STYLE_STROKEWIDTH,z(.75*parseFloat(w.LineWidth)),"1"):""}function Fa(w,F,D){var u="";w.FillColor&&w.FillColor.url?(D=w.FillColor.url,"fill"==w.FillColor.pos&&(u="imageAspect=0;")):"ImageSearchBlock2"==F.Class?D=w.URL:"UserImage2Block"==
-F.Class&&null!=w.ImageFillProps&&null!=w.ImageFillProps.url&&(D=w.ImageFillProps.url);return null!=D?"image="+g(D)+";"+u:""}function pa(w,F,D){null!=F.Link&&0<F.Link.length&&D.setAttributeForCell(w,"link",n(F.Link[0]));null!=F.NoteHint&&F.NoteHint.t&&D.setAttributeForCell(w,"Notes",F.NoteHint.t);var u=[],e=D.convertValueToString(w),P=!1;if(null!=e){for(var r=0;match=xf.exec(e);){var p=match[0];P=!0;if(2<p.length){var Z=p.substring(2,p.length-2);"documentName"==Z?Z="filename":"pageName"==Z?Z="page":
-"totalPages"==Z?Z="pagecount":"page"==Z?Z="pagenumber":"date:"==Z.substring(0,5)?Z="date{"+Z.substring(5).replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy")+"}":"lastModifiedTime"==Z.substring(0,16)?Z=Z.replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy"):"i18nDate:"==Z.substring(0,9)&&(Z="date{"+Z.substring(9).replace(/i18nShort/g,"shortDate").replace(/i18nMediumWithTime/g,"mmm d, yyyy hh:MM TT")+"}");Z="%"+Z+"%";u.push(e.substring(r,match.index)+(null!=Z?Z:p));r=
-match.index+p.length}}P&&(u.push(e.substring(r)),D.setAttributeForCell(w,"label",u.join("")),D.setAttributeForCell(w,"placeholders","1"))}for(var aa in F)if(F.hasOwnProperty(aa)&&aa.toString().startsWith("ShapeData_"))try{var V=F[aa],wa=mxUtils.trim(V.Label).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,"");Za(w,wa,V.Value,D)}catch(ka){window.console&&console.log("Ignored "+aa+":",ka)}}function Za(w,F,D,u){for(var e=F,P=0;null!=u.getAttributeForCell(w,e);)P++,e=F+"_"+P;u.setAttributeForCell(w,
-e,null!=D?D:"")}function Qb(w,F,D,u,e,P){var r=h(F);if(null!=r){var p=Od[r.Class];null!=p?(w.style+=p,";"!=w.style.charAt(w.style.length-1)&&(w.style+=";")):w.edge||(console.log("No mapping found for: "+r.Class),LucidImporter.hasUnknownShapes=!0);p=null!=r.Properties?r.Properties:r;if(null!=p&&(w.value=P?"":m(p),w.style+=b(w.style,p,r,w,G,!0),w.style.includes("strokeColor")||(w.style+=J(p,r)),pa(w,p,D),p.Title&&p.Title.t&&p.Text&&p.Text.t&&"ExtShape"!=r.Class.substr(0,8)&&(D=w.geometry,D=new mxCell(m(p.Title),
-new mxGeometry(0,D.height,D.width,10),"strokeColor=none;fillColor=none;"),D.vertex=!0,w.insert(D),D.style+=a(p.Title,G)),w.edge)){w.style=null!=p.Rounding&&"diagonal"!=p.Shape?w.style+("rounded=1;arcSize="+p.Rounding+";"):w.style+"rounded=0;";if(D="curve"==p.Shape)w.style+="curved=1;";else if("diagonal"!=p.Shape)if(null!=p.ElbowPoints&&0<p.ElbowPoints.length)for(w.geometry.points=[],r=0;r<p.ElbowPoints.length;r++)w.geometry.points.push(new mxPoint(Math.round(.75*p.ElbowPoints[r].x+wc),Math.round(.75*
-p.ElbowPoints[r].y+xc)));else if("elbow"==p.Shape||null!=p.Endpoint1.Block&&null!=p.Endpoint2.Block)w.style+="edgeStyle=orthogonalEdgeStyle;";if(p.LineJumps||LucidImporter.globalProps.LineJumps)w.style+="jumpStyle=arc;";null!=p.Endpoint1.Style&&(P=Ee[p.Endpoint1.Style],null!=P?(P=P.replace(/xyz/g,"start"),w.style+="startArrow="+P+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+p.Endpoint1.Style)));null!=p.Endpoint2.Style&&(P=Ee[p.Endpoint2.Style],null!=
-P?(P=P.replace(/xyz/g,"end"),w.style+="endArrow="+P+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+p.Endpoint2.Style)));P=null!=p.ElbowControlPoints&&0<p.ElbowControlPoints.length?p.ElbowControlPoints:p.Joints;if(D&&null!=p.BezierJoints&&0<p.BezierJoints.length){P=[];D=p.BezierJoints[p.BezierJoints.length-1];D.p.x=p.Endpoint2.x;D.p.y=p.Endpoint2.y;for(r=0;r<p.BezierJoints.length;r++)D=p.BezierJoints[r],P.push({x:D.p.x+D.nt.x*D.lcps*.75,y:D.p.y+D.nt.y*
-D.lcps*.75}),P.push({x:D.p.x+D.nt.x*D.rcps*.75,y:D.p.y+D.nt.y*D.rcps*.75});P=P.slice(1,P.length-1)}else D&&(P=[],P.push({x:p.Endpoint1.x+(.1>p.Endpoint1.LinkX?-250:.9<p.Endpoint1.LinkX?250:0),y:p.Endpoint1.y+(.1>p.Endpoint1.LinkY?-250:.9<p.Endpoint1.LinkY?250:0)}),P.push({x:p.Endpoint2.x+(.1>p.Endpoint2.LinkX?-250:.9<p.Endpoint2.LinkX?250:0),y:p.Endpoint2.y+(.1>p.Endpoint2.LinkY?-250:.9<p.Endpoint2.LinkY?250:0)}));if(null!=P)for(w.geometry.points=[],r=0;r<P.length;r++)D=P[r].p?P[r].p:P[r],w.geometry.points.push(new mxPoint(Math.round(.75*
-D.x+wc),Math.round(.75*D.y+xc)));D=!1;if((null==w.geometry.points||0==w.geometry.points.length)&&null!=p.Endpoint1.Block&&p.Endpoint1.Block==p.Endpoint2.Block&&null!=u&&null!=e){D=new mxPoint(Math.round(u.geometry.x+u.geometry.width*p.Endpoint1.LinkX),Math.round(u.geometry.y+u.geometry.height*p.Endpoint1.LinkY));P=new mxPoint(Math.round(e.geometry.x+e.geometry.width*p.Endpoint2.LinkX),Math.round(e.geometry.y+e.geometry.height*p.Endpoint2.LinkY));wc=D.x==P.x?Math.abs(D.x-u.geometry.x)<u.geometry.width/
-2?-20:20:0;xc=D.y==P.y?Math.abs(D.y-u.geometry.y)<u.geometry.height/2?-20:20:0;var Z=new mxPoint(D.x+wc,D.y+xc),aa=new mxPoint(P.x+wc,P.y+xc);Z.generated=!0;aa.generated=!0;w.geometry.points=[Z,aa];D=D.x==P.x}null!=u&&u.geometry.isRotated||(Z=Fe(w,p.Endpoint1,!0,D,null,u));null!=u&&null!=Z&&(null==u.stylePoints&&(u.stylePoints=[]),u.stylePoints.push(Z),LucidImporter.stylePointsSet.add(u));null!=e&&e.geometry.isRotated||(aa=Fe(w,p.Endpoint2,!1,D,null,e));null!=e&&null!=aa&&(null==e.stylePoints&&(e.stylePoints=
-[]),e.stylePoints.push(aa),LucidImporter.stylePointsSet.add(e))}}null!=F.id&&(w.style+=";lucidId="+F.id+";");w.lucidchartObject=F}function vb(w,F){var D=h(w).Properties,u=D.BoundingBox;null==w.Class||"AWS"!==w.Class.substring(0,3)&&"Amazon"!==w.Class.substring(0,6)||w.Class.includes("AWS19")||(u.h-=20);v=new mxCell("",new mxGeometry(Math.round(.75*u.x+wc),Math.round(.75*u.y+xc),Math.round(.75*u.w),Math.round(.75*u.h)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;Qb(v,w,F);
-v.zOrder=D.ZOrder;Ge(v,D);D.Hidden&&(v.visible=!1);return v}function yf(w,F,D,u){var e=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");e.geometry.relative=!0;e.edge=!0;Qb(e,w,F,D,u,!0);var P=h(w).Properties,r=null!=P?P.TextAreas:w.TextAreas;if(null!=r){for(var p=0;void 0!==r["t"+p];){var Z=r["t"+p];null!=Z&&(e=Pd(Z,e,w,D,u,F));p++}for(p=0;void 0!==r["m"+p]||1>p;)Z=r["m"+p],null!=Z&&(e=Pd(Z,e,w,D,u,F)),p++;null!=r.Text&&(e=Pd(r.Text,e,w,D,u,F));r=null!=P?P.TextAreas:w.TextAreas;null!=
-r.Message&&(e=Pd(r.Message,e,w,D,u,F))}w.Hidden&&(e.visible=!1);return e}function Pd(w,F,D,u,e,P){var r=2*(parseFloat(w.Location)-.5);isNaN(r)&&null!=w.Text&&null!=w.Text.Location&&(r=2*(parseFloat(w.Text.Location)-.5));P=m(w);var p=mxCell;r=new mxGeometry(isNaN(r)?0:r,0,0,0);var Z=ge;var aa=D;if(G)aa=lb;else{var V="13",wa="";if(null!=w&&null!=w.Value&&null!=w.Value.m){wa=A(w.Value.m);for(var ka=0;ka<w.Value.m.length;ka++)if("s"==w.Value.m[ka].n&&w.Value.m[ka].v)V=z(.75*parseFloat(w.Value.m[ka].v));
-else if("c"==w.Value.m[ka].n){var na=R(w.Value.m[ka].v);null!=na&&(na=na.substring(0,7));"#000000"==na&&(na="default");wa+="fontColor="+na+";"}wa+=k(aa);lb=""}aa=wa+";fontSize="+V+";"}p=new p(P,r,Z+aa);p.geometry.relative=!0;p.vertex=!0;if(w.Side)try{D.Action&&D.Action.Properties&&(D=D.Action.Properties);if(null!=u&&null!=e){var ra=u.geometry,Aa=e.geometry;var ma=Math.abs(ra.x+ra.width*D.Endpoint1.LinkX-(Aa.x+Aa.width*D.Endpoint2.LinkX));var Ba=Math.abs(ra.y+ra.height*D.Endpoint1.LinkY-(Aa.y+Aa.height*
-D.Endpoint2.LinkY))}else ma=Math.abs(D.Endpoint1.x-D.Endpoint2.x),Ba=Math.abs(D.Endpoint1.y-D.Endpoint2.y);var Pa=mxUtils.getSizeForString(P.replace(/\n/g,"<br>"));p.geometry.offset=0==ma||ma<Ba?new mxPoint(Math.sign(D.Endpoint1.y-D.Endpoint2.y)*w.Side*(Pa.width/2+5+ma),0):new mxPoint(0,Math.sign(D.Endpoint2.x-D.Endpoint1.x)*w.Side*(Pa.height/2+5+Ba))}catch(Ca){console.log(Ca)}p.lucidchartObject=w;F.insert(p);return F}function Zb(w,F,D,u){null!=F&&null!=u&&(F=u(F));return null!=F&&F!=D?w+"="+F+";":
-""}function Fe(w,F,D,u,e,P){if(null!=F&&null!=F.LinkX&&null!=F.LinkY&&(F.LinkX=Math.round(1E3*F.LinkX)/1E3,F.LinkY=Math.round(1E3*F.LinkY)/1E3,null!=P&&P.style&&-1<P.style.indexOf("flipH=1")&&(F.LinkX=1-F.LinkX),null!=P&&P.style&&-1<P.style.indexOf("flipV=1")&&(F.LinkY=1-F.LinkY),w.style+=(u?"":(D?"exitX":"entryX")+"="+F.LinkX+";")+(e?"":(D?"exitY":"entryY")+"="+F.LinkY+";")+(D?"exitPerimeter":"entryPerimeter")+"=0;",F.Inside))return"["+F.LinkX+","+F.LinkY+",0]"}function He(w,F,D,u,e){try{var P=function(ma,
-Ba){if(null!=ma)if(Array.isArray(ma))for(var Pa=0;Pa<ma.length;Pa++)P(ma[Pa].p?ma[Pa].p:ma[Pa],Ba);else Ba=Ba?.75:1,p=Math.min(p,ma.x*Ba),Z=Math.min(Z,ma.y*Ba),aa=Math.max(aa,(ma.x+(ma.width?ma.width:0))*Ba),V=Math.max(V,(ma.y+(ma.height?ma.height:0))*Ba)};null!=w.Action&&null!=w.Action.Properties&&(w=w.Action.Properties);var r=new mxCell("",new mxGeometry,"group;dropTarget=0;pointerEvents=0;");r.vertex=!0;r.zOrder=w.ZOrder;var p=Infinity,Z=Infinity,aa=-Infinity,V=-Infinity,wa=w.Members;e=[];for(var ka in wa){var na=
-F[ka];null!=na?e.push(na):null!=u[ka]&&(e.push(u[ka]),D[ka]=r)}e.sort(function(ma,Ba){ma=ma.zOrder||ma.ZOrder;Ba=Ba.zOrder||Ba.ZOrder;return null!=ma&&null!=Ba?ma>Ba?1:ma<Ba?-1:0:0});for(D=F=0;D<e.length;D++)if(na=e[D],na.vertex)P(na.geometry),na.parent=r,r.insert(na,F++);else{var ra=null!=na.Action&&na.Action.Properties?na.Action.Properties:na;P(ra.Endpoint1,!0);P(ra.Endpoint2,!0);P(ra.ElbowPoints,!0);P(ra.ElbowControlPoints,!0);P(ra.BezierJoints,!0);P(ra.Joints,!0)}r.geometry.x=p;r.geometry.y=Z;
-r.geometry.width=aa-p;r.geometry.height=V-Z;if(null!=r.children)for(D=0;D<r.children.length;D++){var Aa=r.children[D].geometry;Aa.x-=p;Aa.y-=Z}w.IsState?(r.lucidLayerInfo={name:w.Name,visible:!w.Hidden,locked:w.Restrictions.b&&w.Restrictions.p&&w.Restrictions.c},r.style+="container=1;collapsible=0;recursiveResize=0;"):w.Hidden&&(r.visible=!1);r.lucidchartObject=w;return r}catch(ma){console.log(ma)}}function zf(w,F,D){LucidImporter.hasMath=!1;LucidImporter.stylePointsSet=new Set;w.getModel().beginUpdate();
-try{var u=function(Ca,ua){function Na(Ra,la,Ma){null==Ra||Ra.generated||(Ra.x-=la,Ra.y-=Ma)}var Ka=null!=ua.Endpoint1.Block?P[ua.Endpoint1.Block]:null,La=null!=ua.Endpoint2.Block?P[ua.Endpoint2.Block]:null,l=yf(Ca,w,Ka,La);if(ua.Endpoint1&&ua.Endpoint1.Line||ua.Endpoint2&&ua.Endpoint2.Line)console.log("Edge to Edge case"),LucidImporter.hasUnknownShapes=!0;null==Ka&&null!=ua.Endpoint1&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.75*ua.Endpoint1.x),Math.round(.75*ua.Endpoint1.y)),!0);null==
-La&&null!=ua.Endpoint2&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.75*ua.Endpoint2.x),Math.round(.75*ua.Endpoint2.y)),!1);Ca=r[Ca.id];if(null!=Ca){for(var Ia=l.geometry,bb=ua=0,Ea=Ca;null!=Ea&&null!=Ea.geometry;)ua+=Ea.geometry.x,bb+=Ea.geometry.y,Ea=Ea.parent;Na(Ia.sourcePoint,ua,bb);Na(Ia.targetPoint,ua,bb);Na(Ia.offset,ua,bb);Ia=Ia.points;if(null!=Ia)for(Ea=0;Ea<Ia.length;Ea++)Na(Ia[Ea],ua,bb)}e.push(w.addCell(l,Ca,null,Ka,La))},e=[],P={},r={},p={},Z=[];null!=F.Lines&&(p=F.Lines);if(null!=
-F.Blocks){Object.assign(p,F.Blocks);for(var aa in F.Blocks){var V=F.Blocks[aa];V.id=aa;var wa=!1;null!=Od[V.Class]&&"mxCompositeShape"==Od[V.Class]&&(P[V.id]=Ie(V,e,w),Z.push(V),wa=!0);wa||(P[V.id]=vb(V,w),Z.push(V))}if(null!=F.Generators)for(aa in F.Generators)"OrgChart2018"==F.Generators[aa].ClassName?(LucidImporter.hasUnknownShapes=!0,Je(aa,F.Generators[aa],F.Data,w,P)):LucidImporter.hasUnknownShapes=!0}else{for(var ka=0;ka<F.Objects.length;ka++)V=F.Objects[ka],p[V.id]=V,null!=V.Action&&"mxCompositeShape"==
-Od[V.Action.Class]?P[V.id]=Ie(V,e,w):V.IsBlock&&null!=V.Action&&null!=V.Action.Properties?P[V.id]=vb(V,w):V.IsGenerator&&V.GeneratorData&&V.GeneratorData.p&&("OrgChart2018"==V.GeneratorData.p.ClassName?(LucidImporter.hasUnknownShapes=!0,Je(V.GeneratorData.id,V.GeneratorData.p,V.GeneratorData.gs,w,P)):LucidImporter.hasUnknownShapes=!0),Z.push(V);for(ka=0;ka<F.Objects.length;ka++)if(V=F.Objects[ka],V.IsGroup){var na=He(V,P,r,p,w);na&&(P[V.id]=na,Z.push(V))}}if(null!=F.Groups)try{for(aa in F.Groups)if(V=
-F.Groups[aa],V.id=aa,na=He(V,P,r,p,w))P[V.id]=na,Z.push(V)}catch(Ca){console.log(Ca)}if(null!=F.Lines)for(aa in F.Lines)V=F.Lines[aa],V.id=aa,Z.push(V);Z.sort(function(Ca,ua){Ca=h(Ca);ua=h(ua);Ca=null!=Ca.Properties?Ca.Properties.ZOrder:Ca.ZOrder;ua=null!=ua.Properties?ua.Properties.ZOrder:ua.ZOrder;return null!=Ca&&null!=ua?Ca>ua?1:Ca<ua?-1:0:0});for(ka=0;ka<Z.length;ka++){V=Z[ka];var ra=P[V.id];if(null!=ra){if(null==ra.parent)if(ra.lucidLayerInfo){var Aa=new mxCell;w.addCell(Aa,w.model.root);Aa.setVisible(ra.lucidLayerInfo.visible);
-ra.lucidLayerInfo.locked&&Aa.setStyle("locked=1;");Aa.setValue(ra.lucidLayerInfo.name);delete ra.lucidLayerInfo;w.addCell(ra,Aa)}else e.push(w.addCell(ra))}else V.IsLine&&null!=V.Action&&null!=V.Action.Properties?u(V,V.Action.Properties):null!=V.StrokeStyle&&u(V,V)}LucidImporter.stylePointsSet.forEach(function(Ca){Ca.style="points=["+Ca.stylePoints.join(",")+"];"+Ca.style;delete Ca.stylePoints});try{var ma=w.getModel().cells;w.view.validate();for(var Ba in ma){var Pa=ma[Ba];null!=Pa&&(Af(w,Pa),Bf(w,
-Pa),Cf(w,Pa),"1"==urlParams.lucidchartObject&&null!=Pa.lucidchartObject&&Za(Pa,"lucidchartObject",JSON.stringify(Pa.lucidchartObject,null,2),w),delete Pa.lucidchartObject,delete Pa.zOrder)}}catch(Ca){console.log(Ca)}D||w.setSelectionCells(e)}finally{w.getModel().endUpdate()}}function Cf(w,F){if(w.model.contains(F)&&F.edge){var D=w.view.getState(F);if(null!=D&&null!=F.children){var u=mxRectangle.fromRectangle(D.paintBounds);u.grow(5);for(var e=0;e<F.children.length;e++){var P=w.view.getState(F.children[e]);
-null==P||mxUtils.contains(u,P.paintBounds.x,P.paintBounds.y)||(P.cell.geometry.offset=new mxPoint(0,0))}}w=F.lucidchartObject;null!=w&&"elbow"==w.Shape&&null==w.ElbowControlPoints&&null==w.ElbowPoints&&null!=D.style.exitX&&null!=D.style.exitY&&null!=D.style.entryX&&null!=D.style.entryY&&(F.style=mxUtils.setStyle(F.style,"exitX",Math.round(20*D.style.exitX)/20),F.style=mxUtils.setStyle(F.style,"exitY",Math.round(20*D.style.exitY)/20),F.style=mxUtils.setStyle(F.style,"entryX",Math.round(20*D.style.entryX)/
-20),F.style=mxUtils.setStyle(F.style,"entryY",Math.round(20*D.style.entryY)/20))}}function Bf(w,F){if(w.model.contains(F)&&null!=F.style&&""!=F.style){w=F.style.split(";");for(var D={},u=[],e=w.length-1;0<=e;e--){var P=w[e].split("=");if(2!=P.length||null==D[P[0]])D[P[0]]=P[1],""!=w[e]&&u.push(w[e])}F.style=u.reverse().join(";")+";"}}function Af(w,F){if(w.model.contains(F)&&null!=F.children&&null!=F.geometry&&F.vertex&&"group;dropTarget=0;pointerEvents=0;"==F.style){for(var D=null,u=0;u<F.children.length;u++)if(F.children[u].vertex){var e=
-F.children[u].geometry;if(null!=e&&0==e.x&&0==e.y&&e.width==F.geometry.width&&e.height==F.geometry.height){if(null!=D)return;D=F.children[u]}}F=D;if(null!=F&&(D=F.parent,""==w.convertValueToString(D))){if(null!=F.edges)for(u=0;u<F.edges.length;u++)F.edges[u].source==F&&F.edges[u].setTerminal(F.parent,!0),F.edges[u].target==F&&F.edges[u].setTerminal(F.parent,!1);if(null!=F.children&&0<F.children.length)for(e=F.children.slice(),u=0;u<e.length;u++)D.insert(e[u]);w.cellLabelChanged(D,w.convertValueToString(F));
-D.style=mxUtils.setStyle(mxUtils.setStyle(F.style,"container","1"),"collapsible","0");F.removeFromParent()}}}function Df(){var w=new Graph;w.setExtendParents(!1);w.setExtendParentsOnAdd(!1);w.setConstrainChildren(!1);w.setHtmlLabels(!0);w.getModel().maintainEdgeParent=!1;return w}function Qd(w,F,D,u,e,P,r,p){this.nurbsValues=[1,3,0,0,100*(w+D),100-100*(1-(F+u)),0,1,100*(e+r),100-100*(1-(P+p)),0,1]}function Ke(w,F){try{for(var D=[],u=F.BoundingBox.w,e=F.BoundingBox.h,P=0;P<F.Shapes.length;P++){var r=
-F.Shapes[P],p=r.FillColor,Z=r.StrokeColor,aa=r.LineWidth,V=r.Points,wa=r.Lines,ka=['<shape strokewidth="inherit"><foreground>'];ka.push("<path>");for(var na=null,ra=0;ra<wa.length;ra++){var Aa=wa[ra];if(na!=Aa.p1){var ma=V[Aa.p1].x,Ba=V[Aa.p1].y;ma=100*ma/u;Ba=100*Ba/e;ma=Math.round(100*ma)/100;Ba=Math.round(100*Ba)/100;ka.push('<move x="'+ma+'" y="'+Ba+'"/>')}if(null!=Aa.n1){var Pa=V[Aa.p2].x,Ca=V[Aa.p2].y,ua=u,Na=e,Ka=new Qd(V[Aa.p1].x/u,V[Aa.p1].y/e,Aa.n1.x/u,Aa.n1.y/e,V[Aa.p2].x/u,V[Aa.p2].y/
-e,Aa.n2.x/u,Aa.n2.y/e);if(2<=Ka.getSize()){Ka.getX(0);Ka.getY(0);Ka.getX(1);Ka.getY(1);Pa=Math.round(100*Pa/ua*100)/100;Ca=Math.round(100*Ca/Na*100)/100;ua=[];Na=[];for(var La=[],l=Ka.getSize(),Ia=0;Ia<l-1;Ia+=3)ua.push(new mxPoint(Ka.getX(Ia),Ka.getY(Ia))),Na.push(new mxPoint(Ka.getX(Ia+1),Ka.getY(Ia+1))),Ia<l-2?La.push(new mxPoint(Ka.getX(Ia+2),Ka.getY(Ia+2))):La.push(new mxPoint(Pa,Ca));var bb="";for(Ia=0;Ia<ua.length;Ia++)bb+='<curve x1="'+ua[Ia].x+'" y1="'+ua[Ia].y+'" x2="'+Na[Ia].x+'" y2="'+
-Na[Ia].y+'" x3="'+La[Ia].x+'" y3="'+La[Ia].y+'"/>';var Ea=bb}else Ea=void 0;ka.push(Ea)}else ma=V[Aa.p2].x,Ba=V[Aa.p2].y,ma=100*ma/u,Ba=100*Ba/e,ma=Math.round(100*ma)/100,Ba=Math.round(100*Ba)/100,ka.push('<line x="'+ma+'" y="'+Ba+'"/>');na=Aa.p2}ka.push("</path>");ka.push("<fillstroke/>");ka.push("</foreground></shape>");D.push({shapeStencil:"stencil("+Graph.compress(ka.join(""))+")",FillColor:p,LineColor:Z,LineWidth:aa})}LucidImporter.stencilsMap[w]={text:F.Text,w:u,h:e,x:F.BoundingBox.x,y:F.BoundingBox.y,
-stencils:D}}catch(Ra){console.log("Stencil parsing error:",Ra)}}function sc(w,F,D,u,e,P,r,p){w=new mxCell("",new mxGeometry(w,F,0,0),"strokeColor=none;fillColor=none;");w.vertex=!0;r.insert(w);P=[w];D=D.clone();p.insertEdge(D,!1);w.insertEdge(D,!0);P.push(D);u.push(e.addCell(D,null,null,null,null))}function fb(w,F,D,u,e,P,r,p,Z){w=new mxCell("",new mxGeometry(w,F,0,0),"strokeColor=none;fillColor=none;");w.vertex=!0;Z.insert(w);D=new mxCell("",new mxGeometry(D,u,0,0),"strokeColor=none;fillColor=none;");
-D.vertex=!0;Z.insert(D);p=[D];e=e.clone();w.insertEdge(e,!0);D.insertEdge(e,!1);p.push(e);P.push(r.addCell(e,null,null,null,null))}function Sa(w,F,D,u,e,P){u.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";u.style+=b(u.style,e,P,u);F=m(e);u.vertex=!0;w=new mxCell(F,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+mxConstants.STYLE_SHAPE+"=mxgraph.gcp2."+w+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;");
-w.style+=b(w.style,e,P,w,G);w.geometry.relative=!0;w.geometry.offset=new mxPoint(5,-12);w.vertex=!0;u.insert(w)}function Wa(w,F,D,u,e,P,r,p){e="transparent"!=w?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";P.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";P.style+=b(P.style,r,p,P);P.value=m(r);P.vertex=!0;w=new mxCell(null,new mxGeometry(.5,0,.7*u*F,.7*u*D),e+w+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;");
-w.geometry.relative=!0;w.geometry.offset=new mxPoint(-F*u*.35,10+(1-D)*u*.35);w.vertex=!0;w.style+=b(w.style,r,p,w,G);P.insert(w)}function Xc(w,F){return null!=w&&null!=F&&(F==mxConstants.STYLE_ALIGN+"Global"&&(F=mxConstants.STYLE_ALIGN),w.includes(";"+F+"=")||w.substring(0,F.length+1)==F+"=")?!0:!1}function Rd(w,F){function D(u){u=Math.round(parseInt("0x"+u)*F).toString(16);return 1==u.length?"0"+u:u}return"#"+D(w.substr(1,2))+D(w.substr(3,2))+D(w.substr(5,2))}function Ie(w,F,D){var u=h(w),e=u.Properties,
-P=e.BoundingBox,r=Math.round(.75*P.w),p=Math.round(.75*P.h),Z=Math.round(.75*P.x+wc),aa=Math.round(.75*P.y+xc);null==w.Class||"GCPInputDatabase"!==w.Class&&"GCPInputRecord"!==w.Class&&"GCPInputPayment"!==w.Class&&"GCPInputGateway"!==w.Class&&"GCPInputLocalCompute"!==w.Class&&"GCPInputBeacon"!==w.Class&&"GCPInputStorage"!==w.Class&&"GCPInputList"!==w.Class&&"GCPInputStream"!==w.Class&&"GCPInputMobileDevices"!==w.Class&&"GCPInputCircuitBoard"!==w.Class&&"GCPInputLive"!==w.Class&&"GCPInputUsers"!==w.Class&&
-"GCPInputLaptop"!==w.Class&&"GCPInputApplication"!==w.Class&&"GCPInputLightbulb"!==w.Class&&"GCPInputGame"!==w.Class&&"GCPInputDesktop"!==w.Class&&"GCPInputDesktopAndMobile"!==w.Class&&"GCPInputWebcam"!==w.Class&&"GCPInputSpeaker"!==w.Class&&"GCPInputRetail"!==w.Class&&"GCPInputReport"!==w.Class&&"GCPInputPhone"!==w.Class&&"GCPInputBlank"!==w.Class||(p+=20);v=new mxCell("",new mxGeometry(Z,aa,r,p),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;v.zOrder=e.ZOrder;var V=null!=w.Class?
-w.Class:null!=u?u.Class:null;switch(V){case "BraceNoteBlock":case "UI2BraceNoteBlock":var wa=!1;null!=e.BraceDirection&&"Right"==e.BraceDirection&&(wa=!0);var ka=null,na=null,ra=m(e),Aa=e.Rotation?mxUtils.getSizeForString(ra.replace(/\n/g,"<br>"),null,null,Math.abs(r-.125*p)):{width:0,height:0};wa?(ka=new mxCell("",new mxGeometry(r-.125*p,0,.125*p,p),"shape=curlyBracket;rounded=1;"),na=new mxCell("",new mxGeometry(Aa.height,-2*Aa.width,r-.125*p,p),"strokeColor=none;fillColor=none;")):(ka=new mxCell("",
-new mxGeometry(0,0,.125*p,p),"shape=curlyBracket;rounded=1;flipH=1;"),na=new mxCell("",new mxGeometry(.125*p-Aa.height,Aa.width,r-.125*p,p),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);ka.vertex=!0;v.insert(ka);ka.style+=b(ka.style,e,u,ka);na.vertex=!0;na.value=ra;v.insert(na);na.style+=b(na.style,e,u,na,G);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var ma=
-"MainText",Ba=null,Pa="HeaderFill_",Ca="BodyFill_",ua=25,Na=25,Ka=0;if(null!=e.Lanes)Ka=e.Lanes.length;else if(null!=e.PrimaryLane){var La=function(gb){if(gb)32>gb?gb=32:208<gb&&(gb=208);else return 0;return.75*gb};Ka=e.PrimaryLane.length;for(var l=p=r=0;l<Ka;l++)r+=e.PrimaryLane[l];for(l=0;l<e.SecondaryLane.length;l++)p+=e.SecondaryLane[l];ua=La(e.PrimaryPoolTitleHeight);Na=La(e.PrimaryLaneTitleHeight);r*=.75;p=.75*p+ua+Na;v.geometry.width=r;v.geometry.height=p;ma="poolPrimaryTitleKey";Pa="PrimaryLaneHeaderFill_";
-Ca="CellFill_0,";Ba=e.PrimaryLaneTextAreaIds;if(null==Ba)for(Ba=[],l=0;l<Ka;l++)Ba.push("Primary_"+l)}if(0==e.IsPrimaryLaneVertical){e.Rotation=-1.5707963267948966;var Ia=v.geometry.x,bb=v.geometry.y}var Ea=0!=e.Rotation,Ra=0<V.indexOf("Pool"),la=0==V.indexOf("BPMN"),Ma=null!=e[ma];v.style=(Ra?"swimlane;startSize="+ua+";":"fillColor=none;strokeColor=none;pointerEvents=0;fontStyle=0;")+"html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;"+(Ea?"horizontalStack=0;":
-"");v.style+=b(v.style,e,u,v);Ma&&(v.value=m(e[ma]),v.style+=(G?"overflow=block;blockSpacing=1;fontSize=13;"+lb:f(e[ma])+q(e[ma])+k(e[ma])+t(e[ma])+C(e[ma],v)+I(e[ma])+N(e[ma])+K(e[ma])+O(e[ma]))+S(e[ma])+H(e[ma]));for(var ya=0,za=[],Pb="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;fontStyle=0;startSize="+Na+";dropTarget=0;rounded=0;"+(Ea?"horizontal=0;":"")+(la?"swimlaneLine=0;fillColor=none;":""),fa=e.Rotation=0;fa<Ka;fa++){if(null==Ba){var xb=parseFloat(e.Lanes[fa].p);
-l=parseInt(e.Lanes[fa].tid)||fa;var Va="Lane_"+l}else xb=.75*e.PrimaryLane[fa]/r,l=fa,Va=Ba[fa];var rc=r*ya,vc=Ra?ua:0;za.push(new mxCell("",Ea?new mxGeometry(vc,rc,p-vc,r*xb):new mxGeometry(rc,vc,r*xb,p-vc),Pb));za[fa].vertex=!0;v.insert(za[fa]);za[fa].value=m(e[Va]);za[fa].style+=b(za[fa].style,e,u,za[fa],G)+(G?"fontSize=13;":f(e[Va])+q(e[Va])+t(e[Va])+C(e[Va],za[fa])+I(e[Va])+N(e[Va])+K(e[Va])+O(e[Va]))+S(e[Va])+H(e[Va])+M(e[Pa+l])+L(e[Ca+l]);ya+=xb}null!=Ia&&(v.geometry.x=Ia,v.geometry.y=bb);
-break;case "UMLMultidimensionalSwimlane":var Fb=0,Rb=0,Kb=null,$b=null;if(null!=e.Rows&&null!=e.Columns){Fb=e.Rows.length;Rb=e.Columns.length;var Xa=.75*e.TitleHeight||25,pb=.75*e.TitleWidth||25}else if(null!=e.PrimaryLane&&null!=e.SecondaryLane){Fb=e.SecondaryLane.length;Rb=e.PrimaryLane.length;pb=.75*e.SecondaryLaneTitleHeight||25;Xa=.75*e.PrimaryLaneTitleHeight||25;for(l=p=r=0;l<Fb;l++)p+=e.SecondaryLane[l];for(l=0;l<Rb;l++)r+=e.PrimaryLane[l];r=.75*r+pb;p=.75*p+Xa;v.geometry.width=r;v.geometry.height=
-p;Kb=e.SecondaryLaneTextAreaIds;$b=e.PrimaryLaneTextAreaIds}v.style="group;";var Nc=new mxCell("",new mxGeometry(0,Xa,r,p-Xa),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;horizontalStack=0;");Nc.vertex=!0;var Fc=new mxCell("",new mxGeometry(pb,0,r-pb,p),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;");Fc.vertex=!0;v.insert(Nc);
-v.insert(Fc);aa=0;var Gc="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;horizontal=0;fontStyle=0;startSize="+pb+";";for(fa=0;fa<Fb;fa++){if(null==Kb){var Sd=.75*parseInt(e.Rows[fa].height);l=parseInt(e.Rows[fa].id)||fa;var Sb="Row_"+l}else Sd=.75*e.SecondaryLane[fa],Sb=Kb[fa];var Hc=new mxCell("",new mxGeometry(0,aa,r,Sd),Gc);aa+=Sd;Hc.vertex=!0;Nc.insert(Hc);Hc.value=m(e[Sb]);Hc.style+=b(Hc.style,e,u,Hc,G)+(G?"fontSize=13;":f(e[Sb])+q(e[Sb])+t(e[Sb])+C(e[Sb],
-Hc)+I(e[Sb])+N(e[Sb])+K(e[Sb])+O(e[Sb]))+S(e[Sb])+H(e[Sb])}var Ef="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;fontStyle=0;startSize="+Xa+";";for(fa=Z=0;fa<Rb;fa++){if(null==$b){var Yc=.75*parseInt(e.Columns[fa].width);l=parseInt(e.Columns[fa].id)||fa;var Tb="Column_"+l}else Yc=.75*e.PrimaryLane[fa],Tb=$b[fa];var Ic=new mxCell("",new mxGeometry(Z,0,Yc,p),Ef);Z+=Yc;Ic.vertex=!0;Fc.insert(Ic);Ic.value=m(e[Tb]);Ic.style+=b(Ic.style,e,u,Ic,G)+(G?"fontSize=13;":
-f(e[Tb])+q(e[Tb])+t(e[Tb])+C(e[Tb],Ic)+I(e[Tb])+N(e[Tb])+K(e[Tb])+O(e[Tb]))+S(e[Tb])+H(e[Tb])}break;case "UMLStateBlock":if(0==e.Composite)v.style="rounded=1;arcSize=20",v.value=m(e.State,!0),v.style+=b(v.style,e,u,v,G);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=m(e.State,!0);v.style+=b(v.style,e,u,v,G);v.style+=ba(e,u).replace("fillColor","swimlaneFillColor");var yb=
-new mxCell("",new mxGeometry(0,25,r,p-25),"rounded=1;arcSize=20;strokeColor=none;fillColor=none");yb.value=m(e.Action,!0);yb.style+=b(yb.style,e,u,yb,G);yb.vertex=!0;v.insert(yb)}break;case "GSDFDProcessBlock":var he=Math.round(.75*e.nameHeight);v.style="shape=swimlane;html=1;rounded=1;arcSize=10;collapsible=0;fontStyle=0;startSize="+he;v.value=m(e.Number,!0);v.style+=b(v.style,e,u,v,G);v.style+=ba(e,u).replace("fillColor","swimlaneFillColor");yb=new mxCell("",new mxGeometry(0,he,r,p-he),"rounded=1;arcSize=10;strokeColor=none;fillColor=none");
-yb.value=m(e.Text,!0);yb.style+=b(yb.style,e,u,yb,G);yb.vertex=!0;v.insert(yb);break;case "AndroidDevice":if(null!=e.AndroidDeviceName){var mb=ca(e,u,v);v.style="fillColor=#000000;strokeColor=#000000;";var yc=null,Zc=null,$c=null;if("Tablet"==e.AndroidDeviceName||"Mini Tablet"==e.AndroidDeviceName||"custom"==e.AndroidDeviceName&&"Tablet"==e.CustomDeviceType)v.style+="shape=mxgraph.android.tab2;",yc=new mxCell("",new mxGeometry(.112,.077,.77*r,.85*p),mb),e.KeyboardShown&&(Zc=new mxCell("",new mxGeometry(.112,
-.727,.77*r,.2*p),"shape=mxgraph.android.keyboard;"+mb)),e.FullScreen||($c=new mxCell("",new mxGeometry(.112,.077,.77*r,.03*p),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*p+";"+mb));else if("Large Phone"==e.AndroidDeviceName||"Phone"==e.AndroidDeviceName||"custom"==e.AndroidDeviceName&&"Phone"==e.CustomDeviceType)v.style+="shape=mxgraph.android.phone2;",yc=new mxCell("",new mxGeometry(.04,.092,.92*r,.816*p),mb),e.KeyboardShown&&(Zc=new mxCell("",
-new mxGeometry(.04,.708,.92*r,.2*p),"shape=mxgraph.android.keyboard;"+mb)),e.FullScreen||($c=new mxCell("",new mxGeometry(.04,.092,.92*r,.03*p),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*p+";"+mb));yc.vertex=!0;yc.geometry.relative=!0;v.insert(yc);"Dark"==e.Scheme?yc.style+="fillColor=#111111;":"Light"==e.Scheme&&(yc.style+="fillColor=#ffffff;");null!=Zc&&(Zc.vertex=!0,Zc.geometry.relative=!0,v.insert(Zc));null!=$c&&($c.vertex=!0,$c.geometry.relative=
-!0,v.insert($c))}v.style+=b(v.style,e,u,v);break;case "AndroidAlertDialog":var ac=new mxCell("",new mxGeometry(0,0,r,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ac.vertex=!0;v.insert(ac);var Qa=new mxCell("",new mxGeometry(0,25,r,10),"shape=line;strokeColor=#33B5E5;");Qa.vertex=!0;v.insert(Qa);var qd=new mxCell("",new mxGeometry(0,30,r,p-30),"strokeColor=none;fillColor=none;verticalAlign=top;");qd.vertex=!0;v.insert(qd);var ib=new mxCell("",new mxGeometry(0,p-25,.5*r,25),"fillColor=none;");
-ib.vertex=!0;v.insert(ib);var jb=new mxCell("",new mxGeometry(.5*r,p-25,.5*r,25),"fillColor=none;");jb.vertex=!0;v.insert(jb);ac.value=m(e.DialogTitle);ac.style+=a(e.DialogTitle,G);qd.value=m(e.DialogText);qd.style+=a(e.DialogText,G);ib.value=m(e.Button_0);ib.style+=a(e.Button_0,G);jb.value=m(e.Button_1);jb.style+=a(e.Button_1,G);"Dark"==e.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",ib.style+="strokeColor=#353535;",jb.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",
-ib.style+="strokeColor=#E2E2E2;",jb.style+="strokeColor=#E2E2E2;");v.style+=b(v.style,e,u,v);break;case "AndroidDateDialog":case "AndroidTimeDialog":ac=new mxCell("",new mxGeometry(0,0,r,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ac.vertex=!0;v.insert(ac);ac.value=m(e.DialogTitle);ac.style+=a(e.DialogTitle,G);Qa=new mxCell("",new mxGeometry(0,25,r,10),"shape=line;strokeColor=#33B5E5;");Qa.vertex=!0;v.insert(Qa);ib=new mxCell("",new mxGeometry(0,p-25,.5*r,25),"fillColor=none;");ib.vertex=
-!0;v.insert(ib);ib.value=m(e.Button_0);ib.style+=a(e.Button_0,G);jb=new mxCell("",new mxGeometry(.5*r,p-25,.5*r,25),"fillColor=none;");jb.vertex=!0;v.insert(jb);jb.value=m(e.Button_1);jb.style+=a(e.Button_1,G);var ad=new mxCell("",new mxGeometry(.5*r-4,41,8,4),"shape=triangle;direction=north;");ad.vertex=!0;v.insert(ad);var bd=new mxCell("",new mxGeometry(.25*r-4,41,8,4),"shape=triangle;direction=north;");bd.vertex=!0;v.insert(bd);var cd=new mxCell("",new mxGeometry(.75*r-4,41,8,4),"shape=triangle;direction=north;");
-cd.vertex=!0;v.insert(cd);var rd=new mxCell("",new mxGeometry(.375*r,50,.2*r,15),"strokeColor=none;fillColor=none;");rd.vertex=!0;v.insert(rd);rd.value=m(e.Label_1);rd.style+=a(e.Label_1,G);var sd=new mxCell("",new mxGeometry(.125*r,50,.2*r,15),"strokeColor=none;fillColor=none;");sd.vertex=!0;v.insert(sd);sd.value=m(e.Label_0);sd.style+=a(e.Label_0,G);var dd=null;"AndroidDateDialog"==w.Class&&(dd=new mxCell("",new mxGeometry(.625*r,50,.2*r,15),"strokeColor=none;fillColor=none;"),dd.vertex=!0,v.insert(dd),
-dd.value=m(e.Label_2),dd.style+=a(e.Label_2,G));var zb=new mxCell("",new mxGeometry(.43*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");zb.vertex=!0;v.insert(zb);var Ab=new mxCell("",new mxGeometry(.18*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Ab.vertex=!0;v.insert(Ab);var Le=new mxCell("",new mxGeometry(.68*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Le.vertex=!0;v.insert(Le);var td=new mxCell("",new mxGeometry(.375*r,65,.2*r,15),"strokeColor=none;fillColor=none;");td.vertex=!0;v.insert(td);
-td.value=m(e.Label_4);td.style+=a(e.Label_4,G);var ed=null;"AndroidTimeDialog"==w.Class&&(ed=new mxCell("",new mxGeometry(.3*r,65,.1*r,15),"strokeColor=none;fillColor=none;"),ed.vertex=!0,v.insert(ed),ed.value=m(e.Label_Colon),ed.style+=a(e.Label_Colon,G));var ud=new mxCell("",new mxGeometry(.125*r,65,.2*r,15),"strokeColor=none;fillColor=none;");ud.vertex=!0;v.insert(ud);ud.value=m(e.Label_3);ud.style+=a(e.Label_3,G);var vd=new mxCell("",new mxGeometry(.625*r,65,.2*r,15),"strokeColor=none;fillColor=none;");
-vd.vertex=!0;v.insert(vd);vd.value=m(e.Label_5);vd.style+=a(e.Label_5,G);var Me=new mxCell("",new mxGeometry(.43*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Me.vertex=!0;v.insert(Me);var Ne=new mxCell("",new mxGeometry(.18*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Ne.vertex=!0;v.insert(Ne);var Oe=new mxCell("",new mxGeometry(.68*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Oe.vertex=!0;v.insert(Oe);var wd=new mxCell("",new mxGeometry(.375*r,80,.2*r,15),"strokeColor=none;fillColor=none;");
-wd.vertex=!0;v.insert(wd);wd.value=m(e.Label_7);wd.style+=a(e.Label_7,G);var xd=new mxCell("",new mxGeometry(.125*r,80,.2*r,15),"strokeColor=none;fillColor=none;");xd.vertex=!0;v.insert(xd);xd.value=m(e.Label_6);xd.style+=a(e.Label_6,G);var yd=new mxCell("",new mxGeometry(.625*r,80,.2*r,15),"strokeColor=none;fillColor=none;");yd.vertex=!0;v.insert(yd);yd.value=m(e.Label_8);yd.style+=a(e.Label_8,G);var fd=new mxCell("",new mxGeometry(.5*r-4,99,8,4),"shape=triangle;direction=south;");fd.vertex=!0;v.insert(fd);
-var gd=new mxCell("",new mxGeometry(.25*r-4,99,8,4),"shape=triangle;direction=south;");gd.vertex=!0;v.insert(gd);var hd=new mxCell("",new mxGeometry(.75*r-4,99,8,4),"shape=triangle;direction=south;");hd.vertex=!0;v.insert(hd);"Dark"==e.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",ib.style+="strokeColor=#353535;",jb.style+="strokeColor=#353535;",ad.style+="strokeColor=none;fillColor=#7E7E7E;",bd.style+="strokeColor=none;fillColor=#7E7E7E;",cd.style+="strokeColor=none;fillColor=#7E7E7E;",
-fd.style+="strokeColor=none;fillColor=#7E7E7E;",gd.style+="strokeColor=none;fillColor=#7E7E7E;",hd.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",ib.style+="strokeColor=#E2E2E2;",jb.style+="strokeColor=#E2E2E2;",ad.style+="strokeColor=none;fillColor=#939393;",bd.style+="strokeColor=none;fillColor=#939393;",cd.style+="strokeColor=none;fillColor=#939393;",fd.style+="strokeColor=none;fillColor=#939393;",gd.style+="strokeColor=none;fillColor=#939393;",
-hd.style+="strokeColor=none;fillColor=#939393;");v.style+=b(v.style,e,u,v);break;case "AndroidListItems":var Bb=p,zc=0;if(e.ShowHeader){zc=8;var Oc=new mxCell("",new mxGeometry(0,0,r,zc),"strokeColor=none;fillColor=none;");Oc.vertex=!0;v.insert(Oc);Oc.value=m(e.Header);Oc.style+=a(e.Header,G);Bb-=zc;var Pe=new mxCell("",new mxGeometry(0,zc-2,r,4),"shape=line;strokeColor=#999999;");Pe.vertex=!0;v.insert(Pe)}var bc=parseInt(e.Items);0<bc&&(Bb/=bc);var X=[];Qa=[];for(l=0;l<bc;l++)X[l]=new mxCell("",
-new mxGeometry(0,zc+l*Bb,r,Bb),"strokeColor=none;fillColor=none;"),X[l].vertex=!0,v.insert(X[l]),X[l].value=m(e["Item_"+l]),X[l].style+=a(e["Item_"+l],G),0<l&&(Qa[l]=new mxCell("",new mxGeometry(0,zc+l*Bb-2,r,4),"shape=line;"),Qa[l].vertex=!0,v.insert(Qa[l]),Qa[l].style="Dark"==e.Scheme?Qa[l].style+"strokeColor=#ffffff;":Qa[l].style+"strokeColor=#D9D9D9;");v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";v.style+=b(v.style,e,u,v);
-break;case "AndroidTabs":var cc=parseInt(e.Tabs),Gb=r;0<cc&&(Gb/=cc);var Ta=[];Qa=[];for(l=0;l<cc;l++)Ta[l]=new mxCell("",new mxGeometry(l*Gb,0,Gb,p),"strokeColor=none;fillColor=none;"),Ta[l].vertex=!0,v.insert(Ta[l]),Ta[l].value=m(e["Tab_"+l]),Ta[l].style+=a(e["Tab_"+l],G),0<l&&(Qa[l]=new mxCell("",new mxGeometry(l*Gb-2,.2*p,4,.6*p),"shape=line;direction=north;"),Qa[l].vertex=!0,v.insert(Qa[l]),Qa[l].style="Dark"==e.Scheme?Qa[l].style+"strokeColor=#484848;":Qa[l].style+"strokeColor=#CCCCCC;");var Qe=
-new mxCell("",new mxGeometry(e.Selected*Gb+2,p-3,Gb-4,3),"strokeColor=none;fillColor=#33B5E5;");Qe.vertex=!0;v.insert(Qe);v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";v.style+=b(v.style,e,u,v);break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(Z),Math.round(aa+.25*p),Math.round(r),Math.round(.5*p)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;var zd=new mxCell("",new mxGeometry(0,
-0,r*e.BarPosition,Math.round(.5*p)),"strokeColor=none;fillColor=#33B5E5;");zd.vertex=!0;v.insert(zd);v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#474747;":v.style+"strokeColor=none;fillColor=#BBBBBB;";v.style+=b(v.style,e,u,v);break;case "AndroidImageBlock":v.style="Dark"==e.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+=b(v.style,e,
-u,v);break;case "AndroidTextBlock":v.style="Dark"==e.Scheme?e.ShowBorder?v.style+"fillColor=#111111;strokeColor=#ffffff;":v.style+"fillColor=#111111;strokeColor=none;":e.ShowBorder?v.style+"fillColor=#ffffff;strokeColor=#000000;":v.style+"fillColor=#ffffff;strokeColor=none;";v.value=m(e.Label);v.style+=a(e.Label,G);v.style+=b(v.style,e,u,v,G);break;case "AndroidActionBar":v.style+="strokeColor=none;";switch(e.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(e.HighlightShow){var Ac=null;Ac=e.HighlightTop?new mxCell("",new mxGeometry(0,0,r,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,p-2,r,2),"strokeColor=none;");Ac.vertex=!0;v.insert(Ac);switch(e.HighlightColor){case "Blue":Ac.style+="fillColor=#33B5E5;";break;case "Dark Gray":Ac.style+="fillColor=#B0B0B0;";break;case "White":Ac.style+="fillColor=#ffffff;"}}if(e.VlignShow){var id=new mxCell("",
-new mxGeometry(20,5,2,p-10),"shape=line;direction=north;");id.vertex=!0;v.insert(id);switch(e.VlignColor){case "Blue":id.style+="strokeColor=#244C5A;";break;case "White":id.style+="strokeColor=#ffffff;"}}v.style+=b(v.style,e,u,v);break;case "AndroidButton":v.value=m(e.Label);v.style+=a(e.Label,G)+"shape=partialRectangle;left=0;right=0;";v.style="Dark"==e.Scheme?v.style+"fillColor=#474747;strokeColor=#C6C5C6;bottom=0;":v.style+"fillColor=#DFE0DF;strokeColor=#C6C5C6;top=0;";v.style+=b(v.style,e,u,v);
-break;case "AndroidTextBox":v.value=m(e.Label);v.style+=a(e.Label,G);var Ad=new mxCell("",new mxGeometry(2,p-6,r-4,4),"shape=partialRectangle;top=0;fillColor=none;");Ad.vertex=!0;v.insert(Ad);v.style="Dark"==e.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";Ad.style=e.TextFocused?Ad.style+"strokeColor=#33B5E5;":Ad.style+"strokeColor=#A9A9A9;";v.style+=b(v.style,e,u,v);break;case "AndroidRadioButton":var Pc=null;e.Checked&&(Pc=new mxCell("",new mxGeometry(.15*
-r,.15*p,.7*r,.7*p),"ellipse;fillColor=#33B5E5;strokeWidth=1;"),Pc.vertex=!0,v.insert(Pc));"Dark"==e.Scheme?(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;strokeColor=#272727;",e.Checked?(Pc.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;fillColor=#ffffff;strokeColor=#5C5C5C;",e.Checked&&(Pc.style+="strokeColor=#999999;"));v.style+=b(v.style,e,u,v);break;case "AndroidCheckBox":var ie=
-null;e.Checked&&(ie=new mxCell("",new mxGeometry(.25*r,.05*-p,r,.8*p),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),ie.vertex=!0,v.insert(ie));v.style="Dark"==e.Scheme?v.style+"strokeWidth=1;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=1;strokeColor=#5C5C5C;fillColor=#ffffff;";v.style+=b(v.style,e,u,v);break;case "AndroidToggle":v.style="Dark"==e.Scheme?e.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#666666;":v.style+"shape=mxgraph.android.switch_off;fillColor=#666666;":
-e.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";v.style+=b(v.style,e,u,v);break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+e.BarPosition+";fillColor=#33b5e5;";v.style+=b(v.style,e,u,v);break;case "iOSSegmentedControl":cc=parseInt(e.Tabs);Gb=r;v.style+="strokeColor=none;fillColor=none;";0<cc&&(Gb/=cc);Ta=[];Qa=[];for(l=0;l<cc;l++)Ta[l]=new mxCell("",new mxGeometry(l*Gb,0,Gb,p),
-"strokeColor="+e.FillColor+";"),Ta[l].vertex=!0,v.insert(Ta[l]),Ta[l].value=m(e["Tab_"+l]),Ta[l].style+=a(e["Tab_"+l],G),Ta[l].style=e.Selected==l?Ta[l].style+ba(e,u):Ta[l].style+"fillColor=none;";v.style+=b(v.style,e,u,v);break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+e.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*e.BarPosition+";";v.style+=b(v.style,e,u,v);break;case "iOSProgressBar":v=new mxCell("",new mxGeometry(Math.round(Z),Math.round(aa+.25*p),Math.round(r),
-Math.round(.5*p)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");v.vertex=!0;zd=new mxCell("",new mxGeometry(0,0,r*e.BarPosition,Math.round(.5*p)),"strokeColor=none;"+ba(e,u));zd.vertex=!0;v.insert(zd);v.style+=b(v.style,e,u,v);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;strokeColor=#D6D6D6;";v.style+=b(v.style,e,u,v);break;case "iOSStatusBar":v.style+="shape=mxgraph.ios7ui.appBar;strokeColor=#000000;";var Da=new mxCell(m(e.Text),
-new mxGeometry(.35*r,0,.3*r,p),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.style+=a(e.Text,G);var Cb=new mxCell(m(e.Carrier),new mxGeometry(.09*r,0,.2*r,p),"strokeColor=none;fillColor=none;");Cb.vertex=!0;v.insert(Cb);Cb.style+=a(e.Carrier,G);v.style+=b(v.style,e,u,v);break;case "iOSSearchBar":v.value=m(e.Search);v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v,G)+a(e.Search,G);var Ja=new mxCell("",new mxGeometry(.3*r,.3*p,.4*p,.4*p),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");
-Ja.vertex=!0;v.insert(Ja);break;case "iOSNavBar":v.value=m(e.Title);v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+a(e.Title,G);v.style+=b(v.style,e,u,v,G);Da=new mxCell(m(e.LeftText),new mxGeometry(.03*r,0,.3*r,p),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.style+=a(e.LeftText,G);Cb=new mxCell(m(e.RightText),new mxGeometry(.65*r,0,.3*r,p),"strokeColor=none;fillColor=none;");Cb.vertex=!0;v.insert(Cb);Cb.style+=a(e.RightText,G);Ja=new mxCell("",new mxGeometry(.02*
-r,.2*p,.3*p,.5*p),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");Ja.vertex=!0;v.insert(Ja);break;case "iOSTabs":cc=parseInt(e.Tabs);Gb=r;v.style+="shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;";v.style+=b(v.style,e,u,v);0<cc&&(Gb/=cc);Ta=[];Qa=[];for(l=0;l<cc;l++)Ta[l]=new mxCell("",new mxGeometry(l*Gb,0,Gb,p),"strokeColor=none;"),Ta[l].vertex=!0,v.insert(Ta[l]),Ta[l].value=m(e["Tab_"+l]),Ta[l].style+=G?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+
-lb:f(e["Tab_"+l])+k(e["Tab_"+l])+q(e["Tab_"+l])+t(e["Tab_"+l])+C(e["Tab_"+l])+I(e["Tab_"+l])+N(e["Tab_"+l])+K(e["Tab_"+l])+O(e["Tab_"+l])+S(e["Tab_"+l]),Ta[l].style+="verticalAlign=bottom;",Ta[l].style=e.Selected==l?Ta[l].style+"fillColor=#BBBBBB;":Ta[l].style+"fillColor=none;";break;case "iOSDatePicker":var dc=new mxCell("",new mxGeometry(0,0,.5*r,.2*p),"strokeColor=none;fillColor=none;");dc.vertex=!0;v.insert(dc);dc.value=m(e.Option11);dc.style+=a(e.Option11,G);var ec=new mxCell("",new mxGeometry(.5*
-r,0,.15*r,.2*p),"strokeColor=none;fillColor=none;");ec.vertex=!0;v.insert(ec);ec.value=m(e.Option21);ec.style+=a(e.Option21,G);var fc=new mxCell("",new mxGeometry(.65*r,0,.15*r,.2*p),"strokeColor=none;fillColor=none;");fc.vertex=!0;v.insert(fc);fc.value=m(e.Option31);fc.style+=a(e.Option31,G);var gc=new mxCell("",new mxGeometry(0,.2*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");gc.vertex=!0;v.insert(gc);gc.value=m(e.Option12);gc.style+=a(e.Option12,G);var hc=new mxCell("",new mxGeometry(.5*r,.2*
-p,.15*r,.2*p),"strokeColor=none;fillColor=none;");hc.vertex=!0;v.insert(hc);hc.value=m(e.Option22);hc.style+=a(e.Option22,G);var ic=new mxCell("",new mxGeometry(.65*r,.2*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");ic.vertex=!0;v.insert(ic);ic.value=m(e.Option32);ic.style+=a(e.Option32,G);var qb=new mxCell("",new mxGeometry(0,.4*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.value=m(e.Option13);qb.style+=a(e.Option13,G);var rb=new mxCell("",new mxGeometry(.5*r,
-.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");rb.vertex=!0;v.insert(rb);rb.value=m(e.Option23);rb.style+=a(e.Option23,G);var jc=new mxCell("",new mxGeometry(.65*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");jc.vertex=!0;v.insert(jc);jc.value=m(e.Option33);jc.style+=a(e.Option33,G);var sb=new mxCell("",new mxGeometry(.8*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=m(e.Option43);sb.style+=a(e.Option43,G);var tb=new mxCell("",new mxGeometry(0,
-.6*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=m(e.Option14);tb.style+=a(e.Option14,G);var kc=new mxCell("",new mxGeometry(.5*r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");kc.vertex=!0;v.insert(kc);kc.value=m(e.Option24);kc.style+=a(e.Option24,G);var lc=new mxCell("",new mxGeometry(.65*r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");lc.vertex=!0;v.insert(lc);lc.value=m(e.Option34);lc.style+=a(e.Option34,G);var mc=new mxCell("",new mxGeometry(.8*
-r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");mc.vertex=!0;v.insert(mc);mc.value=m(e.Option44);mc.style+=a(e.Option44,G);var ub=new mxCell("",new mxGeometry(0,.8*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option15);ub.style+=a(e.Option15,G);var nc=new mxCell("",new mxGeometry(.5*r,.8*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");nc.vertex=!0;v.insert(nc);nc.value=m(e.Option25);nc.style+=a(e.Option25,G);var oc=new mxCell("",new mxGeometry(.65*
-r,.8*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");oc.vertex=!0;v.insert(oc);oc.value=m(e.Option35);oc.style+=a(e.Option35,G);zb=new mxCell("",new mxGeometry(0,.4*p-2,r,4),"shape=line;strokeColor=#888888;");zb.vertex=!0;v.insert(zb);Ab=new mxCell("",new mxGeometry(0,.6*p-2,r,4),"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v);break;case "iOSTimePicker":dc=new mxCell("",new mxGeometry(0,0,.25*r,.2*p),"strokeColor=none;fillColor=none;");
-dc.vertex=!0;v.insert(dc);dc.value=m(e.Option11);dc.style+=a(e.Option11,G);ec=new mxCell("",new mxGeometry(.25*r,0,.3*r,.2*p),"strokeColor=none;fillColor=none;");ec.vertex=!0;v.insert(ec);ec.value=m(e.Option21);ec.style+=a(e.Option21,G);gc=new mxCell("",new mxGeometry(0,.2*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");gc.vertex=!0;v.insert(gc);gc.value=m(e.Option12);gc.style+=a(e.Option12,G);hc=new mxCell("",new mxGeometry(.25*r,.2*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");hc.vertex=!0;
-v.insert(hc);hc.value=m(e.Option22);hc.style+=a(e.Option22,G);qb=new mxCell("",new mxGeometry(0,.4*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.value=m(e.Option13);qb.style+=a(e.Option13,G);rb=new mxCell("",new mxGeometry(.25*r,.4*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");rb.vertex=!0;v.insert(rb);rb.value=m(e.Option23);rb.style+=a(e.Option23,G);sb=new mxCell("",new mxGeometry(.7*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);
-sb.value=m(e.Option33);sb.style+=a(e.Option33,G);tb=new mxCell("",new mxGeometry(0,.6*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=m(e.Option14);tb.style+=a(e.Option14,G);kc=new mxCell("",new mxGeometry(.25*r,.6*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");kc.vertex=!0;v.insert(kc);kc.value=m(e.Option24);kc.style+=a(e.Option24,G);mc=new mxCell("",new mxGeometry(.7*r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");mc.vertex=!0;v.insert(mc);mc.value=
-m(e.Option34);mc.style+=a(e.Option34,G);ub=new mxCell("",new mxGeometry(0,.8*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option15);ub.style+=a(e.Option15,G);nc=new mxCell("",new mxGeometry(.25*r,.8*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");nc.vertex=!0;v.insert(nc);nc.value=m(e.Option25);nc.style+=a(e.Option25,G);zb=new mxCell("",new mxGeometry(0,.4*p-2,r,4),"shape=line;strokeColor=#888888;");zb.vertex=!0;v.insert(zb);Ab=new mxCell("",new mxGeometry(0,
-.6*p-2,r,4),"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v);break;case "iOSCountdownPicker":fc=new mxCell("",new mxGeometry(.45*r,0,.2*r,.2*p),"strokeColor=none;fillColor=none;");fc.vertex=!0;v.insert(fc);fc.value=m(e.Option31);fc.style+=a(e.Option31,G);ic=new mxCell("",new mxGeometry(.45*r,.2*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");ic.vertex=!0;v.insert(ic);ic.value=m(e.Option32);ic.style+=a(e.Option32,G);qb=new mxCell("",
-new mxGeometry(0,.4*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.value=m(e.Option13);qb.style+=a(e.Option13,G);rb=new mxCell("",new mxGeometry(.2*r,.4*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");rb.vertex=!0;v.insert(rb);rb.value=m(e.Option23);rb.style+=a(e.Option23,G);jc=new mxCell("",new mxGeometry(.45*r,.4*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");jc.vertex=!0;v.insert(jc);jc.value=m(e.Option33);jc.style+=a(e.Option33,G);sb=new mxCell("",new mxGeometry(.6*
-r,.4*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=m(e.Option43);sb.style+=a(e.Option43,G);tb=new mxCell("",new mxGeometry(0,.6*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=m(e.Option14);tb.style+=a(e.Option14,G);lc=new mxCell("",new mxGeometry(.45*r,.6*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");lc.vertex=!0;v.insert(lc);lc.value=m(e.Option34);lc.style+=a(e.Option34,G);ub=new mxCell("",new mxGeometry(0,.8*p,.25*r,
-.2*p),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option15);ub.style+=a(e.Option15,G);oc=new mxCell("",new mxGeometry(.45*r,.8*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");oc.vertex=!0;v.insert(oc);oc.value=m(e.Option35);oc.style+=a(e.Option35,G);zb=new mxCell("",new mxGeometry(0,.4*p-2,r,4),"shape=line;strokeColor=#888888;");zb.vertex=!0;v.insert(zb);Ab=new mxCell("",new mxGeometry(0,.6*p-2,r,4),"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);v.style+=
-"strokeColor=none;";v.style+=b(v.style,e,u,v);break;case "iOSBasicCell":v.value=m(e.text);v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+.75*e.SeparatorInset+";";v.style+=(G?"fontSize=13;":f(e.text)+q(e.text)+t(e.text))+H(e.text);v.style+=b(v.style,e,u,v,G);switch(e.AccessoryIndicatorType){case "Disclosure":Ja=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ja.vertex=
-!0;v.insert(Ja);break;case "DetailDisclosure":Ja=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ja.vertex=!0;v.insert(Ja);var $a=new mxCell("",new mxGeometry(.79*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");$a.vertex=!0;v.insert($a);break;case "DetailIndicator":$a=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");$a.vertex=
-!0;v.insert($a);break;case "CheckMark":Ja=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Ja.vertex=!0,v.insert(Ja)}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*e.SeparatorInset+";";v.value=m(e.subtext);v.style+=G?"fontSize=13;":f(e.subtext)+q(e.subtext)+t(e.subtext);v.style+=b(v.style,e,u,v,G);
-var cb=new mxCell("",new mxGeometry(0,.4*p,r,.6*p),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+.75*e.SeparatorInset+";");cb.vertex=!0;v.insert(cb);cb.value=m(e.text);cb.style+=G?"html=1;fontSize=13;"+lb:f(e.text)+k(e.text)+q(e.text)+t(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":Ja=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ja.vertex=!0;v.insert(Ja);break;case "DetailDisclosure":Ja=
-new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ja.vertex=!0;v.insert(Ja);$a=new mxCell("",new mxGeometry(.79*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");$a.vertex=!0;v.insert($a);break;case "DetailIndicator":$a=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");$a.vertex=!0;v.insert($a);break;case "CheckMark":Ja=new mxCell("",
-new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Ja.vertex=!0,v.insert(Ja)}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*e.SeparatorInset+";";v.value=m(e.subtext);v.style+=G?"fontSize=13;":f(e.subtext)+q(e.subtext)+t(e.subtext);v.style+=b(v.style,e,u,v,G);cb=null;switch(e.AccessoryIndicatorType){case "Disclosure":Ja=
-new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ja.vertex=!0;v.insert(Ja);cb=new mxCell("",new mxGeometry(.55*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":Ja=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ja.vertex=!0;v.insert(Ja);$a=new mxCell("",new mxGeometry(.79*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
-$a.vertex=!0;v.insert($a);cb=new mxCell("",new mxGeometry(.45*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailIndicator":$a=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");$a.vertex=!0;v.insert($a);cb=new mxCell("",new mxGeometry(.52*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "CheckMark":Ja=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;");
-Ja.vertex=!0;v.insert(Ja);cb=new mxCell("",new mxGeometry(.55*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:cb=new mxCell("",new mxGeometry(.65*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;")}cb.vertex=!0;v.insert(cb);cb.value=m(e.text);cb.style+=G?"html=1;fontSize=13;"+lb:f(e.text)+k(e.text)+q(e.text)+t(e.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";v.style+=
-b(v.style,e,u,v);var Ub=new mxCell("",new mxGeometry(0,0,.25*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");Ub.vertex=!0;v.insert(Ub);Ub.value=m(e.subtext);Ub.style+=G?"html=1;fontSize=13;"+lb:f(e.subtext)+k(e.subtext)+q(e.subtext)+t(e.subtext);cb=new mxCell("",new mxGeometry(.25*r,0,.5*r,p),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");cb.vertex=!0;v.insert(cb);cb.value=m(e.text);cb.style+=G?"html=1;fontSize=13;"+
-lb:f(e.text)+k(e.text)+q(e.text)+t(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":Ja=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ja.vertex=!0;v.insert(Ja);break;case "DetailDisclosure":Ja=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ja.vertex=!0;v.insert(Ja);$a=new mxCell("",new mxGeometry(.79*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
-$a.vertex=!0;v.insert($a);break;case "DetailIndicator":$a=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");$a.vertex=!0;v.insert($a);break;case "CheckMark":Ja=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Ja.vertex=!0,v.insert(Ja)}break;case "iOSTableGroupedSectionBreak":v.style+="shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";
-Da=new mxCell("",new mxGeometry(0,0,r,.4*p),"fillColor=none;strokeColor=none;spacing=10;align=left;");Da.vertex=!0;v.insert(Da);Da.value=m(e.text);Da.style+=G?"html=1;fontSize=13;"+lb:f(e.text)+k(e.text)+q(e.text)+t(e.text);Cb=new mxCell("",new mxGeometry(0,.6*p,r,.4*p),"fillColor=none;strokeColor=none;spacing=10;align=left;");Cb.vertex=!0;v.insert(Cb);Cb.value=m(e["bottom-text"]);Cb.style+=G?"html=1;fontSize=13;"+lb:f(e["bottom-text"])+k(e["bottom-text"])+q(e["bottom-text"])+t(e["bottom-text"]);
-break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";v.value=m(e.text);v.style+=G?"fontSize=13;":f(e.text)+q(e.text)+t(e.text);v.style+=b(v.style,e,u,v,G);break;case "SMPage":if(e.Group){v.style+="strokeColor=none;fillColor=none;";var x=new mxCell("",new mxGeometry(0,0,.9*r,.9*p),"rounded=1;arcSize=3;part=1;");x.vertex=!0;v.insert(x);x.style+=J(e,u)+ba(e,u)+Q(e,u,x)+W(e)+sa(e);var E=new mxCell("",new mxGeometry(.1*r,.1*p,.9*r,.9*
-p),"rounded=1;arcSize=3;part=1;");E.vertex=!0;v.insert(E);E.value=m(e.Text);E.style+=J(e,u)+ba(e,u)+Q(e,u,E)+W(e)+sa(e)+a(e,G);e.Future&&(x.style+="dashed=1;fixDash=1;",E.style+="dashed=1;fixDash=1;")}else v.style+="rounded=1;arcSize=3;",e.Future&&(v.style+="dashed=1;fixDash=1;"),v.value=m(e.Text),v.style+=J(e,u)+ba(e,u)+Q(e,u,v)+W(e)+sa(e)+a(e,G);v.style+=b(v.style,e,u,v,G);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":x=
+c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if(null!=D.v&&"il"==D.n)return"spacingLeft="+z(.75*D.v)+";";F++}return""}function Q(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("ir"==D.n&&null!=D.v)return"spacingRight="+z(.75*D.v)+";";F++}return""}function K(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("mt"==D.n&&null!=D.v)return"spacingTop="+z(.75*D.v)+";";F++}return""}function L(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("mb"==D.n&&null!=D.v)return"spacingBottom="+
+z(.75*D.v)+";";F++}return""}function S(w){return"number"===typeof w.InsetMargin?"spacing="+Math.max(0,z(.75*w.InsetMargin))+";":""}function R(w){return null!=w.Text_VAlign&&"string"===typeof w.Text_VAlign?"verticalAlign="+w.Text_VAlign+";":null!=w.Title_VAlign&&"string"===typeof w.Title_VAlign?"verticalAlign="+w.Title_VAlign+";":Zb(mxConstants.STYLE_VERTICAL_ALIGN,w.TextVAlign,"middle")}function H(w,F){return 0==w.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":Zb(mxConstants.STYLE_STROKECOLOR,P(w.LineColor),
+"#000000")}function N(w){return null!=w?mxConstants.STYLE_FILLCOLOR+"="+P(w)+";":""}function J(w){return null!=w?"swimlaneFillColor="+P(w)+";":""}function M(w,F,D){F="";if("string"===typeof w.LineColor&&(w.LineColor=V(w.LineColor),7<w.LineColor.length)){var u="0x"+w.LineColor.substring(w.LineColor.length-2,w.LineColor.length);D.style.includes("strokeOpacity")||(F+="strokeOpacity="+Math.round(parseInt(u)/2.55)+";")}"string"===typeof w.FillColor&&(w.FillColor=V(w.FillColor),7<w.FillColor.length&&(w=
+"0x"+w.FillColor.substring(w.FillColor.length-2,w.FillColor.length),D.style.includes("fillOpacity")||(F+="fillOpacity="+Math.round(parseInt(w)/2.55)+";")));return F}function T(w,F,D){var u="";if(null!=w.Rotation){w=mxUtils.toDegree(parseFloat(w.Rotation));var e=!0;0!=w&&F.Class&&("UMLSwimLaneBlockV2"==F.Class||(0<=F.Class.indexOf("Rotated")||-90==w||270==w)&&(0<=F.Class.indexOf("Pool")||0<=F.Class.indexOf("SwimLane")))?(w+=90,D.geometry.rotate90(),D.geometry.isRotated=!0,e=!1):0<=mxUtils.indexOf(wf,
+F.Class)?(w-=90,D.geometry.rotate90()):0<=mxUtils.indexOf(xf,F.Class)&&(w+=180);0!=w&&(u+="rotation="+w+";");e||(u+="horizontal=0;")}return u}function ca(w){return null!=w.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function V(w){if(w){if("object"===typeof w)try{w=w.cs[0].c}catch(F){console.log(F),w="#ffffff"}"rgb"==w.substring(0,3)?w="#"+w.match(/\d+/g).map(function(F){F=parseInt(F).toString(16);return(1==F.length?"0":"")+F}).join(""):"#"!=w.charAt(0)&&(w="#"+w)}return w}function P(w){return(w=V(w))?
+w.substring(0,7):null}function ea(w,F){return(w=V(w))&&7<w.length?F+"="+Math.round(parseInt("0x"+w.substr(7))/2.55)+";":""}function Y(w,F){if(null!=w.FillColor)if("object"===typeof w.FillColor){if(null!=w.FillColor.cs&&1<w.FillColor.cs.length)return Zb(mxConstants.STYLE_FILLCOLOR,P(w.FillColor.cs[0].c))+Zb(mxConstants.STYLE_GRADIENTCOLOR,P(w.FillColor.cs[1].c))}else return"string"===typeof w.FillColor?Zb(mxConstants.STYLE_FILLCOLOR,P(w.FillColor),"#FFFFFF"):Zb(mxConstants.STYLE_FILLCOLOR,"none");
+return""}function sa(w){return"dotted"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 4;":"dashdot"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5;":"dashdotdot"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5 1 5;":"dotdotdot"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 2;":"longdash"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=16 6;":"dashlongdash"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 6 16 6;":"dashed24"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=3 8;":
+"dashed32"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=6 5;":"dashed44"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=8 8;":null!=w.StrokeStyle&&"dashed"==w.StrokeStyle.substring(0,6)?"dashed=1;fixDash=1;":""}function oa(w){return null!=w.LineWidth?Zb(mxConstants.STYLE_STROKEWIDTH,z(.75*parseFloat(w.LineWidth)),"1"):""}function Ra(w,F,D){var u="";w.FillColor&&w.FillColor.url?(D=w.FillColor.url,"fill"==w.FillColor.pos&&(u="imageAspect=0;")):"ImageSearchBlock2"==F.Class?D=w.URL:"UserImage2Block"==
+F.Class&&null!=w.ImageFillProps&&null!=w.ImageFillProps.url&&(D=w.ImageFillProps.url);return null!=D?"image="+g(D)+";"+u:""}function la(w,F,D){null!=F.Link&&0<F.Link.length&&D.setAttributeForCell(w,"link",n(F.Link[0]));null!=F.NoteHint&&F.NoteHint.t&&D.setAttributeForCell(w,"Notes",F.NoteHint.t);var u=[],e=D.convertValueToString(w),O=!1;if(null!=e){for(var r=0;match=yf.exec(e);){var p=match[0];O=!0;if(2<p.length){var aa=p.substring(2,p.length-2);"documentName"==aa?aa="filename":"pageName"==aa?aa=
+"page":"totalPages"==aa?aa="pagecount":"page"==aa?aa="pagenumber":"date:"==aa.substring(0,5)?aa="date{"+aa.substring(5).replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy")+"}":"lastModifiedTime"==aa.substring(0,16)?aa=aa.replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy"):"i18nDate:"==aa.substring(0,9)&&(aa="date{"+aa.substring(9).replace(/i18nShort/g,"shortDate").replace(/i18nMediumWithTime/g,"mmm d, yyyy hh:MM TT")+"}");aa="%"+aa+"%";u.push(e.substring(r,match.index)+
+(null!=aa?aa:p));r=match.index+p.length}}O&&(u.push(e.substring(r)),D.setAttributeForCell(w,"label",u.join("")),D.setAttributeForCell(w,"placeholders","1"))}for(var ba in F)if(F.hasOwnProperty(ba)&&ba.toString().startsWith("ShapeData_"))try{var W=F[ba],wa=mxUtils.trim(W.Label).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,"");Sa(w,wa,W.Value,D)}catch(ka){window.console&&console.log("Ignored "+ba+":",ka)}}function Sa(w,F,D,u){for(var e=F,O=0;null!=u.getAttributeForCell(w,e);)O++,e=F+
+"_"+O;u.setAttributeForCell(w,e,null!=D?D:"")}function Xa(w,F,D,u,e,O){var r=h(F);if(null!=r){var p=Pd[r.Class];null!=p?(w.style+=p,";"!=w.style.charAt(w.style.length-1)&&(w.style+=";")):w.edge||(console.log("No mapping found for: "+r.Class),LucidImporter.hasUnknownShapes=!0);p=null!=r.Properties?r.Properties:r;if(null!=p&&(w.value=O?"":m(p),w.style+=b(w.style,p,r,w,G,!0),w.style.includes("strokeColor")||(w.style+=H(p,r)),la(w,p,D),p.Title&&p.Title.t&&p.Text&&p.Text.t&&"ExtShape"!=r.Class.substr(0,
+8)&&(D=w.geometry,D=new mxCell(m(p.Title),new mxGeometry(0,D.height,D.width,10),"strokeColor=none;fillColor=none;"),D.vertex=!0,w.insert(D),D.style+=a(p.Title,G)),w.edge)){w.style=null!=p.Rounding&&"diagonal"!=p.Shape?w.style+("rounded=1;arcSize="+p.Rounding+";"):w.style+"rounded=0;";if(D="curve"==p.Shape)w.style+="curved=1;";else if("diagonal"!=p.Shape)if(null!=p.ElbowPoints&&0<p.ElbowPoints.length)for(w.geometry.points=[],r=0;r<p.ElbowPoints.length;r++)w.geometry.points.push(new mxPoint(Math.round(.75*
+p.ElbowPoints[r].x+xc),Math.round(.75*p.ElbowPoints[r].y+yc)));else if("elbow"==p.Shape||null!=p.Endpoint1.Block&&null!=p.Endpoint2.Block)w.style+="edgeStyle=orthogonalEdgeStyle;";if(p.LineJumps||LucidImporter.globalProps.LineJumps)w.style+="jumpStyle=arc;";null!=p.Endpoint1.Style&&(O=Fe[p.Endpoint1.Style],null!=O?(O=O.replace(/xyz/g,"start"),w.style+="startArrow="+O+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+p.Endpoint1.Style)));null!=p.Endpoint2.Style&&
+(O=Fe[p.Endpoint2.Style],null!=O?(O=O.replace(/xyz/g,"end"),w.style+="endArrow="+O+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+p.Endpoint2.Style)));O=null!=p.ElbowControlPoints&&0<p.ElbowControlPoints.length?p.ElbowControlPoints:p.Joints;if(D&&null!=p.BezierJoints&&0<p.BezierJoints.length){O=[];D=p.BezierJoints[p.BezierJoints.length-1];D.p.x=p.Endpoint2.x;D.p.y=p.Endpoint2.y;for(r=0;r<p.BezierJoints.length;r++)D=p.BezierJoints[r],O.push({x:D.p.x+
+D.nt.x*D.lcps*.75,y:D.p.y+D.nt.y*D.lcps*.75}),O.push({x:D.p.x+D.nt.x*D.rcps*.75,y:D.p.y+D.nt.y*D.rcps*.75});O=O.slice(1,O.length-1)}else D&&(O=[],O.push({x:p.Endpoint1.x+(.1>p.Endpoint1.LinkX?-250:.9<p.Endpoint1.LinkX?250:0),y:p.Endpoint1.y+(.1>p.Endpoint1.LinkY?-250:.9<p.Endpoint1.LinkY?250:0)}),O.push({x:p.Endpoint2.x+(.1>p.Endpoint2.LinkX?-250:.9<p.Endpoint2.LinkX?250:0),y:p.Endpoint2.y+(.1>p.Endpoint2.LinkY?-250:.9<p.Endpoint2.LinkY?250:0)}));if(null!=O)for(w.geometry.points=[],r=0;r<O.length;r++)D=
+O[r].p?O[r].p:O[r],w.geometry.points.push(new mxPoint(Math.round(.75*D.x+xc),Math.round(.75*D.y+yc)));D=!1;if((null==w.geometry.points||0==w.geometry.points.length)&&null!=p.Endpoint1.Block&&p.Endpoint1.Block==p.Endpoint2.Block&&null!=u&&null!=e){D=new mxPoint(Math.round(u.geometry.x+u.geometry.width*p.Endpoint1.LinkX),Math.round(u.geometry.y+u.geometry.height*p.Endpoint1.LinkY));O=new mxPoint(Math.round(e.geometry.x+e.geometry.width*p.Endpoint2.LinkX),Math.round(e.geometry.y+e.geometry.height*p.Endpoint2.LinkY));
+xc=D.x==O.x?Math.abs(D.x-u.geometry.x)<u.geometry.width/2?-20:20:0;yc=D.y==O.y?Math.abs(D.y-u.geometry.y)<u.geometry.height/2?-20:20:0;var aa=new mxPoint(D.x+xc,D.y+yc),ba=new mxPoint(O.x+xc,O.y+yc);aa.generated=!0;ba.generated=!0;w.geometry.points=[aa,ba];D=D.x==O.x}null!=u&&u.geometry.isRotated||(aa=Ge(w,p.Endpoint1,!0,D,null,u));null!=u&&null!=aa&&(null==u.stylePoints&&(u.stylePoints=[]),u.stylePoints.push(aa),LucidImporter.stylePointsSet.add(u));null!=e&&e.geometry.isRotated||(ba=Ge(w,p.Endpoint2,
+!1,D,null,e));null!=e&&null!=ba&&(null==e.stylePoints&&(e.stylePoints=[]),e.stylePoints.push(ba),LucidImporter.stylePointsSet.add(e))}}null!=F.id&&(w.style+=";lucidId="+F.id+";");w.lucidchartObject=F}function sc(w,F){var D=h(w).Properties,u=D.BoundingBox;null==w.Class||"AWS"!==w.Class.substring(0,3)&&"Amazon"!==w.Class.substring(0,6)||w.Class.includes("AWS19")||(u.h-=20);v=new mxCell("",new mxGeometry(Math.round(.75*u.x+xc),Math.round(.75*u.y+yc),Math.round(.75*u.w),Math.round(.75*u.h)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");
+v.vertex=!0;Xa(v,w,F);v.zOrder=D.ZOrder;He(v,D);D.Hidden&&(v.visible=!1);return v}function yb(w,F,D,u){var e=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");e.geometry.relative=!0;e.edge=!0;Xa(e,w,F,D,u,!0);var O=h(w).Properties,r=null!=O?O.TextAreas:w.TextAreas;if(null!=r){for(var p=0;void 0!==r["t"+p];){var aa=r["t"+p];null!=aa&&(e=Qd(aa,e,w,D,u,F));p++}for(p=0;void 0!==r["m"+p]||1>p;)aa=r["m"+p],null!=aa&&(e=Qd(aa,e,w,D,u,F)),p++;null!=r.Text&&(e=Qd(r.Text,e,w,D,u,F));r=null!=
+O?O.TextAreas:w.TextAreas;null!=r.Message&&(e=Qd(r.Message,e,w,D,u,F))}w.Hidden&&(e.visible=!1);return e}function Qd(w,F,D,u,e,O){var r=2*(parseFloat(w.Location)-.5);isNaN(r)&&null!=w.Text&&null!=w.Text.Location&&(r=2*(parseFloat(w.Text.Location)-.5));O=m(w);var p=mxCell;r=new mxGeometry(isNaN(r)?0:r,0,0,0);var aa=he;var ba=D;if(G)ba=mb;else{var W="13",wa="";if(null!=w&&null!=w.Value&&null!=w.Value.m){wa=A(w.Value.m);for(var ka=0;ka<w.Value.m.length;ka++)if("s"==w.Value.m[ka].n&&w.Value.m[ka].v)W=
+z(.75*parseFloat(w.Value.m[ka].v));else if("c"==w.Value.m[ka].n){var pa=V(w.Value.m[ka].v);null!=pa&&(pa=pa.substring(0,7));"#000000"==pa&&(pa="default");wa+="fontColor="+pa+";"}wa+=k(ba);mb=""}ba=wa+";fontSize="+W+";"}p=new p(O,r,aa+ba);p.geometry.relative=!0;p.vertex=!0;if(w.Side)try{D.Action&&D.Action.Properties&&(D=D.Action.Properties);if(null!=u&&null!=e){var ra=u.geometry,Aa=e.geometry;var na=Math.abs(ra.x+ra.width*D.Endpoint1.LinkX-(Aa.x+Aa.width*D.Endpoint2.LinkX));var Ba=Math.abs(ra.y+ra.height*
+D.Endpoint1.LinkY-(Aa.y+Aa.height*D.Endpoint2.LinkY))}else na=Math.abs(D.Endpoint1.x-D.Endpoint2.x),Ba=Math.abs(D.Endpoint1.y-D.Endpoint2.y);var Oa=mxUtils.getSizeForString(O.replace(/\n/g,"<br>"));p.geometry.offset=0==na||na<Ba?new mxPoint(Math.sign(D.Endpoint1.y-D.Endpoint2.y)*w.Side*(Oa.width/2+5+na),0):new mxPoint(0,Math.sign(D.Endpoint2.x-D.Endpoint1.x)*w.Side*(Oa.height/2+5+Ba))}catch(Ca){console.log(Ca)}p.lucidchartObject=w;F.insert(p);return F}function Zb(w,F,D,u){null!=F&&null!=u&&(F=u(F));
+return null!=F&&F!=D?w+"="+F+";":""}function Ge(w,F,D,u,e,O){if(null!=F&&null!=F.LinkX&&null!=F.LinkY&&(F.LinkX=Math.round(1E3*F.LinkX)/1E3,F.LinkY=Math.round(1E3*F.LinkY)/1E3,null!=O&&O.style&&-1<O.style.indexOf("flipH=1")&&(F.LinkX=1-F.LinkX),null!=O&&O.style&&-1<O.style.indexOf("flipV=1")&&(F.LinkY=1-F.LinkY),w.style+=(u?"":(D?"exitX":"entryX")+"="+F.LinkX+";")+(e?"":(D?"exitY":"entryY")+"="+F.LinkY+";")+(D?"exitPerimeter":"entryPerimeter")+"=0;",F.Inside))return"["+F.LinkX+","+F.LinkY+",0]"}function Ie(w,
+F,D,u,e){try{var O=function(na,Ba){if(null!=na)if(Array.isArray(na))for(var Oa=0;Oa<na.length;Oa++)O(na[Oa].p?na[Oa].p:na[Oa],Ba);else Ba=Ba?.75:1,p=Math.min(p,na.x*Ba),aa=Math.min(aa,na.y*Ba),ba=Math.max(ba,(na.x+(na.width?na.width:0))*Ba),W=Math.max(W,(na.y+(na.height?na.height:0))*Ba)};null!=w.Action&&null!=w.Action.Properties&&(w=w.Action.Properties);var r=new mxCell("",new mxGeometry,"group;dropTarget=0;pointerEvents=0;");r.vertex=!0;r.zOrder=w.ZOrder;var p=Infinity,aa=Infinity,ba=-Infinity,
+W=-Infinity,wa=w.Members;e=[];for(var ka in wa){var pa=F[ka];null!=pa?e.push(pa):null!=u[ka]&&(e.push(u[ka]),D[ka]=r)}e.sort(function(na,Ba){na=na.zOrder||na.ZOrder;Ba=Ba.zOrder||Ba.ZOrder;return null!=na&&null!=Ba?na>Ba?1:na<Ba?-1:0:0});for(D=F=0;D<e.length;D++)if(pa=e[D],pa.vertex)O(pa.geometry),pa.parent=r,r.insert(pa,F++);else{var ra=null!=pa.Action&&pa.Action.Properties?pa.Action.Properties:pa;O(ra.Endpoint1,!0);O(ra.Endpoint2,!0);O(ra.ElbowPoints,!0);O(ra.ElbowControlPoints,!0);O(ra.BezierJoints,
+!0);O(ra.Joints,!0)}r.geometry.x=p;r.geometry.y=aa;r.geometry.width=ba-p;r.geometry.height=W-aa;if(null!=r.children)for(D=0;D<r.children.length;D++){var Aa=r.children[D].geometry;Aa.x-=p;Aa.y-=aa}w.IsState?(r.lucidLayerInfo={name:w.Name,visible:!w.Hidden,locked:w.Restrictions.b&&w.Restrictions.p&&w.Restrictions.c},r.style+="container=1;collapsible=0;recursiveResize=0;"):w.Hidden&&(r.visible=!1);r.lucidchartObject=w;return r}catch(na){console.log(na)}}function zf(w,F,D){LucidImporter.hasMath=!1;LucidImporter.stylePointsSet=
+new Set;w.getModel().beginUpdate();try{var u=function(Ca,ua){function Ma(Qa,ma,La){null==Qa||Qa.generated||(Qa.x-=ma,Qa.y-=La)}var Ja=null!=ua.Endpoint1.Block?O[ua.Endpoint1.Block]:null,Ka=null!=ua.Endpoint2.Block?O[ua.Endpoint2.Block]:null,l=yb(Ca,w,Ja,Ka);if(ua.Endpoint1&&ua.Endpoint1.Line||ua.Endpoint2&&ua.Endpoint2.Line)console.log("Edge to Edge case"),LucidImporter.hasUnknownShapes=!0;null==Ja&&null!=ua.Endpoint1&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.75*ua.Endpoint1.x),Math.round(.75*
+ua.Endpoint1.y)),!0);null==Ka&&null!=ua.Endpoint2&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.75*ua.Endpoint2.x),Math.round(.75*ua.Endpoint2.y)),!1);Ca=r[Ca.id];if(null!=Ca){for(var Ha=l.geometry,cb=ua=0,Ea=Ca;null!=Ea&&null!=Ea.geometry;)ua+=Ea.geometry.x,cb+=Ea.geometry.y,Ea=Ea.parent;Ma(Ha.sourcePoint,ua,cb);Ma(Ha.targetPoint,ua,cb);Ma(Ha.offset,ua,cb);Ha=Ha.points;if(null!=Ha)for(Ea=0;Ea<Ha.length;Ea++)Ma(Ha[Ea],ua,cb)}e.push(w.addCell(l,Ca,null,Ja,Ka))},e=[],O={},r={},p={},aa=[];null!=
+F.Lines&&(p=F.Lines);if(null!=F.Blocks){Object.assign(p,F.Blocks);for(var ba in F.Blocks){var W=F.Blocks[ba];W.id=ba;var wa=!1;null!=Pd[W.Class]&&"mxCompositeShape"==Pd[W.Class]&&(O[W.id]=Je(W,e,w),aa.push(W),wa=!0);wa||(O[W.id]=sc(W,w),aa.push(W))}if(null!=F.Generators)for(ba in F.Generators)"OrgChart2018"==F.Generators[ba].ClassName?(LucidImporter.hasUnknownShapes=!0,Ke(ba,F.Generators[ba],F.Data,w,O)):LucidImporter.hasUnknownShapes=!0}else{for(var ka=0;ka<F.Objects.length;ka++)W=F.Objects[ka],
+p[W.id]=W,null!=W.Action&&"mxCompositeShape"==Pd[W.Action.Class]?O[W.id]=Je(W,e,w):W.IsBlock&&null!=W.Action&&null!=W.Action.Properties?O[W.id]=sc(W,w):W.IsGenerator&&W.GeneratorData&&W.GeneratorData.p&&("OrgChart2018"==W.GeneratorData.p.ClassName?(LucidImporter.hasUnknownShapes=!0,Ke(W.GeneratorData.id,W.GeneratorData.p,W.GeneratorData.gs,w,O)):LucidImporter.hasUnknownShapes=!0),aa.push(W);for(ka=0;ka<F.Objects.length;ka++)if(W=F.Objects[ka],W.IsGroup){var pa=Ie(W,O,r,p,w);pa&&(O[W.id]=pa,aa.push(W))}}if(null!=
+F.Groups)try{for(ba in F.Groups)if(W=F.Groups[ba],W.id=ba,pa=Ie(W,O,r,p,w))O[W.id]=pa,aa.push(W)}catch(Ca){console.log(Ca)}if(null!=F.Lines)for(ba in F.Lines)W=F.Lines[ba],W.id=ba,aa.push(W);aa.sort(function(Ca,ua){Ca=h(Ca);ua=h(ua);Ca=null!=Ca.Properties?Ca.Properties.ZOrder:Ca.ZOrder;ua=null!=ua.Properties?ua.Properties.ZOrder:ua.ZOrder;return null!=Ca&&null!=ua?Ca>ua?1:Ca<ua?-1:0:0});for(ka=0;ka<aa.length;ka++){W=aa[ka];var ra=O[W.id];if(null!=ra){if(null==ra.parent)if(ra.lucidLayerInfo){var Aa=
+new mxCell;w.addCell(Aa,w.model.root);Aa.setVisible(ra.lucidLayerInfo.visible);ra.lucidLayerInfo.locked&&Aa.setStyle("locked=1;");Aa.setValue(ra.lucidLayerInfo.name);delete ra.lucidLayerInfo;w.addCell(ra,Aa)}else e.push(w.addCell(ra))}else W.IsLine&&null!=W.Action&&null!=W.Action.Properties?u(W,W.Action.Properties):null!=W.StrokeStyle&&u(W,W)}LucidImporter.stylePointsSet.forEach(function(Ca){Ca.style="points=["+Ca.stylePoints.join(",")+"];"+Ca.style;delete Ca.stylePoints});try{var na=w.getModel().cells;
+w.view.validate();for(var Ba in na){var Oa=na[Ba];null!=Oa&&(Af(w,Oa),Bf(w,Oa),Cf(w,Oa),"1"==urlParams.lucidchartObject&&null!=Oa.lucidchartObject&&Sa(Oa,"lucidchartObject",JSON.stringify(Oa.lucidchartObject,null,2),w),delete Oa.lucidchartObject,delete Oa.zOrder)}}catch(Ca){console.log(Ca)}D||w.setSelectionCells(e)}finally{w.getModel().endUpdate()}}function Cf(w,F){if(w.model.contains(F)&&F.edge){var D=w.view.getState(F);if(null!=D&&null!=F.children){var u=mxRectangle.fromRectangle(D.paintBounds);
+u.grow(5);for(var e=0;e<F.children.length;e++){var O=w.view.getState(F.children[e]);null==O||mxUtils.contains(u,O.paintBounds.x,O.paintBounds.y)||(O.cell.geometry.offset=new mxPoint(0,0))}}w=F.lucidchartObject;null!=w&&"elbow"==w.Shape&&null==w.ElbowControlPoints&&null==w.ElbowPoints&&null!=D.style.exitX&&null!=D.style.exitY&&null!=D.style.entryX&&null!=D.style.entryY&&(F.style=mxUtils.setStyle(F.style,"exitX",Math.round(20*D.style.exitX)/20),F.style=mxUtils.setStyle(F.style,"exitY",Math.round(20*
+D.style.exitY)/20),F.style=mxUtils.setStyle(F.style,"entryX",Math.round(20*D.style.entryX)/20),F.style=mxUtils.setStyle(F.style,"entryY",Math.round(20*D.style.entryY)/20))}}function Bf(w,F){if(w.model.contains(F)&&null!=F.style&&""!=F.style){w=F.style.split(";");for(var D={},u=[],e=w.length-1;0<=e;e--){var O=w[e].split("=");if(2!=O.length||null==D[O[0]])D[O[0]]=O[1],""!=w[e]&&u.push(w[e])}F.style=u.reverse().join(";")+";"}}function Af(w,F){if(w.model.contains(F)&&null!=F.children&&null!=F.geometry&&
+F.vertex&&"group;dropTarget=0;pointerEvents=0;"==F.style){for(var D=null,u=0;u<F.children.length;u++)if(F.children[u].vertex){var e=F.children[u].geometry;if(null!=e&&0==e.x&&0==e.y&&e.width==F.geometry.width&&e.height==F.geometry.height){if(null!=D)return;D=F.children[u]}}F=D;if(null!=F&&(D=F.parent,""==w.convertValueToString(D))){if(null!=F.edges)for(u=0;u<F.edges.length;u++)F.edges[u].source==F&&F.edges[u].setTerminal(F.parent,!0),F.edges[u].target==F&&F.edges[u].setTerminal(F.parent,!1);if(null!=
+F.children&&0<F.children.length)for(e=F.children.slice(),u=0;u<e.length;u++)D.insert(e[u]);w.cellLabelChanged(D,w.convertValueToString(F));D.style=mxUtils.setStyle(mxUtils.setStyle(F.style,"container","1"),"collapsible","0");F.removeFromParent()}}}function Df(){var w=new Graph;w.setExtendParents(!1);w.setExtendParentsOnAdd(!1);w.setConstrainChildren(!1);w.setHtmlLabels(!0);w.getModel().maintainEdgeParent=!1;return w}function Rd(w,F,D,u,e,O,r,p){this.nurbsValues=[1,3,0,0,100*(w+D),100-100*(1-(F+u)),
+0,1,100*(e+r),100-100*(1-(O+p)),0,1]}function Le(w,F){try{for(var D=[],u=F.BoundingBox.w,e=F.BoundingBox.h,O=0;O<F.Shapes.length;O++){var r=F.Shapes[O],p=r.FillColor,aa=r.StrokeColor,ba=r.LineWidth,W=r.Points,wa=r.Lines,ka=['<shape strokewidth="inherit"><foreground>'];ka.push("<path>");for(var pa=null,ra=0;ra<wa.length;ra++){var Aa=wa[ra];if(pa!=Aa.p1){var na=W[Aa.p1].x,Ba=W[Aa.p1].y;na=100*na/u;Ba=100*Ba/e;na=Math.round(100*na)/100;Ba=Math.round(100*Ba)/100;ka.push('<move x="'+na+'" y="'+Ba+'"/>')}if(null!=
+Aa.n1){var Oa=W[Aa.p2].x,Ca=W[Aa.p2].y,ua=u,Ma=e,Ja=new Rd(W[Aa.p1].x/u,W[Aa.p1].y/e,Aa.n1.x/u,Aa.n1.y/e,W[Aa.p2].x/u,W[Aa.p2].y/e,Aa.n2.x/u,Aa.n2.y/e);if(2<=Ja.getSize()){Ja.getX(0);Ja.getY(0);Ja.getX(1);Ja.getY(1);Oa=Math.round(100*Oa/ua*100)/100;Ca=Math.round(100*Ca/Ma*100)/100;ua=[];Ma=[];for(var Ka=[],l=Ja.getSize(),Ha=0;Ha<l-1;Ha+=3)ua.push(new mxPoint(Ja.getX(Ha),Ja.getY(Ha))),Ma.push(new mxPoint(Ja.getX(Ha+1),Ja.getY(Ha+1))),Ha<l-2?Ka.push(new mxPoint(Ja.getX(Ha+2),Ja.getY(Ha+2))):Ka.push(new mxPoint(Oa,
+Ca));var cb="";for(Ha=0;Ha<ua.length;Ha++)cb+='<curve x1="'+ua[Ha].x+'" y1="'+ua[Ha].y+'" x2="'+Ma[Ha].x+'" y2="'+Ma[Ha].y+'" x3="'+Ka[Ha].x+'" y3="'+Ka[Ha].y+'"/>';var Ea=cb}else Ea=void 0;ka.push(Ea)}else na=W[Aa.p2].x,Ba=W[Aa.p2].y,na=100*na/u,Ba=100*Ba/e,na=Math.round(100*na)/100,Ba=Math.round(100*Ba)/100,ka.push('<line x="'+na+'" y="'+Ba+'"/>');pa=Aa.p2}ka.push("</path>");ka.push("<fillstroke/>");ka.push("</foreground></shape>");D.push({shapeStencil:"stencil("+Graph.compress(ka.join(""))+")",
+FillColor:p,LineColor:aa,LineWidth:ba})}LucidImporter.stencilsMap[w]={text:F.Text,w:u,h:e,x:F.BoundingBox.x,y:F.BoundingBox.y,stencils:D}}catch(Qa){console.log("Stencil parsing error:",Qa)}}function tc(w,F,D,u,e,O,r,p){w=new mxCell("",new mxGeometry(w,F,0,0),"strokeColor=none;fillColor=none;");w.vertex=!0;r.insert(w);O=[w];D=D.clone();p.insertEdge(D,!1);w.insertEdge(D,!0);O.push(D);u.push(e.addCell(D,null,null,null,null))}function gb(w,F,D,u,e,O,r,p,aa){w=new mxCell("",new mxGeometry(w,F,0,0),"strokeColor=none;fillColor=none;");
+w.vertex=!0;aa.insert(w);D=new mxCell("",new mxGeometry(D,u,0,0),"strokeColor=none;fillColor=none;");D.vertex=!0;aa.insert(D);p=[D];e=e.clone();w.insertEdge(e,!0);D.insertEdge(e,!1);p.push(e);O.push(r.addCell(e,null,null,null,null))}function Ta(w,F,D,u,e,O){u.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";u.style+=b(u.style,e,O,u);F=m(e);u.vertex=!0;w=new mxCell(F,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+mxConstants.STYLE_SHAPE+
+"=mxgraph.gcp2."+w+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;");w.style+=b(w.style,e,O,w,G);w.geometry.relative=!0;w.geometry.offset=new mxPoint(5,-12);w.vertex=!0;u.insert(w)}function Ya(w,F,D,u,e,O,r,p){e="transparent"!=w?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";O.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";O.style+=b(O.style,
+r,p,O);O.value=m(r);O.vertex=!0;w=new mxCell(null,new mxGeometry(.5,0,.7*u*F,.7*u*D),e+w+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;");w.geometry.relative=!0;w.geometry.offset=new mxPoint(-F*u*.35,10+(1-D)*u*.35);w.vertex=!0;w.style+=b(w.style,r,p,w,G);O.insert(w)}function Yc(w,F){return null!=w&&null!=F&&(F==mxConstants.STYLE_ALIGN+"Global"&&(F=mxConstants.STYLE_ALIGN),w.includes(";"+F+"=")||w.substring(0,F.length+1)==F+"=")?!0:!1}function Sd(w,F){function D(u){u=Math.round(parseInt("0x"+
+u)*F).toString(16);return 1==u.length?"0"+u:u}return"#"+D(w.substr(1,2))+D(w.substr(3,2))+D(w.substr(5,2))}function Je(w,F,D){var u=h(w),e=u.Properties,O=e.BoundingBox,r=Math.round(.75*O.w),p=Math.round(.75*O.h),aa=Math.round(.75*O.x+xc),ba=Math.round(.75*O.y+yc);null==w.Class||"GCPInputDatabase"!==w.Class&&"GCPInputRecord"!==w.Class&&"GCPInputPayment"!==w.Class&&"GCPInputGateway"!==w.Class&&"GCPInputLocalCompute"!==w.Class&&"GCPInputBeacon"!==w.Class&&"GCPInputStorage"!==w.Class&&"GCPInputList"!==
+w.Class&&"GCPInputStream"!==w.Class&&"GCPInputMobileDevices"!==w.Class&&"GCPInputCircuitBoard"!==w.Class&&"GCPInputLive"!==w.Class&&"GCPInputUsers"!==w.Class&&"GCPInputLaptop"!==w.Class&&"GCPInputApplication"!==w.Class&&"GCPInputLightbulb"!==w.Class&&"GCPInputGame"!==w.Class&&"GCPInputDesktop"!==w.Class&&"GCPInputDesktopAndMobile"!==w.Class&&"GCPInputWebcam"!==w.Class&&"GCPInputSpeaker"!==w.Class&&"GCPInputRetail"!==w.Class&&"GCPInputReport"!==w.Class&&"GCPInputPhone"!==w.Class&&"GCPInputBlank"!==
+w.Class||(p+=20);v=new mxCell("",new mxGeometry(aa,ba,r,p),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;v.zOrder=e.ZOrder;var W=null!=w.Class?w.Class:null!=u?u.Class:null;switch(W){case "BraceNoteBlock":case "UI2BraceNoteBlock":var wa=!1;null!=e.BraceDirection&&"Right"==e.BraceDirection&&(wa=!0);var ka=null,pa=null,ra=m(e),Aa=e.Rotation?mxUtils.getSizeForString(ra.replace(/\n/g,"<br>"),null,null,Math.abs(r-.125*p)):{width:0,height:0};wa?(ka=new mxCell("",new mxGeometry(r-.125*
+p,0,.125*p,p),"shape=curlyBracket;rounded=1;"),pa=new mxCell("",new mxGeometry(Aa.height,-2*Aa.width,r-.125*p,p),"strokeColor=none;fillColor=none;")):(ka=new mxCell("",new mxGeometry(0,0,.125*p,p),"shape=curlyBracket;rounded=1;flipH=1;"),pa=new mxCell("",new mxGeometry(.125*p-Aa.height,Aa.width,r-.125*p,p),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);ka.vertex=!0;v.insert(ka);ka.style+=b(ka.style,e,u,ka);pa.vertex=!0;pa.value=ra;v.insert(pa);
+pa.style+=b(pa.style,e,u,pa,G);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var na="MainText",Ba=null,Oa="HeaderFill_",Ca="BodyFill_",ua=25,Ma=25,Ja=0;if(null!=e.Lanes)Ja=e.Lanes.length;else if(null!=e.PrimaryLane){var Ka=function(hb){if(hb)32>hb?hb=32:208<hb&&(hb=208);else return 0;return.75*hb};Ja=e.PrimaryLane.length;
+for(var l=p=r=0;l<Ja;l++)r+=e.PrimaryLane[l];for(l=0;l<e.SecondaryLane.length;l++)p+=e.SecondaryLane[l];ua=Ka(e.PrimaryPoolTitleHeight);Ma=Ka(e.PrimaryLaneTitleHeight);r*=.75;p=.75*p+ua+Ma;v.geometry.width=r;v.geometry.height=p;na="poolPrimaryTitleKey";Oa="PrimaryLaneHeaderFill_";Ca="CellFill_0,";Ba=e.PrimaryLaneTextAreaIds;if(null==Ba)for(Ba=[],l=0;l<Ja;l++)Ba.push("Primary_"+l)}if(0==e.IsPrimaryLaneVertical){e.Rotation=-1.5707963267948966;var Ha=v.geometry.x,cb=v.geometry.y}var Ea=0!=e.Rotation,
+Qa=0<W.indexOf("Pool"),ma=0==W.indexOf("BPMN"),La=null!=e[na];v.style=(Qa?"swimlane;startSize="+ua+";":"fillColor=none;strokeColor=none;pointerEvents=0;fontStyle=0;")+"html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;"+(Ea?"horizontalStack=0;":"");v.style+=b(v.style,e,u,v);La&&(v.value=m(e[na]),v.style+=(G?"overflow=block;blockSpacing=1;fontSize=13;"+mb:f(e[na])+q(e[na])+k(e[na])+t(e[na])+C(e[na],v)+I(e[na])+Q(e[na])+K(e[na])+L(e[na]))+S(e[na])+
+R(e[na]));for(var ya=0,za=[],Qb="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;fontStyle=0;startSize="+Ma+";dropTarget=0;rounded=0;"+(Ea?"horizontal=0;":"")+(ma?"swimlaneLine=0;fillColor=none;":""),ha=e.Rotation=0;ha<Ja;ha++){if(null==Ba){var xb=parseFloat(e.Lanes[ha].p);l=parseInt(e.Lanes[ha].tid)||ha;var Wa="Lane_"+l}else xb=.75*e.PrimaryLane[ha]/r,l=ha,Wa=Ba[ha];var rc=r*ya,wc=Qa?ua:0;za.push(new mxCell("",Ea?new mxGeometry(wc,rc,p-wc,r*xb):new mxGeometry(rc,wc,r*xb,p-
+wc),Qb));za[ha].vertex=!0;v.insert(za[ha]);za[ha].value=m(e[Wa]);za[ha].style+=b(za[ha].style,e,u,za[ha],G)+(G?"fontSize=13;":f(e[Wa])+q(e[Wa])+t(e[Wa])+C(e[Wa],za[ha])+I(e[Wa])+Q(e[Wa])+K(e[Wa])+L(e[Wa]))+S(e[Wa])+R(e[Wa])+N(e[Oa+l])+J(e[Ca+l]);ya+=xb}null!=Ha&&(v.geometry.x=Ha,v.geometry.y=cb);break;case "UMLMultidimensionalSwimlane":var Gb=0,Rb=0,Lb=null,$b=null;if(null!=e.Rows&&null!=e.Columns){Gb=e.Rows.length;Rb=e.Columns.length;var Za=.75*e.TitleHeight||25,qb=.75*e.TitleWidth||25}else if(null!=
+e.PrimaryLane&&null!=e.SecondaryLane){Gb=e.SecondaryLane.length;Rb=e.PrimaryLane.length;qb=.75*e.SecondaryLaneTitleHeight||25;Za=.75*e.PrimaryLaneTitleHeight||25;for(l=p=r=0;l<Gb;l++)p+=e.SecondaryLane[l];for(l=0;l<Rb;l++)r+=e.PrimaryLane[l];r=.75*r+qb;p=.75*p+Za;v.geometry.width=r;v.geometry.height=p;Lb=e.SecondaryLaneTextAreaIds;$b=e.PrimaryLaneTextAreaIds}v.style="group;";var Oc=new mxCell("",new mxGeometry(0,Za,r,p-Za),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;horizontalStack=0;");
+Oc.vertex=!0;var Gc=new mxCell("",new mxGeometry(qb,0,r-qb,p),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;");Gc.vertex=!0;v.insert(Oc);v.insert(Gc);ba=0;var Hc="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;horizontal=0;fontStyle=0;startSize="+qb+";";for(ha=0;ha<Gb;ha++){if(null==Lb){var Td=.75*parseInt(e.Rows[ha].height);l=parseInt(e.Rows[ha].id)||ha;var Sb="Row_"+l}else Td=
+.75*e.SecondaryLane[ha],Sb=Lb[ha];var Ic=new mxCell("",new mxGeometry(0,ba,r,Td),Hc);ba+=Td;Ic.vertex=!0;Oc.insert(Ic);Ic.value=m(e[Sb]);Ic.style+=b(Ic.style,e,u,Ic,G)+(G?"fontSize=13;":f(e[Sb])+q(e[Sb])+t(e[Sb])+C(e[Sb],Ic)+I(e[Sb])+Q(e[Sb])+K(e[Sb])+L(e[Sb]))+S(e[Sb])+R(e[Sb])}var Ef="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;fontStyle=0;startSize="+Za+";";for(ha=aa=0;ha<Rb;ha++){if(null==$b){var Zc=.75*parseInt(e.Columns[ha].width);l=parseInt(e.Columns[ha].id)||
+ha;var Tb="Column_"+l}else Zc=.75*e.PrimaryLane[ha],Tb=$b[ha];var Jc=new mxCell("",new mxGeometry(aa,0,Zc,p),Ef);aa+=Zc;Jc.vertex=!0;Gc.insert(Jc);Jc.value=m(e[Tb]);Jc.style+=b(Jc.style,e,u,Jc,G)+(G?"fontSize=13;":f(e[Tb])+q(e[Tb])+t(e[Tb])+C(e[Tb],Jc)+I(e[Tb])+Q(e[Tb])+K(e[Tb])+L(e[Tb]))+S(e[Tb])+R(e[Tb])}break;case "UMLStateBlock":if(0==e.Composite)v.style="rounded=1;arcSize=20",v.value=m(e.State,!0),v.style+=b(v.style,e,u,v,G);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=m(e.State,!0);v.style+=b(v.style,e,u,v,G);v.style+=Y(e,u).replace("fillColor","swimlaneFillColor");var zb=new mxCell("",new mxGeometry(0,25,r,p-25),"rounded=1;arcSize=20;strokeColor=none;fillColor=none");zb.value=m(e.Action,!0);zb.style+=b(zb.style,e,u,zb,G);zb.vertex=!0;v.insert(zb)}break;case "GSDFDProcessBlock":var ie=Math.round(.75*e.nameHeight);v.style="shape=swimlane;html=1;rounded=1;arcSize=10;collapsible=0;fontStyle=0;startSize="+ie;v.value=m(e.Number,!0);v.style+=b(v.style,e,u,v,
+G);v.style+=Y(e,u).replace("fillColor","swimlaneFillColor");zb=new mxCell("",new mxGeometry(0,ie,r,p-ie),"rounded=1;arcSize=10;strokeColor=none;fillColor=none");zb.value=m(e.Text,!0);zb.style+=b(zb.style,e,u,zb,G);zb.vertex=!0;v.insert(zb);break;case "AndroidDevice":if(null!=e.AndroidDeviceName){var nb=T(e,u,v);v.style="fillColor=#000000;strokeColor=#000000;";var zc=null,$c=null,ad=null;if("Tablet"==e.AndroidDeviceName||"Mini Tablet"==e.AndroidDeviceName||"custom"==e.AndroidDeviceName&&"Tablet"==
+e.CustomDeviceType)v.style+="shape=mxgraph.android.tab2;",zc=new mxCell("",new mxGeometry(.112,.077,.77*r,.85*p),nb),e.KeyboardShown&&($c=new mxCell("",new mxGeometry(.112,.727,.77*r,.2*p),"shape=mxgraph.android.keyboard;"+nb)),e.FullScreen||(ad=new mxCell("",new mxGeometry(.112,.077,.77*r,.03*p),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*p+";"+nb));else if("Large Phone"==e.AndroidDeviceName||"Phone"==e.AndroidDeviceName||"custom"==e.AndroidDeviceName&&
+"Phone"==e.CustomDeviceType)v.style+="shape=mxgraph.android.phone2;",zc=new mxCell("",new mxGeometry(.04,.092,.92*r,.816*p),nb),e.KeyboardShown&&($c=new mxCell("",new mxGeometry(.04,.708,.92*r,.2*p),"shape=mxgraph.android.keyboard;"+nb)),e.FullScreen||(ad=new mxCell("",new mxGeometry(.04,.092,.92*r,.03*p),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*p+";"+nb));zc.vertex=!0;zc.geometry.relative=!0;v.insert(zc);"Dark"==e.Scheme?zc.style+="fillColor=#111111;":
+"Light"==e.Scheme&&(zc.style+="fillColor=#ffffff;");null!=$c&&($c.vertex=!0,$c.geometry.relative=!0,v.insert($c));null!=ad&&(ad.vertex=!0,ad.geometry.relative=!0,v.insert(ad))}v.style+=b(v.style,e,u,v);break;case "AndroidAlertDialog":var ac=new mxCell("",new mxGeometry(0,0,r,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ac.vertex=!0;v.insert(ac);var Pa=new mxCell("",new mxGeometry(0,25,r,10),"shape=line;strokeColor=#33B5E5;");Pa.vertex=!0;v.insert(Pa);var rd=new mxCell("",new mxGeometry(0,
+30,r,p-30),"strokeColor=none;fillColor=none;verticalAlign=top;");rd.vertex=!0;v.insert(rd);var jb=new mxCell("",new mxGeometry(0,p-25,.5*r,25),"fillColor=none;");jb.vertex=!0;v.insert(jb);var kb=new mxCell("",new mxGeometry(.5*r,p-25,.5*r,25),"fillColor=none;");kb.vertex=!0;v.insert(kb);ac.value=m(e.DialogTitle);ac.style+=a(e.DialogTitle,G);rd.value=m(e.DialogText);rd.style+=a(e.DialogText,G);jb.value=m(e.Button_0);jb.style+=a(e.Button_0,G);kb.value=m(e.Button_1);kb.style+=a(e.Button_1,G);"Dark"==
+e.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",jb.style+="strokeColor=#353535;",kb.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",jb.style+="strokeColor=#E2E2E2;",kb.style+="strokeColor=#E2E2E2;");v.style+=b(v.style,e,u,v);break;case "AndroidDateDialog":case "AndroidTimeDialog":ac=new mxCell("",new mxGeometry(0,0,r,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ac.vertex=!0;v.insert(ac);ac.value=m(e.DialogTitle);ac.style+=a(e.DialogTitle,
+G);Pa=new mxCell("",new mxGeometry(0,25,r,10),"shape=line;strokeColor=#33B5E5;");Pa.vertex=!0;v.insert(Pa);jb=new mxCell("",new mxGeometry(0,p-25,.5*r,25),"fillColor=none;");jb.vertex=!0;v.insert(jb);jb.value=m(e.Button_0);jb.style+=a(e.Button_0,G);kb=new mxCell("",new mxGeometry(.5*r,p-25,.5*r,25),"fillColor=none;");kb.vertex=!0;v.insert(kb);kb.value=m(e.Button_1);kb.style+=a(e.Button_1,G);var bd=new mxCell("",new mxGeometry(.5*r-4,41,8,4),"shape=triangle;direction=north;");bd.vertex=!0;v.insert(bd);
+var cd=new mxCell("",new mxGeometry(.25*r-4,41,8,4),"shape=triangle;direction=north;");cd.vertex=!0;v.insert(cd);var dd=new mxCell("",new mxGeometry(.75*r-4,41,8,4),"shape=triangle;direction=north;");dd.vertex=!0;v.insert(dd);var sd=new mxCell("",new mxGeometry(.375*r,50,.2*r,15),"strokeColor=none;fillColor=none;");sd.vertex=!0;v.insert(sd);sd.value=m(e.Label_1);sd.style+=a(e.Label_1,G);var td=new mxCell("",new mxGeometry(.125*r,50,.2*r,15),"strokeColor=none;fillColor=none;");td.vertex=!0;v.insert(td);
+td.value=m(e.Label_0);td.style+=a(e.Label_0,G);var ed=null;"AndroidDateDialog"==w.Class&&(ed=new mxCell("",new mxGeometry(.625*r,50,.2*r,15),"strokeColor=none;fillColor=none;"),ed.vertex=!0,v.insert(ed),ed.value=m(e.Label_2),ed.style+=a(e.Label_2,G));var Ab=new mxCell("",new mxGeometry(.43*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Ab.vertex=!0;v.insert(Ab);var Bb=new mxCell("",new mxGeometry(.18*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Bb.vertex=!0;v.insert(Bb);var Me=new mxCell("",
+new mxGeometry(.68*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Me.vertex=!0;v.insert(Me);var ud=new mxCell("",new mxGeometry(.375*r,65,.2*r,15),"strokeColor=none;fillColor=none;");ud.vertex=!0;v.insert(ud);ud.value=m(e.Label_4);ud.style+=a(e.Label_4,G);var fd=null;"AndroidTimeDialog"==w.Class&&(fd=new mxCell("",new mxGeometry(.3*r,65,.1*r,15),"strokeColor=none;fillColor=none;"),fd.vertex=!0,v.insert(fd),fd.value=m(e.Label_Colon),fd.style+=a(e.Label_Colon,G));var vd=new mxCell("",new mxGeometry(.125*
+r,65,.2*r,15),"strokeColor=none;fillColor=none;");vd.vertex=!0;v.insert(vd);vd.value=m(e.Label_3);vd.style+=a(e.Label_3,G);var wd=new mxCell("",new mxGeometry(.625*r,65,.2*r,15),"strokeColor=none;fillColor=none;");wd.vertex=!0;v.insert(wd);wd.value=m(e.Label_5);wd.style+=a(e.Label_5,G);var Ne=new mxCell("",new mxGeometry(.43*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Ne.vertex=!0;v.insert(Ne);var Oe=new mxCell("",new mxGeometry(.18*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Oe.vertex=
+!0;v.insert(Oe);var Pe=new mxCell("",new mxGeometry(.68*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Pe.vertex=!0;v.insert(Pe);var xd=new mxCell("",new mxGeometry(.375*r,80,.2*r,15),"strokeColor=none;fillColor=none;");xd.vertex=!0;v.insert(xd);xd.value=m(e.Label_7);xd.style+=a(e.Label_7,G);var yd=new mxCell("",new mxGeometry(.125*r,80,.2*r,15),"strokeColor=none;fillColor=none;");yd.vertex=!0;v.insert(yd);yd.value=m(e.Label_6);yd.style+=a(e.Label_6,G);var zd=new mxCell("",new mxGeometry(.625*
+r,80,.2*r,15),"strokeColor=none;fillColor=none;");zd.vertex=!0;v.insert(zd);zd.value=m(e.Label_8);zd.style+=a(e.Label_8,G);var gd=new mxCell("",new mxGeometry(.5*r-4,99,8,4),"shape=triangle;direction=south;");gd.vertex=!0;v.insert(gd);var hd=new mxCell("",new mxGeometry(.25*r-4,99,8,4),"shape=triangle;direction=south;");hd.vertex=!0;v.insert(hd);var id=new mxCell("",new mxGeometry(.75*r-4,99,8,4),"shape=triangle;direction=south;");id.vertex=!0;v.insert(id);"Dark"==e.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",
+jb.style+="strokeColor=#353535;",kb.style+="strokeColor=#353535;",bd.style+="strokeColor=none;fillColor=#7E7E7E;",cd.style+="strokeColor=none;fillColor=#7E7E7E;",dd.style+="strokeColor=none;fillColor=#7E7E7E;",gd.style+="strokeColor=none;fillColor=#7E7E7E;",hd.style+="strokeColor=none;fillColor=#7E7E7E;",id.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",jb.style+="strokeColor=#E2E2E2;",kb.style+="strokeColor=#E2E2E2;",bd.style+="strokeColor=none;fillColor=#939393;",
+cd.style+="strokeColor=none;fillColor=#939393;",dd.style+="strokeColor=none;fillColor=#939393;",gd.style+="strokeColor=none;fillColor=#939393;",hd.style+="strokeColor=none;fillColor=#939393;",id.style+="strokeColor=none;fillColor=#939393;");v.style+=b(v.style,e,u,v);break;case "AndroidListItems":var Cb=p,Ac=0;if(e.ShowHeader){Ac=8;var Pc=new mxCell("",new mxGeometry(0,0,r,Ac),"strokeColor=none;fillColor=none;");Pc.vertex=!0;v.insert(Pc);Pc.value=m(e.Header);Pc.style+=a(e.Header,G);Cb-=Ac;var Qe=new mxCell("",
+new mxGeometry(0,Ac-2,r,4),"shape=line;strokeColor=#999999;");Qe.vertex=!0;v.insert(Qe)}var bc=parseInt(e.Items);0<bc&&(Cb/=bc);var X=[];Pa=[];for(l=0;l<bc;l++)X[l]=new mxCell("",new mxGeometry(0,Ac+l*Cb,r,Cb),"strokeColor=none;fillColor=none;"),X[l].vertex=!0,v.insert(X[l]),X[l].value=m(e["Item_"+l]),X[l].style+=a(e["Item_"+l],G),0<l&&(Pa[l]=new mxCell("",new mxGeometry(0,Ac+l*Cb-2,r,4),"shape=line;"),Pa[l].vertex=!0,v.insert(Pa[l]),Pa[l].style="Dark"==e.Scheme?Pa[l].style+"strokeColor=#ffffff;":
+Pa[l].style+"strokeColor=#D9D9D9;");v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";v.style+=b(v.style,e,u,v);break;case "AndroidTabs":var cc=parseInt(e.Tabs),Hb=r;0<cc&&(Hb/=cc);var Ua=[];Pa=[];for(l=0;l<cc;l++)Ua[l]=new mxCell("",new mxGeometry(l*Hb,0,Hb,p),"strokeColor=none;fillColor=none;"),Ua[l].vertex=!0,v.insert(Ua[l]),Ua[l].value=m(e["Tab_"+l]),Ua[l].style+=a(e["Tab_"+l],G),0<l&&(Pa[l]=new mxCell("",new mxGeometry(l*Hb-2,
+.2*p,4,.6*p),"shape=line;direction=north;"),Pa[l].vertex=!0,v.insert(Pa[l]),Pa[l].style="Dark"==e.Scheme?Pa[l].style+"strokeColor=#484848;":Pa[l].style+"strokeColor=#CCCCCC;");var Re=new mxCell("",new mxGeometry(e.Selected*Hb+2,p-3,Hb-4,3),"strokeColor=none;fillColor=#33B5E5;");Re.vertex=!0;v.insert(Re);v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";v.style+=b(v.style,e,u,v);break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(aa),
+Math.round(ba+.25*p),Math.round(r),Math.round(.5*p)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;var Ad=new mxCell("",new mxGeometry(0,0,r*e.BarPosition,Math.round(.5*p)),"strokeColor=none;fillColor=#33B5E5;");Ad.vertex=!0;v.insert(Ad);v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#474747;":v.style+"strokeColor=none;fillColor=#BBBBBB;";v.style+=b(v.style,e,u,v);break;case "AndroidImageBlock":v.style="Dark"==e.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+=b(v.style,e,u,v);break;case "AndroidTextBlock":v.style="Dark"==e.Scheme?e.ShowBorder?v.style+"fillColor=#111111;strokeColor=#ffffff;":v.style+"fillColor=#111111;strokeColor=none;":e.ShowBorder?v.style+"fillColor=#ffffff;strokeColor=#000000;":v.style+"fillColor=#ffffff;strokeColor=none;";v.value=m(e.Label);v.style+=a(e.Label,G);v.style+=b(v.style,e,u,v,G);break;case "AndroidActionBar":v.style+="strokeColor=none;";
+switch(e.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(e.HighlightShow){var Bc=null;Bc=e.HighlightTop?new mxCell("",new mxGeometry(0,0,r,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,p-2,r,2),"strokeColor=none;");Bc.vertex=!0;v.insert(Bc);switch(e.HighlightColor){case "Blue":Bc.style+="fillColor=#33B5E5;";break;case "Dark Gray":Bc.style+=
+"fillColor=#B0B0B0;";break;case "White":Bc.style+="fillColor=#ffffff;"}}if(e.VlignShow){var jd=new mxCell("",new mxGeometry(20,5,2,p-10),"shape=line;direction=north;");jd.vertex=!0;v.insert(jd);switch(e.VlignColor){case "Blue":jd.style+="strokeColor=#244C5A;";break;case "White":jd.style+="strokeColor=#ffffff;"}}v.style+=b(v.style,e,u,v);break;case "AndroidButton":v.value=m(e.Label);v.style+=a(e.Label,G)+"shape=partialRectangle;left=0;right=0;";v.style="Dark"==e.Scheme?v.style+"fillColor=#474747;strokeColor=#C6C5C6;bottom=0;":
+v.style+"fillColor=#DFE0DF;strokeColor=#C6C5C6;top=0;";v.style+=b(v.style,e,u,v);break;case "AndroidTextBox":v.value=m(e.Label);v.style+=a(e.Label,G);var Bd=new mxCell("",new mxGeometry(2,p-6,r-4,4),"shape=partialRectangle;top=0;fillColor=none;");Bd.vertex=!0;v.insert(Bd);v.style="Dark"==e.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";Bd.style=e.TextFocused?Bd.style+"strokeColor=#33B5E5;":Bd.style+"strokeColor=#A9A9A9;";v.style+=b(v.style,e,u,v);
+break;case "AndroidRadioButton":var Qc=null;e.Checked&&(Qc=new mxCell("",new mxGeometry(.15*r,.15*p,.7*r,.7*p),"ellipse;fillColor=#33B5E5;strokeWidth=1;"),Qc.vertex=!0,v.insert(Qc));"Dark"==e.Scheme?(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;strokeColor=#272727;",e.Checked?(Qc.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;fillColor=#ffffff;strokeColor=#5C5C5C;",e.Checked&&
+(Qc.style+="strokeColor=#999999;"));v.style+=b(v.style,e,u,v);break;case "AndroidCheckBox":var je=null;e.Checked&&(je=new mxCell("",new mxGeometry(.25*r,.05*-p,r,.8*p),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),je.vertex=!0,v.insert(je));v.style="Dark"==e.Scheme?v.style+"strokeWidth=1;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=1;strokeColor=#5C5C5C;fillColor=#ffffff;";v.style+=b(v.style,e,u,v);break;case "AndroidToggle":v.style="Dark"==e.Scheme?e.Checked?
+v.style+"shape=mxgraph.android.switch_on;fillColor=#666666;":v.style+"shape=mxgraph.android.switch_off;fillColor=#666666;":e.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";v.style+=b(v.style,e,u,v);break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+e.BarPosition+";fillColor=#33b5e5;";v.style+=b(v.style,e,u,v);break;case "iOSSegmentedControl":cc=parseInt(e.Tabs);Hb=r;v.style+="strokeColor=none;fillColor=none;";
+0<cc&&(Hb/=cc);Ua=[];Pa=[];for(l=0;l<cc;l++)Ua[l]=new mxCell("",new mxGeometry(l*Hb,0,Hb,p),"strokeColor="+e.FillColor+";"),Ua[l].vertex=!0,v.insert(Ua[l]),Ua[l].value=m(e["Tab_"+l]),Ua[l].style+=a(e["Tab_"+l],G),Ua[l].style=e.Selected==l?Ua[l].style+Y(e,u):Ua[l].style+"fillColor=none;";v.style+=b(v.style,e,u,v);break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+e.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*e.BarPosition+";";v.style+=b(v.style,e,u,v);break;case "iOSProgressBar":v=
+new mxCell("",new mxGeometry(Math.round(aa),Math.round(ba+.25*p),Math.round(r),Math.round(.5*p)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");v.vertex=!0;Ad=new mxCell("",new mxGeometry(0,0,r*e.BarPosition,Math.round(.5*p)),"strokeColor=none;"+Y(e,u));Ad.vertex=!0;v.insert(Ad);v.style+=b(v.style,e,u,v);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;strokeColor=#D6D6D6;";v.style+=b(v.style,e,u,v);break;case "iOSStatusBar":v.style+=
+"shape=mxgraph.ios7ui.appBar;strokeColor=#000000;";var Da=new mxCell(m(e.Text),new mxGeometry(.35*r,0,.3*r,p),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.style+=a(e.Text,G);var Db=new mxCell(m(e.Carrier),new mxGeometry(.09*r,0,.2*r,p),"strokeColor=none;fillColor=none;");Db.vertex=!0;v.insert(Db);Db.style+=a(e.Carrier,G);v.style+=b(v.style,e,u,v);break;case "iOSSearchBar":v.value=m(e.Search);v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v,G)+a(e.Search,G);var Ia=new mxCell("",
+new mxGeometry(.3*r,.3*p,.4*p,.4*p),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");Ia.vertex=!0;v.insert(Ia);break;case "iOSNavBar":v.value=m(e.Title);v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+a(e.Title,G);v.style+=b(v.style,e,u,v,G);Da=new mxCell(m(e.LeftText),new mxGeometry(.03*r,0,.3*r,p),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.style+=a(e.LeftText,G);Db=new mxCell(m(e.RightText),new mxGeometry(.65*r,0,.3*
+r,p),"strokeColor=none;fillColor=none;");Db.vertex=!0;v.insert(Db);Db.style+=a(e.RightText,G);Ia=new mxCell("",new mxGeometry(.02*r,.2*p,.3*p,.5*p),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");Ia.vertex=!0;v.insert(Ia);break;case "iOSTabs":cc=parseInt(e.Tabs);Hb=r;v.style+="shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;";v.style+=b(v.style,e,u,v);0<cc&&(Hb/=cc);Ua=[];Pa=[];for(l=0;l<cc;l++)Ua[l]=new mxCell("",new mxGeometry(l*Hb,0,Hb,p),"strokeColor=none;"),
+Ua[l].vertex=!0,v.insert(Ua[l]),Ua[l].value=m(e["Tab_"+l]),Ua[l].style+=G?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+mb:f(e["Tab_"+l])+k(e["Tab_"+l])+q(e["Tab_"+l])+t(e["Tab_"+l])+C(e["Tab_"+l])+I(e["Tab_"+l])+Q(e["Tab_"+l])+K(e["Tab_"+l])+L(e["Tab_"+l])+S(e["Tab_"+l]),Ua[l].style+="verticalAlign=bottom;",Ua[l].style=e.Selected==l?Ua[l].style+"fillColor=#BBBBBB;":Ua[l].style+"fillColor=none;";break;case "iOSDatePicker":var dc=new mxCell("",new mxGeometry(0,0,.5*r,.2*p),"strokeColor=none;fillColor=none;");
+dc.vertex=!0;v.insert(dc);dc.value=m(e.Option11);dc.style+=a(e.Option11,G);var ec=new mxCell("",new mxGeometry(.5*r,0,.15*r,.2*p),"strokeColor=none;fillColor=none;");ec.vertex=!0;v.insert(ec);ec.value=m(e.Option21);ec.style+=a(e.Option21,G);var fc=new mxCell("",new mxGeometry(.65*r,0,.15*r,.2*p),"strokeColor=none;fillColor=none;");fc.vertex=!0;v.insert(fc);fc.value=m(e.Option31);fc.style+=a(e.Option31,G);var gc=new mxCell("",new mxGeometry(0,.2*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");gc.vertex=
+!0;v.insert(gc);gc.value=m(e.Option12);gc.style+=a(e.Option12,G);var hc=new mxCell("",new mxGeometry(.5*r,.2*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");hc.vertex=!0;v.insert(hc);hc.value=m(e.Option22);hc.style+=a(e.Option22,G);var ic=new mxCell("",new mxGeometry(.65*r,.2*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");ic.vertex=!0;v.insert(ic);ic.value=m(e.Option32);ic.style+=a(e.Option32,G);var rb=new mxCell("",new mxGeometry(0,.4*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");rb.vertex=
+!0;v.insert(rb);rb.value=m(e.Option13);rb.style+=a(e.Option13,G);var sb=new mxCell("",new mxGeometry(.5*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=m(e.Option23);sb.style+=a(e.Option23,G);var jc=new mxCell("",new mxGeometry(.65*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");jc.vertex=!0;v.insert(jc);jc.value=m(e.Option33);jc.style+=a(e.Option33,G);var tb=new mxCell("",new mxGeometry(.8*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");tb.vertex=
+!0;v.insert(tb);tb.value=m(e.Option43);tb.style+=a(e.Option43,G);var ub=new mxCell("",new mxGeometry(0,.6*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option14);ub.style+=a(e.Option14,G);var kc=new mxCell("",new mxGeometry(.5*r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");kc.vertex=!0;v.insert(kc);kc.value=m(e.Option24);kc.style+=a(e.Option24,G);var lc=new mxCell("",new mxGeometry(.65*r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");lc.vertex=
+!0;v.insert(lc);lc.value=m(e.Option34);lc.style+=a(e.Option34,G);var mc=new mxCell("",new mxGeometry(.8*r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");mc.vertex=!0;v.insert(mc);mc.value=m(e.Option44);mc.style+=a(e.Option44,G);var vb=new mxCell("",new mxGeometry(0,.8*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");vb.vertex=!0;v.insert(vb);vb.value=m(e.Option15);vb.style+=a(e.Option15,G);var nc=new mxCell("",new mxGeometry(.5*r,.8*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");nc.vertex=
+!0;v.insert(nc);nc.value=m(e.Option25);nc.style+=a(e.Option25,G);var oc=new mxCell("",new mxGeometry(.65*r,.8*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");oc.vertex=!0;v.insert(oc);oc.value=m(e.Option35);oc.style+=a(e.Option35,G);Ab=new mxCell("",new mxGeometry(0,.4*p-2,r,4),"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);Bb=new mxCell("",new mxGeometry(0,.6*p-2,r,4),"shape=line;strokeColor=#888888;");Bb.vertex=!0;v.insert(Bb);v.style+="strokeColor=none;";v.style+=b(v.style,e,u,
+v);break;case "iOSTimePicker":dc=new mxCell("",new mxGeometry(0,0,.25*r,.2*p),"strokeColor=none;fillColor=none;");dc.vertex=!0;v.insert(dc);dc.value=m(e.Option11);dc.style+=a(e.Option11,G);ec=new mxCell("",new mxGeometry(.25*r,0,.3*r,.2*p),"strokeColor=none;fillColor=none;");ec.vertex=!0;v.insert(ec);ec.value=m(e.Option21);ec.style+=a(e.Option21,G);gc=new mxCell("",new mxGeometry(0,.2*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");gc.vertex=!0;v.insert(gc);gc.value=m(e.Option12);gc.style+=a(e.Option12,
+G);hc=new mxCell("",new mxGeometry(.25*r,.2*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");hc.vertex=!0;v.insert(hc);hc.value=m(e.Option22);hc.style+=a(e.Option22,G);rb=new mxCell("",new mxGeometry(0,.4*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");rb.vertex=!0;v.insert(rb);rb.value=m(e.Option13);rb.style+=a(e.Option13,G);sb=new mxCell("",new mxGeometry(.25*r,.4*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=m(e.Option23);sb.style+=a(e.Option23,G);tb=new mxCell("",
+new mxGeometry(.7*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=m(e.Option33);tb.style+=a(e.Option33,G);ub=new mxCell("",new mxGeometry(0,.6*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option14);ub.style+=a(e.Option14,G);kc=new mxCell("",new mxGeometry(.25*r,.6*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");kc.vertex=!0;v.insert(kc);kc.value=m(e.Option24);kc.style+=a(e.Option24,G);mc=new mxCell("",new mxGeometry(.7*
+r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");mc.vertex=!0;v.insert(mc);mc.value=m(e.Option34);mc.style+=a(e.Option34,G);vb=new mxCell("",new mxGeometry(0,.8*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");vb.vertex=!0;v.insert(vb);vb.value=m(e.Option15);vb.style+=a(e.Option15,G);nc=new mxCell("",new mxGeometry(.25*r,.8*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");nc.vertex=!0;v.insert(nc);nc.value=m(e.Option25);nc.style+=a(e.Option25,G);Ab=new mxCell("",new mxGeometry(0,.4*p-2,r,4),
+"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);Bb=new mxCell("",new mxGeometry(0,.6*p-2,r,4),"shape=line;strokeColor=#888888;");Bb.vertex=!0;v.insert(Bb);v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v);break;case "iOSCountdownPicker":fc=new mxCell("",new mxGeometry(.45*r,0,.2*r,.2*p),"strokeColor=none;fillColor=none;");fc.vertex=!0;v.insert(fc);fc.value=m(e.Option31);fc.style+=a(e.Option31,G);ic=new mxCell("",new mxGeometry(.45*r,.2*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");
+ic.vertex=!0;v.insert(ic);ic.value=m(e.Option32);ic.style+=a(e.Option32,G);rb=new mxCell("",new mxGeometry(0,.4*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");rb.vertex=!0;v.insert(rb);rb.value=m(e.Option13);rb.style+=a(e.Option13,G);sb=new mxCell("",new mxGeometry(.2*r,.4*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=m(e.Option23);sb.style+=a(e.Option23,G);jc=new mxCell("",new mxGeometry(.45*r,.4*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");jc.vertex=
+!0;v.insert(jc);jc.value=m(e.Option33);jc.style+=a(e.Option33,G);tb=new mxCell("",new mxGeometry(.6*r,.4*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=m(e.Option43);tb.style+=a(e.Option43,G);ub=new mxCell("",new mxGeometry(0,.6*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option14);ub.style+=a(e.Option14,G);lc=new mxCell("",new mxGeometry(.45*r,.6*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");lc.vertex=!0;v.insert(lc);
+lc.value=m(e.Option34);lc.style+=a(e.Option34,G);vb=new mxCell("",new mxGeometry(0,.8*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");vb.vertex=!0;v.insert(vb);vb.value=m(e.Option15);vb.style+=a(e.Option15,G);oc=new mxCell("",new mxGeometry(.45*r,.8*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");oc.vertex=!0;v.insert(oc);oc.value=m(e.Option35);oc.style+=a(e.Option35,G);Ab=new mxCell("",new mxGeometry(0,.4*p-2,r,4),"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);Bb=new mxCell("",new mxGeometry(0,
+.6*p-2,r,4),"shape=line;strokeColor=#888888;");Bb.vertex=!0;v.insert(Bb);v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v);break;case "iOSBasicCell":v.value=m(e.text);v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+.75*e.SeparatorInset+";";v.style+=(G?"fontSize=13;":f(e.text)+q(e.text)+t(e.text))+R(e.text);v.style+=b(v.style,e,u,v,G);switch(e.AccessoryIndicatorType){case "Disclosure":Ia=new mxCell("",new mxGeometry(.91*
+r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);break;case "DetailDisclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);var ab=new mxCell("",new mxGeometry(.79*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);break;case "DetailIndicator":ab=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,
+.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);break;case "CheckMark":Ia=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Ia.vertex=!0,v.insert(Ia)}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*e.SeparatorInset+";";v.value=m(e.subtext);v.style+=
+G?"fontSize=13;":f(e.subtext)+q(e.subtext)+t(e.subtext);v.style+=b(v.style,e,u,v,G);var db=new mxCell("",new mxGeometry(0,.4*p,r,.6*p),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+.75*e.SeparatorInset+";");db.vertex=!0;v.insert(db);db.value=m(e.text);db.style+=G?"html=1;fontSize=13;"+mb:f(e.text)+k(e.text)+q(e.text)+t(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");
+Ia.vertex=!0;v.insert(Ia);break;case "DetailDisclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);ab=new mxCell("",new mxGeometry(.79*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);break;case "DetailIndicator":ab=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
+ab.vertex=!0;v.insert(ab);break;case "CheckMark":Ia=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Ia.vertex=!0,v.insert(Ia)}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*e.SeparatorInset+";";v.value=m(e.subtext);v.style+=G?"fontSize=13;":f(e.subtext)+q(e.subtext)+t(e.subtext);v.style+=b(v.style,
+e,u,v,G);db=null;switch(e.AccessoryIndicatorType){case "Disclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);db=new mxCell("",new mxGeometry(.55*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);ab=new mxCell("",new mxGeometry(.79*
+r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);db=new mxCell("",new mxGeometry(.45*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailIndicator":ab=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);db=new mxCell("",new mxGeometry(.52*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");
+break;case "CheckMark":Ia=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;");Ia.vertex=!0;v.insert(Ia);db=new mxCell("",new mxGeometry(.55*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:db=new mxCell("",new mxGeometry(.65*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;")}db.vertex=!0;v.insert(db);db.value=m(e.text);db.style+=G?"html=1;fontSize=13;"+mb:f(e.text)+k(e.text)+
+q(e.text)+t(e.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";v.style+=b(v.style,e,u,v);var Ub=new mxCell("",new mxGeometry(0,0,.25*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");Ub.vertex=!0;v.insert(Ub);Ub.value=m(e.subtext);Ub.style+=G?"html=1;fontSize=13;"+mb:f(e.subtext)+k(e.subtext)+q(e.subtext)+t(e.subtext);db=new mxCell("",new mxGeometry(.25*r,0,.5*r,p),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");
+db.vertex=!0;v.insert(db);db.value=m(e.text);db.style+=G?"html=1;fontSize=13;"+mb:f(e.text)+k(e.text)+q(e.text)+t(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);break;case "DetailDisclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);ab=new mxCell("",new mxGeometry(.79*
+r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);break;case "DetailIndicator":ab=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);break;case "CheckMark":Ia=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Ia.vertex=!0,v.insert(Ia)}break;case "iOSTableGroupedSectionBreak":v.style+=
+"shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";Da=new mxCell("",new mxGeometry(0,0,r,.4*p),"fillColor=none;strokeColor=none;spacing=10;align=left;");Da.vertex=!0;v.insert(Da);Da.value=m(e.text);Da.style+=G?"html=1;fontSize=13;"+mb:f(e.text)+k(e.text)+q(e.text)+t(e.text);Db=new mxCell("",new mxGeometry(0,.6*p,r,.4*p),"fillColor=none;strokeColor=none;spacing=10;align=left;");Db.vertex=!0;v.insert(Db);Db.value=m(e["bottom-text"]);Db.style+=G?"html=1;fontSize=13;"+mb:f(e["bottom-text"])+
+k(e["bottom-text"])+q(e["bottom-text"])+t(e["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";v.value=m(e.text);v.style+=G?"fontSize=13;":f(e.text)+q(e.text)+t(e.text);v.style+=b(v.style,e,u,v,G);break;case "SMPage":if(e.Group){v.style+="strokeColor=none;fillColor=none;";var x=new mxCell("",new mxGeometry(0,0,.9*r,.9*p),"rounded=1;arcSize=3;part=1;");x.vertex=!0;v.insert(x);x.style+=H(e,u)+Y(e,u)+M(e,u,x)+ca(e)+
+oa(e);var E=new mxCell("",new mxGeometry(.1*r,.1*p,.9*r,.9*p),"rounded=1;arcSize=3;part=1;");E.vertex=!0;v.insert(E);E.value=m(e.Text);E.style+=H(e,u)+Y(e,u)+M(e,u,E)+ca(e)+oa(e)+a(e,G);e.Future&&(x.style+="dashed=1;fixDash=1;",E.style+="dashed=1;fixDash=1;")}else v.style+="rounded=1;arcSize=3;",e.Future&&(v.style+="dashed=1;fixDash=1;"),v.value=m(e.Text),v.style+=H(e,u)+Y(e,u)+M(e,u,v)+ca(e)+oa(e)+a(e,G);v.style+=b(v.style,e,u,v,G);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":x=
null;switch(w.Class){case "SMHome":x=new mxCell("",new mxGeometry(.5*r-.4*p,.1*p,.8*p,.8*p),"part=1;shape=mxgraph.office.concepts.home;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMPrint":x=new mxCell("",new mxGeometry(.5*r-.4*p,.19*p,.8*p,.62*p),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":x=new mxCell("",new mxGeometry(.5*r-.4*p,.1*p,.8*p,.8*p),"part=1;shape=mxgraph.office.concepts.search;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMSettings":x=new mxCell("",new mxGeometry(.5*r-.35*p,.15*p,.7*p,.7*p),"part=1;shape=mxgraph.mscae.enterprise.settings;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSitemap":x=new mxCell("",new mxGeometry(.5*r-.35*p,.2*p,.7*p,.6*p),"part=1;shape=mxgraph.office.sites.site_collection;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSuccess":x=new mxCell("",new mxGeometry(.5*r-.3*p,.25*p,.6*p,.5*p),"part=1;shape=mxgraph.mscae.general.checkmark;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMVideo":x=new mxCell("",new mxGeometry(.5*r-.4*p,.2*p,.8*p,.6*p),"part=1;shape=mxgraph.office.concepts.video_play;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMAudio":x=new mxCell("",new mxGeometry(.5*r-.3*p,.2*p,.6*p,.6*p),"part=1;shape=mxgraph.mscae.general.audio;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMCalendar":x=new mxCell("",new mxGeometry(.5*r-.4*p,.15*p,.8*p,.7*p),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
-break;case "SMChart":var Y=ba(e,u);Y=""==Y?"#ffffff;":Y.replace("fillColor=","");x=new mxCell("",new mxGeometry(.5*r-.35*p,.15*p,.7*p,.7*p),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+Y);break;case "SMCloud":x=new mxCell("",new mxGeometry(.5*r-.4*p,.27*p,.8*p,.46*p),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":x=new mxCell("",new mxGeometry(.5*r-.25*p,.15*p,.5*p,.7*p),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
+break;case "SMChart":var Z=Y(e,u);Z=""==Z?"#ffffff;":Z.replace("fillColor=","");x=new mxCell("",new mxGeometry(.5*r-.35*p,.15*p,.7*p,.7*p),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+Z);break;case "SMCloud":x=new mxCell("",new mxGeometry(.5*r-.4*p,.27*p,.8*p,.46*p),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":x=new mxCell("",new mxGeometry(.5*r-.25*p,.15*p,.5*p,.7*p),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMForm":x=new mxCell("",new mxGeometry(.5*r-.4*p,.15*p,.8*p,.7*p),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMGame":x=new mxCell("",new mxGeometry(.5*r-.4*p,.2*p,.8*p,.6*p),"part=1;shape=mxgraph.mscae.general.game_controller;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMUpload":x=new mxCell("",new mxGeometry(.5*r-.4*p,.2*p,.8*p,.6*p),"part=1;shape=mxgraph.mscae.enterprise.backup_online;fillColor=#e6e6e6;opacity=50;strokeColor=none;")}x.vertex=
-!0;v.insert(x);x.value=m(e.Text);x.style+=a(e,G);v.style+=b(v.style,e,u,v);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";x=new mxCell("",new mxGeometry(.1*r,0,.9*r,.9*p),"part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("",new mxGeometry(0,.1*p,.9*r,.9*p),"part=1;");E.vertex=!0;v.insert(E);E.value=m(e.Text);E.style+=a(e.Text,G);E.style+=b(E.style,e,u,E,G);break;case "UMLConstraintBlock":var Bc=new mxCell("",new mxGeometry(0,0,.25*p,p),"shape=curlyBracket;rounded=1;");
-Bc.vertex=!0;v.insert(Bc);var Cc=new mxCell("",new mxGeometry(r-.25*p,0,.25*p,p),"shape=curlyBracket;rounded=1;flipH=1;");Cc.vertex=!0;v.insert(Cc);na=new mxCell("",new mxGeometry(.25*p,0,r-.5*p,p),"strokeColor=none;fillColor=none;");na.vertex=!0;na.value=m(e);v.insert(na);v.style="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);Bc.style+=Q(e,u,Bc);Cc.style+=Q(e,u,Cc);na.style+=q(e,na);Bc.style+=b(Bc.style,e,u,Bc);Cc.style+=b(Cc.style,e,u,Cc);na.style+=b(na.style,e,u,na,G);break;case "UMLTextBlock":v.value=
-m(e.Text);v.style+="strokeColor=none;"+a(e.Text,G);v.style+=b(v.style,e,u,v,G);break;case "UMLProvidedInterfaceBlock":case "UMLProvidedInterfaceBlockV2":mb=ca(e,u,v);e.Rotatio=null;var Vb=b(v.style,e,u,v,G);-1==Vb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Vb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Vb);v.style="group;dropTarget=0;pointerEvents=0;"+mb;var Td=.8*r,Ff=r-Td,Qc=new mxCell("",new mxGeometry(.2,0,Td,p),"shape=ellipse;"+Vb);Qc.vertex=!0;Qc.geometry.relative=!0;v.insert(Qc);Qa=new mxCell("",new mxGeometry(0,
-.5,Ff,1),"line;"+Vb);Qa.geometry.relative=!0;Qa.vertex=!0;v.insert(Qa);break;case "UMLComponentBoxBlock":case "UMLComponentBoxBlockV2":v.value=m(e);v.style="html=1;dropTarget=0;"+b(v.style,e,u,v,G);var nb=new mxCell("",new mxGeometry(1,0,15,15),"shape=component;jettyWidth=8;jettyHeight=4;");nb.geometry.relative=!0;nb.geometry.offset=new mxPoint(-20,5);nb.vertex=!0;v.insert(nb);break;case "UMLAssemblyConnectorBlock":case "UMLAssemblyConnectorBlockV2":mb=ca(e,u,v);e.Rotatio=null;Vb=b(v.style,e,u,v,
-G);-1==Vb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Vb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Vb);v.style="group;dropTarget=0;pointerEvents=0;"+mb;var Re=.225*r,Se=.1*r;Td=r-Re-Se;Qc=new mxCell("",new mxGeometry(.225,0,Td,p),"shape=providedRequiredInterface;verticalLabelPosition=bottom;"+Vb);Qc.vertex=!0;Qc.geometry.relative=!0;v.insert(Qc);zb=new mxCell("",new mxGeometry(0,.5,Re,1),"line;"+Vb);zb.geometry.relative=!0;zb.vertex=!0;v.insert(zb);Ab=new mxCell("",new mxGeometry(.9,.5,Se,1),"line;"+Vb);Ab.geometry.relative=
-!0;Ab.vertex=!0;v.insert(Ab);break;case "BPMNActivity":v.value=m(e.Text);switch(e.bpmnActivityType){case 1:v.style+=a(e.Text,G);break;case 2:v.style+="shape=ext;double=1;"+a(e.Text,G);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 5;"+a(e.Text,G);break;case 4:v.style+="shape=ext;strokeWidth=2;"+a(e.Text,G)}if(0!=e.bpmnTaskType){switch(e.bpmnTaskType){case 1:x=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");x.geometry.offset=new mxPoint(4,7);break;case 2:x=new mxCell("",new mxGeometry(0,
+!0;v.insert(x);x.value=m(e.Text);x.style+=a(e,G);v.style+=b(v.style,e,u,v);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";x=new mxCell("",new mxGeometry(.1*r,0,.9*r,.9*p),"part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("",new mxGeometry(0,.1*p,.9*r,.9*p),"part=1;");E.vertex=!0;v.insert(E);E.value=m(e.Text);E.style+=a(e.Text,G);E.style+=b(E.style,e,u,E,G);break;case "UMLConstraintBlock":var Cc=new mxCell("",new mxGeometry(0,0,.25*p,p),"shape=curlyBracket;rounded=1;");
+Cc.vertex=!0;v.insert(Cc);var Dc=new mxCell("",new mxGeometry(r-.25*p,0,.25*p,p),"shape=curlyBracket;rounded=1;flipH=1;");Dc.vertex=!0;v.insert(Dc);pa=new mxCell("",new mxGeometry(.25*p,0,r-.5*p,p),"strokeColor=none;fillColor=none;");pa.vertex=!0;pa.value=m(e);v.insert(pa);v.style="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);Cc.style+=M(e,u,Cc);Dc.style+=M(e,u,Dc);pa.style+=q(e,pa);Cc.style+=b(Cc.style,e,u,Cc);Dc.style+=b(Dc.style,e,u,Dc);pa.style+=b(pa.style,e,u,pa,G);break;case "UMLTextBlock":v.value=
+m(e.Text);v.style+="strokeColor=none;"+a(e.Text,G);v.style+=b(v.style,e,u,v,G);break;case "UMLProvidedInterfaceBlock":case "UMLProvidedInterfaceBlockV2":nb=T(e,u,v);e.Rotatio=null;var Vb=b(v.style,e,u,v,G);-1==Vb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Vb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Vb);v.style="group;dropTarget=0;pointerEvents=0;"+nb;var Ud=.8*r,Ff=r-Ud,Rc=new mxCell("",new mxGeometry(.2,0,Ud,p),"shape=ellipse;"+Vb);Rc.vertex=!0;Rc.geometry.relative=!0;v.insert(Rc);Pa=new mxCell("",new mxGeometry(0,
+.5,Ff,1),"line;"+Vb);Pa.geometry.relative=!0;Pa.vertex=!0;v.insert(Pa);break;case "UMLComponentBoxBlock":case "UMLComponentBoxBlockV2":v.value=m(e);v.style="html=1;dropTarget=0;"+b(v.style,e,u,v,G);var ob=new mxCell("",new mxGeometry(1,0,15,15),"shape=component;jettyWidth=8;jettyHeight=4;");ob.geometry.relative=!0;ob.geometry.offset=new mxPoint(-20,5);ob.vertex=!0;v.insert(ob);break;case "UMLAssemblyConnectorBlock":case "UMLAssemblyConnectorBlockV2":nb=T(e,u,v);e.Rotatio=null;Vb=b(v.style,e,u,v,G);
+-1==Vb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Vb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Vb);v.style="group;dropTarget=0;pointerEvents=0;"+nb;var Se=.225*r,Te=.1*r;Ud=r-Se-Te;Rc=new mxCell("",new mxGeometry(.225,0,Ud,p),"shape=providedRequiredInterface;verticalLabelPosition=bottom;"+Vb);Rc.vertex=!0;Rc.geometry.relative=!0;v.insert(Rc);Ab=new mxCell("",new mxGeometry(0,.5,Se,1),"line;"+Vb);Ab.geometry.relative=!0;Ab.vertex=!0;v.insert(Ab);Bb=new mxCell("",new mxGeometry(.9,.5,Te,1),"line;"+Vb);Bb.geometry.relative=
+!0;Bb.vertex=!0;v.insert(Bb);break;case "BPMNActivity":v.value=m(e.Text);switch(e.bpmnActivityType){case 1:v.style+=a(e.Text,G);break;case 2:v.style+="shape=ext;double=1;"+a(e.Text,G);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 5;"+a(e.Text,G);break;case 4:v.style+="shape=ext;strokeWidth=2;"+a(e.Text,G)}if(0!=e.bpmnTaskType){switch(e.bpmnTaskType){case 1:x=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");x.geometry.offset=new mxPoint(4,7);break;case 2:x=new mxCell("",new mxGeometry(0,
0,19,12),"shape=message;");x.geometry.offset=new mxPoint(4,7);break;case 3:x=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");x.geometry.offset=new mxPoint(4,5);break;case 4:x=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");x.geometry.offset=new mxPoint(4,7);break;case 5:x=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");x.geometry.offset=new mxPoint(4,7);break;case 6:x=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");
-x.geometry.offset=new mxPoint(4,5);break;case 7:x=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),x.geometry.offset=new mxPoint(4,5)}if(1==e.bpmnTaskType){var Rc=ba(e,u);Y=J(e,u);Y=Y.replace("strokeColor","fillColor");Rc=Rc.replace("fillColor","strokeColor");""==Y&&(Y="fillColor=#000000;");""==Rc&&(Rc="strokeColor=#ffffff;");x.style+=Rc+Y+"part=1;"}else x.style+=ba(e,u)+J(e,u)+"part=1;";x.geometry.relative=!0;x.vertex=!0;v.insert(x)}var Bd=0;0!=e.bpmnActivityMarker1&&Bd++;
-0!=e.bpmnActivityMarker2&&Bd++;var Db=0;1==Bd?Db=-7.5:2==Bd&&(Db=-19);if(0!=e.bpmnActivityMarker1){switch(e.bpmnActivityMarker1){case 1:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");x.geometry.offset=new mxPoint(Db,-20);x.style+=ba(e,u)+J(e,u);break;case 2:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");x.geometry.offset=new mxPoint(Db,-20);x.style+=ba(e,u)+J(e,u);break;case 3:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");
-x.geometry.offset=new mxPoint(Db,-20);x.style+=ba(e,u)+J(e,u);break;case 4:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");x.geometry.offset=new mxPoint(Db,-20);x.style+=ba(e,u)+J(e,u);break;case 5:x=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");x.geometry.offset=new mxPoint(Db,-17);Y=J(e,u);Y=Y.replace("strokeColor","fillColor");""==Y&&(Y="fillColor=#000000;");x.style+=Y;break;case 6:x=new mxCell("",
-new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),x.geometry.offset=new mxPoint(Db,-18),x.style+=ba(e,u)+J(e,u)}x.geometry.relative=!0;x.vertex=!0;v.insert(x)}2==Bd&&(Db=5);if(0!=e.bpmnActivityMarker2){switch(e.bpmnActivityMarker2){case 1:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");x.geometry.offset=new mxPoint(Db,-20);x.style+=ba(e,u)+J(e,u);break;case 2:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");x.geometry.offset=new mxPoint(Db,
--20);x.style+=ba(e,u)+J(e,u);break;case 3:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");x.geometry.offset=new mxPoint(Db,-20);x.style+=ba(e,u)+J(e,u);break;case 4:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");x.geometry.offset=new mxPoint(Db,-20);x.style+=ba(e,u)+J(e,u);break;case 5:x=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");x.geometry.offset=new mxPoint(Db,-17);
-Y=J(e,u);Y=Y.replace("strokeColor","fillColor");""==Y&&(Y="fillColor=#000000;");x.style+=Y;break;case 6:x=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),x.geometry.offset=new mxPoint(Db,-18),x.style+=ba(e,u)+J(e,u)}x.geometry.relative=!0;x.vertex=!0;v.insert(x)}v.style+=b(v.style,e,u,v);break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);if(1==e.bpmnDashed)switch(e.bpmnEventGroup){case 0:v.style+=
+x.geometry.offset=new mxPoint(4,5);break;case 7:x=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),x.geometry.offset=new mxPoint(4,5)}if(1==e.bpmnTaskType){var Sc=Y(e,u);Z=H(e,u);Z=Z.replace("strokeColor","fillColor");Sc=Sc.replace("fillColor","strokeColor");""==Z&&(Z="fillColor=#000000;");""==Sc&&(Sc="strokeColor=#ffffff;");x.style+=Sc+Z+"part=1;"}else x.style+=Y(e,u)+H(e,u)+"part=1;";x.geometry.relative=!0;x.vertex=!0;v.insert(x)}var Cd=0;0!=e.bpmnActivityMarker1&&Cd++;
+0!=e.bpmnActivityMarker2&&Cd++;var Eb=0;1==Cd?Eb=-7.5:2==Cd&&(Eb=-19);if(0!=e.bpmnActivityMarker1){switch(e.bpmnActivityMarker1){case 1:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 2:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 3:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");
+x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 4:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 5:x=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");x.geometry.offset=new mxPoint(Eb,-17);Z=H(e,u);Z=Z.replace("strokeColor","fillColor");""==Z&&(Z="fillColor=#000000;");x.style+=Z;break;case 6:x=new mxCell("",
+new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),x.geometry.offset=new mxPoint(Eb,-18),x.style+=Y(e,u)+H(e,u)}x.geometry.relative=!0;x.vertex=!0;v.insert(x)}2==Cd&&(Eb=5);if(0!=e.bpmnActivityMarker2){switch(e.bpmnActivityMarker2){case 1:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 2:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");x.geometry.offset=new mxPoint(Eb,
+-20);x.style+=Y(e,u)+H(e,u);break;case 3:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 4:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 5:x=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");x.geometry.offset=new mxPoint(Eb,-17);Z=H(e,
+u);Z=Z.replace("strokeColor","fillColor");""==Z&&(Z="fillColor=#000000;");x.style+=Z;break;case 6:x=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),x.geometry.offset=new mxPoint(Eb,-18),x.style+=Y(e,u)+H(e,u)}x.geometry.relative=!0;x.vertex=!0;v.insert(x)}v.style+=b(v.style,e,u,v);break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);if(1==e.bpmnDashed)switch(e.bpmnEventGroup){case 0:v.style+=
"outline=eventNonint;";break;case 1:v.style+="outline=boundNonint;";break;case 2:v.style+="outline=end;"}else switch(e.bpmnEventGroup){case 0:v.style+="outline=standard;";break;case 1:v.style+="outline=throwing;";break;case 2:v.style+="outline=end;"}switch(e.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+=b(v.style,e,u,v,G);break;case "BPMNChoreography":try{var ja=U(e.FillColor),je=Rd(ja,.75),Jc=f(e.Name).match(/\d+/),db=Math.max(mxUtils.getSizeForString(e.Name.t,Jc?Jc[0]:"13",null,r-10).height,24);ja="swimlaneFillColor="+je+";";v.value=
-m(e.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+ja+"startSize="+db+";spacingLeft=3;spacingRight=3;fontStyle=0;"+a(e.Name,G);v.style+=b(v.style,e,u,v,G);var Wb=db;Jc=f(e.TaskName).match(/\d+/);var pc=e.TaskHeight?.75*e.TaskHeight:Math.max(mxUtils.getSizeForString(e.TaskName.t,Jc?Jc[0]:"13",null,r-10).height+15,24),Dc=new mxCell("",new mxGeometry(0,Wb,r,pc),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");
-Dc.value=m(e.TaskName);Dc.vertex=!0;v.insert(Dc);Dc.style+=a(e.TaskName,G);Dc.style+=b(Dc.style,e,u,Dc,G);Wb+=pc;X=[];for(l=0;l<e.Fields;l++){var Ud=e["Participant"+(l+1)];Jc=f(Ud).match(/\d+/);pc=Math.max(mxUtils.getSizeForString(Ud.t,Jc?Jc[0]:"13",null,r-10).height,24);X[l]=new mxCell("",new mxGeometry(0,Wb,r,pc),"part=1;html=1;resizeHeight=0;fillColor=none;spacingTop=-1;spacingLeft=3;spacingRight=3;");Wb+=pc;X[l].vertex=!0;v.insert(X[l]);X[l].style+=a(Ud,G);X[l].style+=b(X[l].style,e,u,X[l],G);
-X[l].value=m(Ud)}}catch(gb){console.log(gb)}break;case "BPMNConversation":v.style+="shape=hexagon;perimeter=hexagonPerimeter2;";v.value=m(e.Text);v.style=0==e.bpmnConversationType?v.style+sa(e):v.style+"strokeWidth=2;";e.bpmnIsSubConversation&&(x=new mxCell("",new mxGeometry(.5,1,12,12),"shape=plus;part=1;"),x.geometry.offset=new mxPoint(-6,-17),x.style+=ba(e,u)+J(e,u),x.geometry.relative=!0,x.vertex=!0,v.insert(x));v.style+=b(v.style,e,u,v,G);break;case "BPMNGateway":v.style+="shape=mxgraph.bpmn.shape;perimeter=rhombusPerimeter;background=gateway;verticalLabelPosition=bottom;verticalAlign=top;";
+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+=b(v.style,e,u,v,G);break;case "BPMNChoreography":try{var ja=P(e.FillColor),ke=Sd(ja,.75),Kc=f(e.Name).match(/\d+/),eb=Math.max(mxUtils.getSizeForString(e.Name.t,Kc?Kc[0]:"13",null,r-10).height,24);ja="swimlaneFillColor="+ke+";";v.value=
+m(e.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+ja+"startSize="+eb+";spacingLeft=3;spacingRight=3;fontStyle=0;"+a(e.Name,G);v.style+=b(v.style,e,u,v,G);var Wb=eb;Kc=f(e.TaskName).match(/\d+/);var pc=e.TaskHeight?.75*e.TaskHeight:Math.max(mxUtils.getSizeForString(e.TaskName.t,Kc?Kc[0]:"13",null,r-10).height+15,24),Ec=new mxCell("",new mxGeometry(0,Wb,r,pc),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");
+Ec.value=m(e.TaskName);Ec.vertex=!0;v.insert(Ec);Ec.style+=a(e.TaskName,G);Ec.style+=b(Ec.style,e,u,Ec,G);Wb+=pc;X=[];for(l=0;l<e.Fields;l++){var Vd=e["Participant"+(l+1)];Kc=f(Vd).match(/\d+/);pc=Math.max(mxUtils.getSizeForString(Vd.t,Kc?Kc[0]:"13",null,r-10).height,24);X[l]=new mxCell("",new mxGeometry(0,Wb,r,pc),"part=1;html=1;resizeHeight=0;fillColor=none;spacingTop=-1;spacingLeft=3;spacingRight=3;");Wb+=pc;X[l].vertex=!0;v.insert(X[l]);X[l].style+=a(Vd,G);X[l].style+=b(X[l].style,e,u,X[l],G);
+X[l].value=m(Vd)}}catch(hb){console.log(hb)}break;case "BPMNConversation":v.style+="shape=hexagon;perimeter=hexagonPerimeter2;";v.value=m(e.Text);v.style=0==e.bpmnConversationType?v.style+oa(e):v.style+"strokeWidth=2;";e.bpmnIsSubConversation&&(x=new mxCell("",new mxGeometry(.5,1,12,12),"shape=plus;part=1;"),x.geometry.offset=new mxPoint(-6,-17),x.style+=Y(e,u)+H(e,u),x.geometry.relative=!0,x.vertex=!0,v.insert(x));v.style+=b(v.style,e,u,v,G);break;case "BPMNGateway":v.style+="shape=mxgraph.bpmn.shape;perimeter=rhombusPerimeter;background=gateway;verticalLabelPosition=bottom;verticalAlign=top;";
switch(e.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+=b(v.style,e,u,v);
-v.value=m(e.Text);v.style+=a(e,G);break;case "BPMNData":v.style+="shape=note;size=14;";switch(e.bpmnDataType){case 0:v.value=m(e.Text);e.Text&&!e.Text.t&&(e.Text.t=" ");break;case 1:x=new mxCell("",new mxGeometry(.5,1,12,10),"shape=parallelMarker;part=1;");x.geometry.offset=new mxPoint(-6,-15);x.style+=ba(e,u)+J(e,u);x.geometry.relative=!0;x.vertex=!0;v.insert(x);break;case 2:x=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;");x.geometry.offset=new mxPoint(3,
-3);x.style+=ba(e,u)+J(e,u);x.geometry.relative=!0;x.vertex=!0;v.insert(x);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";Da=new mxCell("",new mxGeometry(0,0,r,20),"strokeColor=none;fillColor=none;");Da.geometry.offset=new mxPoint(0,14);Da.geometry.relative=!0;Da.vertex=!0;v.insert(Da);Da.value=m(e.Text);Da.style+=a(e,G);break;case 3:x=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),x.geometry.offset=new mxPoint(3,3),x.style+=J(e,u),x.geometry.relative=
-!0,x.vertex=!0,v.insert(x),Y=J(e,u),Y=Y.replace("strokeColor","fillColor"),""==Y&&(Y="fillColor=#000000;"),x.style+=Y,Da=new mxCell("",new mxGeometry(0,0,r,20),"strokeColor=none;fillColor=none;"),Da.geometry.offset=new mxPoint(0,14),Da.geometry.relative=!0,Da.vertex=!0,v.insert(Da),Da.value=m(e.Text),Da.style+=a(e,G)}v.style+=b(v.style,e,u,v);break;case "BPMNBlackPool":v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,r,p),"fillColor=#000000;strokeColor=none;opacity=30;");
+v.value=m(e.Text);v.style+=a(e,G);break;case "BPMNData":v.style+="shape=note;size=14;";switch(e.bpmnDataType){case 0:v.value=m(e.Text);e.Text&&!e.Text.t&&(e.Text.t=" ");break;case 1:x=new mxCell("",new mxGeometry(.5,1,12,10),"shape=parallelMarker;part=1;");x.geometry.offset=new mxPoint(-6,-15);x.style+=Y(e,u)+H(e,u);x.geometry.relative=!0;x.vertex=!0;v.insert(x);break;case 2:x=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;");x.geometry.offset=new mxPoint(3,
+3);x.style+=Y(e,u)+H(e,u);x.geometry.relative=!0;x.vertex=!0;v.insert(x);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";Da=new mxCell("",new mxGeometry(0,0,r,20),"strokeColor=none;fillColor=none;");Da.geometry.offset=new mxPoint(0,14);Da.geometry.relative=!0;Da.vertex=!0;v.insert(Da);Da.value=m(e.Text);Da.style+=a(e,G);break;case 3:x=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),x.geometry.offset=new mxPoint(3,3),x.style+=H(e,u),x.geometry.relative=
+!0,x.vertex=!0,v.insert(x),Z=H(e,u),Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),x.style+=Z,Da=new mxCell("",new mxGeometry(0,0,r,20),"strokeColor=none;fillColor=none;"),Da.geometry.offset=new mxPoint(0,14),Da.geometry.relative=!0,Da.vertex=!0,v.insert(Da),Da.value=m(e.Text),Da.style+=a(e,G)}v.style+=b(v.style,e,u,v);break;case "BPMNBlackPool":v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,r,p),"fillColor=#000000;strokeColor=none;opacity=30;");
x.vertex=!0;v.insert(x);break;case "DFDExternalEntityBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);x=new mxCell("",new mxGeometry(0,0,.95*r,.95*p),"part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("",new mxGeometry(.05*r,.05*p,.95*r,.95*p),"part=1;");E.vertex=!0;v.insert(E);E.value=m(e.Text);E.style+=a(e.Text,G);E.style+=b(E.style,e,u,E,G);break;case "GSDFDDataStoreBlock":v.value=m(e.Text);v.style+="shape=partialRectangle;right=0;"+a(e.Text,G);
-v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,.2*r,p),"part=1;");x.vertex=!0;v.insert(x);x.value=m(e.Number);x.style+=a(e.Number,G);x.style+=b(x.style,e,u,x,G);break;case "OrgBlock":var Te="";for(Ga in e.Active)"Photo"!=Ga&&e.Active[Ga]&&(Te+=m(e[Ga],!0));if(e.Active.Photo){var ke=.4*r;v.style+="spacingLeft="+ke+";imageWidth="+(ke-4)+";imageHeight="+(ke-4)+";imageAlign=left;imageVerticalAlign=top;image="+g(e.Photo)}v.value=Te;v.style+=b(v.style,e,u,v,!0);break;case "DefaultTableBlock":try{Fb=
-e.RowHeights.length;Rb=e.ColWidths.length;var Vd=[],Cd=[];for(l=0;l<Fb;l++)Vd[l]=.75*e.RowHeights[l];for(fa=0;fa<Rb;fa++)Cd[fa]=.75*e.ColWidths[fa];v.style="group;dropTarget=0;pointerEvents=0;";var le=e.BandedColor1,me=e.BandedColor2,Gf=e.BandedRows,Ue=e.BandedCols,Wd=e.HideH,Hf=e.HideV,Ve=e.TextVAlign,We=e.FillColor,Xe=e.StrokeStyle;delete e.StrokeStyle;var If=ia(We,"fillOpacity"),Ye=e.LineColor,Jf=ia(Ye,"strokeOpacity");aa=0;var Dd={};for(l=0;l<Fb;l++){Z=0;p=Vd[l];for(fa=0;fa<Rb;fa++){var Lb=l+
-","+fa;if(Dd[Lb])Z+=Cd[fa];else{var kb=e["CellFill_"+Lb],ne=e["NoBand_"+Lb],Xd=e["CellSize_"+Lb],qc=e["Cell_"+Lb],Ze=e["Cell_"+Lb+"_VAlign"],Kf=e["Cell_"+Lb+"_TRotation"],Lf=e["CellBorderWidthH_"+Lb],Mf=e["CellBorderColorH_"+Lb],Nf=e["CellBorderStrokeStyleH_"+Lb],Of=e["CellBorderWidthV_"+Lb],Pf=e["CellBorderColorV_"+Lb],Qf=e["CellBorderStrokeStyleV_"+Lb],$e=Wd?Pf:Mf,af=ia($e,"strokeOpacity"),bf=Wd?Of:Lf,Sc=Wd?Qf:Nf;kb=Gf&&!ne?0==l%2?le:Ue&&!ne?0==fa%2?le:me:me:Ue&&!ne?0==fa%2?le:me:kb;var Rf=ia(kb,
-"fillOpacity")||If;r=Cd[fa];var cf=p;Yc=r;for(var Mb=l+1;Mb<l+Xd.h;Mb++)if(null!=Vd[Mb]){cf+=Vd[Mb];Dd[Mb+","+fa]=!0;for(var Tc=fa+1;Tc<fa+Xd.w;Tc++)Dd[Mb+","+Tc]=!0}for(Mb=fa+1;Mb<fa+Xd.w;Mb++)if(null!=Cd[Mb])for(Yc+=Cd[Mb],Dd[l+","+Mb]=!0,Tc=l+1;Tc<l+Xd.h;Tc++)Dd[Tc+","+Mb]=!0;var oa=new mxCell("",new mxGeometry(Z,aa,Yc,cf),"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;"+(Hf?"left=0;right=0;":"")+(Wd?"top=0;bottom=0;":"")+ba({FillColor:kb||We})+Zb(mxConstants.STYLE_STROKECOLOR,U($e),
-U(Ye))+(null!=bf?Zb(mxConstants.STYLE_STROKEWIDTH,Math.round(.75*parseFloat(bf)),"1"):"")+(af?af:Jf)+Rf+"verticalAlign="+(Ze?Ze:Ve?Ve:"middle")+";"+qa({StrokeStyle:Sc?Sc:Xe?Xe:"solid"})+(Kf?"horizontal=0;":""));oa.vertex=!0;oa.value=m(qc);oa.style+=b(oa.style,e,u,oa,G)+(G?"fontSize=13;":f(qc)+q(qc)+t(qc)+C(qc,oa)+I(qc)+N(qc)+K(qc)+O(qc))+S(qc)+H(qc);v.insert(oa);Z+=r}}aa+=p}}catch(gb){console.log(gb)}break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";
+v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,.2*r,p),"part=1;");x.vertex=!0;v.insert(x);x.value=m(e.Number);x.style+=a(e.Number,G);x.style+=b(x.style,e,u,x,G);break;case "OrgBlock":var Ue="";for(Fa in e.Active)"Photo"!=Fa&&e.Active[Fa]&&(Ue+=m(e[Fa],!0));if(e.Active.Photo){var le=.4*r;v.style+="spacingLeft="+le+";imageWidth="+(le-4)+";imageHeight="+(le-4)+";imageAlign=left;imageVerticalAlign=top;image="+g(e.Photo)}v.value=Ue;v.style+=b(v.style,e,u,v,!0);break;case "DefaultTableBlock":try{Gb=
+e.RowHeights.length;Rb=e.ColWidths.length;var Wd=[],Dd=[];for(l=0;l<Gb;l++)Wd[l]=.75*e.RowHeights[l];for(ha=0;ha<Rb;ha++)Dd[ha]=.75*e.ColWidths[ha];v.style="group;dropTarget=0;pointerEvents=0;";var me=e.BandedColor1,ne=e.BandedColor2,Gf=e.BandedRows,Ve=e.BandedCols,Xd=e.HideH,Hf=e.HideV,We=e.TextVAlign,Xe=e.FillColor,Ye=e.StrokeStyle;delete e.StrokeStyle;var If=ea(Xe,"fillOpacity"),Ze=e.LineColor,Jf=ea(Ze,"strokeOpacity");ba=0;var Ed={};for(l=0;l<Gb;l++){aa=0;p=Wd[l];for(ha=0;ha<Rb;ha++){var Mb=l+
+","+ha;if(Ed[Mb])aa+=Dd[ha];else{var lb=e["CellFill_"+Mb],oe=e["NoBand_"+Mb],Yd=e["CellSize_"+Mb],qc=e["Cell_"+Mb],$e=e["Cell_"+Mb+"_VAlign"],Kf=e["Cell_"+Mb+"_TRotation"],Lf=e["CellBorderWidthH_"+Mb],Mf=e["CellBorderColorH_"+Mb],Nf=e["CellBorderStrokeStyleH_"+Mb],Of=e["CellBorderWidthV_"+Mb],Pf=e["CellBorderColorV_"+Mb],Qf=e["CellBorderStrokeStyleV_"+Mb],af=Xd?Pf:Mf,bf=ea(af,"strokeOpacity"),cf=Xd?Of:Lf,Tc=Xd?Qf:Nf;lb=Gf&&!oe?0==l%2?me:Ve&&!oe?0==ha%2?me:ne:ne:Ve&&!oe?0==ha%2?me:ne:lb;var Rf=ea(lb,
+"fillOpacity")||If;r=Dd[ha];var df=p;Zc=r;for(var Nb=l+1;Nb<l+Yd.h;Nb++)if(null!=Wd[Nb]){df+=Wd[Nb];Ed[Nb+","+ha]=!0;for(var Uc=ha+1;Uc<ha+Yd.w;Uc++)Ed[Nb+","+Uc]=!0}for(Nb=ha+1;Nb<ha+Yd.w;Nb++)if(null!=Dd[Nb])for(Zc+=Dd[Nb],Ed[l+","+Nb]=!0,Uc=l+1;Uc<l+Yd.h;Uc++)Ed[Uc+","+Nb]=!0;var qa=new mxCell("",new mxGeometry(aa,ba,Zc,df),"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;"+(Hf?"left=0;right=0;":"")+(Xd?"top=0;bottom=0;":"")+Y({FillColor:lb||Xe})+Zb(mxConstants.STYLE_STROKECOLOR,P(af),
+P(Ze))+(null!=cf?Zb(mxConstants.STYLE_STROKEWIDTH,Math.round(.75*parseFloat(cf)),"1"):"")+(bf?bf:Jf)+Rf+"verticalAlign="+($e?$e:We?We:"middle")+";"+sa({StrokeStyle:Tc?Tc:Ye?Ye:"solid"})+(Kf?"horizontal=0;":""));qa.vertex=!0;qa.value=m(qc);qa.style+=b(qa.style,e,u,qa,G)+(G?"fontSize=13;":f(qc)+q(qc)+t(qc)+C(qc,qa)+I(qc)+Q(qc)+K(qc)+L(qc))+S(qc)+R(qc);v.insert(qa);aa+=r}}ba+=p}}catch(hb){console.log(hb)}break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";
"VSMDedicatedProcessBlock"==w.Class?v.value=m(e.Text):"VSMProductionControlBlock"==w.Class&&(v.value=m(e.Resources));v.style+=b(v.style,e,u,v,G);"VSMDedicatedProcessBlock"==w.Class&&(x=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),x.geometry.relative=!0,x.geometry.offset=new mxPoint(4,-13),x.vertex=!0,v.insert(x),x.style+=b(x.style,e,u,x));Da=new mxCell("",new mxGeometry(0,0,r,15),"strokeColor=none;fillColor=none;part=1;");Da.vertex=!0;v.insert(Da);Da.value=
m(e.Title);Da.style+=a(e.Title,G);e.Text=null;break;case "VSMSharedProcessBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process_shared;spacingTop=-5;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);Da=new mxCell("",new mxGeometry(.1*r,.3*p,.8*r,.6*p),"part=1;");Da.vertex=!0;v.insert(Da);Da.value=m(e.Resource);Da.style+=a(e.Resource,G);Da.style+=b(Da.style,e,u,Da,G);break;case "VSMWorkcellBlock":v.style+="shape=mxgraph.lean_mapping.work_cell;verticalAlign=top;spacingTop=-2;";
-v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);Bb=p;bc=parseInt(e.Cells);ja=b("part=1;",e,u,v);0<bc&&(Bb/=bc);X=[];Qa=[];for(l=1;l<=bc;l++)X[l]=new mxCell("",new mxGeometry(0,(l-1)*Bb,r,Bb),ja),X[l].vertex=!0,v.insert(X[l]),X[l].value=m(e["cell_"+l]),X[l].style+=a(e["cell_"+l],G);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;";
-v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v);Bb=p;bc=parseInt(e.Cells);ja=b("part=1;fillColor=none;",e,u,v);0<bc&&(Bb/=bc);X=[];Ub=[];for(l=1;l<=bc;l++)X[l]=new mxCell("",new mxGeometry(.5*r,(l-1)*Bb,.5*r,Bb),"shape=partialRectangle;left=0;"+ja),X[l].vertex=!0,v.insert(X[l]),Ub[l]=new mxCell("",new mxGeometry(0,(l-1)*Bb,r,Bb),"strokeColor=none;fillColor=none;part=1;"),Ub[l].vertex=!0,v.insert(Ub[l]),Ub[l].value=
+v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);Cb=p;bc=parseInt(e.Cells);ja=b("part=1;",e,u,v);0<bc&&(Cb/=bc);X=[];Pa=[];for(l=1;l<=bc;l++)X[l]=new mxCell("",new mxGeometry(0,(l-1)*Cb,r,Cb),ja),X[l].vertex=!0,v.insert(X[l]),X[l].value=m(e["cell_"+l]),X[l].style+=a(e["cell_"+l],G);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;";
+v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v);Cb=p;bc=parseInt(e.Cells);ja=b("part=1;fillColor=none;",e,u,v);0<bc&&(Cb/=bc);X=[];Ub=[];for(l=1;l<=bc;l++)X[l]=new mxCell("",new mxGeometry(.5*r,(l-1)*Cb,.5*r,Cb),"shape=partialRectangle;left=0;"+ja),X[l].vertex=!0,v.insert(X[l]),Ub[l]=new mxCell("",new mxGeometry(0,(l-1)*Cb,r,Cb),"strokeColor=none;fillColor=none;part=1;"),Ub[l].vertex=!0,v.insert(Ub[l]),Ub[l].value=
m(e["cell_"+l]),Ub[l].style+=a(e["cell_"+l],G);break;case "VSMFIFOLaneBlock":v.style+="shape=mxgraph.lean_mapping.fifo_sequence_flow;fontStyle=0;fontSize=18";v.style+=b(v.style,e,u,v);v.value="FIFO";break;case "VSMGoSeeProductionBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.17*r,.2*p,13,6),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;");x.vertex=!0;v.insert(x);
x.style+=b(x.style,e,u,x);break;case "VSMProductionKanbanBatchBlock":v.style+="strokeColor=none;fillColor=none;";ja="shape=card;size=18;flipH=1;part=1;";x=new mxCell("",new mxGeometry(.1*r,0,.9*r,.8*p),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;"+ja);x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("",new mxGeometry(.05*r,.1*p,.9*r,.8*p),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;"+ja);E.vertex=!0;v.insert(E);E.style+=b(E.style,
-e,u,E);var T=new mxCell("",new mxGeometry(0,.2*p,.9*r,.8*p),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;spacing=2;"+ja);T.vertex=!0;v.insert(T);T.value=m(e.Text);T.style+=b(T.style,e,u,T,G);break;case "VSMElectronicInformationArrow":v.style="group;";v.value=m(e.Title);v.style+=a(e.Title,G);var va=new mxCell("",new mxGeometry(0,0,r,p),"shape=mxgraph.lean_mapping.electronic_info_flow_edge;html=1;entryX=0;entryY=1;exitX=1;exitY=0;");va.edge=!0;va.geometry.relative=
+e,u,E);var U=new mxCell("",new mxGeometry(0,.2*p,.9*r,.8*p),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;spacing=2;"+ja);U.vertex=!0;v.insert(U);U.value=m(e.Text);U.style+=b(U.style,e,u,U,G);break;case "VSMElectronicInformationArrow":v.style="group;";v.value=m(e.Title);v.style+=a(e.Title,G);var va=new mxCell("",new mxGeometry(0,0,r,p),"shape=mxgraph.lean_mapping.electronic_info_flow_edge;html=1;entryX=0;entryY=1;exitX=1;exitY=0;");va.edge=!0;va.geometry.relative=
1;D.addCell(va,v,null,v,v);break;case "AWSRoundedRectangleContainerBlock2":case "AWSRoundedRectangleContainerBlock":v.style+="strokeColor=none;fillColor=none;";e.Spotfleet?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=b(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,35,40),
"strokeColor=none;shape=mxgraph.aws3.spot_instance;fillColor=#f58536;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(30,0),E.vertex=!0,v.insert(E)):e.Beanstalk?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=b(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,30,40),"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk;fillColor=#759C3E;"),
E.geometry.relative=!0,E.geometry.offset=new mxPoint(30,0),E.vertex=!0,v.insert(E)):e.EC2?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=b(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.ec2;fillColor=#F58534;"),E.geometry.relative=
@@ -188,150 +188,150 @@ new mxPoint(30,0),E.vertex=!0,v.insert(E)):e.VPC?(x=new mxCell("",new mxGeometry
0),E.vertex=!0,v.insert(E)):e.AWS?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=b(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.cloud;fillColor=#F58534;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(30,0),E.vertex=!0,v.insert(E)):
e.Corporate?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=b(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,25,40),"strokeColor=none;shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(30,0),E.vertex=!0,v.insert(E)):
(v.style="resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;",v.value=m(e.Title),v.style+=b(v.style,e,u,v,G));break;case "AWSElasticComputeCloudBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.ec2;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=m(e.Title);v.style+=b(v.style,e,u,v,G);break;case "AWSRoute53Block2":v.style+="strokeColor=none;shape=mxgraph.aws3.route_53;verticalLabelPosition=bottom;align=center;verticalAlign=top;";
-v.value=m(e.Title);v.style+=b(v.style,e,u,v,G);break;case "AWSRDBSBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.rds;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=m(e.Title);v.style+=b(v.style,e,u,v,G);break;case "NET_RingNetwork":v.style+="strokeColor=none;fillColor=none;";oa=new mxCell("",new mxGeometry(.25*r,.25*p,.5*r,.5*p),"ellipse;html=1;strokeColor=#29AAE1;strokeWidth=2;");oa.vertex=!0;v.insert(oa);var Oa=[oa];oa.style+=ba(e,u);va=new mxCell("",new mxGeometry(0,
-0,0,0),"edgeStyle=none;rounded=0;endArrow=none;dashed=0;html=1;strokeColor=#29AAE1;strokeWidth=2;");va.geometry.relative=!0;va.edge=!0;sc(.5*r,0,va,F,D,Oa,v,oa);sc(.855*r,.145*p,va,F,D,Oa,v,oa);sc(r,.5*p,va,F,D,Oa,v,oa);sc(.855*r,.855*p,va,F,D,Oa,v,oa);sc(.5*r,p,va,F,D,Oa,v,oa);sc(.145*r,.855*p,va,F,D,Oa,v,oa);sc(0,.5*p,va,F,D,Oa,v,oa);sc(.145*r,.145*p,va,F,D,Oa,v,oa);break;case "NET_Ethernet":v.style+="strokeColor=none;fillColor=none;";oa=new mxCell("",new mxGeometry(0,.5*p-10,r,20),"shape=mxgraph.networks.bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;fillColor=#29AAE1;strokeColor=#29AAE1;");
-oa.vertex=!0;v.insert(oa);Oa=[oa];va=new mxCell("",new mxGeometry(0,0,0,0),"strokeColor=#29AAE1;edgeStyle=none;rounded=0;endArrow=none;html=1;strokeWidth=2;");va.geometry.relative=!0;va.edge=!0;Oa=[oa];var Ed=r/e.NumTopNodes;for(l=0;l<e.NumTopNodes;l++)sc(.5*Ed+l*Ed,0,va,F,D,Oa,v,oa);Ed=r/e.NumBottomNodes;for(l=0;l<e.NumBottomNodes;l++)sc(.5*Ed+l*Ed,p,va,F,D,Oa,v,oa);break;case "EE_OpAmp":v.style+="shape=mxgraph.electrical.abstract.operational_amp_1;";v.value=m(e.Title);v.style+=b(v.style,e,u,v,G);
+v.value=m(e.Title);v.style+=b(v.style,e,u,v,G);break;case "AWSRDBSBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.rds;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=m(e.Title);v.style+=b(v.style,e,u,v,G);break;case "NET_RingNetwork":v.style+="strokeColor=none;fillColor=none;";qa=new mxCell("",new mxGeometry(.25*r,.25*p,.5*r,.5*p),"ellipse;html=1;strokeColor=#29AAE1;strokeWidth=2;");qa.vertex=!0;v.insert(qa);var Na=[qa];qa.style+=Y(e,u);va=new mxCell("",new mxGeometry(0,
+0,0,0),"edgeStyle=none;rounded=0;endArrow=none;dashed=0;html=1;strokeColor=#29AAE1;strokeWidth=2;");va.geometry.relative=!0;va.edge=!0;tc(.5*r,0,va,F,D,Na,v,qa);tc(.855*r,.145*p,va,F,D,Na,v,qa);tc(r,.5*p,va,F,D,Na,v,qa);tc(.855*r,.855*p,va,F,D,Na,v,qa);tc(.5*r,p,va,F,D,Na,v,qa);tc(.145*r,.855*p,va,F,D,Na,v,qa);tc(0,.5*p,va,F,D,Na,v,qa);tc(.145*r,.145*p,va,F,D,Na,v,qa);break;case "NET_Ethernet":v.style+="strokeColor=none;fillColor=none;";qa=new mxCell("",new mxGeometry(0,.5*p-10,r,20),"shape=mxgraph.networks.bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;fillColor=#29AAE1;strokeColor=#29AAE1;");
+qa.vertex=!0;v.insert(qa);Na=[qa];va=new mxCell("",new mxGeometry(0,0,0,0),"strokeColor=#29AAE1;edgeStyle=none;rounded=0;endArrow=none;html=1;strokeWidth=2;");va.geometry.relative=!0;va.edge=!0;Na=[qa];var Fd=r/e.NumTopNodes;for(l=0;l<e.NumTopNodes;l++)tc(.5*Fd+l*Fd,0,va,F,D,Na,v,qa);Fd=r/e.NumBottomNodes;for(l=0;l<e.NumBottomNodes;l++)tc(.5*Fd+l*Fd,p,va,F,D,Na,v,qa);break;case "EE_OpAmp":v.style+="shape=mxgraph.electrical.abstract.operational_amp_1;";v.value=m(e.Title);v.style+=b(v.style,e,u,v,G);
e.ToggleCharge&&(v.style+="flipV=1;");break;case "EIMessageChannelBlock":case "EIDatatypeChannelBlock":case "EIInvalidMessageChannelBlock":case "EIDeadLetterChannelBlock":case "EIGuaranteedDeliveryBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);"EIMessageChannelBlock"==w.Class?(x=new mxCell("",new mxGeometry(.5,.5,.9*r,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;"),x.geometry.offset=new mxPoint(.45*-r,0)):"EIDatatypeChannelBlock"==
w.Class?(x=new mxCell("",new mxGeometry(.5,.5,.9*r,20),"shape=mxgraph.eip.dataChannel;fillColor=#818181;part=1;"),x.geometry.offset=new mxPoint(.45*-r,0)):"EIInvalidMessageChannelBlock"==w.Class?(x=new mxCell("",new mxGeometry(.5,.5,.9*r,20),"shape=mxgraph.eip.invalidMessageChannel;fillColor=#818181;part=1;"),x.geometry.offset=new mxPoint(.45*-r,0)):"EIDeadLetterChannelBlock"==w.Class?(x=new mxCell("",new mxGeometry(.5,.5,.9*r,20),"shape=mxgraph.eip.deadLetterChannel;fillColor=#818181;part=1;"),x.geometry.offset=
-new mxPoint(.45*-r,0)):"EIGuaranteedDeliveryBlock"==w.Class&&(x=new mxCell("",new mxGeometry(.5,.5,20,27),"shape=cylinder;fillColor=#818181;part=1;"),x.geometry.offset=new mxPoint(-10,-7));x.geometry.relative=!0;x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);va=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;");va.geometry.relative=!0;va.edge=!0;fb(.15*r,.25*p,.85*r,.25*p,va,F,D,Oa,v,oa);break;
-case "EIChannelAdapterBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,.07*p,.21*r,.86*p),"fillColor=#FFFF33;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("",new mxGeometry(.26*r,.09*p,.2*r,.82*p),"shape=mxgraph.eip.channel_adapter;fillColor=#4CA3D9;part=1;");E.vertex=!0;v.insert(E);E.style+=b(E.style,e,u,E);T=new mxCell("",new mxGeometry(1,.5,.35*r,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;");
-T.geometry.relative=!0;T.geometry.offset=new mxPoint(.4*-r,-10);T.vertex=!0;v.insert(T);T.style+=b(T.style,e,u,T);ea=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;");ea.geometry.relative=!0;ea.edge=!0;x.insertEdge(ea,!0);E.insertEdge(ea,!1);ea.style+=J(e,u);F.push(D.addCell(ea,null,null,null,null));da=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;");
-da.geometry.relative=!0;da.edge=!0;E.insertEdge(da,!0);T.insertEdge(da,!1);F.push(D.addCell(da,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=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);var Fd=
-e.Messages,oe=(p-17)/Fd;E=[];va=[];for(l=0;l<Fd;l++){var Gd=oe*(l+1)-3;E[l]=new mxCell("",new mxGeometry(r-20,Gd,20,20),"part=1;");E[l].vertex=!0;v.insert(E[l]);switch(w.Class){case "EIMessageBlock":E[l].value=m(e["message_"+(l+1)]);E.style+=a(e["message_"+(l+1)],G);break;case "EICommandMessageBlock":E[l].value="C";E[l].style+="fontStyle=1;fontSize=13;";break;case "EIDocumentMessageBlock":E[l].value="D";E[l].style+="fontStyle=1;fontSize=13;";break;case "EIEventMessageBlock":E[l].value="E",E[l].style+=
-"fontStyle=1;fontSize=13;"}E[l].style+=b(E[l].style,e,u,E[l]);va[l]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");va[l].geometry.relative=!0;va[l].edge=!0;x.insertEdge(va[l],!1);E[l].insertEdge(va[l],!0);va[l].style+=b(va[l].style,e,u,va[l]);var Kc=[];Kc.push(new mxPoint(Z+8.5,aa+Gd+10));va[l].geometry.points=Kc;F.push(D.addCell(va[l],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
-v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.45*r,.25*p,.3*r,.5*p),"part=1;fillColor=#ffffff");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);va=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;");va.geometry.relative=!0;va.edge=!0;fb(0,.5*p,.4*r,.5*p,va,F,D,Oa,v,oa);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
-v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);var ea=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;");ea.geometry.relative=!0;ea.edge=!0;fb(.05*r,.5*p,.85*r,.5*p,ea,F,D,Oa,v,oa);var da=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;");da.geometry.relative=!0;da.edge=!0;fb(.05*r,.5*p,.85*
-r,.15*p,da,F,D,Oa,v,oa);var xa=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;");xa.geometry.relative=!0;xa.edge=!0;fb(.05*r,.5*p,.85*r,.85*p,xa,F,D,Oa,v,oa);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);ea=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;");
-ea.geometry.relative=!0;ea.edge=!0;ea.style+=J(e,u);fb(.05*r,.5*p,.95*r,.5*p,ea,F,D,Oa,v,oa);da=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;");da.geometry.relative=!0;da.edge=!0;da.style+=J(e,u);fb(.3*r,.1*p,.3*r,.5*p,da,F,D,Oa,v,oa);xa=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;");
-xa.geometry.relative=!0;xa.edge=!0;xa.style+=J(e,u);fb(.7*r,.1*p,.7*r,.5*p,xa,F,D,Oa,v,oa);var Ya=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;");Ya.geometry.relative=!0;Ya.edge=!0;Ya.style+=J(e,u);fb(.5*r,.5*p,.5*r,.9*p,Ya,F,D,Oa,v,oa);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,
-e,u,v,G);x=new mxCell("",new mxGeometry(.2*r,.21*p,.16*r,.24*p),"part=1;fillColor=#ffffff;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);ea=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;");ea.geometry.relative=!0;ea.edge=!0;fb(.45*r,.33*p,.8*r,.33*p,ea,F,D,Oa,v,oa);E=new mxCell("",new mxGeometry(.64*r,.55*p,.16*r,.24*p),"part=1;fillColor=#ffffff;");E.vertex=!0;v.insert(E);E.style+=b(E.style,
-e,u,E);da=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;");da.geometry.relative=!0;da.edge=!0;fb(.55*r,.67*p,.2*r,.67*p,da,F,D,Oa,v,oa);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.1*r,.15*p,.8*r,.7*p),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");x.vertex=!0;v.insert(x);
-x.style+=b(x.style,e,u,x);break;case "EICorrelationIDBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.04*r,.06*p,.18*r,.28*p),"ellipse;fillColor=#808080;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("",new mxGeometry(.2*r,.56*p,.2*r,.32*p),"part=1;");E.vertex=!0;v.insert(E);E.value="A";E.style+="fontStyle=1;fontSize=13;";x.style+=b(x.style,e,u,x);ea=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;");ea.geometry.relative=!0;ea.edge=!0;x.insertEdge(ea,!1);E.insertEdge(ea,!0);ea.style+=b(ea.style,e,u,ea);Kc=[];Kc.push(new mxPoint(Z+.13*r,aa+.72*p));ea.geometry.points=Kc;F.push(D.addCell(ea,null,null,null,null));T=new mxCell("",new mxGeometry(.6*r,.06*p,.18*r,.28*p),"ellipse;fillColor=#808080;part=1;");T.vertex=!0;v.insert(T);T.style+=J(e,u)+sa(e);T.style+=b(T.style,e,u,T);ta=new mxCell("",new mxGeometry(.76*
-r,.56*p,.2*r,.32*p),"part=1;");ta.vertex=!0;v.insert(ta);ta.style+=J(e,u)+Q(e,u,ta)+sa(e)+qa(e);ta.value="B";ta.style+="fontStyle=1;fontSize=13;fillColor=#ffffff;";ta.style+=b(ta.style,e,u,ta);da=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;");da.geometry.relative=!0;da.edge=!0;T.insertEdge(da,!1);ta.insertEdge(da,!0);da.style+=b(da.style,e,u,da);var df=[];df.push(new mxPoint(Z+.69*r,aa+.72*p));da.geometry.points=
-df;F.push(D.addCell(da,null,null,null,null));xa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;endSize=6;part=1;");xa.geometry.relative=!0;xa.edge=!0;x.insertEdge(xa,!1);T.insertEdge(xa,!0);xa.style+=b(xa.style,e,u,xa);F.push(D.addCell(xa,null,null,null,null));break;case "EIMessageSequenceBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("1",new mxGeometry(.2*r,.4*p,.1*r,.19*p),
-"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("2",new mxGeometry(.45*r,.4*p,.1*r,.19*p),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");E.vertex=!0;v.insert(E);E.style+=b(E.style,e,u,E);T=new mxCell("3",new mxGeometry(.7*r,.4*p,.1*r,.19*p),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");T.vertex=!0;v.insert(T);T.style+=b(T.style,e,u,T);ea=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");
-x.insertEdge(ea,!1);E.insertEdge(ea,!0);ea.geometry.points=[new mxPoint(Z+.375*r,aa+.15*p)];ea.geometry.relative=!0;ea.edge=!0;ea.style+=b(ea.style,e,u,ea);F.push(D.addCell(ea,null,null,null,null));da=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");E.insertEdge(da,!1);T.insertEdge(da,!0);da.geometry.points=[new mxPoint(Z+.675*r,aa+.15*p)];da.geometry.relative=!0;da.edge=!0;da.style+=b(da.style,e,u,da);F.push(D.addCell(da,null,null,null,null));break;case "EIMessageExpirationBlock":v.style+=
+new mxPoint(.45*-r,0)):"EIGuaranteedDeliveryBlock"==w.Class&&(x=new mxCell("",new mxGeometry(.5,.5,20,27),"shape=cylinder;fillColor=#818181;part=1;"),x.geometry.offset=new mxPoint(-10,-7));x.geometry.relative=!0;x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);va=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;");va.geometry.relative=!0;va.edge=!0;gb(.15*r,.25*p,.85*r,.25*p,va,F,D,Na,v,qa);break;
+case "EIChannelAdapterBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,.07*p,.21*r,.86*p),"fillColor=#FFFF33;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("",new mxGeometry(.26*r,.09*p,.2*r,.82*p),"shape=mxgraph.eip.channel_adapter;fillColor=#4CA3D9;part=1;");E.vertex=!0;v.insert(E);E.style+=b(E.style,e,u,E);U=new mxCell("",new mxGeometry(1,.5,.35*r,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;");
+U.geometry.relative=!0;U.geometry.offset=new mxPoint(.4*-r,-10);U.vertex=!0;v.insert(U);U.style+=b(U.style,e,u,U);fa=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;");fa.geometry.relative=!0;fa.edge=!0;x.insertEdge(fa,!0);E.insertEdge(fa,!1);fa.style+=H(e,u);F.push(D.addCell(fa,null,null,null,null));da=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;");
+da.geometry.relative=!0;da.edge=!0;E.insertEdge(da,!0);U.insertEdge(da,!1);F.push(D.addCell(da,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=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);var Gd=
+e.Messages,pe=(p-17)/Gd;E=[];va=[];for(l=0;l<Gd;l++){var Hd=pe*(l+1)-3;E[l]=new mxCell("",new mxGeometry(r-20,Hd,20,20),"part=1;");E[l].vertex=!0;v.insert(E[l]);switch(w.Class){case "EIMessageBlock":E[l].value=m(e["message_"+(l+1)]);E.style+=a(e["message_"+(l+1)],G);break;case "EICommandMessageBlock":E[l].value="C";E[l].style+="fontStyle=1;fontSize=13;";break;case "EIDocumentMessageBlock":E[l].value="D";E[l].style+="fontStyle=1;fontSize=13;";break;case "EIEventMessageBlock":E[l].value="E",E[l].style+=
+"fontStyle=1;fontSize=13;"}E[l].style+=b(E[l].style,e,u,E[l]);va[l]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");va[l].geometry.relative=!0;va[l].edge=!0;x.insertEdge(va[l],!1);E[l].insertEdge(va[l],!0);va[l].style+=b(va[l].style,e,u,va[l]);var Lc=[];Lc.push(new mxPoint(aa+8.5,ba+Hd+10));va[l].geometry.points=Lc;F.push(D.addCell(va[l],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
+v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.45*r,.25*p,.3*r,.5*p),"part=1;fillColor=#ffffff");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);va=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;");va.geometry.relative=!0;va.edge=!0;gb(0,.5*p,.4*r,.5*p,va,F,D,Na,v,qa);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
+v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);var fa=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;");fa.geometry.relative=!0;fa.edge=!0;gb(.05*r,.5*p,.85*r,.5*p,fa,F,D,Na,v,qa);var da=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;");da.geometry.relative=!0;da.edge=!0;gb(.05*r,.5*p,.85*
+r,.15*p,da,F,D,Na,v,qa);var xa=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;");xa.geometry.relative=!0;xa.edge=!0;gb(.05*r,.5*p,.85*r,.85*p,xa,F,D,Na,v,qa);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);fa=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;");
+fa.geometry.relative=!0;fa.edge=!0;fa.style+=H(e,u);gb(.05*r,.5*p,.95*r,.5*p,fa,F,D,Na,v,qa);da=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;");da.geometry.relative=!0;da.edge=!0;da.style+=H(e,u);gb(.3*r,.1*p,.3*r,.5*p,da,F,D,Na,v,qa);xa=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;");
+xa.geometry.relative=!0;xa.edge=!0;xa.style+=H(e,u);gb(.7*r,.1*p,.7*r,.5*p,xa,F,D,Na,v,qa);var $a=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;");$a.geometry.relative=!0;$a.edge=!0;$a.style+=H(e,u);gb(.5*r,.5*p,.5*r,.9*p,$a,F,D,Na,v,qa);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,
+e,u,v,G);x=new mxCell("",new mxGeometry(.2*r,.21*p,.16*r,.24*p),"part=1;fillColor=#ffffff;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);fa=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;");fa.geometry.relative=!0;fa.edge=!0;gb(.45*r,.33*p,.8*r,.33*p,fa,F,D,Na,v,qa);E=new mxCell("",new mxGeometry(.64*r,.55*p,.16*r,.24*p),"part=1;fillColor=#ffffff;");E.vertex=!0;v.insert(E);E.style+=b(E.style,
+e,u,E);da=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;");da.geometry.relative=!0;da.edge=!0;gb(.55*r,.67*p,.2*r,.67*p,da,F,D,Na,v,qa);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.1*r,.15*p,.8*r,.7*p),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");x.vertex=!0;v.insert(x);
+x.style+=b(x.style,e,u,x);break;case "EICorrelationIDBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.04*r,.06*p,.18*r,.28*p),"ellipse;fillColor=#808080;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("",new mxGeometry(.2*r,.56*p,.2*r,.32*p),"part=1;");E.vertex=!0;v.insert(E);E.value="A";E.style+="fontStyle=1;fontSize=13;";x.style+=b(x.style,e,u,x);fa=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;");fa.geometry.relative=!0;fa.edge=!0;x.insertEdge(fa,!1);E.insertEdge(fa,!0);fa.style+=b(fa.style,e,u,fa);Lc=[];Lc.push(new mxPoint(aa+.13*r,ba+.72*p));fa.geometry.points=Lc;F.push(D.addCell(fa,null,null,null,null));U=new mxCell("",new mxGeometry(.6*r,.06*p,.18*r,.28*p),"ellipse;fillColor=#808080;part=1;");U.vertex=!0;v.insert(U);U.style+=H(e,u)+oa(e);U.style+=b(U.style,e,u,U);ta=new mxCell("",
+new mxGeometry(.76*r,.56*p,.2*r,.32*p),"part=1;");ta.vertex=!0;v.insert(ta);ta.style+=H(e,u)+M(e,u,ta)+oa(e)+sa(e);ta.value="B";ta.style+="fontStyle=1;fontSize=13;fillColor=#ffffff;";ta.style+=b(ta.style,e,u,ta);da=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;");da.geometry.relative=!0;da.edge=!0;U.insertEdge(da,!1);ta.insertEdge(da,!0);da.style+=b(da.style,e,u,da);var ef=[];ef.push(new mxPoint(aa+.69*r,ba+.72*
+p));da.geometry.points=ef;F.push(D.addCell(da,null,null,null,null));xa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;endSize=6;part=1;");xa.geometry.relative=!0;xa.edge=!0;x.insertEdge(xa,!1);U.insertEdge(xa,!0);xa.style+=b(xa.style,e,u,xa);F.push(D.addCell(xa,null,null,null,null));break;case "EIMessageSequenceBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("1",new mxGeometry(.2*
+r,.4*p,.1*r,.19*p),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("2",new mxGeometry(.45*r,.4*p,.1*r,.19*p),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");E.vertex=!0;v.insert(E);E.style+=b(E.style,e,u,E);U=new mxCell("3",new mxGeometry(.7*r,.4*p,.1*r,.19*p),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");U.vertex=!0;v.insert(U);U.style+=b(U.style,e,u,U);fa=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");
+x.insertEdge(fa,!1);E.insertEdge(fa,!0);fa.geometry.points=[new mxPoint(aa+.375*r,ba+.15*p)];fa.geometry.relative=!0;fa.edge=!0;fa.style+=b(fa.style,e,u,fa);F.push(D.addCell(fa,null,null,null,null));da=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");E.insertEdge(da,!1);U.insertEdge(da,!0);da.geometry.points=[new mxPoint(aa+.675*r,ba+.15*p)];da.geometry.relative=!0;da.edge=!0;da.style+=b(da.style,e,u,da);F.push(D.addCell(da,null,null,null,null));break;case "EIMessageExpirationBlock":v.style+=
"verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.3*r,.2*p,.4*r,.6*p),"shape=mxgraph.ios7.icons.clock;fillColor=#ffffff;flipH=1;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);break;case "EIMessageBrokerBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.38*r,.42*p,.24*r,.16*p),"part=1;fillColor=#aefe7d;");
-x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("",new mxGeometry(.38*r,0,.24*r,.16*p),"part=1;");E.vertex=!0;v.insert(E);E.style+=b(E.style,e,u,E);T=new mxCell("",new mxGeometry(.76*r,.23*p,.24*r,.16*p),"");T.vertex=!0;v.insert(T);T.style=E.style;var ta=new mxCell("",new mxGeometry(.76*r,.61*p,.24*r,.16*p),"");ta.vertex=!0;v.insert(ta);ta.style=E.style;var Yd=new mxCell("",new mxGeometry(.38*r,.84*p,.24*r,.16*p),"");Yd.vertex=!0;v.insert(Yd);Yd.style=E.style;var Zd=new mxCell("",new mxGeometry(0,
-.61*p,.24*r,.16*p),"");Zd.vertex=!0;v.insert(Zd);Zd.style=E.style;var $d=new mxCell("",new mxGeometry(0,.23*p,.24*r,.16*p),"");$d.vertex=!0;v.insert($d);$d.style=E.style;ea=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(ea,!1);E.insertEdge(ea,!0);ea.edge=!0;ea.style+=b(ea.style,e,u,ea);F.push(D.addCell(ea,null,null,null,null));da=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(da,!1);T.insertEdge(da,!0);da.edge=!0;da.style+=b(da.style,e,u,da);
-F.push(D.addCell(da,null,null,null,null));xa=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(xa,!1);ta.insertEdge(xa,!0);xa.edge=!0;xa.style+=b(xa.style,e,u,xa);F.push(D.addCell(xa,null,null,null,null));Ya=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(Ya,!1);Yd.insertEdge(Ya,!0);Ya.edge=!0;Ya.style+=b(Ya.style,e,u,Ya);F.push(D.addCell(Ya,null,null,null,null));var Lc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(Lc,
-!1);Zd.insertEdge(Lc,!0);Lc.edge=!0;Lc.style+=b(Lc.style,e,u,Lc);F.push(D.addCell(Lc,null,null,null,null));var Mc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(Mc,!1);$d.insertEdge(Mc,!0);Mc.edge=!0;Mc.style+=b(Mc.style,e,u,Mc);F.push(D.addCell(Mc,null,null,null,null));break;case "EIDurableSubscriberBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);ea=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");
-ea.geometry.relative=!0;ea.edge=!0;fb(.05*r,.5*p,.6*r,.25*p,ea,F,D,Oa,v,oa);da=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");da.geometry.relative=!0;da.edge=!0;fb(.05*r,.5*p,.6*r,.75*p,da,F,D,Oa,v,oa);x=new mxCell("",new mxGeometry(.7*r,.1*p,.15*r,.32*p),"shape=mxgraph.eip.durable_subscriber;part=1;fillColor=#818181;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);break;case "EIControlBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
-v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.25*r,.25*p,.5*r,.5*p),"shape=mxgraph.eip.control_bus;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);break;case "EIMessageHistoryBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);T=new mxCell("",
-new mxGeometry(r-45,30,30,20),"shape=mxgraph.mockup.misc.mail2;fillColor=#FFE040;part=1;");T.vertex=!0;v.insert(T);T.style+=b(T.style,e,u,T);xa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");xa.geometry.relative=!0;xa.edge=!0;x.insertEdge(xa,!1);T.insertEdge(xa,!0);xa.style+=b(xa.style,e,u,xa);xa.geometry.points=[new mxPoint(Z+8.5,aa+40)];F.push(D.addCell(xa,null,null,null,null));ta=new mxCell("",new mxGeometry(r-45,
-p-20,20,20),"part=1;");ta.vertex=!0;v.insert(ta);ta.value=m(e.message_0);ta.style+=a(e.message_0,G);ta.style+=b(ta.style,e,u,ta,G);Ya=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");Ya.geometry.relative=!0;Ya.edge=!0;x.insertEdge(Ya,!1);ta.insertEdge(Ya,!0);Ya.style+=b(Ya.style,e,u,Ya);Ya.geometry.points=[new mxPoint(Z+8.5,aa+p-10)];F.push(D.addCell(Ya,null,null,null,null));Fd=e.HistoryMessages;oe=(p-75)/Fd;E=[];va=
-[];for(l=0;l<Fd;l++)Gd=oe*(l+1)+30,E[l]=new mxCell("",new mxGeometry(r-20,Gd,20,20),"part=1;"),E[l].vertex=!0,E[l].value=m(e["message_"+(l+1)]),E.style+=a(e["message_"+(l+1)],G),v.insert(E[l]),E[l].style+=b(E[l].style,e,u,E[l],G),va[l]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;"),va[l].geometry.relative=!0,va[l].edge=!0,T.insertEdge(va[l],!1),E[l].insertEdge(va[l],!0),va[l].style+=b(va[l].style,e,u,va[l]),Kc=[],Kc.push(new mxPoint(Z+
-r-30,aa+Gd+10)),va[l].geometry.points=Kc,F.push(D.addCell(va[l],null,null,null,null));break;case "Equation":LucidImporter.hasMath=!0;v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v);v.value="$$"+e.Latex+"$$";break;case "fpDoor":v.style+="shape=mxgraph.floorplan.doorRight;";0>e.DoorAngle&&(v.style+="flipV=1;");v.style+=b(v.style,e,u,v);break;case "fpWall":v.style+="labelPosition=center;verticalAlign=bottom;verticalLabelPosition=top;";v.value=m(e);v.style+=b(v.style,e,u,v,G);v.style=v.style.replace("rotation=180;",
-"");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;";0<e.DoorAngle&&(v.style+="flipV=1;");v.style+=b(v.style,e,u,v);break;case "fpRestroomLights":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);x=new mxCell("",new mxGeometry(0,0,r,.25*p),"part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=[];var ef=.02*r,pe=(r-2*ef)/e.LightCount,ff=.8*pe;for(l=0;l<e.LightCount;l++)E[l]=new mxCell("",new mxGeometry(ef+pe*l+(pe-ff)/2,.25*p,ff,.75*p),"ellipse;part=1;"),
-E[l].vertex=!0,v.insert(E[l]),E[l].style+=b(E[l].style,e,u,E[l]);break;case "fpRestroomSinks":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);x=[];var gf=r/e.SinkCount;for(l=0;l<e.SinkCount;l++)x[l]=new mxCell("",new mxGeometry(gf*l,0,gf,p),"part=1;shape=mxgraph.floorplan.sink_2;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=b(x[l].style,e,u,x[l]);break;case "fpRestroomStalls":v.style+="strokeColor=none;fillColor=none;";var Eb=.1*r/e.StallCount;x=new mxCell("",new mxGeometry(0,
-0,Eb,p),"fillColor=#000000;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);var Nb=(r-Eb)/e.StallCount,qe=[],Hd=[],Id=[],Jd=[];Y=J(e,u);Y=""==Y?"#000000;":Y.replace("stokreColor=","");var re="part=1;fillColor="+Y;re+=b(re,e,u,v);var se=b("",e,u,v);for(l=0;l<e.StallCount;l++)qe[l]=new mxCell("",new mxGeometry((l+1)*Nb,0,Eb,p),re),qe[l].vertex=!0,v.insert(qe[l]),Id[l]=new mxCell("",new mxGeometry(Eb+l*Nb+.05*(Nb-Eb),p-.92*(Nb-Eb),.9*(Nb-Eb),.92*(Nb-Eb)),"shape=mxgraph.floorplan.doorRight;flipV=1;part=1;"),
-Id[l].vertex=!0,v.insert(Id[l]),Id[l].style+=se,Hd[l]=new mxCell("",new mxGeometry(Eb+l*Nb+.2*(Nb-Eb),0,.6*(Nb-Eb),.8*(Nb-Eb)),"shape=mxgraph.floorplan.toilet;part=1;"),Hd[l].vertex=!0,v.insert(Hd[l]),Hd[l].style+=se,Jd[l]=new mxCell("",new mxGeometry(Eb+l*Nb,.42*p,.15*(Nb-Eb),.12*(Nb-Eb)),"part=1;"),Jd[l].vertex=!0,v.insert(Jd[l]),Jd[l].style+=se;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var ae="edgeStyle=none;endArrow=none;part=1;";Y=J(e,u);Y=""==Y?"#000000;":Y.replace("strokeColor=",
-"");var Uc="shape=triangle;part=1;fillColor="+Y;Uc+=b(Uc,e,u,v);ea=new mxCell("",new mxGeometry(0,0,0,0),ae);ea.geometry.relative=!0;ea.edge=!0;fb(0,.5*p,.65*r,.5*p,ea,F,D,Oa,v,oa);var ha=p/e.numLines;da=[];var Vc=[];for(l=0;l<e.numLines;l++)da[l]=new mxCell("",new mxGeometry(0,0,0,0),ae),da[l].geometry.relative=!0,da[l].edge=!0,fb(.65*r,.5*p,.96*r,(l+.5)*ha,da[l],F,D,Oa,v,oa),Vc[l]=new mxCell("",new mxGeometry(.95*r,(l+.2)*ha,.05*r,.6*ha),Uc),Vc[l].vertex=!0,v.insert(Vc[l]);break;case "PEMultilines":v.style+=
-"strokeColor=none;fillColor=none;";ae="edgeStyle=none;endArrow=none;part=1;";Y=J(e,u);Y=""==Y?"#000000;":Y.replace("strokeColor=","");Uc="shape=triangle;part=1;fillColor="+Y;Uc+=b(Uc,e,u,v);ha=p/e.numLines;da=[];Vc=[];for(l=0;l<e.numLines;l++)da[l]=new mxCell("",new mxGeometry(0,0,0,0),ae),da[l].geometry.relative=!0,da[l].edge=!0,fb(0,(l+.5)*ha,.96*r,(l+.5)*ha,da[l],F,D,Oa,v,oa),Vc[l]=new mxCell("",new mxGeometry(.95*r,(l+.2)*ha,.05*r,.6*ha),Uc),Vc[l].vertex=!0,v.insert(Vc[l]);break;case "PEVesselBlock":v.style+=
-"verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);switch(e.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+=b(v.style,e,u,v,G);break;case "PEClosedTankBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);1==e.peakedRoof&&0==e.stumpType?v.style+="shape=mxgraph.pid.vessels.tank_(conical_roof);":1==e.stumpType&&(v.style+="shape=mxgraph.pid.vessels.tank_(boot);");
-v.style+=b(v.style,e,u,v,G);break;case "PEColumnBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style=0==e.columnType?v.style+"shape=mxgraph.pid.vessels.pressurized_vessel;":v.style+"shape=mxgraph.pid.vessels.tank;";v.style+=b(v.style,e,u,v,G);break;case "PECompressorTurbineBlock":v.style+="strokeColor=none;fillColor=none;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,.2*p,r,.6*p),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");
-x.vertex=!0;v.insert(x);x.style+=ja;x.style+=b(x.style,e,u,x);ja="endSize=4;endArrow=block;endFill=1;";0==e.compressorType?(ea=new mxCell("",new mxGeometry(0,0,0,0),""),ea.geometry.relative=!0,ea.edge=!0,ea.style+=ja,ea.style+=b(ea.style,e,u,ea),fb(0,0,0,.2*p,ea,F,D,Oa,v,oa),da=new mxCell("",new mxGeometry(0,0,0,0),""),da.geometry.relative=!0,da.edge=!0,da.style+=ja,da.style+=b(da.style,e,u,da),fb(r,.67*p,r,p,da,F,D,Oa,v,oa)):(x.style+="flipH=1;",ea=new mxCell("",new mxGeometry(0,0,0,0),""),ea.geometry.relative=
-!0,ea.edge=!0,ea.style+=ja,ea.style+=b(ea.style,e,u,ea),fb(0,0,0,.33*p,ea,F,D,Oa,v,oa),da=new mxCell("",new mxGeometry(0,0,0,0),""),da.geometry.relative=!0,da.edge=!0,da.style+=ja,da.style+=b(da.style,e,u,da),fb(r,.8*p,r,p,da,F,D,Oa,v,oa));1==e.centerLineType&&(xa=new mxCell("",new mxGeometry(0,0,0,0),""),xa.geometry.relative=!0,xa.edge=!0,xa.style+=ja,xa.style+=b(xa.style,e,u,xa),fb(.2*r,.5*p,.8*r,.5*p,xa,F,D,Oa,v,oa));break;case "PEMotorDrivenTurbineBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";
-v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.2*r,.2*p,.6*r,.6*p),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);break;case "PEIndicatorBlock":case "PEIndicator2Block":case "PESharedIndicatorBlock":case "PEComputerIndicatorBlock":case "PESharedIndicator2Block":case "PEProgrammableIndicatorBlock":switch(w.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+=b(v.style,e,u,v);"PEIndicator2Block"==w.Class||"PESharedIndicator2Block"==w.Class?(x=new mxCell("",
-new mxGeometry(0,0,r,.5*r),"part=1;strokeColor=none;fillColor=none;"),x.vertex=!0,v.insert(x),x.value=m(e.TopText),x.style+=a(e.TopText,G),x.style+=b(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,.5*r,r,.5*r),"part=1;strokeColor=none;fillColor=none;")):(x=new mxCell("",new mxGeometry(0,0,r,.5*p),"part=1;strokeColor=none;fillColor=none;"),x.vertex=!0,v.insert(x),x.value=m(e.TopText),x.style+=a(e.TopText,G),x.style+=b(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,.5*p,r,.5*p),"part=1;strokeColor=none;fillColor=none;"));
-E.vertex=!0;v.insert(E);E.value=m(e.BotText);E.style+=a(e.BotText,G);E.style+=b(E.style,e,u,E,G);switch(e.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 te=!1;"PEPoweredValveBlock"==w.Class?1!=e.poweredHandOperated&&(te=!0):1!=
-e.handOperated&&(te=!0);if(te){e=h(w).Properties;P=e.BoundingBox;var Sf=P.h;P.h="PEAngleValveBlock"==w.Class||"PEAngleGlobeValveBlock"==w.Class?.7*P.h:.6*P.h;v=new mxCell("",new mxGeometry(Math.round(.75*P.x+wc),Math.round(.75*(P.y+Sf-P.h)+xc),Math.round(.75*P.w),Math.round(.75*P.h)),"");v.vertex=!0;Qb(v,w,D)}if("PEPoweredValveBlock"==w.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;",v.style+=b(v.style,e,u,v),1==e.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",
-x=new mxCell("",new mxGeometry(.325*r,0,.35*r,.35*p),"part=1;strokeColor=none;fillColor=none;spacingTop=2;"),x.vertex=!0,v.insert(x),x.value=m(e.PoweredText),x.style+=(G?"":q(e.PoweredText)+t(e.PoweredText)+C(e.PoweredText)+I(e.PoweredText)+N(e.PoweredText)+O(e.PoweredText)+S(e.PoweredText))+"fontSize=6;"+H(e.PoweredText),x.style+=b(x.style,e,u,x,G)):v.style+="valveType=gate;";else{v.style+="verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;";v.value=m(e.Text);switch(w.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==e.handOperated&&(v.style+="actuator=man;")}v.style+=b(v.style,e,u,v,G);break;case "UI2BrowserBlock":v.style+="shape=mxgraph.mockup.containers.browserWindow;mainText=;";1==e.vScroll&&(T=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-130),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):
-new mxCell("",new mxGeometry(1,0,20,p-110),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(-20,110),T.vertex=!0,v.insert(T),v.style+="spacingRight=20;");1==e.hScroll&&(ta=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
-ta.geometry.relative=!0,ta.geometry.offset=new mxPoint(0,-20),ta.vertex=!0,v.insert(ta));v.style+=b(v.style,e,u,v);break;case "UI2WindowBlock":v.value=m(e.Title);v.style+="shape=mxgraph.mockup.containers.window;mainText=;align=center;verticalAlign=top;spacing=5;"+(G?"fontSize=13;":f(e.Title)+q(e.Title)+t(e.Title));1==e.vScroll&&(T=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,
-0,20,p-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(-20,30),T.vertex=!0,v.insert(T),v.style+="spacingRight=20;");1==e.hScroll&&(ta=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),ta.geometry.relative=
-!0,ta.geometry.offset=new mxPoint(0,-20),ta.vertex=!0,v.insert(ta));v.style+=b(v.style,e,u,v,G);break;case "UI2DialogBlock":v.value=m(e.Text);v.style+=a(e.Text,G);x=new mxCell("",new mxGeometry(0,0,r,30),"part=1;resizeHeight=0;");x.vertex=!0;v.insert(x);x.value=m(e.Title);x.style+=a(e.Title,G);x.style+=b(x.style,e,u,x,G);E=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");E.geometry.relative=!0;E.geometry.offset=new mxPoint(-25,-10);
-E.vertex=!0;x.insert(E);1==e.vScroll&&(T=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(-20,30),T.vertex=!0,v.insert(T),v.style+="spacingRight=20;");1==e.hScroll&&(ta=1==e.vScroll?new mxCell("",new mxGeometry(0,
-1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),ta.geometry.relative=!0,ta.geometry.offset=new mxPoint(0,-20),ta.vertex=!0,v.insert(ta));v.style+=b(v.style,e,u,v);e.Text=null;break;case "UI2AccordionBlock":x=[];ha=25;for(l=0;l<=e.Panels-1;l++)x[l]=l<e.Selected-1?new mxCell("",new mxGeometry(0,l*ha,r,ha),"part=1;fillColor=#000000;fillOpacity=25;"):
-l==e.Selected-1?new mxCell("",new mxGeometry(0,l*ha,r,ha),"part=1;fillColor=none;"):new mxCell("",new mxGeometry(0,p-(e.Panels-e.Selected)*ha+(l-e.Selected)*ha,r,ha),"part=1;fillColor=#000000;fillOpacity=25;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Panel_"+(l+1)]),x[l].style+=a(e["Panel_"+(l+1)],G),0>x[l].style.indexOf(";align=")&&(x[l].style+="align=left;spacingLeft=5;");var Ua=J(e,u);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?
-new mxCell("",new mxGeometry(1,0,20,p-e.Selected*ha-20-(e.Panels-e.Selected)*ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-e.Selected*ha-(e.Panels-e.Selected)*ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,e.Selected*ha),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Ua,E.style+=b(E.style,
-e,u,E));1==e.hScroll&&(T=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20-(e.Panels-e.Selected)*ha),T.vertex=!0,v.insert(T),T.style+=Ua,T.style+=b(T.style,e,u,T));ta=1==e.vScroll?new mxCell("",new mxGeometry(0,e.Selected*ha,r-20,p-e.Selected*ha-
-20-(e.Panels-e.Selected)*ha),"part=1;fillColor=none;strokeColor=none;"):new mxCell("",new mxGeometry(0,e.Selected*ha,r-20,p-e.Selected*ha-(e.Panels-e.Selected)*ha),"part=1;fillColor=none;strokeColor=none;");ta.vertex=!0;v.insert(ta);ta.value=m(e.Content_1);ta.style+=a(e.Content_1,G);!G&&0>ta.style.indexOf(";align=")&&(ta.style+="align=left;spacingLeft=5;");v.style+=b(v.style,e,u,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";x=[];E=[];ha=25;var Hb=3,Ha=(r+Hb)/
-(e.Tabs+1),hb=new mxCell("",new mxGeometry(0,ha,r,p-ha),"part=1;");hb.vertex=!0;v.insert(hb);hb.style+=b(hb.style,e,u,hb);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(10+l*Ha,0,Ha-Hb,ha),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",new mxGeometry(10+l*Ha,0,Ha-Hb,ha),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha-Hb,ha),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=
-!0,x[l].insert(E[l])),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;"),E[l].style+=b(E[l].style,e,u,E[l]);Ua=J(e,u);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),
-E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,ha),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Ua,E.style+=b(E.style,e,u,E));1==e.hScroll&&(T=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20),T.vertex=!0,v.insert(T),T.style+=
-Ua,T.style+=b(T.style,e,u,T));break;case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";x=[];E=[];ha=25;Hb=3;Ha=(r+Hb)/e.Tabs;hb=new mxCell("",new mxGeometry(0,ha,r,p-ha),"part=1;");hb.vertex=!0;v.insert(hb);hb.style+=b(hb.style,e,u,hb);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha-Hb,ha),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha-Hb,ha),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=
-b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha-Hb,ha),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),E[l].style+=b(E[l].style,e,u,E[l],G),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;");Ua=J(e,u);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):
-new mxCell("",new mxGeometry(1,0,20,p-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,ha),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Ua,E.style+=b(E.style,e,u,E));1==e.hScroll&&(T=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
-T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20),T.vertex=!0,v.insert(T),T.style+=Ua,T.style+=b(T.style,e,u,T));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";x=[];E=[];Hb=3;ha=25+Hb;Ha=80;zc=10;hb=new mxCell("",new mxGeometry(Ha,0,r-Ha,p),"part=1;");hb.vertex=!0;v.insert(hb);hb.style+=b(hb.style,e,u,hb);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(0,zc+l*ha,Ha,ha-Hb),""),E[l].vertex=!0,v.insert(E[l]),E[l].value=m(e["Tab_"+
-(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),E[l].style+=b(E[l].style,e,u,E[l],G)):(x[l]=new mxCell("",new mxGeometry(0,zc+l*ha,Ha,ha-Hb),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha,ha-Hb),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G)),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;"),E[l].style+=b(E[l].style,
-e,u,E[l]);Ua=J(e,u);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,0),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",
-E.style+=Ua,E.style+=b(E.style,e,u,E));1==e.hScroll&&(T=1==e.vScroll?new mxCell("",new mxGeometry(Ha,1,r-20-Ha,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(Ha,1,r-Ha,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20),T.vertex=!0,v.insert(T),T.style+=Ua,T.style+=b(T.style,e,u,T));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";
-ha=p/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(0,l*ha+.5*ha-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=b(x[l].style,e,u,x[l],G),null!=e.Selected[l+1]&&1==e.Selected[l+1]&&(Y=J(e,u),Y=Y.replace("strokeColor","fillColor"),""==Y&&(Y="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2,
-2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Y,E[l].style+=b(E[l].style,e,u,E[l]));break;case "UI2HorizontalCheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";Ha=r/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(l*Ha,.5*p-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=
-a(e["Option_"+(l+1)],G),x[l].style+=b(x[l].style,e,u,x[l],G),null!=e.Selected[l+1]&&1==e.Selected[l+1]&&(Y=J(e,u),Y=Y.replace("strokeColor","fillColor"),""==Y&&(Y="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Y,E[l].style+=b(E[l].style,e,u,E[l]));break;case "UI2RadioBlock":v.style+="strokeColor=none;fillColor=none;";ha=p/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(0,
-l*ha+.5*ha-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=b(x[l].style,e,u,x[l],G),null!=e.Selected&&e.Selected==l+1&&(Y=J(e,u),Y=Y.replace("strokeColor","fillColor"),""==Y&&(Y="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2.5,2.5,5,5),"ellipse;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Y,E[l].style+=
-b(E[l].style,e,u,E[l]));break;case "UI2HorizontalRadioBlock":v.style+="strokeColor=none;fillColor=none;";Ha=r/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(l*Ha,.5*p-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=b(x[l].style,e,u,x[l],G),null!=e.Selected&&e.Selected==l+1&&(Y=J(e,u),
-Y=Y.replace("strokeColor","fillColor"),""==Y&&(Y="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2,2,6,6),"ellipse;part=1;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Y,E[l].style+=b(E[l].style,e,u,E[l]));break;case "UI2SelectBlock":v.style+="shape=mxgraph.mockup.forms.comboBox;strokeColor=#999999;fillColor=#ddeeff;align=left;fillColor2=#aaddff;mainText=;fontColor=#666666";v.value=m(e.Selected);break;case "UI2HSliderBlock":case "UI2VSliderBlock":v.style+="shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;handleStyle=handle;";
-"UI2VSliderBlock"==w.Class&&(v.style+="direction=south;");v.style+="sliderPos="+100*e.ScrollVal+";";v.style+=b(v.style,e,u,v);break;case "UI2DatePickerBlock":v.style+="strokeColor=none;fillColor=none;";x=new mxCell("",new mxGeometry(0,0,.6*r,p),"part=1;");x.vertex=!0;v.insert(x);x.value=m(e.Date);x.style+=a(e.Date,G);v.style+=b(v.style,e,u,v);Y=J(e,u);Y=Y.replace("strokeColor","fillColor");""==Y&&(Y="fillColor=#000000;");E=new mxCell("",new mxGeometry(.75*r,0,.25*r,p),"part=1;shape=mxgraph.gmdl.calendar;");
-E.vertex=!0;v.insert(E);E.style+=Y;E.style+=b(E.style,e,u,E);break;case "UI2SearchBlock":v.value=m(e.Search);v.style+="shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1;align=left;spacingLeft=26;"+a(e.Search,G);v.style+=b(v.style,e,u,v,G);break;case "UI2NumericStepperBlock":Y=J(e,u);Y=Y.replace("strokeColor","fillColor");""==Y&&(Y="fillColor=#000000;");v.value=m(e.Number);v.style+="shape=mxgraph.mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;mainText=;align=left;spacingLeft=8;"+
-Y+a(e.Number,G);v.style+=b(v.style,e,u,v,G);break;case "UI2TableBlock":try{kb=U(e.FillColor);var Kd=U(e.LineColor);Sc="";var be=20;v.style="html=1;overflow=fill;verticalAlign=top;spacing=0;";var Ld='<table style="width:100%;height:100%;border-collapse: collapse;border: 1px solid '+Kd+';">',tc=e.Data.split("\n");var hf=e.AltRow&&"default"!=e.AltRow?"none"==e.AltRow?kb:U(e.AltRow):Rd(kb,.95);Oc=e.Header&&"default"!=e.Header?"none"==e.Header?hf:U(e.Header):Rd(kb,.8);if("full"==e.GridLines)Sc="border: 1px solid "+
-Kd,be=19;else if("row"==e.GridLines)Sc="border-bottom: 1px solid "+Kd,be=19;else if("default"==e.GridLines||"column"==e.GridLines)Sc="border-right: 1px solid "+Kd;tc=tc.filter(function(gb){return gb});/^\{[^}]*\}$/.test(tc[tc.length-1])&&tc.pop();Fc=tc[0].split(",").length;var jf="";for(fa=0;fa<Fc-1;fa++)jf+=" , ";for(l=tc.length;l<Math.ceil(p/20);l++)tc.push(jf);for(l=0;l<tc.length;l++){Ld+='<tr style="height: '+be+"px;background:"+(0==l?Oc:l%2?kb:hf)+'">';var kf=tc[l].split(",");for(fa=0;fa<kf.length;fa++){var Md=
-e["Cell_"+l+"_"+fa],Tf=Md&&Md.m&&Md.m[0]&&"c"==Md.m[0].n?U(Md.m[0].v):Kd;Ld+='<td style="height: '+be+"px;color:"+Tf+";"+Sc+'">'+mxUtils.htmlEntities(kf[fa])+"</td>"}Ld+="</tr>"}Ld+="</table>";v.value=Ld}catch(gb){console.log(gb)}break;case "UI2ButtonBarBlock":v.style+=b(v.style,e,u,v);x=[];E=[];Ha=r/e.Buttons;for(l=0;l<=e.Buttons-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha,p),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha,p),"strokeColor=none;"),
-x[l].vertex=!0,v.insert(x[l]),x[l].style+=x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha,p),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Button_"+(l+1)]),E[l].style+=a(e["Button_"+(l+1)],G),E[l].style+=b(E[l].style,e,u,E[l],G);break;case "UI2VerticalButtonBarBlock":v.style+=b(v.style,e,u,v);x=[];E=[];ha=p/e.Buttons;for(l=0;l<=e.Buttons-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(0,l*ha,r,ha),""),E[l].vertex=!0,v.insert(E[l])):
-(x[l]=new mxCell("",new mxGeometry(0,l*ha,r,ha),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,r,ha),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Button_"+(l+1)]),E[l].style+=a(e["Button_"+(l+1)],G),E[l].style+=b(E[l].style,e,u,E[l],G);break;case "UI2LinkBarBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);x=[];E=[];Ha=r/e.Links;for(l=0;l<e.Links;l++)0!=
-l?(E[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha,p),"shape=partialRectangle;top=0;bottom=0;right=0;fillColor=none;"),E[l].style+=b(E[l].style,e,u,E[l])):E[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha,p),"fillColor=none;strokeColor=none;"),E[l].vertex=!0,v.insert(E[l]),E[l].value=m(e["Link_"+(l+1)]),E[l].style+=a(e["Link_"+(l+1)],G);break;case "UI2BreadCrumbsBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);x=[];E=[];Ha=r/e.Links;for(l=0;l<e.Links;l++)x[l]=new mxCell("",new mxGeometry(l*
-Ha,0,Ha,p),"fillColor=none;strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Link_"+(l+1)]),x[l].style+=a(e["Link_"+(l+1)],G);for(l=1;l<e.Links;l++)E[l]=new mxCell("",new mxGeometry(l/e.Links,.5,6,10),"shape=mxgraph.ios7.misc.right;"),E[l].geometry.relative=!0,E[l].geometry.offset=new mxPoint(-3,-5),E[l].vertex=!0,v.insert(E[l]);break;case "UI2MenuBarBlock":v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v);x=[];Ha=r/(e.Buttons+1);for(l=0;l<=e.Buttons-1;l++)x[l]=l!=e.Selected-
-1?new mxCell("",new mxGeometry(0,0,Ha,p),"strokeColor=none;fillColor=none;resizeHeight=1;"):new mxCell("",new mxGeometry(0,0,Ha,p),"fillColor=#000000;fillOpacity=25;strokeColor=none;resizeHeight=1;"),x[l].geometry.relative=!0,x[l].geometry.offset=new mxPoint(l*Ha,0),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["MenuItem_"+(l+1)]),x[l].style+=a(e["MenuItem_"+(l+1)],G);break;case "UI2AtoZBlock":v.style+="fillColor=none;strokeColor=none;"+a(e.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;"+a(e.Text_prev);v.value=m(e.Text_prev)+" ";for(l=0;l<e.Links;l++)v.value+=m(e["Link_"+(l+1)])+" ";v.value+=m(e.Text_next);break;case "UI2ContextMenuBlock":v.style+=b(v.style,e,u,v);X=[];nb=[];var jd=[];ha=p/e.Lines;ja=null;for(l=0;l<e.Lines;l++)null!=e["Item_"+(l+1)]&&(null==ja&&(ja=""+f(e["Item_"+(l+1)])+q(e["Item_"+(l+1)])+t(e["Item_"+(l+1)])),X[l]=new mxCell("",new mxGeometry(0,l*p/e.Lines,r,ha),"strokeColor=none;fillColor=none;spacingLeft=20;align=left;html=1;"),
-X[l].vertex=!0,v.insert(X[l]),X[l].style+=ja,X[l].value=m(e["Item_"+(l+1)])),null!=e.Icons[l+1]&&null!=X[l]&&("dot"==e.Icons[l+1]?(nb[l]=new mxCell("",new mxGeometry(0,.5,8,8),"ellipse;strokeColor=none;"),nb[l].geometry.offset=new mxPoint(6,-4)):"check"==e.Icons[l+1]&&(nb[l]=new mxCell("",new mxGeometry(0,.5,7,8),"shape=mxgraph.mscae.general.checkmark;strokeColor=none;"),nb[l].geometry.offset=new mxPoint(6.5,-4)),null!=nb[l]&&(nb[l].geometry.relative=!0,nb[l].vertex=!0,X[l].insert(nb[l]),Y=J(e,u),
-Y=Y.replace("strokeColor","fillColor"),""==Y&&(Y="fillColor=#000000;"),nb[l].style+=Y)),null!=e["Shortcut_"+(l+1)]&&(null==ja&&(ja=""+f(e["Shortcut_"+(l+1)])+q(e["Shortcut_"+(l+1)])+t(e["Shortcut_"+(l+1)])),jd[l]=new mxCell("",new mxGeometry(.6*r,l*p/e.Lines,.4*r,ha),"strokeColor=none;fillColor=none;spacingRight=3;align=right;html=1;"),jd[l].vertex=!0,v.insert(jd[l]),jd[l].style+=ja,jd[l].value=m(e["Shortcut_"+(l+1)])),null!=e.Dividers[l+1]&&(X[l]=new mxCell("",new mxGeometry(.05*r,l*p/e.Lines,.9*
-r,ha),"shape=line;strokeWidth=1;"),X[l].vertex=!0,v.insert(X[l]),X[l].style+=J(e,u));break;case "UI2ProgressBarBlock":v.style+="shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos="+100*e.ScrollVal+";";break;case "CalloutSquareBlock":case "UI2TooltipSquareBlock":v.value=m(e.Tip||e.Text);v.style+="html=1;shape=callout;flipV=1;base=13;size=7;position=0.5;position2=0.66;rounded=1;arcSize="+e.RoundCorners+";"+a(e.Tip||e.Text,G);v.style+=b(v.style,e,u,v,G);v.geometry.height+=10;break;case "UI2CalloutBlock":v.value=
+x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("",new mxGeometry(.38*r,0,.24*r,.16*p),"part=1;");E.vertex=!0;v.insert(E);E.style+=b(E.style,e,u,E);U=new mxCell("",new mxGeometry(.76*r,.23*p,.24*r,.16*p),"");U.vertex=!0;v.insert(U);U.style=E.style;var ta=new mxCell("",new mxGeometry(.76*r,.61*p,.24*r,.16*p),"");ta.vertex=!0;v.insert(ta);ta.style=E.style;var Zd=new mxCell("",new mxGeometry(.38*r,.84*p,.24*r,.16*p),"");Zd.vertex=!0;v.insert(Zd);Zd.style=E.style;var $d=new mxCell("",new mxGeometry(0,
+.61*p,.24*r,.16*p),"");$d.vertex=!0;v.insert($d);$d.style=E.style;var ae=new mxCell("",new mxGeometry(0,.23*p,.24*r,.16*p),"");ae.vertex=!0;v.insert(ae);ae.style=E.style;fa=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(fa,!1);E.insertEdge(fa,!0);fa.edge=!0;fa.style+=b(fa.style,e,u,fa);F.push(D.addCell(fa,null,null,null,null));da=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(da,!1);U.insertEdge(da,!0);da.edge=!0;da.style+=b(da.style,e,u,da);
+F.push(D.addCell(da,null,null,null,null));xa=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(xa,!1);ta.insertEdge(xa,!0);xa.edge=!0;xa.style+=b(xa.style,e,u,xa);F.push(D.addCell(xa,null,null,null,null));$a=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge($a,!1);Zd.insertEdge($a,!0);$a.edge=!0;$a.style+=b($a.style,e,u,$a);F.push(D.addCell($a,null,null,null,null));var Mc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(Mc,
+!1);$d.insertEdge(Mc,!0);Mc.edge=!0;Mc.style+=b(Mc.style,e,u,Mc);F.push(D.addCell(Mc,null,null,null,null));var Nc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(Nc,!1);ae.insertEdge(Nc,!0);Nc.edge=!0;Nc.style+=b(Nc.style,e,u,Nc);F.push(D.addCell(Nc,null,null,null,null));break;case "EIDurableSubscriberBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);fa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");
+fa.geometry.relative=!0;fa.edge=!0;gb(.05*r,.5*p,.6*r,.25*p,fa,F,D,Na,v,qa);da=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");da.geometry.relative=!0;da.edge=!0;gb(.05*r,.5*p,.6*r,.75*p,da,F,D,Na,v,qa);x=new mxCell("",new mxGeometry(.7*r,.1*p,.15*r,.32*p),"shape=mxgraph.eip.durable_subscriber;part=1;fillColor=#818181;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);break;case "EIControlBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
+v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.25*r,.25*p,.5*r,.5*p),"shape=mxgraph.eip.control_bus;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);break;case "EIMessageHistoryBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);U=new mxCell("",
+new mxGeometry(r-45,30,30,20),"shape=mxgraph.mockup.misc.mail2;fillColor=#FFE040;part=1;");U.vertex=!0;v.insert(U);U.style+=b(U.style,e,u,U);xa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");xa.geometry.relative=!0;xa.edge=!0;x.insertEdge(xa,!1);U.insertEdge(xa,!0);xa.style+=b(xa.style,e,u,xa);xa.geometry.points=[new mxPoint(aa+8.5,ba+40)];F.push(D.addCell(xa,null,null,null,null));ta=new mxCell("",new mxGeometry(r-
+45,p-20,20,20),"part=1;");ta.vertex=!0;v.insert(ta);ta.value=m(e.message_0);ta.style+=a(e.message_0,G);ta.style+=b(ta.style,e,u,ta,G);$a=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");$a.geometry.relative=!0;$a.edge=!0;x.insertEdge($a,!1);ta.insertEdge($a,!0);$a.style+=b($a.style,e,u,$a);$a.geometry.points=[new mxPoint(aa+8.5,ba+p-10)];F.push(D.addCell($a,null,null,null,null));Gd=e.HistoryMessages;pe=(p-75)/Gd;E=[];
+va=[];for(l=0;l<Gd;l++)Hd=pe*(l+1)+30,E[l]=new mxCell("",new mxGeometry(r-20,Hd,20,20),"part=1;"),E[l].vertex=!0,E[l].value=m(e["message_"+(l+1)]),E.style+=a(e["message_"+(l+1)],G),v.insert(E[l]),E[l].style+=b(E[l].style,e,u,E[l],G),va[l]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;"),va[l].geometry.relative=!0,va[l].edge=!0,U.insertEdge(va[l],!1),E[l].insertEdge(va[l],!0),va[l].style+=b(va[l].style,e,u,va[l]),Lc=[],
+Lc.push(new mxPoint(aa+r-30,ba+Hd+10)),va[l].geometry.points=Lc,F.push(D.addCell(va[l],null,null,null,null));break;case "Equation":LucidImporter.hasMath=!0;v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v);v.value="$$"+e.Latex+"$$";break;case "fpDoor":v.style+="shape=mxgraph.floorplan.doorRight;";0>e.DoorAngle&&(v.style+="flipV=1;");v.style+=b(v.style,e,u,v);break;case "fpWall":v.style+="labelPosition=center;verticalAlign=bottom;verticalLabelPosition=top;";v.value=m(e);v.style+=b(v.style,e,u,
+v,G);v.style=v.style.replace("rotation=180;","");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;";0<e.DoorAngle&&(v.style+="flipV=1;");v.style+=b(v.style,e,u,v);break;case "fpRestroomLights":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);x=new mxCell("",new mxGeometry(0,0,r,.25*p),"part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=[];var ff=.02*r,qe=(r-2*ff)/e.LightCount,gf=.8*qe;for(l=0;l<e.LightCount;l++)E[l]=new mxCell("",new mxGeometry(ff+
+qe*l+(qe-gf)/2,.25*p,gf,.75*p),"ellipse;part=1;"),E[l].vertex=!0,v.insert(E[l]),E[l].style+=b(E[l].style,e,u,E[l]);break;case "fpRestroomSinks":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);x=[];var hf=r/e.SinkCount;for(l=0;l<e.SinkCount;l++)x[l]=new mxCell("",new mxGeometry(hf*l,0,hf,p),"part=1;shape=mxgraph.floorplan.sink_2;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=b(x[l].style,e,u,x[l]);break;case "fpRestroomStalls":v.style+="strokeColor=none;fillColor=none;";var Fb=
+.1*r/e.StallCount;x=new mxCell("",new mxGeometry(0,0,Fb,p),"fillColor=#000000;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);var Ob=(r-Fb)/e.StallCount,re=[],Id=[],Jd=[],Kd=[];Z=H(e,u);Z=""==Z?"#000000;":Z.replace("stokreColor=","");var se="part=1;fillColor="+Z;se+=b(se,e,u,v);var te=b("",e,u,v);for(l=0;l<e.StallCount;l++)re[l]=new mxCell("",new mxGeometry((l+1)*Ob,0,Fb,p),se),re[l].vertex=!0,v.insert(re[l]),Jd[l]=new mxCell("",new mxGeometry(Fb+l*Ob+.05*(Ob-Fb),p-.92*(Ob-Fb),.9*(Ob-
+Fb),.92*(Ob-Fb)),"shape=mxgraph.floorplan.doorRight;flipV=1;part=1;"),Jd[l].vertex=!0,v.insert(Jd[l]),Jd[l].style+=te,Id[l]=new mxCell("",new mxGeometry(Fb+l*Ob+.2*(Ob-Fb),0,.6*(Ob-Fb),.8*(Ob-Fb)),"shape=mxgraph.floorplan.toilet;part=1;"),Id[l].vertex=!0,v.insert(Id[l]),Id[l].style+=te,Kd[l]=new mxCell("",new mxGeometry(Fb+l*Ob,.42*p,.15*(Ob-Fb),.12*(Ob-Fb)),"part=1;"),Kd[l].vertex=!0,v.insert(Kd[l]),Kd[l].style+=te;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var be="edgeStyle=none;endArrow=none;part=1;";
+Z=H(e,u);Z=""==Z?"#000000;":Z.replace("strokeColor=","");var Vc="shape=triangle;part=1;fillColor="+Z;Vc+=b(Vc,e,u,v);fa=new mxCell("",new mxGeometry(0,0,0,0),be);fa.geometry.relative=!0;fa.edge=!0;gb(0,.5*p,.65*r,.5*p,fa,F,D,Na,v,qa);var ia=p/e.numLines;da=[];var Wc=[];for(l=0;l<e.numLines;l++)da[l]=new mxCell("",new mxGeometry(0,0,0,0),be),da[l].geometry.relative=!0,da[l].edge=!0,gb(.65*r,.5*p,.96*r,(l+.5)*ia,da[l],F,D,Na,v,qa),Wc[l]=new mxCell("",new mxGeometry(.95*r,(l+.2)*ia,.05*r,.6*ia),Vc),
+Wc[l].vertex=!0,v.insert(Wc[l]);break;case "PEMultilines":v.style+="strokeColor=none;fillColor=none;";be="edgeStyle=none;endArrow=none;part=1;";Z=H(e,u);Z=""==Z?"#000000;":Z.replace("strokeColor=","");Vc="shape=triangle;part=1;fillColor="+Z;Vc+=b(Vc,e,u,v);ia=p/e.numLines;da=[];Wc=[];for(l=0;l<e.numLines;l++)da[l]=new mxCell("",new mxGeometry(0,0,0,0),be),da[l].geometry.relative=!0,da[l].edge=!0,gb(0,(l+.5)*ia,.96*r,(l+.5)*ia,da[l],F,D,Na,v,qa),Wc[l]=new mxCell("",new mxGeometry(.95*r,(l+.2)*ia,.05*
+r,.6*ia),Vc),Wc[l].vertex=!0,v.insert(Wc[l]);break;case "PEVesselBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);switch(e.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+=b(v.style,e,u,v,G);break;case "PEClosedTankBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);1==e.peakedRoof&&0==e.stumpType?v.style+=
+"shape=mxgraph.pid.vessels.tank_(conical_roof);":1==e.stumpType&&(v.style+="shape=mxgraph.pid.vessels.tank_(boot);");v.style+=b(v.style,e,u,v,G);break;case "PEColumnBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style=0==e.columnType?v.style+"shape=mxgraph.pid.vessels.pressurized_vessel;":v.style+"shape=mxgraph.pid.vessels.tank;";v.style+=b(v.style,e,u,v,G);break;case "PECompressorTurbineBlock":v.style+="strokeColor=none;fillColor=none;";v.value=m(e.Text);v.style+=
+b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,.2*p,r,.6*p),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");x.vertex=!0;v.insert(x);x.style+=ja;x.style+=b(x.style,e,u,x);ja="endSize=4;endArrow=block;endFill=1;";0==e.compressorType?(fa=new mxCell("",new mxGeometry(0,0,0,0),""),fa.geometry.relative=!0,fa.edge=!0,fa.style+=ja,fa.style+=b(fa.style,e,u,fa),gb(0,0,0,.2*p,fa,F,D,Na,v,qa),da=new mxCell("",new mxGeometry(0,0,0,0),""),da.geometry.relative=!0,da.edge=!0,da.style+=
+ja,da.style+=b(da.style,e,u,da),gb(r,.67*p,r,p,da,F,D,Na,v,qa)):(x.style+="flipH=1;",fa=new mxCell("",new mxGeometry(0,0,0,0),""),fa.geometry.relative=!0,fa.edge=!0,fa.style+=ja,fa.style+=b(fa.style,e,u,fa),gb(0,0,0,.33*p,fa,F,D,Na,v,qa),da=new mxCell("",new mxGeometry(0,0,0,0),""),da.geometry.relative=!0,da.edge=!0,da.style+=ja,da.style+=b(da.style,e,u,da),gb(r,.8*p,r,p,da,F,D,Na,v,qa));1==e.centerLineType&&(xa=new mxCell("",new mxGeometry(0,0,0,0),""),xa.geometry.relative=!0,xa.edge=!0,xa.style+=
+ja,xa.style+=b(xa.style,e,u,xa),gb(.2*r,.5*p,.8*r,.5*p,xa,F,D,Na,v,qa));break;case "PEMotorDrivenTurbineBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.2*r,.2*p,.6*r,.6*p),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);break;case "PEIndicatorBlock":case "PEIndicator2Block":case "PESharedIndicatorBlock":case "PEComputerIndicatorBlock":case "PESharedIndicator2Block":case "PEProgrammableIndicatorBlock":switch(w.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+=b(v.style,e,u,v);"PEIndicator2Block"==
+w.Class||"PESharedIndicator2Block"==w.Class?(x=new mxCell("",new mxGeometry(0,0,r,.5*r),"part=1;strokeColor=none;fillColor=none;"),x.vertex=!0,v.insert(x),x.value=m(e.TopText),x.style+=a(e.TopText,G),x.style+=b(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,.5*r,r,.5*r),"part=1;strokeColor=none;fillColor=none;")):(x=new mxCell("",new mxGeometry(0,0,r,.5*p),"part=1;strokeColor=none;fillColor=none;"),x.vertex=!0,v.insert(x),x.value=m(e.TopText),x.style+=a(e.TopText,G),x.style+=b(x.style,e,u,x,G),
+E=new mxCell("",new mxGeometry(0,.5*p,r,.5*p),"part=1;strokeColor=none;fillColor=none;"));E.vertex=!0;v.insert(E);E.value=m(e.BotText);E.style+=a(e.BotText,G);E.style+=b(E.style,e,u,E,G);switch(e.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 ue=
+!1;"PEPoweredValveBlock"==w.Class?1!=e.poweredHandOperated&&(ue=!0):1!=e.handOperated&&(ue=!0);if(ue){e=h(w).Properties;O=e.BoundingBox;var Sf=O.h;O.h="PEAngleValveBlock"==w.Class||"PEAngleGlobeValveBlock"==w.Class?.7*O.h:.6*O.h;v=new mxCell("",new mxGeometry(Math.round(.75*O.x+xc),Math.round(.75*(O.y+Sf-O.h)+yc),Math.round(.75*O.w),Math.round(.75*O.h)),"");v.vertex=!0;Xa(v,w,D)}if("PEPoweredValveBlock"==w.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;",
+v.style+=b(v.style,e,u,v),1==e.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",x=new mxCell("",new mxGeometry(.325*r,0,.35*r,.35*p),"part=1;strokeColor=none;fillColor=none;spacingTop=2;"),x.vertex=!0,v.insert(x),x.value=m(e.PoweredText),x.style+=(G?"":q(e.PoweredText)+t(e.PoweredText)+C(e.PoweredText)+I(e.PoweredText)+Q(e.PoweredText)+L(e.PoweredText)+S(e.PoweredText))+"fontSize=6;"+R(e.PoweredText),x.style+=b(x.style,e,u,x,G)):v.style+="valveType=gate;";else{v.style+="verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;";
+v.value=m(e.Text);switch(w.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==e.handOperated&&(v.style+="actuator=man;")}v.style+=b(v.style,e,u,v,G);break;case "UI2BrowserBlock":v.style+="shape=mxgraph.mockup.containers.browserWindow;mainText=;";1==e.vScroll&&(U=1==e.hScroll?new mxCell("",new mxGeometry(1,
+0,20,p-130),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-110),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),U.geometry.relative=!0,U.geometry.offset=new mxPoint(-20,110),U.vertex=!0,v.insert(U),v.style+="spacingRight=20;");1==e.hScroll&&(ta=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):
+new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),ta.geometry.relative=!0,ta.geometry.offset=new mxPoint(0,-20),ta.vertex=!0,v.insert(ta));v.style+=b(v.style,e,u,v);break;case "UI2WindowBlock":v.value=m(e.Title);v.style+="shape=mxgraph.mockup.containers.window;mainText=;align=center;verticalAlign=top;spacing=5;"+(G?"fontSize=13;":f(e.Title)+q(e.Title)+t(e.Title));1==e.vScroll&&(U=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-50),
+"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),U.geometry.relative=!0,U.geometry.offset=new mxPoint(-20,30),U.vertex=!0,v.insert(U),v.style+="spacingRight=20;");1==e.hScroll&&(ta=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",
+new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),ta.geometry.relative=!0,ta.geometry.offset=new mxPoint(0,-20),ta.vertex=!0,v.insert(ta));v.style+=b(v.style,e,u,v,G);break;case "UI2DialogBlock":v.value=m(e.Text);v.style+=a(e.Text,G);x=new mxCell("",new mxGeometry(0,0,r,30),"part=1;resizeHeight=0;");x.vertex=!0;v.insert(x);x.value=m(e.Title);x.style+=a(e.Title,G);x.style+=b(x.style,e,u,x,G);E=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");
+E.geometry.relative=!0;E.geometry.offset=new mxPoint(-25,-10);E.vertex=!0;x.insert(E);1==e.vScroll&&(U=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),U.geometry.relative=!0,U.geometry.offset=new mxPoint(-20,30),U.vertex=!0,v.insert(U),v.style+="spacingRight=20;");
+1==e.hScroll&&(ta=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),ta.geometry.relative=!0,ta.geometry.offset=new mxPoint(0,-20),ta.vertex=!0,v.insert(ta));v.style+=b(v.style,e,u,v);e.Text=null;break;case "UI2AccordionBlock":x=[];ia=25;for(l=0;l<=e.Panels-1;l++)x[l]=l<e.Selected-1?new mxCell("",new mxGeometry(0,
+l*ia,r,ia),"part=1;fillColor=#000000;fillOpacity=25;"):l==e.Selected-1?new mxCell("",new mxGeometry(0,l*ia,r,ia),"part=1;fillColor=none;"):new mxCell("",new mxGeometry(0,p-(e.Panels-e.Selected)*ia+(l-e.Selected)*ia,r,ia),"part=1;fillColor=#000000;fillOpacity=25;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Panel_"+(l+1)]),x[l].style+=a(e["Panel_"+(l+1)],G),0>x[l].style.indexOf(";align=")&&(x[l].style+="align=left;spacingLeft=5;");var Va=H(e,u);Va=Va.replace("strokeColor","fillColor2");""==Va&&
+(Va="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-e.Selected*ia-20-(e.Panels-e.Selected)*ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-e.Selected*ia-(e.Panels-e.Selected)*ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,e.Selected*ia),E.vertex=!0,v.insert(E),v.style+=
+"spacingRight=20;",E.style+=Va,E.style+=b(E.style,e,u,E));1==e.hScroll&&(U=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),U.geometry.relative=!0,U.geometry.offset=new mxPoint(0,-20-(e.Panels-e.Selected)*ia),U.vertex=!0,v.insert(U),U.style+=Va,U.style+=b(U.style,e,u,U));ta=1==e.vScroll?new mxCell("",new mxGeometry(0,
+e.Selected*ia,r-20,p-e.Selected*ia-20-(e.Panels-e.Selected)*ia),"part=1;fillColor=none;strokeColor=none;"):new mxCell("",new mxGeometry(0,e.Selected*ia,r-20,p-e.Selected*ia-(e.Panels-e.Selected)*ia),"part=1;fillColor=none;strokeColor=none;");ta.vertex=!0;v.insert(ta);ta.value=m(e.Content_1);ta.style+=a(e.Content_1,G);!G&&0>ta.style.indexOf(";align=")&&(ta.style+="align=left;spacingLeft=5;");v.style+=b(v.style,e,u,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";
+x=[];E=[];ia=25;var Ib=3,Ga=(r+Ib)/(e.Tabs+1),ib=new mxCell("",new mxGeometry(0,ia,r,p-ia),"part=1;");ib.vertex=!0;v.insert(ib);ib.style+=b(ib.style,e,u,ib);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(10+l*Ga,0,Ga-Ib,ia),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",new mxGeometry(10+l*Ga,0,Ga-Ib,ia),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ga-Ib,ia),"fillColor=#000000;fillOpacity=25;"),
+E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;"),E[l].style+=b(E[l].style,e,u,E[l]);Va=H(e,u);Va=Va.replace("strokeColor","fillColor2");""==Va&&(Va="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20-ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-
+ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,ia),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Va,E.style+=b(E.style,e,u,E));1==e.hScroll&&(U=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
+U.geometry.relative=!0,U.geometry.offset=new mxPoint(0,-20),U.vertex=!0,v.insert(U),U.style+=Va,U.style+=b(U.style,e,u,U));break;case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";x=[];E=[];ia=25;Ib=3;Ga=(r+Ib)/e.Tabs;ib=new mxCell("",new mxGeometry(0,ia,r,p-ia),"part=1;");ib.vertex=!0;v.insert(ib);ib.style+=b(ib.style,e,u,ib);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(l*Ga,0,Ga-Ib,ia),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",
+new mxGeometry(l*Ga,0,Ga-Ib,ia),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ga-Ib,ia),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),E[l].style+=b(E[l].style,e,u,E[l],G),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;");Va=H(e,u);Va=Va.replace("strokeColor","fillColor2");""==Va&&(Va="fillColor2=#000000;");1==
+e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20-ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,ia),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Va,E.style+=b(E.style,e,u,E));1==e.hScroll&&(U=1==e.vScroll?new mxCell("",new mxGeometry(0,
+1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),U.geometry.relative=!0,U.geometry.offset=new mxPoint(0,-20),U.vertex=!0,v.insert(U),U.style+=Va,U.style+=b(U.style,e,u,U));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";x=[];E=[];Ib=3;ia=25+Ib;Ga=80;Ac=10;ib=new mxCell("",new mxGeometry(Ga,0,r-Ga,p),"part=1;");ib.vertex=
+!0;v.insert(ib);ib.style+=b(ib.style,e,u,ib);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(0,Ac+l*ia,Ga,ia-Ib),""),E[l].vertex=!0,v.insert(E[l]),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),E[l].style+=b(E[l].style,e,u,E[l],G)):(x[l]=new mxCell("",new mxGeometry(0,Ac+l*ia,Ga,ia-Ib),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ga,ia-Ib),"fillColor=#000000;fillOpacity=25;"),
+E[l].vertex=!0,x[l].insert(E[l]),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G)),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;"),E[l].style+=b(E[l].style,e,u,E[l]);Va=H(e,u);Va=Va.replace("strokeColor","fillColor2");""==Va&&(Va="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),
+E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,0),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Va,E.style+=b(E.style,e,u,E));1==e.hScroll&&(U=1==e.vScroll?new mxCell("",new mxGeometry(Ga,1,r-20-Ga,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(Ga,1,r-Ga,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),U.geometry.relative=!0,U.geometry.offset=new mxPoint(0,-20),U.vertex=!0,v.insert(U),
+U.style+=Va,U.style+=b(U.style,e,u,U));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";ia=p/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(0,l*ia+.5*ia-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=b(x[l].style,e,u,x[l],G),null!=e.Selected[l+1]&&1==e.Selected[l+1]&&
+(Z=H(e,u),Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Z,E[l].style+=b(E[l].style,e,u,E[l]));break;case "UI2HorizontalCheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";Ga=r/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(l*Ga,.5*p-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),
+x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=b(x[l].style,e,u,x[l],G),null!=e.Selected[l+1]&&1==e.Selected[l+1]&&(Z=H(e,u),Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Z,E[l].style+=b(E[l].style,e,u,E[l]));break;case "UI2RadioBlock":v.style+="strokeColor=none;fillColor=none;";
+ia=p/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(0,l*ia+.5*ia-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=b(x[l].style,e,u,x[l],G),null!=e.Selected&&e.Selected==l+1&&(Z=H(e,u),Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2.5,
+2.5,5,5),"ellipse;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Z,E[l].style+=b(E[l].style,e,u,E[l]));break;case "UI2HorizontalRadioBlock":v.style+="strokeColor=none;fillColor=none;";Ga=r/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(l*Ga,.5*p-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=
+b(x[l].style,e,u,x[l],G),null!=e.Selected&&e.Selected==l+1&&(Z=H(e,u),Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2,2,6,6),"ellipse;part=1;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Z,E[l].style+=b(E[l].style,e,u,E[l]));break;case "UI2SelectBlock":v.style+="shape=mxgraph.mockup.forms.comboBox;strokeColor=#999999;fillColor=#ddeeff;align=left;fillColor2=#aaddff;mainText=;fontColor=#666666";v.value=m(e.Selected);break;case "UI2HSliderBlock":case "UI2VSliderBlock":v.style+=
+"shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;handleStyle=handle;";"UI2VSliderBlock"==w.Class&&(v.style+="direction=south;");v.style+="sliderPos="+100*e.ScrollVal+";";v.style+=b(v.style,e,u,v);break;case "UI2DatePickerBlock":v.style+="strokeColor=none;fillColor=none;";x=new mxCell("",new mxGeometry(0,0,.6*r,p),"part=1;");x.vertex=!0;v.insert(x);x.value=m(e.Date);x.style+=a(e.Date,G);v.style+=b(v.style,e,u,v);Z=H(e,u);Z=Z.replace("strokeColor","fillColor");""==Z&&(Z="fillColor=#000000;");
+E=new mxCell("",new mxGeometry(.75*r,0,.25*r,p),"part=1;shape=mxgraph.gmdl.calendar;");E.vertex=!0;v.insert(E);E.style+=Z;E.style+=b(E.style,e,u,E);break;case "UI2SearchBlock":v.value=m(e.Search);v.style+="shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1;align=left;spacingLeft=26;"+a(e.Search,G);v.style+=b(v.style,e,u,v,G);break;case "UI2NumericStepperBlock":Z=H(e,u);Z=Z.replace("strokeColor","fillColor");""==Z&&(Z="fillColor=#000000;");v.value=m(e.Number);v.style+="shape=mxgraph.mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;mainText=;align=left;spacingLeft=8;"+
+Z+a(e.Number,G);v.style+=b(v.style,e,u,v,G);break;case "UI2TableBlock":try{lb=P(e.FillColor);var Ld=P(e.LineColor);Tc="";var ce=20;v.style="html=1;overflow=fill;verticalAlign=top;spacing=0;";var Md='<table style="width:100%;height:100%;border-collapse: collapse;border: 1px solid '+Ld+';">',uc=e.Data.split("\n");var jf=e.AltRow&&"default"!=e.AltRow?"none"==e.AltRow?lb:P(e.AltRow):Sd(lb,.95);Pc=e.Header&&"default"!=e.Header?"none"==e.Header?jf:P(e.Header):Sd(lb,.8);if("full"==e.GridLines)Tc="border: 1px solid "+
+Ld,ce=19;else if("row"==e.GridLines)Tc="border-bottom: 1px solid "+Ld,ce=19;else if("default"==e.GridLines||"column"==e.GridLines)Tc="border-right: 1px solid "+Ld;uc=uc.filter(function(hb){return hb});/^\{[^}]*\}$/.test(uc[uc.length-1])&&uc.pop();Gc=uc[0].split(",").length;var kf="";for(ha=0;ha<Gc-1;ha++)kf+=" , ";for(l=uc.length;l<Math.ceil(p/20);l++)uc.push(kf);for(l=0;l<uc.length;l++){Md+='<tr style="height: '+ce+"px;background:"+(0==l?Pc:l%2?lb:jf)+'">';var lf=uc[l].split(",");for(ha=0;ha<lf.length;ha++){var Nd=
+e["Cell_"+l+"_"+ha],Tf=Nd&&Nd.m&&Nd.m[0]&&"c"==Nd.m[0].n?P(Nd.m[0].v):Ld;Md+='<td style="height: '+ce+"px;color:"+Tf+";"+Tc+'">'+mxUtils.htmlEntities(lf[ha])+"</td>"}Md+="</tr>"}Md+="</table>";v.value=Md}catch(hb){console.log(hb)}break;case "UI2ButtonBarBlock":v.style+=b(v.style,e,u,v);x=[];E=[];Ga=r/e.Buttons;for(l=0;l<=e.Buttons-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(l*Ga,0,Ga,p),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",new mxGeometry(l*Ga,0,Ga,p),"strokeColor=none;"),
+x[l].vertex=!0,v.insert(x[l]),x[l].style+=x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ga,p),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Button_"+(l+1)]),E[l].style+=a(e["Button_"+(l+1)],G),E[l].style+=b(E[l].style,e,u,E[l],G);break;case "UI2VerticalButtonBarBlock":v.style+=b(v.style,e,u,v);x=[];E=[];ia=p/e.Buttons;for(l=0;l<=e.Buttons-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(0,l*ia,r,ia),""),E[l].vertex=!0,v.insert(E[l])):
+(x[l]=new mxCell("",new mxGeometry(0,l*ia,r,ia),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,r,ia),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Button_"+(l+1)]),E[l].style+=a(e["Button_"+(l+1)],G),E[l].style+=b(E[l].style,e,u,E[l],G);break;case "UI2LinkBarBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);x=[];E=[];Ga=r/e.Links;for(l=0;l<e.Links;l++)0!=
+l?(E[l]=new mxCell("",new mxGeometry(l*Ga,0,Ga,p),"shape=partialRectangle;top=0;bottom=0;right=0;fillColor=none;"),E[l].style+=b(E[l].style,e,u,E[l])):E[l]=new mxCell("",new mxGeometry(l*Ga,0,Ga,p),"fillColor=none;strokeColor=none;"),E[l].vertex=!0,v.insert(E[l]),E[l].value=m(e["Link_"+(l+1)]),E[l].style+=a(e["Link_"+(l+1)],G);break;case "UI2BreadCrumbsBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);x=[];E=[];Ga=r/e.Links;for(l=0;l<e.Links;l++)x[l]=new mxCell("",new mxGeometry(l*
+Ga,0,Ga,p),"fillColor=none;strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Link_"+(l+1)]),x[l].style+=a(e["Link_"+(l+1)],G);for(l=1;l<e.Links;l++)E[l]=new mxCell("",new mxGeometry(l/e.Links,.5,6,10),"shape=mxgraph.ios7.misc.right;"),E[l].geometry.relative=!0,E[l].geometry.offset=new mxPoint(-3,-5),E[l].vertex=!0,v.insert(E[l]);break;case "UI2MenuBarBlock":v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v);x=[];Ga=r/(e.Buttons+1);for(l=0;l<=e.Buttons-1;l++)x[l]=l!=e.Selected-
+1?new mxCell("",new mxGeometry(0,0,Ga,p),"strokeColor=none;fillColor=none;resizeHeight=1;"):new mxCell("",new mxGeometry(0,0,Ga,p),"fillColor=#000000;fillOpacity=25;strokeColor=none;resizeHeight=1;"),x[l].geometry.relative=!0,x[l].geometry.offset=new mxPoint(l*Ga,0),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["MenuItem_"+(l+1)]),x[l].style+=a(e["MenuItem_"+(l+1)],G);break;case "UI2AtoZBlock":v.style+="fillColor=none;strokeColor=none;"+a(e.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;"+a(e.Text_prev);v.value=m(e.Text_prev)+" ";for(l=0;l<e.Links;l++)v.value+=m(e["Link_"+(l+1)])+" ";v.value+=m(e.Text_next);break;case "UI2ContextMenuBlock":v.style+=b(v.style,e,u,v);X=[];ob=[];var kd=[];ia=p/e.Lines;ja=null;for(l=0;l<e.Lines;l++)null!=e["Item_"+(l+1)]&&(null==ja&&(ja=""+f(e["Item_"+(l+1)])+q(e["Item_"+(l+1)])+t(e["Item_"+(l+1)])),X[l]=new mxCell("",new mxGeometry(0,l*p/e.Lines,r,ia),"strokeColor=none;fillColor=none;spacingLeft=20;align=left;html=1;"),
+X[l].vertex=!0,v.insert(X[l]),X[l].style+=ja,X[l].value=m(e["Item_"+(l+1)])),null!=e.Icons[l+1]&&null!=X[l]&&("dot"==e.Icons[l+1]?(ob[l]=new mxCell("",new mxGeometry(0,.5,8,8),"ellipse;strokeColor=none;"),ob[l].geometry.offset=new mxPoint(6,-4)):"check"==e.Icons[l+1]&&(ob[l]=new mxCell("",new mxGeometry(0,.5,7,8),"shape=mxgraph.mscae.general.checkmark;strokeColor=none;"),ob[l].geometry.offset=new mxPoint(6.5,-4)),null!=ob[l]&&(ob[l].geometry.relative=!0,ob[l].vertex=!0,X[l].insert(ob[l]),Z=H(e,u),
+Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),ob[l].style+=Z)),null!=e["Shortcut_"+(l+1)]&&(null==ja&&(ja=""+f(e["Shortcut_"+(l+1)])+q(e["Shortcut_"+(l+1)])+t(e["Shortcut_"+(l+1)])),kd[l]=new mxCell("",new mxGeometry(.6*r,l*p/e.Lines,.4*r,ia),"strokeColor=none;fillColor=none;spacingRight=3;align=right;html=1;"),kd[l].vertex=!0,v.insert(kd[l]),kd[l].style+=ja,kd[l].value=m(e["Shortcut_"+(l+1)])),null!=e.Dividers[l+1]&&(X[l]=new mxCell("",new mxGeometry(.05*r,l*p/e.Lines,.9*
+r,ia),"shape=line;strokeWidth=1;"),X[l].vertex=!0,v.insert(X[l]),X[l].style+=H(e,u));break;case "UI2ProgressBarBlock":v.style+="shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos="+100*e.ScrollVal+";";break;case "CalloutSquareBlock":case "UI2TooltipSquareBlock":v.value=m(e.Tip||e.Text);v.style+="html=1;shape=callout;flipV=1;base=13;size=7;position=0.5;position2=0.66;rounded=1;arcSize="+e.RoundCorners+";"+a(e.Tip||e.Text,G);v.style+=b(v.style,e,u,v,G);v.geometry.height+=10;break;case "UI2CalloutBlock":v.value=
m(e.Txt);v.style+="shape=ellipse;perimeter=ellipsePerimeter;"+a(e.Txt,G);v.style+=b(v.style,e,u,v,G);break;case "UI2AlertBlock":v.value=m(e.Txt);v.style+=a(e.Txt,G);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,r,30),"part=1;resizeHeight=0;");x.vertex=!0;v.insert(x);x.value=m(e.Title);x.style+=a(e.Title,G);x.style+=b(x.style,e,u,x,G);E=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");E.geometry.relative=!0;E.geometry.offset=
-new mxPoint(-25,-10);E.vertex=!0;x.insert(E);var Uf=45*e.Buttons+(10*e.Buttons-1);T=[];for(l=0;l<e.Buttons;l++)T[l]=new mxCell("",new mxGeometry(.5,1,45,20),"part=1;html=1;"),T[l].geometry.relative=!0,T[l].geometry.offset=new mxPoint(.5*-Uf+55*l,-40),T[l].vertex=!0,v.insert(T[l]),T[l].value=m(e["Button_"+(l+1)]),T[l].style+=a(e["Button_"+(l+1)],G),T[l].style+=b(T[l].style,e,u,T[l],G);break;case "UMLClassBlock":if(0==e.Simple){ja=ba(e,u);db=Math.round(.75*e.TitleHeight)||25;ja=ja.replace("fillColor",
-"swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Title);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+ja+"startSize="+db+";"+a(e.Title,G);v.style+=b(v.style,e,u,v,G);X=[];var ue=[],wb=db/p;Wb=db;for(l=0;l<=e.Attributes;l++)0<l&&(ue[l]=new mxCell("",new mxGeometry(0,Wb,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),
-Wb+=8,ue[l].vertex=!0,v.insert(ue[l])),ha=0,0==e.Attributes?ha=l=1:l<e.Attributes?(ha=e["Text"+(l+1)+"Percent"],wb+=ha):ha=1-wb,pc=Math.round((p-db)*ha)+(e.ExtraHeightSet&&1==l?.75*e.ExtraHeight:0),X[l]=new mxCell("",new mxGeometry(0,Wb,r,pc),"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;"),Wb+=pc,X[l].vertex=!0,v.insert(X[l]),X[l].style+=
-ja+Q(e,u,X[l])+a(e["Text"+(l+1)],G),X[l].value=m(e["Text"+(l+1)])}else v.value=m(e.Title),v.style+="align=center;",v.style+=a(e.Title,G),v.style+=b(v.style,e,u,v,G);break;case "ERDEntityBlock":ja=ba(e,u);db=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+ja+"startSize="+
-db+";"+a(e.Name,G);v.style+=b(v.style,e,u,v,G);e.ShadedHeader?(ja=U(e.FillColor),je=Rd(ja,.85),v.style+="fillColor="+je+";"):v.style+=ba(e,u);X=[];wb=db/p;Wb=db;for(l=0;l<e.Fields;l++)ha=0,pc=.75*e["Field"+(l+1)+"_h"],X[l]=new mxCell("",new mxGeometry(0,Wb,r,pc),"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;"),Wb+=pc,X[l].vertex=!0,v.insert(X[l]),
-X[l].style+=ja+a(e["Field"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;opacity=5;":X[l].style+("fillColor=none;"+Q(e,u,X[l])),X[l].value=m(e["Field"+(l+1)]);break;case "ERDEntityBlock2":ja=ba(e,u);db=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Name);v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+ja+"startSize="+db+";"+a(e.Name,G);v.style=e.ShadedHeader?
-v.style+"fillColor=#e0e0e0;":v.style+ba(e,u);v.style+=b(v.style,e,u,v,G);X=[];var Ga=[];wb=db;var Ib=30;null!=e.Column1&&(Ib=.75*e.Column1);for(l=0;l<e.Fields;l++)ha=0,Ga[l]=new mxCell("",new mxGeometry(0,wb,Ib,.75*e["Key"+(l+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;"),Ga[l].vertex=!0,v.insert(Ga[l]),Ga[l].style+=ja+a(e["Key"+(l+1)],
-G),Ga[l].style=1==e.AltRows&&0!=l%2?Ga[l].style+"fillColor=#000000;fillOpacity=5;":Ga[l].style+("fillColor=none;"+Q(e,u,Ga[l])),Ga[l].value=m(e["Key"+(l+1)]),X[l]=new mxCell("",new mxGeometry(Ib,wb,r-Ib,.75*e["Field"+(l+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;"),X[l].vertex=!0,v.insert(X[l]),X[l].style+=
-ja+a(e["Field"+(l+1)],G),v.style+=b(v.style,e,u,v),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+Q(e,u,X[l])),X[l].value=m(e["Field"+(l+1)]),wb+=.75*e["Key"+(l+1)+"_h"];break;case "ERDEntityBlock3":ja=ba(e,u);db=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+ja+"startSize="+db+
-";"+a(e.Name);v.style=e.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+ba(e,u);v.value=m(e.Name);v.style+=b(v.style,e,u,v,G);X=[];Ga=[];wb=db;Ib=30;null!=e.Column1&&(Ib=.75*e.Column1);for(l=0;l<e.Fields;l++)ha=0,Ga[l]=new mxCell("",new mxGeometry(0,wb,Ib,.75*e["Field"+(l+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;"),Ga[l].vertex=!0,v.insert(Ga[l]),
-Ga[l].style+=ja+a(e["Field"+(l+1)],G),Ga[l].style=1==e.AltRows&&0!=l%2?Ga[l].style+"fillColor=#000000;fillOpacity=5;":Ga[l].style+("fillColor=none;"+Q(e,u,Ga[l])),Ga[l].value=m(e["Field"+(l+1)]),Ga[l].style+=b(Ga[l].style,e,u,Ga[l],G),X[l]=new mxCell("",new mxGeometry(Ib,wb,r-Ib,.75*e["Type"+(l+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;"),
-X[l].vertex=!0,v.insert(X[l]),X[l].style+=ja+a(e["Type"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+Q(e,u,X[l])),X[l].value=m(e["Type"+(l+1)]),X[l].style+=b(X[l].style,e,u,X[l],G),wb+=.75*e["Field"+(l+1)+"_h"];break;case "ERDEntityBlock4":ja=ba(e,u);db=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+
-ja+"startSize="+db+";"+a(e.Name);v.style=e.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+ba(e,u);v.value=m(e.Name);v.style+=b(v.style,e,u,v,G);X=[];Ga=[];var Jb=[];wb=db;Ib=30;var ce=40;null!=e.Column1&&(Ib=.75*e.Column1);null!=e.Column2&&(ce=.75*e.Column2);for(l=0;l<e.Fields;l++)ha=0,Ga[l]=new mxCell("",new mxGeometry(0,wb,Ib,.75*e["Key"+(l+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;"),
-Ga[l].vertex=!0,v.insert(Ga[l]),Ga[l].style+=ja+a(e["Key"+(l+1)],G),Ga[l].style=1==e.AltRows&&0!=l%2?Ga[l].style+"fillColor=#000000;fillOpacity=5;":Ga[l].style+("fillColor=none;"+Q(e,u,Ga[l])),Ga[l].value=m(e["Key"+(l+1)]),Ga[l].style+=b(Ga[l].style,e,u,Ga[l],G),X[l]=new mxCell("",new mxGeometry(Ib,wb,r-Ib-ce,.75*e["Field"+(l+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;"),
-X[l].vertex=!0,v.insert(X[l]),X[l].style+=ja+a(e["Field"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+Q(e,u,X[l])),X[l].value=m(e["Field"+(l+1)]),X[l].style+=b(X[l].style,e,u,X[l],G),Jb[l]=new mxCell("",new mxGeometry(r-ce,wb,ce,.75*e["Type"+(l+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;"),
-Jb[l].vertex=!0,v.insert(Jb[l]),Jb[l].style+=ja+a(e["Type"+(l+1)],G),Jb[l].style=1==e.AltRows&&0!=l%2?Jb[l].style+"fillColor=#000000;fillOpacity=5;":Jb[l].style+("fillColor=none;"+Q(e,u,Jb[l])),Jb[l].value=m(e["Type"+(l+1)]),Jb[l].style+=b(Jb[l].style,e,u,Jb[l],G),wb+=.75*e["Key"+(l+1)+"_h"];break;case "GCPServiceCardApplicationSystemBlock":Sa("application_system",r,p,v,e,u);break;case "GCPServiceCardAuthorizationBlock":Sa("internal_payment_authorization",r,p,v,e,u);break;case "GCPServiceCardBlankBlock":Sa("blank",
-r,p,v,e,u);break;case "GCPServiceCardReallyBlankBlock":Sa("blank",r,p,v,e,u);break;case "GCPServiceCardBucketBlock":Sa("bucket",r,p,v,e,u);break;case "GCPServiceCardCDNInterconnectBlock":Sa("google_network_edge_cache",r,p,v,e,u);break;case "GCPServiceCardCloudDNSBlock":Sa("blank",r,p,v,e,u);break;case "GCPServiceCardClusterBlock":Sa("cluster",r,p,v,e,u);break;case "GCPServiceCardDiskSnapshotBlock":Sa("persistent_disk_snapshot",r,p,v,e,u);break;case "GCPServiceCardEdgePopBlock":Sa("google_network_edge_cache",
-r,p,v,e,u);break;case "GCPServiceCardFrontEndPlatformServicesBlock":Sa("frontend_platform_services",r,p,v,e,u);break;case "GCPServiceCardGatewayBlock":Sa("gateway",r,p,v,e,u);break;case "GCPServiceCardGoogleNetworkBlock":Sa("google_network_edge_cache",r,p,v,e,u);break;case "GCPServiceCardImageServicesBlock":Sa("image_services",r,p,v,e,u);break;case "GCPServiceCardLoadBalancerBlock":Sa("network_load_balancer",r,p,v,e,u);break;case "GCPServiceCardLocalComputeBlock":Sa("dedicated_game_server",r,p,v,
-e,u);break;case "GCPServiceCardLocalStorageBlock":Sa("persistent_disk_snapshot",r,p,v,e,u);break;case "GCPServiceCardLogsAPIBlock":Sa("logs_api",r,p,v,e,u);break;case "GCPServiceCardMemcacheBlock":Sa("memcache",r,p,v,e,u);break;case "GCPServiceCardNATBlock":Sa("nat",r,p,v,e,u);break;case "GCPServiceCardPaymentFormBlock":Sa("external_payment_form",r,p,v,e,u);break;case "GCPServiceCardPushNotificationsBlock":Sa("push_notification_service",r,p,v,e,u);break;case "GCPServiceCardScheduledTasksBlock":Sa("scheduled_tasks",
-r,p,v,e,u);break;case "GCPServiceCardServiceDiscoveryBlock":Sa("service_discovery",r,p,v,e,u);break;case "GCPServiceCardSquidProxyBlock":Sa("squid_proxy",r,p,v,e,u);break;case "GCPServiceCardTaskQueuesBlock":Sa("task_queues",r,p,v,e,u);break;case "GCPServiceCardVirtualFileSystemBlock":Sa("virtual_file_system",r,p,v,e,u);break;case "GCPServiceCardVPNGatewayBlock":Sa("gateway",r,p,v,e,u);break;case "GCPInputDatabase":Wa("database",1,.9,r,p,v,e,u);break;case "GCPInputRecord":Wa("record",1,.66,r,p,v,
-e,u);break;case "GCPInputPayment":Wa("payment",1,.8,r,p,v,e,u);break;case "GCPInputGateway":Wa("gateway_icon",1,.44,r,p,v,e,u);break;case "GCPInputLocalCompute":Wa("compute_engine_icon",1,.89,r,p,v,e,u);break;case "GCPInputBeacon":Wa("beacon",.73,1,r,p,v,e,u);break;case "GCPInputStorage":Wa("storage",1,.8,r,p,v,e,u);break;case "GCPInputList":Wa("list",.89,1,r,p,v,e,u);break;case "GCPInputStream":Wa("stream",1,.82,r,p,v,e,u);break;case "GCPInputMobileDevices":Wa("mobile_devices",1,.73,r,p,v,e,u);break;
-case "GCPInputCircuitBoard":Wa("circuit_board",1,.9,r,p,v,e,u);break;case "GCPInputLive":Wa("live",.74,1,r,p,v,e,u);break;case "GCPInputUsers":Wa("users",1,.63,r,p,v,e,u);break;case "GCPInputLaptop":Wa("laptop",1,.66,r,p,v,e,u);break;case "GCPInputApplication":Wa("application",1,.8,r,p,v,e,u);break;case "GCPInputLightbulb":Wa("lightbulb",.7,1,r,p,v,e,u);break;case "GCPInputGame":Wa("game",1,.54,r,p,v,e,u);break;case "GCPInputDesktop":Wa("desktop",1,.9,r,p,v,e,u);break;case "GCPInputDesktopAndMobile":Wa("desktop_and_mobile",
-1,.66,r,p,v,e,u);break;case "GCPInputWebcam":Wa("webcam",.5,1,r,p,v,e,u);break;case "GCPInputSpeaker":Wa("speaker",.7,1,r,p,v,e,u);break;case "GCPInputRetail":Wa("retail",1,.89,r,p,v,e,u);break;case "GCPInputReport":Wa("report",1,1,r,p,v,e,u);break;case "GCPInputPhone":Wa("phone",.64,1,r,p,v,e,u);break;case "GCPInputBlank":Wa("transparent",1,1,r,p,v,e,u);break;case "PresentationFrameBlock":0==e.ZOrder?v.style+="strokeColor=none;fillColor=none;":(v.style+=a(e.Text),v.value=m(e.Text),v.style+=b(v.style,
-e,u,v,G));break;case "SVGPathBlock2":try{var Vf=e.LineWidth,Wf=e.LineColor,lf=e.FillColor,mf=e.DrawData.Data,de='<svg viewBox="0 0 1 1" xmlns="http://www.w3.org/2000/svg">',ve=null;for(l=0;l<mf.length;l++){var uc=mf[l],Xf=uc.a,Yf=("prop"==uc.w||null==uc.w?Vf:uc.w)/Math.min(r,p)*.75;Rc="prop"==uc.s||null==uc.s?Wf:uc.s;Y="prop"==uc.f||null==uc.f?lf:uc.f;"object"==typeof Y&&(null!=Y.url&&(ve="shape=image;image="+g(Y.url)+";"),Y=Array.isArray(Y.cs)?Y.cs[0].c:lf);de+='<path d="'+Xf+'" fill="'+Y+'" stroke="'+
-Rc+'" stroke-width="'+Yf+'"/>'}de+="</svg>";v.style=ve?ve:"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image=data:image/svg+xml,"+(window.btoa?btoa(de):Base64.encode(de,!0))+";"}catch(gb){}break;case "BraceBlock":case "BraceBlockRotated":case "BracketBlock":case "BracketBlockRotated":var nf=0==V.indexOf("Bracket")?"size=0;arcSize=50;":"",of=b(v.style,e,u,v,G);mb=ca(e,u,v);v.style="group;"+mb;var we=Math.min(.14*(mb?r:p),100),xe=
-new mxCell("",new mxGeometry(0,0,we,p),"shape=curlyBracket;rounded=1;"+nf+of);xe.vertex=!0;xe.geometry.relative=!0;var ye=new mxCell("",new mxGeometry(1-we/r,0,we,p),"shape=curlyBracket;rounded=1;flipH=1;"+nf+of);ye.vertex=!0;ye.geometry.relative=!0;v.insert(xe);v.insert(ye);break;case "BPMNTextAnnotation":case "NoteBlock":e.InsetMargin=null;v.value=m(e.Text);v.style="group;spacingLeft=8;align=left;spacing=0;strokeColor=none;";v.style+=b(v.style,e,u,v,G);0>v.style.indexOf("verticalAlign")&&(v.style+=
-"verticalAlign=middle;");var kd=new mxCell("",new mxGeometry(0,0,8,p),"shape=partialRectangle;right=0;fillColor=none;");kd.geometry.relative=!0;kd.vertex=!0;kd.style+=b(kd.style,e,u,v,G);v.insert(kd);break;case "VSMTimelineBlock":case "TimelineBlock":case "TimelineMilestoneBlock":case "TimelineIntervalBlock":LucidImporter.hasTimeLine=!0;LucidImporter.hasUnknownShapes=!0;break;case "FreehandBlock":try{mb=ca(e,u,v);v.style="group;"+mb;if(null!=e.Stencil){null==e.Stencil.id&&(e.Stencil.id="$$tmpId$$",
-Ke(e.Stencil.id,e.Stencil));var Ob=LucidImporter.stencilsMap[e.Stencil.id],Zf=-Ob.x/Ob.w,$f=-Ob.y/Ob.h;for(l=0;l<Ob.stencils.length;l++){var ob=Ob.stencils[l];oa=new mxCell("",new mxGeometry(Zf,$f,r,p),"shape="+ob.shapeStencil+";");var ag=ob.FillColor,bg=ob.LineColor,cg=ob.LineWidth;"prop"==ob.FillColor&&(ob.FillColor=e.FillColor);null==ob.FillColor&&(ob.FillColor="#ffffff00");"prop"==ob.LineColor&&(ob.LineColor=e.LineColor);null==ob.LineColor&&(ob.LineColor="#ffffff00");"prop"==ob.LineWidth&&(ob.LineWidth=
-e.LineWidth);oa.style+=b(oa.style,ob,u,oa,G);ob.FillColor=ag;ob.LineColor=bg;ob.LineWidth=cg;Y=e.FillColor;var dg=e.LineColor,eg=e.LineWidth;e.FillColor=null;e.LineColor=null;e.LineWidth=null;oa.style+=b(oa.style,e,u,oa,G);e.FillColor=Y;e.LineColor=dg;e.LineWidth=eg;oa.vertex=!0;oa.geometry.relative=!0;v.insert(oa)}var Xb=0;for(mb=e.Rotation;e["t"+Xb];){var pf=e["t"+Xb],qf=m(pf);if(qf){ra=new mxCell(qf,new mxGeometry(0,0,r,p),"strokeColor=none;fillColor=none;overflow=visible;");e.Rotation=0;ra.style+=
-b(ra.style,pf,u,ra,G);ra.style+=b(ra.style,e,u,ra,G);e.Rotation=mb;if(null!=Ob.text&&null!=Ob.text["t"+Xb]){var eb=Ob.text["t"+Xb];eb.Rotation=mb+(eb.rotation?eb.rotation:0)+(e["t"+Xb+"_TRotation"]?e["t"+Xb+"_TRotation"]:0)+(e["t"+Xb+"_TAngle"]?e["t"+Xb+"_TAngle"]:0);ra.style+=b(ra.style,eb,u,ra,G);var Yb=ra.geometry;eb.w&&(Yb.width*=eb.w/Ob.w);eb.h&&(Yb.height*=eb.h/Ob.h);eb.x&&(Yb.x=eb.x/Ob.w);eb.y&&(Yb.y=eb.y/Ob.h);eb.fw&&(Yb.width*=.75*eb.fw/r);eb.fh&&(Yb.height*=.75*eb.fh/p);eb.fx&&(Yb.x=(0<
-eb.fx?1:0)+.75*eb.fx/r);eb.fy&&(Yb.y=(0<eb.fy?1:0)+.75*eb.fy/p)}ra.vertex=!0;ra.geometry.relative=!0;v.insert(ra)}Xb++}}if(e.FillColor&&e.FillColor.url){var Nd=new mxCell("",new mxGeometry(0,0,r,p),"shape=image;html=1;");Nd.style+=Fa({},{},e.FillColor.url);Nd.vertex=!0;Nd.geometry.relative=!0;v.insert(Nd)}}catch(gb){console.log("Freehand error",gb)}break;case "RightArrowBlock":var ze=e.Head*p/r;v.style="shape=singleArrow;arrowWidth="+(1-2*e.Notch)+";arrowSize="+ze;v.value=m(e);v.style+=b(v.style,
-e,u,v,G);break;case "DoubleArrowBlock":ze=e.Head*p/r;v.style="shape=doubleArrow;arrowWidth="+(1-2*e.Notch)+";arrowSize="+ze;v.value=m(e);v.style+=b(v.style,e,u,v,G);break;case "VPCSubnet2017":case "VirtualPrivateCloudContainer2017":case "ElasticBeanStalkContainer2017":case "EC2InstanceContents2017":case "AWSCloudContainer2017":case "CorporateDataCenterContainer2017":switch(V){case "VPCSubnet2017":var ld="shape=mxgraph.aws3.permissions;fillColor=#D9A741;";var md=30;var nd=35;break;case "VirtualPrivateCloudContainer2017":ld=
-"shape=mxgraph.aws3.virtual_private_cloud;fillColor=#F58536;";md=52;nd=36;break;case "ElasticBeanStalkContainer2017":ld="shape=mxgraph.aws3.elastic_beanstalk;fillColor=#F58536;";md=30;nd=41;break;case "EC2InstanceContents2017":ld="shape=mxgraph.aws3.instance;fillColor=#F58536;";md=40;nd=41;break;case "AWSCloudContainer2017":ld="shape=mxgraph.aws3.cloud;fillColor=#F58536;";md=52;nd=36;break;case "CorporateDataCenterContainer2017":ld="shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;",md=
-30,nd=42}v.style="rounded=1;arcSize=10;dashed=0;verticalAlign=bottom;";v.value=m(e);v.style+=b(v.style,e,u,v,G);v.geometry.y+=20;v.geometry.height-=20;nb=new mxCell("",new mxGeometry(20,-20,md,nd),ld);nb.vertex=!0;v.insert(nb);break;case "FlexiblePolygonBlock":var Wc=['<shape strokewidth="inherit"><foreground>'];Wc.push("<path>");for(fa=0;fa<e.Vertices.length;fa++)Qa=e.Vertices[fa],0==fa?Wc.push('<move x="'+100*Qa.x+'" y="'+100*Qa.y+'"/>'):Wc.push('<line x="'+100*Qa.x+'" y="'+100*Qa.y+'"/>');Wc.push("</path>");
-Wc.push("<fillstroke/>");Wc.push("</foreground></shape>");v.style="shape=stencil("+Graph.compress(Wc.join(""))+");";v.value=m(e);v.style+=b(v.style,e,u,v,G);break;case "InfographicsBlock":var rf=e.ShapeData_1.Value,Ae=e.ShapeData_2.Value-rf,Be=e.ShapeData_3.Value-rf,ee=e.ShapeData_4.Value*r/200;Xb="ProgressBar"==e.InternalStencilId?4:5;kb=e["ShapeData_"+Xb].Value;kb="=fillColor()"==kb?e.FillColor:kb;var od=e["ShapeData_"+(Xb+1)].Value;switch(e.InternalStencilId){case "ProgressDonut":v.style="shape=mxgraph.basic.donut;dx="+
-ee+";strokeColor=none;fillColor="+U(od)+";"+ia(od,"fillOpacity");v.style+=b(v.style,e,u,v,G);var ab=new mxCell("",new mxGeometry(0,0,r,p),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+Be/Ae+";arcWidth="+ee/r*2+";strokeColor=none;fillColor="+U(kb)+";"+ia(kb,"fillOpacity"));ab.style+=b(ab.style,e,u,ab,G);ab.vertex=!0;ab.geometry.relative=1;v.insert(ab);break;case "ProgressHalfDonut":v.geometry.height*=2;v.geometry.rotate90();var sf=Be/Ae/2;v.style="shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+
-sf+";arcWidth="+2*ee/r+";strokeColor=none;fillColor="+U(kb)+";"+ia(kb,"fillOpacity");e.Rotation-=Math.PI/2;v.style+=b(v.style,e,u,v,G);ab=new mxCell("",new mxGeometry(0,0,v.geometry.width,v.geometry.height),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+(.5-sf)+";arcWidth="+2*ee/r+";strokeColor=none;flipH=1;fillColor="+U(od)+";"+ia(od,"fillOpacity"));e.Rotation+=Math.PI;ab.style+=b(ab.style,e,u,ab,G);ab.vertex=!0;ab.geometry.relative=1;v.insert(ab);break;case "ProgressBar":v.style="strokeColor=none;fillColor="+
-U(od)+";"+ia(od,"fillOpacity"),v.style+=b(v.style,e,u,v,G),ab=new mxCell("",new mxGeometry(0,0,r*Be/Ae,p),"strokeColor=none;fillColor="+U(kb)+";"+ia(kb,"fillOpacity")),ab.style+=b(ab.style,e,u,ab,G),ab.vertex=!0,ab.geometry.relative=1,v.insert(ab)}break;case "InternalStorageBlock":v.style+="shape=internalStorage;dx=10;dy=10";if(e.Text&&e.Text.m){var fe=e.Text.m,Ce=!1,De=!1;for(l=0;l<fe.length;l++){var pd=fe[l];Ce||"mt"!=pd.n?De||"il"!=pd.n||(pd.v=17+(pd.v||0),De=!0):(pd.v=17+(pd.v||0),Ce=!0)}Ce||
-fe.push({s:0,n:"mt",v:17});De||fe.push({s:0,n:"il",v:17})}v.value=m(e);v.style+=b(v.style,e,u,v,G);break;case "PersonRoleBlock":try{ja=ba(e,u);db=p/2;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Role);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+ja+"startSize="+db+";spacingLeft=3;spacingRight=3;fontStyle=0;"+a(e.Role,G);v.style+=b(v.style,
-e,u,v,G);var Ec=new mxCell("",new mxGeometry(0,p/2,r,p/2),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");Ec.value=m(e.Name);Ec.vertex=!0;v.insert(Ec);Ec.style+=a(e.Name,G);Ec.style+=b(Ec.style,e,u,Ec,G)}catch(gb){console.log(gb)}}v.style&&0>v.style.indexOf("html")&&(v.style+="html=1;");if(e.Title&&e.Title.t&&e.Text&&e.Text.t)try{var tf=v.geometry,uf=new mxCell(m(e.Title),new mxGeometry(0,tf.height+4,tf.width,10),"strokeColor=none;fillColor=none;whiteSpace=wrap;verticalAlign=top;labelPosition=center;verticalLabelPosition=top;align=center;");
-uf.vertex=!0;v.insert(uf);v.style+=a(e.Title,G)}catch(gb){console.log(gb)}Ge(v,e);pa(v,e,D);e.Hidden&&(v.visible=!1);return v}function Ge(w,F){if(F.Text_TRotation||F.TextRotation)try{var D=mxUtils.toDegree(F.Text_TRotation||0)+mxUtils.toDegree(F.TextRotation||0);if(!isNaN(D)&&0!=D&&w.value){var u=w.geometry.width,e=w.geometry.height,P=u,r=e,p=0,Z=0;if(-90==D||-270==D){P=e;r=u;var aa=(e-u)/2;p=-aa/u;Z=aa/e}D+=mxUtils.toDegree(F.Rotation);var V=w.style.split(";").filter(function(ka){return 0>ka.indexOf("fillColor=")&&
-0>ka.indexOf("strokeColor=")&&0>ka.indexOf("rotation=")}).join(";"),wa=new mxCell(w.value,new mxGeometry(p,Z,P,r),V+"fillColor=none;strokeColor=none;rotation="+D+";");w.value=null;wa.geometry.relative=!0;wa.vertex=!0;w.insert(wa)}}catch(ka){console.log(ka)}}function Je(w,F,D,u,e){function P(Kb,$b){var Xa="";try{for(var pb=0;pb<Kb.text.length;pb++){var Nc=Kb.text[pb];if(Nc[0]=="t_"+$b){for(var Fc in Nc[1]){var Gc=Nc[1][Fc];if(Gc)switch(Fc){case "font":Xa+=y(Gc);break;case "bold":Xa+="font-weight: bold;";
-break;case "italic":Xa+="font-style: italic;";break;case "underline":Xa+="text-decoration: underline;";break;case "size":Xa+="font-size:"+z(.75*Gc)+"px;";break;case "color":Xa+="color:"+R(Gc).substring(0,7)+";";break;case "fill":Xa+="background-color:"+R(Gc).substring(0,7)+";";break;case "align":Xa+="text-align:"+Gc+";"}}break}}}catch(Sd){}return Xa}try{var r=function(Kb,$b,Xa){Kb=Aa+Kb;ra[Kb]=$b;$b="";for(var pb=0;pb<V.length;pb++)$b+='<div style="'+ma[pb]+'">'+(Xa[V[pb]]||"&nbsp;")+"</div>";pb=
-mxUtils.getSizeForString($b);Xa=g(Xa.Image||Xa["018__ImageUrl__"])||"https://cdn4.iconfinder.com/data/icons/basic-user-interface-elements/700/user-account-profile-human-avatar-face-head--128.png";Xa=new mxCell($b,new mxGeometry(0,0,pb.width+Ba,pb.height+Pa),ua+(Ca?Xa:""));Xa.vertex=!0;e[Kb]=Xa;u.addCell(Xa,aa)},p=F.OrgChartBlockType,Z=F.Location,aa=new mxCell("",new mxGeometry(.75*Z.x,.75*Z.y,200,100),"group");aa.vertex=!0;u.addCell(aa);var V=F.FieldNames,wa=F.LayoutSettings,ka=F.BlockItemDefaultStyle||
-{props:{}},na=F.EdgeItemDefaultStyle,ra={},Aa=(w||Date.now())+"_";4==p&&(ka.props.LineWidth=0);var ma=[],Ba=25,Pa=40,Ca=!0,ua=b("",ka.props,{},aa,!0);0==p?(ua+="spacingTop=54;imageWidth=54;imageHeight=54;imageAlign=center;imageVerticalAlign=top;image=",Pa+=54):1==p||2==p?(ua+="spacingLeft=54;imageWidth=50;imageHeight=50;imageAlign=left;imageVerticalAlign=top;image=",Ba+=54):3<=p&&(Ca=!1);for(w=0;w<V.length;w++)ma.push(P(ka,V[w]));if(D.Items)for(var Na=D.Items.n,Ka=0;Ka<Na.length;Ka++){var La=Na[Ka];
-r(La.pk,La.ie[0]?La.ie[0].nf:null,La.f)}else{var l=F.ContractMap.derivative;if(null==l){var Ia=F.ContractMap.c.People;var bb=Ia.id;bb=bb.substr(0,bb.lastIndexOf("_"));for(w=0;w<V.length;w++)V[w]=Ia.f[V[w]]||V[w]}else for(Ka=0;Ka<l.length;Ka++)if("ForeignKeyGraph"==l[Ka].type)bb=l[Ka].c[0].id,bb=bb.substr(0,bb.lastIndexOf("_"));else if("MappedGraph"==l[Ka].type)for(w=0;w<V.length;w++)V[w]=l[Ka].nfs[V[w]]||V[w];var Ea;for(Ea in D){La=D[Ea].Collections;for(var Ra in La)if(Ra==bb)Na=La[Ra].Items;else if(La[Ra].Properties.ForeignKeys&&
-La[Ra].Properties.ForeignKeys[0]){var la=La[Ra].Properties.ForeignKeys[0].SourceFields[0];var Ma=La[Ra].Properties.Schema.PrimaryKey[0]}if(Na)break}F={};for(var ya in Na){La=Na[ya];var za=La[Ma],Pb=La[la];za==Pb?(F[za]=za+Date.now(),za=F[za],La[Ma]=za,r(za,Pb,La)):r(za,F[Pb]||Pb,La)}}for(Ea in ra){var fa=ra[Ea];if(null!=fa){var xb=e[Aa+fa],Va=e[Ea];if(null!=xb&&null!=Va){var rc=new mxCell("",new mxGeometry(0,0,100,100),"");rc.geometry.relative=!0;rc.edge=!0;null!=na&&null!=na.props&&Qb(rc,na.props,
-u,null,null,!0);u.addCell(rc,aa,null,xb,Va)}}}var vc=.75*wa.NodeSpacing.LevelSeparation;(new mxOrgChartLayout(u,0,vc,.75*wa.NodeSpacing.NeighborSeparation)).execute(aa);for(Ka=wa=r=0;aa.children&&Ka<aa.children.length;Ka++){var Fb=aa.children[Ka].geometry;r=Math.max(r,Fb.x+Fb.width);wa=Math.max(wa,Fb.y+Fb.height)}var Rb=aa.geometry;Rb.y-=vc;Rb.width=r;Rb.height=wa}catch(Kb){LucidImporter.hasUnknownShapes=!0,LucidImporter.hasOrgChart=!0,console.log(Kb)}}var wc=0,xc=0,ge="text;html=1;resizable=0;labelBackgroundColor=default;align=center;verticalAlign=middle;",
-G=!1,lb="",vf=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],wf=["fpDoor"],Ee={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 mxPoint(-25,-10);E.vertex=!0;x.insert(E);var Uf=45*e.Buttons+(10*e.Buttons-1);U=[];for(l=0;l<e.Buttons;l++)U[l]=new mxCell("",new mxGeometry(.5,1,45,20),"part=1;html=1;"),U[l].geometry.relative=!0,U[l].geometry.offset=new mxPoint(.5*-Uf+55*l,-40),U[l].vertex=!0,v.insert(U[l]),U[l].value=m(e["Button_"+(l+1)]),U[l].style+=a(e["Button_"+(l+1)],G),U[l].style+=b(U[l].style,e,u,U[l],G);break;case "UMLClassBlock":if(0==e.Simple){ja=Y(e,u);eb=Math.round(.75*e.TitleHeight)||25;ja=ja.replace("fillColor",
+"swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Title);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+ja+"startSize="+eb+";"+a(e.Title,G);v.style+=b(v.style,e,u,v,G);X=[];var ve=[],wb=eb/p;Wb=eb;for(l=0;l<=e.Attributes;l++)0<l&&(ve[l]=new mxCell("",new mxGeometry(0,Wb,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),
+Wb+=8,ve[l].vertex=!0,v.insert(ve[l])),ia=0,0==e.Attributes?ia=l=1:l<e.Attributes?(ia=e["Text"+(l+1)+"Percent"],wb+=ia):ia=1-wb,pc=Math.round((p-eb)*ia)+(e.ExtraHeightSet&&1==l?.75*e.ExtraHeight:0),X[l]=new mxCell("",new mxGeometry(0,Wb,r,pc),"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;"),Wb+=pc,X[l].vertex=!0,v.insert(X[l]),X[l].style+=
+ja+M(e,u,X[l])+a(e["Text"+(l+1)],G),X[l].value=m(e["Text"+(l+1)])}else v.value=m(e.Title),v.style+="align=center;",v.style+=a(e.Title,G),v.style+=b(v.style,e,u,v,G);break;case "ERDEntityBlock":ja=Y(e,u);eb=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+ja+"startSize="+
+eb+";"+a(e.Name,G);v.style+=b(v.style,e,u,v,G);e.ShadedHeader?(ja=P(e.FillColor),ke=Sd(ja,.85),v.style+="fillColor="+ke+";"):v.style+=Y(e,u);X=[];wb=eb/p;Wb=eb;for(l=0;l<e.Fields;l++)ia=0,pc=.75*e["Field"+(l+1)+"_h"],X[l]=new mxCell("",new mxGeometry(0,Wb,r,pc),"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;"),Wb+=pc,X[l].vertex=!0,v.insert(X[l]),X[l].style+=
+ja+a(e["Field"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;opacity=5;":X[l].style+("fillColor=none;"+M(e,u,X[l])),X[l].value=m(e["Field"+(l+1)]);break;case "ERDEntityBlock2":ja=Y(e,u);eb=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Name);v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+ja+"startSize="+eb+";"+a(e.Name,G);v.style=e.ShadedHeader?
+v.style+"fillColor=#e0e0e0;":v.style+Y(e,u);v.style+=b(v.style,e,u,v,G);X=[];var Fa=[];wb=eb;var Jb=30;null!=e.Column1&&(Jb=.75*e.Column1);for(l=0;l<e.Fields;l++)ia=0,Fa[l]=new mxCell("",new mxGeometry(0,wb,Jb,.75*e["Key"+(l+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;"),Fa[l].vertex=!0,v.insert(Fa[l]),Fa[l].style+=ja+a(e["Key"+(l+1)],
+G),Fa[l].style=1==e.AltRows&&0!=l%2?Fa[l].style+"fillColor=#000000;fillOpacity=5;":Fa[l].style+("fillColor=none;"+M(e,u,Fa[l])),Fa[l].value=m(e["Key"+(l+1)]),X[l]=new mxCell("",new mxGeometry(Jb,wb,r-Jb,.75*e["Field"+(l+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;"),X[l].vertex=!0,v.insert(X[l]),X[l].style+=
+ja+a(e["Field"+(l+1)],G),v.style+=b(v.style,e,u,v),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+M(e,u,X[l])),X[l].value=m(e["Field"+(l+1)]),wb+=.75*e["Key"+(l+1)+"_h"];break;case "ERDEntityBlock3":ja=Y(e,u);eb=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+ja+"startSize="+eb+
+";"+a(e.Name);v.style=e.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+Y(e,u);v.value=m(e.Name);v.style+=b(v.style,e,u,v,G);X=[];Fa=[];wb=eb;Jb=30;null!=e.Column1&&(Jb=.75*e.Column1);for(l=0;l<e.Fields;l++)ia=0,Fa[l]=new mxCell("",new mxGeometry(0,wb,Jb,.75*e["Field"+(l+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;"),Fa[l].vertex=!0,v.insert(Fa[l]),
+Fa[l].style+=ja+a(e["Field"+(l+1)],G),Fa[l].style=1==e.AltRows&&0!=l%2?Fa[l].style+"fillColor=#000000;fillOpacity=5;":Fa[l].style+("fillColor=none;"+M(e,u,Fa[l])),Fa[l].value=m(e["Field"+(l+1)]),Fa[l].style+=b(Fa[l].style,e,u,Fa[l],G),X[l]=new mxCell("",new mxGeometry(Jb,wb,r-Jb,.75*e["Type"+(l+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;"),
+X[l].vertex=!0,v.insert(X[l]),X[l].style+=ja+a(e["Type"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+M(e,u,X[l])),X[l].value=m(e["Type"+(l+1)]),X[l].style+=b(X[l].style,e,u,X[l],G),wb+=.75*e["Field"+(l+1)+"_h"];break;case "ERDEntityBlock4":ja=Y(e,u);eb=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+
+ja+"startSize="+eb+";"+a(e.Name);v.style=e.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+Y(e,u);v.value=m(e.Name);v.style+=b(v.style,e,u,v,G);X=[];Fa=[];var Kb=[];wb=eb;Jb=30;var de=40;null!=e.Column1&&(Jb=.75*e.Column1);null!=e.Column2&&(de=.75*e.Column2);for(l=0;l<e.Fields;l++)ia=0,Fa[l]=new mxCell("",new mxGeometry(0,wb,Jb,.75*e["Key"+(l+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;"),
+Fa[l].vertex=!0,v.insert(Fa[l]),Fa[l].style+=ja+a(e["Key"+(l+1)],G),Fa[l].style=1==e.AltRows&&0!=l%2?Fa[l].style+"fillColor=#000000;fillOpacity=5;":Fa[l].style+("fillColor=none;"+M(e,u,Fa[l])),Fa[l].value=m(e["Key"+(l+1)]),Fa[l].style+=b(Fa[l].style,e,u,Fa[l],G),X[l]=new mxCell("",new mxGeometry(Jb,wb,r-Jb-de,.75*e["Field"+(l+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;"),
+X[l].vertex=!0,v.insert(X[l]),X[l].style+=ja+a(e["Field"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+M(e,u,X[l])),X[l].value=m(e["Field"+(l+1)]),X[l].style+=b(X[l].style,e,u,X[l],G),Kb[l]=new mxCell("",new mxGeometry(r-de,wb,de,.75*e["Type"+(l+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;"),
+Kb[l].vertex=!0,v.insert(Kb[l]),Kb[l].style+=ja+a(e["Type"+(l+1)],G),Kb[l].style=1==e.AltRows&&0!=l%2?Kb[l].style+"fillColor=#000000;fillOpacity=5;":Kb[l].style+("fillColor=none;"+M(e,u,Kb[l])),Kb[l].value=m(e["Type"+(l+1)]),Kb[l].style+=b(Kb[l].style,e,u,Kb[l],G),wb+=.75*e["Key"+(l+1)+"_h"];break;case "GCPServiceCardApplicationSystemBlock":Ta("application_system",r,p,v,e,u);break;case "GCPServiceCardAuthorizationBlock":Ta("internal_payment_authorization",r,p,v,e,u);break;case "GCPServiceCardBlankBlock":Ta("blank",
+r,p,v,e,u);break;case "GCPServiceCardReallyBlankBlock":Ta("blank",r,p,v,e,u);break;case "GCPServiceCardBucketBlock":Ta("bucket",r,p,v,e,u);break;case "GCPServiceCardCDNInterconnectBlock":Ta("google_network_edge_cache",r,p,v,e,u);break;case "GCPServiceCardCloudDNSBlock":Ta("blank",r,p,v,e,u);break;case "GCPServiceCardClusterBlock":Ta("cluster",r,p,v,e,u);break;case "GCPServiceCardDiskSnapshotBlock":Ta("persistent_disk_snapshot",r,p,v,e,u);break;case "GCPServiceCardEdgePopBlock":Ta("google_network_edge_cache",
+r,p,v,e,u);break;case "GCPServiceCardFrontEndPlatformServicesBlock":Ta("frontend_platform_services",r,p,v,e,u);break;case "GCPServiceCardGatewayBlock":Ta("gateway",r,p,v,e,u);break;case "GCPServiceCardGoogleNetworkBlock":Ta("google_network_edge_cache",r,p,v,e,u);break;case "GCPServiceCardImageServicesBlock":Ta("image_services",r,p,v,e,u);break;case "GCPServiceCardLoadBalancerBlock":Ta("network_load_balancer",r,p,v,e,u);break;case "GCPServiceCardLocalComputeBlock":Ta("dedicated_game_server",r,p,v,
+e,u);break;case "GCPServiceCardLocalStorageBlock":Ta("persistent_disk_snapshot",r,p,v,e,u);break;case "GCPServiceCardLogsAPIBlock":Ta("logs_api",r,p,v,e,u);break;case "GCPServiceCardMemcacheBlock":Ta("memcache",r,p,v,e,u);break;case "GCPServiceCardNATBlock":Ta("nat",r,p,v,e,u);break;case "GCPServiceCardPaymentFormBlock":Ta("external_payment_form",r,p,v,e,u);break;case "GCPServiceCardPushNotificationsBlock":Ta("push_notification_service",r,p,v,e,u);break;case "GCPServiceCardScheduledTasksBlock":Ta("scheduled_tasks",
+r,p,v,e,u);break;case "GCPServiceCardServiceDiscoveryBlock":Ta("service_discovery",r,p,v,e,u);break;case "GCPServiceCardSquidProxyBlock":Ta("squid_proxy",r,p,v,e,u);break;case "GCPServiceCardTaskQueuesBlock":Ta("task_queues",r,p,v,e,u);break;case "GCPServiceCardVirtualFileSystemBlock":Ta("virtual_file_system",r,p,v,e,u);break;case "GCPServiceCardVPNGatewayBlock":Ta("gateway",r,p,v,e,u);break;case "GCPInputDatabase":Ya("database",1,.9,r,p,v,e,u);break;case "GCPInputRecord":Ya("record",1,.66,r,p,v,
+e,u);break;case "GCPInputPayment":Ya("payment",1,.8,r,p,v,e,u);break;case "GCPInputGateway":Ya("gateway_icon",1,.44,r,p,v,e,u);break;case "GCPInputLocalCompute":Ya("compute_engine_icon",1,.89,r,p,v,e,u);break;case "GCPInputBeacon":Ya("beacon",.73,1,r,p,v,e,u);break;case "GCPInputStorage":Ya("storage",1,.8,r,p,v,e,u);break;case "GCPInputList":Ya("list",.89,1,r,p,v,e,u);break;case "GCPInputStream":Ya("stream",1,.82,r,p,v,e,u);break;case "GCPInputMobileDevices":Ya("mobile_devices",1,.73,r,p,v,e,u);break;
+case "GCPInputCircuitBoard":Ya("circuit_board",1,.9,r,p,v,e,u);break;case "GCPInputLive":Ya("live",.74,1,r,p,v,e,u);break;case "GCPInputUsers":Ya("users",1,.63,r,p,v,e,u);break;case "GCPInputLaptop":Ya("laptop",1,.66,r,p,v,e,u);break;case "GCPInputApplication":Ya("application",1,.8,r,p,v,e,u);break;case "GCPInputLightbulb":Ya("lightbulb",.7,1,r,p,v,e,u);break;case "GCPInputGame":Ya("game",1,.54,r,p,v,e,u);break;case "GCPInputDesktop":Ya("desktop",1,.9,r,p,v,e,u);break;case "GCPInputDesktopAndMobile":Ya("desktop_and_mobile",
+1,.66,r,p,v,e,u);break;case "GCPInputWebcam":Ya("webcam",.5,1,r,p,v,e,u);break;case "GCPInputSpeaker":Ya("speaker",.7,1,r,p,v,e,u);break;case "GCPInputRetail":Ya("retail",1,.89,r,p,v,e,u);break;case "GCPInputReport":Ya("report",1,1,r,p,v,e,u);break;case "GCPInputPhone":Ya("phone",.64,1,r,p,v,e,u);break;case "GCPInputBlank":Ya("transparent",1,1,r,p,v,e,u);break;case "PresentationFrameBlock":0==e.ZOrder?v.style+="strokeColor=none;fillColor=none;":(v.style+=a(e.Text),v.value=m(e.Text),v.style+=b(v.style,
+e,u,v,G));break;case "SVGPathBlock2":try{var Vf=e.LineWidth,Wf=e.LineColor,mf=e.FillColor,nf=e.DrawData.Data,ee='<svg viewBox="0 0 1 1" xmlns="http://www.w3.org/2000/svg">',we=null;for(l=0;l<nf.length;l++){var vc=nf[l],Xf=vc.a,Yf=("prop"==vc.w||null==vc.w?Vf:vc.w)/Math.min(r,p)*.75;Sc="prop"==vc.s||null==vc.s?Wf:vc.s;Z="prop"==vc.f||null==vc.f?mf:vc.f;"object"==typeof Z&&(null!=Z.url&&(we="shape=image;image="+g(Z.url)+";"),Z=Array.isArray(Z.cs)?Z.cs[0].c:mf);ee+='<path d="'+Xf+'" fill="'+Z+'" stroke="'+
+Sc+'" stroke-width="'+Yf+'"/>'}ee+="</svg>";v.style=we?we:"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image=data:image/svg+xml,"+(window.btoa?btoa(ee):Base64.encode(ee,!0))+";"}catch(hb){}break;case "BraceBlock":case "BraceBlockRotated":case "BracketBlock":case "BracketBlockRotated":var of=0==W.indexOf("Bracket")?"size=0;arcSize=50;":"",pf=b(v.style,e,u,v,G);nb=T(e,u,v);v.style="group;"+nb;var xe=Math.min(.14*(nb?r:p),100),ye=
+new mxCell("",new mxGeometry(0,0,xe,p),"shape=curlyBracket;rounded=1;"+of+pf);ye.vertex=!0;ye.geometry.relative=!0;var ze=new mxCell("",new mxGeometry(1-xe/r,0,xe,p),"shape=curlyBracket;rounded=1;flipH=1;"+of+pf);ze.vertex=!0;ze.geometry.relative=!0;v.insert(ye);v.insert(ze);break;case "BPMNTextAnnotation":case "NoteBlock":e.InsetMargin=null;v.value=m(e.Text);v.style="group;spacingLeft=8;align=left;spacing=0;strokeColor=none;";v.style+=b(v.style,e,u,v,G);0>v.style.indexOf("verticalAlign")&&(v.style+=
+"verticalAlign=middle;");var ld=new mxCell("",new mxGeometry(0,0,8,p),"shape=partialRectangle;right=0;fillColor=none;");ld.geometry.relative=!0;ld.vertex=!0;ld.style+=b(ld.style,e,u,v,G);v.insert(ld);break;case "VSMTimelineBlock":case "TimelineBlock":case "TimelineMilestoneBlock":case "TimelineIntervalBlock":LucidImporter.hasTimeLine=!0;LucidImporter.hasUnknownShapes=!0;break;case "FreehandBlock":try{nb=T(e,u,v);v.style="group;"+nb;if(null!=e.Stencil){null==e.Stencil.id&&(e.Stencil.id="$$tmpId$$",
+Le(e.Stencil.id,e.Stencil));var Pb=LucidImporter.stencilsMap[e.Stencil.id],Zf=-Pb.x/Pb.w,$f=-Pb.y/Pb.h;for(l=0;l<Pb.stencils.length;l++){var pb=Pb.stencils[l];qa=new mxCell("",new mxGeometry(Zf,$f,r,p),"shape="+pb.shapeStencil+";");var ag=pb.FillColor,bg=pb.LineColor,cg=pb.LineWidth;"prop"==pb.FillColor&&(pb.FillColor=e.FillColor);null==pb.FillColor&&(pb.FillColor="#ffffff00");"prop"==pb.LineColor&&(pb.LineColor=e.LineColor);null==pb.LineColor&&(pb.LineColor="#ffffff00");"prop"==pb.LineWidth&&(pb.LineWidth=
+e.LineWidth);qa.style+=b(qa.style,pb,u,qa,G);pb.FillColor=ag;pb.LineColor=bg;pb.LineWidth=cg;Z=e.FillColor;var dg=e.LineColor,eg=e.LineWidth;e.FillColor=null;e.LineColor=null;e.LineWidth=null;qa.style+=b(qa.style,e,u,qa,G);e.FillColor=Z;e.LineColor=dg;e.LineWidth=eg;qa.vertex=!0;qa.geometry.relative=!0;v.insert(qa)}var Xb=0;for(nb=e.Rotation;e["t"+Xb];){var qf=e["t"+Xb],rf=m(qf);if(rf){ra=new mxCell(rf,new mxGeometry(0,0,r,p),"strokeColor=none;fillColor=none;overflow=visible;");e.Rotation=0;ra.style+=
+b(ra.style,qf,u,ra,G);ra.style+=b(ra.style,e,u,ra,G);e.Rotation=nb;if(null!=Pb.text&&null!=Pb.text["t"+Xb]){var fb=Pb.text["t"+Xb];fb.Rotation=nb+(fb.rotation?fb.rotation:0)+(e["t"+Xb+"_TRotation"]?e["t"+Xb+"_TRotation"]:0)+(e["t"+Xb+"_TAngle"]?e["t"+Xb+"_TAngle"]:0);ra.style+=b(ra.style,fb,u,ra,G);var Yb=ra.geometry;fb.w&&(Yb.width*=fb.w/Pb.w);fb.h&&(Yb.height*=fb.h/Pb.h);fb.x&&(Yb.x=fb.x/Pb.w);fb.y&&(Yb.y=fb.y/Pb.h);fb.fw&&(Yb.width*=.75*fb.fw/r);fb.fh&&(Yb.height*=.75*fb.fh/p);fb.fx&&(Yb.x=(0<
+fb.fx?1:0)+.75*fb.fx/r);fb.fy&&(Yb.y=(0<fb.fy?1:0)+.75*fb.fy/p)}ra.vertex=!0;ra.geometry.relative=!0;v.insert(ra)}Xb++}}if(e.FillColor&&e.FillColor.url){var Od=new mxCell("",new mxGeometry(0,0,r,p),"shape=image;html=1;");Od.style+=Ra({},{},e.FillColor.url);Od.vertex=!0;Od.geometry.relative=!0;v.insert(Od)}}catch(hb){console.log("Freehand error",hb)}break;case "RightArrowBlock":var Ae=e.Head*p/r;v.style="shape=singleArrow;arrowWidth="+(1-2*e.Notch)+";arrowSize="+Ae;v.value=m(e);v.style+=b(v.style,
+e,u,v,G);break;case "DoubleArrowBlock":Ae=e.Head*p/r;v.style="shape=doubleArrow;arrowWidth="+(1-2*e.Notch)+";arrowSize="+Ae;v.value=m(e);v.style+=b(v.style,e,u,v,G);break;case "VPCSubnet2017":case "VirtualPrivateCloudContainer2017":case "ElasticBeanStalkContainer2017":case "EC2InstanceContents2017":case "AWSCloudContainer2017":case "CorporateDataCenterContainer2017":switch(W){case "VPCSubnet2017":var md="shape=mxgraph.aws3.permissions;fillColor=#D9A741;";var nd=30;var od=35;break;case "VirtualPrivateCloudContainer2017":md=
+"shape=mxgraph.aws3.virtual_private_cloud;fillColor=#F58536;";nd=52;od=36;break;case "ElasticBeanStalkContainer2017":md="shape=mxgraph.aws3.elastic_beanstalk;fillColor=#F58536;";nd=30;od=41;break;case "EC2InstanceContents2017":md="shape=mxgraph.aws3.instance;fillColor=#F58536;";nd=40;od=41;break;case "AWSCloudContainer2017":md="shape=mxgraph.aws3.cloud;fillColor=#F58536;";nd=52;od=36;break;case "CorporateDataCenterContainer2017":md="shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;",nd=
+30,od=42}v.style="rounded=1;arcSize=10;dashed=0;verticalAlign=bottom;";v.value=m(e);v.style+=b(v.style,e,u,v,G);v.geometry.y+=20;v.geometry.height-=20;ob=new mxCell("",new mxGeometry(20,-20,nd,od),md);ob.vertex=!0;v.insert(ob);break;case "FlexiblePolygonBlock":var Xc=['<shape strokewidth="inherit"><foreground>'];Xc.push("<path>");for(ha=0;ha<e.Vertices.length;ha++)Pa=e.Vertices[ha],0==ha?Xc.push('<move x="'+100*Pa.x+'" y="'+100*Pa.y+'"/>'):Xc.push('<line x="'+100*Pa.x+'" y="'+100*Pa.y+'"/>');Xc.push("</path>");
+Xc.push("<fillstroke/>");Xc.push("</foreground></shape>");v.style="shape=stencil("+Graph.compress(Xc.join(""))+");";v.value=m(e);v.style+=b(v.style,e,u,v,G);break;case "InfographicsBlock":var sf=e.ShapeData_1.Value,Be=e.ShapeData_2.Value-sf,Ce=e.ShapeData_3.Value-sf,fe=e.ShapeData_4.Value*r/200;Xb="ProgressBar"==e.InternalStencilId?4:5;lb=e["ShapeData_"+Xb].Value;lb="=fillColor()"==lb?e.FillColor:lb;var pd=e["ShapeData_"+(Xb+1)].Value;switch(e.InternalStencilId){case "ProgressDonut":v.style="shape=mxgraph.basic.donut;dx="+
+fe+";strokeColor=none;fillColor="+P(pd)+";"+ea(pd,"fillOpacity");v.style+=b(v.style,e,u,v,G);var bb=new mxCell("",new mxGeometry(0,0,r,p),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+Ce/Be+";arcWidth="+fe/r*2+";strokeColor=none;fillColor="+P(lb)+";"+ea(lb,"fillOpacity"));bb.style+=b(bb.style,e,u,bb,G);bb.vertex=!0;bb.geometry.relative=1;v.insert(bb);break;case "ProgressHalfDonut":v.geometry.height*=2;v.geometry.rotate90();var tf=Ce/Be/2;v.style="shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+
+tf+";arcWidth="+2*fe/r+";strokeColor=none;fillColor="+P(lb)+";"+ea(lb,"fillOpacity");e.Rotation-=Math.PI/2;v.style+=b(v.style,e,u,v,G);bb=new mxCell("",new mxGeometry(0,0,v.geometry.width,v.geometry.height),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+(.5-tf)+";arcWidth="+2*fe/r+";strokeColor=none;flipH=1;fillColor="+P(pd)+";"+ea(pd,"fillOpacity"));e.Rotation+=Math.PI;bb.style+=b(bb.style,e,u,bb,G);bb.vertex=!0;bb.geometry.relative=1;v.insert(bb);break;case "ProgressBar":v.style="strokeColor=none;fillColor="+
+P(pd)+";"+ea(pd,"fillOpacity"),v.style+=b(v.style,e,u,v,G),bb=new mxCell("",new mxGeometry(0,0,r*Ce/Be,p),"strokeColor=none;fillColor="+P(lb)+";"+ea(lb,"fillOpacity")),bb.style+=b(bb.style,e,u,bb,G),bb.vertex=!0,bb.geometry.relative=1,v.insert(bb)}break;case "InternalStorageBlock":v.style+="shape=internalStorage;dx=10;dy=10";if(e.Text&&e.Text.m){var ge=e.Text.m,De=!1,Ee=!1;for(l=0;l<ge.length;l++){var qd=ge[l];De||"mt"!=qd.n?Ee||"il"!=qd.n||(qd.v=17+(qd.v||0),Ee=!0):(qd.v=17+(qd.v||0),De=!0)}De||
+ge.push({s:0,n:"mt",v:17});Ee||ge.push({s:0,n:"il",v:17})}v.value=m(e);v.style+=b(v.style,e,u,v,G);break;case "PersonRoleBlock":try{ja=Y(e,u);eb=p/2;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Role);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+ja+"startSize="+eb+";spacingLeft=3;spacingRight=3;fontStyle=0;"+a(e.Role,G);v.style+=b(v.style,
+e,u,v,G);var Fc=new mxCell("",new mxGeometry(0,p/2,r,p/2),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");Fc.value=m(e.Name);Fc.vertex=!0;v.insert(Fc);Fc.style+=a(e.Name,G);Fc.style+=b(Fc.style,e,u,Fc,G)}catch(hb){console.log(hb)}}v.style&&0>v.style.indexOf("html")&&(v.style+="html=1;");if(e.Title&&e.Title.t&&e.Text&&e.Text.t)try{var uf=v.geometry,vf=new mxCell(m(e.Title),new mxGeometry(0,uf.height+4,uf.width,10),"strokeColor=none;fillColor=none;whiteSpace=wrap;verticalAlign=top;labelPosition=center;verticalLabelPosition=top;align=center;");
+vf.vertex=!0;v.insert(vf);v.style+=a(e.Title,G)}catch(hb){console.log(hb)}He(v,e);la(v,e,D);e.Hidden&&(v.visible=!1);return v}function He(w,F){if(F.Text_TRotation||F.TextRotation)try{var D=mxUtils.toDegree(F.Text_TRotation||0)+mxUtils.toDegree(F.TextRotation||0);if(!isNaN(D)&&0!=D&&w.value){var u=w.geometry.width,e=w.geometry.height,O=u,r=e,p=0,aa=0;if(-90==D||-270==D){O=e;r=u;var ba=(e-u)/2;p=-ba/u;aa=ba/e}D+=mxUtils.toDegree(F.Rotation);var W=w.style.split(";").filter(function(ka){return 0>ka.indexOf("fillColor=")&&
+0>ka.indexOf("strokeColor=")&&0>ka.indexOf("rotation=")}).join(";"),wa=new mxCell(w.value,new mxGeometry(p,aa,O,r),W+"fillColor=none;strokeColor=none;rotation="+D+";");w.value=null;wa.geometry.relative=!0;wa.vertex=!0;w.insert(wa)}}catch(ka){console.log(ka)}}function Ke(w,F,D,u,e){function O(Lb,$b){var Za="";try{for(var qb=0;qb<Lb.text.length;qb++){var Oc=Lb.text[qb];if(Oc[0]=="t_"+$b){for(var Gc in Oc[1]){var Hc=Oc[1][Gc];if(Hc)switch(Gc){case "font":Za+=y(Hc);break;case "bold":Za+="font-weight: bold;";
+break;case "italic":Za+="font-style: italic;";break;case "underline":Za+="text-decoration: underline;";break;case "size":Za+="font-size:"+z(.75*Hc)+"px;";break;case "color":Za+="color:"+V(Hc).substring(0,7)+";";break;case "fill":Za+="background-color:"+V(Hc).substring(0,7)+";";break;case "align":Za+="text-align:"+Hc+";"}}break}}}catch(Td){}return Za}try{var r=function(Lb,$b,Za){Lb=Aa+Lb;ra[Lb]=$b;$b="";for(var qb=0;qb<W.length;qb++)$b+='<div style="'+na[qb]+'">'+(Za[W[qb]]||"&nbsp;")+"</div>";qb=
+mxUtils.getSizeForString($b);Za=g(Za.Image||Za["018__ImageUrl__"])||"https://cdn4.iconfinder.com/data/icons/basic-user-interface-elements/700/user-account-profile-human-avatar-face-head--128.png";Za=new mxCell($b,new mxGeometry(0,0,qb.width+Ba,qb.height+Oa),ua+(Ca?Za:""));Za.vertex=!0;e[Lb]=Za;u.addCell(Za,ba)},p=F.OrgChartBlockType,aa=F.Location,ba=new mxCell("",new mxGeometry(.75*aa.x,.75*aa.y,200,100),"group");ba.vertex=!0;u.addCell(ba);var W=F.FieldNames,wa=F.LayoutSettings,ka=F.BlockItemDefaultStyle||
+{props:{}},pa=F.EdgeItemDefaultStyle,ra={},Aa=(w||Date.now())+"_";4==p&&(ka.props.LineWidth=0);var na=[],Ba=25,Oa=40,Ca=!0,ua=b("",ka.props,{},ba,!0);0==p?(ua+="spacingTop=54;imageWidth=54;imageHeight=54;imageAlign=center;imageVerticalAlign=top;image=",Oa+=54):1==p||2==p?(ua+="spacingLeft=54;imageWidth=50;imageHeight=50;imageAlign=left;imageVerticalAlign=top;image=",Ba+=54):3<=p&&(Ca=!1);for(w=0;w<W.length;w++)na.push(O(ka,W[w]));if(D.Items)for(var Ma=D.Items.n,Ja=0;Ja<Ma.length;Ja++){var Ka=Ma[Ja];
+r(Ka.pk,Ka.ie[0]?Ka.ie[0].nf:null,Ka.f)}else{var l=F.ContractMap.derivative;if(null==l){var Ha=F.ContractMap.c.People;var cb=Ha.id;cb=cb.substr(0,cb.lastIndexOf("_"));for(w=0;w<W.length;w++)W[w]=Ha.f[W[w]]||W[w]}else for(Ja=0;Ja<l.length;Ja++)if("ForeignKeyGraph"==l[Ja].type)cb=l[Ja].c[0].id,cb=cb.substr(0,cb.lastIndexOf("_"));else if("MappedGraph"==l[Ja].type)for(w=0;w<W.length;w++)W[w]=l[Ja].nfs[W[w]]||W[w];var Ea;for(Ea in D){Ka=D[Ea].Collections;for(var Qa in Ka)if(Qa==cb)Ma=Ka[Qa].Items;else if(Ka[Qa].Properties.ForeignKeys&&
+Ka[Qa].Properties.ForeignKeys[0]){var ma=Ka[Qa].Properties.ForeignKeys[0].SourceFields[0];var La=Ka[Qa].Properties.Schema.PrimaryKey[0]}if(Ma)break}F={};for(var ya in Ma){Ka=Ma[ya];var za=Ka[La],Qb=Ka[ma];za==Qb?(F[za]=za+Date.now(),za=F[za],Ka[La]=za,r(za,Qb,Ka)):r(za,F[Qb]||Qb,Ka)}}for(Ea in ra){var ha=ra[Ea];if(null!=ha){var xb=e[Aa+ha],Wa=e[Ea];if(null!=xb&&null!=Wa){var rc=new mxCell("",new mxGeometry(0,0,100,100),"");rc.geometry.relative=!0;rc.edge=!0;null!=pa&&null!=pa.props&&Xa(rc,pa.props,
+u,null,null,!0);u.addCell(rc,ba,null,xb,Wa)}}}var wc=.75*wa.NodeSpacing.LevelSeparation;(new mxOrgChartLayout(u,0,wc,.75*wa.NodeSpacing.NeighborSeparation)).execute(ba);for(Ja=wa=r=0;ba.children&&Ja<ba.children.length;Ja++){var Gb=ba.children[Ja].geometry;r=Math.max(r,Gb.x+Gb.width);wa=Math.max(wa,Gb.y+Gb.height)}var Rb=ba.geometry;Rb.y-=wc;Rb.width=r;Rb.height=wa}catch(Lb){LucidImporter.hasUnknownShapes=!0,LucidImporter.hasOrgChart=!0,console.log(Lb)}}var xc=0,yc=0,he="text;html=1;resizable=0;labelBackgroundColor=default;align=center;verticalAlign=middle;",
+G=!1,mb="",wf=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],xf=["fpDoor"],Fe={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;"},Od={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;"},Pd={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;",
@@ -1045,43 +1045,43 @@ 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"},xf=RegExp("{{(date{.*}|[^%^{^}]+)}}","g");Qd.prototype.getSize=function(){return(this.nurbsValues.length/4|0)-1};Qd.prototype.getX=function(w){return Math.round(100*this.nurbsValues[4*(w+1)])/100};Qd.prototype.getY=function(w){return Math.round(100*this.nurbsValues[4*(w+1)+1])/100};LucidImporter.importState=function(w,F,D){function u(p){null!=p.state&&EditorUi.debug("convertLucidChart addPages",
-p);if(p.Properties){for(var Z in p.Properties)"Stencil-"==Z.substr(0,8)&&Ke(Z.substr(8),p.Properties[Z]);LucidImporter.globalProps=p.Properties}for(var aa in p.Pages)Z=p.Pages[aa],Z.id=aa,Z.Data=p.Data,e.push(Z);e.sort(function(V,wa){return V.Properties.Order<wa.Properties.Order?-1:V.Properties.Order>wa.Properties.Order?1:0});for(p=0;p<e.length;p++)LucidImporter.pageIdsMap[e[p].id]=p}xc=wc=0;LucidImporter.stencilsMap={};LucidImporter.imgSrcRepl=F;LucidImporter.advImpConfig=D;LucidImporter.globalProps=
-{};LucidImporter.pageIdsMap={};LucidImporter.hasUnknownShapes=!1;LucidImporter.hasOrgChart=!1;LucidImporter.hasTimeLine=!1;LucidImporter.hasExtImgs=!1;F=['<?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())+'">'];D&&D.transparentEdgeLabels&&(ge=ge.replace("labelBackgroundColor=default;",
-"labelBackgroundColor=none;"));var e=[];null!=w.state?u(JSON.parse(w.state)):null==w.Page&&null!=w.Pages?u(w):e.push(w);w=Df();D=new mxCodec;for(var P=0;P<e.length;P++){F.push("<diagram");null!=e[P].Properties&&null!=e[P].Properties.Title&&F.push(' name="'+mxUtils.htmlEntities(e[P].Properties.Title)+'"');F.push(' id="'+P+'"');zf(w,e[P],!0);var r=D.encode(w.getModel());null!=e[P].Properties&&(e[P].Properties.FillColor&&"#ffffff"!=e[P].Properties.FillColor&&r.setAttribute("background",U(e[P].Properties.FillColor)),
-e[P].Properties.InfiniteCanvas?r.setAttribute("page",0):null!=e[P].Properties.Size&&(r.setAttribute("page",1),r.setAttribute("pageWidth",.75*e[P].Properties.Size.w),r.setAttribute("pageHeight",.75*e[P].Properties.Size.h)),null!=e[P].Properties.GridSpacing&&(r.setAttribute("grid",1),r.setAttribute("gridSize",.75*e[P].Properties.GridSpacing)));LucidImporter.hasMath&&r.setAttribute("math",1);w.getModel().clear();F.push(">"+Graph.compress(mxUtils.getXml(r))+"</diagram>")}F.push("</mxfile>");LucidImporter.imgSrcRepl=
-null;return F.join("")}})();function VsdxExport(g){function y(H,J){var M={"[Content_Types].xml":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Types xmlns='http://schemas.openxmlformats.org/package/2006/content-types'><Default Extension='png' ContentType='image/png'/><Default Extension='jpg' ContentType='image/jpeg'/><Default Extension='jpeg' ContentType='image/jpeg'/><Default Extension='svg' ContentType='image/svg+xml'/><Default Extension='bmp' ContentType='image/bmp'/><Default Extension='gif' ContentType='image/gif'/><Default Extension='emf' ContentType='image/x-emf' /><Default Extension='rels' ContentType='application/vnd.openxmlformats-package.relationships+xml' /><Default Extension='xml' ContentType='application/xml' /><Override PartName='/docProps/app.xml' ContentType='application/vnd.openxmlformats-officedocument.extended-properties+xml' /><Override PartName='/docProps/core.xml' ContentType='application/vnd.openxmlformats-package.core-properties+xml' /><Override PartName='/docProps/custom.xml' ContentType='application/vnd.openxmlformats-officedocument.custom-properties+xml' /><Override PartName='/visio/document.xml' ContentType='application/vnd.ms-visio.drawing.main+xml' /><Override PartName='/visio/masters/masters.xml' ContentType='application/vnd.ms-visio.masters+xml' /><Override PartName='/visio/masters/master1.xml' ContentType='application/vnd.ms-visio.master+xml'/><Override PartName='/visio/pages/page1.xml' ContentType='application/vnd.ms-visio.page+xml' /><Override PartName='/visio/pages/pages.xml' ContentType='application/vnd.ms-visio.pages+xml' /><Override PartName='/visio/windows.xml' ContentType='application/vnd.ms-visio.windows+xml' /></Types>",
+InfographicsBlock:"mxCompositeShape",FlexiblePolygonBlock:"mxCompositeShape",PersonRoleBlock:"mxCompositeShape"},yf=RegExp("{{(date{.*}|[^%^{^}]+)}}","g");Rd.prototype.getSize=function(){return(this.nurbsValues.length/4|0)-1};Rd.prototype.getX=function(w){return Math.round(100*this.nurbsValues[4*(w+1)])/100};Rd.prototype.getY=function(w){return Math.round(100*this.nurbsValues[4*(w+1)+1])/100};LucidImporter.importState=function(w,F,D){function u(p){null!=p.state&&EditorUi.debug("convertLucidChart addPages",
+p);if(p.Properties){for(var aa in p.Properties)"Stencil-"==aa.substr(0,8)&&Le(aa.substr(8),p.Properties[aa]);LucidImporter.globalProps=p.Properties}for(var ba in p.Pages)aa=p.Pages[ba],aa.id=ba,aa.Data=p.Data,e.push(aa);e.sort(function(W,wa){return W.Properties.Order<wa.Properties.Order?-1:W.Properties.Order>wa.Properties.Order?1:0});for(p=0;p<e.length;p++)LucidImporter.pageIdsMap[e[p].id]=p}yc=xc=0;LucidImporter.stencilsMap={};LucidImporter.imgSrcRepl=F;LucidImporter.advImpConfig=D;LucidImporter.globalProps=
+{};LucidImporter.pageIdsMap={};LucidImporter.hasUnknownShapes=!1;LucidImporter.hasOrgChart=!1;LucidImporter.hasTimeLine=!1;LucidImporter.hasExtImgs=!1;F=['<?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())+'">'];D&&D.transparentEdgeLabels&&(he=he.replace("labelBackgroundColor=default;",
+"labelBackgroundColor=none;"));var e=[];null!=w.state?u(JSON.parse(w.state)):null==w.Page&&null!=w.Pages?u(w):e.push(w);w=Df();D=new mxCodec;for(var O=0;O<e.length;O++){F.push("<diagram");null!=e[O].Properties&&null!=e[O].Properties.Title&&F.push(' name="'+mxUtils.htmlEntities(e[O].Properties.Title)+'"');F.push(' id="'+O+'"');zf(w,e[O],!0);var r=D.encode(w.getModel());null!=e[O].Properties&&(e[O].Properties.FillColor&&"#ffffff"!=e[O].Properties.FillColor&&r.setAttribute("background",P(e[O].Properties.FillColor)),
+e[O].Properties.InfiniteCanvas?r.setAttribute("page",0):null!=e[O].Properties.Size&&(r.setAttribute("page",1),r.setAttribute("pageWidth",.75*e[O].Properties.Size.w),r.setAttribute("pageHeight",.75*e[O].Properties.Size.h)),null!=e[O].Properties.GridSpacing&&(r.setAttribute("grid",1),r.setAttribute("gridSize",.75*e[O].Properties.GridSpacing)));LucidImporter.hasMath&&r.setAttribute("math",1);w.getModel().clear();F.push(">"+Graph.compress(mxUtils.getXml(r))+"</diagram>")}F.push("</mxfile>");LucidImporter.imgSrcRepl=
+null;return F.join("")}})();function VsdxExport(g){function y(H,N){var J={"[Content_Types].xml":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Types xmlns='http://schemas.openxmlformats.org/package/2006/content-types'><Default Extension='png' ContentType='image/png'/><Default Extension='jpg' ContentType='image/jpeg'/><Default Extension='jpeg' ContentType='image/jpeg'/><Default Extension='svg' ContentType='image/svg+xml'/><Default Extension='bmp' ContentType='image/bmp'/><Default Extension='gif' ContentType='image/gif'/><Default Extension='emf' ContentType='image/x-emf' /><Default Extension='rels' ContentType='application/vnd.openxmlformats-package.relationships+xml' /><Default Extension='xml' ContentType='application/xml' /><Override PartName='/docProps/app.xml' ContentType='application/vnd.openxmlformats-officedocument.extended-properties+xml' /><Override PartName='/docProps/core.xml' ContentType='application/vnd.openxmlformats-package.core-properties+xml' /><Override PartName='/docProps/custom.xml' ContentType='application/vnd.openxmlformats-officedocument.custom-properties+xml' /><Override PartName='/visio/document.xml' ContentType='application/vnd.ms-visio.drawing.main+xml' /><Override PartName='/visio/masters/masters.xml' ContentType='application/vnd.ms-visio.masters+xml' /><Override PartName='/visio/masters/master1.xml' ContentType='application/vnd.ms-visio.master+xml'/><Override PartName='/visio/pages/page1.xml' ContentType='application/vnd.ms-visio.page+xml' /><Override PartName='/visio/pages/pages.xml' ContentType='application/vnd.ms-visio.pages+xml' /><Override PartName='/visio/windows.xml' ContentType='application/vnd.ms-visio.windows+xml' /></Types>",
"_rels/.rels":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Relationships xmlns='http://schemas.openxmlformats.org/package/2006/relationships'><Relationship Id='rId1' Type='http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties' Target='docProps/core.xml' /><Relationship Id='rId2' Type='http://schemas.microsoft.com/visio/2010/relationships/document' Target='visio/document.xml' /><Relationship Id='rId3' Type='http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties' Target='docProps/custom.xml' /><Relationship Id='rId4' Type='http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties' Target='docProps/app.xml' /></Relationships>",
"docProps/app.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Properties xmlns=\'http://schemas.openxmlformats.org/officeDocument/2006/extended-properties\' xmlns:vt=\'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes\'><Application>Microsoft Visio</Application><AppVersion>15.0000</AppVersion><Template /><Manager /><Company /><HyperlinkBase /></Properties>',"docProps/core.xml":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><cp:coreProperties xmlns:cp='http://schemas.openxmlformats.org/package/2006/metadata/core-properties' xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:dcterms='http://purl.org/dc/terms/' xmlns:dcmitype='http://purl.org/dc/dcmitype/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><dc:title /><dc:subject /><dc:creator /><cp:keywords /><dc:description /><cp:category /><dc:language>en-US</dc:language></cp:coreProperties>",
"docProps/custom.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Properties xmlns=\'http://schemas.openxmlformats.org/officeDocument/2006/custom-properties\' xmlns:vt=\'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes\' />',"visio/document.xml":"<?xml version='1.0' encoding='utf-8' ?><VisioDocument xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><DocumentSettings TopPage='0' DefaultTextStyle='3' DefaultLineStyle='3' DefaultFillStyle='3' DefaultGuideStyle='4'><GlueSettings>9</GlueSettings><SnapSettings>65847</SnapSettings><SnapExtensions>34</SnapExtensions><SnapAngles/><DynamicGridEnabled>1</DynamicGridEnabled><ProtectStyles>0</ProtectStyles><ProtectShapes>0</ProtectShapes><ProtectMasters>0</ProtectMasters><ProtectBkgnds>0</ProtectBkgnds></DocumentSettings><Colors><ColorEntry IX='24' RGB='#000000'/><ColorEntry IX='25' RGB='#FFFFFF'/><ColorEntry IX='26' RGB='#FF0000'/><ColorEntry IX='27' RGB='#00FF00'/><ColorEntry IX='28' RGB='#0000FF'/><ColorEntry IX='29' RGB='#FFFF00'/><ColorEntry IX='30' RGB='#FF00FF'/><ColorEntry IX='31' RGB='#00FFFF'/><ColorEntry IX='32' RGB='#800000'/><ColorEntry IX='33' RGB='#008000'/><ColorEntry IX='34' RGB='#000080'/><ColorEntry IX='35' RGB='#808000'/><ColorEntry IX='36' RGB='#800080'/><ColorEntry IX='37' RGB='#008080'/><ColorEntry IX='38' RGB='#C0C0C0'/><ColorEntry IX='39' RGB='#E6E6E6'/><ColorEntry IX='40' RGB='#CDCDCD'/><ColorEntry IX='41' RGB='#B3B3B3'/><ColorEntry IX='42' RGB='#9A9A9A'/><ColorEntry IX='43' RGB='#808080'/><ColorEntry IX='44' RGB='#666666'/><ColorEntry IX='45' RGB='#4D4D4D'/><ColorEntry IX='46' RGB='#333333'/><ColorEntry IX='47' RGB='#1A1A1A'/><ColorEntry IX='48' RGB='#7F7F7F'/><ColorEntry IX='49' RGB='#99004D'/><ColorEntry IX='50' RGB='#FF0080'/><ColorEntry IX='51' RGB='#CC0066'/></Colors><FaceNames><FaceName NameU='Calibri' UnicodeRanges='-536859905 -1073732485 9 0' CharSets='536871423 0' Panose='2 15 5 2 2 2 4 3 2 4' Flags='325'/></FaceNames><StyleSheets><StyleSheet ID='0' NameU='No Style' IsCustomNameU='1' Name='No Style' IsCustomName='1'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='0.01041666666666667'/><Cell N='LineColor' V='0'/><Cell N='LinePattern' V='1'/><Cell N='Rounding' V='0'/><Cell N='EndArrowSize' V='2'/><Cell N='BeginArrow' V='0'/><Cell N='EndArrow' V='0'/><Cell N='LineCap' V='0'/><Cell N='BeginArrowSize' V='2'/><Cell N='LineColorTrans' V='0'/><Cell N='CompoundType' V='0'/><Cell N='FillForegnd' V='1'/><Cell N='FillBkgnd' V='0'/><Cell N='FillPattern' V='1'/><Cell N='ShdwForegnd' V='0'/><Cell N='ShdwPattern' V='0'/><Cell N='FillForegndTrans' V='0'/><Cell N='FillBkgndTrans' V='0'/><Cell N='ShdwForegndTrans' V='0'/><Cell N='ShapeShdwType' V='0'/><Cell N='ShapeShdwOffsetX' V='0'/><Cell N='ShapeShdwOffsetY' V='0'/><Cell N='ShapeShdwObliqueAngle' V='0'/><Cell N='ShapeShdwScaleFactor' V='1'/><Cell N='ShapeShdwBlur' V='0'/><Cell N='ShapeShdwShow' V='0'/><Cell N='LeftMargin' V='0'/><Cell N='RightMargin' V='0'/><Cell N='TopMargin' V='0'/><Cell N='BottomMargin' V='0'/><Cell N='VerticalAlign' V='1'/><Cell N='TextBkgnd' V='0'/><Cell N='DefaultTabStop' V='0.5'/><Cell N='TextDirection' V='0'/><Cell N='TextBkgndTrans' V='0'/><Cell N='LockWidth' V='0'/><Cell N='LockHeight' V='0'/><Cell N='LockMoveX' V='0'/><Cell N='LockMoveY' V='0'/><Cell N='LockAspect' V='0'/><Cell N='LockDelete' V='0'/><Cell N='LockBegin' V='0'/><Cell N='LockEnd' V='0'/><Cell N='LockRotate' V='0'/><Cell N='LockCrop' V='0'/><Cell N='LockVtxEdit' V='0'/><Cell N='LockTextEdit' V='0'/><Cell N='LockFormat' V='0'/><Cell N='LockGroup' V='0'/><Cell N='LockCalcWH' V='0'/><Cell N='LockSelect' V='0'/><Cell N='LockCustProp' V='0'/><Cell N='LockFromGroupFormat' V='0'/><Cell N='LockThemeColors' V='0'/><Cell N='LockThemeEffects' V='0'/><Cell N='LockThemeConnectors' V='0'/><Cell N='LockThemeFonts' V='0'/><Cell N='LockThemeIndex' V='0'/><Cell N='LockReplace' V='0'/><Cell N='LockVariation' V='0'/><Cell N='NoObjHandles' V='0'/><Cell N='NonPrinting' V='0'/><Cell N='NoCtlHandles' V='0'/><Cell N='NoAlignBox' V='0'/><Cell N='UpdateAlignBox' V='0'/><Cell N='HideText' V='0'/><Cell N='DynFeedback' V='0'/><Cell N='GlueType' V='0'/><Cell N='WalkPreference' V='0'/><Cell N='BegTrigger' V='0' F='No Formula'/><Cell N='EndTrigger' V='0' F='No Formula'/><Cell N='ObjType' V='0'/><Cell N='Comment' V=''/><Cell N='IsDropSource' V='0'/><Cell N='NoLiveDynamics' V='0'/><Cell N='LocalizeMerge' V='0'/><Cell N='NoProofing' V='0'/><Cell N='Calendar' V='0'/><Cell N='LangID' V='en-US'/><Cell N='ShapeKeywords' V=''/><Cell N='DropOnPageScale' V='1'/><Cell N='TheData' V='0' F='No Formula'/><Cell N='TheText' V='0' F='No Formula'/><Cell N='EventDblClick' V='0' F='No Formula'/><Cell N='EventXFMod' V='0' F='No Formula'/><Cell N='EventDrop' V='0' F='No Formula'/><Cell N='EventMultiDrop' V='0' F='No Formula'/><Cell N='HelpTopic' V=''/><Cell N='Copyright' V=''/><Cell N='LayerMember' V=''/><Cell N='XRulerDensity' V='32'/><Cell N='YRulerDensity' V='32'/><Cell N='XRulerOrigin' V='0'/><Cell N='YRulerOrigin' V='0'/><Cell N='XGridDensity' V='8'/><Cell N='YGridDensity' V='8'/><Cell N='XGridSpacing' V='0'/><Cell N='YGridSpacing' V='0'/><Cell N='XGridOrigin' V='0'/><Cell N='YGridOrigin' V='0'/><Cell N='Gamma' V='1'/><Cell N='Contrast' V='0.5'/><Cell N='Brightness' V='0.5'/><Cell N='Sharpen' V='0'/><Cell N='Blur' V='0'/><Cell N='Denoise' V='0'/><Cell N='Transparency' V='0'/><Cell N='SelectMode' V='1'/><Cell N='DisplayMode' V='2'/><Cell N='IsDropTarget' V='0'/><Cell N='IsSnapTarget' V='1'/><Cell N='IsTextEditTarget' V='1'/><Cell N='DontMoveChildren' V='0'/><Cell N='ShapePermeableX' V='0'/><Cell N='ShapePermeableY' V='0'/><Cell N='ShapePermeablePlace' V='0'/><Cell N='Relationships' V='0'/><Cell N='ShapeFixedCode' V='0'/><Cell N='ShapePlowCode' V='0'/><Cell N='ShapeRouteStyle' V='0'/><Cell N='ShapePlaceStyle' V='0'/><Cell N='ConFixedCode' V='0'/><Cell N='ConLineJumpCode' V='0'/><Cell N='ConLineJumpStyle' V='0'/><Cell N='ConLineJumpDirX' V='0'/><Cell N='ConLineJumpDirY' V='0'/><Cell N='ShapePlaceFlip' V='0'/><Cell N='ConLineRouteExt' V='0'/><Cell N='ShapeSplit' V='0'/><Cell N='ShapeSplittable' V='0'/><Cell N='DisplayLevel' V='0'/><Cell N='ResizePage' V='0'/><Cell N='EnableGrid' V='0'/><Cell N='DynamicsOff' V='0'/><Cell N='CtrlAsInput' V='0'/><Cell N='AvoidPageBreaks' V='0'/><Cell N='PlaceStyle' V='0'/><Cell N='RouteStyle' V='0'/><Cell N='PlaceDepth' V='0'/><Cell N='PlowCode' V='0'/><Cell N='LineJumpCode' V='1'/><Cell N='LineJumpStyle' V='0'/><Cell N='PageLineJumpDirX' V='0'/><Cell N='PageLineJumpDirY' V='0'/><Cell N='LineToNodeX' V='0.125'/><Cell N='LineToNodeY' V='0.125'/><Cell N='BlockSizeX' V='0.25'/><Cell N='BlockSizeY' V='0.25'/><Cell N='AvenueSizeX' V='0.375'/><Cell N='AvenueSizeY' V='0.375'/><Cell N='LineToLineX' V='0.125'/><Cell N='LineToLineY' V='0.125'/><Cell N='LineJumpFactorX' V='0.66666666666667'/><Cell N='LineJumpFactorY' V='0.66666666666667'/><Cell N='LineAdjustFrom' V='0'/><Cell N='LineAdjustTo' V='0'/><Cell N='PlaceFlip' V='0'/><Cell N='LineRouteExt' V='0'/><Cell N='PageShapeSplit' V='0'/><Cell N='PageLeftMargin' V='0.25'/><Cell N='PageRightMargin' V='0.25'/><Cell N='PageTopMargin' V='0.25'/><Cell N='PageBottomMargin' V='0.25'/><Cell N='ScaleX' V='1'/><Cell N='ScaleY' V='1'/><Cell N='PagesX' V='1'/><Cell N='PagesY' V='1'/><Cell N='CenterX' V='0'/><Cell N='CenterY' V='0'/><Cell N='OnPage' V='0'/><Cell N='PrintGrid' V='0'/><Cell N='PrintPageOrientation' V='1'/><Cell N='PaperKind' V='1'/><Cell N='PaperSource' V='7'/><Cell N='QuickStyleLineColor' V='100'/><Cell N='QuickStyleFillColor' V='100'/><Cell N='QuickStyleShadowColor' V='100'/><Cell N='QuickStyleFontColor' V='100'/><Cell N='QuickStyleLineMatrix' V='100'/><Cell N='QuickStyleFillMatrix' V='100'/><Cell N='QuickStyleEffectsMatrix' V='100'/><Cell N='QuickStyleFontMatrix' V='100'/><Cell N='QuickStyleType' V='0'/><Cell N='QuickStyleVariation' V='0'/><Cell N='LineGradientDir' V='0'/><Cell N='LineGradientAngle' V='1.5707963267949'/><Cell N='FillGradientDir' V='0'/><Cell N='FillGradientAngle' V='1.5707963267949'/><Cell N='LineGradientEnabled' V='0'/><Cell N='FillGradientEnabled' V='0'/><Cell N='RotateGradientWithShape' V='1'/><Cell N='UseGroupGradient' V='0'/><Cell N='BevelTopType' V='0'/><Cell N='BevelTopWidth' V='0'/><Cell N='BevelTopHeight' V='0'/><Cell N='BevelBottomType' V='0'/><Cell N='BevelBottomWidth' V='0'/><Cell N='BevelBottomHeight' V='0'/><Cell N='BevelDepthColor' V='1'/><Cell N='BevelDepthSize' V='0'/><Cell N='BevelContourColor' V='0'/><Cell N='BevelContourSize' V='0'/><Cell N='BevelMaterialType' V='0'/><Cell N='BevelLightingType' V='0'/><Cell N='BevelLightingAngle' V='0'/><Cell N='RotationXAngle' V='0'/><Cell N='RotationYAngle' V='0'/><Cell N='RotationZAngle' V='0'/><Cell N='RotationType' V='0'/><Cell N='Perspective' V='0'/><Cell N='DistanceFromGround' V='0'/><Cell N='KeepTextFlat' V='0'/><Cell N='ReflectionTrans' V='0'/><Cell N='ReflectionSize' V='0'/><Cell N='ReflectionDist' V='0'/><Cell N='ReflectionBlur' V='0'/><Cell N='GlowColor' V='1'/><Cell N='GlowColorTrans' V='0'/><Cell N='GlowSize' V='0'/><Cell N='SoftEdgesSize' V='0'/><Cell N='SketchSeed' V='0'/><Cell N='SketchEnabled' V='0'/><Cell N='SketchAmount' V='5'/><Cell N='SketchLineWeight' V='0.04166666666666666' U='PT'/><Cell N='SketchLineChange' V='0.14'/><Cell N='SketchFillChange' V='0.1'/><Cell N='ColorSchemeIndex' V='0'/><Cell N='EffectSchemeIndex' V='0'/><Cell N='ConnectorSchemeIndex' V='0'/><Cell N='FontSchemeIndex' V='0'/><Cell N='ThemeIndex' V='0'/><Cell N='VariationColorIndex' V='0'/><Cell N='VariationStyleIndex' V='0'/><Cell N='EmbellishmentIndex' V='0'/><Cell N='ReplaceLockShapeData' V='0'/><Cell N='ReplaceLockText' V='0'/><Cell N='ReplaceLockFormat' V='0'/><Cell N='ReplaceCopyCells' V='0' U='BOOL' F='No Formula'/><Cell N='PageWidth' V='0' F='No Formula'/><Cell N='PageHeight' V='0' F='No Formula'/><Cell N='ShdwOffsetX' V='0' F='No Formula'/><Cell N='ShdwOffsetY' V='0' F='No Formula'/><Cell N='PageScale' V='0' U='IN_F' F='No Formula'/><Cell N='DrawingScale' V='0' U='IN_F' F='No Formula'/><Cell N='DrawingSizeType' V='0' F='No Formula'/><Cell N='DrawingScaleType' V='0' F='No Formula'/><Cell N='InhibitSnap' V='0' F='No Formula'/><Cell N='PageLockReplace' V='0' U='BOOL' F='No Formula'/><Cell N='PageLockDuplicate' V='0' U='BOOL' F='No Formula'/><Cell N='UIVisibility' V='0' F='No Formula'/><Cell N='ShdwType' V='0' F='No Formula'/><Cell N='ShdwObliqueAngle' V='0' F='No Formula'/><Cell N='ShdwScaleFactor' V='0' F='No Formula'/><Cell N='DrawingResizeType' V='0' F='No Formula'/><Section N='Character'><Row IX='0'><Cell N='Font' V='Calibri'/><Cell N='Color' V='0'/><Cell N='Style' V='0'/><Cell N='Case' V='0'/><Cell N='Pos' V='0'/><Cell N='FontScale' V='1'/><Cell N='Size' V='0.1666666666666667'/><Cell N='DblUnderline' V='0'/><Cell N='Overline' V='0'/><Cell N='Strikethru' V='0'/><Cell N='DoubleStrikethrough' V='0'/><Cell N='Letterspace' V='0'/><Cell N='ColorTrans' V='0'/><Cell N='AsianFont' V='0'/><Cell N='ComplexScriptFont' V='0'/><Cell N='ComplexScriptSize' V='-1'/><Cell N='LangID' V='en-US'/></Row></Section><Section N='Paragraph'><Row IX='0'><Cell N='IndFirst' V='0'/><Cell N='IndLeft' V='0'/><Cell N='IndRight' V='0'/><Cell N='SpLine' V='-1.2'/><Cell N='SpBefore' V='0'/><Cell N='SpAfter' V='0'/><Cell N='HorzAlign' V='1'/><Cell N='Bullet' V='0'/><Cell N='BulletStr' V=''/><Cell N='BulletFont' V='0'/><Cell N='BulletFontSize' V='-1'/><Cell N='TextPosAfterBullet' V='0'/><Cell N='Flags' V='0'/></Row></Section><Section N='Tabs'><Row IX='0'/></Section><Section N='LineGradient'><Row IX='0'><Cell N='GradientStopColor' V='1'/><Cell N='GradientStopColorTrans' V='0'/><Cell N='GradientStopPosition' V='0'/></Row></Section><Section N='FillGradient'><Row IX='0'><Cell N='GradientStopColor' V='1'/><Cell N='GradientStopColorTrans' V='0'/><Cell N='GradientStopPosition' V='0'/></Row></Section></StyleSheet><StyleSheet ID='1' NameU='Text Only' IsCustomNameU='1' Name='Text Only' IsCustomName='1' LineStyle='3' FillStyle='3' TextStyle='3'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='Themed' F='Inh'/><Cell N='LineColor' V='Themed' F='Inh'/><Cell N='LinePattern' V='Themed' F='Inh'/><Cell N='Rounding' V='Themed' F='Inh'/><Cell N='EndArrowSize' V='2' F='Inh'/><Cell N='BeginArrow' V='0' F='Inh'/><Cell N='EndArrow' V='0' F='Inh'/><Cell N='LineCap' V='Themed' F='Inh'/><Cell N='BeginArrowSize' V='2' F='Inh'/><Cell N='LineColorTrans' V='Themed' F='Inh'/><Cell N='CompoundType' V='Themed' F='Inh'/><Cell N='FillForegnd' V='Themed' F='Inh'/><Cell N='FillBkgnd' V='Themed' F='Inh'/><Cell N='FillPattern' V='Themed' F='Inh'/><Cell N='ShdwForegnd' V='Themed' F='Inh'/><Cell N='ShdwPattern' V='Themed' F='Inh'/><Cell N='FillForegndTrans' V='Themed' F='Inh'/><Cell N='FillBkgndTrans' V='Themed' F='Inh'/><Cell N='ShdwForegndTrans' V='Themed' F='Inh'/><Cell N='ShapeShdwType' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetX' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetY' V='Themed' F='Inh'/><Cell N='ShapeShdwObliqueAngle' V='Themed' F='Inh'/><Cell N='ShapeShdwScaleFactor' V='Themed' F='Inh'/><Cell N='ShapeShdwBlur' V='Themed' F='Inh'/><Cell N='ShapeShdwShow' V='0' F='Inh'/><Cell N='LeftMargin' V='0'/><Cell N='RightMargin' V='0'/><Cell N='TopMargin' V='0'/><Cell N='BottomMargin' V='0'/><Cell N='VerticalAlign' V='0'/><Cell N='TextBkgnd' V='0'/><Cell N='DefaultTabStop' V='0.5' F='Inh'/><Cell N='TextDirection' V='0' F='Inh'/><Cell N='TextBkgndTrans' V='0' F='Inh'/><Cell N='LineGradientDir' V='Themed' F='Inh'/><Cell N='LineGradientAngle' V='Themed' F='Inh'/><Cell N='FillGradientDir' V='Themed' F='Inh'/><Cell N='FillGradientAngle' V='Themed' F='Inh'/><Cell N='LineGradientEnabled' V='Themed' F='Inh'/><Cell N='FillGradientEnabled' V='Themed' F='Inh'/><Cell N='RotateGradientWithShape' V='Themed' F='Inh'/><Cell N='UseGroupGradient' V='Themed' F='Inh'/><Section N='Paragraph'><Row IX='0'><Cell N='IndFirst' V='0' F='Inh'/><Cell N='IndLeft' V='0' F='Inh'/><Cell N='IndRight' V='0' F='Inh'/><Cell N='SpLine' V='-1.2' F='Inh'/><Cell N='SpBefore' V='0' F='Inh'/><Cell N='SpAfter' V='0' F='Inh'/><Cell N='HorzAlign' V='0'/><Cell N='Bullet' V='0' F='Inh'/><Cell N='BulletStr' V='' F='Inh'/><Cell N='BulletFont' V='0' F='Inh'/><Cell N='BulletFontSize' V='-1' F='Inh'/><Cell N='TextPosAfterBullet' V='0' F='Inh'/><Cell N='Flags' V='0' F='Inh'/></Row></Section></StyleSheet><StyleSheet ID='2' NameU='None' IsCustomNameU='1' Name='None' IsCustomName='1' LineStyle='3' FillStyle='3' TextStyle='3'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='Themed' F='Inh'/><Cell N='LineColor' V='Themed' F='Inh'/><Cell N='LinePattern' V='0'/><Cell N='Rounding' V='Themed' F='Inh'/><Cell N='EndArrowSize' V='2' F='Inh'/><Cell N='BeginArrow' V='0' F='Inh'/><Cell N='EndArrow' V='0' F='Inh'/><Cell N='LineCap' V='Themed' F='Inh'/><Cell N='BeginArrowSize' V='2' F='Inh'/><Cell N='LineColorTrans' V='Themed' F='Inh'/><Cell N='CompoundType' V='Themed' F='Inh'/><Cell N='FillForegnd' V='Themed' F='Inh'/><Cell N='FillBkgnd' V='Themed' F='Inh'/><Cell N='FillPattern' V='0'/><Cell N='ShdwForegnd' V='Themed' F='Inh'/><Cell N='ShdwPattern' V='Themed' F='Inh'/><Cell N='FillForegndTrans' V='Themed' F='Inh'/><Cell N='FillBkgndTrans' V='Themed' F='Inh'/><Cell N='ShdwForegndTrans' V='Themed' F='Inh'/><Cell N='ShapeShdwType' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetX' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetY' V='Themed' F='Inh'/><Cell N='ShapeShdwObliqueAngle' V='Themed' F='Inh'/><Cell N='ShapeShdwScaleFactor' V='Themed' F='Inh'/><Cell N='ShapeShdwBlur' V='Themed' F='Inh'/><Cell N='ShapeShdwShow' V='0' F='Inh'/><Cell N='LineGradientDir' V='Themed' F='Inh'/><Cell N='LineGradientAngle' V='Themed' F='Inh'/><Cell N='FillGradientDir' V='Themed' F='Inh'/><Cell N='FillGradientAngle' V='Themed' F='Inh'/><Cell N='LineGradientEnabled' V='0'/><Cell N='FillGradientEnabled' V='0'/><Cell N='RotateGradientWithShape' V='Themed' F='Inh'/><Cell N='UseGroupGradient' V='Themed' F='Inh'/><Cell N='QuickStyleLineColor' V='100' F='Inh'/><Cell N='QuickStyleFillColor' V='100' F='Inh'/><Cell N='QuickStyleShadowColor' V='100' F='Inh'/><Cell N='QuickStyleFontColor' V='100' F='Inh'/><Cell N='QuickStyleLineMatrix' V='100' F='Inh'/><Cell N='QuickStyleFillMatrix' V='100' F='Inh'/><Cell N='QuickStyleEffectsMatrix' V='0' F='GUARD(0)'/><Cell N='QuickStyleFontMatrix' V='100' F='Inh'/><Cell N='QuickStyleType' V='0' F='Inh'/><Cell N='QuickStyleVariation' V='2'/></StyleSheet><StyleSheet ID='3' NameU='Normal' IsCustomNameU='1' Name='Normal' IsCustomName='1' LineStyle='6' FillStyle='6' TextStyle='6'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LeftMargin' V='0.05555555555555555' U='PT'/><Cell N='RightMargin' V='0.05555555555555555' U='PT'/><Cell N='TopMargin' V='0.05555555555555555' U='PT'/><Cell N='BottomMargin' V='0.05555555555555555' U='PT'/><Cell N='VerticalAlign' V='1' F='Inh'/><Cell N='TextBkgnd' V='0' F='Inh'/><Cell N='DefaultTabStop' V='0.5' F='Inh'/><Cell N='TextDirection' V='0' F='Inh'/><Cell N='TextBkgndTrans' V='0' F='Inh'/></StyleSheet><StyleSheet ID='4' NameU='Guide' IsCustomNameU='1' Name='Guide' IsCustomName='1' LineStyle='3' FillStyle='3' TextStyle='3'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='0' U='PT'/><Cell N='LineColor' V='#7f7f7f'/><Cell N='LinePattern' V='23'/><Cell N='Rounding' V='Themed' F='Inh'/><Cell N='EndArrowSize' V='2' F='Inh'/><Cell N='BeginArrow' V='0' F='Inh'/><Cell N='EndArrow' V='0' F='Inh'/><Cell N='LineCap' V='Themed' F='Inh'/><Cell N='BeginArrowSize' V='2' F='Inh'/><Cell N='LineColorTrans' V='Themed' F='Inh'/><Cell N='CompoundType' V='Themed' F='Inh'/><Cell N='FillForegnd' V='Themed' F='Inh'/><Cell N='FillBkgnd' V='Themed' F='Inh'/><Cell N='FillPattern' V='0'/><Cell N='ShdwForegnd' V='Themed' F='Inh'/><Cell N='ShdwPattern' V='Themed' F='Inh'/><Cell N='FillForegndTrans' V='Themed' F='Inh'/><Cell N='FillBkgndTrans' V='Themed' F='Inh'/><Cell N='ShdwForegndTrans' V='Themed' F='Inh'/><Cell N='ShapeShdwType' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetX' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetY' V='Themed' F='Inh'/><Cell N='ShapeShdwObliqueAngle' V='Themed' F='Inh'/><Cell N='ShapeShdwScaleFactor' V='Themed' F='Inh'/><Cell N='ShapeShdwBlur' V='Themed' F='Inh'/><Cell N='ShapeShdwShow' V='0' F='Inh'/><Cell N='LineGradientDir' V='Themed' F='Inh'/><Cell N='LineGradientAngle' V='Themed' F='Inh'/><Cell N='FillGradientDir' V='Themed' F='Inh'/><Cell N='FillGradientAngle' V='Themed' F='Inh'/><Cell N='LineGradientEnabled' V='0'/><Cell N='FillGradientEnabled' V='0'/><Cell N='RotateGradientWithShape' V='Themed' F='Inh'/><Cell N='UseGroupGradient' V='Themed' F='Inh'/><Cell N='LeftMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='RightMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='TopMargin' V='0'/><Cell N='BottomMargin' V='0'/><Cell N='VerticalAlign' V='2'/><Cell N='TextBkgnd' V='0' F='Inh'/><Cell N='DefaultTabStop' V='0.5' F='Inh'/><Cell N='TextDirection' V='0' F='Inh'/><Cell N='TextBkgndTrans' V='0' F='Inh'/><Cell N='NoObjHandles' V='0' F='Inh'/><Cell N='NonPrinting' V='1'/><Cell N='NoCtlHandles' V='0' F='Inh'/><Cell N='NoAlignBox' V='0' F='Inh'/><Cell N='UpdateAlignBox' V='0' F='Inh'/><Cell N='HideText' V='0' F='Inh'/><Cell N='DynFeedback' V='0' F='Inh'/><Cell N='GlueType' V='0' F='Inh'/><Cell N='WalkPreference' V='0' F='Inh'/><Cell N='BegTrigger' V='0' F='No Formula'/><Cell N='EndTrigger' V='0' F='No Formula'/><Cell N='ObjType' V='0' F='Inh'/><Cell N='Comment' V='' F='Inh'/><Cell N='IsDropSource' V='0' F='Inh'/><Cell N='NoLiveDynamics' V='0' F='Inh'/><Cell N='LocalizeMerge' V='0' F='Inh'/><Cell N='NoProofing' V='0' F='Inh'/><Cell N='Calendar' V='0' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/><Cell N='ShapeKeywords' V='' F='Inh'/><Cell N='DropOnPageScale' V='1' F='Inh'/><Cell N='ShapePermeableX' V='1'/><Cell N='ShapePermeableY' V='1'/><Cell N='ShapePermeablePlace' V='1'/><Cell N='Relationships' V='0' F='Inh'/><Cell N='ShapeFixedCode' V='0' F='Inh'/><Cell N='ShapePlowCode' V='0' F='Inh'/><Cell N='ShapeRouteStyle' V='0' F='Inh'/><Cell N='ShapePlaceStyle' V='0' F='Inh'/><Cell N='ConFixedCode' V='0' F='Inh'/><Cell N='ConLineJumpCode' V='0' F='Inh'/><Cell N='ConLineJumpStyle' V='0' F='Inh'/><Cell N='ConLineJumpDirX' V='0' F='Inh'/><Cell N='ConLineJumpDirY' V='0' F='Inh'/><Cell N='ShapePlaceFlip' V='0' F='Inh'/><Cell N='ConLineRouteExt' V='0' F='Inh'/><Cell N='ShapeSplit' V='0' F='Inh'/><Cell N='ShapeSplittable' V='0' F='Inh'/><Cell N='DisplayLevel' V='0' F='Inh'/><Section N='Character'><Row IX='0'><Cell N='Font' V='Themed' F='Inh'/><Cell N='Color' V='4'/><Cell N='Style' V='Themed' F='Inh'/><Cell N='Case' V='0' F='Inh'/><Cell N='Pos' V='0' F='Inh'/><Cell N='FontScale' V='1' F='Inh'/><Cell N='Size' V='0.125'/><Cell N='DblUnderline' V='0' F='Inh'/><Cell N='Overline' V='0' F='Inh'/><Cell N='Strikethru' V='0' F='Inh'/><Cell N='DoubleStrikethrough' V='0' F='Inh'/><Cell N='Letterspace' V='0' F='Inh'/><Cell N='ColorTrans' V='0' F='Inh'/><Cell N='AsianFont' V='Themed' F='Inh'/><Cell N='ComplexScriptFont' V='Themed' F='Inh'/><Cell N='ComplexScriptSize' V='-1' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/></Row></Section></StyleSheet><StyleSheet ID='6' NameU='Theme' IsCustomNameU='1' Name='Theme' IsCustomName='1' LineStyle='0' FillStyle='0' TextStyle='0'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='Themed' F='THEMEVAL()'/><Cell N='LineColor' V='Themed' F='THEMEVAL()'/><Cell N='LinePattern' V='Themed' F='THEMEVAL()'/><Cell N='Rounding' V='Themed' F='THEMEVAL()'/><Cell N='EndArrowSize' V='2' F='Inh'/><Cell N='BeginArrow' V='0' F='Inh'/><Cell N='EndArrow' V='0' F='Inh'/><Cell N='LineCap' V='Themed' F='THEMEVAL()'/><Cell N='BeginArrowSize' V='2' F='Inh'/><Cell N='LineColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='CompoundType' V='Themed' F='THEMEVAL()'/><Cell N='FillForegnd' V='Themed' F='THEMEVAL()'/><Cell N='FillBkgnd' V='Themed' F='THEMEVAL()'/><Cell N='FillPattern' V='Themed' F='THEMEVAL()'/><Cell N='ShdwForegnd' V='Themed' F='THEMEVAL()'/><Cell N='ShdwPattern' V='Themed' F='THEMEVAL()'/><Cell N='FillForegndTrans' V='Themed' F='THEMEVAL()'/><Cell N='FillBkgndTrans' V='Themed' F='THEMEVAL()'/><Cell N='ShdwForegndTrans' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwType' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwOffsetX' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwOffsetY' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwObliqueAngle' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwScaleFactor' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwBlur' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwShow' V='0' F='Inh'/><Cell N='LineGradientDir' V='Themed' F='THEMEVAL()'/><Cell N='LineGradientAngle' V='Themed' F='THEMEVAL()'/><Cell N='FillGradientDir' V='Themed' F='THEMEVAL()'/><Cell N='FillGradientAngle' V='Themed' F='THEMEVAL()'/><Cell N='LineGradientEnabled' V='Themed' F='THEMEVAL()'/><Cell N='FillGradientEnabled' V='Themed' F='THEMEVAL()'/><Cell N='RotateGradientWithShape' V='Themed' F='THEMEVAL()'/><Cell N='UseGroupGradient' V='Themed' F='THEMEVAL()'/><Cell N='BevelTopType' V='Themed' F='THEMEVAL()'/><Cell N='BevelTopWidth' V='Themed' F='THEMEVAL()'/><Cell N='BevelTopHeight' V='Themed' F='THEMEVAL()'/><Cell N='BevelBottomType' V='0' F='Inh'/><Cell N='BevelBottomWidth' V='0' F='Inh'/><Cell N='BevelBottomHeight' V='0' F='Inh'/><Cell N='BevelDepthColor' V='1' F='Inh'/><Cell N='BevelDepthSize' V='0' F='Inh'/><Cell N='BevelContourColor' V='Themed' F='THEMEVAL()'/><Cell N='BevelContourSize' V='Themed' F='THEMEVAL()'/><Cell N='BevelMaterialType' V='Themed' F='THEMEVAL()'/><Cell N='BevelLightingType' V='Themed' F='THEMEVAL()'/><Cell N='BevelLightingAngle' V='Themed' F='THEMEVAL()'/><Cell N='ReflectionTrans' V='Themed' F='THEMEVAL()'/><Cell N='ReflectionSize' V='Themed' F='THEMEVAL()'/><Cell N='ReflectionDist' V='Themed' F='THEMEVAL()'/><Cell N='ReflectionBlur' V='Themed' F='THEMEVAL()'/><Cell N='GlowColor' V='Themed' F='THEMEVAL()'/><Cell N='GlowColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GlowSize' V='Themed' F='THEMEVAL()'/><Cell N='SoftEdgesSize' V='Themed' F='THEMEVAL()'/><Cell N='SketchSeed' V='0' F='Inh'/><Cell N='SketchEnabled' V='Themed' F='THEMEVAL()'/><Cell N='SketchAmount' V='Themed' F='THEMEVAL()'/><Cell N='SketchLineWeight' V='Themed' F='THEMEVAL()'/><Cell N='SketchLineChange' V='Themed' F='THEMEVAL()'/><Cell N='SketchFillChange' V='Themed' F='THEMEVAL()'/><Cell N='QuickStyleLineColor' V='100'/><Cell N='QuickStyleFillColor' V='100'/><Cell N='QuickStyleShadowColor' V='100'/><Cell N='QuickStyleFontColor' V='100'/><Cell N='QuickStyleLineMatrix' V='100'/><Cell N='QuickStyleFillMatrix' V='100'/><Cell N='QuickStyleEffectsMatrix' V='100'/><Cell N='QuickStyleFontMatrix' V='100'/><Cell N='QuickStyleType' V='0' F='Inh'/><Cell N='QuickStyleVariation' V='0' F='Inh'/><Cell N='ColorSchemeIndex' V='65534'/><Cell N='EffectSchemeIndex' V='65534'/><Cell N='ConnectorSchemeIndex' V='65534'/><Cell N='FontSchemeIndex' V='65534'/><Cell N='ThemeIndex' V='65534'/><Cell N='VariationColorIndex' V='65534'/><Cell N='VariationStyleIndex' V='65534'/><Cell N='EmbellishmentIndex' V='65534'/><Section N='Character'><Row IX='0'><Cell N='Font' V='Themed' F='THEMEVAL()'/><Cell N='Color' V='Themed' F='THEMEVAL()'/><Cell N='Style' V='Themed' F='THEMEVAL()'/><Cell N='Case' V='0' F='Inh'/><Cell N='Pos' V='0' F='Inh'/><Cell N='FontScale' V='1' F='Inh'/><Cell N='Size' V='0.1666666666666667' F='Inh'/><Cell N='DblUnderline' V='0' F='Inh'/><Cell N='Overline' V='0' F='Inh'/><Cell N='Strikethru' V='0' F='Inh'/><Cell N='DoubleStrikethrough' V='0' F='Inh'/><Cell N='Letterspace' V='0' F='Inh'/><Cell N='ColorTrans' V='0' F='Inh'/><Cell N='AsianFont' V='Themed' F='THEMEVAL()'/><Cell N='ComplexScriptFont' V='Themed' F='THEMEVAL()'/><Cell N='ComplexScriptSize' V='-1' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/></Row></Section><Section N='FillGradient'><Row IX='0'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='1'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='2'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='3'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='4'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='5'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='6'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='7'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='8'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='9'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row></Section><Section N='LineGradient'><Row IX='0'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='1'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='2'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='3'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='4'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='5'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='6'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='7'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='8'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='9'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row></Section></StyleSheet><StyleSheet ID='7' NameU='Connector' IsCustomNameU='1' Name='Connector' IsCustomName='1' LineStyle='3' FillStyle='3' TextStyle='3'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LeftMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='RightMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='TopMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='BottomMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='VerticalAlign' V='1' F='Inh'/><Cell N='TextBkgnd' V='#ffffff' F='THEMEGUARD(THEMEVAL(\"BackgroundColor\")+1)'/><Cell N='DefaultTabStop' V='0.5' F='Inh'/><Cell N='TextDirection' V='0' F='Inh'/><Cell N='TextBkgndTrans' V='0' F='Inh'/><Cell N='NoObjHandles' V='0' F='Inh'/><Cell N='NonPrinting' V='0' F='Inh'/><Cell N='NoCtlHandles' V='0' F='Inh'/><Cell N='NoAlignBox' V='0' F='Inh'/><Cell N='UpdateAlignBox' V='0' F='Inh'/><Cell N='HideText' V='0' F='Inh'/><Cell N='DynFeedback' V='0' F='Inh'/><Cell N='GlueType' V='0' F='Inh'/><Cell N='WalkPreference' V='0' F='Inh'/><Cell N='BegTrigger' V='0' F='No Formula'/><Cell N='EndTrigger' V='0' F='No Formula'/><Cell N='ObjType' V='0' F='Inh'/><Cell N='Comment' V='' F='Inh'/><Cell N='IsDropSource' V='0' F='Inh'/><Cell N='NoLiveDynamics' V='0' F='Inh'/><Cell N='LocalizeMerge' V='0' F='Inh'/><Cell N='NoProofing' V='0' F='Inh'/><Cell N='Calendar' V='0' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/><Cell N='ShapeKeywords' V='' F='Inh'/><Cell N='DropOnPageScale' V='1' F='Inh'/><Cell N='QuickStyleLineColor' V='100'/><Cell N='QuickStyleFillColor' V='100'/><Cell N='QuickStyleShadowColor' V='100'/><Cell N='QuickStyleFontColor' V='100'/><Cell N='QuickStyleLineMatrix' V='1'/><Cell N='QuickStyleFillMatrix' V='1'/><Cell N='QuickStyleEffectsMatrix' V='1'/><Cell N='QuickStyleFontMatrix' V='1'/><Cell N='QuickStyleType' V='0'/><Cell N='QuickStyleVariation' V='0'/><Cell N='LineWeight' V='Themed' F='Inh'/><Cell N='LineColor' V='Themed' F='Inh'/><Cell N='LinePattern' V='Themed' F='Inh'/><Cell N='Rounding' V='Themed' F='Inh'/><Cell N='EndArrowSize' V='Themed' F='THEMEVAL()'/><Cell N='BeginArrow' V='Themed' F='THEMEVAL()'/><Cell N='EndArrow' V='Themed' F='THEMEVAL()'/><Cell N='LineCap' V='Themed' F='Inh'/><Cell N='BeginArrowSize' V='Themed' F='THEMEVAL()'/><Cell N='LineColorTrans' V='Themed' F='Inh'/><Cell N='CompoundType' V='Themed' F='Inh'/><Section N='Character'><Row IX='0'><Cell N='Font' V='Themed' F='Inh'/><Cell N='Color' V='Themed' F='Inh'/><Cell N='Style' V='Themed' F='Inh'/><Cell N='Case' V='0' F='Inh'/><Cell N='Pos' V='0' F='Inh'/><Cell N='FontScale' V='1' F='Inh'/><Cell N='Size' V='0.1111111111111111'/><Cell N='DblUnderline' V='0' F='Inh'/><Cell N='Overline' V='0' F='Inh'/><Cell N='Strikethru' V='0' F='Inh'/><Cell N='DoubleStrikethrough' V='0' F='Inh'/><Cell N='Letterspace' V='0' F='Inh'/><Cell N='ColorTrans' V='0' F='Inh'/><Cell N='AsianFont' V='Themed' F='Inh'/><Cell N='ComplexScriptFont' V='Themed' F='Inh'/><Cell N='ComplexScriptSize' V='-1' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/></Row></Section></StyleSheet></StyleSheets><DocumentSheet NameU='TheDoc' IsCustomNameU='1' Name='TheDoc' IsCustomName='1' LineStyle='0' FillStyle='0' TextStyle='0'><Cell N='OutputFormat' V='0'/><Cell N='LockPreview' V='0'/><Cell N='AddMarkup' V='0'/><Cell N='ViewMarkup' V='0'/><Cell N='DocLockReplace' V='0' U='BOOL'/><Cell N='NoCoauth' V='0' U='BOOL'/><Cell N='DocLockDuplicatePage' V='0' U='BOOL'/><Cell N='PreviewQuality' V='0'/><Cell N='PreviewScope' V='0'/><Cell N='DocLangID' V='en-US'/><Section N='User'><Row N='msvNoAutoConnect'><Cell N='Value' V='1'/><Cell N='Prompt' V='' F='No Formula'/></Row></Section></DocumentSheet></VisioDocument>",
"visio/windows.xml":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Windows ClientWidth='0' ClientHeight='0' xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve' />","visio/_rels/document.xml.rels":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Relationships xmlns='http://schemas.openxmlformats.org/package/2006/relationships'><Relationship Id='rId1' Type='http://schemas.microsoft.com/visio/2010/relationships/masters' Target='masters/masters.xml' /><Relationship Id='rId2' Type='http://schemas.microsoft.com/visio/2010/relationships/pages' Target='pages/pages.xml' /><Relationship Id='rId3' Type='http://schemas.microsoft.com/visio/2010/relationships/windows' Target='windows.xml' /></Relationships>",
"visio/masters/_rels/masters.xml.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.microsoft.com/visio/2010/relationships/master" Target="master1.xml"/></Relationships>',"visio/masters/masters.xml":"<?xml version='1.0' encoding='utf-8' ?><Masters xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><Master ID='4' NameU='Dynamic connector' IsCustomNameU='1' Name='Dynamic connector' IsCustomName='1' Prompt='This connector automatically routes between the shapes it connects.' IconSize='1' AlignName='2' MatchByName='1' IconUpdate='0' UniqueID='{002A9108-0000-0000-8E40-00608CF305B2}' BaseID='{F7290A45-E3AD-11D2-AE4F-006008C9F5A9}' PatternFlags='0' Hidden='0' MasterType='0'><PageSheet LineStyle='0' FillStyle='0' TextStyle='0'><Cell N='PageWidth' V='3'/><Cell N='PageHeight' V='3'/><Cell N='ShdwOffsetX' V='0.125'/><Cell N='ShdwOffsetY' V='-0.125'/><Cell N='PageScale' V='1' U='IN_F'/><Cell N='DrawingScale' V='1' U='IN_F'/><Cell N='DrawingSizeType' V='4'/><Cell N='DrawingScaleType' V='0'/><Cell N='InhibitSnap' V='0'/><Cell N='PageLockReplace' V='0' U='BOOL'/><Cell N='PageLockDuplicate' V='0' U='BOOL'/><Cell N='UIVisibility' V='0'/><Cell N='ShdwType' V='0'/><Cell N='ShdwObliqueAngle' V='0'/><Cell N='ShdwScaleFactor' V='1'/><Cell N='DrawingResizeType' V='0'/><Section N='Layer'><Row IX='0'><Cell N='Name' V='Connector'/><Cell N='Color' V='255'/><Cell N='Status' V='0'/><Cell N='Visible' V='1'/><Cell N='Print' V='1'/><Cell N='Active' V='0'/><Cell N='Lock' V='0'/><Cell N='Snap' V='1'/><Cell N='Glue' V='1'/><Cell N='NameUniv' V='Connector'/><Cell N='ColorTrans' V='0'/></Row></Section></PageSheet><Rel r:id='rId1'/></Master></Masters>",
"visio/masters/master1.xml":"<?xml version='1.0' encoding='utf-8' ?><MasterContents xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><Shapes><Shape ID='5' OriginalID='0' Type='Shape' LineStyle='7' FillStyle='7' TextStyle='7'><Cell N='PinX' V='1.5' F='GUARD((BeginX+EndX)/2)'/><Cell N='PinY' V='1.5' F='GUARD((BeginY+EndY)/2)'/><Cell N='Width' V='1' F='GUARD(EndX-BeginX)'/><Cell N='Height' V='-1' F='GUARD(EndY-BeginY)'/><Cell N='LocPinX' V='0.5' F='GUARD(Width*0.5)'/><Cell N='LocPinY' V='-0.5' F='GUARD(Height*0.5)'/><Cell N='Angle' V='0' F='GUARD(0DA)'/><Cell N='FlipX' V='0' F='GUARD(FALSE)'/><Cell N='FlipY' V='0' F='GUARD(FALSE)'/><Cell N='ResizeMode' V='0'/><Cell N='BeginX' V='1'/><Cell N='BeginY' V='2'/><Cell N='EndX' V='2'/><Cell N='EndY' V='1'/><Cell N='TxtPinX' V='0' F='SETATREF(Controls.TextPosition)'/><Cell N='TxtPinY' V='-1' F='SETATREF(Controls.TextPosition.Y)'/><Cell N='TxtWidth' V='0.5555555555555556' F='MAX(TEXTWIDTH(TheText),5*Char.Size)'/><Cell N='TxtHeight' V='0.2444444444444444' F='TEXTHEIGHT(TheText,TxtWidth)'/><Cell N='TxtLocPinX' V='0.2777777777777778' F='TxtWidth*0.5'/><Cell N='TxtLocPinY' V='0.1222222222222222' F='TxtHeight*0.5'/><Cell N='TxtAngle' V='0'/><Cell N='LockHeight' V='1'/><Cell N='LockCalcWH' V='1'/><Cell N='HelpTopic' V='Vis_SE.chm!#20000'/><Cell N='Copyright' V='Copyright 2001 Microsoft Corporation. All rights reserved.'/><Cell N='NoAlignBox' V='1'/><Cell N='DynFeedback' V='2'/><Cell N='GlueType' V='2'/><Cell N='ObjType' V='2'/><Cell N='NoLiveDynamics' V='1'/><Cell N='ShapeSplittable' V='1'/><Cell N='LayerMember' V='0'/><Section N='Control'><Row N='TextPosition'><Cell N='X' V='0'/><Cell N='Y' V='-1'/><Cell N='XDyn' V='0' F='Controls.TextPosition'/><Cell N='YDyn' V='-1' F='Controls.TextPosition.Y'/><Cell N='XCon' V='5' F='IF(OR(STRSAME(SHAPETEXT(TheText),\"\"),HideText),5,0)'/><Cell N='YCon' V='0'/><Cell N='CanGlue' V='0'/><Cell N='Prompt' V='Reposition Text'/></Row></Section><Section N='Geometry' IX='0'><Cell N='NoFill' V='1'/><Cell N='NoLine' V='0'/><Cell N='NoShow' V='0'/><Cell N='NoSnap' V='0'/><Cell N='NoQuickDrag' V='0'/><Row T='MoveTo' IX='1'><Cell N='X' V='0'/><Cell N='Y' V='0'/></Row><Row T='LineTo' IX='2'><Cell N='X' V='0'/><Cell N='Y' V='-1'/></Row></Section></Shape></Shapes></MasterContents>"},
-L;for(L in M)if(1<J&&L==N.CONTENT_TYPES_XML){for(var Q=mxUtils.parseXml(M[L]),ca=Q.documentElement,W=ca.children,R=null,U=0;U<W.length;U++){var ia=W[U];"/visio/pages/page1.xml"==ia.getAttribute(N.PART_NAME)&&(R=ia)}for(U=2;U<=J;U++)W=R.cloneNode(),W.setAttribute(N.PART_NAME,"/visio/pages/page"+U+".xml"),ca.appendChild(W);A(H,L,Q,!0)}else H.file(L,M[L])}function z(H,J,M){return null!=H.createElementNS?H.createElementNS(J,M):H.createElement(M)}function B(H){var J=O[H];null==J&&(J=S++,O[H]=J);return J}
-function m(H){var J={};try{var M=H.getGraphBounds().clone(),L=H.view.scale,Q=H.view.translate,ca=Math.round(M.x/L)-Q.x,W=Math.round(M.y/L)-Q.y,R=H.pageFormat.width,U=H.pageFormat.height;0>ca&&(ca+=Math.ceil((Q.x-M.x/L)/R)*R);0>W&&(W+=Math.ceil((Q.y-M.y/L)/U)*U);var ia=Math.max(1,Math.ceil((M.width/L+ca)/R)),ba=Math.max(1,Math.ceil((M.height/L+W)/U));J.gridEnabled=H.gridEnabled;J.gridSize=H.gridSize;J.guidesEnabled=H.graphHandler.guidesEnabled;J.pageVisible=H.pageVisible;J.pageScale=H.pageScale;J.pageWidth=
-H.pageFormat.width*ia;J.pageHeight=H.pageFormat.height*ba;J.backgroundClr=H.background;J.mathEnabled=H.mathEnabled;J.shadowVisible=H.shadowVisible}catch(qa){}return J}function h(H,J,M,L){return c(H,J/N.CONVERSION_FACTOR,M,L)}function c(H,J,M,L){M=z(M,N.XMLNS,"Cell");M.setAttribute("N",H);M.setAttribute("V",J);L&&M.setAttribute("F",L);return M}function a(H,J,M,L,Q){var ca=z(Q,N.XMLNS,"Row");ca.setAttribute("T",H);ca.setAttribute("IX",J);ca.appendChild(h("X",M,Q));ca.appendChild(h("Y",L,Q));return ca}
-function b(H,J,M){var L=mxUtils.rgba2hex(H.style[mxConstants.STYLE_FILLCOLOR]);if(L&&"none"!=L){if(J.appendChild(c("FillForegnd",L,M)),(L=mxUtils.rgba2hex(H.style[mxConstants.STYLE_GRADIENTCOLOR]))&&"none"!=L){J.appendChild(c("FillBkgnd",L,M));L=H.style[mxConstants.STYLE_GRADIENT_DIRECTION];var Q=28;if(L)switch(L){case mxConstants.DIRECTION_EAST:Q=25;break;case mxConstants.DIRECTION_WEST:Q=27;break;case mxConstants.DIRECTION_NORTH:Q=30}J.appendChild(c("FillPattern",Q,M))}}else J.appendChild(c("FillPattern",
-0,M));(L=mxUtils.rgba2hex(H.style[mxConstants.STYLE_STROKECOLOR]))&&"none"!=L?J.appendChild(c("LineColor",L,M)):J.appendChild(c("LinePattern",0,M));(L=H.style[mxConstants.STYLE_STROKEWIDTH])&&J.appendChild(h("LineWeight",L,M));(Q=H.style[mxConstants.STYLE_OPACITY])?L=Q:(L=H.style[mxConstants.STYLE_FILL_OPACITY],Q=H.style[mxConstants.STYLE_STROKE_OPACITY]);L&&J.appendChild(c("FillForegndTrans",1-parseInt(L)/100,M));Q&&J.appendChild(c("LineColorTrans",1-parseInt(Q)/100,M));if(1==H.style[mxConstants.STYLE_DASHED]){L=
-H.style[mxConstants.STYLE_DASH_PATTERN];Q=9;if(L)switch(L){case "1 1":Q=10;break;case "1 2":Q=3;break;case "1 4":Q=17}J.appendChild(c("LinePattern",Q,M))}1==H.style[mxConstants.STYLE_SHADOW]&&(J.appendChild(c("ShdwPattern",1,M)),J.appendChild(c("ShdwForegnd","#000000",M)),J.appendChild(c("ShdwForegndTrans",.6,M)),J.appendChild(c("ShapeShdwType",1,M)),J.appendChild(c("ShapeShdwOffsetX","0.02946278254943948",M)),J.appendChild(c("ShapeShdwOffsetY","-0.02946278254943948",M)),J.appendChild(c("ShapeShdwScaleFactor",
-"1",M)),J.appendChild(c("ShapeShdwBlur","0.05555555555555555",M)),J.appendChild(c("ShapeShdwShow",2,M)));1==H.style[mxConstants.STYLE_FLIPH]&&J.appendChild(c("FlipX",1,M));1==H.style[mxConstants.STYLE_FLIPV]&&J.appendChild(c("FlipY",1,M));1==H.style[mxConstants.STYLE_ROUNDED]&&J.appendChild(h("Rounding",.1*H.cell.geometry.width,M));(H=mxUtils.rgba2hex(H.style[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR]))&&J.appendChild(c("TextBkgnd",H,M))}function d(H,J,M,L,Q,ca){var W=z(L,N.XMLNS,"Shape");W.setAttribute("ID",
-H);W.setAttribute("NameU","Shape"+H);W.setAttribute("LineStyle","0");W.setAttribute("FillStyle","0");W.setAttribute("TextStyle","0");H=J.width/2;var R=J.height/2;W.appendChild(h("PinX",J.x+H+(ca?0:K.shiftX),L));W.appendChild(h("PinY",Q-J.y-R-(ca?0:K.shiftY),L));W.appendChild(h("Width",J.width,L));W.appendChild(h("Height",J.height,L));W.appendChild(h("LocPinX",H,L));W.appendChild(h("LocPinY",R,L));W.appendChild(c("LayerMember",M+"",L));return W}function f(H,J){H=N.ARROWS_MAP[(null==H?"none":H)+"|"+
-(null==J?"1":J)];return null!=H?H:1}function k(H){return null==H?2:2>=H?0:3>=H?1:5>=H?2:7>=H?3:9>=H?4:22>=H?5:6}function n(H,J,M,L,Q,ca){var W=M.view.getState(H,!0);if(null==W||null==W.absolutePoints||null==W.cellBounds)return null;M=z(L,N.XMLNS,"Shape");var R=B(H.id);M.setAttribute("ID",R);M.setAttribute("NameU","Dynamic connector."+R);M.setAttribute("Name","Dynamic connector."+R);M.setAttribute("Type","Shape");M.setAttribute("Master","4");var U=K.state;R=W.absolutePoints;var ia=W.cellBounds,ba=
-ia.width/2,qa=ia.height/2;M.appendChild(h("PinX",ia.x+ba+(ca?0:K.shiftX),L));M.appendChild(h("PinY",Q-ia.y-qa-(ca?0:K.shiftY),L));M.appendChild(h("Width",ia.width,L));M.appendChild(h("Height",ia.height,L));M.appendChild(h("LocPinX",ba,L));M.appendChild(h("LocPinY",qa,L));K.newEdge(M,W,L);ba=function(sa,Fa,pa){var Za=sa.x;sa=sa.y;Za=Za*U.scale-ia.x+U.dx+(pa||ca?0:K.shiftX);sa=(Fa?0:ia.height)-sa*U.scale+ia.y-U.dy-(pa||ca?0:K.shiftY);return{x:Za,y:sa}};qa=ba(R[0],!0);M.appendChild(h("BeginX",ia.x+qa.x,
-L,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));M.appendChild(h("BeginY",Q-ia.y+qa.y,L,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));qa=ba(R[R.length-1],!0);M.appendChild(h("EndX",ia.x+qa.x,L,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));M.appendChild(h("EndY",Q-ia.y+qa.y,L,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));M.appendChild(c("BegTrigger","2",L,H.source?"_XFTRIGGER(Sheet."+B(H.source.id)+"!EventXFMod)":null));M.appendChild(c("EndTrigger","2",L,H.target?"_XFTRIGGER(Sheet."+
-B(H.target.id)+"!EventXFMod)":null));M.appendChild(c("ConFixedCode","6",L));M.appendChild(c("LayerMember",J+"",L));b(W,M,L);J=W.style[mxConstants.STYLE_STARTSIZE];H=f(W.style[mxConstants.STYLE_STARTARROW],W.style[mxConstants.STYLE_STARTFILL]);M.appendChild(c("BeginArrow",H,L));M.appendChild(c("BeginArrowSize",k(J),L));J=W.style[mxConstants.STYLE_ENDSIZE];H=f(W.style[mxConstants.STYLE_ENDARROW],W.style[mxConstants.STYLE_ENDFILL]);M.appendChild(c("EndArrow",H,L));M.appendChild(c("EndArrowSize",k(J),
-L));null!=W.text&&W.text.checkBounds()&&(K.save(),W.text.paint(K),K.restore());W=z(L,N.XMLNS,"Section");W.setAttribute("N","Geometry");W.setAttribute("IX","0");for(H=0;H<R.length;H++)J=ba(R[H],!1,!0),W.appendChild(a(0==H?"MoveTo":"LineTo",H+1,J.x,J.y,L));W.appendChild(c("NoFill","1",L));W.appendChild(c("NoLine","0",L));M.appendChild(W);return M}function q(H,J,M,L,Q,ca,W){var R=H.geometry,U=R;if(null!=R)try{R.relative&&ca&&(U=R.clone(),R.x*=ca.width,R.y*=ca.height,H.vertex&&null!=R.offset&&(R.x+=R.offset.x,
-R.y+=R.offset.y),R.relative=0);var ia=B(H.id);if(!H.treatAsSingle&&0<H.getChildCount()){var ba=d(ia+"10000",R,J,L,Q,W);ba.setAttribute("Type","Group");var qa=z(L,N.XMLNS,"Shapes");K.save();K.translate(-R.x,-R.y);var sa=R.clone();sa.x=0;sa.y=0;H.setGeometry(sa);H.treatAsSingle=!0;var Fa=q(H,J,M,L,R.height,R,!0);delete H.treatAsSingle;H.setGeometry(R);null!=Fa&&qa.appendChild(Fa);for(Q=0;Q<H.getChildCount();Q++)Fa=q(H.children[Q],J,M,L,R.height,R,!0),null!=Fa&&qa.appendChild(Fa);ba.appendChild(qa);
-K.restore();return ba}if(H.vertex){ba=d(ia,R,J,L,Q,W);var pa=M.view.getState(H,!0);null!=pa&&(b(pa,ba,L),K.newShape(ba,pa,L),null!=pa.text&&pa.text.checkBounds()&&(K.save(),pa.text.paint(K),K.restore()),null!=pa.shape&&pa.shape.checkBounds()&&(K.save(),pa.shape.paint(K),K.restore()),ba.appendChild(K.getShapeGeo()),K.endShape(),ba.setAttribute("Type",K.getShapeType()));return ba}return n(H,J,M,L,Q,W)}finally{H.geometry=U}else return null}function t(H,J){var M=mxUtils.createXmlDocument(),L=z(M,N.XMLNS,
-"PageContents");L.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",N.XMLNS);L.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:r",N.XMLNS_R);var Q=z(M,N.XMLNS,"Shapes");L.appendChild(Q);var ca=H.model,W=H.view.translate,R=H.view.scale,U=H.getGraphBounds();K.shiftX=0;K.shiftY=0;if(U.x/R<W.x||U.y/R<W.y)K.shiftX=Math.ceil((W.x-U.x/R)/H.pageFormat.width)*H.pageFormat.width,K.shiftY=Math.ceil((W.y-U.y/R)/H.pageFormat.height)*H.pageFormat.height;K.save();K.translate(-W.x,-W.y);K.scale(1/R);K.newPage();
-R=H.model.getChildCells(H.model.root);W={};for(U=0;U<R.length;U++)W[R[U].id]=U;for(var ia in ca.cells)R=ca.cells[ia],U=null!=R.parent?W[R.parent.id]:null,null!=U&&(R=q(R,U,H,M,J.pageHeight),null!=R&&Q.appendChild(R));H=z(M,N.XMLNS,"Connects");L.appendChild(H);for(ia in ca.cells)R=ca.cells[ia],R.edge&&(R.source&&(J=z(M,N.XMLNS,"Connect"),J.setAttribute("FromSheet",B(R.id)),J.setAttribute("FromCell","BeginX"),J.setAttribute("ToSheet",B(R.source.id)),H.appendChild(J)),R.target&&(J=z(M,N.XMLNS,"Connect"),
-J.setAttribute("FromSheet",B(R.id)),J.setAttribute("FromCell","EndX"),J.setAttribute("ToSheet",B(R.target.id)),H.appendChild(J)));M.appendChild(L);K.restore();return M}function A(H,J,M,L){H.file(J,(L?"":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>')+mxUtils.getXml(M,"\n"))}function C(H,J,M,L){var Q=mxUtils.createXmlDocument(),ca=mxUtils.createXmlDocument(),W=z(Q,N.XMLNS,"Pages");W.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",N.XMLNS);W.setAttributeNS("http://www.w3.org/2000/xmlns/",
-"xmlns:r",N.XMLNS_R);var R=z(ca,N.RELS_XMLNS,"Relationships"),U=1,ia;for(ia in J){var ba="page"+U+".xml",qa=z(Q,N.XMLNS,"Page");qa.setAttribute("ID",U-1);qa.setAttribute("NameU",ia);qa.setAttribute("Name",ia);var sa=z(Q,N.XMLNS,"PageSheet"),Fa=L[ia];sa.appendChild(h("PageWidth",Fa.pageWidth,Q));sa.appendChild(h("PageHeight",Fa.pageHeight,Q));sa.appendChild(c("PageScale",Fa.pageScale,Q));sa.appendChild(c("DrawingScale",1,Q));Fa=z(Q,N.XMLNS,"Rel");Fa.setAttributeNS(N.XMLNS_R,"r:id","rId"+U);var pa=
-z(Q,N.XMLNS,"Section");pa.setAttribute("N","Layer");for(var Za=M[ia],Qb=0;Qb<Za.length;Qb++){var vb=z(Q,N.XMLNS,"Row");vb.setAttribute("IX",Qb+"");pa.appendChild(vb);vb.appendChild(c("Name",Za[Qb].name,Q));vb.appendChild(c("Color","255",Q));vb.appendChild(c("Status","0",Q));vb.appendChild(c("Visible",Za[Qb].visible?"1":"0",Q));vb.appendChild(c("Print","1",Q));vb.appendChild(c("Active","0",Q));vb.appendChild(c("Lock",Za[Qb].locked?"1":"0",Q));vb.appendChild(c("Snap","1",Q));vb.appendChild(c("Glue",
-"1",Q));vb.appendChild(c("NameUniv",Za[Qb].name,Q));vb.appendChild(c("ColorTrans","0",Q))}sa.appendChild(pa);qa.appendChild(sa);qa.appendChild(Fa);W.appendChild(qa);qa=z(ca,N.RELS_XMLNS,"Relationship");qa.setAttribute("Id","rId"+U);qa.setAttribute("Type",N.PAGES_TYPE);qa.setAttribute("Target",ba);R.appendChild(qa);A(H,N.VISIO_PAGES+ba,J[ia]);U++}Q.appendChild(W);ca.appendChild(R);A(H,N.VISIO_PAGES+"pages.xml",Q);A(H,N.VISIO_PAGES+"_rels/pages.xml.rels",ca)}function I(H,J){J=N.VISIO_PAGES_RELS+"page"+
-J+".xml.rels";var M=mxUtils.createXmlDocument(),L=z(M,N.RELS_XMLNS,"Relationships"),Q=z(M,N.RELS_XMLNS,"Relationship");Q.setAttribute("Type","http://schemas.microsoft.com/visio/2010/relationships/master");Q.setAttribute("Id","rId1");Q.setAttribute("Target","../masters/master1.xml");L.appendChild(Q);var ca=K.images;if(0<ca.length)for(var W=0;W<ca.length;W++)Q=z(M,N.RELS_XMLNS,"Relationship"),Q.setAttribute("Type",N.XMLNS_R+"/image"),Q.setAttribute("Id","rId"+(W+2)),Q.setAttribute("Target","../media/"+
-ca[W]),L.appendChild(Q);M.appendChild(L);A(H,J,M)}var N=this,K=new mxVsdxCanvas2D,O={},S=1;this.exportCurrentDiagrams=function(H){try{if(g.spinner.spin(document.body,mxResources.get("exporting"))){var J=function(Fa,pa){Fa=Fa.model.getChildCells(Fa.model.root);Q[pa]=[];for(var Za=0;Za<Fa.length;Za++)Fa[Za].visible&&Q[pa].push({name:Fa[Za].value||"Background",visible:Fa[Za].visible,locked:Fa[Za].style&&0<=Fa[Za].style.indexOf("locked=1")})},M=new JSZip;K.init(M);O={};S=1;var L={},Q={},ca={},W=null!=
-g.pages?g.pages.length:1;if(null!=g.pages){var R=function(Fa){Fa=Fa.getName();var pa=g.editor.graph,Za=m(pa);L[Fa]=t(pa,Za);J(pa,Fa);I(M,ba+1);ca[Fa]=Za},U=g.editor.graph.getSelectionCells(),ia=g.currentPage;if(H)R(ia);else{for(var ba=0;ba<g.pages.length;ba++){var qa=g.pages[ba];g.currentPage!=qa&&g.selectPage(qa,!0);R(qa)}ia!=g.currentPage&&g.selectPage(ia,!0);g.editor.graph.setSelectionCells(U)}}else{R=g.editor.graph;var sa=m(R);L.Page1=t(R,sa);J(R,"Page1");I(M,1);ca.Page1=sa}y(M,W);C(M,L,Q,ca);
-H=function(){M.generateAsync({type:"base64"}).then(function(Fa){g.spinner.stop();var pa=g.getBaseFilename();g.saveData(pa+".vsdx","vsdx",Fa,"application/vnd.visio2013",!0)})};0<K.filesLoading?K.onFilesLoaded=H:H()}return!0}catch(Fa){return console.log(Fa),g.spinner.stop(),!1}}}VsdxExport.prototype.CONVERSION_FACTOR=101.6;VsdxExport.prototype.PAGES_TYPE="http://schemas.microsoft.com/visio/2010/relationships/page";VsdxExport.prototype.RELS_XMLNS="http://schemas.openxmlformats.org/package/2006/relationships";
+M;for(M in J)if(1<N&&M==K.CONTENT_TYPES_XML){for(var T=mxUtils.parseXml(J[M]),ca=T.documentElement,V=ca.children,P=null,ea=0;ea<V.length;ea++){var Y=V[ea];"/visio/pages/page1.xml"==Y.getAttribute(K.PART_NAME)&&(P=Y)}for(ea=2;ea<=N;ea++)V=P.cloneNode(),V.setAttribute(K.PART_NAME,"/visio/pages/page"+ea+".xml"),ca.appendChild(V);C(H,M,T,!0)}else H.file(M,J[M])}function z(H,N,J){return null!=H.createElementNS?H.createElementNS(N,J):H.createElement(J)}function B(H){var N=S[H];null==N&&(N=R++,S[H]=N);return N}
+function m(H){var N={};try{var J=H.getGraphBounds().clone(),M=H.view.scale,T=H.view.translate,ca=Math.round(J.x/M)-T.x,V=Math.round(J.y/M)-T.y,P=H.pageFormat.width,ea=H.pageFormat.height;0>ca&&(ca+=Math.ceil((T.x-J.x/M)/P)*P);0>V&&(V+=Math.ceil((T.y-J.y/M)/ea)*ea);var Y=Math.max(1,Math.ceil((J.width/M+ca)/P)),sa=Math.max(1,Math.ceil((J.height/M+V)/ea));N.gridEnabled=H.gridEnabled;N.gridSize=H.gridSize;N.guidesEnabled=H.graphHandler.guidesEnabled;N.pageVisible=H.pageVisible;N.pageScale=H.pageScale;
+N.pageWidth=H.pageFormat.width*Y;N.pageHeight=H.pageFormat.height*sa;N.backgroundClr=H.background;N.mathEnabled=H.mathEnabled;N.shadowVisible=H.shadowVisible}catch(oa){}return N}function h(H,N,J,M){return c(H,N/K.CONVERSION_FACTOR,J,M)}function c(H,N,J,M){J=z(J,K.XMLNS,"Cell");J.setAttribute("N",H);J.setAttribute("V",N);M&&J.setAttribute("F",M);return J}function a(H,N,J,M,T){var ca=z(T,K.XMLNS,"Row");ca.setAttribute("T",H);ca.setAttribute("IX",N);ca.appendChild(h("X",J,T));ca.appendChild(h("Y",M,
+T));return ca}function b(H){mxUtils.isLightDarkColor(H)&&(H=mxUtils.parseLightDarkColor(H).light);return mxUtils.rgba2hex(H)}function d(H,N,J){var M=b(H.style[mxConstants.STYLE_FILLCOLOR]);if(M&&"none"!=M){if(N.appendChild(c("FillForegnd",M,J)),(M=b(H.style[mxConstants.STYLE_GRADIENTCOLOR]))&&"none"!=M){N.appendChild(c("FillBkgnd",M,J));M=H.style[mxConstants.STYLE_GRADIENT_DIRECTION];var T=28;if(M)switch(M){case mxConstants.DIRECTION_EAST:T=25;break;case mxConstants.DIRECTION_WEST:T=27;break;case mxConstants.DIRECTION_NORTH:T=
+30}N.appendChild(c("FillPattern",T,J))}}else N.appendChild(c("FillPattern",0,J));(M=b(H.style[mxConstants.STYLE_STROKECOLOR]))&&"none"!=M?N.appendChild(c("LineColor",M,J)):N.appendChild(c("LinePattern",0,J));(M=H.style[mxConstants.STYLE_STROKEWIDTH])&&N.appendChild(h("LineWeight",M,J));(T=H.style[mxConstants.STYLE_OPACITY])?M=T:(M=H.style[mxConstants.STYLE_FILL_OPACITY],T=H.style[mxConstants.STYLE_STROKE_OPACITY]);M&&N.appendChild(c("FillForegndTrans",1-parseInt(M)/100,J));T&&N.appendChild(c("LineColorTrans",
+1-parseInt(T)/100,J));if(1==H.style[mxConstants.STYLE_DASHED]){M=H.style[mxConstants.STYLE_DASH_PATTERN];T=9;if(M)switch(M){case "1 1":T=10;break;case "1 2":T=3;break;case "1 4":T=17}N.appendChild(c("LinePattern",T,J))}1==H.style[mxConstants.STYLE_SHADOW]&&(N.appendChild(c("ShdwPattern",1,J)),N.appendChild(c("ShdwForegnd","#000000",J)),N.appendChild(c("ShdwForegndTrans",.6,J)),N.appendChild(c("ShapeShdwType",1,J)),N.appendChild(c("ShapeShdwOffsetX","0.02946278254943948",J)),N.appendChild(c("ShapeShdwOffsetY",
+"-0.02946278254943948",J)),N.appendChild(c("ShapeShdwScaleFactor","1",J)),N.appendChild(c("ShapeShdwBlur","0.05555555555555555",J)),N.appendChild(c("ShapeShdwShow",2,J)));1==H.style[mxConstants.STYLE_FLIPH]&&N.appendChild(c("FlipX",1,J));1==H.style[mxConstants.STYLE_FLIPV]&&N.appendChild(c("FlipY",1,J));1==H.style[mxConstants.STYLE_ROUNDED]&&N.appendChild(h("Rounding",.1*H.cell.geometry.width,J));(H=b(H.style[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR]))&&N.appendChild(c("TextBkgnd",H,J))}function f(H,
+N,J,M,T,ca){var V=z(M,K.XMLNS,"Shape");V.setAttribute("ID",H);V.setAttribute("NameU","Shape"+H);V.setAttribute("LineStyle","0");V.setAttribute("FillStyle","0");V.setAttribute("TextStyle","0");H=N.width/2;var P=N.height/2;V.appendChild(h("PinX",N.x+H+(ca?0:L.shiftX),M));V.appendChild(h("PinY",T-N.y-P-(ca?0:L.shiftY),M));V.appendChild(h("Width",N.width,M));V.appendChild(h("Height",N.height,M));V.appendChild(h("LocPinX",H,M));V.appendChild(h("LocPinY",P,M));V.appendChild(c("LayerMember",J+"",M));return V}
+function k(H,N){H=K.ARROWS_MAP[(null==H?"none":H)+"|"+(null==N?"1":N)];return null!=H?H:1}function n(H){return null==H?2:2>=H?0:3>=H?1:5>=H?2:7>=H?3:9>=H?4:22>=H?5:6}function q(H,N,J,M,T,ca){var V=J.view.getState(H,!0);if(null==V||null==V.absolutePoints||null==V.cellBounds)return null;J=z(M,K.XMLNS,"Shape");var P=B(H.id);J.setAttribute("ID",P);J.setAttribute("NameU","Dynamic connector."+P);J.setAttribute("Name","Dynamic connector."+P);J.setAttribute("Type","Shape");J.setAttribute("Master","4");var ea=
+L.state;P=V.absolutePoints;var Y=V.cellBounds,sa=Y.width/2,oa=Y.height/2;J.appendChild(h("PinX",Y.x+sa+(ca?0:L.shiftX),M));J.appendChild(h("PinY",T-Y.y-oa-(ca?0:L.shiftY),M));J.appendChild(h("Width",Y.width,M));J.appendChild(h("Height",Y.height,M));J.appendChild(h("LocPinX",sa,M));J.appendChild(h("LocPinY",oa,M));L.newEdge(J,V,M);sa=function(Ra,la,Sa){var Xa=Ra.x;Ra=Ra.y;Xa=Xa*ea.scale-Y.x+ea.dx+(Sa||ca?0:L.shiftX);Ra=(la?0:Y.height)-Ra*ea.scale+Y.y-ea.dy-(Sa||ca?0:L.shiftY);return{x:Xa,y:Ra}};oa=
+sa(P[0],!0);J.appendChild(h("BeginX",Y.x+oa.x,M,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));J.appendChild(h("BeginY",T-Y.y+oa.y,M,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));oa=sa(P[P.length-1],!0);J.appendChild(h("EndX",Y.x+oa.x,M,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));J.appendChild(h("EndY",T-Y.y+oa.y,M,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));J.appendChild(c("BegTrigger","2",M,H.source?"_XFTRIGGER(Sheet."+B(H.source.id)+"!EventXFMod)":null));J.appendChild(c("EndTrigger",
+"2",M,H.target?"_XFTRIGGER(Sheet."+B(H.target.id)+"!EventXFMod)":null));J.appendChild(c("ConFixedCode","6",M));J.appendChild(c("LayerMember",N+"",M));d(V,J,M);N=V.style[mxConstants.STYLE_STARTSIZE];H=k(V.style[mxConstants.STYLE_STARTARROW],V.style[mxConstants.STYLE_STARTFILL]);J.appendChild(c("BeginArrow",H,M));J.appendChild(c("BeginArrowSize",n(N),M));N=V.style[mxConstants.STYLE_ENDSIZE];H=k(V.style[mxConstants.STYLE_ENDARROW],V.style[mxConstants.STYLE_ENDFILL]);J.appendChild(c("EndArrow",H,M));
+J.appendChild(c("EndArrowSize",n(N),M));null!=V.text&&V.text.checkBounds()&&(L.save(),V.text.paint(L),L.restore());V=z(M,K.XMLNS,"Section");V.setAttribute("N","Geometry");V.setAttribute("IX","0");for(H=0;H<P.length;H++)N=sa(P[H],!1,!0),V.appendChild(a(0==H?"MoveTo":"LineTo",H+1,N.x,N.y,M));V.appendChild(c("NoFill","1",M));V.appendChild(c("NoLine","0",M));J.appendChild(V);return J}function t(H,N,J,M,T,ca,V){var P=H.geometry,ea=P;if(null!=P)try{P.relative&&ca&&(ea=P.clone(),P.x*=ca.width,P.y*=ca.height,
+H.vertex&&null!=P.offset&&(P.x+=P.offset.x,P.y+=P.offset.y),P.relative=0);var Y=B(H.id);if(!H.treatAsSingle&&0<H.getChildCount()){var sa=f(Y+"10000",P,N,M,T,V);sa.setAttribute("Type","Group");var oa=z(M,K.XMLNS,"Shapes");L.save();L.translate(-P.x,-P.y);var Ra=P.clone();Ra.x=0;Ra.y=0;H.setGeometry(Ra);H.treatAsSingle=!0;var la=t(H,N,J,M,P.height,P,!0);delete H.treatAsSingle;H.setGeometry(P);null!=la&&oa.appendChild(la);for(T=0;T<H.getChildCount();T++)la=t(H.children[T],N,J,M,P.height,P,!0),null!=la&&
+oa.appendChild(la);sa.appendChild(oa);L.restore();return sa}if(H.vertex){sa=f(Y,P,N,M,T,V);var Sa=J.view.getState(H,!0);null!=Sa&&(d(Sa,sa,M),L.newShape(sa,Sa,M),null!=Sa.text&&Sa.text.checkBounds()&&(L.save(),Sa.text.paint(L),L.restore()),null!=Sa.shape&&Sa.shape.checkBounds()&&(L.save(),Sa.shape.paint(L),L.restore()),sa.appendChild(L.getShapeGeo()),L.endShape(),sa.setAttribute("Type",L.getShapeType()));return sa}return q(H,N,J,M,T,V)}finally{H.geometry=ea}else return null}function A(H,N){var J=
+mxUtils.createXmlDocument(),M=z(J,K.XMLNS,"PageContents");M.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",K.XMLNS);M.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:r",K.XMLNS_R);var T=z(J,K.XMLNS,"Shapes");M.appendChild(T);var ca=H.model,V=H.view.translate,P=H.view.scale,ea=H.getGraphBounds();L.shiftX=0;L.shiftY=0;if(ea.x/P<V.x||ea.y/P<V.y)L.shiftX=Math.ceil((V.x-ea.x/P)/H.pageFormat.width)*H.pageFormat.width,L.shiftY=Math.ceil((V.y-ea.y/P)/H.pageFormat.height)*H.pageFormat.height;
+L.save();L.translate(-V.x,-V.y);L.scale(1/P);L.newPage();P=H.model.getChildCells(H.model.root);V={};for(ea=0;ea<P.length;ea++)V[P[ea].id]=ea;for(var Y in ca.cells)P=ca.cells[Y],ea=null!=P.parent?V[P.parent.id]:null,null!=ea&&(P=t(P,ea,H,J,N.pageHeight),null!=P&&T.appendChild(P));H=z(J,K.XMLNS,"Connects");M.appendChild(H);for(Y in ca.cells)P=ca.cells[Y],P.edge&&(P.source&&(N=z(J,K.XMLNS,"Connect"),N.setAttribute("FromSheet",B(P.id)),N.setAttribute("FromCell","BeginX"),N.setAttribute("ToSheet",B(P.source.id)),
+H.appendChild(N)),P.target&&(N=z(J,K.XMLNS,"Connect"),N.setAttribute("FromSheet",B(P.id)),N.setAttribute("FromCell","EndX"),N.setAttribute("ToSheet",B(P.target.id)),H.appendChild(N)));J.appendChild(M);L.restore();return J}function C(H,N,J,M){H.file(N,(M?"":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>')+mxUtils.getXml(J,"\n"))}function I(H,N,J,M){var T=mxUtils.createXmlDocument(),ca=mxUtils.createXmlDocument(),V=z(T,K.XMLNS,"Pages");V.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",
+K.XMLNS);V.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:r",K.XMLNS_R);var P=z(ca,K.RELS_XMLNS,"Relationships"),ea=1,Y;for(Y in N){var sa="page"+ea+".xml",oa=z(T,K.XMLNS,"Page");oa.setAttribute("ID",ea-1);oa.setAttribute("NameU",Y);oa.setAttribute("Name",Y);var Ra=z(T,K.XMLNS,"PageSheet"),la=M[Y];Ra.appendChild(h("PageWidth",la.pageWidth,T));Ra.appendChild(h("PageHeight",la.pageHeight,T));Ra.appendChild(c("PageScale",la.pageScale,T));Ra.appendChild(c("DrawingScale",1,T));la=z(T,K.XMLNS,"Rel");
+la.setAttributeNS(K.XMLNS_R,"r:id","rId"+ea);var Sa=z(T,K.XMLNS,"Section");Sa.setAttribute("N","Layer");for(var Xa=J[Y],sc=0;sc<Xa.length;sc++){var yb=z(T,K.XMLNS,"Row");yb.setAttribute("IX",sc+"");Sa.appendChild(yb);yb.appendChild(c("Name",Xa[sc].name,T));yb.appendChild(c("Color","255",T));yb.appendChild(c("Status","0",T));yb.appendChild(c("Visible",Xa[sc].visible?"1":"0",T));yb.appendChild(c("Print","1",T));yb.appendChild(c("Active","0",T));yb.appendChild(c("Lock",Xa[sc].locked?"1":"0",T));yb.appendChild(c("Snap",
+"1",T));yb.appendChild(c("Glue","1",T));yb.appendChild(c("NameUniv",Xa[sc].name,T));yb.appendChild(c("ColorTrans","0",T))}Ra.appendChild(Sa);oa.appendChild(Ra);oa.appendChild(la);V.appendChild(oa);oa=z(ca,K.RELS_XMLNS,"Relationship");oa.setAttribute("Id","rId"+ea);oa.setAttribute("Type",K.PAGES_TYPE);oa.setAttribute("Target",sa);P.appendChild(oa);C(H,K.VISIO_PAGES+sa,N[Y]);ea++}T.appendChild(V);ca.appendChild(P);C(H,K.VISIO_PAGES+"pages.xml",T);C(H,K.VISIO_PAGES+"_rels/pages.xml.rels",ca)}function Q(H,
+N){N=K.VISIO_PAGES_RELS+"page"+N+".xml.rels";var J=mxUtils.createXmlDocument(),M=z(J,K.RELS_XMLNS,"Relationships"),T=z(J,K.RELS_XMLNS,"Relationship");T.setAttribute("Type","http://schemas.microsoft.com/visio/2010/relationships/master");T.setAttribute("Id","rId1");T.setAttribute("Target","../masters/master1.xml");M.appendChild(T);var ca=L.images;if(0<ca.length)for(var V=0;V<ca.length;V++)T=z(J,K.RELS_XMLNS,"Relationship"),T.setAttribute("Type",K.XMLNS_R+"/image"),T.setAttribute("Id","rId"+(V+2)),T.setAttribute("Target",
+"../media/"+ca[V]),M.appendChild(T);J.appendChild(M);C(H,N,J)}var K=this,L=new mxVsdxCanvas2D,S={},R=1;this.exportCurrentDiagrams=function(H){try{if(g.spinner.spin(document.body,mxResources.get("exporting"))){var N=function(la,Sa){la=la.model.getChildCells(la.model.root);T[Sa]=[];for(var Xa=0;Xa<la.length;Xa++)la[Xa].visible&&T[Sa].push({name:la[Xa].value||"Background",visible:la[Xa].visible,locked:la[Xa].style&&0<=la[Xa].style.indexOf("locked=1")})},J=new JSZip;L.init(J);S={};R=1;var M={},T={},ca=
+{},V=null!=g.pages?g.pages.length:1;if(null!=g.pages){var P=function(la){la=la.getName();var Sa=g.editor.graph,Xa=m(Sa);M[la]=A(Sa,Xa);N(Sa,la);Q(J,sa+1);ca[la]=Xa},ea=g.editor.graph.getSelectionCells(),Y=g.currentPage;if(H)P(Y);else{for(var sa=0;sa<g.pages.length;sa++){var oa=g.pages[sa];g.currentPage!=oa&&g.selectPage(oa,!0);P(oa)}Y!=g.currentPage&&g.selectPage(Y,!0);g.editor.graph.setSelectionCells(ea)}}else{P=g.editor.graph;var Ra=m(P);M.Page1=A(P,Ra);N(P,"Page1");Q(J,1);ca.Page1=Ra}y(J,V);I(J,
+M,T,ca);H=function(){J.generateAsync({type:"base64"}).then(function(la){g.spinner.stop();var Sa=g.getBaseFilename();g.saveData(Sa+".vsdx","vsdx",la,"application/vnd.visio2013",!0)})};0<L.filesLoading?L.onFilesLoaded=H:H()}return!0}catch(la){return console.log(la),g.spinner.stop(),!1}}}VsdxExport.prototype.CONVERSION_FACTOR=101.6;VsdxExport.prototype.PAGES_TYPE="http://schemas.microsoft.com/visio/2010/relationships/page";VsdxExport.prototype.RELS_XMLNS="http://schemas.openxmlformats.org/package/2006/relationships";
VsdxExport.prototype.XML_SPACE="preserve";VsdxExport.prototype.XMLNS_R="http://schemas.openxmlformats.org/officeDocument/2006/relationships";VsdxExport.prototype.XMLNS="http://schemas.microsoft.com/office/visio/2012/main";VsdxExport.prototype.VISIO_PAGES="visio/pages/";VsdxExport.prototype.PREFEX="com/mxgraph/io/vsdx/resources/export/";VsdxExport.prototype.VSDX_ENC="ISO-8859-1";VsdxExport.prototype.PART_NAME="PartName";VsdxExport.prototype.CONTENT_TYPES_XML="[Content_Types].xml";
VsdxExport.prototype.VISIO_PAGES_RELS="visio/pages/_rels/";
VsdxExport.prototype.ARROWS_MAP={"none|1":0,"none|0":0,"open|1":1,"open|0":1,"block|1":4,"block|0":14,"classic|1":5,"classic|0":17,"oval|1":10,"oval|0":20,"diamond|1":11,"diamond|0":22,"blockThin|1":2,"blockThin|0":15,"dash|1":23,"dash|0":23,"ERone|1":24,"ERone|0":24,"ERmandOne|1":25,"ERmandOne|0":25,"ERmany|1":27,"ERmany|0":27,"ERoneToMany|1":28,"ERoneToMany|0":28,"ERzeroToMany|1":29,"ERzeroToMany|0":29,"ERzeroToOne|1":30,"ERzeroToOne|0":30,"openAsync|1":9,"openAsync|0":9};function mxVsdxCanvas2D(){mxAbstractCanvas2D.call(this)}mxUtils.extend(mxVsdxCanvas2D,mxAbstractCanvas2D);mxVsdxCanvas2D.prototype.textEnabled=!0;mxVsdxCanvas2D.prototype.init=function(g){this.filesLoading=0;this.zip=g};mxVsdxCanvas2D.prototype.onFilesLoaded=function(){};mxVsdxCanvas2D.prototype.createElt=function(g){return null!=this.xmlDoc.createElementNS?this.xmlDoc.createElementNS(VsdxExport.prototype.XMLNS,g):this.xmlDoc.createElement(g)};
@@ -1105,15 +1105,15 @@ mxVsdxCanvas2D.prototype.image=function(g,y,z,B,m,h,c,a){var b=this,d="image"+(t
var k=!1;0==f.indexOf("svg")&&(f="png",k=!0);d+=f;h=new XMLHttpRequest;h.open("GET",m,!0);h.responseType="arraybuffer";h.onreadystatechange=function(n){if(4==this.readyState&&(200==this.status&&(k?b.convertSvg2Png(this.response,!1,function(q){b.zip.file("visio/media/"+d,q.substring(22),{base64:!0})}):b.zip.file("visio/media/"+d,this.response)),b.filesLoading--,0==b.filesLoading))b.onFilesLoaded()};h.send()}this.images.push(d);this.shapeImg={type:f,id:this.images.length+1};m=this.state;z*=m.scale;
B*=m.scale;f=this.xmGeo;g=(g-f.x+m.dx)*m.scale;y=(f.height-y+f.y-m.dy)*m.scale;this.shape.appendChild(this.createCellElemScaled("ImgOffsetX",g));this.shape.appendChild(this.createCellElemScaled("ImgOffsetY",y-B));this.shape.appendChild(this.createCellElemScaled("ImgWidth",z));this.shape.appendChild(this.createCellElemScaled("ImgHeight",B))};
mxVsdxCanvas2D.prototype.text=function(g,y,z,B,m,h,c,a,b,d,f,k,n){var q=this;if(this.textEnabled&&null!=m){mxUtils.isNode(m)&&(m=mxUtils.getOuterHtml(m));0==z&&0==B&&(B=mxUtils.getSizeForString(m,q.cellState.style.fontSize,q.cellState.style.fontFamily),z=2*B.width,B=2*B.height);"html"==b&&("0"!=mxUtils.getValue(this.cellState.style,"nl2Br","1")&&(m=m.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n")),null==this.html2txtDiv&&(this.html2txtDiv=document.createElement("div")),this.html2txtDiv.innerHTML=Graph.sanitizeHtml(m),
-m=mxUtils.extractTextWithWhitespace(this.html2txtDiv.childNodes));d=this.state;f=this.xmGeo;z*=d.scale;B*=d.scale;var t=this.createElt("Section");t.setAttribute("N","Character");var A=this.createElt("Section");A.setAttribute("N","Paragraph");var C=this.createElt("Text"),I=0,N=0,K=0,O=0,S=0,H=0,J=0,M=function(R,U,ia,ba,qa){var sa=R.fontSize,Fa=R.fontFamily,pa=mxUtils.getSizeForString(qa,sa,Fa);a&&pa.width>z&&(pa=mxUtils.getSizeForString(qa,sa,Fa,z));R.blockElem?(S+=pa.width,K=Math.min(Math.max(K,S),
-z),S=0,H=Math.max(H,pa.height),O+=H+J,J=H,H=0):(S+=pa.width,K=Math.min(Math.max(K,S),z),H=Math.max(H,pa.height),O=Math.max(O,H));pa=q.createElt("Row");pa.setAttribute("IX",I);R.fontColor&&pa.appendChild(q.createCellElem("Color",mxUtils.rgba2hex(R.fontColor)));sa&&pa.appendChild(q.createCellElemScaled("Size",.97*sa));Fa&&pa.appendChild(q.createCellElem("Font",Fa));sa=0;R.bold&&(sa|=17);R.italic&&(sa|=34);R.underline&&(sa|=4);pa.appendChild(q.createCellElem("Style",sa));pa.appendChild(q.createCellElem("Case",
-"0"));pa.appendChild(q.createCellElem("Pos","0"));pa.appendChild(q.createCellElem("FontScale","1"));pa.appendChild(q.createCellElem("Letterspace","0"));U.appendChild(pa);U=q.createElt("Row");U.setAttribute("IX",N);switch(R.align){case "left":sa=0;break;case "center":sa=1;break;case "right":sa=2;break;case "start":sa=0;break;case "end":sa=2;break;case "justify":sa=0;break;default:sa=1}U.appendChild(q.createCellElem("HorzAlign",sa));ia.appendChild(U);ia=q.createElt("cp");ia.setAttribute("IX",I++);ba.appendChild(ia);
-R=q.xmlDoc.createTextNode(qa+(R.blockElem?"\n":""));ba.appendChild(R)},L=function(R,U){U=U||{};for(var ia=0;ia<R.length;ia++){var ba=R[ia];if(3==ba.nodeType){var qa=q.cellState.style.fontStyle;qa={fontColor:U.fontColor||q.cellState.style.fontColor,fontSize:U.fontSize||q.cellState.style.fontSize,fontFamily:U.fontFamily||q.cellState.style.fontFamily,align:U.align||q.cellState.style.align,bold:U.bold||qa&1,italic:U.italic||qa&2,underline:U.underline||qa&4};var sa=!1;ia+1<R.length&&"BR"==R[ia+1].nodeName.toUpperCase()&&
-(sa=!0,ia++);M(qa,t,A,C,(U.OL?U.LiIndex+". ":"")+ba.textContent+(sa?"\n":""))}else if(1==ba.nodeType){sa=ba.nodeName.toUpperCase();var Fa=ba.childNodes.length;qa=window.getComputedStyle(ba,null);qa={bold:"bold"==qa.getPropertyValue("font-weight")||U.bold,italic:"italic"==qa.getPropertyValue("font-style")||U.italic,underline:0<=qa.getPropertyValue("text-decoration").indexOf("underline")||U.underline,align:qa.getPropertyValue("text-align"),fontColor:qa.getPropertyValue("color"),fontSize:parseFloat(qa.getPropertyValue("font-size")),
-fontFamily:qa.getPropertyValue("font-family").replace(/"/g,""),blockElem:"block"==qa.getPropertyValue("display")||"BR"==sa||"LI"==sa,OL:U.OL,LiIndex:U.LiIndex};if("UL"==sa){var pa=q.createElt("Row");pa.setAttribute("IX",N);pa.appendChild(q.createCellElem("HorzAlign","0"));pa.appendChild(q.createCellElem("Bullet","1"));A.appendChild(pa);pa=q.createElt("pp");pa.setAttribute("IX",N++);C.appendChild(pa)}else"OL"==sa?qa.OL=!0:"LI"==sa&&(qa.LiIndex=ia+1);0<Fa?(L(ba.childNodes,qa),"UL"==sa&&(pa=q.createElt("Row"),
-pa.setAttribute("IX",N),pa.appendChild(q.createCellElem("Bullet","0")),A.appendChild(pa),pa=q.createElt("pp"),pa.setAttribute("IX",N++),C.appendChild(pa)),M(qa,t,A,C,"")):M(qa,t,A,C,(U.OL?U.LiIndex+". ":"")+ba.textContent)}}};"html"==b&&mxClient.IS_SVG?(m=this.cellState.text.node.getElementsByTagName("div")[mxClient.NO_FO?0:1],null!=m&&L(m.childNodes,{})):M({fontColor:q.cellState.style.fontColor,fontSize:q.cellState.style.fontSize,fontFamily:q.cellState.style.fontFamily},t,A,C,m);b=m=0;B=Math.max(B,
-O);z=Math.max(z,K);n=z/2;var Q=B/2,ca=parseInt(mxUtils.getValue(this.cellState.style,"rotation","0")),W=ca*Math.PI/180;switch(h){case "right":0!=ca?(g-=n*Math.cos(W),y-=n*Math.sin(W)):m=K/2;break;case "left":0!=ca?(g+=n*Math.cos(W),y+=n*Math.sin(W)):m=-K/2}switch(c){case "top":0!=ca?(g+=Q*Math.sin(W),y+=Q*Math.cos(W)):b=O/2;break;case "bottom":0!=ca?(g-=Q*Math.sin(W),y-=Q*Math.cos(W)):b=-O/2}g=(g-f.x+d.dx)*d.scale;y=(f.height-y+f.y-d.dy)*d.scale;this.shape.appendChild(this.createCellElemScaled("TxtPinX",
-g));this.shape.appendChild(this.createCellElemScaled("TxtPinY",y));this.shape.appendChild(this.createCellElemScaled("TxtWidth",z));this.shape.appendChild(this.createCellElemScaled("TxtHeight",B));this.shape.appendChild(this.createCellElemScaled("TxtLocPinX",n+m));this.shape.appendChild(this.createCellElemScaled("TxtLocPinY",Q+b));k-=ca;0!=k&&this.shape.appendChild(this.createCellElem("TxtAngle",(360-k)*Math.PI/180));this.shape.appendChild(t);this.shape.appendChild(A);this.shape.appendChild(C)}};
+m=mxUtils.extractTextWithWhitespace(this.html2txtDiv.childNodes));d=this.state;f=this.xmGeo;z*=d.scale;B*=d.scale;var t=this.createElt("Section");t.setAttribute("N","Character");var A=this.createElt("Section");A.setAttribute("N","Paragraph");var C=this.createElt("Text"),I=0,Q=0,K=0,L=0,S=0,R=0,H=0,N=function(V,P,ea,Y,sa){var oa=V.fontSize,Ra=V.fontFamily,la=mxUtils.getSizeForString(sa,oa,Ra);a&&la.width>z&&(la=mxUtils.getSizeForString(sa,oa,Ra,z));V.blockElem?(S+=la.width,K=Math.min(Math.max(K,S),
+z),S=0,R=Math.max(R,la.height),L+=R+H,H=R,R=0):(S+=la.width,K=Math.min(Math.max(K,S),z),R=Math.max(R,la.height),L=Math.max(L,R));la=q.createElt("Row");la.setAttribute("IX",I);V.fontColor&&la.appendChild(q.createCellElem("Color",mxUtils.rgba2hex(V.fontColor)));oa&&la.appendChild(q.createCellElemScaled("Size",.97*oa));Ra&&la.appendChild(q.createCellElem("Font",Ra));oa=0;V.bold&&(oa|=17);V.italic&&(oa|=34);V.underline&&(oa|=4);la.appendChild(q.createCellElem("Style",oa));la.appendChild(q.createCellElem("Case",
+"0"));la.appendChild(q.createCellElem("Pos","0"));la.appendChild(q.createCellElem("FontScale","1"));la.appendChild(q.createCellElem("Letterspace","0"));P.appendChild(la);P=q.createElt("Row");P.setAttribute("IX",Q);switch(V.align){case "left":oa=0;break;case "center":oa=1;break;case "right":oa=2;break;case "start":oa=0;break;case "end":oa=2;break;case "justify":oa=0;break;default:oa=1}P.appendChild(q.createCellElem("HorzAlign",oa));ea.appendChild(P);ea=q.createElt("cp");ea.setAttribute("IX",I++);Y.appendChild(ea);
+V=q.xmlDoc.createTextNode(sa+(V.blockElem?"\n":""));Y.appendChild(V)},J=function(V,P){P=P||{};for(var ea=0;ea<V.length;ea++){var Y=V[ea];if(3==Y.nodeType){var sa=q.cellState.style.fontStyle;sa={fontColor:P.fontColor||q.cellState.style.fontColor,fontSize:P.fontSize||q.cellState.style.fontSize,fontFamily:P.fontFamily||q.cellState.style.fontFamily,align:P.align||q.cellState.style.align,bold:P.bold||sa&1,italic:P.italic||sa&2,underline:P.underline||sa&4};var oa=!1;ea+1<V.length&&"BR"==V[ea+1].nodeName.toUpperCase()&&
+(oa=!0,ea++);N(sa,t,A,C,(P.OL?P.LiIndex+". ":"")+Y.textContent+(oa?"\n":""))}else if(1==Y.nodeType){oa=Y.nodeName.toUpperCase();var Ra=Y.childNodes.length;sa=window.getComputedStyle(Y,null);sa={bold:"bold"==sa.getPropertyValue("font-weight")||P.bold,italic:"italic"==sa.getPropertyValue("font-style")||P.italic,underline:0<=sa.getPropertyValue("text-decoration").indexOf("underline")||P.underline,align:sa.getPropertyValue("text-align"),fontColor:sa.getPropertyValue("color"),fontSize:parseFloat(sa.getPropertyValue("font-size")),
+fontFamily:sa.getPropertyValue("font-family").replace(/"/g,""),blockElem:"block"==sa.getPropertyValue("display")||"BR"==oa||"LI"==oa,OL:P.OL,LiIndex:P.LiIndex};if("UL"==oa){var la=q.createElt("Row");la.setAttribute("IX",Q);la.appendChild(q.createCellElem("HorzAlign","0"));la.appendChild(q.createCellElem("Bullet","1"));A.appendChild(la);la=q.createElt("pp");la.setAttribute("IX",Q++);C.appendChild(la)}else"OL"==oa?sa.OL=!0:"LI"==oa&&(sa.LiIndex=ea+1);0<Ra?(J(Y.childNodes,sa),"UL"==oa&&(la=q.createElt("Row"),
+la.setAttribute("IX",Q),la.appendChild(q.createCellElem("Bullet","0")),A.appendChild(la),la=q.createElt("pp"),la.setAttribute("IX",Q++),C.appendChild(la)),N(sa,t,A,C,"")):N(sa,t,A,C,(P.OL?P.LiIndex+". ":"")+Y.textContent)}}};"html"==b&&mxClient.IS_SVG?(m=this.cellState.text.node.getElementsByTagName("div")[mxClient.NO_FO?0:1],null!=m&&J(m.childNodes,{})):N({fontColor:q.cellState.style.fontColor,fontSize:q.cellState.style.fontSize,fontFamily:q.cellState.style.fontFamily},t,A,C,m);b=m=0;B=Math.max(B,
+L);z=Math.max(z,K);n=z/2;var M=B/2,T=parseInt(mxUtils.getValue(this.cellState.style,"rotation","0")),ca=T*Math.PI/180;switch(h){case "right":0!=T?(g-=n*Math.cos(ca),y-=n*Math.sin(ca)):m=K/2;break;case "left":0!=T?(g+=n*Math.cos(ca),y+=n*Math.sin(ca)):m=-K/2}switch(c){case "top":0!=T?(g+=M*Math.sin(ca),y+=M*Math.cos(ca)):b=L/2;break;case "bottom":0!=T?(g-=M*Math.sin(ca),y-=M*Math.cos(ca)):b=-L/2}g=(g-f.x+d.dx)*d.scale;y=(f.height-y+f.y-d.dy)*d.scale;this.shape.appendChild(this.createCellElemScaled("TxtPinX",
+g));this.shape.appendChild(this.createCellElemScaled("TxtPinY",y));this.shape.appendChild(this.createCellElemScaled("TxtWidth",z));this.shape.appendChild(this.createCellElemScaled("TxtHeight",B));this.shape.appendChild(this.createCellElemScaled("TxtLocPinX",n+m));this.shape.appendChild(this.createCellElemScaled("TxtLocPinY",M+b));k-=T;0!=k&&this.shape.appendChild(this.createCellElem("TxtAngle",(360-k)*Math.PI/180));this.shape.appendChild(t);this.shape.appendChild(A);this.shape.appendChild(C)}};
mxVsdxCanvas2D.prototype.rotate=function(g,y,z,B,m){0!=g&&(y=this.state,B+=y.dx,m+=y.dy,B*=y.scale,m*=y.scale,this.shape.appendChild(this.createCellElem("Angle",(360-g)*Math.PI/180)),y.rotation+=g,y.rotationCx=B,y.rotationCy=m)};mxVsdxCanvas2D.prototype.stroke=function(){this.geoSec.appendChild(this.createCellElem("NoFill","1"));this.geoSec.appendChild(this.createCellElem("NoLine","0"))};
mxVsdxCanvas2D.prototype.fill=function(){this.geoSec.appendChild(this.createCellElem("NoFill","0"));this.geoSec.appendChild(this.createCellElem("NoLine","1"))};mxVsdxCanvas2D.prototype.fillAndStroke=function(){this.geoSec.appendChild(this.createCellElem("NoFill","0"));this.geoSec.appendChild(this.createCellElem("NoLine","0"))};function BmpDecoder(g,y){this.pos=0;this.buffer=g;this.is_with_alpha=!!y;if(66!=this.buffer[0]&&77!=this.buffer[1])throw Error("Invalid BMP File");this.pos+=2;this.parseHeader();this.parseBGR()}
BmpDecoder.prototype.parseHeader=function(){var g=this.buffer;this.fileSize=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.reserved=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.offset=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.headerSize=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.width=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];
@@ -1130,54 +1130,54 @@ BmpDecoder.prototype.bit32=function(){for(var g=this.height-1;0<=g;g--)for(var y
(function(g){(function(y){(function(z){var B=function(){function m(c){this.RESPONSE_END="</mxfile>";this.RESPONSE_DIAGRAM_START="";this.RESPONSE_DIAGRAM_END="</diagram>";this.RESPONSE_HEADER='<?xml version="1.0" encoding="UTF-8"?><mxfile>';this.vertexMap={};this.edgeShapeMap={};this.vertexShapeMap={};this.parentsMap={};this.layerNames=[];this.debugPaths=!1;this.vsdxModel=null;this.editorUi=c;this.shapeIndexShift=0}function h(c,a,b,d,f){c=b.createLabelSubShape(c,a);null!=c&&(0!==d&&(a=c.getStyle().match(/;rotation=(\d+\.*\d+)/),
null!=a&&(d+=parseFloat(a[1])),c.setStyle(c.getStyle().replace(/;rotation=(\d+\.*\d+)/,"")+";rotation="+(60<d&&240>d?(d+180)%360:d))),d=c.getGeometry(),d.x=0,d.y=0,d.relative=!0,f=f||new mxPoint(0,0),d.offset=new mxPoint(f.x-d.width/2,f.y-d.height/2))}m.vsdxPlaceholder_$LI$=function(){null==m.vsdxPlaceholder&&(m.vsdxPlaceholder=window.atob?atob("dmlzaW8="):Base64.decode("dmlzaW8=",!0));return m.vsdxPlaceholder};m.parsererrorNS_$LI$=function(){m.parsererrorNS=mxConstants.NS_XHTML;return m.parsererrorNS};
m.parseXml=function(c){try{var a=mxUtils.parseXml(c);return 0<a.getElementsByTagNameNS(m.parsererrorNS,"parsererror").length?null:a}catch(b){return null}};m.decodeUTF16LE=function(c){for(var a="",b=0;b<c.length;b+=2)a+=String.fromCharCode(c.charCodeAt(b)|c.charCodeAt(b+1)<<8);return a};m.prototype.scaleGraph=function(c,a){if(1!==a){c=c.getModel();for(var b in c.cells){var d=c.cells[b],f=c.getGeometry(d);if(null!=f&&(this.scaleRect(f,a),this.scaleRect(f.alternateBounds,a),c.isEdge(d)&&(this.scalePoint(f.sourcePoint,
-a),this.scalePoint(f.targetPoint,a),this.scalePoint(f.offset,a),d=f.points,null!=d)))for(f=0;f<d.length;f++)this.scalePoint(d[f],a)}}};m.incorrectXMLReqExp=[{regExp:/&(?!amp;|lt;|gt;|quot;|#)/g,repl:"&amp;"}];m.prototype.decodeVsdx=function(c,a,b,d){function f(K,O,S){function H(){C++;I();O++;O==J&&f(K,O,S)}for(var J=Math.min(O+N,K.length),M=O;M<J;M++)(function(L){function Q(W){var R=new FormData;R.append("img",W,L.name);R.append("inputformat","emf");R.append("outputformat","png");var U=new XMLHttpRequest;
-U.open("POST",EMF_CONVERT_URL);U.responseType="blob";k.editorUi.addRemoteServiceSecurityCheck(U);U.onreadystatechange=mxUtils.bind(this,function(){if(4==U.readyState)if(200<=U.status&&299>=U.status)try{var ia=new FileReader;ia.readAsDataURL(U.response);ia.onloadend=function(){var ba=ia.result.indexOf(",")+1;S[L.name]=ia.result.substr(ba);H()}}catch(ba){console.log(ba),H()}else ca++,3>ca?Q(W):H()});U.send(R)}var ca=0;L.async("blob").then(Q)})(K[M])}var k=this,n={},q={},t=function(){function K(){J=
-J.concat(k.RESPONSE_END);a&&a(J)}for(var O=m.vsdxPlaceholder+"/document.xml",S=n[O]?n[O]:null,H=S.firstChild;null!=H&&1!=H.nodeType;)H=H.nextSibling;if(null!=H&&1==H.nodeType)k.importNodes(S,H,O,n);else return null;k.vsdxModel=new g.mxgraph.io.vsdx.mxVsdxModel(S,n,q);O=k.vsdxModel.getPages();var J=k.RESPONSE_HEADER;var M=function(W){null==W.entries&&(W.entries=[]);return W.entries}(O);m.pageTitleMap={};m.pageIdsSet={};try{for(O=0;O<M.length;O++){var L=M[O].getValue();m.pageTitleMap[L.getPageName()]=
-L.getPageNameU();m.pageIdsSet[L.getPageNameU()]=!0}}catch(W){}var Q=function(W,R){var U=M[W].getValue(),ia=ca.createMxGraph();ia.getModel().beginUpdate();ca.importPage(U,ia,ia.getDefaultParent(),!0);ca.scaleGraph(ia,U.getPageScale()/U.getDrawingScale());ia.getModel().endUpdate();ca.postImportPage(U,ia,function(){ca.sanitiseGraph(ia);J=J.concat(k.RESPONSE_DIAGRAM_START);J=J.concat(k.processPage(ia,U));J=J.concat(k.RESPONSE_DIAGRAM_END);W<M.length-1?Q(W+1,R):R()})},ca=k;0<M.length?Q(0,K):K()},A=0,C=
-0,I=function(){if(C==A)try{t()}catch(K){console.log(K),null!=d?d(K):a("")}},N=window.EMF_CHUNK_SIZE||10;JSZip.loadAsync(c).then(function(K){if(0==Object.keys(K.files).length)null!=d&&d();else{var O=[];K.forEach(function(S,H){var J=H.name;S=J.toLowerCase();var M=S.length;S.indexOf(".xml")==M-4||S.indexOf(".rels")==M-5?(A++,H.async("string").then(function(L){if(0!==L.length){65279==L.charCodeAt(0)&&(L=L.substring(1));var Q=m.parseXml(L);if(null==Q)if(0===L.charCodeAt(1)&&0===L.charCodeAt(3)&&0===L.charCodeAt(5))Q=
-m.parseXml(m.decodeUTF16LE(L));else{for(Q=0;Q<m.incorrectXMLReqExp.length;Q++)m.incorrectXMLReqExp[Q].regExp.test(L)&&(L=L.replace(m.incorrectXMLReqExp[Q].regExp,m.incorrectXMLReqExp[Q].repl));Q=m.parseXml(L)}null!=Q&&(Q.vsdxFileName=J,n[J]=Q)}C++;I()})):0===S.indexOf(m.vsdxPlaceholder+"/media")&&(A++,function(L,Q){var ca=L.length-Q.length;L=L.indexOf(Q,ca);return-1!==L&&L===ca}(S,".emf")?JSZip.support.blob&&window.EMF_CONVERT_URL?O.push(H):(C++,I()):function(L,Q){var ca=L.length-Q.length;L=L.indexOf(Q,
-ca);return-1!==L&&L===ca}(S,".bmp")?JSZip.support.uint8array&&H.async("uint8array").then(function(L){L=new BmpDecoder(L);var Q=document.createElement("canvas");Q.width=L.width;Q.height=L.height;Q.getContext("2d").putImageData(L.imageData,0,0);L=Q.toDataURL("image/jpeg");q[J]=L.substr(23);C++;I()}):H.async("base64").then(function(L){q[J]=L;C++;I()}))});f(O,0,q)}},function(K){null!=d&&d(K)})};m.prototype.createMxGraph=function(){var c=new Graph;c.setExtendParents(!1);c.setExtendParentsOnAdd(!1);c.setConstrainChildren(!1);
-c.setHtmlLabels(!0);c.getModel().maintainEdgeParent=!1;return c};m.prototype.processPage=function(c,a){c=(new mxCodec).encode(c.getModel());c.setAttribute("style","default-style2");c=mxUtils.getXml(c);var b="";if(null!=a){var d=mxUtils.htmlEntities(a.getPageName())+(a.isBackground()?" (Background)":"");a=mxUtils.htmlEntities(a.getPageNameU());b+='<diagram name="'+d+'" id="'+a.replace(/\s/g,"_")+'">'}return b+=Graph.compress(c)};m.prototype.scalePoint=function(c,a){null!=c&&(c.x*=a,c.y*=a);return c};
-m.prototype.scaleRect=function(c,a){null!=c&&(c.x*=a,c.y*=a,c.height*=a,c.width*=a);return c};m.prototype.importNodes=function(c,a,b,d){var f=b.lastIndexOf("/"),k=b,n=b;if(-1!==f&&(k=b.substring(0,f),n=b.substring(f+1,b.length),b=function(C,I){return C[I]?C[I]:null}(d,k+"/_rels/"+n+".rels"),null!=b)){var q=b.getElementsByTagName("Relationship");b={};for(f=0;f<q.length;f++){n=q.item(f);var t=n.getAttribute("Id");n=n.getAttribute("Target");b[t]=n}a=a.getElementsByTagName("Rel");for(f=0;f<a.length;f++)if(q=
-a.item(f),n=function(C,I){return C[I]?C[I]:null}(b,q.getAttribute("r:id")),n=k+"/"+n,null!=n&&(t=d[n]?d[n]:null,null!=t)){q=q.parentNode;for(t=t.firstChild;null!=t&&1!=t.nodeType;)t=t.nextSibling;if(null!=t&&1==t.nodeType)for(t=t.firstChild;null!=t;){if(null!=t&&1==t.nodeType){var A=q.appendChild(c.importNode(t,!0));this.importNodes(c,A,n,d)}t=t.nextSibling}}}};m.prototype.layerIndexToNames=function(c){var a=[];if(c)for(var b=0;b<c.length;b++){var d=parseInt(c[b]);d<this.layerNames.length&&a.push(this.layerNames[d])}return 0<
-a.length?a:[mxResources.get("background")]};m.prototype.importPage=function(c,a,b,d){var f=c.getBackPage();if(null!=f){a.getModel().setValue(a.getDefaultParent(),c.getPageName());var k=new mxCell(f.getPageName());a.addCell(k,a.getModel().getRoot(),0,null,null);this.importPage(f,a,a.getDefaultParent())}var n=c.getLayers();k=c.getShapes();f=[];for(var q=0;q<n.length;q++){var t=n[q],A=t.Name.replace(/\s/g,"_");this.layerNames.push(A);0==t.Visible&&f.push(A)}t=function(C){var I=0;return{next:function(){return I<
-C.length?C[I++]:null},hasNext:function(){return I<C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(k));k=c.getPageDimensions().y;for(q=c.getId();t.hasNext();)n=t.next(),n=n.getValue(),A=this.addShape(a,n,b,q,k),n=this.layerIndexToNames(n.layerMember),null!=A&&null!=n&&a.addTagsForCells([A],n);for(c=function(C){var I=0;return{next:function(){return I<C.length?C[I++]:null},hasNext:function(){return I<C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(c.getConnects()));c.hasNext();)n=
-c.next(),n=this.addConnectedEdge(a,n.getValue(),q,k),null!=n&&function(C,I){null==C.entries&&(C.entries=[]);for(var N=0;N<C.entries.length;N++)if(null!=C.entries[N].key.equals&&C.entries[N].key.equals(I)||C.entries[N].key===I)return C.entries.splice(N,1)[0]}(this.edgeShapeMap,n);for(c=function(C){var I=0;return{next:function(){return I<C.length?C[I++]:null},hasNext:function(){return I<C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(this.edgeShapeMap));c.hasNext();)n=c.next(),
-n.getKey().getPageNumber()===q&&(t=this.addUnconnectedEdge(a,function(C,I){null==C.entries&&(C.entries=[]);for(var N=0;N<C.entries.length;N++)if(null!=C.entries[N].key.equals&&C.entries[N].key.equals(I)||C.entries[N].key===I)return C.entries[N].value;return null}(this.parentsMap,n.getKey()),n.getValue(),k),n=this.layerIndexToNames(n.getValue().layerMember),null!=n&&a.addTagsForCells([t],n));if(0<this.layerNames.length){c=a.getAllTags();q=!1;for(n=0;n<this.layerNames.length;n++)if(0>mxUtils.indexOf(c,
-this.layerNames[n])){q=!0;break}q&&(b=a.insertVertex(b,null,null,0,0,0,0),a.addTagsForCells([b],this.layerNames),b.setVisible(!1));a.setHiddenTags(f)}d||this.sanitiseGraph(a);return k};m.prototype.postImportPage=function(c,a,b){try{var d=function(q){if(null!=q){q=q.entries||[];for(var t=0;t<q.length;t++){var A=q[t].value||{};A.toBeCroppedImg&&k.push(A);d(A.getChildShapes())}}},f=this,k=[];d(c.getShapes());if(0<k.length){var n=function(q,t){function A(){q<k.length-1?n(q+1,t):t()}var C=k[q],I=C.toBeCroppedImg,
-N=function(O,S){null==O.entries&&(O.entries=[]);for(var H=0;H<O.entries.length;H++)if(null!=O.entries[H].key.equals&&O.entries[H].key.equals(S)||O.entries[H].key===S)return O.entries[H].value;return null}(f.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(c.Id,C.Id)),K=new Image;K.onload=function(){var O=I.iData,S=I.iType;try{var H=K.width/I.imgWidth,J=K.height/I.imgHeight,M=-I.imgOffsetX*H,L=(I.imgHeight-I.height+I.imgOffsetY)*J,Q=document.createElement("canvas");Q.width=I.width*H;Q.height=I.height*J;
-var ca=Q.getContext("2d");ca.fillStyle="#FFFFFF";ca.fillRect(0,0,Q.width,Q.height);ca.drawImage(K,M,L,Q.width,Q.height,0,0,Q.width,Q.height);O=Q.toDataURL("image/jpeg").substr(23);S="jpg"}catch(W){console.log(W)}N.style+=";image=data:image/"+S+","+O;A()};K.src="data:image/"+I.iType+";base64,"+I.iData;K.onerror=function(){N.style+=";image=data:image/"+I.iType+","+I.iData;A()}};n(0,b)}else b()}catch(q){console.log(q),b()}};m.prototype.addShape=function(c,a,b,d,f){a.parentHeight=f;var k=g.mxgraph.io.vsdx.VsdxShape.getType(a.getShape());
-if(null!=k&&(function(q,t){return q&&q.equals?q.equals(t):q===t}(k,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(q,t){return q&&q.equals?q.equals(t):q===t}(k,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(q,t){return q&&q.equals?q.equals(t):q===t}(k,g.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))){var n=a.getId();if(a.isVertex()){k=null;k=a.isGroup()?this.addGroup(c,a,b,d,f):this.addVertex(c,a,b,d,f);(function(q,t,A){null==q.entries&&(q.entries=[]);for(var C=0;C<q.entries.length;C++)if(null!=
+a),this.scalePoint(f.targetPoint,a),this.scalePoint(f.offset,a),d=f.points,null!=d)))for(f=0;f<d.length;f++)this.scalePoint(d[f],a)}}};m.incorrectXMLReqExp=[{regExp:/&(?!amp;|lt;|gt;|quot;|#)/g,repl:"&amp;"}];m.prototype.decodeVsdx=function(c,a,b,d){function f(K,L,S){function R(){C++;I();L++;L==H&&f(K,L,S)}for(var H=Math.min(L+Q,K.length),N=L;N<H;N++)(function(J){function M(ca){var V=new FormData;V.append("img",ca,J.name);V.append("inputformat","emf");V.append("outputformat","png");var P=new XMLHttpRequest;
+P.open("POST",EMF_CONVERT_URL);P.responseType="blob";k.editorUi.addRemoteServiceSecurityCheck(P);P.onreadystatechange=mxUtils.bind(this,function(){if(4==P.readyState)if(200<=P.status&&299>=P.status)try{var ea=new FileReader;ea.readAsDataURL(P.response);ea.onloadend=function(){var Y=ea.result.indexOf(",")+1;S[J.name]=ea.result.substr(Y);R()}}catch(Y){console.log(Y),R()}else T++,3>T?M(ca):R()});P.send(V)}var T=0;J.async("blob").then(M)})(K[N])}var k=this,n={},q={},t=function(){function K(){H=H.concat(k.RESPONSE_END);
+a&&a(H)}for(var L=m.vsdxPlaceholder+"/document.xml",S=n[L]?n[L]:null,R=S.firstChild;null!=R&&1!=R.nodeType;)R=R.nextSibling;if(null!=R&&1==R.nodeType)k.importNodes(S,R,L,n);else return null;k.vsdxModel=new g.mxgraph.io.vsdx.mxVsdxModel(S,n,q);L=k.vsdxModel.getPages();var H=k.RESPONSE_HEADER;var N=function(ca){null==ca.entries&&(ca.entries=[]);return ca.entries}(L);m.pageTitleMap={};m.pageIdsSet={};try{for(L=0;L<N.length;L++){var J=N[L].getValue();m.pageTitleMap[J.getPageName()]=J.getPageNameU();m.pageIdsSet[J.getPageNameU()]=
+!0}}catch(ca){}var M=function(ca,V){var P=N[ca].getValue(),ea=T.createMxGraph();ea.getModel().beginUpdate();T.importPage(P,ea,ea.getDefaultParent(),!0);T.scaleGraph(ea,P.getPageScale()/P.getDrawingScale());ea.getModel().endUpdate();T.postImportPage(P,ea,function(){T.sanitiseGraph(ea);H=H.concat(k.RESPONSE_DIAGRAM_START);H=H.concat(k.processPage(ea,P));H=H.concat(k.RESPONSE_DIAGRAM_END);ca<N.length-1?M(ca+1,V):V()})},T=k;0<N.length?M(0,K):K()},A=0,C=0,I=function(){if(C==A)try{t()}catch(K){console.log(K),
+null!=d?d(K):a("")}},Q=window.EMF_CHUNK_SIZE||10;JSZip.loadAsync(c).then(function(K){if(0==Object.keys(K.files).length)null!=d&&d();else{var L=[];K.forEach(function(S,R){var H=R.name;S=H.toLowerCase();var N=S.length;S.indexOf(".xml")==N-4||S.indexOf(".rels")==N-5?(A++,R.async("string").then(function(J){if(0!==J.length){65279==J.charCodeAt(0)&&(J=J.substring(1));var M=m.parseXml(J);if(null==M)if(0===J.charCodeAt(1)&&0===J.charCodeAt(3)&&0===J.charCodeAt(5))M=m.parseXml(m.decodeUTF16LE(J));else{for(M=
+0;M<m.incorrectXMLReqExp.length;M++)m.incorrectXMLReqExp[M].regExp.test(J)&&(J=J.replace(m.incorrectXMLReqExp[M].regExp,m.incorrectXMLReqExp[M].repl));M=m.parseXml(J)}null!=M&&(M.vsdxFileName=H,n[H]=M)}C++;I()})):0===S.indexOf(m.vsdxPlaceholder+"/media")&&(A++,function(J,M){var T=J.length-M.length;J=J.indexOf(M,T);return-1!==J&&J===T}(S,".emf")?JSZip.support.blob&&window.EMF_CONVERT_URL?L.push(R):(C++,I()):function(J,M){var T=J.length-M.length;J=J.indexOf(M,T);return-1!==J&&J===T}(S,".bmp")?JSZip.support.uint8array&&
+R.async("uint8array").then(function(J){J=new BmpDecoder(J);var M=document.createElement("canvas");M.width=J.width;M.height=J.height;M.getContext("2d").putImageData(J.imageData,0,0);J=M.toDataURL("image/jpeg");q[H]=J.substr(23);C++;I()}):R.async("base64").then(function(J){q[H]=J;C++;I()}))});f(L,0,q)}},function(K){null!=d&&d(K)})};m.prototype.createMxGraph=function(){var c=new Graph;c.setExtendParents(!1);c.setExtendParentsOnAdd(!1);c.setConstrainChildren(!1);c.setHtmlLabels(!0);c.getModel().maintainEdgeParent=
+!1;return c};m.prototype.processPage=function(c,a){c=(new mxCodec).encode(c.getModel());c.setAttribute("style","default-style2");c=mxUtils.getXml(c);var b="";if(null!=a){var d=mxUtils.htmlEntities(a.getPageName())+(a.isBackground()?" (Background)":"");a=mxUtils.htmlEntities(a.getPageNameU());b+='<diagram name="'+d+'" id="'+a.replace(/\s/g,"_")+'">'}return b+=Graph.compress(c)};m.prototype.scalePoint=function(c,a){null!=c&&(c.x*=a,c.y*=a);return c};m.prototype.scaleRect=function(c,a){null!=c&&(c.x*=
+a,c.y*=a,c.height*=a,c.width*=a);return c};m.prototype.importNodes=function(c,a,b,d){var f=b.lastIndexOf("/"),k=b,n=b;if(-1!==f&&(k=b.substring(0,f),n=b.substring(f+1,b.length),b=function(C,I){return C[I]?C[I]:null}(d,k+"/_rels/"+n+".rels"),null!=b)){var q=b.getElementsByTagName("Relationship");b={};for(f=0;f<q.length;f++){n=q.item(f);var t=n.getAttribute("Id");n=n.getAttribute("Target");b[t]=n}a=a.getElementsByTagName("Rel");for(f=0;f<a.length;f++)if(q=a.item(f),n=function(C,I){return C[I]?C[I]:
+null}(b,q.getAttribute("r:id")),n=k+"/"+n,null!=n&&(t=d[n]?d[n]:null,null!=t)){q=q.parentNode;for(t=t.firstChild;null!=t&&1!=t.nodeType;)t=t.nextSibling;if(null!=t&&1==t.nodeType)for(t=t.firstChild;null!=t;){if(null!=t&&1==t.nodeType){var A=q.appendChild(c.importNode(t,!0));this.importNodes(c,A,n,d)}t=t.nextSibling}}}};m.prototype.layerIndexToNames=function(c){var a=[];if(c)for(var b=0;b<c.length;b++){var d=parseInt(c[b]);d<this.layerNames.length&&a.push(this.layerNames[d])}return 0<a.length?a:[mxResources.get("background")]};
+m.prototype.importPage=function(c,a,b,d){var f=c.getBackPage();if(null!=f){a.getModel().setValue(a.getDefaultParent(),c.getPageName());var k=new mxCell(f.getPageName());a.addCell(k,a.getModel().getRoot(),0,null,null);this.importPage(f,a,a.getDefaultParent())}var n=c.getLayers();k=c.getShapes();f=[];for(var q=0;q<n.length;q++){var t=n[q],A=t.Name.replace(/\s/g,"_");this.layerNames.push(A);0==t.Visible&&f.push(A)}t=function(C){var I=0;return{next:function(){return I<C.length?C[I++]:null},hasNext:function(){return I<
+C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(k));k=c.getPageDimensions().y;for(q=c.getId();t.hasNext();)n=t.next(),n=n.getValue(),A=this.addShape(a,n,b,q,k),n=this.layerIndexToNames(n.layerMember),null!=A&&null!=n&&a.addTagsForCells([A],n);for(c=function(C){var I=0;return{next:function(){return I<C.length?C[I++]:null},hasNext:function(){return I<C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(c.getConnects()));c.hasNext();)n=c.next(),n=this.addConnectedEdge(a,
+n.getValue(),q,k),null!=n&&function(C,I){null==C.entries&&(C.entries=[]);for(var Q=0;Q<C.entries.length;Q++)if(null!=C.entries[Q].key.equals&&C.entries[Q].key.equals(I)||C.entries[Q].key===I)return C.entries.splice(Q,1)[0]}(this.edgeShapeMap,n);for(c=function(C){var I=0;return{next:function(){return I<C.length?C[I++]:null},hasNext:function(){return I<C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(this.edgeShapeMap));c.hasNext();)n=c.next(),n.getKey().getPageNumber()===q&&
+(t=this.addUnconnectedEdge(a,function(C,I){null==C.entries&&(C.entries=[]);for(var Q=0;Q<C.entries.length;Q++)if(null!=C.entries[Q].key.equals&&C.entries[Q].key.equals(I)||C.entries[Q].key===I)return C.entries[Q].value;return null}(this.parentsMap,n.getKey()),n.getValue(),k),n=this.layerIndexToNames(n.getValue().layerMember),null!=n&&a.addTagsForCells([t],n));if(0<this.layerNames.length){c=a.getAllTags();q=!1;for(n=0;n<this.layerNames.length;n++)if(0>mxUtils.indexOf(c,this.layerNames[n])){q=!0;break}q&&
+(b=a.insertVertex(b,null,null,0,0,0,0),a.addTagsForCells([b],this.layerNames),b.setVisible(!1));a.setHiddenTags(f)}d||this.sanitiseGraph(a);return k};m.prototype.postImportPage=function(c,a,b){try{var d=function(q){if(null!=q){q=q.entries||[];for(var t=0;t<q.length;t++){var A=q[t].value||{};A.toBeCroppedImg&&k.push(A);d(A.getChildShapes())}}},f=this,k=[];d(c.getShapes());if(0<k.length){var n=function(q,t){function A(){q<k.length-1?n(q+1,t):t()}var C=k[q],I=C.toBeCroppedImg,Q=function(L,S){null==L.entries&&
+(L.entries=[]);for(var R=0;R<L.entries.length;R++)if(null!=L.entries[R].key.equals&&L.entries[R].key.equals(S)||L.entries[R].key===S)return L.entries[R].value;return null}(f.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(c.Id,C.Id)),K=new Image;K.onload=function(){var L=I.iData,S=I.iType;try{var R=K.width/I.imgWidth,H=K.height/I.imgHeight,N=-I.imgOffsetX*R,J=(I.imgHeight-I.height+I.imgOffsetY)*H,M=document.createElement("canvas");M.width=I.width*R;M.height=I.height*H;var T=M.getContext("2d");T.fillStyle=
+"#FFFFFF";T.fillRect(0,0,M.width,M.height);T.drawImage(K,N,J,M.width,M.height,0,0,M.width,M.height);L=M.toDataURL("image/jpeg").substr(23);S="jpg"}catch(ca){console.log(ca)}Q.style+=";image=data:image/"+S+","+L;A()};K.src="data:image/"+I.iType+";base64,"+I.iData;K.onerror=function(){Q.style+=";image=data:image/"+I.iType+","+I.iData;A()}};n(0,b)}else b()}catch(q){console.log(q),b()}};m.prototype.addShape=function(c,a,b,d,f){a.parentHeight=f;var k=g.mxgraph.io.vsdx.VsdxShape.getType(a.getShape());if(null!=
+k&&(function(q,t){return q&&q.equals?q.equals(t):q===t}(k,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(q,t){return q&&q.equals?q.equals(t):q===t}(k,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(q,t){return q&&q.equals?q.equals(t):q===t}(k,g.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))){var n=a.getId();if(a.isVertex()){k=null;k=a.isGroup()?this.addGroup(c,a,b,d,f):this.addVertex(c,a,b,d,f);(function(q,t,A){null==q.entries&&(q.entries=[]);for(var C=0;C<q.entries.length;C++)if(null!=
q.entries[C].key.equals&&q.entries[C].key.equals(t)||q.entries[C].key===t){q.entries[C].value=A;return}q.entries.push({key:t,value:A,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.vertexShapeMap,new g.mxgraph.io.vsdx.ShapePageId(d,n),a);b=a.getHyperlink();b.pageLink?(d=b.pageLink,m.pageIdsSet[d]||null==m.pageTitleMap[d]||(d=m.pageTitleMap[d]+""),c.setLinkForCell(k,"data:page/id,"+d.replace(/\s/g,"_"))):b.extLink&&c.setLinkForCell(k,b.extLink);a=a.getProperties();
for(b=0;b<a.length;b++)try{c.setAttributeForCell(k,a[b].key,a[b].val)}catch(q){console.log('Attribute: "',a[b].key,'" with value "',a[b].val,'" not allowed in HTML')}return k}a.isGroup()&&this.addGroup(c,a,b,d,f,!0);a.setShapeIndex(c.getModel().getChildCount(b));(function(q,t,A){null==q.entries&&(q.entries=[]);for(var C=0;C<q.entries.length;C++)if(null!=q.entries[C].key.equals&&q.entries[C].key.equals(t)||q.entries[C].key===t){q.entries[C].value=A;return}q.entries.push({key:t,value:A,getKey:function(){return this.key},
getValue:function(){return this.value}})})(this.edgeShapeMap,new g.mxgraph.io.vsdx.ShapePageId(d,n),a);(function(q,t,A){null==q.entries&&(q.entries=[]);for(var C=0;C<q.entries.length;C++)if(null!=q.entries[C].key.equals&&q.entries[C].key.equals(t)||q.entries[C].key===t){q.entries[C].value=A;return}q.entries.push({key:t,value:A,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.parentsMap,new g.mxgraph.io.vsdx.ShapePageId(d,n),b)}return null};m.prototype.addGroup=function(c,
a,b,d,f,k){var n=a.getDimensions(),q=a.getMaster(),t=a.getStyleFromShape(),A=a.getGeomList();if(A.isNoFill()||k)t[mxConstants.STYLE_FILLCOLOR]="none",t[mxConstants.STYLE_GRADIENTCOLOR]="none";if(A.isNoLine()||k)t[mxConstants.STYLE_STROKECOLOR]="none";t.html="1";t[mxConstants.STYLE_WHITE_SPACE]="wrap";var C=g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(t,"=");k=null;A=a.getChildShapes();k=null!=A&&0<function(K){null==K.entries&&(K.entries=[]);return K.entries.length}(A);t=a.isDisplacedLabel()||a.isRotatedLabel()||
-k;k=a.getOriginPoint(f,!0);if(t)k=c.insertVertex(b,null,null,Math.floor(Math.round(100*k.x)/100),Math.floor(Math.round(100*k.y)/100),Math.floor(Math.round(100*n.x)/100),Math.floor(Math.round(100*n.y)/100),C);else{var I=a.noLabelGroup?null:a.getTextLabel();k=c.insertVertex(b,null,I,Math.floor(Math.round(100*k.x)/100),Math.floor(Math.round(100*k.y)/100),Math.floor(Math.round(100*n.x)/100),Math.floor(Math.round(100*n.y)/100),C)}b=k.geometry.height;for(A=function(K){var O=0;return{next:function(){return O<
-K.length?K[O++]:null},hasNext:function(){return O<K.length}}}(function(K){null==K.entries&&(K.entries=[]);return K.entries}(A));A.hasNext();)if(C=A.next().getValue(),I=C.getId(),C.isVertex()){var N=g.mxgraph.io.vsdx.VsdxShape.getType(C.getShape());null!=N&&(function(K,O){return K&&K.equals?K.equals(O):K===O}(N,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(K,O){return K&&K.equals?K.equals(O):K===O}(N,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(K,O){return K&&K.equals?K.equals(O):
-K===O}(N,g.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))&&C.isVertex()&&(C.propagateRotation(a.getRotation()),(N=C.isGroup()?this.addGroup(c,C,k,d,n.y):this.addVertex(c,C,k,d,n.y))&&N.geometry&&(b=Math.max(N.geometry.height,b)));null==q&&function(K,O,S){null==K.entries&&(K.entries=[]);for(var H=0;H<K.entries.length;H++)if(null!=K.entries[H].key.equals&&K.entries[H].key.equals(O)||K.entries[H].key===O){K.entries[H].value=S;return}K.entries.push({key:O,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexShapeMap,
-new g.mxgraph.io.vsdx.ShapePageId(d,I),C)}else null==q?(function(K,O,S){null==K.entries&&(K.entries=[]);for(var H=0;H<K.entries.length;H++)if(null!=K.entries[H].key.equals&&K.entries[H].key.equals(O)||K.entries[H].key===O){K.entries[H].value=S;return}K.entries.push({key:O,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.edgeShapeMap,new g.mxgraph.io.vsdx.ShapePageId(d,I),C),function(K,O,S){null==K.entries&&(K.entries=[]);for(var H=0;H<K.entries.length;H++)if(null!=
-K.entries[H].key.equals&&K.entries[H].key.equals(O)||K.entries[H].key===O){K.entries[H].value=S;return}K.entries.push({key:O,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.parentsMap,new g.mxgraph.io.vsdx.ShapePageId(d,I),k)):this.addUnconnectedEdge(c,k,C,f);if(k.children&&0==k.geometry.height&&0<b)for(k.geometry.height=b,f=0;f<k.children.length;f++)n=k.children[f],n.geometry&&(n.geometry.y+=b);t&&a.createLabelSubShape(c,k);c=a.getRotation();if(0!==c)for(f=
-k.getGeometry(),q=f.width/2,t=f.height/2,f=0;f<k.getChildCount();f++)n=k.getChildAt(f),g.mxgraph.online.Utils.rotatedGeometry(n.getGeometry(),c,q,t);(function(K,O,S){null==K.entries&&(K.entries=[]);for(var H=0;H<K.entries.length;H++)if(null!=K.entries[H].key.equals&&K.entries[H].key.equals(O)||K.entries[H].key===O){K.entries[H].value=S;return}K.entries.push({key:O,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(d,
+k;k=a.getOriginPoint(f,!0);if(t)k=c.insertVertex(b,null,null,Math.floor(Math.round(100*k.x)/100),Math.floor(Math.round(100*k.y)/100),Math.floor(Math.round(100*n.x)/100),Math.floor(Math.round(100*n.y)/100),C);else{var I=a.noLabelGroup?null:a.getTextLabel();k=c.insertVertex(b,null,I,Math.floor(Math.round(100*k.x)/100),Math.floor(Math.round(100*k.y)/100),Math.floor(Math.round(100*n.x)/100),Math.floor(Math.round(100*n.y)/100),C)}b=k.geometry.height;for(A=function(K){var L=0;return{next:function(){return L<
+K.length?K[L++]:null},hasNext:function(){return L<K.length}}}(function(K){null==K.entries&&(K.entries=[]);return K.entries}(A));A.hasNext();)if(C=A.next().getValue(),I=C.getId(),C.isVertex()){var Q=g.mxgraph.io.vsdx.VsdxShape.getType(C.getShape());null!=Q&&(function(K,L){return K&&K.equals?K.equals(L):K===L}(Q,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(K,L){return K&&K.equals?K.equals(L):K===L}(Q,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(K,L){return K&&K.equals?K.equals(L):
+K===L}(Q,g.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))&&C.isVertex()&&(C.propagateRotation(a.getRotation()),(Q=C.isGroup()?this.addGroup(c,C,k,d,n.y):this.addVertex(c,C,k,d,n.y))&&Q.geometry&&(b=Math.max(Q.geometry.height,b)));null==q&&function(K,L,S){null==K.entries&&(K.entries=[]);for(var R=0;R<K.entries.length;R++)if(null!=K.entries[R].key.equals&&K.entries[R].key.equals(L)||K.entries[R].key===L){K.entries[R].value=S;return}K.entries.push({key:L,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexShapeMap,
+new g.mxgraph.io.vsdx.ShapePageId(d,I),C)}else null==q?(function(K,L,S){null==K.entries&&(K.entries=[]);for(var R=0;R<K.entries.length;R++)if(null!=K.entries[R].key.equals&&K.entries[R].key.equals(L)||K.entries[R].key===L){K.entries[R].value=S;return}K.entries.push({key:L,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.edgeShapeMap,new g.mxgraph.io.vsdx.ShapePageId(d,I),C),function(K,L,S){null==K.entries&&(K.entries=[]);for(var R=0;R<K.entries.length;R++)if(null!=
+K.entries[R].key.equals&&K.entries[R].key.equals(L)||K.entries[R].key===L){K.entries[R].value=S;return}K.entries.push({key:L,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.parentsMap,new g.mxgraph.io.vsdx.ShapePageId(d,I),k)):this.addUnconnectedEdge(c,k,C,f);if(k.children&&0==k.geometry.height&&0<b)for(k.geometry.height=b,f=0;f<k.children.length;f++)n=k.children[f],n.geometry&&(n.geometry.y+=b);t&&a.createLabelSubShape(c,k);c=a.getRotation();if(0!==c)for(f=
+k.getGeometry(),q=f.width/2,t=f.height/2,f=0;f<k.getChildCount();f++)n=k.getChildAt(f),g.mxgraph.online.Utils.rotatedGeometry(n.getGeometry(),c,q,t);(function(K,L,S){null==K.entries&&(K.entries=[]);for(var R=0;R<K.entries.length;R++)if(null!=K.entries[R].key.equals&&K.entries[R].key.equals(L)||K.entries[R].key===L){K.entries[R].value=S;return}K.entries.push({key:L,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(d,
a.getId()),k);return k};m.rotatedEdgePoint=function(c,a,b,d){a=a*Math.PI/180;var f=Math.cos(a);a=Math.sin(a);var k=c.x-b,n=c.y-d;c.x=Math.round(k*f-n*a+b);c.y=Math.round(n*f+k*a+d)};m.prototype.addVertex=function(c,a,b,d,f){var k="",n=a.isDisplacedLabel()||a.isRotatedLabel();n||(k=a.getTextLabel());var q=a.getDimensions(),t=a.getStyleFromShape();t.html="1";var A=t.hasOwnProperty(mxConstants.STYLE_SHAPE)||t.hasOwnProperty("stencil");t.hasOwnProperty(mxConstants.STYLE_FILLCOLOR)&&A||(t[mxConstants.STYLE_FILLCOLOR]=
"none");A||(t[mxConstants.STYLE_STROKECOLOR]="none");t.hasOwnProperty(mxConstants.STYLE_GRADIENTCOLOR)&&A||(t[mxConstants.STYLE_GRADIENTCOLOR]="none");t[mxConstants.STYLE_WHITE_SPACE]="wrap";f=a.getOriginPoint(f,!0);return A||null!=k?(t=g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(t,"="),A=null,A=n?c.insertVertex(b,null,null,Math.floor(Math.round(100*f.x)/100),Math.floor(Math.round(100*f.y)/100),Math.floor(Math.round(100*q.x)/100),Math.floor(Math.round(100*q.y)/100),t):c.insertVertex(b,null,k,Math.floor(Math.round(100*
-f.x)/100),Math.floor(Math.round(100*f.y)/100),Math.floor(Math.round(100*q.x)/100),Math.floor(Math.round(100*q.y)/100),t),function(C,I,N){null==C.entries&&(C.entries=[]);for(var K=0;K<C.entries.length;K++)if(null!=C.entries[K].key.equals&&C.entries[K].key.equals(I)||C.entries[K].key===I){C.entries[K].value=N;return}C.entries.push({key:I,value:N,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(d,a.getId()),A),a.setLabelOffset(A,
+f.x)/100),Math.floor(Math.round(100*f.y)/100),Math.floor(Math.round(100*q.x)/100),Math.floor(Math.round(100*q.y)/100),t),function(C,I,Q){null==C.entries&&(C.entries=[]);for(var K=0;K<C.entries.length;K++)if(null!=C.entries[K].key.equals&&C.entries[K].key.equals(I)||C.entries[K].key===I){C.entries[K].value=Q;return}C.entries.push({key:I,value:Q,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(d,a.getId()),A),a.setLabelOffset(A,
t),n&&a.createLabelSubShape(c,A),A):null};m.calculateAbsolutePoint=function(c){for(var a=0,b=0;null!=c;){var d=c.geometry;null!=d&&(a+=d.x,b+=d.y);c=c.parent}return new mxPoint(a,b)};m.prototype.processEdgeGeo=function(c,a){try{var b=c.geomList.geomList[0].rows;for(c=0;c<b.length;c++)if(b[c]instanceof g.mxgraph.io.vsdx.geometry.ArcTo){a.style+="jumpStyle=arc;";break}for(c=0;c<b.length;c++);}catch(d){}};m.prototype.addConnectedEdge=function(c,a,b,d){var f=a.getFromSheet();f=new g.mxgraph.io.vsdx.ShapePageId(b,
-f);var k=function(J,M){null==J.entries&&(J.entries=[]);for(var L=0;L<J.entries.length;L++)if(null!=J.entries[L].key.equals&&J.entries[L].key.equals(M)||J.entries[L].key===M)return J.entries[L].value;return null}(this.edgeShapeMap,f);if(null==k)return null;var n=function(J,M){null==J.entries&&(J.entries=[]);for(var L=0;L<J.entries.length;L++)if(null!=J.entries[L].key.equals&&J.entries[L].key.equals(M)||J.entries[L].key===M)return J.entries[L].value;return null}(this.parentsMap,new g.mxgraph.io.vsdx.ShapePageId(b,
-k.getId()));if(null!=n){var q=c.getModel().getGeometry(n);null!=q&&(d=q.height)}var t=k.getStartXY(d),A=k.getEndXY(d);q=k.getRoutingPoints(d,t,k.getRotation());this.rotateChildEdge(c.getModel(),n,t,A,q);var C=null,I=a.getSourceToSheet();I=null!=I?function(J,M){null==J.entries&&(J.entries=[]);for(var L=0;L<J.entries.length;L++)if(null!=J.entries[L].key.equals&&J.entries[L].key.equals(M)||J.entries[L].key===M)return J.entries[L].value;return null}(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(b,
-I)):null;var N=!0;if(null==I||0==I.geometry.width||0==I.geometry.height)I=c.insertVertex(n,null,null,Math.floor(Math.round(100*t.x)/100),Math.floor(Math.round(100*t.y)/100),0,0);else if(I.style&&-1==I.style.indexOf(";rotation=")){C=m.calculateAbsolutePoint(I);var K=m.calculateAbsolutePoint(n),O=I.geometry;C=new mxPoint((K.x+t.x-C.x)/O.width,(K.y+t.y-C.y)/O.height)}else N=!1;t=null;a=a.getTargetToSheet();a=null!=a?function(J,M){null==J.entries&&(J.entries=[]);for(var L=0;L<J.entries.length;L++)if(null!=
-J.entries[L].key.equals&&J.entries[L].key.equals(M)||J.entries[L].key===M)return J.entries[L].value;return null}(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(b,a)):null;K=!0;null==a||0==a.geometry.width||0==a.geometry.height?a=c.insertVertex(n,null,null,Math.floor(Math.round(100*A.x)/100),Math.floor(Math.round(100*A.y)/100),0,0):a.style&&-1==a.style.indexOf(";rotation=")?(b=m.calculateAbsolutePoint(a),t=m.calculateAbsolutePoint(n),O=a.geometry,t=new mxPoint((t.x+A.x-b.x)/O.width,(t.y+A.y-b.y)/
-O.height)):K=!1;b=k.getStyleFromEdgeShape(d);O=k.getRotation();A="";var S=k.isDisplacedLabel()||k.isRotatedLabel()||0!==O,H=k.getLblEdgeOffset(c.getView(),q);S||(A=k.getTextLabel(!0));A=c.insertEdge(n,null,A,I,a,g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(b,"="));S?h(c,A,k,O,H):A.getGeometry().offset=H;null!=C&&c.setConnectionConstraint(A,I,!0,new mxConnectionConstraint(C,!1));N&&q.shift();null!=t&&c.setConnectionConstraint(A,a,!1,new mxConnectionConstraint(t,!1));K&&q.pop();N=c.getModel().getGeometry(A);
-if(I.parent!=a.parent&&null!=n&&1!=n.id&&1==I.parent.id){a=C=0;do t=n.geometry,null!=t&&(C+=t.x,a+=t.y),n=n.parent;while(null!=n);A.parent=I.parent;for(n=0;n<q.length;n++)q[n].x+=C,q[n].y+=a}N.points=q;b.hasOwnProperty("curved")&&function(J,M){return J&&J.equals?J.equals(M):J===M}(function(J,M){return J[M]?J[M]:null}(b,"curved"),"1")&&(N=c.getModel().getGeometry(A),d=k.getControlPoints(d),N.points=d);this.processEdgeGeo(k,A);k=this.layerIndexToNames(k.layerMember);null!=k&&c.addTagsForCells([A],k);
+f);var k=function(H,N){null==H.entries&&(H.entries=[]);for(var J=0;J<H.entries.length;J++)if(null!=H.entries[J].key.equals&&H.entries[J].key.equals(N)||H.entries[J].key===N)return H.entries[J].value;return null}(this.edgeShapeMap,f);if(null==k)return null;var n=function(H,N){null==H.entries&&(H.entries=[]);for(var J=0;J<H.entries.length;J++)if(null!=H.entries[J].key.equals&&H.entries[J].key.equals(N)||H.entries[J].key===N)return H.entries[J].value;return null}(this.parentsMap,new g.mxgraph.io.vsdx.ShapePageId(b,
+k.getId()));if(null!=n){var q=c.getModel().getGeometry(n);null!=q&&(d=q.height)}var t=k.getStartXY(d),A=k.getEndXY(d);q=k.getRoutingPoints(d,t,k.getRotation());this.rotateChildEdge(c.getModel(),n,t,A,q);var C=null,I=a.getSourceToSheet();I=null!=I?function(H,N){null==H.entries&&(H.entries=[]);for(var J=0;J<H.entries.length;J++)if(null!=H.entries[J].key.equals&&H.entries[J].key.equals(N)||H.entries[J].key===N)return H.entries[J].value;return null}(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(b,
+I)):null;var Q=!0;if(null==I||0==I.geometry.width||0==I.geometry.height)I=c.insertVertex(n,null,null,Math.floor(Math.round(100*t.x)/100),Math.floor(Math.round(100*t.y)/100),0,0);else if(I.style&&-1==I.style.indexOf(";rotation=")){C=m.calculateAbsolutePoint(I);var K=m.calculateAbsolutePoint(n),L=I.geometry;C=new mxPoint((K.x+t.x-C.x)/L.width,(K.y+t.y-C.y)/L.height)}else Q=!1;t=null;a=a.getTargetToSheet();a=null!=a?function(H,N){null==H.entries&&(H.entries=[]);for(var J=0;J<H.entries.length;J++)if(null!=
+H.entries[J].key.equals&&H.entries[J].key.equals(N)||H.entries[J].key===N)return H.entries[J].value;return null}(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(b,a)):null;K=!0;null==a||0==a.geometry.width||0==a.geometry.height?a=c.insertVertex(n,null,null,Math.floor(Math.round(100*A.x)/100),Math.floor(Math.round(100*A.y)/100),0,0):a.style&&-1==a.style.indexOf(";rotation=")?(b=m.calculateAbsolutePoint(a),t=m.calculateAbsolutePoint(n),L=a.geometry,t=new mxPoint((t.x+A.x-b.x)/L.width,(t.y+A.y-b.y)/
+L.height)):K=!1;b=k.getStyleFromEdgeShape(d);L=k.getRotation();A="";var S=k.isDisplacedLabel()||k.isRotatedLabel()||0!==L,R=k.getLblEdgeOffset(c.getView(),q);S||(A=k.getTextLabel(!0));A=c.insertEdge(n,null,A,I,a,g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(b,"="));S?h(c,A,k,L,R):A.getGeometry().offset=R;null!=C&&c.setConnectionConstraint(A,I,!0,new mxConnectionConstraint(C,!1));Q&&q.shift();null!=t&&c.setConnectionConstraint(A,a,!1,new mxConnectionConstraint(t,!1));K&&q.pop();Q=c.getModel().getGeometry(A);
+if(I.parent!=a.parent&&null!=n&&1!=n.id&&1==I.parent.id){a=C=0;do t=n.geometry,null!=t&&(C+=t.x,a+=t.y),n=n.parent;while(null!=n);A.parent=I.parent;for(n=0;n<q.length;n++)q[n].x+=C,q[n].y+=a}Q.points=q;b.hasOwnProperty("curved")&&function(H,N){return H&&H.equals?H.equals(N):H===N}(function(H,N){return H[N]?H[N]:null}(b,"curved"),"1")&&(Q=c.getModel().getGeometry(A),d=k.getControlPoints(d),Q.points=d);this.processEdgeGeo(k,A);k=this.layerIndexToNames(k.layerMember);null!=k&&c.addTagsForCells([A],k);
return f};m.prototype.addUnconnectedEdge=function(c,a,b,d){if(null!=a){var f=c.getModel().getGeometry(a);null!=f&&(d=f.height)}f=b.getStartXY(d);var k=b.getEndXY(d),n=b.getStyleFromEdgeShape(d),q=b.getRoutingPoints(d,f,b.getRotation()),t=b.getRotation();var A="";var C=b.isDisplacedLabel()||b.isRotatedLabel()||0!==t,I=b.getLblEdgeOffset(c.getView(),q);C||(A=b.getTextLabel(!0));0===b.getShapeIndex()?A=c.insertEdge(a,null,A,null,null,g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(n,"=")):(A=c.createEdge(a,
-null,A,null,null,g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(n,"=")),A=c.addEdge(A,a,null,null,b.getShapeIndex()+this.shapeIndexShift++));C?h(c,A,b,t,I):A.getGeometry().offset=I;this.rotateChildEdge(c.getModel(),a,f,k,q);a=c.getModel().getGeometry(A);q.pop();q.shift();a.points=q;a.setTerminalPoint(f,!0);a.setTerminalPoint(k,!1);n.hasOwnProperty("curved")&&function(N,K){return N&&N.equals?N.equals(K):N===K}(function(N,K){return N[K]?N[K]:null}(n,"curved"),"1")&&(a=c.getModel().getGeometry(A),c=b.getControlPoints(d),
+null,A,null,null,g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(n,"=")),A=c.addEdge(A,a,null,null,b.getShapeIndex()+this.shapeIndexShift++));C?h(c,A,b,t,I):A.getGeometry().offset=I;this.rotateChildEdge(c.getModel(),a,f,k,q);a=c.getModel().getGeometry(A);q.pop();q.shift();a.points=q;a.setTerminalPoint(f,!0);a.setTerminalPoint(k,!1);n.hasOwnProperty("curved")&&function(Q,K){return Q&&Q.equals?Q.equals(K):Q===K}(function(Q,K){return Q[K]?Q[K]:null}(n,"curved"),"1")&&(a=c.getModel().getGeometry(A),c=b.getControlPoints(d),
a.points=c);this.processEdgeGeo(b,A);return A};m.prototype.rotateChildEdge=function(c,a,b,d,f){if(null!=a){var k=c.getGeometry(a);c=c.getStyle(a);if(null!=k&&null!=c&&(a=c.indexOf("rotation="),-1<a))for(c=parseFloat(c.substring(a+9,c.indexOf(";",a))),a=k.width/2,k=k.height/2,m.rotatedEdgePoint(b,c,a,k),m.rotatedEdgePoint(d,c,a,k),b=0;b<f.length;b++)m.rotatedEdgePoint(f[b],c,a,k)}};m.prototype.sanitiseGraph=function(c){var a=c.getModel().getRoot();this.sanitiseCell(c,a)};m.prototype.sanitiseCell=function(c,
a){for(var b=c.getModel(),d=b.getChildCount(a),f=[],k=0;k<d;k++){var n=b.getChildAt(a,k);this.sanitiseCell(c,n)&&f.push(n)}for(c=0;c<f.length;c++)b.remove(f[c]);f=a.geometry;null!=f&&(0>f.height&&(f.height=Math.abs(f.height),f.y-=f.height,a.style+=";flipV=1;"),0>f.width&&(f.width=Math.abs(f.width),f.x-=f.width,a.style+=";flipH=1;"));0<d&&(d=b.getChildCount(a));f=(new String(b.getValue(a))).toString();c=b.getStyle(a);return 0!==d||!b.isVertex(a)||null!=b.getValue(a)&&0!==f.length||null==c||-1==c.indexOf(mxConstants.STYLE_FILLCOLOR+
"=none")||-1==c.indexOf(mxConstants.STYLE_STROKECOLOR+"=none")||-1!=c.indexOf("image=")?!1:!0};return m}();z.mxVsdxCodec=B;B.__class="com.mxgraph.io.mxVsdxCodec"})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));
-(function(g){(function(y){(function(z){var B=function(m){function h(c){var a=m.call(this)||this;a.RESPONSE_END="";a.RESPONSE_DIAGRAM_START="";a.RESPONSE_DIAGRAM_END="";a.RESPONSE_HEADER="";a.editorUi=c;return a}__extends(h,m);h.prototype.decodeVssx=function(c,a,b,d){var f=this,k="<mxlibrary>[";this.decodeVsdx(c,function(n){k=k.concat(n);var q=f.vsdxModel.getMasterShapes(),t=function(O){var S=0;return{next:function(){return S<O.length?O[S++]:null},hasNext:function(){return S<O.length}}}(function(O){var S=
-[];null==O.entries&&(O.entries=[]);for(var H=0;H<O.entries.length;H++)S.push(O.entries[H].value);return S}(f.vsdxModel.getPages())).next();if(null!=q){var A={str:"",toString:function(){return this.str}},C=0===n.length?"":",",I=function(O){return Object.keys(O).map(function(S){return O[S]})}(q);n=function(O){O=I[O];var S=N.createMxGraph(),H=1;if(null!=O.pageSheet){var J=H=1,M=O.pageSheet.DrawingScale;null!=M&&(H=parseFloat(M.getAttribute("V"))||1);M=O.pageSheet.PageScale;null!=M&&(J=parseFloat(M.getAttribute("V"))||
-1);H=J/H}J=!1;for(M=0;null!=O.firstLevelShapes&&M<O.firstLevelShapes.length;M++){var L=O.firstLevelShapes[M].getShape(),Q=new g.mxgraph.io.vsdx.VsdxShape(t,L,!t.isEdge(L),q,null,N.vsdxModel);L=null;if(Q.isVertex()){N.edgeShapeMap.entries=[];N.parentsMap.entries=[];L=N.addShape(S,Q,S.getDefaultParent(),0,1169);Q=function(U){null==U.entries&&(U.entries=[]);return U.entries}(N.edgeShapeMap);for(var ca=0;ca<Q.length;ca++){var W=Q[ca],R=function(U,ia){null==U.entries&&(U.entries=[]);for(var ba=0;ba<U.entries.length;ba++)if(null!=
-U.entries[ba].key.equals&&U.entries[ba].key.equals(ia)||U.entries[ba].key===ia)return U.entries[ba].value;return null}(N.parentsMap,W.getKey());N.addUnconnectedEdge(S,R,W.getValue(),1169)}}else L=N.addUnconnectedEdge(S,null,Q,1169);J|=null!=L}if(J){N.scaleGraph(S,H);H=N.normalizeGraph(S);N.sanitiseGraph(S);if(0===S.getModel().getChildCount(S.getDefaultParent()))return"continue";A.str=A.str.concat(C);A.str=A.str.concat('{"xml":"');S=m.prototype.processPage.call(N,S,null);A.str=A.str.concat(S);A.str=
-A.str.concat('","w":');A.str=A.str.concat(H.width);A.str=A.str.concat(',"h":');A.str=A.str.concat(H.height);A.str=A.str.concat(',"title":');O=O.getName();null==O&&(O="");O=mxUtils.htmlEntities(JSON.stringify(O));A.str=A.str.concat(O);A.str=A.str.concat("}");C=","}};for(var N=f,K=0;K<I.length;K++)n(K);k=k.concat(A)}k=k.concat("]</mxlibrary>");if(a)try{a(k)}catch(O){null!=d?d(O):a("")}},b)};h.prototype.normalizeGeo=function(c){var a=c.getGeometry();a.x=0;a.y=0;var b=a.sourcePoint;if(c.isEdge()&&null!=
+(function(g){(function(y){(function(z){var B=function(m){function h(c){var a=m.call(this)||this;a.RESPONSE_END="";a.RESPONSE_DIAGRAM_START="";a.RESPONSE_DIAGRAM_END="";a.RESPONSE_HEADER="";a.editorUi=c;return a}__extends(h,m);h.prototype.decodeVssx=function(c,a,b,d){var f=this,k="<mxlibrary>[";this.decodeVsdx(c,function(n){k=k.concat(n);var q=f.vsdxModel.getMasterShapes(),t=function(L){var S=0;return{next:function(){return S<L.length?L[S++]:null},hasNext:function(){return S<L.length}}}(function(L){var S=
+[];null==L.entries&&(L.entries=[]);for(var R=0;R<L.entries.length;R++)S.push(L.entries[R].value);return S}(f.vsdxModel.getPages())).next();if(null!=q){var A={str:"",toString:function(){return this.str}},C=0===n.length?"":",",I=function(L){return Object.keys(L).map(function(S){return L[S]})}(q);n=function(L){L=I[L];var S=Q.createMxGraph(),R=1;if(null!=L.pageSheet){var H=R=1,N=L.pageSheet.DrawingScale;null!=N&&(R=parseFloat(N.getAttribute("V"))||1);N=L.pageSheet.PageScale;null!=N&&(H=parseFloat(N.getAttribute("V"))||
+1);R=H/R}H=!1;for(N=0;null!=L.firstLevelShapes&&N<L.firstLevelShapes.length;N++){var J=L.firstLevelShapes[N].getShape(),M=new g.mxgraph.io.vsdx.VsdxShape(t,J,!t.isEdge(J),q,null,Q.vsdxModel);J=null;if(M.isVertex()){Q.edgeShapeMap.entries=[];Q.parentsMap.entries=[];J=Q.addShape(S,M,S.getDefaultParent(),0,1169);M=function(P){null==P.entries&&(P.entries=[]);return P.entries}(Q.edgeShapeMap);for(var T=0;T<M.length;T++){var ca=M[T],V=function(P,ea){null==P.entries&&(P.entries=[]);for(var Y=0;Y<P.entries.length;Y++)if(null!=
+P.entries[Y].key.equals&&P.entries[Y].key.equals(ea)||P.entries[Y].key===ea)return P.entries[Y].value;return null}(Q.parentsMap,ca.getKey());Q.addUnconnectedEdge(S,V,ca.getValue(),1169)}}else J=Q.addUnconnectedEdge(S,null,M,1169);H|=null!=J}if(H){Q.scaleGraph(S,R);R=Q.normalizeGraph(S);Q.sanitiseGraph(S);if(0===S.getModel().getChildCount(S.getDefaultParent()))return"continue";A.str=A.str.concat(C);A.str=A.str.concat('{"xml":"');S=m.prototype.processPage.call(Q,S,null);A.str=A.str.concat(S);A.str=
+A.str.concat('","w":');A.str=A.str.concat(R.width);A.str=A.str.concat(',"h":');A.str=A.str.concat(R.height);A.str=A.str.concat(',"title":');L=L.getName();null==L&&(L="");L=mxUtils.htmlEntities(JSON.stringify(L));A.str=A.str.concat(L);A.str=A.str.concat("}");C=","}};for(var Q=f,K=0;K<I.length;K++)n(K);k=k.concat(A)}k=k.concat("]</mxlibrary>");if(a)try{a(k)}catch(L){null!=d?d(L):a("")}},b)};h.prototype.normalizeGeo=function(c){var a=c.getGeometry();a.x=0;a.y=0;var b=a.sourcePoint;if(c.isEdge()&&null!=
b){this.transPoint(a.targetPoint,b);this.transPoint(a.offset,b);c=a.points;if(null!=c)for(var d=0;d<c.length;d++)this.transPoint(c[d],b);this.transPoint(b,b)}return a};h.prototype.normalizeGraph=function(c){function a(C){null!=C&&(null==b?(b=C.x,d=C.y,f=C.x+(C.width||0),k=C.y+(C.height||0)):(b=Math.min(C.x,b),d=Math.min(C.y,d),f=Math.max(C.x+(C.width||0),f),k=Math.max(C.y+(C.height||0),k)))}var b,d,f,k,n;for(n in c.model.cells){var q=c.model.cells[n],t=q.geometry;if(null!=t&&1==q.parent.id)if(q.vertex)a(t);
else for(a(t.sourcePoint),a(t.targetPoint),q=t.points,t=0;null!=q&&t<q.length;t++)a(q[t])}var A={x:b,y:d};for(n in c.model.cells)if(q=c.model.cells[n],t=q.geometry,null!=t&&1==q.parent.id&&(t.x-=b,t.y-=d,q.isEdge()))for(this.transPoint(t.sourcePoint,A),this.transPoint(t.targetPoint,A),this.transPoint(t.offset,A),q=t.points,t=0;null!=q&&t<q.length;t++)this.transPoint(q[t],A);return{width:f-b,height:k-d}};h.prototype.transPoint=function(c,a){null!=c&&(c.x-=a.x,c.y-=a.y)};h.prototype.processPage=function(c,
a){var b=c.getModel(),d="",f="";for(q in b.cells){var k=b.cells[q];if(c.getDefaultParent()===b.getParent(k)){d=d.concat(f);d=d.concat('{"xml":"');var n=this.createMxGraph();n.addCell(k);this.sanitiseGraph(n);if(0===n.getModel().getChildCount(n.getDefaultParent()))return"continue";f=this.normalizeGeo(k);n=m.prototype.processPage.call(this,n,null);d=d.concat(n);d=d.concat('","w":');d=d.concat(f.width);d=d.concat(',"h":');d=d.concat(f.height);d=d.concat(',"title":"');f=b.getStyle(k);k="";if(null!=f&&
@@ -1186,9 +1186,9 @@ a){var b=c.getModel(),d="",f="";for(q in b.cells){var k=b.cells[q];if(c.getDefau
(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function c(a,b,d){this.formulaE=this.formulaA=this.d=this.c=this.b=this.a=this.y=this.x=null;this.index=0;this.index=a;this.x=b;this.y=d}c.prototype.getX=function(){return this.x};c.prototype.getY=function(){return this.y};c.prototype.getA=function(){return this.a};c.prototype.getB=function(){return this.b};c.prototype.getC=function(){return this.c};c.prototype.getD=function(){return this.d};c.prototype.getFormulaA=
function(){return this.formulaA};c.prototype.getFormulaE=function(){return this.formulaE};c.prototype.getIndex=function(){return this.index};return c}();m.Row=h;h.__class="com.mxgraph.io.vsdx.geometry.Row"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));
(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function c(){}c.getIndex=function(a){try{return parseInt(a.getAttribute("IX"))||1}catch(b){return 1}};c.getDoubleVal=function(a){try{if(null!=a&&0!==a.length){var b=parseFloat(a);if(isFinite(b))return b}}catch(d){}return null};c.getRowObj=function(a,b){var d=a.getAttribute("T"),f=c.getIndex(a);var k=(k=a.getAttribute("Del"))&&k.equals?k.equals("1"):"1"===k;if(!k){var n=null;f<=b.length&&(n=b[f-1]);var q=k=b=null,t=null,
-A=null,C=null,I=null,N=null;null!=n&&(b=n.x,k=n.y,q=n.getA(),t=n.getB(),A=n.getC(),C=n.getD(),N=n.getFormulaA(),I=n.getFormulaE());a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a);for(n=0;n<a.length;n++){var K=a[n],O=K.getAttribute("N"),S=K.getAttribute("V");switch(O){case "X":b=c.getDoubleVal(S);break;case "Y":k=c.getDoubleVal(S);break;case "A":q=c.getDoubleVal(S);N=K.getAttribute("V");break;case "B":t=c.getDoubleVal(S);break;case "C":A=c.getDoubleVal(S);break;case "D":C=c.getDoubleVal(S);
+A=null,C=null,I=null,Q=null;null!=n&&(b=n.x,k=n.y,q=n.getA(),t=n.getB(),A=n.getC(),C=n.getD(),Q=n.getFormulaA(),I=n.getFormulaE());a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a);for(n=0;n<a.length;n++){var K=a[n],L=K.getAttribute("N"),S=K.getAttribute("V");switch(L){case "X":b=c.getDoubleVal(S);break;case "Y":k=c.getDoubleVal(S);break;case "A":q=c.getDoubleVal(S);Q=K.getAttribute("V");break;case "B":t=c.getDoubleVal(S);break;case "C":A=c.getDoubleVal(S);break;case "D":C=c.getDoubleVal(S);
break;case "E":I=S}}switch(d){case "MoveTo":return new g.mxgraph.io.vsdx.geometry.MoveTo(f,b,k);case "LineTo":return new g.mxgraph.io.vsdx.geometry.LineTo(f,b,k);case "ArcTo":return new g.mxgraph.io.vsdx.geometry.ArcTo(f,b,k,q);case "Ellipse":return new g.mxgraph.io.vsdx.geometry.Ellipse(f,b,k,q,t,A,C);case "EllipticalArcTo":return new g.mxgraph.io.vsdx.geometry.EllipticalArcTo(f,b,k,q,t,A,C);case "InfiniteLine":return new g.mxgraph.io.vsdx.geometry.InfiniteLine(f,b,k,q,t);case "NURBSTo":return new g.mxgraph.io.vsdx.geometry.NURBSTo(f,
-b,k,q,t,A,C,I);case "PolylineTo":return new g.mxgraph.io.vsdx.geometry.PolylineTo(f,b,k,N);case "RelCubBezTo":return new g.mxgraph.io.vsdx.geometry.RelCubBezTo(f,b,k,q,t,A,C);case "RelEllipticalArcTo":return new g.mxgraph.io.vsdx.geometry.RelEllipticalArcTo(f,b,k,q,t,A,C);case "RelLineTo":return new g.mxgraph.io.vsdx.geometry.RelLineTo(f,b,k);case "RelMoveTo":return new g.mxgraph.io.vsdx.geometry.RelMoveTo(f,b,k);case "RelQuadBezTo":return new g.mxgraph.io.vsdx.geometry.RelQuadBezTo(f,b,k,q,t);case "SplineKnot":return new g.mxgraph.io.vsdx.geometry.SplineKnot(f,
+b,k,q,t,A,C,I);case "PolylineTo":return new g.mxgraph.io.vsdx.geometry.PolylineTo(f,b,k,Q);case "RelCubBezTo":return new g.mxgraph.io.vsdx.geometry.RelCubBezTo(f,b,k,q,t,A,C);case "RelEllipticalArcTo":return new g.mxgraph.io.vsdx.geometry.RelEllipticalArcTo(f,b,k,q,t,A,C);case "RelLineTo":return new g.mxgraph.io.vsdx.geometry.RelLineTo(f,b,k);case "RelMoveTo":return new g.mxgraph.io.vsdx.geometry.RelMoveTo(f,b,k);case "RelQuadBezTo":return new g.mxgraph.io.vsdx.geometry.RelQuadBezTo(f,b,k,q,t);case "SplineKnot":return new g.mxgraph.io.vsdx.geometry.SplineKnot(f,
b,k,q);case "SplineStart":return new g.mxgraph.io.vsdx.geometry.SplineStart(f,b,k,q,t,A,C)}}return new g.mxgraph.io.vsdx.geometry.DelRow(f)};return c}();m.RowFactory=h;h.__class="com.mxgraph.io.vsdx.geometry.RowFactory"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));
(function(g){(function(y){(function(z){(function(B){var m=function(){function h(){this.colorElementMap={};this.fontElementMap={}}h.__static_initialize=function(){h.__static_initialized||(h.__static_initialized=!0,h.__static_initializer_0())};h.defaultColors_$LI$=function(){h.__static_initialize();null==h.defaultColors&&(h.defaultColors={});return h.defaultColors};h.__static_initializer_0=function(){h.defaultColors_$LI$()["0"]="#000000";h.defaultColors_$LI$()["1"]="#FFFFFF";h.defaultColors_$LI$()["2"]=
"#FF0000";h.defaultColors_$LI$()["3"]="#00FF00";h.defaultColors_$LI$()["4"]="#0000FF";h.defaultColors_$LI$()["5"]="#FFFF00";h.defaultColors_$LI$()["6"]="#FF00FF";h.defaultColors_$LI$()["7"]="#00FFFF";h.defaultColors_$LI$()["8"]="#800000";h.defaultColors_$LI$()["9"]="#008000";h.defaultColors_$LI$()["10"]="#000080";h.defaultColors_$LI$()["11"]="#808000";h.defaultColors_$LI$()["12"]="#800080";h.defaultColors_$LI$()["13"]="#008080";h.defaultColors_$LI$()["14"]="#C0C0C0";h.defaultColors_$LI$()["15"]="#E6E6E6";
@@ -1374,9 +1374,9 @@ q=this.b*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();q=b-q;var t=this.
'" y="'+(new String(b)).toString()+'"/><arc rx="'+(new String(f)).toString()+'" ry="'+(new String(A)).toString()+'" x="'+(new String(k)).toString()+'" y="'+(new String(b)).toString()+'" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0"/><arc rx="'+(new String(f)).toString()+'" ry="'+(new String(A)).toString()+'" x="'+(new String(t)).toString()+'" y="'+(new String(b)).toString()+'" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0"/>'}return""};return a}(g.mxgraph.io.vsdx.geometry.Row);m.Ellipse=
h;h.__class="com.mxgraph.io.vsdx.geometry.Ellipse"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));
(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(c){function a(b,d,f,k,n,q,t){b=c.call(this,b,d,f)||this;b.a=k;b.b=n;b.c=q;b.d=t;return b}__extends(a,c);a.prototype.handle=function(b,d){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var f=d.getHeight(),k=d.getWidth();b=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();var n=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();n=f-n;var q=this.a*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),
-t=this.b*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),A=this.c,C=this.d;b=100*b/k;n=100*n/f;var I=d.getLastX()*k/100,N=d.getLastY()*f/100,K=b*k/100,O=n*f/100,S=f-t,H=-A;A=Math.sqrt(I*I+N*N)*Math.cos(Math.atan2(N,I)-H);t=Math.sqrt(I*I+N*N)*Math.sin(Math.atan2(N,I)-H);var J=Math.sqrt(K*K+O*O)*Math.cos(Math.atan2(O,K)-H),M=Math.sqrt(K*K+O*O)*Math.sin(Math.atan2(O,K)-H),L=Math.sqrt(q*q+S*S)*Math.cos(Math.atan2(S,q)-H),Q=Math.sqrt(q*q+S*S)*Math.sin(Math.atan2(S,q)-H),ca=((A-J)*(A+J)*(M-Q)-(J-
-L)*(J+L)*(t-M)+C*C*(t-M)*(M-Q)*(t-Q))/(2*((A-J)*(M-Q)-(J-L)*(t-M))),W=((A-J)*(J-L)*(A-L)/(C*C)+(J-L)*(t-M)*(t+M)-(A-J)*(M-Q)*(M+Q))/(2*((J-L)*(t-M)-(A-J)*(M-Q))),R=A-ca,U=t-W;R=Math.sqrt(R*R+U*U*C*C);C=R/C;H=180*H/Math.PI;b=Math.round(100*b)/100;n=Math.round(100*n)/100;R=Math.round(100*R/k*100)/100;C=Math.round(100*C/f*100)/100;H=Math.round(100*H)/100;f=0<(K-I)*(S-N)-(O-N)*(q-I)?"0":"1";k="0";g.mxgraph.io.vsdx.mxVsdxUtils.isInsideTriangle(ca,W,A,t,J,M,L,Q)&&(k="1");d.setLastX(b);d.setLastY(n);return'<arc rx="'+
-(new String(R)).toString()+'" ry="'+(new String(C)).toString()+'" x="'+(new String(b)).toString()+'" y="'+(new String(n)).toString()+'" x-axis-rotation="'+(new String(H)).toString()+'" large-arc-flag="'+k+'" sweep-flag="'+f+'"/>'}return""};a.prototype.isReflexAngle=function(b,d,f,k,n,q,t,A){f-=b;k-=d;q-=d;n=t-b;A-=d;d=b=0;f=180*(Math.atan2(k,f)-Math.atan2(d,b))/Math.PI;n=180*(Math.atan2(q,n)-Math.atan2(d,b))/Math.PI;b=180*(Math.atan2(A,t)-Math.atan2(d,b))/Math.PI;f=(f-b)%360;n=(n-b)%360;180<f?f-=
+t=this.b*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),A=this.c,C=this.d;b=100*b/k;n=100*n/f;var I=d.getLastX()*k/100,Q=d.getLastY()*f/100,K=b*k/100,L=n*f/100,S=f-t,R=-A;A=Math.sqrt(I*I+Q*Q)*Math.cos(Math.atan2(Q,I)-R);t=Math.sqrt(I*I+Q*Q)*Math.sin(Math.atan2(Q,I)-R);var H=Math.sqrt(K*K+L*L)*Math.cos(Math.atan2(L,K)-R),N=Math.sqrt(K*K+L*L)*Math.sin(Math.atan2(L,K)-R),J=Math.sqrt(q*q+S*S)*Math.cos(Math.atan2(S,q)-R),M=Math.sqrt(q*q+S*S)*Math.sin(Math.atan2(S,q)-R),T=((A-H)*(A+H)*(N-M)-(H-J)*
+(H+J)*(t-N)+C*C*(t-N)*(N-M)*(t-M))/(2*((A-H)*(N-M)-(H-J)*(t-N))),ca=((A-H)*(H-J)*(A-J)/(C*C)+(H-J)*(t-N)*(t+N)-(A-H)*(N-M)*(N+M))/(2*((H-J)*(t-N)-(A-H)*(N-M))),V=A-T,P=t-ca;V=Math.sqrt(V*V+P*P*C*C);C=V/C;R=180*R/Math.PI;b=Math.round(100*b)/100;n=Math.round(100*n)/100;V=Math.round(100*V/k*100)/100;C=Math.round(100*C/f*100)/100;R=Math.round(100*R)/100;f=0<(K-I)*(S-Q)-(L-Q)*(q-I)?"0":"1";k="0";g.mxgraph.io.vsdx.mxVsdxUtils.isInsideTriangle(T,ca,A,t,H,N,J,M)&&(k="1");d.setLastX(b);d.setLastY(n);return'<arc rx="'+
+(new String(V)).toString()+'" ry="'+(new String(C)).toString()+'" x="'+(new String(b)).toString()+'" y="'+(new String(n)).toString()+'" x-axis-rotation="'+(new String(R)).toString()+'" large-arc-flag="'+k+'" sweep-flag="'+f+'"/>'}return""};a.prototype.isReflexAngle=function(b,d,f,k,n,q,t,A){f-=b;k-=d;q-=d;n=t-b;A-=d;d=b=0;f=180*(Math.atan2(k,f)-Math.atan2(d,b))/Math.PI;n=180*(Math.atan2(q,n)-Math.atan2(d,b))/Math.PI;b=180*(Math.atan2(A,t)-Math.atan2(d,b))/Math.PI;f=(f-b)%360;n=(n-b)%360;180<f?f-=
360:-180>f&&(f+=360);180<n?n-=360:-180>n&&(n+=360);return(0<f&&0>n||0>f&&0<n)&&180<Math.abs(f-n)?!0:!1};return a}(g.mxgraph.io.vsdx.geometry.Row);m.EllipticalArcTo=h;h.__class="com.mxgraph.io.vsdx.geometry.EllipticalArcTo"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));
(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(c){function a(b,d,f,k,n){b=c.call(this,b,d,f)||this;b.a=k;b.b=n;return b}__extends(a,c);a.prototype.handle=function(b,d){return""};return a}(g.mxgraph.io.vsdx.geometry.Row);m.InfiniteLine=h;h.__class="com.mxgraph.io.vsdx.geometry.InfiniteLine"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));
(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(c){function a(b,d,f){return c.call(this,b,d,f)||this}__extends(a,c);a.prototype.handle=function(b,d){var f=b.x,k=b.y,n=d.getHeight(),q=d.getWidth();null!=this.x&&null!=this.y&&(f=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),k=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$());f=Math.round(100*f/q*100)/100;k=Math.round(100*(100-100*k/n))/100;b.x=f;b.y=k;d.setLastX(f);d.setLastY(k);return'<line x="'+
@@ -1460,18 +1460,18 @@ b,d)};return a}(g.mxgraph.io.vsdx.geometry.EllipticalArcTo);m.RelEllipticalArcTo
(function(g){(function(y){(function(z){(function(B){var m=function(h){function c(a,b){var d=this;d.text=null;d.fields=null;d.geom=null;d.imageData=null;d.theme=null;d.quickStyleVals=null;d=h.call(this,a,b)||this;d.paragraphs=null;d.styleMap={};d.width=0;d.height=0;d.rotation=0;d.lastX=0;d.lastY=0;d.lastMoveX=0;d.lastMoveY=0;d.lastKnot=-1;d.geomList=null;d.geomListProcessed=!1;d.themeVariant=0;d.cp="0";d.pp="0";d.tp="0";d.fld="0";d.width=d.getScreenNumericalValue$org_w3c_dom_Element$double(function(f,
k){return f[k]?f[k]:null}(d.cellElements,g.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0);d.height=d.getScreenNumericalValue$org_w3c_dom_Element$double(function(f,k){return f[k]?f[k]:null}(d.cellElements,g.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),0);return d}__extends(c,h);c.UNICODE_LINE_SEP_$LI$=function(){null==c.UNICODE_LINE_SEP&&(c.ERROR_IMAGE="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8IS0tIENyZWF0ZWQgd2l0aCBJbmtzY2FwZSAoaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvKSAtLT4NCjxzdmcNCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyINCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiDQogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiDQogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIg0KICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiDQogICB3aWR0aD0iMjUwIg0KICAgaGVpZ2h0PSIyNTAiDQogICBpZD0ic3ZnMzMxOSINCiAgIHNvZGlwb2RpOnZlcnNpb249IjAuMzIiDQogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2Ig0KICAgdmVyc2lvbj0iMS4wIg0KICAgc29kaXBvZGk6ZG9jbmFtZT0ibm9waG90b19pLnN2ZyINCiAgIGlua3NjYXBlOm91dHB1dF9leHRlbnNpb249Im9yZy5pbmtzY2FwZS5vdXRwdXQuc3ZnLmlua3NjYXBlIj4NCiAgPGRlZnMNCiAgICAgaWQ9ImRlZnMzMzIxIj4NCiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUNCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIg0KICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MjYuMTgxMDkgOiAxIg0KICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCINCiAgICAgICBpbmtzY2FwZTp2cF96PSI3NDQuMDk0NDggOiA1MjYuMTgxMDkgOiAxIg0KICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzNzIuMDQ3MjQgOiAzNTAuNzg3MzkgOiAxIg0KICAgICAgIGlkPSJwZXJzcGVjdGl2ZTMzMjciIC8+DQogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlDQogICAgICAgaWQ9InBlcnNwZWN0aXZlMzM0MiINCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMzcyLjA0NzI0IDogMzUwLjc4NzM5IDogMSINCiAgICAgICBpbmtzY2FwZTp2cF96PSI3NDQuMDk0NDggOiA1MjYuMTgxMDkgOiAxIg0KICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCINCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNTI2LjE4MTA5IDogMSINCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPg0KICA8L2RlZnM+DQogIDxzb2RpcG9kaTpuYW1lZHZpZXcNCiAgICAgaWQ9ImJhc2UiDQogICAgIHBhZ2Vjb2xvcj0iI2ZmZmZmZiINCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiDQogICAgIGJvcmRlcm9wYWNpdHk9IjEuMCINCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAuMCINCiAgICAgaW5rc2NhcGU6cGFnZXNoYWRvdz0iMiINCiAgICAgaW5rc2NhcGU6em9vbT0iMi4yNDI5NDI3Ig0KICAgICBpbmtzY2FwZTpjeD0iMTIxLjk3NjQ4Ig0KICAgICBpbmtzY2FwZTpjeT0iMTIyLjQ0MTk4Ig0KICAgICBpbmtzY2FwZTpkb2N1bWVudC11bml0cz0icHgiDQogICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9ImxheWVyMSINCiAgICAgc2hvd2dyaWQ9ImZhbHNlIg0KICAgICBpbmtzY2FwZTp3aW5kb3ctd2lkdGg9IjE2NjQiDQogICAgIGlua3NjYXBlOndpbmRvdy1oZWlnaHQ9Ijg0NCINCiAgICAgaW5rc2NhcGU6d2luZG93LXg9Ii0zIg0KICAgICBpbmtzY2FwZTp3aW5kb3cteT0iLTE4IiAvPg0KICA8bWV0YWRhdGENCiAgICAgaWQ9Im1ldGFkYXRhMzMyNCI+DQogICAgPHJkZjpSREY+DQogICAgICA8Y2M6V29yaw0KICAgICAgICAgcmRmOmFib3V0PSIiPg0KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4NCiAgICAgICAgPGRjOnR5cGUNCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4NCiAgICAgICAgPGRjOnRpdGxlPkZvdG9ncmFmaWVydmVyYm90PC9kYzp0aXRsZT4NCiAgICAgICAgPGRjOmRhdGU+MjAwOC0wNi0yOTwvZGM6ZGF0ZT4NCiAgICAgICAgPGRjOmNyZWF0b3I+DQogICAgICAgICAgPGNjOkFnZW50Pg0KICAgICAgICAgICAgPGRjOnRpdGxlPlRvcnJzdGVuIFNrb21wPC9kYzp0aXRsZT4NCiAgICAgICAgICA8L2NjOkFnZW50Pg0KICAgICAgICA8L2RjOmNyZWF0b3I+DQogICAgICAgIDxkYzpyaWdodHM+DQogICAgICAgICAgPGNjOkFnZW50Pg0KICAgICAgICAgICAgPGRjOnRpdGxlPlRvcnN0ZW4gU2tvbXA8L2RjOnRpdGxlPg0KICAgICAgICAgIDwvY2M6QWdlbnQ+DQogICAgICAgIDwvZGM6cmlnaHRzPg0KICAgICAgICA8ZGM6cHVibGlzaGVyPg0KICAgICAgICAgIDxjYzpBZ2VudD4NCiAgICAgICAgICAgIDxkYzp0aXRsZT5Ub3JzdGVuIFNrb21wPC9kYzp0aXRsZT4NCiAgICAgICAgICA8L2NjOkFnZW50Pg0KICAgICAgICA8L2RjOnB1Ymxpc2hlcj4NCiAgICAgICAgPGRjOmxhbmd1YWdlPmRlX0RFPC9kYzpsYW5ndWFnZT4NCiAgICAgICAgPGRjOnN1YmplY3Q+DQogICAgICAgICAgPHJkZjpCYWc+DQogICAgICAgICAgICA8cmRmOmxpPlBpa3RvZ3JhbW07IEZvdG9ncmFmaWVydmVyYm90PC9yZGY6bGk+DQogICAgICAgICAgPC9yZGY6QmFnPg0KICAgICAgICA8L2RjOnN1YmplY3Q+DQogICAgICAgIDxkYzpkZXNjcmlwdGlvbj5Gb3RvZ3JhZmllcnZlcmJvdCBhbHMgUGlrdG9ncmFtbSA8L2RjOmRlc2NyaXB0aW9uPg0KICAgICAgICA8Y2M6bGljZW5zZQ0KICAgICAgICAgICByZGY6cmVzb3VyY2U9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL3B1YmxpY2RvbWFpbi8iIC8+DQogICAgICA8L2NjOldvcms+DQogICAgICA8Y2M6TGljZW5zZQ0KICAgICAgICAgcmRmOmFib3V0PSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9saWNlbnNlcy9wdWJsaWNkb21haW4vIj4NCiAgICAgICAgPGNjOnBlcm1pdHMNCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyNSZXByb2R1Y3Rpb24iIC8+DQogICAgICAgIDxjYzpwZXJtaXRzDQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjRGlzdHJpYnV0aW9uIiAvPg0KICAgICAgICA8Y2M6cGVybWl0cw0KICAgICAgICAgICByZGY6cmVzb3VyY2U9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zI0Rlcml2YXRpdmVXb3JrcyIgLz4NCiAgICAgIDwvY2M6TGljZW5zZT4NCiAgICA8L3JkZjpSREY+DQogIDwvbWV0YWRhdGE+DQogIDxnDQogICAgIGlua3NjYXBlOmxhYmVsPSJFYmVuZSAxIg0KICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIg0KICAgICBpZD0ibGF5ZXIxIj4NCiAgICA8cGF0aA0KICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjEiDQogICAgICAgZD0iTSAxNjQuNTMxMjUgNjIuNjg3NSBDIDE2Mi43OTExNSA2Mi42ODc1MDEgMTYxLjM3NSA2NC4wNzI0MTYgMTYxLjM3NSA2NS44MTI1IEwgMTYxLjM3NSA2OC43NSBMIDM4LjM3NSA2OC43NSBDIDM1LjA5MjI5OCA2OC43NDk5OTkgMzIuNDY4NzUgNzEuMzczNTQ4IDMyLjQ2ODc1IDc0LjY1NjI1IEwgMzIuNDY4NzUgMTgxLjM3NSBDIDMyLjQ2ODc1IDE4NC42NTc3IDM1LjA5MjMwNyAxODcuMzEyNTEgMzguMzc1IDE4Ny4zMTI1IEwgMjExLjYyNSAxODcuMzEyNSBDIDIxNC45MDc2OSAxODcuMzEyNSAyMTcuNTMxMjcgMTg0LjY1NzcgMjE3LjUzMTI1IDE4MS4zNzUgTCAyMTcuNTMxMjUgNzQuNjU2MjUgQyAyMTcuNTMxMjUgNzEuMzczNTUxIDIxNC45MDc2OCA2OC43NSAyMTEuNjI1IDY4Ljc1IEwgMjAyLjA2MjUgNjguNzUgTCAyMDIuMDYyNSA2NS44MTI1IEMgMjAyLjA2MjUgNjQuMDcyNDEgMjAwLjY0NjM1IDYyLjY4NzUgMTk4LjkwNjI1IDYyLjY4NzUgTCAxNjQuNTMxMjUgNjIuNjg3NSB6IE0gNDYuODEyNSA3OCBMIDg4LjY1NjI1IDc4IEMgOTAuMzk2MzQyIDc4IDkxLjgxMjUgNzkuMzg0OTA3IDkxLjgxMjUgODEuMTI1IEwgOTEuODEyNSA5Ni4zMTI1IEMgOTEuODEyNSA5OC4wNTI1OTIgOTAuMzk2MzQzIDk5LjQzNzUgODguNjU2MjUgOTkuNDM3NSBMIDQ2LjgxMjUgOTkuNDM3NSBDIDQ1LjA3MjQwOCA5OS40Mzc1IDQzLjY4NzUgOTguMDUyNTkzIDQzLjY4NzUgOTYuMzEyNSBMIDQzLjY4NzUgODEuMTI1IEMgNDMuNjg3NSA3OS4zODQ5MDggNDUuMDcyNDA3IDc4IDQ2LjgxMjUgNzggeiBNIDE0NiA4OC4yMTg3NSBDIDE2Ny43MzQ3NSA4OC4yMTg3NTMgMTg1LjM3NSAxMDYuMTUwNzEgMTg1LjM3NSAxMjguMjUgQyAxODUuMzc0OTkgMTUwLjM0OTI4IDE2Ny43MzQ3NCAxNjguMjgxMjUgMTQ2IDE2OC4yODEyNSBDIDEyNC4yNjUyNyAxNjguMjgxMjYgMTA2LjYyNSAxNTAuMzQ5MjkgMTA2LjYyNSAxMjguMjUgQyAxMDYuNjI1IDEwNi4xNTA3MSAxMjQuMjY1MjYgODguMjE4NzUgMTQ2IDg4LjIxODc1IHogTSAxNDYgOTEuNzE4NzUgQyAxMjYuMTY1NTcgOTEuNzE4NzUgMTEwLjA2MjUgMTA4LjA4Mjg5IDExMC4wNjI1IDEyOC4yNSBDIDExMC4wNjI1IDE0OC40MTcxMSAxMjYuMTY1NTcgMTY0Ljc4MTI2IDE0NiAxNjQuNzgxMjUgQyAxNjUuODM0NDMgMTY0Ljc4MTI1IDE4MS45Mzc1IDE0OC40MTcxIDE4MS45Mzc1IDEyOC4yNSBDIDE4MS45Mzc1IDEwOC4wODI4OSAxNjUuODM0NDMgOTEuNzE4NzUgMTQ2IDkxLjcxODc1IHogTSAxNDYgOTYuNTkzNzUgQyAxNjMuMTc3NjggOTYuNTkzNzUyIDE3Ny4xMjUgMTEwLjc4NDIgMTc3LjEyNSAxMjguMjUgQyAxNzcuMTI0OTkgMTQ1LjcxNTggMTYzLjE3NzY5IDE1OS44NzUgMTQ2IDE1OS44NzUgQyAxMjguODIyMzEgMTU5Ljg3NSAxMTQuODc1IDE0NS43MTU4IDExNC44NzUgMTI4LjI1IEMgMTE0Ljg3NSAxMTAuNzg0MTkgMTI4LjgyMjMxIDk2LjU5Mzc1IDE0NiA5Ni41OTM3NSB6IE0gMTc2LjUgMTcyLjcxODc1IEwgMjA2LjE4NzUgMTcyLjcxODc1IEMgMjA3LjQyMTM4IDE3Mi43MTg3NSAyMDguNDA2MjUgMTczLjEyNzgzIDIwOC40MDYyNSAxNzMuNjI1IEwgMjA4LjQwNjI1IDE3Ny45Njg3NSBDIDIwOC40MDYyNSAxNzguNDY1OTIgMjA3LjQyMTM4IDE3OC44NDM3NSAyMDYuMTg3NSAxNzguODQzNzUgTCAxNzYuNSAxNzguODQzNzUgQyAxNzUuMjY2MTEgMTc4Ljg0Mzc1IDE3NC4yODEyNSAxNzguNDY1OTIgMTc0LjI4MTI1IDE3Ny45Njg3NSBMIDE3NC4yODEyNSAxNzMuNjI1IEMgMTc0LjI4MTI1IDE3My4xMjc4MyAxNzUuMjY2MTIgMTcyLjcxODc1IDE3Ni41IDE3Mi43MTg3NSB6ICINCiAgICAgICBpZD0icmVjdDMyMDkiIC8+DQogICAgPHBhdGgNCiAgICAgICBzdHlsZT0iZmlsbDojYzQyNjFkO2ZpbGwtb3BhY2l0eToxIg0KICAgICAgIGQ9Ik0gMjAgMCBDIDE4LjU1OTkzOCAwIDE3LjE2NDc0NyAwLjE1MDk4NjY2IDE1LjgxMjUgMC40Mzc1IEMgMTUuMjEwMjkxIDAuNTY1MTk1NzggMTQuNjExOTEzIDAuNzI2MjExMjYgMTQuMDMxMjUgMC45MDYyNSBDIDEzLjU1NDc3MyAxLjA1Mzk4NTIgMTMuMDg1MzQ5IDEuMjI0ODUzNiAxMi42MjUgMS40MDYyNSBDIDEyLjMyODc2NiAxLjUyMzA3MzkgMTIuMDM5MDMzIDEuNjUwOTE4MiAxMS43NSAxLjc4MTI1IEMgMTEuMzQ3Mjc4IDEuOTYyMzU5OCAxMC45NTA0MDYgMi4xMzc0MTY1IDEwLjU2MjUgMi4zNDM3NSBDIDEwLjUyMTU1NSAyLjM2NTU2ODggMTAuNDc4MjczIDIuMzg0MTU1NSAxMC40Mzc1IDIuNDA2MjUgQyAxMC40MTY5MzQgMi40MTczNzU0IDEwLjM5NTUyMiAyLjQyNjMwNDkgMTAuMzc1IDIuNDM3NSBDIDkuODMyNjg2MSAyLjczMzM0NDYgOS4zMjI2NDQ4IDMuMDYzMjQ1MiA4LjgxMjUgMy40MDYyNSBDIDguMjgzMTIyMSAzLjc2MjE4NjUgNy43NzI3NzI4IDQuMTU4OTIwOSA3LjI4MTI1IDQuNTYyNSBDIDcuMjc1MDU1IDQuNTY3NTg2NiA3LjI1NjE4ODggNC41NTc0MDYxIDcuMjUgNC41NjI1IEMgNy4yMzg1NDc5IDQuNTcxOTQzNCA3LjIzMDE4MDYgNC41ODQyODE2IDcuMjE4NzUgNC41OTM3NSBDIDcuMTA0NzM1MiA0LjY4ODAxNTkgNi45ODY4NTA3IDQuNzc4MjY4NyA2Ljg3NSA0Ljg3NSBDIDYuNTE1NzAyMSA1LjE4NjQyNjQgNi4xNzk3OTA5IDUuNTA3NzA5MSA1Ljg0Mzc1IDUuODQzNzUgQyA1LjQwNDQwMjUgNi4yODE4MDc4IDQuOTkwNzQ0OSA2Ljc0MTM1NTQgNC41OTM3NSA3LjIxODc1IEMgNC41NzkwMDg2IDcuMjM2NTQ2MiA0LjU3NzE4MDYgNy4yNjM0MDE1IDQuNTYyNSA3LjI4MTI1IEMgMy43Njc0ODk4IDguMjQzOTE4MSAzLjA0MjI3MjEgOS4yNzE4NzA1IDIuNDM3NSAxMC4zNzUgQyAyLjQyNjIyMzIgMTAuMzk1NjM1IDIuNDE3NDU2MSAxMC40MTY4MiAyLjQwNjI1IDEwLjQzNzUgQyAyLjEwODM5MDggMTAuOTg1MzQ4IDEuODQwMjIzMyAxMS41NDcyMTQgMS41OTM3NSAxMi4xMjUgQyAxLjU3NTU4NjUgMTIuMTY3NjY1IDEuNTQ5MTI1NSAxMi4yMDcxODIgMS41MzEyNSAxMi4yNSBDIDEuMjg3NzEzMSAxMi44MzI0MzMgMS4wOTQ2NzU0IDEzLjQyMTgyMiAwLjkwNjI1IDE0LjAzMTI1IEMgMC43Mjk2MzAxNCAxNC42MDI0OTUgMC41NjMwOTYzNCAxNS4xODg4MjggMC40Mzc1IDE1Ljc4MTI1IEMgMC4xNDY5MTQwNCAxNy4xNDI1NzggLTQuMzkwNjEzM2UtMTggMTguNTQ5NDY2IDAgMjAgTCAwIDIzMCBDIDAgMjQxLjA4IDguOTIgMjUwIDIwIDI1MCBMIDIzMCAyNTAgQyAyMzEuNDQwMDYgMjUwIDIzMi44MzUyNSAyNDkuODQ5MDEgMjM0LjE4NzUgMjQ5LjU2MjUgQyAyMzQuNzg5MDMgMjQ5LjQzNDk3IDIzNS4zODg2NiAyNDkuMjczODEgMjM1Ljk2ODc1IDI0OS4wOTM3NSBDIDIzNi40NDQ3NiAyNDguOTQ2IDIzNi45MTUwNSAyNDguNzc1MjYgMjM3LjM3NSAyNDguNTkzNzUgQyAyMzcuNjcxMjMgMjQ4LjQ3NjkzIDIzNy45NjA5NyAyNDguMzQ5MDggMjM4LjI1IDI0OC4yMTg3NSBDIDIzOC4yNzk4MSAyNDguMjA1MzEgMjM4LjMxNDAyIDI0OC4yMDEwOSAyMzguMzQzNzUgMjQ4LjE4NzUgQyAyMzguNzU4MzYgMjQ3Ljk5ODMgMjM5LjE2Mzc0IDI0Ny44MDk4MSAyMzkuNTYyNSAyNDcuNTkzNzUgQyAyMzkuNTgzMTggMjQ3LjU4MjU0IDIzOS42MDQzNiAyNDcuNTczNzggMjM5LjYyNSAyNDcuNTYyNSBDIDI0MC4xNjkyNSAyNDcuMjY1MTIgMjQwLjY3NTU4IDI0Ni45Mzg3MyAyNDEuMTg3NSAyNDYuNTkzNzUgQyAyNDEuNjY4NzggMjQ2LjI2OTQxIDI0Mi4xNDM1OSAyNDUuOTI2MzkgMjQyLjU5Mzc1IDI0NS41NjI1IEMgMjQyLjY0NDc0IDI0NS41MjEyOCAyNDIuNjk5NDMgMjQ1LjQ3OTIxIDI0Mi43NSAyNDUuNDM3NSBDIDI0Mi44NzY1MSAyNDUuMzMzMTggMjQzLjAwMTE1IDI0NS4yMzIzNSAyNDMuMTI1IDI0NS4xMjUgQyAyNDMuNDgyNjUgMjQ0LjgxNTM4IDI0My44MjE1NSAyNDQuNDkwMTkgMjQ0LjE1NjI1IDI0NC4xNTYyNSBDIDI0NC40OTIyOSAyNDMuODIwMjEgMjQ0LjgxMzU3IDI0My40ODQzIDI0NS4xMjUgMjQzLjEyNSBDIDI0NS4yMzE2NyAyNDMuMDAyMzQgMjQ1LjMzMzgxIDI0Mi44NzUyNyAyNDUuNDM3NSAyNDIuNzUgQyAyNDUuNDQyNzYgMjQyLjc0MzYyIDI0NS40MzIyNSAyNDIuNzI1MTMgMjQ1LjQzNzUgMjQyLjcxODc1IEMgMjQ1Ljg0MjQ5IDI0Mi4yMjgzIDI0Ni4yMzY0IDI0MS43MTU3NiAyNDYuNTkzNzUgMjQxLjE4NzUgQyAyNDYuOTM4MTIgMjQwLjY3ODQzIDI0Ny4yNjUzNiAyNDAuMTY2MjIgMjQ3LjU2MjUgMjM5LjYyNSBDIDI0Ny41NzM2MyAyMzkuNjA0NzIgMjQ3LjU4MjY4IDIzOS41ODI4MiAyNDcuNTkzNzUgMjM5LjU2MjUgQyAyNDcuODkxOTcgMjM5LjAxNDggMjQ4LjE1OTMxIDIzOC40NTIzOSAyNDguNDA2MjUgMjM3Ljg3NSBDIDI0OC40MTU1NCAyMzcuODUzMjggMjQ4LjQyODI5IDIzNy44MzQyNiAyNDguNDM3NSAyMzcuODEyNSBDIDI0OC40NDY0NCAyMzcuNzkxMjkgMjQ4LjQ1OTg4IDIzNy43NzEyNSAyNDguNDY4NzUgMjM3Ljc1IEMgMjQ4LjcwOTkyIDIzNy4xNzQ3NiAyNDguOTA2MjggMjM2LjU3MDA4IDI0OS4wOTM3NSAyMzUuOTY4NzUgQyAyNDkuMjczNzUgMjM1LjM5MTM3IDI0OS40MzQ2OCAyMzQuODE3NTQgMjQ5LjU2MjUgMjM0LjIxODc1IEMgMjQ5Ljg1MzA5IDIzMi44NTc0MiAyNTAgMjMxLjQ1MDUzIDI1MCAyMzAgTCAyNTAgMjAgQyAyNTAgOC45MiAyNDEuMDggLTMuMzUzNzk4N2UtMTcgMjMwIDAgTCAyMCAwIHogTSAzNC43ODEyNSAxOS40MDYyNSBMIDIyNS40Njg3NSAxOS40MDYyNSBDIDIyOC4zMDk0NiAxOS40MDYyNSAyMzAuNTkzNzUgMjEuNjkwNTQ0IDIzMC41OTM3NSAyNC41MzEyNSBMIDIzMC41OTM3NSAyMTUuMjUgTCAzNC43ODEyNSAxOS40MDYyNSB6IE0gMTkuNDA2MjUgMzQuNzUgTCAyMTUuMjE4NzUgMjMwLjU5Mzc1IEwgMjQuNTMxMjUgMjMwLjU5Mzc1IEMgMjEuNjkwNTQ0IDIzMC41OTM3NiAxOS40MDYyNSAyMjguMzA5NDYgMTkuNDA2MjUgMjI1LjQ2ODc1IEwgMTkuNDA2MjUgMzQuNzUgeiAiDQogICAgICAgaWQ9InBhdGgzMTk2IiAvPg0KICA8L2c+DQo8L3N2Zz4NCg==",
c.UNICODE_LINE_SEP=String.fromCharCode(8232));return c.UNICODE_LINE_SEP};c.prototype.setThemeAndVariant=function(a,b){this.theme=a;this.themeVariant=b};c.prototype.getTheme=function(){null!=this.theme&&this.theme.setVariant(this.themeVariant);return this.theme};c.prototype.getQuickStyleVals=function(){return this.quickStyleVals};c.prototype.processGeomList=function(a){if(!this.geomListProcessed){this.geomList=new g.mxgraph.io.vsdx.mxVsdxGeometryList(a);if(null!=this.geom)for(a=0;a<this.geom.length;a++)this.geomList.addGeometry(this.geom[a]);
-this.geomListProcessed=!0}};c.prototype.parseShapeElem=function(a,b){h.prototype.parseShapeElem.call(this,a,b);var d=a.nodeName;if(function(A,C){return A&&A.equals?A.equals(C):A===C}(d,"ForeignData")){d=function(A,C){for(A=A.firstChild;null!=A;){if(1==A.nodeType){var I=A;if("rel"==I.nodeName.toLowerCase()&&(I=I.getAttribute("r:id"),null!=I&&0!==I.length)){A=C.lastIndexOf("/");var N="",K="";try{N=C.substring(0,A),K=C.substring(A,C.length)}catch(O){break}A=b.getRelationship(I,N+"/_rels"+K+".rels");
-if(null!=A){C=A.getAttribute("Target")||"";I=A.getAttribute("Type");A=C.lastIndexOf("/");try{C=C.substring(A+1,C.length)}catch(O){break}return{type:I,target:C}}break}}A=A.nextSibling}};var f=a.ownerDocument.vsdxFileName,k=a.getAttribute("ForeignType"),n=a.getAttribute("CompressionType")||"",q=null;if(function(A,C){return A&&A.equals?A.equals(C):A===C}(k,"Bitmap"))n=n.toLowerCase();else if(function(A,C){return A&&A.equals?A.equals(C):A===C}(k,"MetaFile"))n="png";else if(function(A,C){return A&&A.equals?
+this.geomListProcessed=!0}};c.prototype.parseShapeElem=function(a,b){h.prototype.parseShapeElem.call(this,a,b);var d=a.nodeName;if(function(A,C){return A&&A.equals?A.equals(C):A===C}(d,"ForeignData")){d=function(A,C){for(A=A.firstChild;null!=A;){if(1==A.nodeType){var I=A;if("rel"==I.nodeName.toLowerCase()&&(I=I.getAttribute("r:id"),null!=I&&0!==I.length)){A=C.lastIndexOf("/");var Q="",K="";try{Q=C.substring(0,A),K=C.substring(A,C.length)}catch(L){break}A=b.getRelationship(I,Q+"/_rels"+K+".rels");
+if(null!=A){C=A.getAttribute("Target")||"";I=A.getAttribute("Type");A=C.lastIndexOf("/");try{C=C.substring(A+1,C.length)}catch(L){break}return{type:I,target:C}}break}}A=A.nextSibling}};var f=a.ownerDocument.vsdxFileName,k=a.getAttribute("ForeignType"),n=a.getAttribute("CompressionType")||"",q=null;if(function(A,C){return A&&A.equals?A.equals(C):A===C}(k,"Bitmap"))n=n.toLowerCase();else if(function(A,C){return A&&A.equals?A.equals(C):A===C}(k,"MetaFile"))n="png";else if(function(A,C){return A&&A.equals?
A.equals(C):A===C}(k,"Enhanced Metafile")||function(A,C){return A&&A.equals?A.equals(C):A===C}(k,"EnhMetaFile"))n="png";else if("Object"==k){if(q=d(a,f),0<q.type.indexOf("/oleObject"))if(n=b.getRelationship("rId1","visio/embeddings/_rels/"+q.target+".rels"),null!=n){q=n.getAttribute("Target");k=n.getAttribute("Type");try{var t=q.lastIndexOf("/");q=q.substring(t+1,q.length)}catch(A){return}n="png";q={type:k,target:q}}else return}else return;null==q&&(q=d(a,f));k=q.type;q=q.target;null!=k&&function(A,
C){var I=A.length-C.length;A=A.indexOf(C,I);return-1!==A&&A===I}(k,"image")&&(this.imageData={},(a=b.getMedia(g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/media/"+q))?(this.imageData.iData=a,function(A,C){var I=A.length-C.length;A=A.indexOf(C,I);return-1!==A&&A===I}(q.toLowerCase(),".bmp")&&(n="jpg"),this.imageData.iType=n):(this.imageData.iData=c.ERROR_IMAGE,this.imageData.iType="svg+xml"))}else(function(A,C){return A&&A.equals?A.equals(C):A===C})(d,g.mxgraph.io.vsdx.mxVsdxConstants.TEXT)&&(this.text=
-a)};c.prototype.parseSection=function(a){var b=a.getAttribute("N");if(function(I,N){return I&&I.equals?I.equals(N):I===N}(b,"Geometry"))null==this.geom&&(this.geom=[]),this.geom.push(a);else if(function(I,N){return I&&I.equals?I.equals(N):I===N}(b,"Field")){a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a,"Row");for(var d=0;d<a.length;d++){b=a[d];var f=b.getAttribute("IX")||"";if(0!==f.length)if(null==this.fields&&(this.fields={}),function(I,N){return I&&I.equals?I.equals(N):I===N}("1",
+a)};c.prototype.parseSection=function(a){var b=a.getAttribute("N");if(function(I,Q){return I&&I.equals?I.equals(Q):I===Q}(b,"Geometry"))null==this.geom&&(this.geom=[]),this.geom.push(a);else if(function(I,Q){return I&&I.equals?I.equals(Q):I===Q}(b,"Field")){a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a,"Row");for(var d=0;d<a.length;d++){b=a[d];var f=b.getAttribute("IX")||"";if(0!==f.length)if(null==this.fields&&(this.fields={}),function(I,Q){return I&&I.equals?I.equals(Q):I===Q}("1",
b.getAttribute("Del")))this.fields[f]="";else{for(var k=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(b,"Cell"),n="",q="",t=0;t<k.length;t++){var A=k[t];b=A.getAttribute("N");A=A.getAttribute("V")||A.textContent||"";switch(b){case "Value":n=A;break;case "Format":q=A}}if("esc(0)"==q)this.fields[f]=n;else if(0!==n.length){try{var C=isNaN(n)?new Date(n):new Date(c.VSDX_START_TIME+Math.floor(864E5*parseFloat(n)));q="c"==q?0==C.getHours()+C.getMinutes()+C.getSeconds()+C.getMilliseconds()?"m/d/yyyy":
"m/d/yyyy h:MM:ss tt":"ddddd"==q?"m/d/yyyy":"dddddd"==q?"dddd, mmmm dd, yyyy":"C"==q?"dddd, mmmm dd, yyyy h:MM:ss tt":"T"==q?"h:MM:ss tt":q.replace(/am\/pm/g,"tt").replace(/m/g,"@").replace(/M/g,"m").replace(/@/g,"M");n=Graph.prototype.formatDate(C,"UTC:"+q.replace(RegExp("\\{|\\}","g"),""))}catch(I){}this.fields[f]=n}}}}else h.prototype.parseSection.call(this,a)};c.prototype.parseGeom=function(){return this.hasGeomList()?this.geomList.getShapeXML(this):""};c.prototype.getText=function(){return null!=
this.text?this.text.textContent:null};c.prototype.getTextChildren=function(){return null!=this.text?this.text.childNodes:null};c.prototype.getWidth=function(){if(1>this.width&&null!=this.childShapes)try{for(var a=0;a<this.childShapes.entries.length;a++)this.width=Math.max(this.childShapes.entries[a].value.width,this.width)}catch(b){}return 0===this.width&&0<this.height?1:this.width};c.prototype.getHeight=function(){if(1>this.height&&null!=this.childShapes)try{for(var a=0;a<this.childShapes.entries.length;a++)this.height=
Math.max(this.childShapes.entries[a].value.height,this.height)}catch(b){}return 0===this.height&&0<this.width?1:this.height};c.prototype.getRotation=function(){return this.rotation};c.prototype.getStyleMap=function(){return this.styleMap};c.prototype.hasGeom=function(){return!(null==this.geom||0==this.geom.length)};c.prototype.hasGeomList=function(){return null!=this.geomList&&this.geomList.hasGeom()};c.prototype.getPPList=function(a){var b=null;""!=a&&(a=this.getBullet(a),"0"!=a&&(b='<ul style="margin: 0;list-style-type: '+
("4"==a?"square":"disc")+'">'));return b};c.prototype.getTextParagraphFormated=function(a){var b="",d={};d["text-align"]=this.getHorizontalAlign(this.pp,!0);d["margin-left"]=this.getIndentLeft(this.pp);d["margin-right"]=this.getIndentRight(this.pp);d["margin-top"]=this.getSpBefore(this.pp)+"px";d["margin-bottom"]=this.getSpAfter(this.pp)+"px";d["text-indent"]=this.getIndentFirst(this.pp);d["vertical-align"]=this.getAlignVertical();d.direction=this.getTextDirection(this.pp);return b+=this.insertAttributes(a,
-d)};c.prototype.getTextCharFormated=function(a){var b="color:"+this.getTextColor(this.cp)+";",d="font-size:"+parseFloat(this.getTextSize(this.cp))+"px;",f="font-family:"+this.getTextFont(this.cp)+";",k="direction:"+this.getRtlText(this.cp)+";",n="letter-spacing:"+parseFloat(this.getLetterSpace(this.cp))/.71+"px;",q="line-height:"+this.getSpcLine(this.pp),t=";opacity:"+this.getTextOpacity(this.cp),A=this.getTextPos(this.cp),C=this.getTextCase(this.cp);(function(I,N){return I&&I.equals?I.equals(N):
-I===N})(C,"1")?a=a.toUpperCase():function(I,N){return I&&I.equals?I.equals(N):I===N}(C,"2")&&(a=g.mxgraph.io.vsdx.mxVsdxUtils.toInitialCapital(a));(function(I,N){return I&&I.equals?I.equals(N):I===N})(A,"1")?a=g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sup"):function(I,N){return I&&I.equals?I.equals(N):I===N}(A,"2")&&(a=g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sub"));a=this.isBold(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"b"):a;a=this.isItalic(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,
+d)};c.prototype.getTextCharFormated=function(a){var b="color:"+this.getTextColor(this.cp)+";",d="font-size:"+parseFloat(this.getTextSize(this.cp))+"px;",f="font-family:"+this.getTextFont(this.cp)+";",k="direction:"+this.getRtlText(this.cp)+";",n="letter-spacing:"+parseFloat(this.getLetterSpace(this.cp))/.71+"px;",q="line-height:"+this.getSpcLine(this.pp),t=";opacity:"+this.getTextOpacity(this.cp),A=this.getTextPos(this.cp),C=this.getTextCase(this.cp);(function(I,Q){return I&&I.equals?I.equals(Q):
+I===Q})(C,"1")?a=a.toUpperCase():function(I,Q){return I&&I.equals?I.equals(Q):I===Q}(C,"2")&&(a=g.mxgraph.io.vsdx.mxVsdxUtils.toInitialCapital(a));(function(I,Q){return I&&I.equals?I.equals(Q):I===Q})(A,"1")?a=g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sup"):function(I,Q){return I&&I.equals?I.equals(Q):I===Q}(A,"2")&&(a=g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sub"));a=this.isBold(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"b"):a;a=this.isItalic(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,
"i"):a;a=this.isUnderline(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"u"):a;a=this.getTextStrike(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"s"):a;a=this.isSmallCaps(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.toSmallCaps(a,this.getTextSize(this.cp)):a;return'<font style="'+d+f+b+k+n+q+t+'">'+a+"</font>"};c.prototype.getTextDirection=function(a){a=this.getFlags(a);(function(b,d){return b&&b.equals?b.equals(d):b===d})(a,"0")?a="ltr":function(b,d){return b&&b.equals?b.equals(d):
b===d}(a,"1")&&(a="rtl");return a};c.prototype.getSpcLine=function(a){var b=!1;a=this.getSpLine(a);0<a?a*=g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():(a=0===a?100:100*Math.abs(a),b=!0);return(new String(a)).toString()+(b?"%":"px")};c.prototype.getSpcBefore=function(a){return this.getSpBefore(a)};c.prototype.insertAttributes=function(a,b){if(-1!=a.indexOf(">")){var d=a.indexOf(">"),f=a.substring(d);a=a.substring(0,d);b=' style="'+g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(b,":")+'"';return a+
b+f}return a};c.prototype.getRtlText=function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.RTL_TEXT,a,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);a=this.getValue(a,"ltr");(function(b,d){return b&&b.equals?b.equals(d):b===d})(a,"0")?a="ltr":function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"1")&&(a="rtl");return a};c.prototype.isBold=function(a){var b=!1;a=this.getTextStyle(a);(function(d,f){return d&&d.equals?d.equals(f):d===f})(a,
@@ -1482,9 +1482,9 @@ a=this.getValue(a,"0");var b="1";null!=a&&0!==a.length&&(a=1-parseFloat(a),b=(ne
a};c.prototype.setLastMoveX=function(a){this.lastMoveX=a};c.prototype.setLastMoveY=function(a){this.lastMoveY=a};c.prototype.setLastKnot=function(a){this.lastKnot=a};c.prototype.getConnections=function(){var a=[];if(this.sections&&this.sections.Connection)for(var b=this.getHeight(),d=this.getWidth(),f=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(this.sections.Connection.elem,"Row"),k=0;k<f.length;k++){for(var n=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(f[k]),q,t,A=0;A<n.length;A++){var C=
n[A],I=C.getAttribute("N");C=this.getScreenNumericalValue$org_w3c_dom_Element$double(C,0);"X"==I?q=mxUtils.format(C/d):"Y"==I&&(t=mxUtils.format(1-C/b))}null!=q&&null!=t&&a.push({x:q,y:t})}0==a.length&&this.master&&this.master.masterShape&&(a=this.master.masterShape.getConnections());return a};return c}(g.mxgraph.io.vsdx.Style);m.VSDX_START_TIME=(new Date("1899-12-30T00:00:00Z")).getTime();B.Shape=m;m.__class="com.mxgraph.io.vsdx.Shape"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph=
{}))})(com||(com={}));
-(function(g){(function(y){(function(z){(function(B){var m=function(h){function c(a,b,d,f,k,n){function q(){var I;if(I=2!=a.connectsMap[t.Id])if(I=null!=t.childShapes)I=t.childShapes,null==I.entries&&(I.entries=[]),I=0!=I.entries.length;try{if(1==t.childShapes.entries.length){var N=t.childShapes.entries[0].value,K=t.fields?Object.values(t.fields).join(""):t.text.textContent,O=N.fields?Object.values(N.fields).join(""):N.text.textContent;K==O&&(I=!1,t.childShapes.entries=[],t.noLabelGroup=!0)}}catch(S){console.log(S)}return I}
+(function(g){(function(y){(function(z){(function(B){var m=function(h){function c(a,b,d,f,k,n){function q(){var I;if(I=2!=a.connectsMap[t.Id])if(I=null!=t.childShapes)I=t.childShapes,null==I.entries&&(I.entries=[]),I=0!=I.entries.length;try{if(1==t.childShapes.entries.length){var Q=t.childShapes.entries[0].value,K=t.fields?Object.values(t.fields).join(""):t.text.textContent,L=Q.fields?Object.values(Q.fields).join(""):Q.text.textContent;K==L&&(I=!1,t.childShapes.entries=[],t.noLabelGroup=!0)}}catch(S){console.log(S)}return I}
var t=this;t.masterShape=null;t.master=null;t.parentHeight=0;t=h.call(this,b,n)||this;t.htmlLabels=!0;t.rootShape=t;t.shapeName=null;t.shapeIndex=0;t.vertex=!0;t.childShapes={};var A=t.getMasterId(),C=t.getShapeMasterId();t.master=null!=A?f[A]?f[A]:null:k;null!=t.master&&(t.masterShape=null==A&&null!=C?t.master.getSubShape(C):t.master.getMasterShape());f=t.getNameU();k=f.lastIndexOf(".");-1!==k&&(f=f.substring(0,k));t.shapeName=f;b=b.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.SHAPES);
-null!=b&&0<b.length&&(b=b.item(0),t.childShapes=a.parseShapes(b,t.master,!1));b=t.calcRotation();t.rotation=100*b/100;t.rotation%=360;b=a.getCellIntValue("ThemeIndex",-100);-100===b&&(b=parseInt(t.getValue(t.getCellElement$java_lang_String("ThemeIndex"),"0")));n=function(I,N){null==I.entries&&(I.entries=[]);for(var K=0;K<I.entries.length;K++)if(null!=I.entries[K].key.equals&&I.entries[K].key.equals(N)||I.entries[K].key===N)return I.entries[K].value;return null}(n.getThemes(),b);null==n&&"1"==urlParams.dev&&
+null!=b&&0<b.length&&(b=b.item(0),t.childShapes=a.parseShapes(b,t.master,!1));b=t.calcRotation();t.rotation=100*b/100;t.rotation%=360;b=a.getCellIntValue("ThemeIndex",-100);-100===b&&(b=parseInt(t.getValue(t.getCellElement$java_lang_String("ThemeIndex"),"0")));n=function(I,Q){null==I.entries&&(I.entries=[]);for(var K=0;K<I.entries.length;K++)if(null!=I.entries[K].key.equals&&I.entries[K].key.equals(Q)||I.entries[K].key===Q)return I.entries[K].value;return null}(n.getThemes(),b);null==n&&"1"==urlParams.dev&&
console.log("No theme found for index "+b);b=a.getCellIntValue("VariationColorIndex",0);t.setThemeAndVariant(n,b);f=function(I){null==I.entries&&(I.entries=[]);return I.entries}(t.childShapes);for(k=0;k<f.length;k++)A=f[k].getValue(),A.setRootShape(t),null==A.theme&&A.setThemeAndVariant(n,b);t.quickStyleVals=new g.mxgraph.io.vsdx.theme.QuickStyleVals(parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleEffectsMatrix"),"0")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleFillColor"),
"1")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleFillMatrix"),"0")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleFontColor"),"1")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleFontMatrix"),"0")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleLineColor"),"1")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleLineMatrix"),"0")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleShadowColor"),
"1")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleType"),"0")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleVariation"),"0")));null!=t.masterShape?(t.masterShape.processGeomList(null),t.processGeomList(t.masterShape.getGeomList()),0===t.width&&(t.width=t.getScreenNumericalValue$org_w3c_dom_Element$double(t.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0)),0===t.height&&(t.height=t.getScreenNumericalValue$org_w3c_dom_Element$double(t.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),
@@ -1561,10 +1561,10 @@ if(function(A,C,I){void 0===I&&(I=0);return A.substr(I,C.length)===C}(d,"Organiz
f=f.hasAttribute("F")?f.getAttribute("F"):f.textContent);k=a.getGeometry();d=d.split("Width/2+").join("");d=d.split("DL").join("");f=f.split("Height*").join("");(function(A,C){return A&&A.equals?A.equals(C):A===C})(d,"Inh")&&(d="0.0");(function(A,C){return A&&A.equals?A.equals(C):A===C})(f,"Inh")&&(f="-0.4");-1!=f.indexOf("txtHeight")&&(f="-0.4");b=b.split(";");for(var n="",q=0;q<b.length;q++){var t=b[q];t=t.trim();(function(A,C,I){void 0===I&&(I=0);return A.substr(I,C.length)===C})(t,"tabHeight=")&&
(n=t.split("tabHeight=").join(""))}(function(A,C){return A&&A.equals?A.equals(C):A===C})(n,"")&&(n="20");b=parseFloat(n);d=parseFloat(d);f=parseFloat(f);n=k.height;d=.1*k.width+100*d;d=new mxPoint(d,n-n*f-b/2);a.getGeometry().offset=d}else if(function(A,C,I){void 0===I&&(I=0);return A.substr(I,C.length)===C}(d,"Domain 3D")||function(A,C,I){void 0===I&&(I=0);return A.substr(I,C.length)===C}(f,"Domain 3D")){k=this.shape.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.CONTROL).item(0);d=null;
d="0.0";f=null;f="-0.4";null!=k&&(d=k.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.X).item(0),d=d.getAttribute("F")||"",f=k.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.Y).item(0),f=f.getAttribute("F")||"");k=a.getGeometry();d=d.split("Width/2+").join("");d=d.split("DL").join("");f=f.split("Height*").join("");if(function(A,C){return A&&A.equals?A.equals(C):A===C}(d,"Inh")||function(A,C){return A&&A.equals?A.equals(C):A===C}(d,""))d="0.0";if(function(A,C){return A&&A.equals?A.equals(C):
-A===C}(f,"Inh")||function(A,C){return A&&A.equals?A.equals(C):A===C}(f,""))f="-0.4";-1!=f.indexOf("txtHeight")&&(f="-0.4");d=parseFloat(d);f=parseFloat(f);n=k.height;d=.1*k.width+100*d;d=new mxPoint(d,n-n*f);a.getGeometry().offset=d}};c.prototype.getForm=function(){var a={};if(this.isVertex())try{var b=c.getType(this.getShape());this.styleDebug("shape type = "+b);if(null!=this.imageData||function(O,S){return O&&O.equals?O.equals(S):O===S}(g.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN,b)&&null!=this.masterShape&&
-null!=this.masterShape.imageData){var d=null!=this.imageData?this.imageData:this.masterShape.imageData;a.shape="image";a.aspect="fixed";var f=function(O,S){return O[S]?O[S]:null}(d,"iType"),k=function(O,S){return O[S]?O[S]:null}(d,"iData"),n=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetX"),"0")),q=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetY"),"0")),t=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgWidth"),"0")),A=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgHeight"),
-"0")),C=parseFloat(this.getValue(this.getCellElement$java_lang_String("Width"),"0")),I=parseFloat(this.getValue(this.getCellElement$java_lang_String("Height"),"0"));0!=n||0!=q||t!=C||A!=I?this.toBeCroppedImg={imgOffsetX:n,imgOffsetY:q,imgWidth:t,imgHeight:A,width:C,height:I,iType:f,iData:k}:a.image="data:image/"+f+","+k;return a}var N=this.parseGeom();if(function(O,S){return O&&O.equals?O.equals(S):O===S}(N,""))return this.styleDebug("No geom found"),a;var K=Graph.compress(N);a[mxConstants.STYLE_SHAPE]=
-"stencil("+K+")"}catch(O){}else return this.getEdgeStyle();return a};c.prototype.isOff_page_reference=function(){var a=this.getNameU();return function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"Off-page reference")||function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"Lined/Shaded process")?!0:!1};c.prototype.isExternal_process=function(){var a=(a=this.shapeName)&&a.equals?a.equals("External process"):"External process"===a;return a};c.prototype.getDirection=function(a){a=mxResources.get("mxOffset"+
+A===C}(f,"Inh")||function(A,C){return A&&A.equals?A.equals(C):A===C}(f,""))f="-0.4";-1!=f.indexOf("txtHeight")&&(f="-0.4");d=parseFloat(d);f=parseFloat(f);n=k.height;d=.1*k.width+100*d;d=new mxPoint(d,n-n*f);a.getGeometry().offset=d}};c.prototype.getForm=function(){var a={};if(this.isVertex())try{var b=c.getType(this.getShape());this.styleDebug("shape type = "+b);if(null!=this.imageData||function(L,S){return L&&L.equals?L.equals(S):L===S}(g.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN,b)&&null!=this.masterShape&&
+null!=this.masterShape.imageData){var d=null!=this.imageData?this.imageData:this.masterShape.imageData;a.shape="image";a.aspect="fixed";var f=function(L,S){return L[S]?L[S]:null}(d,"iType"),k=function(L,S){return L[S]?L[S]:null}(d,"iData"),n=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetX"),"0")),q=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetY"),"0")),t=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgWidth"),"0")),A=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgHeight"),
+"0")),C=parseFloat(this.getValue(this.getCellElement$java_lang_String("Width"),"0")),I=parseFloat(this.getValue(this.getCellElement$java_lang_String("Height"),"0"));0!=n||0!=q||t!=C||A!=I?this.toBeCroppedImg={imgOffsetX:n,imgOffsetY:q,imgWidth:t,imgHeight:A,width:C,height:I,iType:f,iData:k}:a.image="data:image/"+f+","+k;return a}var Q=this.parseGeom();if(function(L,S){return L&&L.equals?L.equals(S):L===S}(Q,""))return this.styleDebug("No geom found"),a;var K=Graph.compress(Q);a[mxConstants.STYLE_SHAPE]=
+"stencil("+K+")"}catch(L){}else return this.getEdgeStyle();return a};c.prototype.isOff_page_reference=function(){var a=this.getNameU();return function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"Off-page reference")||function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"Lined/Shaded process")?!0:!1};c.prototype.isExternal_process=function(){var a=(a=this.shapeName)&&a.equals?a.equals("External process"):"External process"===a;return a};c.prototype.getDirection=function(a){a=mxResources.get("mxOffset"+
this.shapeName);if(null!=a&&!function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"0")&&!function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"")){if(function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"1"))return mxConstants.DIRECTION_SOUTH;if(function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"2"))return mxConstants.DIRECTION_WEST;if(function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"3"))return mxConstants.DIRECTION_NORTH}return mxConstants.DIRECTION_EAST};c.prototype.isSubproces=function(){var a=
(a=this.shapeName)&&a.equals?a.equals("Subproces"):"Subproces"===a;return a};c.prototype.getEdgeStyle$=function(){return{edgeStyle:"none"}};c.prototype.getChildShapes=function(){return this.childShapes};c.prototype.setChildShapes=function(a){this.childShapes=a};c.prototype.isDisplacedLabel=function(){var a=this.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X,"F",""),b=this.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y,"F",""),d=this.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH,
"F",""),f=this.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT,"F","");if(null!=this.masterShape){if(""===a||function(k,n){return k&&k.equals?k.equals(n):k===n}(a.toLowerCase(),"inh"))a=this.masterShape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X,"F","");if(""===b||function(k,n){return k&&k.equals?k.equals(n):k===n}(b.toLowerCase(),"inh"))b=this.masterShape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y,"F","");if(""===d||function(k,n){return k&&k.equals?k.equals(n):
@@ -1586,8 +1586,8 @@ k.entries[q].key.equals&&k.entries[q].key.equals(n)||k.entries[q].key===n)return
a,b,d);return null==f&&null!=this.masterShape?this.masterShape.getCellElement$java_lang_String$java_lang_String$java_lang_String(a,b,d):f};c.prototype.getCellElement=function(a,b,d){if("string"!==typeof a&&null!==a||"string"!==typeof b&&null!==b||"string"!==typeof d&&null!==d){if("string"!==typeof a&&null!==a||void 0!==b||void 0!==d)throw Error("invalid overload");return this.getCellElement$java_lang_String(a)}return this.getCellElement$java_lang_String$java_lang_String$java_lang_String(a,b,d)};c.prototype.createLabelSubShape=
function(a,b){var d=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),this.getWidth()),f=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT),this.getHeight()),k=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_X),d/2),n=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_Y),
f/2),q=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X),k),t=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),n),A=this.getValueAsDouble(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE),0),C=this.getTextLabel(1>d||1>f);if(null!=C&&0!==C.length){var I=mxUtils.clone(this.getStyleMap())||{};I[mxConstants.STYLE_FILLCOLOR]=mxConstants.NONE;I[mxConstants.STYLE_STROKECOLOR]=
-mxConstants.NONE;I[mxConstants.STYLE_GRADIENTCOLOR]=mxConstants.NONE;I.hasOwnProperty("align")||(I.align="center");I.hasOwnProperty("verticalAlign")||(I.verticalAlign="middle");I.hasOwnProperty("whiteSpace")||(I.whiteSpace="wrap");delete I.shape;delete I.image;this.isVerticalLabel()&&(A+=Math.PI+.01,I.horizontal="0");var N=this.getRotation();0!==A&&(A=360-180*A/Math.PI,A=Math.round((A+N)%360*100)/100,0!==A&&(I.rotation=""+A));I="text;"+g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(I,"=");n=b.getGeometry().height-
-(t+f-n);k=q-k;0<N&&(q=new mxGeometry(k,n,d,f),k=b.getGeometry(),g.mxgraph.online.Utils.rotatedGeometry(q,N,k.width/2,k.height/2),k=q.x,n=q.y);return a.insertVertex(b,null,C,Math.round(100*k)/100,Math.round(100*n)/100,Math.round(100*d)/100,Math.round(100*f)/100,I+";html=1;")}return null};c.prototype.getLblEdgeOffset=function(a,b){if(null!=b&&1<b.length){var d=new mxCellState;d.absolutePoints=b;a.updateEdgeBounds(d);a=a.getPoint(d);d=b[0];var f=b[b.length-1];b=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),
+mxConstants.NONE;I[mxConstants.STYLE_GRADIENTCOLOR]=mxConstants.NONE;I.hasOwnProperty("align")||(I.align="center");I.hasOwnProperty("verticalAlign")||(I.verticalAlign="middle");I.hasOwnProperty("whiteSpace")||(I.whiteSpace="wrap");delete I.shape;delete I.image;this.isVerticalLabel()&&(A+=Math.PI+.01,I.horizontal="0");var Q=this.getRotation();0!==A&&(A=360-180*A/Math.PI,A=Math.round((A+Q)%360*100)/100,0!==A&&(I.rotation=""+A));I="text;"+g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(I,"=");n=b.getGeometry().height-
+(t+f-n);k=q-k;0<Q&&(q=new mxGeometry(k,n,d,f),k=b.getGeometry(),g.mxgraph.online.Utils.rotatedGeometry(q,Q,k.width/2,k.height/2),k=q.x,n=q.y);return a.insertVertex(b,null,C,Math.round(100*k)/100,Math.round(100*n)/100,Math.round(100*d)/100,Math.round(100*f)/100,I+";html=1;")}return null};c.prototype.getLblEdgeOffset=function(a,b){if(null!=b&&1<b.length){var d=new mxCellState;d.absolutePoints=b;a.updateEdgeBounds(d);a=a.getPoint(d);d=b[0];var f=b[b.length-1];b=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),
this.getWidth());var k=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT),this.getHeight()),n=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_X),0),q=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_Y),0),t=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X),
0),A=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),0);f=(this.getHeight()-(d.y-f.y))/2+d.y-a.y-(A-q+k/2);a=t-n+b/2+(d.x-a.x);return 1E11<Math.abs(a)?null:new mxPoint(Math.floor(Math.round(100*a)/100),Math.floor(Math.round(100*f)/100))}return null};c.prototype.getShapeIndex=function(){return this.shapeIndex};c.prototype.setShapeIndex=function(a){this.shapeIndex=a};return c}(g.mxgraph.io.vsdx.Shape);m.__static_initialized=!1;m.ARROW_NO_FILL_MARKER=
"0";m.maxDp=2;m.USE_SHAPE_MATCH=!1;m.stencilTemplate='<shape h="htemplate" w="wtemplate" aspect="variable" strokewidth="inherit"><connections></connections><background></background><foreground></foreground></shape>';B.VsdxShape=m;m.__class="com.mxgraph.io.vsdx.VsdxShape"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));
@@ -1609,8 +1609,8 @@ com.mxgraph.io.vsdx.VsdxShape.arrowTypes_$LI$();com.mxgraph.io.vsdx.VsdxShape.ar
com.mxgraph.io.vsdx.mxVsdxTheme.colorIds_$LI$();com.mxgraph.io.vsdx.mxVsdxTheme.themesIds_$LI$();com.mxgraph.io.vsdx.mxVsdxTheme.__static_initialize();com.mxgraph.io.vsdx.mxVsdxConstants.MY_SET_$LI$();com.mxgraph.io.vsdx.mxVsdxConstants.SET_VALUES_$LI$();com.mxgraph.io.vsdx.mxPropertiesManager.defaultColors_$LI$();com.mxgraph.io.vsdx.mxPropertiesManager.__static_initialize();com.mxgraph.io.mxVsdxCodec.vsdxPlaceholder_$LI$();com.mxgraph.io.mxVsdxCodec.parsererrorNS_$LI$();
EditorUi.prototype.doImportVisio=function(g,y,z,B){B=B||g.name;null!=B&&/(\.vs(x|sx?))($|\?)/i.test(B)?(new com.mxgraph.io.mxVssxCodec(this)).decodeVssx(g,y,null,z):(new com.mxgraph.io.mxVsdxCodec(this)).decodeVsdx(g,y,null,z)};function mxGraphMlCodec(){this.cachedRefObj={}}mxGraphMlCodec.prototype.refRegexp=/^\{y:GraphMLReference\s+(\d+)\}$/;mxGraphMlCodec.prototype.staticRegexp=/^\{x:Static\s+(.+)\.(.+)\}$/;
mxGraphMlCodec.prototype.decode=function(g,y,z){try{var B=mxUtils.parseXml(g),m=this.getDirectChildNamedElements(B.documentElement,mxGraphMlConstants.GRAPH);this.initializeKeys(B.documentElement);g='<?xml version="1.0" encoding="UTF-8"?><mxfile>';for(B=0;B<m.length;B++){var h=m[B],c=this.createMxGraph(),a=c.getModel();a.beginUpdate();try{for(this.nodesMap={},this.edges=[],this.importGraph(h,c,c.getDefaultParent()),B=0;B<this.edges.length;B++)for(var b=this.edges[B],d=b.edges,f=b.parent,k=b.dx,n=b.dy,
-q=0;q<d.length;q++)this.importEdge(d[q],c,f,k,n)}catch(W){throw console.log(W),W;}finally{a.endUpdate()}a.beginUpdate();try{var t=c.getModel().cells,A;for(A in t){var C=t[A];if(C.edge&&0<C.getChildCount())for(B=0;B<C.getChildCount();B++){var I=C.children[B].geometry;if(I.adjustIt){var N=c.view.getState(C),K=N.absolutePoints,O=K[0],S=K[K.length-1],H=I.x,J=I.y;k=S.x-O.x;n=S.y-O.y;var M=O.x+H*k,L=O.y+H*n,Q=Math.sqrt(k*k+n*n);k/=Q;n/=Q;M-=J*n;L+=J*k;var ca=c.view.getRelativePoint(N,M,L);I.x=ca.x;I.y=
-ca.y}}}}catch(W){throw console.log(W),W;}finally{a.endUpdate()}g+=this.processPage(c,B+1)}y&&y(g+"</mxfile>")}catch(W){z&&z(W)}};
+q=0;q<d.length;q++)this.importEdge(d[q],c,f,k,n)}catch(ca){throw console.log(ca),ca;}finally{a.endUpdate()}a.beginUpdate();try{var t=c.getModel().cells,A;for(A in t){var C=t[A];if(C.edge&&0<C.getChildCount())for(B=0;B<C.getChildCount();B++){var I=C.children[B].geometry;if(I.adjustIt){var Q=c.view.getState(C),K=Q.absolutePoints,L=K[0],S=K[K.length-1],R=I.x,H=I.y;k=S.x-L.x;n=S.y-L.y;var N=L.x+R*k,J=L.y+R*n,M=Math.sqrt(k*k+n*n);k/=M;n/=M;N-=H*n;J+=H*k;var T=c.view.getRelativePoint(Q,N,J);I.x=T.x;I.y=
+T.y}}}}catch(ca){throw console.log(ca),ca;}finally{a.endUpdate()}g+=this.processPage(c,B+1)}y&&y(g+"</mxfile>")}catch(ca){z&&z(ca)}};
mxGraphMlCodec.prototype.initializeKeys=function(g){var y=this.getDirectChildNamedElements(g,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 z,B=0;B<y.length;B++){var m=this.dataElem2Obj(y[B]),h=m[mxGraphMlConstants.ID],c=m[mxGraphMlConstants.KEY_FOR],a=m[mxGraphMlConstants.KEY_NAME],b=m[mxGraphMlConstants.KEY_YTYPE];a==mxGraphMlConstants.SHARED_DATA&&(z=h);a=a?a:b;switch(c){case mxGraphMlConstants.NODE:this.nodesKeys[a]=
{key:h,keyObj:m};break;case mxGraphMlConstants.EDGE:this.edgesKeys[a]={key:h,keyObj:m};break;case mxGraphMlConstants.PORT:this.portsKeys[a]={key:h,keyObj:m};break;case mxGraphMlConstants.ALL:m={key:h,keyObj:m},this.nodesKeys[a]=m,this.edgesKeys[a]=m,this.portsKeys[a]=m}}g=this.getDirectChildNamedElements(g,mxGraphMlConstants.DATA);for(B=0;B<g.length;B++)if(g[B].getAttribute(mxGraphMlConstants.KEY)==z)for(c=this.getDirectChildNamedElements(g[B],mxGraphMlConstants.Y_SHARED_DATA),y=0;y<c.length;y++)for(a=
@@ -1628,16 +1628,16 @@ mxGraphMlCodec.prototype.importNode=function(g,y,z,B,m){var h=this.getDirectChil
q;else if(q.key==this.nodesKeys[mxGraphMlConstants.NODE_STYLE].key)b=q,q["yjs:StringTemplateNodeStyle"]?d=q["yjs:StringTemplateNodeStyle"]["#text"]:this.addNodeStyle(a,q,z);else if(q.key==this.nodesKeys[mxGraphMlConstants.NODE_LABELS].key)k=q;else if(q.key==this.nodesKeys[mxGraphMlConstants.NODE_GRAPHICS].key){var t=b=null;for(t in q)if("key"!=t&&"#text"!=t){if("y:ProxyAutoBoundsNode"==t){if(t=q[t]["y:Realizers"])for(var A in t)if("active"!=A&&"#text"!=A){b=t[A][t.active];q={};q[A]=b;break}}else b=
q[t];break}b&&(b[mxGraphMlConstants.GEOMETRY]&&this.addNodeGeo(a,b[mxGraphMlConstants.GEOMETRY],B,m),b[mxGraphMlConstants.NODE_LABEL]&&(k=b[mxGraphMlConstants.NODE_LABEL]));b=q;this.addNodeStyle(a,q,z)}}m=this.getDirectChildNamedElements(g,mxGraphMlConstants.PORT);B={};for(n=0;n<m.length;n++)this.importPort(m[n],B);d&&this.handleTemplates(d,f,a,z);this.handleFixedRatio(a,z);this.handleCompoundShape(a,z,b,null);0==z.strokeWidth&&(z.strokeColor="none");a.style=this.styleMap2Str(z);g=this.getDirectChildNamedElements(g,
mxGraphMlConstants.GRAPH);for(n=0;n<g.length;n++)this.importGraph(g[n],y,a,B);k&&this.addLabels(a,k,z,y);this.nodesMap[c]={node:a,ports:B}};
-mxGraphMlCodec.prototype.addNodeStyle=function(g,y,z){g=function(H,J){if("line"!=H){J.dashed=1;switch(H){case "DashDot":H="3 1 1 1";break;case "Dot":H="1 1";break;case "DashDotDot":H="3 1 1 1 1 1";break;case "Dash":H="3 1";break;case "dotted":H="1 3";break;case "dashed":H="5 2";break;default:H=H.replace(/0/g,"1")}H&&(0>H.indexOf(" ")&&(H=H+" "+H),J.dashPattern=H)}};g={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(H,J){"true"==H&&(J.fillColor="none")}},"y:BorderStyle":{color:{key:"strokeColor",mod:"color"},width:"strokeWidth",hasColor:function(H,J){"false"==H&&(J.strokeColor="none")},
+mxGraphMlCodec.prototype.addNodeStyle=function(g,y,z){g=function(R,H){if("line"!=R){H.dashed=1;switch(R){case "DashDot":R="3 1 1 1";break;case "Dot":R="1 1";break;case "DashDotDot":R="3 1 1 1 1 1";break;case "Dash":R="3 1";break;case "dotted":R="1 3";break;case "dashed":R="5 2";break;default:R=R.replace(/0/g,"1")}R&&(0>R.indexOf(" ")&&(R=R+" "+R),H.dashPattern=R)}};g={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(R,H){"true"==R&&(H.fillColor="none")}},"y:BorderStyle":{color:{key:"strokeColor",mod:"color"},width:"strokeWidth",hasColor:function(R,H){"false"==R&&(H.strokeColor="none")},
type:g},stroke:{key:"strokeColor",mod:"color"},"stroke.yjs:Stroke":{dashStyle:g,"dashStyle.yjs:DashStyle.dashes":g,fill:{key:"strokeColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"strokeColor",mod:"color"},"thickness.sys:Double":"strokeWidth",thickness:"strokeWidth"}};var B=mxUtils.clone(g);B.defaults={fillColor:"#CCCCCC",strokeColor:"#6881B3"};var m=mxUtils.clone(g);m.defaults={shape:"ext;rounded=1",fillColor:"#FFFFFF",strokeColor:"#000090"};var h=mxUtils.clone(g);h.defaults={shape:"rhombus;fillColor=#FFFFFF;strokeColor=#FFCD28"};
var c=mxUtils.clone(g);c.defaults={shape:"hexagon",strokeColor:"#007000"};var a=mxUtils.clone(g);a.defaults={shape:"mxgraph.bpmn.shape;perimeter=ellipsePerimeter;symbol=general",outline:"standard"};a.characteristic={key:"outline",mod:"bpmnOutline"};var b=mxUtils.clone(g);b.defaults={shape:"js:bpmnDataObject"};var d=mxUtils.clone(g);d.defaults={shape:"datastore"};var f=mxUtils.clone(g);f.defaults={shape:"swimlane;swimlaneLine=0;startSize=20;dashed=1;dashPattern=3 1 1 1;collapsible=0;rounded=1"};var k=
mxUtils.clone(g);k.defaults={shape:"js:BpmnChoreography"};var n=mxUtils.clone(g);n.defaults={rounded:"1",glass:"1",strokeColor:"#FFFFFF"};n.inset="strokeWidth";n.radius="arcSize";n.drawShadow={key:"shadow",mod:"bool"};n.color={key:"fillColor",mod:"color",addGradient:"north"};n["color.yjs:Color.value"]=n.color;var q=mxUtils.clone(g);q.defaults={rounded:"1",arcSize:10,glass:"1",shadow:"1",strokeColor:"none"};q.drawShadow={key:"shadow",mod:"bool"};var t=mxUtils.clone(g);t.defaults={shape:"swimlane",
startSize:20,strokeWidth:4,spacingLeft:10};t.isCollapsible={key:"collapsible",mod:"bool"};t.borderColor={key:"strokeColor",mod:"color"};t.folderFrontColor={key:"fillColor",mod:"color"};var A=mxUtils.clone(g);A.defaults={shape:"swimlane",startSize:20,spacingLeft:10};A["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 C=mxUtils.clone(g);C.defaults={shape:"js:table"};var I=mxUtils.clone(g);I.defaults={shape:"image"};I.image=function(H,J){J.image=H};var N=mxUtils.clone(g);N.defaults={shape:"image"};N["y:SVGModel.y:SVGContent.y:Resource.#text"]=function(H,J){J.image="data:image/svg+xml,"+(window.btoa?btoa(H):Base64.encode(H))};var K=mxUtils.clone(g);K.defaults={shape:"swimlane",startSize:20};K["y:Shape.type"]=function(H,J){"roundrectangle"==H&&(J.rounded=1,J.arcSize=5)};var O=mxUtils.clone(g);O.defaults={shape:"js:table2"};
+var C=mxUtils.clone(g);C.defaults={shape:"js:table"};var I=mxUtils.clone(g);I.defaults={shape:"image"};I.image=function(R,H){H.image=R};var Q=mxUtils.clone(g);Q.defaults={shape:"image"};Q["y:SVGModel.y:SVGContent.y:Resource.#text"]=function(R,H){H.image="data:image/svg+xml,"+(window.btoa?btoa(R):Base64.encode(R))};var K=mxUtils.clone(g);K.defaults={shape:"swimlane",startSize:20};K["y:Shape.type"]=function(R,H){"roundrectangle"==R&&(H.rounded=1,H.arcSize=5)};var L=mxUtils.clone(g);L.defaults={shape:"js:table2"};
var S=mxUtils.clone(g);S.defaults={gradientDirection:"east"};S["y:Fill"].color2={key:"gradientColor",mod:"color"};S["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(y,{"yjs:ShapeNodeStyle":g,"demostyle:FlowchartNodeStyle":g,"demostyle:AssetNodeStyle":B,"bpmn:ActivityNodeStyle":m,"bpmn:GatewayNodeStyle":h,"bpmn:ConversationNodeStyle":c,"bpmn:EventNodeStyle":a,"bpmn:DataObjectNodeStyle":b,"bpmn:DataStoreNodeStyle":d,"bpmn:GroupNodeStyle":f,"bpmn:ChoreographyNodeStyle":k,"yjs:BevelNodeStyle":n,"yjs:ShinyPlateNodeStyle":q,"demostyle:DemoGroupStyle":t,"yjs:CollapsibleNodeStyleDecorator":A,
-"bpmn:PoolNodeStyle":C,"yjs:TableNodeStyle":C,"demotablestyle:DemoTableStyle":C,"yjs:ImageNodeStyle":I,"y:ShapeNode":g,"y:GenericNode":S,"y:GenericGroupNode":S,"y:TableNode":O,"y:SVGNode":N,"y:GroupNode":K},z)};
+"bpmn:PoolNodeStyle":C,"yjs:TableNodeStyle":C,"demotablestyle:DemoTableStyle":C,"yjs:ImageNodeStyle":I,"y:ShapeNode":g,"y:GenericNode":S,"y:GenericGroupNode":S,"y:TableNode":L,"y:SVGNode":Q,"y:GroupNode":K},z)};
mxGraphMlCodec.prototype.handleTemplates=function(g,y,z,B){if(g){var m=z.geometry.width,h=z.geometry.height;z='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+m+" "+h+'"><g>';for(var c,a=[],b=/\{TemplateBinding\s+([^}]+)\}/g;null!=(c=b.exec(g));){var d="";switch(c[1]){case "width":d=m;break;case "height":d=h}a.push({match:c[0],repl:d})}if(y&&y["y:Json"])for(y=JSON.parse(y["y:Json"]["#text"]),m=/\{Binding\s+([^}]+)\}/g;null!=(c=m.exec(g));)if(h=c[1].split(","),
b=y[h[0]])1<h.length&&h[1].indexOf("Converter=")&&(d=mxGraphMlConverters[h[1].substr(11)])&&(b=[b],h[2]&&b.push(h[2].substr(11)),b=d.apply(null,b)),a.push({match:c[0],repl:mxUtils.htmlEntities(b)});for(c=0;c<a.length;c++)g=g.replace(a[c].match,a[c].repl);a=[];for(y=/<text.+data-content="([^"]+).+<\/text>/g;null!=(c=y.exec(g));)b=c[0].substr(0,c[0].length-7)+c[1]+"</text>",a.push({match:c[0],repl:b});for(c=0;c<a.length;c++)g=g.replace(a[c].match,a[c].repl);g=z+g+"</g></svg>";B.shape="image";B.image=
"data:image/svg+xml,"+(window.btoa?btoa(g):Base64.encode(g))}};
@@ -1680,16 +1680,16 @@ mxGraphMlCodec.prototype.addEdgeStyle=function(g,y,z){g=function(a,b){b.dashed=1
h={defaults:{rounded:0,endArrow:"none"},configuration:{key:"shape",mod:"shape"},"y:LineStyle":{color:{key:"strokeColor",mod:"color"},type:function(a,b){"line"!=a&&(b.dashed=1);var d=null;switch(a){case "dashed":d="3 1";break;case "dotted":d="1 1";break;case "dashed_dotted":d="3 2 1 2"}d&&(b.dashPattern=d)},width:"strokeWidth"},"y:Arrows":{source:function(a,b){b.startArrow=mxGraphMlArrowsMap[a]||"classic";m(a,b)},target:function(a,b){b.endArrow=mxGraphMlArrowsMap[a]||"classic";B(a,b)}},"y:BendStyle":{smoothed:{key:"rounded",
mod:"bool"}}},c=mxUtils.clone(h);c.defaults.curved="1";this.mapObject(y,{"yjs:PolylineEdgeStyle":{defaults:{endArrow:"none",rounded:0},smoothingLength:function(a,b){b.rounded=a&&0<parseFloat(a)?"1":"0"},stroke:{key:"strokeColor",mod:"color"},"stroke.yjs:Stroke":{dashStyle:g,"dashStyle.yjs:DashStyle.dashes":g,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:B,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:m,scale:{key:"startSize",mod:"scale",scale:5},type:{key:"startArrow",mod:"arrow"}}},"y:PolyLineEdge":h,"y:GenericEdge":h,"y:ArcEdge":c,"y:BezierEdge":c,"y:QuadCurveEdge":c,"y:SplineEdge":c},z)};
-mxGraphMlCodec.prototype.addLabels=function(g,y,z,B,m){z=g.getChildCount();var h=y[mxGraphMlConstants.Y_LABEL]||y;y=[];var c=[],a=[];if(h){h instanceof Array||(h=[h]);for(var b=0;b<h.length;b++){var d=h[b],f={},k=d[mxGraphMlConstants.TEXT]||d;k&&(k=k["#text"]);var n=d[mxGraphMlConstants.LAYOUTPARAMETER]||d||{},q=function(K,O){K&&(K=K.toUpperCase());var S=O.fontStyle||0;switch(K){case "ITALIC":S|=2;break;case "BOLD":S|=1;break;case "UNDERLINE":S|=4}O.fontStyle=S};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(K,O){K&&(O.whiteSpace="wrap")},"font.yjs:Font":{fontFamily:"fontFamily",
-fontSize:"fontSize",fontStyle:q,fontWeight:q,textDecoration:q}},"Style.y:VoidLabelStyle":function(K,O){O.VoidLbl=!0},alignment:"align",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:q,underlinedText:function(K,O){var S=O.fontStyle||0;"true"==K&&(S|=4);O.fontStyle=S},horizontalTextPosition:"",textColor:{key:"fontColor",mod:"color"},verticalTextPosition:"verticalAlign",hasText:{key:"hasText",mod:"bool"},rotationAngle:"rotation"},f);f.VoidLbl||"0"==f.hasText||(y.push(k),c.push(f),a.push(n))}}for(b=
+mxGraphMlCodec.prototype.addLabels=function(g,y,z,B,m){z=g.getChildCount();var h=y[mxGraphMlConstants.Y_LABEL]||y;y=[];var c=[],a=[];if(h){h instanceof Array||(h=[h]);for(var b=0;b<h.length;b++){var d=h[b],f={},k=d[mxGraphMlConstants.TEXT]||d;k&&(k=k["#text"]);var n=d[mxGraphMlConstants.LAYOUTPARAMETER]||d||{},q=function(K,L){K&&(K=K.toUpperCase());var S=L.fontStyle||0;switch(K){case "ITALIC":S|=2;break;case "BOLD":S|=1;break;case "UNDERLINE":S|=4}L.fontStyle=S};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(K,L){K&&(L.whiteSpace="wrap")},"font.yjs:Font":{fontFamily:"fontFamily",
+fontSize:"fontSize",fontStyle:q,fontWeight:q,textDecoration:q}},"Style.y:VoidLabelStyle":function(K,L){L.VoidLbl=!0},alignment:"align",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:q,underlinedText:function(K,L){var S=L.fontStyle||0;"true"==K&&(S|=4);L.fontStyle=S},horizontalTextPosition:"",textColor:{key:"fontColor",mod:"color"},verticalTextPosition:"verticalAlign",hasText:{key:"hasText",mod:"bool"},rotationAngle:"rotation"},f);f.VoidLbl||"0"==f.hasText||(y.push(k),c.push(f),a.push(n))}}for(b=
0;b<y.length;b++)if(y[b]&&(!a[b]||!a[b]["bpmn:ParticipantParameter"])){y[b]=mxUtils.htmlEntities(y[b],!1).replace(/\n/g,"<br/>");n=g.geometry;f=new mxCell(y[b],new mxGeometry(0,0,n.width,n.height),"text;html=1;spacing=0;"+this.styleMap2Str(c[b]));f.vertex=!0;g.insert(f,z);h=f.geometry;if(a[b]["y:RatioAnchoredLabelModelParameter"])n=mxUtils.getSizeForString(y[b],c[b].fontSize,c[b].fontFamily),(d=a[b]["y:RatioAnchoredLabelModelParameter"].LayoutOffset)?(d=d.split(","),h.x=parseFloat(d[0]),h.y=parseFloat(d[1]),
h.width=n.width,h.height=n.height,f.style+=";spacingTop=-4;"):f.style+=";align=center;";else if(a[b]["y:InteriorLabelModel"]){switch(a[b]["y:InteriorLabelModel"]){case "Center":f.style+=";verticalAlign=middle;";break;case "North":h.height=1;break;case "West":h.width=n.height,h.height=n.width,h.y=n.height/2-n.width/2,h.x=-h.y,f.style+=";rotation=-90"}f.style+=";align=center;"}else if(a[b]["y:StretchStripeLabelModel"]||a[b]["y:StripeLabelModelParameter"])switch(a[b]["y:StretchStripeLabelModel"]||a[b]["y:StripeLabelModelParameter"].Position){case "North":h.height=
1;break;case "West":h.width=n.height,h.height=n.width,h.y=n.height/2-n.width/2,h.x=-h.y,f.style+=";rotation=-90;"}else if(a[b]["bpmn:PoolHeaderLabelModel"]){switch(a[b]["bpmn:PoolHeaderLabelModel"]){case "NORTH":h.height=1;break;case "WEST":h.width=n.height,h.height=n.width,h.y=n.height/2-n.width/2,h.x=-h.y,f.style+=";rotation=-90;"}f.style+=";align=center;"}else if(a[b]["y:InteriorStretchLabelModelParameter"])f.style+=";align=center;";else if(a[b]["y:ExteriorLabelModel"])switch(a[b]["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(a[b]["y:FreeEdgeLabelModelParameter"]){h.relative=!0;h.adjustIt=!0;n=a[b]["y:FreeEdgeLabelModelParameter"];
d=n.Ratio;q=n.Distance;var t=n.Angle;d&&(h.x=parseFloat(d));q&&(h.y=parseFloat(q));t&&(f.style+=";rotation="+parseFloat(t)*(180/Math.PI));f.style+=";verticalAlign=middle;"}else if(a[b]["y:EdgePathLabelModelParameter"]){h.relative=!0;n=a[b]["y:EdgePathLabelModelParameter"];k=n.SideOfEdge;d=n.SegmentRatio;h.x=d?2*parseFloat(d)-1:0;if(k)switch(k){case "RightOfEdge":h.y=-15;break;case "LeftOfEdge":h.y=15}f.style+=";verticalAlign=middle;"}else if(n=parseFloat(a[b].x),d=parseFloat(a[b].y),a[b].width&&(h.width=
parseFloat(a[b].width)),a[b].height&&(h.height=parseFloat(a[b].height)),g.edge)if(h.relative=!0,h.x=0,h.y=0,f=g.source.geometry.getCenterX()-g.target.geometry.getCenterX(),k=g.source.geometry.getCenterY()-g.target.geometry.getCenterY(),B&&m&&a[b]["y:ModelParameter"]&&a[b]["y:ModelParameter"]["y:SmartEdgeLabelModelParameter"]){n=a[b]["y:ModelParameter"]["y:SmartEdgeLabelModelParameter"];t=parseFloat(n.angle);q=parseFloat(n.distance);var A=n.position;d=parseFloat(n.ratio);n=parseFloat(n.segment);var C=
-new mxCellState;C.absolutePoints=m;B.view.updateEdgeBounds(C);var I="left"==A?1:-1;if(-1==n&&6.283185307179586==t)h.offset=new mxPoint(1>Math.abs(d)?C.segments[0]*d:d,I*q);else{-1==n&&(n=0);for(var N=t=0;N<n;N++)t+=C.segments[N];t+=C.segments[n]*d;h.x=t/C.length*2-1;h.y=(("center"==A?0:q)+h.height/2*I*(Math.abs(f)>Math.abs(k)?1:-1))*I}}else isNaN(n)||isNaN(d)||(h.offset=new mxPoint(n+f/2+(0<f?-h.width:h.width),d));else h.x=n||0,h.y=d||0;c[b].rotation&&270==c[b].rotation&&(h.x-=h.height/2)}return{lblTxts:y,
+new mxCellState;C.absolutePoints=m;B.view.updateEdgeBounds(C);var I="left"==A?1:-1;if(-1==n&&6.283185307179586==t)h.offset=new mxPoint(1>Math.abs(d)?C.segments[0]*d:d,I*q);else{-1==n&&(n=0);for(var Q=t=0;Q<n;Q++)t+=C.segments[Q];t+=C.segments[n]*d;h.x=t/C.length*2-1;h.y=(("center"==A?0:q)+h.height/2*I*(Math.abs(f)>Math.abs(k)?1:-1))*I}}else isNaN(n)||isNaN(d)||(h.offset=new mxPoint(n+f/2+(0<f?-h.width:h.width),d));else h.x=n||0,h.y=d||0;c[b].rotation&&270==c[b].rotation&&(h.x-=h.height/2)}return{lblTxts:y,
lblStyles:c}};mxGraphMlCodec.prototype.processPage=function(g,y){g=(new mxCodec).encode(g.getModel());g.setAttribute("style","default-style2");g=mxUtils.getXml(g);y='<diagram name="Page '+y+'">'+Graph.compress(g);return y+"</diagram>"};mxGraphMlCodec.prototype.getDirectChildNamedElements=function(g,y){var z=[];for(g=g.firstChild;null!=g;g=g.nextSibling)null!=g&&1==g.nodeType&&y==g.nodeName&&z.push(g);return z};
mxGraphMlCodec.prototype.getDirectFirstChildNamedElements=function(g,y){for(g=g.firstChild;null!=g;g=g.nextSibling)if(null!=g&&1==g.nodeType&&y==g.nodeName)return g;return null};mxGraphMlCodec.prototype.getDirectChildElements=function(g){var y=[];for(g=g.firstChild;null!=g;g=g.nextSibling)null!=g&&1==g.nodeType&&y.push(g);return y};mxGraphMlCodec.prototype.getDirectFirstChildElement=function(g){for(g=g.firstChild;null!=g;g=g.nextSibling)if(null!=g&&1==g.nodeType)return g;return null};
var mxGraphMlConverters={"orgchartconverters.linebreakconverter":function(g,y){if("string"===typeof g){for(var z=g;20<z.length&&-1<z.indexOf(" ");)z=z.substring(0,z.lastIndexOf(" "));return"true"===y?z:g.substring(z.length)}return""},"orgchartconverters.borderconverter":function(g,y){return"boolean"===typeof g?g?"#FFBB33":"rgba(0,0,0,0)":"#FFF"},"orgchartconverters.addhashconverter":function(g,y){return"string"===typeof g?"string"===typeof y?"#"+g+y:"#"+g:g},"orgchartconverters.intermediateconverter":function(g,
diff --git a/src/main/webapp/js/integrate.min.js b/src/main/webapp/js/integrate.min.js
index 51fc86747..dd83f0f35 100644
--- a/src/main/webapp/js/integrate.min.js
+++ b/src/main/webapp/js/integrate.min.js
@@ -64,7 +64,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.0.15",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.0.16",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||
@@ -2003,9 +2003,9 @@ Editor.prototype.setModified=function(a){this.modified=a};Editor.prototype.setFi
Editor.prototype.createUndoManager=function(){var a=this.graph,b=new mxUndoManager;this.undoListener=function(f,h){b.undoableEditHappened(h.getProperty("edit"))};var e=mxUtils.bind(this,function(f,h){this.undoListener.apply(this,arguments)});a.getModel().addListener(mxEvent.UNDO,e);a.getView().addListener(mxEvent.UNDO,e);e=function(f,h){f=h.getProperty("edit").changes;f=a.getSelectionCellsForChanges(f);h=!1;if(0<f.length){for(var d=[],g=0;g<f.length;g++)null!=a.view.getState(f[g])&&(d.push(f[g]),
h||(a.scrollCellToVisible(f[g]),h=!0));a.setSelectionCells(d)}};b.addListener(mxEvent.UNDO,e);b.addListener(mxEvent.REDO,e);return b};Editor.prototype.initStencilRegistry=function(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=null)};OpenFile=function(a){this.consumer=this.producer=null;this.done=a;this.args=null};OpenFile.prototype.setConsumer=function(a){this.consumer=a;this.execute()};OpenFile.prototype.setData=function(){this.args=arguments;this.execute()};
OpenFile.prototype.error=function(a){this.cancel(!0);mxUtils.alert(a)};OpenFile.prototype.execute=function(){null!=this.consumer&&null!=this.args&&(this.cancel(!1),this.consumer.apply(this,this.args))};OpenFile.prototype.cancel=function(a){null!=this.done&&this.done(null!=a?a:!0)};
-function Dialog(a,b,e,f,h,d,g,m,p,k,u){this.editorUi=a;var w=p?57:0,z=e,C=f,E=p?0:64,D=Editor.inlineFullscreen||null==a.embedViewport?this.getDocumentSize():mxUtils.clone(a.embedViewport);null==a.embedViewport&&null!=window.innerHeight&&(D.height=window.innerHeight);var G=D.height;D=Math.max(1,Math.round((D.width-e-E)/2));var J=Math.max(1,Math.round((G-f-a.footerHeight)/3));b.style.maxHeight="100%";e=null!=document.body?Math.min(e,document.body.scrollWidth-E):e;f=Math.min(f,G-E);0<a.dialogs.length&&
+function Dialog(a,b,e,f,h,d,g,m,q,k,u){this.editorUi=a;var w=q?57:0,z=e,C=f,E=q?0:64,D=Editor.inlineFullscreen||null==a.embedViewport?this.getDocumentSize():mxUtils.clone(a.embedViewport);null==a.embedViewport&&null!=window.innerHeight&&(D.height=window.innerHeight);var G=D.height;D=Math.max(1,Math.round((D.width-e-E)/2));var J=Math.max(1,Math.round((G-f-a.footerHeight)/3));b.style.maxHeight="100%";e=null!=document.body?Math.min(e,document.body.scrollWidth-E):e;f=Math.min(f,G-E);0<a.dialogs.length&&
(this.zIndex+=2*a.dialogs.length);null==this.bg&&(this.bg=a.createDiv("geBackground"),this.bg.style.position="absolute",this.bg.style.height=G+"px",this.bg.style.right="0px",this.bg.style.zIndex=this.zIndex-2,mxUtils.setOpacity(this.bg,this.bgOpacity));var L=mxUtils.getDocumentScrollOrigin(document);this.bg.style.left=L.x+"px";this.bg.style.top=L.y+"px";D+=L.x;J+=L.y;Editor.inlineFullscreen||null==a.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px",J+=a.embedViewport.y,D+=a.embedViewport.x);
-h&&document.body.appendChild(this.bg);var Q=a.createDiv(p?"geTransDialog":"geDialog");h=this.getPosition(D,J,e,f);D=h.x;J=h.y;Q.style.width=e+"px";Q.style.height=f+"px";Q.style.left=D+"px";Q.style.top=J+"px";Q.style.zIndex=this.zIndex;Q.appendChild(b);document.body.appendChild(Q);!m&&b.clientHeight>Q.clientHeight-E&&(b.style.overflowY="auto");b.style.overflowX="hidden";if(d&&(d=document.createElement("img"),d.setAttribute("src",Dialog.prototype.closeImage),d.setAttribute("title",mxResources.get("close")),
+h&&document.body.appendChild(this.bg);var Q=a.createDiv(q?"geTransDialog":"geDialog");h=this.getPosition(D,J,e,f);D=h.x;J=h.y;Q.style.width=e+"px";Q.style.height=f+"px";Q.style.left=D+"px";Q.style.top=J+"px";Q.style.zIndex=this.zIndex;Q.appendChild(b);document.body.appendChild(Q);!m&&b.clientHeight>Q.clientHeight-E&&(b.style.overflowY="auto");b.style.overflowX="hidden";if(d&&(d=document.createElement("img"),d.setAttribute("src",Dialog.prototype.closeImage),d.setAttribute("title",mxResources.get("close")),
d.className="geDialogClose",d.style.top=J+14+"px",d.style.left=D+e+38-w+"px",d.style.zIndex=this.zIndex,mxEvent.addListener(d,"click",mxUtils.bind(this,function(){a.hideDialog(!0)})),document.body.appendChild(d),this.dialogImg=d,!u)){var N=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(U){N=!0}),null,mxUtils.bind(this,function(U){N&&(a.hideDialog(!0),N=!1)}))}this.resizeListener=mxUtils.bind(this,function(){if(null!=k){var U=k();null!=U&&(z=e=U.w,C=f=U.h)}U=Editor.inlineFullscreen||
null==a.embedViewport?this.getDocumentSize():mxUtils.clone(a.embedViewport);G=U.height;this.bg.style.height=G+"px";Editor.inlineFullscreen||null==a.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px");e=null!=document.body?Math.min(z,document.body.scrollWidth-E):z;f=Math.min(C,G-E);U=Math.max(1,Math.round((U.width-e-E)/2));var Y=Math.max(1,Math.round((G-f-a.footerHeight)/3));Y=this.getPosition(U,Y,e,f);U=Y.x;Y=Y.y;var P=mxUtils.getDocumentScrollOrigin(document);U+=P.x;Y+=P.y;Editor.inlineFullscreen||
null==a.embedViewport||(Y+=a.embedViewport.y,U+=a.embedViewport.x);Q.style.left=U+"px";Q.style.top=Y+"px";Q.style.width=e+"px";Q.style.height=f+"px";!m&&b.clientHeight>Q.clientHeight-E&&(b.style.overflowY="auto");null!=this.dialogImg&&(this.dialogImg.style.top=Y+14+"px",this.dialogImg.style.left=U+e+38-w+"px")});null!=a.embedViewport?a.addListener("embedViewportChanged",this.resizeListener):mxEvent.addListener(window,"resize",this.resizeListener);this.onDialogClose=g;this.container=Q;a.editor.fireEvent(new mxEventObject("showDialog"))}
@@ -2016,70 +2016,70 @@ Dialog.prototype.clearImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhDQAKA
"/clear.gif";Dialog.prototype.bgOpacity=80;Dialog.prototype.getDocumentSize=function(){return mxUtils.getDocumentSize()};Dialog.prototype.getPosition=function(a,b){return new mxPoint(a,b)};
Dialog.prototype.close=function(a,b){if(null!=this.onDialogClose){if(0==this.onDialogClose(a,b))return!1;this.onDialogClose=null}null!=this.dialogImg&&null!=this.dialogImg.parentNode&&(this.dialogImg.parentNode.removeChild(this.dialogImg),this.dialogImg=null);null!=this.bg&&null!=this.bg.parentNode&&this.bg.parentNode.removeChild(this.bg);null!=this.editorUi.embedViewport?this.editorUi.removeListener(this.resizeListener):mxEvent.removeListener(window,"resize",this.resizeListener);null!=this.container.parentNode&&
this.container.parentNode.removeChild(this.container)};
-var ErrorDialog=function(a,b,e,f,h,d,g,m,p,k,u){p=null!=p?p:!0;var w=document.createElement("div");w.style.textAlign="center";if(null!=b){var z=document.createElement("div");z.style.padding="0px";z.style.margin="0px";z.style.fontSize="18px";z.style.paddingBottom="16px";z.style.marginBottom="10px";z.style.borderBottom="1px solid #c0c0c0";z.style.color="gray";z.style.whiteSpace="nowrap";z.style.textOverflow="ellipsis";z.style.overflow="hidden";mxUtils.write(z,b);z.setAttribute("title",b);w.appendChild(z)}b=
+var ErrorDialog=function(a,b,e,f,h,d,g,m,q,k,u){q=null!=q?q:!0;var w=document.createElement("div");w.style.textAlign="center";if(null!=b){var z=document.createElement("div");z.style.padding="0px";z.style.margin="0px";z.style.fontSize="18px";z.style.paddingBottom="16px";z.style.marginBottom="10px";z.style.borderBottom="1px solid #c0c0c0";z.style.color="gray";z.style.whiteSpace="nowrap";z.style.textOverflow="ellipsis";z.style.overflow="hidden";mxUtils.write(z,b);z.setAttribute("title",b);w.appendChild(z)}b=
document.createElement("div");b.style.lineHeight="1.2em";b.style.padding="6px";"string"===typeof e&&(e=e.replace(/\n/g,"<br/>"));b.innerHTML=Graph.sanitizeHtml(e);w.appendChild(b);e=document.createElement("div");e.style.marginTop="12px";e.style.textAlign="center";null!=d&&(b=mxUtils.button(mxResources.get("tryAgain"),function(){a.hideDialog();d()}),b.className="geBtn",e.appendChild(b),e.style.textAlign="center");null!=k&&(k=mxUtils.button(k,function(){null!=u&&u()}),k.className="geBtn",e.appendChild(k));
-var C=mxUtils.button(f,function(){p&&a.hideDialog();null!=h&&h()});C.className="geBtn";e.appendChild(C);null!=g&&(f=mxUtils.button(g,function(){p&&a.hideDialog();null!=m&&m()}),f.className="geBtn gePrimaryBtn",e.appendChild(f));this.init=function(){C.focus()};w.appendChild(e);this.container=w},PrintDialog=function(a,b,e){this.create(a,b,e)};
+var C=mxUtils.button(f,function(){q&&a.hideDialog();null!=h&&h()});C.className="geBtn";e.appendChild(C);null!=g&&(f=mxUtils.button(g,function(){q&&a.hideDialog();null!=m&&m()}),f.className="geBtn gePrimaryBtn",e.appendChild(f));this.init=function(){C.focus()};w.appendChild(e);this.container=w},PrintDialog=function(a,b,e){this.create(a,b,e)};
PrintDialog.prototype.create=function(a){function b(C){var E=g.checked||k.checked,D=parseInt(w.value)/100;isNaN(D)&&(D=1,w.value="100%");mxClient.IS_SF&&(D*=.75);var G=e.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,J=1/e.pageScale;if(E){var L=g.checked?1:parseInt(u.value);isNaN(L)||(J=mxUtils.getScaleForPageCount(L,e,G))}var Q=L=0;G=mxRectangle.fromRectangle(G);G.width=Math.ceil(G.width*D);G.height=Math.ceil(G.height*D);J*=D;!E&&e.pageVisible?(D=e.getPageLayout(),L-=D.x*G.width,Q-=D.y*G.height):
-E=!0;E=PrintDialog.createPrintPreview(e,J,G,0,L,Q,E);E.open();C&&PrintDialog.printPreview(E)}var e=a.editor.graph,f=document.createElement("table");f.style.width="100%";f.style.height="100%";var h=document.createElement("tbody");var d=document.createElement("tr");var g=document.createElement("input");g.setAttribute("type","checkbox");var m=document.createElement("td");m.setAttribute("colspan","2");m.style.fontSize="10pt";m.appendChild(g);var p=document.createElement("span");mxUtils.write(p," "+mxResources.get("fitPage"));
-m.appendChild(p);mxEvent.addListener(p,"click",function(C){g.checked=!g.checked;k.checked=!g.checked;mxEvent.consume(C)});mxEvent.addListener(g,"change",function(){k.checked=!g.checked});d.appendChild(m);h.appendChild(d);d=d.cloneNode(!1);var k=document.createElement("input");k.setAttribute("type","checkbox");m=document.createElement("td");m.style.fontSize="10pt";m.appendChild(k);p=document.createElement("span");mxUtils.write(p," "+mxResources.get("posterPrint")+":");m.appendChild(p);mxEvent.addListener(p,
+E=!0;E=PrintDialog.createPrintPreview(e,J,G,0,L,Q,E);E.open();C&&PrintDialog.printPreview(E)}var e=a.editor.graph,f=document.createElement("table");f.style.width="100%";f.style.height="100%";var h=document.createElement("tbody");var d=document.createElement("tr");var g=document.createElement("input");g.setAttribute("type","checkbox");var m=document.createElement("td");m.setAttribute("colspan","2");m.style.fontSize="10pt";m.appendChild(g);var q=document.createElement("span");mxUtils.write(q," "+mxResources.get("fitPage"));
+m.appendChild(q);mxEvent.addListener(q,"click",function(C){g.checked=!g.checked;k.checked=!g.checked;mxEvent.consume(C)});mxEvent.addListener(g,"change",function(){k.checked=!g.checked});d.appendChild(m);h.appendChild(d);d=d.cloneNode(!1);var k=document.createElement("input");k.setAttribute("type","checkbox");m=document.createElement("td");m.style.fontSize="10pt";m.appendChild(k);q=document.createElement("span");mxUtils.write(q," "+mxResources.get("posterPrint")+":");m.appendChild(q);mxEvent.addListener(q,
"click",function(C){k.checked=!k.checked;g.checked=!k.checked;mxEvent.consume(C)});d.appendChild(m);var u=document.createElement("input");u.setAttribute("value","1");u.setAttribute("type","number");u.setAttribute("min","1");u.setAttribute("size","4");u.setAttribute("disabled","disabled");u.style.width="50px";m=document.createElement("td");m.style.fontSize="10pt";m.appendChild(u);mxUtils.write(m," "+mxResources.get("pages")+" (max)");d.appendChild(m);h.appendChild(d);mxEvent.addListener(k,"change",
function(){k.checked?u.removeAttribute("disabled"):u.setAttribute("disabled","disabled");g.checked=!k.checked});d=d.cloneNode(!1);m=document.createElement("td");mxUtils.write(m,mxResources.get("pageScale")+":");d.appendChild(m);m=document.createElement("td");var w=document.createElement("input");w.setAttribute("value","100 %");w.setAttribute("size","5");w.style.width="50px";m.appendChild(w);d.appendChild(m);h.appendChild(d);d=document.createElement("tr");m=document.createElement("td");m.colSpan=2;
-m.style.paddingTop="20px";m.setAttribute("align","right");p=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});p.className="geBtn";a.editor.cancelFirst&&m.appendChild(p);if(PrintDialog.previewEnabled){var z=mxUtils.button(mxResources.get("preview"),function(){a.hideDialog();b(!1)});z.className="geBtn";m.appendChild(z)}z=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){a.hideDialog();b(!0)});z.className="geBtn gePrimaryBtn";m.appendChild(z);a.editor.cancelFirst||
-m.appendChild(p);d.appendChild(m);h.appendChild(d);f.appendChild(h);this.container=f};PrintDialog.printPreview=function(a){try{null!=a.wnd&&window.setTimeout(function(){a.wnd.focus();a.wnd.print();a.wnd.close()},500)}catch(b){}};
-PrintDialog.createPrintPreview=function(a,b,e,f,h,d,g){b=new mxPrintPreview(a,b,e,f,h,d);b.title=mxResources.get("preview");b.addPageCss=!mxClient.IS_SF;b.printBackgroundImage=!0;b.autoOrigin=g;g=a.background;if(null==g||""==g||g==mxConstants.NONE)g="#ffffff";b.backgroundColor=g;var m=b.isTextLabel;b.isTextLabel=function(k){return"geHint"==!k.className&&m.apply(this,arguments)};var p=b.getLinkForCellState;b.getLinkForCellState=function(k){return a.getAbsoluteUrl(p.apply(this,arguments))};return b};
+m.style.paddingTop="20px";m.setAttribute("align","right");q=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});q.className="geBtn";a.editor.cancelFirst&&m.appendChild(q);if(PrintDialog.previewEnabled){var z=mxUtils.button(mxResources.get("preview"),function(){a.hideDialog();b(!1)});z.className="geBtn";m.appendChild(z)}z=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){a.hideDialog();b(!0)});z.className="geBtn gePrimaryBtn";m.appendChild(z);a.editor.cancelFirst||
+m.appendChild(q);d.appendChild(m);h.appendChild(d);f.appendChild(h);this.container=f};PrintDialog.printPreview=function(a){try{null!=a.wnd&&window.setTimeout(function(){a.wnd.focus();a.wnd.print();a.wnd.close()},500)}catch(b){}};
+PrintDialog.createPrintPreview=function(a,b,e,f,h,d,g){b=new mxPrintPreview(a,b,e,f,h,d);b.title=mxResources.get("preview");b.addPageCss=!mxClient.IS_SF;b.printBackgroundImage=!0;b.autoOrigin=g;g=a.background;if(null==g||""==g||g==mxConstants.NONE)g="#ffffff";b.backgroundColor=g;var m=b.isTextLabel;b.isTextLabel=function(k){return"geHint"==!k.className&&m.apply(this,arguments)};var q=b.getLinkForCellState;b.getLinkForCellState=function(k){return a.getAbsoluteUrl(q.apply(this,arguments))};return b};
PrintDialog.previewEnabled=!0;
var PageSetupDialog=function(a){function b(){var D=w;null!=D&&null!=D.originalSrc&&(D=a.createImageForPageLink(D.originalSrc,null));null!=D&&null!=D.src?(u.style.backgroundImage="url("+D.src+")",u.style.display="inline-block"):(u.style.backgroundImage="",u.style.display="none");u.style.backgroundColor="";null!=z&&z!=mxConstants.NONE&&(u.style.backgroundColor=z,u.style.display="inline-block")}var e=a.editor.graph,f=document.createElement("table");f.style.width="100%";f.style.height="100%";var h=document.createElement("tbody");
var d=document.createElement("tr");var g=document.createElement("td");g.style.verticalAlign="top";g.style.fontSize="10pt";mxUtils.write(g,mxResources.get("paperSize")+":");d.appendChild(g);g=document.createElement("td");g.style.verticalAlign="top";g.style.fontSize="10pt";var m=PageSetupDialog.addPageFormatPanel(g,"pagesetupdialog",e.pageFormat);d.appendChild(g);h.appendChild(d);d=document.createElement("tr");g=document.createElement("td");mxUtils.write(g,mxResources.get("gridSize")+":");d.appendChild(g);
-g=document.createElement("td");g.style.whiteSpace="nowrap";var p=document.createElement("input");p.setAttribute("type","number");p.setAttribute("min","0");p.style.width="40px";p.style.marginLeft="6px";p.value=e.getGridSize();g.appendChild(p);mxEvent.addListener(p,"change",function(){var D=parseInt(p.value);p.value=Math.max(1,isNaN(D)?e.getGridSize():D)});d.appendChild(g);h.appendChild(d);d=document.createElement("tr");g=document.createElement("td");mxUtils.write(g,mxResources.get("background")+":");
+g=document.createElement("td");g.style.whiteSpace="nowrap";var q=document.createElement("input");q.setAttribute("type","number");q.setAttribute("min","0");q.style.width="40px";q.style.marginLeft="6px";q.value=e.getGridSize();g.appendChild(q);mxEvent.addListener(q,"change",function(){var D=parseInt(q.value);q.value=Math.max(1,isNaN(D)?e.getGridSize():D)});d.appendChild(g);h.appendChild(d);d=document.createElement("tr");g=document.createElement("td");mxUtils.write(g,mxResources.get("background")+":");
d.appendChild(g);g=document.createElement("td");var k=document.createElement("button");k.className="geBtn";k.style.margin="0px";mxUtils.write(k,mxResources.get("change")+"...");var u=document.createElement("div");u.style.display="inline-block";u.style.verticalAlign="middle";u.style.backgroundPosition="center center";u.style.backgroundRepeat="no-repeat";u.style.backgroundSize="contain";u.style.border="1px solid lightGray";u.style.borderRadius="4px";u.style.marginRight="14px";u.style.height="32px";
u.style.width="64px";u.style.cursor="pointer";u.style.padding="4px";var w=e.backgroundImage,z=e.background,C=e.shadowVisible,E=function(D){a.showBackgroundImageDialog(function(G,J,L,Q){J||(null!=G&&null!=G.src&&Graph.isPageLink(G.src)&&(G={originalSrc:G.src}),w=G,C=Q);z=L;b()},w,z,!0);mxEvent.consume(D)};mxEvent.addListener(k,"click",E);mxEvent.addListener(u,"click",E);b();g.appendChild(u);g.appendChild(k);d.appendChild(g);h.appendChild(d);d=document.createElement("tr");g=document.createElement("td");
-g.colSpan=2;g.style.paddingTop="16px";g.setAttribute("align","right");k=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});k.className="geBtn";a.editor.cancelFirst&&g.appendChild(k);E=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();var D=parseInt(p.value);isNaN(D)||e.gridSize===D||e.setGridSize(D);D=new ChangePageSetup(a,z,w,m.get());D.ignoreColor=e.background==z;D.ignoreImage=(null!=e.backgroundImage?e.backgroundImage.src:null)===(null!=w?w.src:null);null!=C&&
+g.colSpan=2;g.style.paddingTop="16px";g.setAttribute("align","right");k=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});k.className="geBtn";a.editor.cancelFirst&&g.appendChild(k);E=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();var D=parseInt(q.value);isNaN(D)||e.gridSize===D||e.setGridSize(D);D=new ChangePageSetup(a,z,w,m.get());D.ignoreColor=e.background==z;D.ignoreImage=(null!=e.backgroundImage?e.backgroundImage.src:null)===(null!=w?w.src:null);null!=C&&
(D.shadowVisible=C);e.pageFormat.width==D.previousFormat.width&&e.pageFormat.height==D.previousFormat.height&&D.ignoreColor&&D.ignoreImage&&D.shadowVisible==e.shadowVisible||e.model.execute(D)});E.className="geBtn gePrimaryBtn";g.appendChild(E);a.editor.cancelFirst||g.appendChild(k);d.appendChild(g);h.appendChild(d);f.appendChild(h);this.container=f};
PageSetupDialog.addPageFormatPanel=function(a,b,e,f){b="format-"+b;var h=document.createElement("input");h.setAttribute("name",b);h.setAttribute("type","radio");h.setAttribute("value","portrait");var d=document.createElement("input");d.setAttribute("name",b);d.setAttribute("type","radio");d.setAttribute("value","landscape");var g=document.createElement("select");g.style.marginBottom="4px";g.style.borderRadius="4px";g.style.borderWidth="1px";g.style.borderStyle="solid";g.style.boxSizing="border-box";
-g.style.padding="2px";g.style.width="210px";var m=document.createElement("div");m.style.whiteSpace="nowrap";m.style.marginLeft="4px";m.style.width="210px";m.style.height="24px";h.style.marginRight="6px";m.appendChild(h);b=document.createElement("span");b.style.maxWidth="100px";mxUtils.write(b,mxResources.get("portrait"));m.appendChild(b);d.style.marginLeft="10px";d.style.marginRight="6px";m.appendChild(d);var p=document.createElement("span");p.style.width="100px";mxUtils.write(p,mxResources.get("landscape"));
-m.appendChild(p);var k=document.createElement("div");k.style.whiteSpace="nowrap";k.style.marginLeft="4px";k.style.fontSize="12px";k.style.width="210px";k.style.height="24px";var u=document.createElement("input");u.setAttribute("size","7");u.setAttribute("title",mxResources.get("width"));u.style.textAlign="right";k.appendChild(u);mxUtils.write(k," x ");var w=document.createElement("input");w.setAttribute("size","7");w.setAttribute("title",mxResources.get("height"));w.style.textAlign="right";k.appendChild(w);
+g.style.padding="2px";g.style.width="210px";var m=document.createElement("div");m.style.whiteSpace="nowrap";m.style.marginLeft="4px";m.style.width="210px";m.style.height="24px";h.style.marginRight="6px";m.appendChild(h);b=document.createElement("span");b.style.maxWidth="100px";mxUtils.write(b,mxResources.get("portrait"));m.appendChild(b);d.style.marginLeft="10px";d.style.marginRight="6px";m.appendChild(d);var q=document.createElement("span");q.style.width="100px";mxUtils.write(q,mxResources.get("landscape"));
+m.appendChild(q);var k=document.createElement("div");k.style.whiteSpace="nowrap";k.style.marginLeft="4px";k.style.fontSize="12px";k.style.width="210px";k.style.height="24px";var u=document.createElement("input");u.setAttribute("size","7");u.setAttribute("title",mxResources.get("width"));u.style.textAlign="right";k.appendChild(u);mxUtils.write(k," x ");var w=document.createElement("input");w.setAttribute("size","7");w.setAttribute("title",mxResources.get("height"));w.style.textAlign="right";k.appendChild(w);
var z=document.createElement("select");z.style.marginLeft="4px";z.style.maxWidth="78px";z.style.width="78px";for(var C=[{label:mxResources.get("points"),unit:mxConstants.POINTS},{label:mxResources.get("inches"),unit:mxConstants.INCHES},{label:mxResources.get("millimeters"),unit:mxConstants.MILLIMETERS}],E=0;E<C.length;E++){var D=document.createElement("option");D.setAttribute("value",C[E].unit);mxUtils.write(D,C[E].label);z.appendChild(D)}z.value=Editor.pageSizeUnit;k.appendChild(z);m.style.display=
"none";k.style.display="none";var G={},J=PageSetupDialog.getFormats();for(E=0;E<J.length;E++)C=J[E],G[C.key]=C,D=document.createElement("option"),D.setAttribute("value",C.key),mxUtils.write(D,C.title),g.appendChild(D);var L=function(){g.value="custom";for(var N=0;N<J.length;N++){var U=J[N];null!=U.format&&("a4"==U.key?826==e.width?(e=mxRectangle.fromRectangle(e),e.width=827):826==e.height&&(e=mxRectangle.fromRectangle(e),e.height=827):"a5"==U.key&&(584==e.width?(e=mxRectangle.fromRectangle(e),e.width=
583):584==e.height&&(e=mxRectangle.fromRectangle(e),e.height=583)),e.width==U.format.width&&e.height==U.format.height?(g.value=U.key,h.setAttribute("checked","checked"),h.defaultChecked=!0,h.checked=!0,d.removeAttribute("checked"),d.defaultChecked=!1,d.checked=!1,detected=!0):e.width==U.format.height&&e.height==U.format.width&&(g.value=U.key,h.removeAttribute("checked"),h.defaultChecked=!1,h.checked=!1,d.setAttribute("checked","checked"),d.defaultChecked=!0,detected=d.checked=!0))}"custom"==g.value?
(u.value=Editor.toUnit(e.width,z.value),w.value=Editor.toUnit(e.height,z.value),h.setAttribute("checked","checked"),g.value="custom",m.style.display="none",k.style.display=""):(m.style.display="",k.style.display="none")};L();a.appendChild(g);mxUtils.br(a);a.appendChild(m);a.appendChild(k);var Q=function(N,U){N=G[g.value];null!=N.format?(u.value=Editor.toUnit(d.checked?N.format.height:N.format.width,z.value),w.value=Editor.toUnit(d.checked?N.format.width:N.format.height,z.value),k.style.display="none",
m.style.display=""):(m.style.display="none",k.style.display="");N=parseFloat(u.value);if(isNaN(N)||0>=N)u.value=Editor.toUnit(e.width,z.value);N=parseFloat(w.value);if(isNaN(N)||0>=N)w.value=Editor.toUnit(e.height,z.value);N=new mxRectangle(0,0,Math.floor(Editor.fromUnit(parseFloat(u.value),z.value)),Math.floor(Editor.fromUnit(parseFloat(w.value),z.value)));U||N.width==e.width&&N.height==e.height||(e=N,null!=f&&f(e))};mxEvent.addListener(b,"click",function(N){h.checked=!0;Q(N);mxEvent.consume(N)});
-mxEvent.addListener(p,"click",function(N){d.checked=!0;Q(N);mxEvent.consume(N)});mxEvent.addListener(u,"blur",Q);mxEvent.addListener(u,"click",Q);mxEvent.addListener(w,"blur",Q);mxEvent.addListener(w,"click",Q);mxEvent.addListener(d,"change",Q);mxEvent.addListener(h,"change",Q);mxEvent.addListener(g,"change",function(N){Q(N,"custom"==g.value);mxEvent.consume(N)});mxEvent.addListener(z,"change",function(N){u.value=Editor.toUnit(Editor.fromUnit(u.value,Editor.pageSizeUnit),z.value);w.value=Editor.toUnit(Editor.fromUnit(w.value,
+mxEvent.addListener(q,"click",function(N){d.checked=!0;Q(N);mxEvent.consume(N)});mxEvent.addListener(u,"blur",Q);mxEvent.addListener(u,"click",Q);mxEvent.addListener(w,"blur",Q);mxEvent.addListener(w,"click",Q);mxEvent.addListener(d,"change",Q);mxEvent.addListener(h,"change",Q);mxEvent.addListener(g,"change",function(N){Q(N,"custom"==g.value);mxEvent.consume(N)});mxEvent.addListener(z,"change",function(N){u.value=Editor.toUnit(Editor.fromUnit(u.value,Editor.pageSizeUnit),z.value);w.value=Editor.toUnit(Editor.fromUnit(w.value,
Editor.pageSizeUnit),z.value);Editor.pageSizeUnit=z.value;Q(N,!0);mxEvent.consume(N)});Q(null,!0);return{set:function(N){e=N;L(null,null,!0)},get:function(){return e},widthInput:u,heightInput:w}};
PageSetupDialog.getFormats=function(){return[{key:"letter",title:'US-Letter (8,5" x 11")',format:mxConstants.PAGE_FORMAT_LETTER_PORTRAIT},{key:"legal",title:'US-Legal (8,5" x 14")',format:new mxRectangle(0,0,850,1400)},{key:"tabloid",title:'US-Tabloid (11" x 17")',format:new mxRectangle(0,0,1100,1700)},{key:"executive",title:'US-Executive (7" x 10")',format:new mxRectangle(0,0,700,1E3)},{key:"a0",title:"A0 (841 mm x 1189 mm)",format:new mxRectangle(0,0,3300,4681)},{key:"a1",title:"A1 (594 mm x 841 mm)",
format:new mxRectangle(0,0,2339,3300)},{key:"a2",title:"A2 (420 mm x 594 mm)",format:new mxRectangle(0,0,1654,2336)},{key:"a3",title:"A3 (297 mm x 420 mm)",format:new mxRectangle(0,0,1169,1654)},{key:"a4",title:"A4 (210 mm x 297 mm)",format:mxConstants.PAGE_FORMAT_A4_PORTRAIT},{key:"a5",title:"A5 (148 mm x 210 mm)",format:new mxRectangle(0,0,583,827)},{key:"a6",title:"A6 (105 mm x 148 mm)",format:new mxRectangle(0,0,413,583)},{key:"a7",title:"A7 (74 mm x 105 mm)",format:new mxRectangle(0,0,291,413)},
{key:"b4",title:"B4 (250 mm x 353 mm)",format:new mxRectangle(0,0,980,1390)},{key:"b5",title:"B5 (176 mm x 250 mm)",format:new mxRectangle(0,0,690,980)},{key:"16-9",title:"16:9 (1600 x 900)",format:new mxRectangle(0,0,900,1600)},{key:"16-10",title:"16:10 (1920 x 1200)",format:new mxRectangle(0,0,1200,1920)},{key:"4-3",title:"4:3 (1600 x 1200)",format:new mxRectangle(0,0,1200,1600)},{key:"custom",title:mxResources.get("custom"),format:null}]};
-var FilenameDialog=function(a,b,e,f,h,d,g,m,p,k,u){p=null!=p?p:!0;var w=document.createElement("div"),z=document.createElement("div");z.style.width="100%";z.style.display="grid";z.style.gap="5px 8px";z.style.gridAutoColumns="auto 1fr";z.style.boxSizing="border-box";z.style.padding="3px";var C=document.createElement("div");C.style.display="inline-flex";C.style.alignItems="center";C.style.justifyContent="flex-end";C.style.minWidth="0";var E=document.createElement("div");E.style.display="inline-block";
-E.style.textOverflow="ellipsis";E.style.whiteSpace="nowrap";E.style.overflow="hidden";E.style.fontSize="10pt";E.style.padding="2px 0";E.setAttribute("title",h||mxResources.get("filename"));mxUtils.write(E,(h||mxResources.get("filename"))+":");C.appendChild(E);z.appendChild(C);var D=document.createElement("input");D.setAttribute("value",b||"");D.style.flexGrow="1";var G=mxUtils.button(e,function(){if(null==d||d(D.value))p&&a.hideDialog(),f(D.value)});G.className="geBtn gePrimaryBtn";this.init=function(){if(null!=
+var FilenameDialog=function(a,b,e,f,h,d,g,m,q,k,u){q=null!=q?q:!0;var w=document.createElement("div"),z=document.createElement("div");z.style.width="100%";z.style.display="grid";z.style.gap="5px 8px";z.style.gridAutoColumns="auto 1fr";z.style.boxSizing="border-box";z.style.padding="3px";var C=document.createElement("div");C.style.display="inline-flex";C.style.alignItems="center";C.style.justifyContent="flex-end";C.style.minWidth="0";var E=document.createElement("div");E.style.display="inline-block";
+E.style.textOverflow="ellipsis";E.style.whiteSpace="nowrap";E.style.overflow="hidden";E.style.fontSize="10pt";E.style.padding="2px 0";E.setAttribute("title",h||mxResources.get("filename"));mxUtils.write(E,(h||mxResources.get("filename"))+":");C.appendChild(E);z.appendChild(C);var D=document.createElement("input");D.setAttribute("value",b||"");D.style.flexGrow="1";var G=mxUtils.button(e,function(){if(null==d||d(D.value))q&&a.hideDialog(),f(D.value)});G.className="geBtn gePrimaryBtn";this.init=function(){if(null!=
h||null==g)if(null!=u?Editor.selectFilename(D):(D.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?D.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var J=z.parentNode;if(null!=J){var L=null;mxEvent.addListener(J,"dragleave",function(Q){null!=L&&(L.style.backgroundColor="",L=null);Q.stopPropagation();Q.preventDefault()});mxEvent.addListener(J,"dragover",mxUtils.bind(this,function(Q){null==L&&(!mxClient.IS_IE||10<document.documentMode)&&(L=D,L.style.backgroundColor=
"#ebf2f9");Q.stopPropagation();Q.preventDefault()}));mxEvent.addListener(J,"drop",mxUtils.bind(this,function(Q){null!=L&&(L.style.backgroundColor="",L=null);0<=mxUtils.indexOf(Q.dataTransfer.types,"text/uri-list")&&(D.value=decodeURIComponent(Q.dataTransfer.getData("text/uri-list")),G.click());Q.stopPropagation();Q.preventDefault()}))}}};C=document.createElement("div");C.style.display="inline-flex";C.style.alignItems="center";C.style.gap="4px";C.style.whiteSpace="nowrap";C.appendChild(D);z.appendChild(C);
null==h&&null!=g||null==u||null==a.editor.diagramFileTypes||(C=document.createElement("div"),C.style.display="inline-flex",C.style.alignItems="center",C.style.textOverflow="ellipsis",C.style.justifyContent="flex-end",C.style.fontSize="10pt",mxUtils.write(C,mxResources.get("type")+":"),z.appendChild(C),C=document.createElement("div"),C.style.display="inline-flex",C.style.alignItems="center",C.style.whiteSpace="nowrap",z.appendChild(C),b=FilenameDialog.createFileTypes(a,D,a.editor.diagramFileTypes),
b.style.width="100%",C.appendChild(b));null!=g&&z.appendChild(g);row=document.createElement("div");row.style.gridColumn="1 / span 2";row.style.paddingTop=null!=u?"6px":"14px";row.style.whiteSpace="nowrap";row.style.display="inline-flex";row.style.alignItems="center";row.style.justifyContent="flex-end";row.setAttribute("align","right");C=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=k&&k()});C.className="geBtn";null==m||a.isOffline()||row.appendChild(a.createHelpIcon(m));
a.editor.cancelFirst&&row.appendChild(C);mxEvent.addListener(D,"keypress",function(J){13==J.keyCode&&G.click()});row.appendChild(G);a.editor.cancelFirst||row.appendChild(C);z.appendChild(row);w.appendChild(z);this.container=w};FilenameDialog.filenameHelpLink=null;
FilenameDialog.createFileTypes=function(a,b,e){var f=document.createElement("select");for(a=0;a<e.length;a++){var h=document.createElement("option");h.setAttribute("value",a);mxUtils.write(h,mxResources.get(e[a].description)+" (."+e[a].extension+")");f.appendChild(h)}mxEvent.addListener(f,"change",function(d){d=e[f.value].extension;var g=b.value.lastIndexOf(".drawio.");g=0<g?g:b.value.lastIndexOf(".");"drawio"!=d&&(d="drawio."+d);b.value=0<g?b.value.substring(0,g+1)+d:b.value+"."+d;"createEvent"in
-document?(d=document.createEvent("HTMLEvents"),d.initEvent("change",!1,!0),b.dispatchEvent(d)):b.fireEvent("onchange")});a=function(d){d=b.value.toLowerCase();for(var g=0,m=0;m<e.length;m++){var p=e[m].extension,k=null;"drawio"!=p&&(k=p,p=".drawio."+p);if(d.substring(d.length-p.length-1)=="."+p||null!=k&&d.substring(d.length-k.length-1)=="."+k){g=m;break}}f.value=g};mxEvent.addListener(b,"change",a);mxEvent.addListener(b,"keyup",a);a();return f};
-var WrapperWindow=function(a,b,e,f,h,d,g){var m=a.createSidebarContainer();g(m);this.window=new mxWindow(b,m,e,f,h,d,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);a.installResizeHandler(this,!0);mxClient.IS_SF&&(this.window.div.onselectstart=mxUtils.bind(this,function(p){null==p&&(p=window.event);return null!=p&&a.isSelectionAllowed(p)}))};
-(function(){mxGraphView.prototype.validateBackgroundPage=function(){var g=this.graph;if(null!=g.container&&!g.transparentBackground){if(g.pageVisible){var m=this.getBackgroundPageBounds();if(null==this.backgroundPageShape){for(var p=g.container.firstChild;null!=p&&p.nodeType!=mxConstants.NODETYPE_ELEMENT;)p=p.nextSibling;null!=p&&(this.backgroundPageShape=this.createBackgroundPageShape(m),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,
-this.backgroundPageShape.init(g.container),p.style.position="absolute",g.container.insertBefore(this.backgroundPageShape.node,p),this.backgroundPageShape.redraw(),this.backgroundPageShape.node.className="geBackgroundPage",mxEvent.addListener(this.backgroundPageShape.node,"dblclick",mxUtils.bind(this,function(k){g.dblClick(k)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(k){g.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(k))}),mxUtils.bind(this,function(k){null!=
+document?(d=document.createEvent("HTMLEvents"),d.initEvent("change",!1,!0),b.dispatchEvent(d)):b.fireEvent("onchange")});a=function(d){d=b.value.toLowerCase();for(var g=0,m=0;m<e.length;m++){var q=e[m].extension,k=null;"drawio"!=q&&(k=q,q=".drawio."+q);if(d.substring(d.length-q.length-1)=="."+q||null!=k&&d.substring(d.length-k.length-1)=="."+k){g=m;break}}f.value=g};mxEvent.addListener(b,"change",a);mxEvent.addListener(b,"keyup",a);a();return f};
+var WrapperWindow=function(a,b,e,f,h,d,g){var m=a.createSidebarContainer();g(m);this.window=new mxWindow(b,m,e,f,h,d,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);a.installResizeHandler(this,!0);mxClient.IS_SF&&(this.window.div.onselectstart=mxUtils.bind(this,function(q){null==q&&(q=window.event);return null!=q&&a.isSelectionAllowed(q)}))};
+(function(){mxGraphView.prototype.validateBackgroundPage=function(){var g=this.graph;if(null!=g.container&&!g.transparentBackground){if(g.pageVisible){var m=this.getBackgroundPageBounds();if(null==this.backgroundPageShape){for(var q=g.container.firstChild;null!=q&&q.nodeType!=mxConstants.NODETYPE_ELEMENT;)q=q.nextSibling;null!=q&&(this.backgroundPageShape=this.createBackgroundPageShape(m),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,
+this.backgroundPageShape.init(g.container),q.style.position="absolute",g.container.insertBefore(this.backgroundPageShape.node,q),this.backgroundPageShape.redraw(),this.backgroundPageShape.node.className="geBackgroundPage",mxEvent.addListener(this.backgroundPageShape.node,"dblclick",mxUtils.bind(this,function(k){g.dblClick(k)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(k){g.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(k))}),mxUtils.bind(this,function(k){null!=
g.tooltipHandler&&g.tooltipHandler.isHideOnHover()&&g.tooltipHandler.hide();g.isMouseDown&&!mxEvent.isConsumed(k)&&g.fireMouseEvent(mxEvent.MOUSE_MOVE,new mxMouseEvent(k))}),mxUtils.bind(this,function(k){g.fireMouseEvent(mxEvent.MOUSE_UP,new mxMouseEvent(k))})))}else this.backgroundPageShape.scale=1,this.backgroundPageShape.bounds=m,this.backgroundPageShape.redraw()}else null!=this.backgroundPageShape&&(this.backgroundPageShape.destroy(),this.backgroundPageShape=null);this.validateBackgroundStyles()}};
-mxGraphView.prototype.validateBackgroundStyles=function(g,m,p){var k=this.graph;g=null!=g?g:1;var u=mxUtils.getLightDarkColor(null==k.background||k.background==mxConstants.NONE?k.defaultPageBackgroundColor:k.background).cssText,w=mxUtils.getLightDarkColor(k.defaultPageBorderColor).cssText,z=null!=u&&this.gridColor!=u.toLowerCase()?this.gridColor:"#ffffff",C="none",E="";"simple"==k.getAdaptiveColors()&&k.background!=mxConstants.NONE&&null!=k.background&&(u=k.background);if(k.isGridEnabled()||k.gridVisible){E=
-10;mxClient.IS_SVG?(C=unescape(encodeURIComponent(this.createSvgGrid(z,g))),C=window.btoa?btoa(C):Base64.encode(C,!0),C="url(data:image/svg+xml;base64,"+C+")",E=k.gridSize*this.scale*this.gridSteps*g):C="url("+this.gridImage+")";var D=z=0;m=null!=m?m-this.translate.x*this.scale:0;p=null!=p?p-this.translate.y*this.scale:0;var G=k.gridSize*this.scale*this.gridSteps,J=m%G;G=p%G;null!=k.view.backgroundPageShape&&(D=this.getBackgroundPageBounds(),z=1+D.x,D=1+D.y);E=-Math.round(E-mxUtils.mod(this.translate.x*
-this.scale-z+m,E)+J*g)+"px "+-Math.round(E-mxUtils.mod(this.translate.y*this.scale-D+p,E)+G*g)+"px"}g=k.view.canvas;null!=g.ownerSVGElement&&(g=g.ownerSVGElement);z=!Editor.isDarkMode()&&k.enableDiagramBackground;null!=k.view.backgroundPageShape?(k.view.backgroundPageShape.node.style.backgroundPosition=E,k.view.backgroundPageShape.node.style.backgroundImage=C,k.view.backgroundPageShape.node.style.backgroundColor=u,k.view.backgroundPageShape.node.style.borderColor=w,k.view.backgroundPageShape.node.style.colorScheme=
+mxGraphView.prototype.validateBackgroundStyles=function(g,m,q){var k=this.graph;g=null!=g?g:1;var u=mxUtils.getLightDarkColor(null==k.background||k.background==mxConstants.NONE?k.defaultPageBackgroundColor:k.background).cssText,w=mxUtils.getLightDarkColor(k.defaultPageBorderColor).cssText,z=null!=u&&this.gridColor!=u.toLowerCase()?this.gridColor:"#ffffff",C="none",E="";"simple"==k.getAdaptiveColors()&&k.background!=mxConstants.NONE&&null!=k.background&&(u=k.background);if(k.isGridEnabled()||k.gridVisible){E=
+10;mxClient.IS_SVG?(C=unescape(encodeURIComponent(this.createSvgGrid(z,g))),C=window.btoa?btoa(C):Base64.encode(C,!0),C="url(data:image/svg+xml;base64,"+C+")",E=k.gridSize*this.scale*this.gridSteps*g):C="url("+this.gridImage+")";var D=z=0;m=null!=m?m-this.translate.x*this.scale:0;q=null!=q?q-this.translate.y*this.scale:0;var G=k.gridSize*this.scale*this.gridSteps,J=m%G;G=q%G;null!=k.view.backgroundPageShape&&(D=this.getBackgroundPageBounds(),z=1+D.x,D=1+D.y);E=-Math.round(E-mxUtils.mod(this.translate.x*
+this.scale-z+m,E)+J*g)+"px "+-Math.round(E-mxUtils.mod(this.translate.y*this.scale-D+q,E)+G*g)+"px"}g=k.view.canvas;null!=g.ownerSVGElement&&(g=g.ownerSVGElement);z=!Editor.isDarkMode()&&k.enableDiagramBackground;null!=k.view.backgroundPageShape?(k.view.backgroundPageShape.node.style.backgroundPosition=E,k.view.backgroundPageShape.node.style.backgroundImage=C,k.view.backgroundPageShape.node.style.backgroundColor=u,k.view.backgroundPageShape.node.style.borderColor=w,k.view.backgroundPageShape.node.style.colorScheme=
"none"==k.getAdaptiveColors()?"light":"",k.container.classList.add("geDiagramBackdrop"),g.style.backgroundImage="none",g.style.backgroundColor="",k.container.style.backgroundColor=z?k.diagramBackgroundColor:""):(k.container.classList.remove("geDiagramBackdrop"),g.style.backgroundPosition=E,g.style.backgroundImage=C,"1"==urlParams.transparent?k.container.style.background="transparent":!z||null!=k.background&&k.background!=mxConstants.NONE?g.style.backgroundColor=u:(g.style.backgroundColor=k.diagramBackgroundColor,
-k.container.style.backgroundColor=""))};mxGraphView.prototype.createSvgGrid=function(g,m){for(var p=this.graph.gridSize*this.scale*(null!=m?m:1);p<this.minGridSize;)p*=2;m=this.gridSteps*p;for(var k=[],u=1;u<this.gridSteps;u++){var w=u*p;k.push("M 0 "+w+" L "+m+" "+w+" M "+w+" 0 L "+w+" "+m)}g=mxUtils.getLightDarkColor(g);p="color-scheme: light dark;";mxClient.IS_SF&&(p="color-scheme: "+("none"!=this.graph.getAdaptiveColors()&&Editor.isDarkMode()?"dark":"light"));return'<svg style="'+p+'" width="'+
+k.container.style.backgroundColor=""))};mxGraphView.prototype.createSvgGrid=function(g,m){for(var q=this.graph.gridSize*this.scale*(null!=m?m:1);q<this.minGridSize;)q*=2;m=this.gridSteps*q;for(var k=[],u=1;u<this.gridSteps;u++){var w=u*q;k.push("M 0 "+w+" L "+m+" "+w+" M "+w+" 0 L "+w+" "+m)}g=mxUtils.getLightDarkColor(g);q="color-scheme: light dark;";mxClient.IS_SF&&(q="color-scheme: "+("none"!=this.graph.getAdaptiveColors()&&Editor.isDarkMode()?"dark":"light"));return'<svg style="'+q+'" width="'+
m+'" height="'+m+'" xmlns="'+mxConstants.NS_SVG+'"><defs><pattern id="grid" width="'+m+'" height="'+m+'" patternUnits="userSpaceOnUse"><path d="'+k.join(" ")+'" fill="none" style="stroke:'+mxUtils.htmlEntities(g.cssText)+';" stroke="'+g.light+'" opacity="0.2" stroke-width="1"/><path d="M '+m+" 0 L 0 0 0 "+m+'" fill="none" style="stroke:'+mxUtils.htmlEntities(g.cssText)+';" stroke="'+g.light+'" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(#grid)"/></svg>'};var a=mxGraph.prototype.panGraph;
-mxGraph.prototype.panGraph=function(g,m){a.apply(this,arguments);if(null!=this.shiftPreview1){var p=this.view.canvas;null!=p.ownerSVGElement&&(p=p.ownerSVGElement);var k=this.gridSize*this.view.scale*this.view.gridSteps;k=-Math.round(k-mxUtils.mod(this.view.translate.x*this.view.scale+g,k))+"px "+-Math.round(k-mxUtils.mod(this.view.translate.y*this.view.scale+m,k))+"px";p.style.backgroundPosition=k}};mxGraph.prototype.updatePageBreaks=function(g,m,p){var k=this.view.scale,u=this.view.translate,w=
-this.pageFormat,z=k*this.pageScale,C=this.view.getBackgroundPageBounds();m=C.width;p=C.height;var E=new mxRectangle(k*u.x,k*u.y,w.width*z,w.height*z),D=(g=g&&Math.min(E.width,E.height)>this.minPageBreakDist)?Math.ceil(p/E.height)-1:0,G=g?Math.ceil(m/E.width)-1:0,J=C.x+m,L=C.y+p;null==this.horizontalPageBreaks&&0<D&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<G&&(this.verticalPageBreaks=[]);g=mxUtils.bind(this,function(Q){if(null!=Q){for(var N=Q==this.horizontalPageBreaks?D:G,U=
+mxGraph.prototype.panGraph=function(g,m){a.apply(this,arguments);if(null!=this.shiftPreview1){var q=this.view.canvas;null!=q.ownerSVGElement&&(q=q.ownerSVGElement);var k=this.gridSize*this.view.scale*this.view.gridSteps;k=-Math.round(k-mxUtils.mod(this.view.translate.x*this.view.scale+g,k))+"px "+-Math.round(k-mxUtils.mod(this.view.translate.y*this.view.scale+m,k))+"px";q.style.backgroundPosition=k}};mxGraph.prototype.updatePageBreaks=function(g,m,q){var k=this.view.scale,u=this.view.translate,w=
+this.pageFormat,z=k*this.pageScale,C=this.view.getBackgroundPageBounds();m=C.width;q=C.height;var E=new mxRectangle(k*u.x,k*u.y,w.width*z,w.height*z),D=(g=g&&Math.min(E.width,E.height)>this.minPageBreakDist)?Math.ceil(q/E.height)-1:0,G=g?Math.ceil(m/E.width)-1:0,J=C.x+m,L=C.y+q;null==this.horizontalPageBreaks&&0<D&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<G&&(this.verticalPageBreaks=[]);g=mxUtils.bind(this,function(Q){if(null!=Q){for(var N=Q==this.horizontalPageBreaks?D:G,U=
0;U<=N;U++){var Y=Q==this.horizontalPageBreaks?[new mxPoint(Math.round(C.x),Math.round(C.y+(U+1)*E.height)),new mxPoint(Math.round(J),Math.round(C.y+(U+1)*E.height))]:[new mxPoint(Math.round(C.x+(U+1)*E.width),Math.round(C.y)),new mxPoint(Math.round(C.x+(U+1)*E.width),Math.round(L))];null!=Q[U]?(Q[U].points=Y,Q[U].redraw()):(Y=new mxPolyline(Y,this.pageBreakColor),Y.dialect=this.dialect,Y.isDashed=this.pageBreakDashed,Y.pointerEvents=!1,Y.init(this.view.backgroundPane),Y.redraw(),Q[U]=Y)}for(U=N;U<
-Q.length;U++)null!=Q[U]&&Q[U].destroy();Q.splice(N,Q.length-N)}});g(this.horizontalPageBreaks);g(this.verticalPageBreaks)};var b=mxGraphHandler.prototype.shouldRemoveCellsFromParent;mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(g,m,p){for(var k=0;k<m.length;k++){if(this.graph.isTableCell(m[k])||this.graph.isTableRow(m[k]))return!1;if(this.graph.getModel().isVertex(m[k])){var u=this.graph.getCellGeometry(m[k]);if(null!=u&&u.relative)return!1}}return b.apply(this,arguments)};var e=mxConnectionHandler.prototype.createMarker;
-mxConnectionHandler.prototype.createMarker=function(){var g=e.apply(this,arguments);g.intersects=mxUtils.bind(this,function(m,p){return this.isConnecting()?!0:mxCellMarker.prototype.intersects.apply(g,arguments)});return g};mxGraphView.prototype.createBackgroundPageShape=function(g){return new mxRectangleShape(g,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var g=this.getGraphBounds(),m=0<g.width?g.x/this.scale-this.translate.x:0,p=0<g.height?
-g.y/this.scale-this.translate.y:0,k=this.graph.pageFormat,u=this.graph.pageScale,w=k.width*u;k=k.height*u;u=Math.floor(Math.min(0,m)/w);var z=Math.floor(Math.min(0,p)/k);return new mxRectangle(this.scale*(this.translate.x+u*w),this.scale*(this.translate.y+z*k),this.scale*(Math.ceil(Math.max(1,m+g.width/this.scale)/w)-u)*w,this.scale*(Math.ceil(Math.max(1,p+g.height/this.scale)/k)-z)*k)};var f=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(g,m){f.apply(this,arguments);this.dialect==
-mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=g+"px",this.view.backgroundPageShape.node.style.marginTop=m+"px")};var h=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(g,m,p,k,u,w){var z=h.apply(this,arguments);null==w||w||mxEvent.addListener(z,"mousedown",function(C){mxEvent.consume(C)});return z};var d=mxGraphHandler.prototype.isPropagateSelectionCell;
-mxGraphHandler.prototype.isPropagateSelectionCell=function(g,m,p){var k=this.graph.model.getParent(g);if(m){var u=this.graph.model.isEdge(g)?null:this.graph.getCellGeometry(g);u=!this.graph.model.isEdge(k)&&!this.graph.isSiblingSelected(g)&&(null!=u&&u.relative||!this.graph.isContainer(k)||this.graph.isPart(g))}else if(u=d.apply(this,arguments),this.graph.isTableCell(g)||this.graph.isTableRow(g))u=k,this.graph.isTable(u)||(u=this.graph.model.getParent(u)),u=!this.graph.selectionCellsHandler.isHandled(u)||
-this.graph.isCellSelected(u)&&this.graph.isToggleEvent(p.getEvent())||this.graph.isCellSelected(g)&&!this.graph.isToggleEvent(p.getEvent())||this.graph.isTableCell(g)&&this.graph.isCellSelected(k);return u};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(g){g=g.getCell();for(var m=this.graph.getModel(),p=m.getParent(g),k=this.graph.view.getState(p),u=this.graph.isCellSelected(g);null!=k&&(m.isVertex(p)||m.isEdge(p));){var w=this.graph.isCellSelected(p);u=u||w;if(w||!u&&(this.graph.isTableCell(g)||
-this.graph.isTableRow(g)))g=p;p=m.getParent(p)}return g}})();EditorUi=function(a,b,e){mxEventSource.call(this);this.destroyFunctions=[];this.editor=a||new Editor;this.container=b||document.body;var f=this,h=this.editor.graph;h.lightbox=e;var d=h.getGraphBounds;h.getGraphBounds=function(){var K=d.apply(this,arguments),V=this.backgroundImage;if(null!=V&&null!=V.width&&null!=V.height){var Z=this.view.translate,ia=this.view.scale;K=mxRectangle.fromRectangle(K);K.add(new mxRectangle((Z.x+V.x)*ia,(Z.y+V.y)*ia,V.width*ia,V.height*ia))}return K};h.useCssTransforms&&
+Q.length;U++)null!=Q[U]&&Q[U].destroy();Q.splice(N,Q.length-N)}});g(this.horizontalPageBreaks);g(this.verticalPageBreaks)};var b=mxGraphHandler.prototype.shouldRemoveCellsFromParent;mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(g,m,q){for(var k=0;k<m.length;k++){if(this.graph.isTableCell(m[k])||this.graph.isTableRow(m[k]))return!1;if(this.graph.getModel().isVertex(m[k])){var u=this.graph.getCellGeometry(m[k]);if(null!=u&&u.relative)return!1}}return b.apply(this,arguments)};var e=mxConnectionHandler.prototype.createMarker;
+mxConnectionHandler.prototype.createMarker=function(){var g=e.apply(this,arguments);g.intersects=mxUtils.bind(this,function(m,q){return this.isConnecting()?!0:mxCellMarker.prototype.intersects.apply(g,arguments)});return g};mxGraphView.prototype.createBackgroundPageShape=function(g){return new mxRectangleShape(g,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var g=this.getGraphBounds(),m=0<g.width?g.x/this.scale-this.translate.x:0,q=0<g.height?
+g.y/this.scale-this.translate.y:0,k=this.graph.pageFormat,u=this.graph.pageScale,w=k.width*u;k=k.height*u;u=Math.floor(Math.min(0,m)/w);var z=Math.floor(Math.min(0,q)/k);return new mxRectangle(this.scale*(this.translate.x+u*w),this.scale*(this.translate.y+z*k),this.scale*(Math.ceil(Math.max(1,m+g.width/this.scale)/w)-u)*w,this.scale*(Math.ceil(Math.max(1,q+g.height/this.scale)/k)-z)*k)};var f=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(g,m){f.apply(this,arguments);this.dialect==
+mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=g+"px",this.view.backgroundPageShape.node.style.marginTop=m+"px")};var h=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(g,m,q,k,u,w){var z=h.apply(this,arguments);null==w||w||mxEvent.addListener(z,"mousedown",function(C){mxEvent.consume(C)});return z};var d=mxGraphHandler.prototype.isPropagateSelectionCell;
+mxGraphHandler.prototype.isPropagateSelectionCell=function(g,m,q){var k=this.graph.model.getParent(g);if(m){var u=this.graph.model.isEdge(g)?null:this.graph.getCellGeometry(g);u=!this.graph.model.isEdge(k)&&!this.graph.isSiblingSelected(g)&&(null!=u&&u.relative||!this.graph.isContainer(k)||this.graph.isPart(g))}else if(u=d.apply(this,arguments),this.graph.isTableCell(g)||this.graph.isTableRow(g))u=k,this.graph.isTable(u)||(u=this.graph.model.getParent(u)),u=!this.graph.selectionCellsHandler.isHandled(u)||
+this.graph.isCellSelected(u)&&this.graph.isToggleEvent(q.getEvent())||this.graph.isCellSelected(g)&&!this.graph.isToggleEvent(q.getEvent())||this.graph.isTableCell(g)&&this.graph.isCellSelected(k);return u};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(g){g=g.getCell();for(var m=this.graph.getModel(),q=m.getParent(g),k=this.graph.view.getState(q),u=this.graph.isCellSelected(g);null!=k&&(m.isVertex(q)||m.isEdge(q));){var w=this.graph.isCellSelected(q);u=u||w;if(w||!u&&(this.graph.isTableCell(g)||
+this.graph.isTableRow(g)))g=q;q=m.getParent(q)}return g}})();EditorUi=function(a,b,e){mxEventSource.call(this);this.destroyFunctions=[];this.editor=a||new Editor;this.container=b||document.body;var f=this,h=this.editor.graph;h.lightbox=e;var d=h.getGraphBounds;h.getGraphBounds=function(){var K=d.apply(this,arguments),V=this.backgroundImage;if(null!=V&&null!=V.width&&null!=V.height){var Z=this.view.translate,ia=this.view.scale;K=mxRectangle.fromRectangle(K);K.add(new mxRectangle((Z.x+V.x)*ia,(Z.y+V.y)*ia,V.width*ia,V.height*ia))}return K};h.useCssTransforms&&
(this.lazyZoomDelay=0);this.selectionStateListener=mxUtils.bind(this,function(K,V){this.clearSelectionState()});h.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionStateListener);h.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);h.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);h.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);h.getView().addListener("unitChanged",this.selectionStateListener);if(this.editor.chromeless&&!this.editor.editable){this.footerHeight=
-0;h.isEnabled=function(){return!1};h.panningHandler.isForcePanningEvent=function(K){for(var V=K.getSource();null!=V&&V!=h.container;){if("foreignObject"===V.nodeName||"text"===V.nodeName)return!1;V=V.parentNode}return!mxEvent.isPopupTrigger(K.getEvent())};var g=h.panningHandler.start;h.panningHandler.start=function(){g.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!h.standalone){var m=!1,p=!1;this.setDefaultStyle=function(K){try{h.getModel().isEdge(K)?
-p=h.pasteEdgeStyle=!1:m=!1;var V=h.getCellStyle(K,!1),Z=[],ia=[],oa;for(oa in V)Z.push(V[oa]),ia.push(oa);h.getModel().isEdge(K)?h.currentEdgeStyle={}:h.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",ia,"values",Z,"cells",[K],"force",!0));h.getModel().isEdge(K)?p=h.pasteEdgeStyle=!0:m=!0}catch(sa){this.handleError(sa)}};this.clearDefaultStyle=function(){h.currentEdgeStyle=mxUtils.clone(h.defaultEdgeStyle);h.currentVertexStyle=mxUtils.clone(h.defaultVertexStyle);m=p=h.pasteEdgeStyle=
+0;h.isEnabled=function(){return!1};h.panningHandler.isForcePanningEvent=function(K){for(var V=K.getSource();null!=V&&V!=h.container;){if("foreignObject"===V.nodeName||"text"===V.nodeName)return!1;V=V.parentNode}return!mxEvent.isPopupTrigger(K.getEvent())};var g=h.panningHandler.start;h.panningHandler.start=function(){g.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!h.standalone){var m=!1,q=!1;this.setDefaultStyle=function(K){try{h.getModel().isEdge(K)?
+q=h.pasteEdgeStyle=!1:m=!1;var V=h.getCellStyle(K,!1),Z=[],ia=[],oa;for(oa in V)Z.push(V[oa]),ia.push(oa);h.getModel().isEdge(K)?h.currentEdgeStyle={}:h.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",ia,"values",Z,"cells",[K],"force",!0));h.getModel().isEdge(K)?q=h.pasteEdgeStyle=!0:m=!0}catch(sa){this.handleError(sa)}};this.clearDefaultStyle=function(){h.currentEdgeStyle=mxUtils.clone(h.defaultEdgeStyle);h.currentVertexStyle=mxUtils.clone(h.defaultVertexStyle);m=q=h.pasteEdgeStyle=
!1;this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))};h.addListener("cellsInserted",function(K,V){h.pasteCellStyles(h.includeDescendants(V.getProperty("cells")))});h.addListener("textInserted",function(K,V){h.pasteCellStyles(V.getProperty("cells"))});this.createDivs();this.createUi();this.refresh();var k=mxUtils.bind(this,function(K){null==K&&(K=window.event);return h.isEditing()||null!=K&&this.isSelectionAllowed(K)});this.container!=document.body||this.editor.chromeless&&
!this.editor.editable||(this.menubarContainer.onselectstart=k,this.menubarContainer.onmousedown=k,this.toolbarContainer.onselectstart=k,this.toolbarContainer.onmousedown=k,this.diagramContainer.onselectstart=k,this.diagramContainer.onmousedown=k,this.sidebarContainer.onselectstart=k,this.sidebarContainer.onmousedown=k,this.formatContainer.onselectstart=k,this.formatContainer.onmousedown=k,this.footerContainer.onselectstart=k,this.footerContainer.onmousedown=k,null!=this.tabContainer&&(this.tabContainer.onselectstart=
k),mxClient.IS_IOS&&(b=function(){var K=null;if(/iP(hone|od|ad)/.test(navigator.platform)){var V=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);try{K=[parseInt(V[1],10),parseInt(V[2],10),parseInt(V[3]||0,10)]}catch(Z){}}return K}(),null!=b&&16<=b[0]&&(mxUtils.setPrefixedStyle(this.menubarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.diagramContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.sidebarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.formatContainer.style,
@@ -2093,7 +2093,7 @@ if(null==L)this.toolbar.createTextToolbar();else{for(var ia=0;ia<L.length;ia++)t
(f.toolbar.setFontName(mxUtils.getCssFontFamily(Z.fontFamily)),f.toolbar.setFontSize(parseInt(Z.fontSize))));K=!1},0))};mxEvent.addListener(h.cellEditor.textarea,"input",V);mxEvent.addListener(h.cellEditor.textarea,"touchend",V);mxEvent.addListener(h.cellEditor.textarea,"mouseup",V);mxEvent.addListener(h.cellEditor.textarea,"keyup",V);V()}};var U=h.cellEditor.stopEditing;h.cellEditor.stopEditing=function(K,V){try{U.apply(this,arguments),Q()}catch(Z){f.handleError(Z)}};h.container.setAttribute("tabindex",
"0");h.container.style.cursor="default";if(window.self===window.top&&null!=h.container.parentNode)try{h.container.focus()}catch(K){}var Y=h.fireMouseEvent;h.fireMouseEvent=function(K,V,Z){try{K==mxEvent.MOUSE_DOWN&&this.container.focus(),Y.apply(this,arguments)}catch(ia){f.handleError(ia)}};var P=h.foldCells;h.foldCells=function(K,V,Z,ia,oa){try{P.apply(this,arguments)}catch(sa){f.handleError(sa)}};h.popupMenuHandler.autoExpand=!0;null!=this.menus&&(h.popupMenuHandler.factoryMethod=mxUtils.bind(this,
function(K,V,Z){this.menus.createPopupMenu(K,V,Z)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(K){h.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(a);this.getKeyHandler=function(){return keyHandler};h.connectionHandler.addListener(mxEvent.CONNECT,function(K,V){var Z=[V.getProperty("cell")];V.getProperty("terminalInserted")&&(Z.push(V.getProperty("terminal")),window.setTimeout(function(){null!=f.hoverIcons&&f.hoverIcons.update(h.view.getState(Z[Z.length-
-1]))},0));h.pasteCellStyles(Z)});this.addListener("styleChanged",mxUtils.bind(this,function(K,V){K=V.getProperty("force");(this.updateDefaultStyle||K)&&h.copyCellStyles(V.getProperty("cells"),V.getProperty("keys"),V.getProperty("values"),h.currentVertexStyle,h.currentEdgeStyle,m,p);null!=this.toolbar&&(this.toolbar.setFontName(h.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(h.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),null!=this.toolbar.edgeStyleMenu&&
+1]))},0));h.pasteCellStyles(Z)});this.addListener("styleChanged",mxUtils.bind(this,function(K,V){K=V.getProperty("force");(this.updateDefaultStyle||K)&&h.copyCellStyles(V.getProperty("cells"),V.getProperty("keys"),V.getProperty("values"),h.currentVertexStyle,h.currentEdgeStyle,m,q);null!=this.toolbar&&(this.toolbar.setFontName(h.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(h.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),null!=this.toolbar.edgeStyleMenu&&
(V=this.toolbar.edgeStyleMenu.getElementsByTagName("div")[0],V.style.backgroundPosition="left center",V.style.backgroundRepeat="no-repeat",V.className="geAdaptiveAsset",V.style.height="100%",V.style.width="100%",V.style.backgroundImage="orthogonalEdgeStyle"==h.currentEdgeStyle.edgeStyle&&"1"==h.currentEdgeStyle.curved?"url("+Format.curvedImage.src+")":"straight"==h.currentEdgeStyle.edgeStyle||"none"==h.currentEdgeStyle.edgeStyle||null==h.currentEdgeStyle.edgeStyle?"url("+Format.straightImage.src+
")":"entityRelationEdgeStyle"==h.currentEdgeStyle.edgeStyle?"url("+Format.entityImage.src+")":"elbowEdgeStyle"==h.currentEdgeStyle.edgeStyle?"vertical"==h.currentEdgeStyle.elbow?"url("+Format.verticalElbowImage.src+")":"url("+Format.horizontalElbowImage.src+")":"isometricEdgeStyle"==h.currentEdgeStyle.edgeStyle?"vertical"==h.currentEdgeStyle.elbow?"url("+Format.verticalIsometricImage.src+")":"url("+Format.horizontalIsometricImage.src+")":"url("+Format.orthogonalImage.src+")"),null!=this.toolbar.edgeShapeMenu&&
(V=this.toolbar.edgeShapeMenu.getElementsByTagName("div")[0],V.style.backgroundPosition="left center",V.style.backgroundRepeat="no-repeat",V.className="geAdaptiveAsset",V.style.height="100%",V.style.width="100%",V.style.backgroundImage="link"==h.currentEdgeStyle.shape?"url("+Format.linkEdgeImage.src+")":"flexArrow"==h.currentEdgeStyle.shape?"url("+Format.arrowImage.src+")":"arrow"==h.currentEdgeStyle.shape?"url("+Format.simpleArrowImage.src+")":"url("+Format.connectionImage.src+")"))}));null!=this.toolbar&&
@@ -2102,7 +2102,7 @@ V){K=V.getProperty("cells");V=V.getProperty("parent");null!=V&&h.getModel().isLa
mxEvent.addGestureListeners(document,this.gestureHandler);var T=null;this.resizeHandler=mxUtils.bind(this,function(){null!=T&&window.clearTimeout(T);T=window.setTimeout(mxUtils.bind(this,function(){T=null;this.windowResized()}),100)});mxEvent.addListener(window,"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});mxEvent.addListener(window,"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&!window.navigator.standalone&&"undefined"!==
typeof Menus&&(this.scrollHandler=mxUtils.bind(this,function(){window.scrollTo(0,0)}),mxEvent.addListener(window,"scroll",this.scrollHandler));this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.resetScrollbars()}));this.addListener("gridEnabledChanged",mxUtils.bind(this,function(){h.view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,function(){h.view.validateBackground()}));h.addListener("gridSizeChanged",mxUtils.bind(this,function(){h.isGridEnabled()&&
h.view.validateBackground()}));this.editor.resetGraph()}this.init();h.standalone||this.open()};EditorUi.compactUi=!0;
-EditorUi.parsePng=function(a,b,e){function f(m,p){var k=d;d+=p;return m.substring(k,d)}function h(m){m=f(m,4);return m.charCodeAt(3)+(m.charCodeAt(2)<<8)+(m.charCodeAt(1)<<16)+(m.charCodeAt(0)<<24)}var d=0;if(f(a,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=e&&e();else if(f(a,4),"IHDR"!=f(a,4))null!=e&&e();else{f(a,17);do{e=h(a);var g=f(a,4);if(null!=b&&b(d-8,g,e))break;value=f(a,e);f(a,4);if("IEND"==g)break}while(e)}};mxUtils.extend(EditorUi,mxEventSource);
+EditorUi.parsePng=function(a,b,e){function f(m,q){var k=d;d+=q;return m.substring(k,d)}function h(m){m=f(m,4);return m.charCodeAt(3)+(m.charCodeAt(2)<<8)+(m.charCodeAt(1)<<16)+(m.charCodeAt(0)<<24)}var d=0;if(f(a,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=e&&e();else if(f(a,4),"IHDR"!=f(a,4))null!=e&&e();else{f(a,17);do{e=h(a);var g=f(a,4);if(null!=b&&b(d-8,g,e))break;value=f(a,e);f(a,4);if("IEND"==g)break}while(e)}};mxUtils.extend(EditorUi,mxEventSource);
EditorUi.prototype.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.menubarHeight=30;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.toolbarHeight=38;EditorUi.prototype.footerHeight=28;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?212:240);EditorUi.prototype.hsplitPosition=screen.width<=Editor.smallScreenWidth?0:EditorUi.prototype.defaultSidebarWidth;
EditorUi.prototype.allowAnimation=!0;EditorUi.prototype.lightboxMaxFitScale=2;EditorUi.prototype.lightboxVerticalDivider=4;EditorUi.prototype.hsplitClickEnabled=!1;EditorUi.prototype.updateDefaultStyle=!1;EditorUi.prototype.spaceDown=!1;EditorUi.prototype.shiftDown=!1;
EditorUi.prototype.init=function(){var a=this.editor.graph;if(!a.standalone){"0"!=urlParams["shape-picker"]&&this.installShapePicker();mxEvent.addListener(a.container,"scroll",mxUtils.bind(this,function(){a.tooltipHandler.hide();null!=a.connectionHandler&&null!=a.connectionHandler.constraintHandler&&a.connectionHandler.constraintHandler.reset()}));a.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){a.tooltipHandler.hide();var f=a.getRubberband();null!=f&&f.cancel()}));mxEvent.addListener(a.container,
@@ -2110,31 +2110,31 @@ EditorUi.prototype.init=function(){var a=this.editor.graph;if(!a.standalone){"0"
arguments);e.updateActionStates()};a.showLinkDialog=mxUtils.bind(e,e.showLinkDialog);a.editLink=e.actions.get("editLink").funct;this.updateActionStates();this.initClipboard();this.initCanvas();null!=this.format&&this.format.init()}};EditorUi.prototype.clearSelectionState=function(){this.selectionState=null};EditorUi.prototype.getSelectionState=function(){null==this.selectionState&&(this.selectionState=this.createSelectionState());return this.selectionState};
EditorUi.prototype.createSelectionState=function(){for(var a=this.editor.graph,b=a.getSelectionCells(),e=this.initSelectionState(),f=!0,h=0;h<b.length;h++){var d=a.getCurrentCellStyle(b[h]);"0"!=mxUtils.getValue(d,mxConstants.STYLE_EDITABLE,"1")&&(this.updateSelectionStateForCell(e,b[h],b,f),f=!1)}this.updateSelectionStateForTableCells(e);return e};
EditorUi.prototype.initSelectionState=function(){return{vertices:[],edges:[],cells:[],x:null,y:null,width:null,height:null,style:{},containsImage:!1,containsLabel:!1,fill:!0,glass:!0,html:!0,rounded:!0,autoSize:!1,image:!1,shadow:!0,lineJumps:!0,resizable:!0,table:!1,cell:!1,row:!1,movable:!0,rotatable:!0,stroke:!0,swimlane:!1,unlocked:this.editor.graph.isEnabled(),connections:!1}};
-EditorUi.prototype.updateSelectionStateForTableCells=function(a){if(1<a.cells.length&&a.cell){var b=mxUtils.sortCells(a.cells),e=this.editor.graph.model,f=e.getParent(b[0]),h=e.getParent(f);if(null!=f&&null!=h){for(var d=f.getIndex(b[0]),g=h.getIndex(f),m=null,p=1,k=1,u=0,w=g<h.getChildCount()-1?e.getChildAt(e.getChildAt(h,g+1),d):null;u<b.length-1;){var z=b[++u];null==w||w!=z||null!=m&&p!=m||(m=p,p=0,k++,f=e.getParent(w),w=g+k<h.getChildCount()?e.getChildAt(e.getChildAt(h,g+k),d):null);var C=this.editor.graph.view.getState(z);
-if(z==e.getChildAt(f,d+p)&&null!=C&&1==mxUtils.getValue(C.style,"colspan",1)&&1==mxUtils.getValue(C.style,"rowspan",1))p++;else break}u==k*p-1&&(a.mergeCell=b[0],a.colspan=p,a.rowspan=k)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),0)};
+EditorUi.prototype.updateSelectionStateForTableCells=function(a){if(1<a.cells.length&&a.cell){var b=mxUtils.sortCells(a.cells),e=this.editor.graph.model,f=e.getParent(b[0]),h=e.getParent(f);if(null!=f&&null!=h){for(var d=f.getIndex(b[0]),g=h.getIndex(f),m=null,q=1,k=1,u=0,w=g<h.getChildCount()-1?e.getChildAt(e.getChildAt(h,g+1),d):null;u<b.length-1;){var z=b[++u];null==w||w!=z||null!=m&&q!=m||(m=q,q=0,k++,f=e.getParent(w),w=g+k<h.getChildCount()?e.getChildAt(e.getChildAt(h,g+k),d):null);var C=this.editor.graph.view.getState(z);
+if(z==e.getChildAt(f,d+q)&&null!=C&&1==mxUtils.getValue(C.style,"colspan",1)&&1==mxUtils.getValue(C.style,"rowspan",1))q++;else break}u==k*q-1&&(a.mergeCell=b[0],a.colspan=q,a.rowspan=k)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),0)};
EditorUi.prototype.createTimeout=function(a,b,e){var f=!0,h=null,d=mxUtils.bind(this,function(m){h.clear()&&(f=!1,m=null!=m?m:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(a,b,e)})},null!=e?e(m):this.handleError(m))}),g=window.setTimeout(d,null!=a?a:this.timeout);h={clear:function(){window.clearTimeout(g);return f},isAlive:function(){return f}};null!=b&&this.tryAndHandle(mxUtils.bind(this,function(){b(h)}),d);return h};
EditorUi.prototype.tryAndHandle=function(a,b){try{a()}catch(e){null!=b?b(e):this.handleError(e)}};
-EditorUi.prototype.removeUserDefinedDarkColors=function(a,b,e){var f=this.editor.graph;a=null!=a?a:f.getSelectionCells();var h=Graph.colorStyles,d=document.createElement("div");f.model.beginUpdate();try{for(var g=0;g<a.length;g++)if(f.model.isEdge(a[g])||f.model.isVertex(a[g])){var m=f.getCellStyle(a[g],!1);if(null!=m)for(var p=0;p<h.length;p++)try{var k=m[h[p]];if(mxUtils.isLightDarkColor(k)){var u=mxUtils.getLightDarkColor(k);f.setCellStyles(h[p],u.light,[a[g]])}}catch(z){}b&&f.isHtmlLabel(a[g])&&
+EditorUi.prototype.removeUserDefinedDarkColors=function(a,b,e){var f=this.editor.graph;a=null!=a?a:f.getSelectionCells();var h=Graph.colorStyles,d=document.createElement("div");f.model.beginUpdate();try{for(var g=0;g<a.length;g++)if(f.model.isEdge(a[g])||f.model.isVertex(a[g])){var m=f.getCellStyle(a[g],!1);if(null!=m)for(var q=0;q<h.length;q++)try{var k=m[h[q]];if(mxUtils.isLightDarkColor(k)){var u=mxUtils.getLightDarkColor(k);f.setCellStyles(h[q],u.light,[a[g]])}}catch(z){}b&&f.isHtmlLabel(a[g])&&
"0"!=mxUtils.getValue(m,"html","0")&&(d.innerHTML=Graph.sanitizeHtml(f.getLabel(a[g])),Graph.addLightDarkColors(d,null,null,function(z,C,E){return mxUtils.isLightDarkColor(E)?(E=mxUtils.getLightDarkColor(E),z.style.setProperty(C,E.light),!0):!1})&&f.cellLabelChanged(a[g],d.innerHTML))}if(e&&mxUtils.isLightDarkColor(f.background)){u=mxUtils.getLightDarkColor(f.background);var w=new ChangePageSetup(this,u.light);w.ignoreImage=!0;f.model.execute(w)}}finally{f.model.endUpdate()}return a};
EditorUi.prototype.updateSelectionStateForCell=function(a,b,e,f){e=this.editor.graph;a.cells.push(b);if(e.getModel().isVertex(b)){a.connections=0<e.model.getEdgeCount(b);a.unlocked=a.unlocked&&!e.isCellLocked(b);a.resizable=a.resizable&&e.isCellResizable(b);a.rotatable=a.rotatable&&e.isCellRotatable(b);a.movable=a.movable&&e.isCellMovable(b)&&!e.isTableRow(b)&&!e.isTableCell(b);a.swimlane=a.swimlane||e.isSwimlane(b);a.table=a.table||e.isTable(b);a.cell=a.cell||e.isTableCell(b);a.row=a.row||e.isTableRow(b);
a.vertices.push(b);var h=e.getCellGeometry(b);if(null!=h&&(0<h.width?null==a.width?a.width=h.width:a.width!=h.width&&(a.width=""):a.containsLabel=!0,0<h.height?null==a.height?a.height=h.height:a.height!=h.height&&(a.height=""):a.containsLabel=!0,!h.relative||null!=h.offset)){var d=h.relative?h.offset.x:h.x;h=h.relative?h.offset.y:h.y;null==a.x?a.x=d:a.x!=d&&(a.x="");null==a.y?a.y=h:a.y!=h&&(a.y="")}}else e.getModel().isEdge(b)&&(a.edges.push(b),a.connections=!0,a.resizable=!1,a.rotatable=!1,a.movable=
!1);d=e.view.getState(b);null!=d&&(a.html=a.html&&e.isHtmlLabel(b),a.autoSize=a.autoSize||e.isAutoSizeState(d),a.glass=a.glass&&e.isGlassState(d),a.rounded=a.rounded&&e.isRoundedState(d),a.lineJumps=a.lineJumps&&e.isLineJumpState(d),a.image=a.image||e.isImageState(d),a.shadow=a.shadow&&e.isShadowState(d),a.fill=a.fill&&e.isFillState(d),a.gradient=a.fill&&e.isGradientState(d),a.stroke=a.stroke&&e.isStrokeState(d),b=mxUtils.getValue(d.style,mxConstants.STYLE_SHAPE,null),a.containsImage=a.containsImage||
"image"==b,e.mergeStyle(d.style,a.style,f))};
-EditorUi.prototype.installShapePicker=function(){var a=this.editor.graph,b=this;a.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(p,k){"mouseDown"==k.getProperty("eventName")&&b.hideShapePicker()}));var e=mxUtils.bind(this,function(){b.hideShapePicker(!0)});a.addListener("wheel",e);a.addListener(mxEvent.ESCAPE,e);a.view.addListener(mxEvent.SCALE,e);a.view.addListener(mxEvent.SCALE_AND_TRANSLATE,e);a.getSelectionModel().addListener(mxEvent.CHANGE,e);var f=a.popupMenuHandler.isMenuShowing;
-a.popupMenuHandler.isMenuShowing=function(){return f.apply(this,arguments)||null!=b.shapePicker||null!=b.currentMenu};var h=a.dblClick;a.dblClick=function(p,k){if(this.isEnabled())if(null!=k||null==b.sidebar||mxEvent.isShiftDown(p)||a.isCellLocked(a.getDefaultParent()))h.apply(this,arguments);else{var u=mxUtils.convertPoint(this.container,mxEvent.getClientX(p),mxEvent.getClientY(p));mxEvent.consume(p);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(u.x,u.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",
-e);var d=this.hoverIcons.drag;this.hoverIcons.drag=function(){b.hideShapePicker();d.apply(this,arguments)};var g=this.hoverIcons.execute;this.hoverIcons.execute=function(p,k,u){var w=u.getEvent();this.graph.isCloneEvent(w)||mxEvent.isShiftDown(w)?g.apply(this,arguments):this.graph.connectVertex(p.cell,k,this.graph.defaultEdgeLength,w,null,null,mxUtils.bind(this,function(z,C,E){var D=a.getCompositeParent(p.cell);z=a.getCellGeometry(D);for(u.consume();null!=D&&a.model.isVertex(D)&&null!=z&&z.relative;)cell=
-D,D=a.model.getParent(cell),z=a.getCellGeometry(D);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(u.getGraphX(),u.getGraphY(),D,mxUtils.bind(this,function(G){E(G);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(G))}),k)}),30)}),mxUtils.bind(this,function(z){this.graph.selectCellsForConnectVertex(z,w,this)}))};var m=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(p,k){null!=m&&window.clearTimeout(m);m=window.setTimeout(mxUtils.bind(this,function(){var u=
+EditorUi.prototype.installShapePicker=function(){var a=this.editor.graph,b=this;a.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(q,k){"mouseDown"==k.getProperty("eventName")&&b.hideShapePicker()}));var e=mxUtils.bind(this,function(){b.hideShapePicker(!0)});a.addListener("wheel",e);a.addListener(mxEvent.ESCAPE,e);a.view.addListener(mxEvent.SCALE,e);a.view.addListener(mxEvent.SCALE_AND_TRANSLATE,e);a.getSelectionModel().addListener(mxEvent.CHANGE,e);var f=a.popupMenuHandler.isMenuShowing;
+a.popupMenuHandler.isMenuShowing=function(){return f.apply(this,arguments)||null!=b.shapePicker||null!=b.currentMenu};var h=a.dblClick;a.dblClick=function(q,k){if(this.isEnabled())if(null!=k||null==b.sidebar||mxEvent.isShiftDown(q)||a.isCellLocked(a.getDefaultParent()))h.apply(this,arguments);else{var u=mxUtils.convertPoint(this.container,mxEvent.getClientX(q),mxEvent.getClientY(q));mxEvent.consume(q);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(u.x,u.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",
+e);var d=this.hoverIcons.drag;this.hoverIcons.drag=function(){b.hideShapePicker();d.apply(this,arguments)};var g=this.hoverIcons.execute;this.hoverIcons.execute=function(q,k,u){var w=u.getEvent();this.graph.isCloneEvent(w)||mxEvent.isShiftDown(w)?g.apply(this,arguments):this.graph.connectVertex(q.cell,k,this.graph.defaultEdgeLength,w,null,null,mxUtils.bind(this,function(z,C,E){var D=a.getCompositeParent(q.cell);z=a.getCellGeometry(D);for(u.consume();null!=D&&a.model.isVertex(D)&&null!=z&&z.relative;)cell=
+D,D=a.model.getParent(cell),z=a.getCellGeometry(D);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(u.getGraphX(),u.getGraphY(),D,mxUtils.bind(this,function(G){E(G);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(G))}),k)}),30)}),mxUtils.bind(this,function(z){this.graph.selectCellsForConnectVertex(z,w,this)}))};var m=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(q,k){null!=m&&window.clearTimeout(m);m=window.setTimeout(mxUtils.bind(this,function(){var u=
k.getProperty("arrow"),w=k.getProperty("direction"),z=k.getProperty("event");u=u.getBoundingClientRect();var C=mxUtils.getOffset(a.container),E=a.container.scrollLeft+u.x-C.x;C=a.container.scrollTop+u.y-C.y;var D=a.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),G=b.showShapePicker(E,C,D,mxUtils.bind(this,function(J){null!=J&&a.connectVertex(D,w,a.defaultEdgeLength,z,!0,!1,function(L,Q,N){N(J);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(J))},
-function(L){a.selectCellsForConnectVertex(L)},z,this.hoverIcons)}),w,!0);null!=G&&(this.centerShapePicker(G,u,E,C,w),mxUtils.setOpacity(G,30),mxEvent.addListener(G,"mouseenter",function(){mxUtils.setOpacity(G,100)}),mxEvent.addListener(G,"mouseleave",function(){b.hideShapePicker()}))}),Editor.shapePickerHoverDelay)}));this.hoverIcons.addListener("blur",mxUtils.bind(this,function(p,k){null!=m&&window.clearTimeout(m)}))}};
+function(L){a.selectCellsForConnectVertex(L)},z,this.hoverIcons)}),w,!0);null!=G&&(this.centerShapePicker(G,u,E,C,w),mxUtils.setOpacity(G,30),mxEvent.addListener(G,"mouseenter",function(){mxUtils.setOpacity(G,100)}),mxEvent.addListener(G,"mouseleave",function(){b.hideShapePicker()}))}),Editor.shapePickerHoverDelay)}));this.hoverIcons.addListener("blur",mxUtils.bind(this,function(q,k){null!=m&&window.clearTimeout(m)}))}};
EditorUi.prototype.centerShapePicker=function(a,b,e,f,h){if(h==mxConstants.DIRECTION_EAST||h==mxConstants.DIRECTION_WEST)a.style.width="40px";var d=a.getBoundingClientRect();h==mxConstants.DIRECTION_NORTH?(e-=d.width/2-10,f-=d.height+6):h==mxConstants.DIRECTION_SOUTH?(e-=d.width/2-10,f+=b.height+6):h==mxConstants.DIRECTION_WEST?(e-=d.width+6,f-=d.height/2-10):h==mxConstants.DIRECTION_EAST&&(e+=b.width+6,f-=d.height/2-10);a.style.left=e+"px";a.style.top=f+"px"};
-EditorUi.prototype.showShapePicker=function(a,b,e,f,h,d,g,m,p){var k=null;this.editor.graph.freehand.isDrawing()||(m=m||null==e,k=this.createShapePicker(a,b,e,f,h,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(e,d,m),d,g,m,p),null!=k&&(null==this.hoverIcons||d||this.hoverIcons.reset(),a=this.editor.graph,a.popupMenuHandler.hideMenu(),a.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=f,this.shapePicker=k));return k};
-EditorUi.prototype.createShapePicker=function(a,b,e,f,h,d,g,m,p,k,u){u=null!=u?u:!0;var w=this.editor.graph,z=null;p=null!=p?p:function(D){D=D[0];var G=0,J=0,L=D.geometry;null!=L&&(w.model.isEdge(D)&&(D=L.getTerminalPoint(!1),L=new mxRectangle(0,0,D.x,D.y)),G=L.width/2,J=L.height/2);return new mxPoint(w.snap(Math.round(a/w.view.scale)-w.view.translate.x-G),w.snap(Math.round(b/w.view.scale)-w.view.translate.y-J))};if(null!=g&&0<g.length){var C=this;w=this.editor.graph;z=document.createElement("div");
+EditorUi.prototype.showShapePicker=function(a,b,e,f,h,d,g,m,q){var k=null;this.editor.graph.freehand.isDrawing()||(m=m||null==e,k=this.createShapePicker(a,b,e,f,h,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(e,d,m),d,g,m,q),null!=k&&(null==this.hoverIcons||d||this.hoverIcons.reset(),a=this.editor.graph,a.popupMenuHandler.hideMenu(),a.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=f,this.shapePicker=k));return k};
+EditorUi.prototype.createShapePicker=function(a,b,e,f,h,d,g,m,q,k,u){u=null!=u?u:!0;var w=this.editor.graph,z=null;q=null!=q?q:function(D){D=D[0];var G=0,J=0,L=D.geometry;null!=L&&(w.model.isEdge(D)&&(D=L.getTerminalPoint(!1),L=new mxRectangle(0,0,D.x,D.y)),G=L.width/2,J=L.height/2);return new mxPoint(w.snap(Math.round(a/w.view.scale)-w.view.translate.x-G),w.snap(Math.round(b/w.view.scale)-w.view.translate.y-J))};if(null!=g&&0<g.length){var C=this;w=this.editor.graph;z=document.createElement("div");
h=w.view.getState(e);var E=null==e||null!=h&&w.isTransparentState(h)?null:w.copyStyle(e);h=6>g.length?35*g.length:140;z.className="geToolbarContainer geSidebarContainer geShapePicker";z.setAttribute("title",mxResources.get("sidebarTooltip"));z.style.left=Math.round(a)+"px";z.style.top=Math.round(b)+"px";z.style.width=h+"px";mxClient.IS_POINTER&&(z.style.touchAction="none");m||mxUtils.setPrefixedStyle(z.style,"transform","translate(-22px,-22px)");w.container.appendChild(z);h=mxUtils.bind(this,function(D){var G=
document.createElement("a");G.className="geToolbarButton";G.style.display="inline-block";G.style.position="relative";G.style.overflow="hidden";G.style.cursor="pointer";G.style.width="30px";G.style.height="30px";G.style.padding="1px";z.appendChild(G);null!=E&&"1"!=urlParams.sketch?this.sidebar.graph.pasteStyle(E,[D]):this.sidebar.graph.pasteCellStyles([D],w.currentVertexStyle,w.currentEdgeStyle);var J=D.geometry;w.model.isEdge(D)&&(J=J.getTerminalPoint(!1),J=new mxRectangle(0,0,J.x,J.y));null!=J&&
-G.appendChild(this.sidebar.createVertexTemplateFromCells([D],J.width,J.height,"",!0,!1,null,!1,mxUtils.bind(this,function(L){if(!mxEvent.isShiftDown(L)||null==e&&w.isSelectionEmpty()){var Q=w.cloneCell(D);if(null!=f)f(Q);else{var N=p([Q]);w.model.isEdge(Q)?Q.geometry.translate(N.x,N.y):(Q.geometry.x=N.x,Q.geometry.y=N.y);w.model.beginUpdate();try{w.addCell(Q),w.model.isVertex(Q)&&w.isAutoSizeCell(Q)&&w.updateCellSize(Q)}finally{w.model.endUpdate()}w.setSelectionCell(Q);w.scrollCellToVisible(Q);u&&
+G.appendChild(this.sidebar.createVertexTemplateFromCells([D],J.width,J.height,"",!0,!1,null,!1,mxUtils.bind(this,function(L){if(!mxEvent.isShiftDown(L)||null==e&&w.isSelectionEmpty()){var Q=w.cloneCell(D);if(null!=f)f(Q);else{var N=q([Q]);w.model.isEdge(Q)?Q.geometry.translate(N.x,N.y):(Q.geometry.x=N.x,Q.geometry.y=N.y);w.model.beginUpdate();try{w.addCell(Q),w.model.isVertex(Q)&&w.isAutoSizeCell(Q)&&w.updateCellSize(Q)}finally{w.model.endUpdate()}w.setSelectionCell(Q);w.scrollCellToVisible(Q);u&&
w.startEditing(Q);null!=C.hoverIcons&&C.hoverIcons.update(w.view.getState(Q))}}else Q=w.getEditableCells(null!=e?[e]:w.getSelectionCells()),w.updateShapes(D,Q);null!=d&&d(L);mxEvent.consume(L)}),25,25,null,null,e))});for(k=0;k<(m?Math.min(g.length,4):g.length);k++)h(g[k]);g=z.offsetTop+z.clientHeight-(w.container.scrollTop+w.container.offsetHeight);0<g&&(z.style.top=Math.max(w.container.scrollTop+22,b-g)+"px");g=z.offsetLeft+z.clientWidth-(w.container.scrollLeft+w.container.offsetWidth);0<g&&(z.style.left=
Math.max(w.container.scrollLeft+22,a-g)+"px")}return z};
-EditorUi.prototype.getCellsForShapePicker=function(a,b,e){var f=this.editor.graph,h=mxUtils.bind(this,function(d,g,m,p){return f.createVertex(null,null,p||"",0,0,g||120,m||60,d,!1)});b=mxUtils.bind(this,function(d,g,m){d=new mxCell(m||"",new mxGeometry(0,0,f.defaultEdgeLength+20,0),d);d.geometry.setTerminalPoint(new mxPoint(0,0),!0);d.geometry.setTerminalPoint(new mxPoint(d.geometry.width,null!=g?g:0),!1);d.geometry.points=null!=g?[new mxPoint(d.geometry.width/2,g)]:[];d.geometry.relative=!0;d.edge=
+EditorUi.prototype.getCellsForShapePicker=function(a,b,e){var f=this.editor.graph,h=mxUtils.bind(this,function(d,g,m,q){return f.createVertex(null,null,q||"",0,0,g||120,m||60,d,!1)});b=mxUtils.bind(this,function(d,g,m){d=new mxCell(m||"",new mxGeometry(0,0,f.defaultEdgeLength+20,0),d);d.geometry.setTerminalPoint(new mxPoint(0,0),!0);d.geometry.setTerminalPoint(new mxPoint(d.geometry.width,null!=g?g:0),!1);d.geometry.points=null!=g?[new mxPoint(d.geometry.width/2,g)]:[];d.geometry.relative=!0;d.edge=
!0;return d});if(null!=a)try{a=f.cloneCell(a),f.model.isVertex(a)&&null!=a.geometry&&(a.geometry.x=0,a.geometry.y=0)}catch(d){a=null}null==a&&(a=h(f.appendFontSize("text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;",f.vertexFontSize),40,20,"Text"),f.model.isVertex(a)&&f.isAutoSizeCell(a)&&Graph.createOffscreenGraph(f.getStylesheet()).updateCellSize(a));a=[a,h("whiteSpace=wrap;html=1;"),h("ellipse;whiteSpace=wrap;html=1;",80,80),h("rhombus;whiteSpace=wrap;html=1;",
80,80),h("rounded=1;whiteSpace=wrap;html=1;"),h("shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;"),h("shape=trapezoid;perimeter=trapezoidPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,60),h("shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;",120,80),h("shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,80),h("shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;"),h("triangle;whiteSpace=wrap;html=1;",
60,80),h("shape=document;whiteSpace=wrap;html=1;boundedLbl=1;",120,80),h("shape=tape;whiteSpace=wrap;html=1;",120,100),h("ellipse;shape=cloud;whiteSpace=wrap;html=1;",120,80),h("shape=singleArrow;whiteSpace=wrap;html=1;arrowWidth=0.4;arrowSize=0.4;",80,60),h("shape=waypoint;sketch=0;size=6;pointerEvents=1;points=[];fillColor=none;resizable=0;rotatable=0;perimeter=centerPerimeter;snapToPoint=1;",20,20)];e&&(a=a.concat([b("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;"),b("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;endArrow=classic;startArrow=classic;endSize=8;startSize=8;"),
@@ -2150,8 +2150,8 @@ b?Format.blockMarkerImage.src:Format.blockFilledMarkerImage.src:a==mxConstants.A
b?Format.doubleBlockMarkerImage.src:Format.doubleBlockFilledMarkerImage.src:"box"==a?Format.boxMarkerImage.src:"halfCircle"==a?Format.halfCircleMarkerImage.src:"openAsync"==a?Format.openAsyncFilledMarkerImage.src:"async"==a?"1"!=b?Format.asyncMarkerImage.src:Format.asyncFilledMarkerImage.src:"dash"==a?Format.dashMarkerImage.src:"baseDash"==a?Format.baseDashMarkerImage.src:"cross"==a?Format.crossMarkerImage.src:"circle"==a?Format.circleMarkerImage.src:"circlePlus"==a?Format.circlePlusMarkerImage.src:
"ERone"==a?Format.EROneMarkerImage.src:"ERmandOne"==a?Format.ERmandOneMarkerImage.src:"ERmany"==a?Format.ERmanyMarkerImage.src:"ERoneToMany"==a?Format.ERoneToManyMarkerImage.src:"ERzeroToOne"==a?Format.ERzeroToOneMarkerImage.src:"ERzeroToMany"==a?Format.ERzeroToManyMarkerImage.src:null};EditorUi.prototype.createMenus=function(){return null};
EditorUi.prototype.updatePasteActionStates=function(){var a=this.editor.graph,b=this.actions.get("paste"),e=this.actions.get("pasteHere");b.setEnabled(this.editor.graph.cellEditor.isContentEditing()||(!mxClient.IS_FF&&null!=navigator.clipboard||!mxClipboard.isEmpty())&&a.isEnabled()&&!a.isCellLocked(a.getDefaultParent()));e.setEnabled(b.isEnabled())};
-EditorUi.prototype.initClipboard=function(){var a=this,b=mxClipboard.cut;mxClipboard.cut=function(d){d.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):b.apply(this,arguments);a.updatePasteActionStates()};mxClipboard.copy=function(d){var g=null;if(d.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{g=g||d.getSelectionCells();g=d.getExportableCells(d.model.getTopmostCells(g));for(var m={},p=d.createCellLookup(g),k=d.cloneCells(g,null,m),u=new mxGraphModel,w=u.getChildAt(u.getRoot(),
-0),z=0;z<k.length;z++){u.add(w,k[z]);var C=d.view.getState(g[z]);if(null!=C){var E=d.getCellGeometry(k[z]);null!=E&&E.relative&&!u.isEdge(g[z])&&null==p[mxObjectIdentity.get(u.getParent(g[z]))]&&(E.offset=null,E.relative=!1,E.x=C.x/C.view.scale-C.view.translate.x,E.y=C.y/C.view.scale-C.view.translate.y)}}d.updateCustomLinks(d.createCellMapping(m,p),k);mxClipboard.insertCount=1;mxClipboard.setCells(k)}a.updatePasteActionStates();return g};var e=mxClipboard.paste;mxClipboard.paste=function(d){var g=
+EditorUi.prototype.initClipboard=function(){var a=this,b=mxClipboard.cut;mxClipboard.cut=function(d){d.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):b.apply(this,arguments);a.updatePasteActionStates()};mxClipboard.copy=function(d){var g=null;if(d.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{g=g||d.getSelectionCells();g=d.getExportableCells(d.model.getTopmostCells(g));for(var m={},q=d.createCellLookup(g),k=d.cloneCells(g,null,m),u=new mxGraphModel,w=u.getChildAt(u.getRoot(),
+0),z=0;z<k.length;z++){u.add(w,k[z]);var C=d.view.getState(g[z]);if(null!=C){var E=d.getCellGeometry(k[z]);null!=E&&E.relative&&!u.isEdge(g[z])&&null==q[mxObjectIdentity.get(u.getParent(g[z]))]&&(E.offset=null,E.relative=!1,E.x=C.x/C.view.scale-C.view.translate.x,E.y=C.y/C.view.scale-C.view.translate.y)}}d.updateCustomLinks(d.createCellMapping(m,q),k);mxClipboard.insertCount=1;mxClipboard.setCells(k)}a.updatePasteActionStates();return g};var e=mxClipboard.paste;mxClipboard.paste=function(d){var g=
null;d.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):g=e.apply(this,arguments);a.updatePasteActionStates();return g};var f=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){f.apply(this,arguments);a.updatePasteActionStates()};var h=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(d,g){h.apply(this,arguments);a.updatePasteActionStates()};this.updatePasteActionStates()};
EditorUi.prototype.lazyZoomDelay=20;EditorUi.prototype.wheelZoomDelay=500;EditorUi.prototype.buttonZoomDelay=600;
EditorUi.prototype.initCanvas=function(){var a=this.editor.graph;a.timerAutoScroll=!0;a.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((a.container.offsetWidth-34)/a.view.scale)),Math.max(0,Math.round((a.container.offsetHeight-34)/a.view.scale)))};a.view.getBackgroundPageBounds=function(){var H=this.graph.getPageLayout(),ea=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+H.x*ea.width),this.scale*(this.translate.y+H.y*ea.height),this.scale*H.width*ea.width,
@@ -2162,10 +2162,10 @@ Ca=a.view.scale,Ja=mxRectangle.fromRectangle(Pa);Ja.x=Ja.x/Ca-Ba.x;Ja.y=Ja.y/Ca-
"fixed";this.chromelessToolbar.style.overflow="hidden";this.chromelessToolbar.style.boxSizing="border-box";this.chromelessToolbar.style.whiteSpace="nowrap";this.chromelessToolbar.style.padding="10px 10px 8px 10px";this.chromelessToolbar.style.left=a.isViewer()?"0":"50%";mxClient.IS_IE||mxClient.IS_IE11?(this.chromelessToolbar.style.backgroundColor="#ffffff",this.chromelessToolbar.style.border="3px solid black"):this.chromelessToolbar.style.backgroundColor="#000000";mxUtils.setPrefixedStyle(this.chromelessToolbar.style,
"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transition","opacity 600ms ease-in-out");var d=mxUtils.bind(this,function(){var H=mxUtils.getCurrentStyle(a.container);a.isViewer()?this.chromelessToolbar.style.top="0":this.chromelessToolbar.style.bottom=(null!=H?parseInt(H["margin-bottom"]||0):0)+(null!=this.tabContainer?20+parseInt(this.tabContainer.style.height):20)+"px"});this.editor.addListener("resetGraphView",d);d();var g=0;d=mxUtils.bind(this,function(H,ea,ra){g++;
var qa=document.createElement("span");qa.style.paddingLeft="8px";qa.style.paddingRight="8px";qa.style.cursor="pointer";mxEvent.addListener(qa,"click",H);null!=ra&&qa.setAttribute("title",ra);H=document.createElement("img");H.setAttribute("border","0");H.setAttribute("src",ea);H.style.width="36px";H.style.filter="invert(100%)";qa.appendChild(H);this.chromelessToolbar.appendChild(qa);return qa});if(null!=h.backBtn){var m=Graph.sanitizeLink(h.backBtn.url);null!=m&&d(mxUtils.bind(this,function(H){window.location.href=
-m;mxEvent.consume(H)}),Editor.backImage,mxResources.get("back",null,"Back"))}if(this.isPagesEnabled()){var p=d(mxUtils.bind(this,function(H){this.actions.get("previousPage").funct();mxEvent.consume(H)}),Editor.previousImage,mxResources.get("previousPage")),k=document.createElement("div");k.style.fontFamily=Editor.defaultHtmlFont;k.style.display="inline-block";k.style.verticalAlign="top";k.style.fontWeight="bold";k.style.marginTop="8px";k.style.fontSize="14px";k.style.cursor="default";k.style.color=
+m;mxEvent.consume(H)}),Editor.backImage,mxResources.get("back",null,"Back"))}if(this.isPagesEnabled()){var q=d(mxUtils.bind(this,function(H){this.actions.get("previousPage").funct();mxEvent.consume(H)}),Editor.previousImage,mxResources.get("previousPage")),k=document.createElement("div");k.style.fontFamily=Editor.defaultHtmlFont;k.style.display="inline-block";k.style.verticalAlign="top";k.style.fontWeight="bold";k.style.marginTop="8px";k.style.fontSize="14px";k.style.cursor="default";k.style.color=
mxClient.IS_IE||mxClient.IS_IE11?"#000000":"#ffffff";this.chromelessToolbar.appendChild(k);var u=d(mxUtils.bind(this,function(H){this.actions.get("nextPage").funct();mxEvent.consume(H)}),Editor.nextImage,mxResources.get("nextPage")),w=mxUtils.bind(this,function(){if(null!=this.pages&&1<this.pages.length&&null!=this.currentPage){k.innerText="";var H=mxUtils.indexOf(this.pages,this.currentPage);mxUtils.write(k,H+1+" / "+this.pages.length);k.setAttribute("title",mxResources.get("currentPage")+": "+this.currentPage.getName());
-p.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.mod(H-1,this.pages.length)].getName());u.setAttribute("title",mxResources.get("nextPage")+": "+this.pages[mxUtils.mod(H+1,this.pages.length)].getName())}});p.style.paddingLeft="0px";p.style.paddingRight="4px";u.style.paddingLeft="4px";u.style.paddingRight="0px";var z=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(u.style.display="",p.style.display="",k.style.display="inline-block"):
-(u.style.display="none",p.style.display="none",k.style.display="none");w()});if(null!=this.menus){var C=this.menus.get("pages");null!=C&&mxEvent.addListener(k,"click",mxUtils.bind(this,function(H){var ea=new mxPopupMenu(C.funct);ea.div.className+=" geMenubarMenu";ea.smartSeparators=!0;ea.showDisabled=!0;ea.autoExpand=!0;ea.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(ea,arguments);ea.destroy()});var ra=mxUtils.getOffset(k);ea.popup(ra.x,ra.y+k.offsetHeight,null,H);mxEvent.addListener(ea.div,
+q.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.mod(H-1,this.pages.length)].getName());u.setAttribute("title",mxResources.get("nextPage")+": "+this.pages[mxUtils.mod(H+1,this.pages.length)].getName())}});q.style.paddingLeft="0px";q.style.paddingRight="4px";u.style.paddingLeft="4px";u.style.paddingRight="0px";var z=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(u.style.display="",q.style.display="",k.style.display="inline-block"):
+(u.style.display="none",q.style.display="none",k.style.display="none");w()});if(null!=this.menus){var C=this.menus.get("pages");null!=C&&mxEvent.addListener(k,"click",mxUtils.bind(this,function(H){var ea=new mxPopupMenu(C.funct);ea.div.className+=" geMenubarMenu";ea.smartSeparators=!0;ea.showDisabled=!0;ea.autoExpand=!0;ea.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(ea,arguments);ea.destroy()});var ra=mxUtils.getOffset(k);ea.popup(ra.x,ra.y+k.offsetHeight,null,H);mxEvent.addListener(ea.div,
"mouseleave",mxUtils.bind(this,function(){ea.hideMenu()}))}))}this.editor.addListener("resetGraphView",z);this.editor.addListener("pageSelected",w)}d(mxUtils.bind(this,function(H){this.actions.get("zoomOut").funct();mxEvent.consume(H)}),Editor.zoomOutImage,mxResources.get("zoomOut")+" (Alt+Mousewheel)");d(mxUtils.bind(this,function(H){this.actions.get("zoomIn").funct();mxEvent.consume(H)}),Editor.zoomInImage,mxResources.get("zoomIn")+" (Alt+Mousewheel)");d(mxUtils.bind(this,function(H){a.isLightboxView()?
(1==a.view.scale?this.lightboxFit():a.zoomTo(1),this.chromelessResize(!1)):this.chromelessResize(!0);mxEvent.consume(H)}),Editor.zoomFitImage,mxResources.get("fit"));var E=null,D=null,G=mxUtils.bind(this,function(H){null!=E&&(window.clearTimeout(E),E=null);null!=D&&(window.clearTimeout(D),D=null);E=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(this.chromelessToolbar,0);E=null;D=window.setTimeout(mxUtils.bind(this,function(){this.chromelessToolbar.style.display="none";D=null}),
600)}),H||200)}),J=mxUtils.bind(this,function(H){null!=E&&(window.clearTimeout(E),E=null);null!=D&&(window.clearTimeout(D),D=null);this.chromelessToolbar.style.display="";mxUtils.setOpacity(this.chromelessToolbar,H||30)});if("1"==urlParams.layers){this.layersDialog=null;var L=d(mxUtils.bind(this,function(H){if(null!=this.layersDialog)this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null;else{this.layersDialog=a.createLayersDialog(mxUtils.bind(this,function(){this.chromelessResize&&
@@ -2211,7 +2211,7 @@ b.scrollTop=Math.floor(Math.max(0,e.y-Math.max(20,(b.clientHeight-f)/4)))}else{e
EditorUi.prototype.setPageVisible=function(a){var b=this.editor.graph,e=mxUtils.hasScrollbars(b.container),f=0,h=0;e&&(f=b.view.translate.x*b.view.scale-b.container.scrollLeft,h=b.view.translate.y*b.view.scale-b.container.scrollTop);b.pageVisible=a;b.pageBreaksVisible=a;b.preferPageSize=a;b.view.validateBackground();if(e){var d=b.getSelectionCells();b.clearSelection();b.setSelectionCells(d)}b.sizeDidChange();e&&(b.container.scrollLeft=b.view.translate.x*b.view.scale-f,b.container.scrollTop=b.view.translate.y*
b.view.scale-h);b.defaultPageVisible=a;this.fireEvent(new mxEventObject("pageViewChanged"))};
EditorUi.prototype.installResizeHandler=function(a,b,e){b&&(a.window.setSize=function(h,d){if(!this.minimized){var g=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;h=Math.min(h,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.getX());d=Math.min(d,g-this.getY())}mxWindow.prototype.setSize.apply(this,arguments)});a.window.setLocation=function(h,d){var g=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth,
-m=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,p=parseInt(this.div.style.width),k=parseInt(this.div.style.height);h=Math.max(0,Math.min(h,g-p));d=Math.max(0,Math.min(d,m-k));this.getX()==h&&this.getY()==d||mxWindow.prototype.setLocation.apply(this,arguments);b&&!this.minimized&&this.setSize(p,k)};var f=mxUtils.bind(this,function(){var h=a.window.getX(),d=a.window.getY();a.window.setLocation(h,d)});mxEvent.addListener(window,"resize",f);a.destroy=function(){mxEvent.removeListener(window,
+m=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,q=parseInt(this.div.style.width),k=parseInt(this.div.style.height);h=Math.max(0,Math.min(h,g-q));d=Math.max(0,Math.min(d,m-k));this.getX()==h&&this.getY()==d||mxWindow.prototype.setLocation.apply(this,arguments);b&&!this.minimized&&this.setSize(q,k)};var f=mxUtils.bind(this,function(){var h=a.window.getX(),d=a.window.getY();a.window.setLocation(h,d)});mxEvent.addListener(window,"resize",f);a.destroy=function(){mxEvent.removeListener(window,
"resize",f);a.window.destroy();null!=e&&e()}};function ChangeGridColor(a,b){this.ui=a;this.color=b}ChangeGridColor.prototype.execute=function(){var a=this.ui.editor.graph.view.gridColor;this.ui.setGridColor(this.color);this.color=a};(function(){var a=new mxObjectCodec(new ChangeGridColor,["ui"]);mxCodecRegistry.register(a)})();
function ChangePageSetup(a,b,e,f,h){this.ui=a;this.previousColor=this.color=b;this.previousImage=this.image=e;this.previousFormat=this.format=f;this.previousPageScale=this.pageScale=h;this.ignoreImage=this.ignoreColor=!1}
ChangePageSetup.prototype.execute=function(){var a=this.ui.editor.graph;if(!this.ignoreColor){this.color=this.previousColor;var b=a.background;this.ui.setBackgroundColor(this.previousColor);this.previousColor=b}if(!this.ignoreImage){this.image=this.previousImage;b=a.backgroundImage;var e=this.previousImage;null!=e&&Graph.isPageLink(e.src)&&(e=this.ui.createImageForPageLink(e.src,this.ui.currentPage));this.ui.setBackgroundImage(e);this.previousImage=b}null!=this.previousFormat&&(this.format=this.previousFormat,
@@ -2247,22 +2247,22 @@ EditorUi.prototype.setStatusText=function(a){this.statusContainer.innerHTML=Grap
"transition","all 0.2s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(e,100);mxUtils.setPrefixedStyle(e.style,"transform","scaleX(1)");mxUtils.setPrefixedStyle(e.style,"transition","all 1s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(e.style,"transform","scaleX(0)");mxUtils.setOpacity(e,0);window.setTimeout(mxUtils.bind(this,function(){null!=e.parentNode&&e.parentNode.removeChild(e)}),1E3)}),Editor.updateStatusInterval/2)}),0)})(a[b])};
EditorUi.prototype.createStatusDiv=function(a){var b=document.createElement("div");b.style.textOverflow="ellipsis";b.style.display="inline-block";b.style.whiteSpace="nowrap";b.style.overflow="hidden";b.style.minWidth="0";b.setAttribute("title",a);b.innerHTML=Graph.sanitizeHtml(a);return b};EditorUi.prototype.createToolbar=function(a){return new Toolbar(this,a)};EditorUi.prototype.createSidebar=function(a){return new Sidebar(this,a)};
EditorUi.prototype.createFormat=function(a){return new Format(this,a)};EditorUi.prototype.createFooter=function(){return this.createDiv("geFooter")};EditorUi.prototype.createDiv=function(a){var b=document.createElement("div");b.className=a;return b};
-EditorUi.prototype.addSplitHandler=function(a,b,e,f){function h(w){if(null!=g){var z=new mxPoint(mxEvent.getClientX(w),mxEvent.getClientY(w));f(Math.max(0,m+(b?z.x-g.x:g.y-z.y)-e));mxEvent.consume(w);m!=u()&&(p=!0,k=null)}}function d(w){h(w);g=m=null}var g=null,m=null,p=!0,k=null;mxClient.IS_POINTER&&(a.style.touchAction="none");var u=mxUtils.bind(this,function(){var w=parseInt(b?a.style.left:a.style.bottom);b||(w=w+e-this.footerHeight);return w});mxEvent.addGestureListeners(a,function(w){g=new mxPoint(mxEvent.getClientX(w),
-mxEvent.getClientY(w));m=u();p=!1;mxEvent.consume(w)});mxEvent.addListener(a,"click",mxUtils.bind(this,function(w){if(!p&&this.hsplitClickEnabled){var z=null!=k?k-e:0;k=u();f(z);mxEvent.consume(w)}}));mxEvent.addGestureListeners(document,null,h,d);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,h,d)})};
+EditorUi.prototype.addSplitHandler=function(a,b,e,f){function h(w){if(null!=g){var z=new mxPoint(mxEvent.getClientX(w),mxEvent.getClientY(w));f(Math.max(0,m+(b?z.x-g.x:g.y-z.y)-e));mxEvent.consume(w);m!=u()&&(q=!0,k=null)}}function d(w){h(w);g=m=null}var g=null,m=null,q=!0,k=null;mxClient.IS_POINTER&&(a.style.touchAction="none");var u=mxUtils.bind(this,function(){var w=parseInt(b?a.style.left:a.style.bottom);b||(w=w+e-this.footerHeight);return w});mxEvent.addGestureListeners(a,function(w){g=new mxPoint(mxEvent.getClientX(w),
+mxEvent.getClientY(w));m=u();q=!1;mxEvent.consume(w)});mxEvent.addListener(a,"click",mxUtils.bind(this,function(w){if(!q&&this.hsplitClickEnabled){var z=null!=k?k-e:0;k=u();f(z);mxEvent.consume(w)}}));mxEvent.addGestureListeners(document,null,h,d);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,h,d)})};
EditorUi.prototype.prompt=function(a,b,e){a=new FilenameDialog(this,b,mxResources.get("apply"),function(f){e(parseFloat(f))},a);this.showDialog(a.container,300,80,!0,!0);a.init()};
EditorUi.prototype.handleError=function(a,b,e,f,h){a=null!=a&&null!=a.error?a.error:a;if(null!=a||null!=b){h=mxUtils.htmlEntities(mxResources.get("unknownError"));var d=mxResources.get("ok");b=null!=b?b:mxResources.get("error");null!=a&&null!=a.message&&(h=mxUtils.htmlEntities(a.message));this.showError(b,h,d,e,null,null,null,null,null,null,null,null,f?e:null)}else null!=e&&e()};
-EditorUi.prototype.showError=function(a,b,e,f,h,d,g,m,p,k,u,w,z){a=new ErrorDialog(this,a,b,e||mxResources.get("ok"),f,h,d,g,w,m,p);b=Math.ceil(null!=b?b.length/50:1);this.showDialog(a.container,k||340,u||100+20*b,!0,!1,z);a.init()};EditorUi.prototype.showDialog=function(a,b,e,f,h,d,g,m,p,k){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,a,b,e,f,h,d,g,m,p,k);this.dialogs.push(this.dialog)};
+EditorUi.prototype.showError=function(a,b,e,f,h,d,g,m,q,k,u,w,z){a=new ErrorDialog(this,a,b,e||mxResources.get("ok"),f,h,d,g,w,m,q);b=Math.ceil(null!=b?b.length/50:1);this.showDialog(a.container,k||340,u||100+20*b,!0,!1,z);a.init()};EditorUi.prototype.showDialog=function(a,b,e,f,h,d,g,m,q,k){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,a,b,e,f,h,d,g,m,q,k);this.dialogs.push(this.dialog)};
EditorUi.prototype.hideDialog=function(a,b,e){var f=null;if(null!=this.dialogs&&0<this.dialogs.length)for(var h=this.dialogs.length-1;0<=h;h--)if(!this.dialogs[h].closing){f=this.dialogs[h];break}null==f||null!=e&&e!=this.dialog.container.firstChild||(f.closing=!0,0==f.close(a,b)?delete f.closing:(delete f.closing,a=mxUtils.lastIndexOf(this.dialogs,f),0<=a&&this.dialogs.splice(a,1),this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog",
"dialog",f)),null==this.dialog&&null!=this.editor.graph.container&&"hidden"!=this.editor.graph.container.style.visibility&&window.setTimeout(mxUtils.bind(this,function(){null==this.editor||null!=this.dialogs&&0!=this.dialogs.length||(this.editor.graph.isEditing()&&null!=this.editor.graph.cellEditor.textarea?this.editor.graph.cellEditor.textarea.focus():(mxUtils.clearSelection(),this.editor.graph.container.focus()))}),0)))};
EditorUi.prototype.ctrlEnter=function(){var a=this.editor.graph;if(a.isEnabled())try{for(var b=a.getSelectionCells(),e=new mxDictionary,f=[],h=0;h<b.length;h++){var d=a.isTableCell(b[h])?a.model.getParent(b[h]):b[h];null==d||e.get(d)||(e.put(d,!0),f.push(d))}a.setSelectionCells(a.duplicateCells(f,!1))}catch(g){this.handleError(g)}};
-EditorUi.prototype.pickColor=function(a,b,e,f,h){var d=this.editor.graph,g=d.cellEditor.saveSelection(),m=(h?240:290)+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));a=new ColorDialog(this,a,function(p){d.cellEditor.restoreSelection(g);b(p)},function(){d.cellEditor.restoreSelection(g)},e,f,h);this.showDialog(a.container,230,m,!0,!1);a.init()};
+EditorUi.prototype.pickColor=function(a,b,e,f,h){var d=this.editor.graph,g=d.cellEditor.saveSelection(),m=(h?240:290)+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));a=new ColorDialog(this,a,function(q){d.cellEditor.restoreSelection(g);b(q)},function(){d.cellEditor.restoreSelection(g)},e,f,h);this.showDialog(a.container,230,m,!0,!1);a.init()};
EditorUi.prototype.openFile=function(){window.openFile=new OpenFile(mxUtils.bind(this,function(a){this.hideDialog(a)}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:320,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null})};
-EditorUi.prototype.base64ToBlob=function(a,b){b=b||"";a=atob(a);for(var e=a.length,f=Math.ceil(e/1024),h=Array(f),d=0;d<f;++d){for(var g=1024*d,m=Math.min(g+1024,e),p=Array(m-g),k=0;g<m;++k,++g)p[k]=a[g].charCodeAt(0);h[d]=new Uint8Array(p)}return new Blob(h,{type:b})};
+EditorUi.prototype.base64ToBlob=function(a,b){b=b||"";a=atob(a);for(var e=a.length,f=Math.ceil(e/1024),h=Array(f),d=0;d<f;++d){for(var g=1024*d,m=Math.min(g+1024,e),q=Array(m-g),k=0;g<m;++k,++g)q[k]=a[g].charCodeAt(0);h[d]=new Uint8Array(q)}return new Blob(h,{type:b})};
EditorUi.prototype.writeImageToClipboard=function(a,b,e,f){var h=this.base64ToBlob(a.substring(a.indexOf(",")+1),"image/png");a=new ClipboardItem({"image/png":h,"text/html":new Blob(['<img src="'+a+'" width="'+b+'" height="'+e+'">'],{type:"text/html"})});navigator.clipboard.write([a])["catch"](f)};EditorUi.prototype.writeHtmlToClipboard=function(a,b){a=new ClipboardItem({"text/plain":new Blob([Editor.convertHtmlToText(a)],{type:"text/plain"}),"text/html":new Blob([a],{type:"text/html"})});navigator.clipboard.write([a])["catch"](b)};
EditorUi.prototype.writeTextToClipboard=function(a,b){navigator.clipboard.writeText(a)["catch"](b)};EditorUi.prototype.extractGraphModelFromHtml=function(a){var b=null;try{var e=a.indexOf("&lt;mxGraphModel ");if(0<=e){var f=a.lastIndexOf("&lt;/mxGraphModel&gt;");f>e&&(b=a.substring(e,f+21).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}}catch(h){}return b};
EditorUi.prototype.readGraphModelFromClipboard=function(a){this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(b){null!=b?a(b):this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(e){if(null!=e){var f=decodeURIComponent(e);this.isCompatibleString(f)&&(e=f)}a(e)}),"text")}),"html")};
EditorUi.prototype.readGraphModelFromClipboardWithType=function(a,b){navigator.clipboard.read().then(mxUtils.bind(this,function(e){if(null!=e&&0<e.length&&"html"==b&&0<=mxUtils.indexOf(e[0].types,"text/html"))e[0].getType("text/html").then(mxUtils.bind(this,function(f){f.text().then(mxUtils.bind(this,function(h){try{var d=this.parseHtmlData(h),g="text/plain"!=d.getAttribute("data-type")?d.innerHTML:mxUtils.trim(null==d.innerText?mxUtils.getTextContent(d):d.innerText);try{var m=g.lastIndexOf("%3E");
-0<=m&&m<g.length-3&&(g=g.substring(0,m+3))}catch(u){}try{var p=d.getElementsByTagName("span"),k=null!=p&&0<p.length?mxUtils.trim(decodeURIComponent(p[0].textContent)):decodeURIComponent(g);this.isCompatibleString(k)&&(g=k)}catch(u){}}catch(u){}a(this.isCompatibleString(g)?g:null)}))["catch"](function(h){a(null)})}))["catch"](function(f){a(null)});else if(null!=e&&0<e.length&&"text"==b&&0<=mxUtils.indexOf(e[0].types,"text/plain"))e[0].getType("text/plain").then(function(f){f.text().then(function(h){a(h)})["catch"](function(){a(null)})})["catch"](function(){a(null)});
+0<=m&&m<g.length-3&&(g=g.substring(0,m+3))}catch(u){}try{var q=d.getElementsByTagName("span"),k=null!=q&&0<q.length?mxUtils.trim(decodeURIComponent(q[0].textContent)):decodeURIComponent(g);this.isCompatibleString(k)&&(g=k)}catch(u){}}catch(u){}a(this.isCompatibleString(g)?g:null)}))["catch"](function(h){a(null)})}))["catch"](function(f){a(null)});else if(null!=e&&0<e.length&&"text"==b&&0<=mxUtils.indexOf(e[0].types,"text/plain"))e[0].getType("text/plain").then(function(f){f.text().then(function(h){a(h)})["catch"](function(){a(null)})})["catch"](function(){a(null)});
else a(null)}))["catch"](function(e){a(null)})};
EditorUi.prototype.parseHtmlData=function(a){var b=null;if(null!=a&&0<a.length){var e="<meta "==a.substring(0,6);b=document.createElement("div");b.innerHTML=(e?'<meta charset="utf-8">':"")+Graph.sanitizeHtml(a);asHtml=!0;a=b.getElementsByTagName("style");if(null!=a)for(;0<a.length;)a[0].parentNode.removeChild(a[0]);null!=b.firstChild&&b.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=b.firstChild.nextSibling&&b.firstChild.nextSibling.nodeType==mxConstants.NODETYPE_ELEMENT&&"META"==b.firstChild.nodeName&&
"A"==b.firstChild.nextSibling.nodeName&&null==b.firstChild.nextSibling.nextSibling&&(a=null==b.firstChild.nextSibling.innerText?mxUtils.getTextContent(b.firstChild.nextSibling):b.firstChild.nextSibling.innerText,a==b.firstChild.nextSibling.getAttribute("href")&&(mxUtils.setTextContent(b,a),asHtml=!1));e=e&&null!=b.firstChild?b.firstChild.nextSibling:b.firstChild;null!=e&&null==e.nextSibling&&e.nodeType==mxConstants.NODETYPE_ELEMENT&&"IMG"==e.nodeName?(a=e.getAttribute("src"),null!=a&&(Editor.isPngDataUrl(a)&&
@@ -2282,9 +2282,9 @@ EditorUi.prototype.createKeyHandler=function(a){function b(w,z,C){if(!f.isSelect
G))}}finally{f.getModel().endUpdate()}}else{G=f.model.getParent(D);var J=f.getView().scale;C=null;1==f.getSelectionCount()&&f.model.isVertex(D)&&null!=f.layoutManager&&!f.isCellLocked(D)&&(C=f.layoutManager.getLayout(G));if(null!=C&&C.constructor==mxStackLayout)z=G.getIndex(D),37==w||38==w?f.model.add(G,D,Math.max(0,z-1)):(39==w||40==w)&&f.model.add(G,D,Math.min(f.model.getChildCount(G),z+1));else{var L=f.graphHandler;null!=L&&(null==L.first&&L.start(D,0,0,f.getMovableCells(E)),null!=L.first&&(D=
E=0,37==w?E=-z:38==w?D=-z:39==w?E=z:40==w&&(D=z),L.currentDx+=E*J,L.currentDy+=D*J,L.checkPreview(),L.updatePreview()),null!=g&&window.clearTimeout(g),g=window.setTimeout(function(){if(null!=L.first){var Q=L.roundLength(L.currentDx/J),N=L.roundLength(L.currentDy/J);L.moveCells(L.cells,Q,N);L.reset()}},400))}}}}var e=this,f=this.editor.graph,h=new mxKeyHandler(f),d=h.isEventIgnored;h.isEventIgnored=function(w){return!(mxEvent.isShiftDown(w)&&9==w.keyCode)&&(!this.isControlDown(w)||mxEvent.isShiftDown(w)||
90!=w.keyCode&&89!=w.keyCode&&188!=w.keyCode&&190!=w.keyCode&&85!=w.keyCode&&83!=w.keyCode)&&(66!=w.keyCode&&73!=w.keyCode||!this.isControlDown(w)||this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&(109!=w.keyCode&&107!=w.keyCode||!this.isControlDown(w)&&!mxEvent.isShiftDown(w)||!this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&d.apply(this,arguments)};h.isEnabledForEvent=function(w){return!mxEvent.isConsumed(w)&&this.isGraphEvent(w)&&this.isEnabled()&&
-(null==e.dialogs||0==e.dialogs.length)};h.isControlDown=function(w){return mxEvent.isControlDown(w)||mxClient.IS_MAC&&w.metaKey};var g=null,m={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},p=h.getFunction;mxKeyHandler.prototype.getFunction=function(w){if(f.isEnabled()){var z=null;mxEvent.isShiftDown(w)&&this.isControlDown(w)&&mxEvent.isAltDown(w)?z=e.actions.get(e.ctrlAltShiftActions[w.keyCode]):mxEvent.isShiftDown(w)&&mxEvent.isAltDown(w)?
+(null==e.dialogs||0==e.dialogs.length)};h.isControlDown=function(w){return mxEvent.isControlDown(w)||mxClient.IS_MAC&&w.metaKey};var g=null,m={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},q=h.getFunction;mxKeyHandler.prototype.getFunction=function(w){if(f.isEnabled()){var z=null;mxEvent.isShiftDown(w)&&this.isControlDown(w)&&mxEvent.isAltDown(w)?z=e.actions.get(e.ctrlAltShiftActions[w.keyCode]):mxEvent.isShiftDown(w)&&mxEvent.isAltDown(w)?
z=e.actions.get(e.altShiftActions[w.keyCode]):this.isControlDown(w)&&mxEvent.isAltDown(w)&&(z=e.actions.get(e.ctrlAltActions[w.keyCode]));if(null!=z)return z.funct;if(null!=m[w.keyCode]&&!f.isSelectionEmpty())if(!this.isControlDown(w)&&mxEvent.isShiftDown(w)&&mxEvent.isAltDown(w)){if(f.model.isVertex(f.getSelectionCell()))return function(){var C=f.connectVertex(f.getSelectionCell(),m[w.keyCode],f.defaultEdgeLength,w,!0);null!=C&&0<C.length&&(1==C.length&&f.model.isEdge(C[0])?f.setSelectionCell(f.model.getTerminal(C[0],
-!1)):f.setSelectionCell(C[C.length-1]),f.scrollCellToVisible(f.getSelectionCell()),null!=e.hoverIcons&&e.hoverIcons.update(f.view.getState(f.getSelectionCell())))}}else return this.isControlDown(w)?function(){b(w.keyCode,mxEvent.isShiftDown(w)?f.gridSize:null,!0)}:function(){b(w.keyCode,mxEvent.isShiftDown(w)?f.gridSize:null)}}return p.apply(this,arguments)};h.bindAction=mxUtils.bind(this,function(w,z,C,E){var D=this.actions.get(C);null!=D&&(C=function(){D.isEnabled()&&D.funct.apply(this,arguments)},
+!1)):f.setSelectionCell(C[C.length-1]),f.scrollCellToVisible(f.getSelectionCell()),null!=e.hoverIcons&&e.hoverIcons.update(f.view.getState(f.getSelectionCell())))}}else return this.isControlDown(w)?function(){b(w.keyCode,mxEvent.isShiftDown(w)?f.gridSize:null,!0)}:function(){b(w.keyCode,mxEvent.isShiftDown(w)?f.gridSize:null)}}return q.apply(this,arguments)};h.bindAction=mxUtils.bind(this,function(w,z,C,E){var D=this.actions.get(C);null!=D&&(C=function(){D.isEnabled()&&D.funct.apply(this,arguments)},
z?E?h.bindControlShiftKey(w,C):h.bindControlKey(w,C):E?h.bindShiftKey(w,C):h.bindKey(w,C))});var k=this,u=h.escape;h.escape=function(w){u.apply(this,arguments)};h.enter=function(){};h.bindControlShiftKey(36,function(){f.exitGroup()});h.bindControlShiftKey(35,function(){f.enterGroup()});h.bindShiftKey(36,function(){f.home()});h.bindKey(35,function(){f.refresh()});h.bindAction(80,!0,"print");h.bindAction(107,!0,"zoomIn");h.bindAction(109,!0,"zoomOut");h.bindAction(61,!0,"zoomIn");h.bindAction(187,!0,
"zoomIn");h.bindAction(222,!0,"zoomIn");h.bindAction(173,!0,"zoomOut");h.bindAction(189,!0,"zoomOut");if(!this.editor.chromeless||this.editor.editable)h.bindAction(79,!0,"outline",!0),h.bindControlKey(36,function(){f.isEnabled()&&f.foldCells(!0)}),h.bindControlKey(35,function(){f.isEnabled()&&f.foldCells(!1)}),h.bindControlKey(13,function(){k.ctrlEnter()}),h.bindAction(8,!1,"delete"),h.bindAction(8,!0,"deleteAll"),h.bindAction(8,!1,"deleteLabels",!0),h.bindAction(46,!1,"delete"),h.bindAction(46,!0,
"deleteAll"),h.bindAction(46,!1,"deleteLabels",!0),h.bindAction(36,!1,"resetView"),h.bindAction(72,!0,"fitWindow",!0),h.bindAction(74,!0,"fitPage"),h.bindAction(74,!0,"fitTwoPages",!0),h.bindAction(48,!0,"customZoom"),h.bindAction(82,!0,"turn"),h.bindAction(82,!0,"clearDefaultStyle",!0),h.bindAction(83,!0,"save"),h.bindAction(83,!0,"saveAs",!0),h.bindAction(65,!0,"selectAll"),h.bindAction(65,!0,"selectNone",!0),h.bindAction(73,!0,"selectVertices",!0),h.bindAction(69,!0,"selectEdges",!0),h.bindAction(69,
@@ -2314,11 +2314,11 @@ Sidebar.prototype.getTooltipOffset=function(a,b){if(mxUtils.isAncestorNode(this.
2-b.height/2-6)};
Sidebar.prototype.createMoreShapes=function(){var a=this.editorUi.createDiv("geSidebarFooter");a.style.position="absolute";a.style.overflow="hidden";a.style.display="inline-flex";a.style.alignItems="center";a.style.justifyContent="center";a.style.width="100%";a.style.marginTop="-1px";a.style.height=this.moreShapesHeight+"px";var b=document.createElement("button");b.className="geBtn gePrimaryBtn";b.style.display="inline-flex";b.style.alignItems="center";b.style.whiteSpace="nowrap";b.style.padding=
"8px";b.style.margin="0px";b.innerHTML="<span>+</span>";var e=b.getElementsByTagName("span")[0];e.style.fontSize="18px";e.style.marginRight="5px";mxUtils.write(b,mxResources.get("moreShapes"));mxEvent.addListener(b,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(f){f.preventDefault()}));mxEvent.addListener(b,"click",mxUtils.bind(this,function(f){this.editorUi.actions.get("shapes").funct();mxEvent.consume(f)}));a.appendChild(b);return a};
-Sidebar.prototype.createTooltip=function(a,b,e,f,h,d,g,m,p,k,u){u=null!=u?u:!0;this.tooltipMouseDown=p;p=this.editorUi.editor.graph;if(null==this.tooltip){this.tooltip=document.createElement("div");this.tooltip.className="geSidebarTooltip";this.tooltip.style.userSelect="none";this.tooltip.style.zIndex=mxPopupMenu.prototype.zIndex-1;document.body.appendChild(this.tooltip);mxEvent.addMouseWheelListener(mxUtils.bind(this,function(z){this.hideTooltip()}),this.tooltip);this.graph2=new Graph(this.tooltip,
+Sidebar.prototype.createTooltip=function(a,b,e,f,h,d,g,m,q,k,u){u=null!=u?u:!0;this.tooltipMouseDown=q;q=this.editorUi.editor.graph;if(null==this.tooltip){this.tooltip=document.createElement("div");this.tooltip.className="geSidebarTooltip";this.tooltip.style.userSelect="none";this.tooltip.style.zIndex=mxPopupMenu.prototype.zIndex-1;document.body.appendChild(this.tooltip);mxEvent.addMouseWheelListener(mxUtils.bind(this,function(z){this.hideTooltip()}),this.tooltip);this.graph2=new Graph(this.tooltip,
null,null,this.editorUi.editor.graph.getStylesheet());this.graph2.shapeBackgroundColor=this.graph.shapeBackgroundColor;this.graph2.resetViewOnRootChange=!1;this.graph2.foldingEnabled=!1;this.graph2.gridEnabled=!1;this.graph2.autoScroll=!1;this.graph2.setTooltips(!1);this.graph2.setConnectable(!1);this.graph2.setPanning(!1);this.graph2.setEnabled(!1);if(this.graph2.dialect==mxConstants.DIALECT_SVG){var w=this.graph2.view.getDrawPane().ownerSVGElement;null!=w&&(w.style.overflow="visible")}else this.graph2.view.canvas.style.overflow=
"visible";this.graph2.openLink=mxUtils.bind(this,function(){this.hideTooltip()});mxEvent.addGestureListeners(this.tooltip,mxUtils.bind(this,function(z){null!=this.tooltipMouseDown&&this.tooltipMouseDown(z);window.setTimeout(mxUtils.bind(this,function(){null!=this.tooltipCloseImage&&"none"!=this.tooltipCloseImage.style.display||this.hideTooltip()}),0)}),null,mxUtils.bind(this,function(z){this.hideTooltip()}));mxClient.IS_SVG||(this.graph2.view.canvas.style.position="relative");w=document.createElement("img");
w.setAttribute("src",Dialog.prototype.closeImage);w.setAttribute("title",mxResources.get("close"));w.style.position="absolute";w.style.cursor="default";w.style.padding="8px";w.style.right="2px";w.style.top="2px";this.tooltip.appendChild(w);this.tooltipCloseImage=w;mxEvent.addListener(w,"click",mxUtils.bind(this,function(z){this.hideTooltip();mxEvent.consume(z)}))}this.tooltipCloseImage.style.display=k?"":"none";this.graph2.model.clear();this.graph2.view.setTranslate(this.tooltipBorder,this.tooltipBorder);
-this.graph2.view.scale=!m&&(e>this.maxTooltipWidth||f>this.maxTooltipHeight)?Math.round(100*Math.min(this.maxTooltipWidth/e,this.maxTooltipHeight/f))/100:1;this.tooltip.style.display="block";this.graph2.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;null!=b&&(b=this.graph2.cloneCells(b),this.graph2.pasteCellStyles(p.includeDescendants(b),u?p.currentVertexStyle:p.defaultVertexStyle,u?p.currentEdgeStyle:p.defaultEdgeStyle,null,p.pasteEdgeStyle),this.graph2.addCells(b));
+this.graph2.view.scale=!m&&(e>this.maxTooltipWidth||f>this.maxTooltipHeight)?Math.round(100*Math.min(this.maxTooltipWidth/e,this.maxTooltipHeight/f))/100:1;this.tooltip.style.display="block";this.graph2.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;null!=b&&(b=this.graph2.cloneCells(b),this.graph2.pasteCellStyles(q.includeDescendants(b),u?q.currentVertexStyle:q.defaultVertexStyle,u?q.currentEdgeStyle:q.defaultEdgeStyle,null,q.pasteEdgeStyle),this.graph2.addCells(b));
mxClient.NO_FO=d;u=this.graph2.getGraphBounds();m&&0<e&&0<f&&(u.width>e||u.height>f)?(e=Math.round(100*Math.min(e/u.width,f/u.height))/100,mxClient.NO_FO?(this.graph2.view.setScale(Math.round(100*Math.min(this.maxTooltipWidth/u.width,this.maxTooltipHeight/u.height))/100),u=this.graph2.getGraphBounds()):(this.graph2.view.getDrawPane().ownerSVGElement.style.transform="scale("+e+")",this.graph2.view.getDrawPane().ownerSVGElement.style.transformOrigin="0 0",u.width*=e,u.height*=e)):mxClient.NO_FO||(this.graph2.view.getDrawPane().ownerSVGElement.style.transform=
"");e=u.width+2*this.tooltipBorder+4;f=u.height+2*this.tooltipBorder;this.tooltip.style.overflow="visible";this.tooltip.style.width=e+"px";m=e;this.tooltipTitles&&null!=h&&0<h.length?(null==this.tooltipTitle?(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.style.borderTopStyle="solid",this.tooltipTitle.style.borderTopWidth="1px",this.tooltipTitle.style.textAlign="center",this.tooltipTitle.style.width="100%",this.tooltipTitle.style.overflow="hidden",this.tooltipTitle.style.position=
"absolute",this.tooltipTitle.style.paddingTop="6px",this.tooltipTitle.style.bottom="6px",this.tooltip.appendChild(this.tooltipTitle)):this.tooltipTitle.innerText="",this.tooltipTitle.style.display="",mxUtils.write(this.tooltipTitle,h),this.tooltipTitle.setAttribute("title",h),m=Math.min(this.maxTooltipWidth,Math.max(e,this.tooltipTitle.scrollWidth+4)),h=this.tooltipTitle.offsetHeight+10,f+=h,mxClient.IS_SVG?this.tooltipTitle.style.marginTop=2-h+"px":(f-=6,this.tooltipTitle.style.top=f-h+"px")):null!=
@@ -2330,19 +2330,19 @@ Sidebar.prototype.addEntries=function(a){for(var b=0;b<a.length;b++)mxUtils.bind
mxUtils.bind(this,function(){var d=this.editorUi.stringToCells("<"==e.xml.charAt(0)?e.xml:Graph.decompress(e.xml));return this.createVertexTemplateFromCells(d,e.w,e.h,e.title||"",!0,!1,!0)}))})(a[b])};Sidebar.prototype.setCurrentSearchEntryLibrary=function(a,b){this.currentSearchEntryLibrary=null!=a?{id:a,lib:b}:null};
Sidebar.prototype.getKeyStyle=function(a){var b=[];if(null!=a){a=a.split(";");for(var e=0;e<a.length;e++){var f=a[e].split("=");1<f.length&&0>mxUtils.indexOf(this.ignoredStyles,f[0])&&b.push(f[0]+"="+f[1])}}return b.join(";")};Sidebar.prototype.addLibForStyle=function(a,b){""!=a&&(null==this.styleToLibs&&(this.styleToLibs={}),null==this.styleToLibs[a]&&(this.styleToLibs[a]=[]),this.styleToLibs[a].push(b))};
Sidebar.prototype.getLibsForStyle=function(a){return null!=this.styleToLibs?this.styleToLibs[a]:null};
-Sidebar.prototype.addEntry=function(a,b){if(null!=this.currentSearchEntryLibrary){var e=this,f=this.createVertexTemplateFromCells;this.createVertexTemplateFromCells=function(m,p,k,u,w){if(null!=m)for(p=0;p<m.length;p++)e.addLibForStyle(e.getKeyStyle(m[p].style),this.currentSearchEntryLibrary)};b();this.createVertexTemplateFromCells=f}if(null!=this.taglist&&null!=a&&0<a.length){null!=this.currentSearchEntryLibrary&&(b.parentLibraries=[this.currentSearchEntryLibrary]);a=a.toLowerCase().replace(/[\/,\(\)]/g,
+Sidebar.prototype.addEntry=function(a,b){if(null!=this.currentSearchEntryLibrary){var e=this,f=this.createVertexTemplateFromCells;this.createVertexTemplateFromCells=function(m,q,k,u,w){if(null!=m)for(q=0;q<m.length;q++)e.addLibForStyle(e.getKeyStyle(m[q].style),this.currentSearchEntryLibrary)};b();this.createVertexTemplateFromCells=f}if(null!=this.taglist&&null!=a&&0<a.length){null!=this.currentSearchEntryLibrary&&(b.parentLibraries=[this.currentSearchEntryLibrary]);a=a.toLowerCase().replace(/[\/,\(\)]/g,
" ").split(" ");f=[];for(var h={},d=0;d<a.length;d++){null==h[a[d]]&&(h[a[d]]=!0,f.push(a[d]));var g=Editor.soundex(a[d].replace(/\.*\d*$/,""));g!=a[d]&&null==h[g]&&(h[g]=!0,f.push(g))}for(d=0;d<f.length;d++)this.addEntryForTag(f[d],b)}return b};Sidebar.prototype.addEntryForTag=function(a,b){if(null!=a&&1<a.length){var e=this.taglist[a];"object"!==typeof e&&(e={entries:[]},this.taglist[a]=e);e.entries.push(b)}};
Sidebar.prototype.isEntryIgnored=function(a,b){b=!b;if(null!=a.parentLibraries&&b)for(var e=0;e<a.parentLibraries.length;e++)if(this.isEntryVisible(a.parentLibraries[e].id)){b=!1;break}return b};
-Sidebar.prototype.searchEntries=function(a,b,e,f,h,d){if(null!=this.taglist&&null!=a){var g=a.toLowerCase().split(" ");a=new mxDictionary;h=(e+1)*b;for(var m=[],p=0,k=0;k<g.length;k++){var u=Editor.soundex(g[k].replace(/\.*\d*$/,""));if(0<u.length){m=this.taglist[g[k]];var w=null!=m?m.entries.slice():[];m=this.taglist[u];w=null!=m?w.concat(m.entries):w;u=new mxDictionary;if(0<w.length){m=[];for(var z=0;z<w.length;z++){var C=w[z];if(0==p==(null==a.get(C))&&null==u.get(C)&&(u.put(C,C),!this.isEntryIgnored(C,
-d)&&(m.push(C),k==g.length-1&&m.length==h))){f(m.slice(e*b,h),h,!0,g);return}}}else m=[];a=u;p++}}d=m.length;f(m.slice(e*b,(e+1)*b),d,!1,g)}else f([],null,null,g)};Sidebar.prototype.filterTags=function(a){if(null!=a){a=a.split(" ");for(var b=[],e={},f=0;f<a.length;f++)null==e[a[f]]&&(e[a[f]]="1",b.push(a[f]));return b.join(" ")}return null};Sidebar.prototype.cloneCell=function(a,b){a=a.clone();null!=b&&(a.value=b);return a};Sidebar.prototype.showPopupMenuForEntry=function(a,b,e){};
-Sidebar.prototype.addSearchPalette=function(a){function b(){g.setAttribute("src",Editor.magnifyImage);g.setAttribute("title",mxResources.get("search"));p.style.display="none";k=d.value="";D()}var e=document.createElement("div");e.style.visibility="hidden";this.appendChild(e);var f=document.createElement("div");f.className="geSidebar geSearchSidebar";a||(f.style.display="none");var h=document.createElement("div");h.style.whiteSpace="nowrap";h.style.textOverflow="clip";h.style.paddingBottom="8px";h.style.cursor=
+Sidebar.prototype.searchEntries=function(a,b,e,f,h,d){if(null!=this.taglist&&null!=a){var g=a.toLowerCase().split(" ");a=new mxDictionary;h=(e+1)*b;for(var m=[],q=0,k=0;k<g.length;k++){var u=Editor.soundex(g[k].replace(/\.*\d*$/,""));if(0<u.length){m=this.taglist[g[k]];var w=null!=m?m.entries.slice():[];m=this.taglist[u];w=null!=m?w.concat(m.entries):w;u=new mxDictionary;if(0<w.length){m=[];for(var z=0;z<w.length;z++){var C=w[z];if(0==q==(null==a.get(C))&&null==u.get(C)&&(u.put(C,C),!this.isEntryIgnored(C,
+d)&&(m.push(C),k==g.length-1&&m.length==h))){f(m.slice(e*b,h),h,!0,g);return}}}else m=[];a=u;q++}}d=m.length;f(m.slice(e*b,(e+1)*b),d,!1,g)}else f([],null,null,g)};Sidebar.prototype.filterTags=function(a){if(null!=a){a=a.split(" ");for(var b=[],e={},f=0;f<a.length;f++)null==e[a[f]]&&(e[a[f]]="1",b.push(a[f]));return b.join(" ")}return null};Sidebar.prototype.cloneCell=function(a,b){a=a.clone();null!=b&&(a.value=b);return a};Sidebar.prototype.showPopupMenuForEntry=function(a,b,e){};
+Sidebar.prototype.addSearchPalette=function(a){function b(){g.setAttribute("src",Editor.magnifyImage);g.setAttribute("title",mxResources.get("search"));q.style.display="none";k=d.value="";D()}var e=document.createElement("div");e.style.visibility="hidden";this.appendChild(e);var f=document.createElement("div");f.className="geSidebar geSearchSidebar";a||(f.style.display="none");var h=document.createElement("div");h.style.whiteSpace="nowrap";h.style.textOverflow="clip";h.style.paddingBottom="8px";h.style.cursor=
"default";var d=document.createElement("input");d.setAttribute("placeholder",mxResources.get("searchShapes"));d.setAttribute("type","text");h.appendChild(d);var g=document.createElement("img");g.setAttribute("src",Editor.magnifyImage);g.setAttribute("title",mxResources.get("search"));g.className="geAdaptiveAsset";g.style.position="relative";g.style.cursor="pointer";g.style.opacity="0.5";g.style.height="16px";g.style.left="-20px";g.style.top="4px";g.style.background="url('"+this.editorUi.editor.transparentImage+
-"')";h.appendChild(g);f.appendChild(h);var m=document.createElement("center"),p=mxUtils.button(mxResources.get("moreResults"),function(){G()});p.style.display="none";p.style.lineHeight="normal";p.style.fontSize="12px";p.style.padding="6px 12px 6px 12px";p.style.marginTop="4px";p.style.marginBottom="8px";m.style.paddingTop="4px";m.style.paddingBottom="4px";m.appendChild(p);f.appendChild(m);var k="",u=!1,w=!1,z=0,C={},E=12,D=mxUtils.bind(this,function(){u=!1;this.currentSearch=null;for(var J=f.firstChild;null!=
-J;){var L=J.nextSibling;J!=h&&J!=m&&J.parentNode.removeChild(J);J=L}});mxEvent.addListener(g,"click",function(){g.getAttribute("src")!=Editor.magnifyImage&&b();d.focus()});var G=mxUtils.bind(this,function(){E=4*Math.max(1,Math.floor(this.container.clientWidth/(this.thumbWidth+10)));this.hideTooltip();if(""!=d.value){if(null!=m.parentNode&&(k!=d.value&&(D(),k=d.value,C={},w=!1,z=0),!u&&!w)){p.setAttribute("disabled","true");p.style.display="";p.style.cursor="wait";p.innerHTML=mxResources.get("loading")+
+"')";h.appendChild(g);f.appendChild(h);var m=document.createElement("center"),q=mxUtils.button(mxResources.get("moreResults"),function(){G()});q.style.display="none";q.style.lineHeight="normal";q.style.fontSize="12px";q.style.padding="6px 12px 6px 12px";q.style.marginTop="4px";q.style.marginBottom="8px";m.style.paddingTop="4px";m.style.paddingBottom="4px";m.appendChild(q);f.appendChild(m);var k="",u=!1,w=!1,z=0,C={},E=12,D=mxUtils.bind(this,function(){u=!1;this.currentSearch=null;for(var J=f.firstChild;null!=
+J;){var L=J.nextSibling;J!=h&&J!=m&&J.parentNode.removeChild(J);J=L}});mxEvent.addListener(g,"click",function(){g.getAttribute("src")!=Editor.magnifyImage&&b();d.focus()});var G=mxUtils.bind(this,function(){E=4*Math.max(1,Math.floor(this.container.clientWidth/(this.thumbWidth+10)));this.hideTooltip();if(""!=d.value){if(null!=m.parentNode&&(k!=d.value&&(D(),k=d.value,C={},w=!1,z=0),!u&&!w)){q.setAttribute("disabled","true");q.style.display="";q.style.cursor="wait";q.innerHTML=mxResources.get("loading")+
"...";u=!0;var J={};this.currentSearch=J;try{this.searchEntries(k,E,z,mxUtils.bind(this,function(L,Q,N,U){if(this.currentSearch==J){L=null!=L?L:[];u=!1;z++;this.insertSearchHint(f,k,E,z,L,Q,N,U);0==L.length&&1==z&&(k="");null!=m.parentNode&&m.parentNode.removeChild(m);for(Q=0;Q<L.length;Q++)mxUtils.bind(this,function(Y){try{var P=Y();null!=this.closedLibraryOpacity&&this.searchClosedLibraries&&this.isEntryIgnored(Y,!1)&&(P.style.opacity=this.closedLibraryOpacity);null==C[P.innerHTML]?(C[P.innerHTML]=
-null!=Y.parentLibraries?Y.parentLibraries.slice():[],f.appendChild(P)):null!=Y.parentLibraries&&(C[P.innerHTML]=C[P.innerHTML].concat(Y.parentLibraries));mxEvent.addGestureListeners(P,null,null,mxUtils.bind(this,function(T){var K=C[P.innerHTML];mxEvent.isPopupTrigger(T)&&this.showPopupMenuForEntry(P,K,T)}));mxEvent.disableContextMenu(P)}catch(T){"1"==urlParams.test&&(null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(T.stack)):console.error(T))}})(L[Q]);N?(p.removeAttribute("disabled"),
-p.innerHTML=mxResources.get("moreResults")):(p.innerHTML=mxResources.get("reset"),p.style.display="none",w=!0);p.style.cursor="";f.appendChild(m)}}),mxUtils.bind(this,function(){p.style.cursor=""}),this.searchClosedLibraries)}catch(L){this.editorUi.handleError(L)}}}else D(),k=d.value="",C={},p.style.display="none",w=!1,d.focus()});this.searchShapes=function(J){d.value=J;G()};mxEvent.addListener(d,"keydown",mxUtils.bind(this,function(J){13==J.keyCode?(G(),mxEvent.consume(J)):27==J.keyCode&&b()}));
-a=mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){""==d.value?(g.setAttribute("src",Editor.magnifyImage),g.setAttribute("title",mxResources.get("search"))):(g.setAttribute("src",Editor.crossImage),g.setAttribute("title",mxResources.get("reset")));""==d.value?(w=!0,p.style.display="none"):d.value!=k?(p.style.display="none",w=!1):u||(p.style.display=w?"none":"")}),0)});mxEvent.addListener(d,"keyup",a);mxEvent.addListener(d,"paste",a);mxEvent.addListener(d,"cut",a);mxEvent.addListener(d,
+null!=Y.parentLibraries?Y.parentLibraries.slice():[],f.appendChild(P)):null!=Y.parentLibraries&&(C[P.innerHTML]=C[P.innerHTML].concat(Y.parentLibraries));mxEvent.addGestureListeners(P,null,null,mxUtils.bind(this,function(T){var K=C[P.innerHTML];mxEvent.isPopupTrigger(T)&&this.showPopupMenuForEntry(P,K,T)}));mxEvent.disableContextMenu(P)}catch(T){"1"==urlParams.test&&(null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(T.stack)):console.error(T))}})(L[Q]);N?(q.removeAttribute("disabled"),
+q.innerHTML=mxResources.get("moreResults")):(q.innerHTML=mxResources.get("reset"),q.style.display="none",w=!0);q.style.cursor="";f.appendChild(m)}}),mxUtils.bind(this,function(){q.style.cursor=""}),this.searchClosedLibraries)}catch(L){this.editorUi.handleError(L)}}}else D(),k=d.value="",C={},q.style.display="none",w=!1,d.focus()});this.searchShapes=function(J){d.value=J;G()};mxEvent.addListener(d,"keydown",mxUtils.bind(this,function(J){13==J.keyCode?(G(),mxEvent.consume(J)):27==J.keyCode&&b()}));
+a=mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){""==d.value?(g.setAttribute("src",Editor.magnifyImage),g.setAttribute("title",mxResources.get("search"))):(g.setAttribute("src",Editor.crossImage),g.setAttribute("title",mxResources.get("reset")));""==d.value?(w=!0,q.style.display="none"):d.value!=k?(q.style.display="none",w=!1):u||(q.style.display=w?"none":"")}),0)});mxEvent.addListener(d,"keyup",a);mxEvent.addListener(d,"paste",a);mxEvent.addListener(d,"cut",a);mxEvent.addListener(d,
"mousedown",function(J){J.stopPropagation&&J.stopPropagation();J.cancelBubble=!0});mxEvent.addListener(d,"selectstart",function(J){J.stopPropagation&&J.stopPropagation();J.cancelBubble=!0});a=document.createElement("div");a.appendChild(f);this.appendChild(a);this.palettes.search=[e,a]};
Sidebar.prototype.insertSearchHint=function(a,b,e,f,h,d,g,m){0==h.length&&1==f&&(e=document.createElement("div"),e.className="geTitle",e.style.cssText="background-color:transparent;border-color:transparent;padding:6px 0px 0px 0px !important;margin:4px 8px 4px 8px;text-align:center;cursor:default !important;font-size:11px;font-weight:normal;",mxUtils.write(e,mxResources.get("noResultsFor",[b])),a.appendChild(e))};
Sidebar.prototype.addGeneralPalette=function(a){this.setCurrentSearchEntryLibrary("general","general");var b=this.editorUi.editor.graph,e=this,f=parseInt(this.initialDefaultVertexStyle.fontSize);f=isNaN(f)?"":"fontSize="+Math.min(16,f)+";";var h=b.appendFontSize("edgeLabel;resizable=0;html=1;",b.edgeFontSize),d=new mxCell("List Item",new mxGeometry(0,0,80,30),"text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;"+
@@ -2449,36 +2449,36 @@ d.geometry.setTerminalPoint(new mxPoint(0,0),!0);d.geometry.setTerminalPoint(new
0,"Use","Dependency",null,"uml dependency use"),this.createEdgeTemplateEntry("endArrow=block;endSize=16;endFill=0;html=1;",160,0,"Extends","Generalization",null,"uml generalization extend"),this.createEdgeTemplateEntry("endArrow=block;startArrow=block;endFill=1;startFill=1;html=1;",160,0,"","Association 2",null,"uml association"),this.createEdgeTemplateEntry("endArrow=open;startArrow=circlePlus;endFill=0;startFill=0;endSize=8;html=1;",160,0,"","Inner Class",null,"uml inner class"),this.createEdgeTemplateEntry("endArrow=open;startArrow=cross;endFill=0;startFill=0;endSize=8;startSize=10;html=1;",
160,0,"","Terminate",null,"uml terminate"),this.createEdgeTemplateEntry("endArrow=block;dashed=1;endFill=0;endSize=12;html=1;",160,0,"","Implementation",null,"uml realization implementation"),this.createEdgeTemplateEntry("endArrow=diamondThin;endFill=0;endSize=24;html=1;",160,0,"","Aggregation 2",null,"uml aggregation"),this.createEdgeTemplateEntry("endArrow=diamondThin;endFill=1;endSize=24;html=1;",160,0,"","Composition 2",null,"uml composition"),this.createEdgeTemplateEntry("endArrow=open;endFill=1;endSize=12;html=1;",
160,0,"","Association 3",null,"uml association")];this.addPaletteFunctions("uml",mxResources.get("uml"),a||!1,h);this.setCurrentSearchEntryLibrary()};Sidebar.prototype.createTitle=function(a){var b=document.createElement("a");b.setAttribute("title",mxResources.get("sidebarTooltip"));b.className="geTitle";var e=document.createElement("span");mxUtils.write(e,a);b.appendChild(e);return b};
-Sidebar.prototype.createThumb=function(a,b,e,f,h,d,g,m,p,k,u,w){this.graph.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;this.graph.shapeForegroundColor="light-dark(#000000, #c0c0c0)";this.graph.shapeBackgroundColor=null!=k?k:"light-dark(#f1f3f4, #1b1d1e)";this.graph.view.scaleAndTranslate(null!=w?w:1,0,0);this.graph.addCells(a);a=this.graph.getGraphBounds();null==w&&(k=Math.floor(100*Math.min((b-2*this.thumbBorder)/a.width,(e-2*this.thumbBorder)/
+Sidebar.prototype.createThumb=function(a,b,e,f,h,d,g,m,q,k,u,w){this.graph.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;this.graph.shapeForegroundColor="light-dark(#000000, #c0c0c0)";this.graph.shapeBackgroundColor=null!=k?k:"light-dark(#f1f3f4, #1b1d1e)";this.graph.view.scaleAndTranslate(null!=w?w:1,0,0);this.graph.addCells(a);a=this.graph.getGraphBounds();null==w&&(k=Math.floor(100*Math.min((b-2*this.thumbBorder)/a.width,(e-2*this.thumbBorder)/
a.height))/100,this.graph.view.scaleAndTranslate(k,(b-a.width*k)/2/k-a.x,(e-a.height*k)/2/k-a.y));this.graph.dialect!=mxConstants.DIALECT_SVG||mxClient.NO_FO||null==this.graph.view.getCanvas().ownerSVGElement?(k=this.graph.container.cloneNode(!1),k.innerHTML=this.graph.container.innerHTML):k=this.graph.view.getCanvas().ownerSVGElement.cloneNode(!0);this.graph.getModel().clear();this.graph.view.scaleAndTranslate(1,0,0);this.graph.shapeBackgroundColor="#f1f3f4";mxClient.NO_FO=d;k.style.position="relative";
k.style.overflow=null!=w?"visible":"hidden";k.style.left=(null!=u?u:this.thumbBorder)+"px";k.style.top=k.style.left;k.style.width=b+"px";k.style.height=e+"px";k.style.visibility="";k.style.minWidth="";k.style.minHeight="";this.disablePointerEvents(k);f.appendChild(k);this.sidebarTitles&&null!=h&&0!=g&&(f.style.height=this.thumbHeight+0+this.sidebarTitleSize+8+"px",b=document.createElement("div"),b.style.color=Editor.isDarkMode()?"#A0A0A0":"#303030",b.style.fontSize=this.sidebarTitleSize+"px",b.style.textAlign=
"center",b.style.whiteSpace="nowrap",b.style.overflow="hidden",b.style.textOverflow="ellipsis",mxClient.IS_IE&&(b.style.height=this.sidebarTitleSize+12+"px"),b.style.paddingTop="4px",mxUtils.write(b,h),f.appendChild(b));return a};
Sidebar.prototype.createSection=function(a){return mxUtils.bind(this,function(){var b=document.createElement("div");b.setAttribute("title",a);b.style.textOverflow="ellipsis";b.style.whiteSpace="nowrap";b.style.textAlign="center";b.style.overflow="hidden";b.style.width="100%";b.style.padding="14px 0";mxUtils.write(b,a);return b})};
-Sidebar.prototype.createItem=function(a,b,e,f,h,d,g,m,p,k,u,w,z,C){m=null!=m?m:!0;k=null!=k?k:this.thumbWidth;u=null!=u?u:this.thumbHeight;var E=document.createElement("a");E.className="geItem";E.style.overflow="hidden";var D=2*this.thumbBorder;E.style.width=k+D+"px";E.style.height=u+D+"px";E.style.padding=this.thumbPadding+"px";mxEvent.addListener(E,"click",function(J){mxEvent.consume(J)});var G=new mxRectangle(0,0,h,d);null!=a&&0<a.length?(D=a,a=this.graph.cloneCells(a),this.graph.pasteCellStyles(this.graph.includeDescendants(D),
-this.initialDefaultVertexStyle,this.initialDefaultEdgeStyle),null!=w?(E.style.backgroundImage="url("+w+")",E.style.backgroundRepeat="no-repeat",E.style.backgroundPosition="center",E.style.backgroundSize="24px 24px"):this.createThumb(D,k,u,E,b,e,f,h,d),1<a.length||a[0].vertex?(f=this.createDragSource(E,this.createDropHandler(a,!0,g,G,z,C),this.createDragPreview(h,d),a,G,z),this.addClickHandler(E,f,a,p,z),f.isGuidesEnabled=mxUtils.bind(this,function(){return this.editorUi.editor.graph.graphHandler.guidesEnabled})):
-null!=a[0]&&a[0].edge&&(f=this.createDragSource(E,this.createDropHandler(a,!1,g,G,z,C),this.createDragPreview(h,d),a,G,z),this.addClickHandler(E,f,a,p)),!mxClient.IS_IOS&&m&&mxEvent.addGestureListeners(E,null,mxUtils.bind(this,function(J){mxEvent.isMouseEvent(J)&&this.showTooltip(E,a,G.width,G.height,b,e)}))):(E.style.backgroundImage="url("+Editor.svgBrokenImage.src+")",E.setAttribute("title",b));return E};
-Sidebar.prototype.createDropHandler=function(a,b,e,f,h,d){e=null!=e?e:!0;return mxUtils.bind(this,function(g,m,p,k,u,w){for(w=w?null:mxEvent.isTouchEvent(m)||mxEvent.isPenEvent(m)?document.elementFromPoint(mxEvent.getClientX(m),mxEvent.getClientY(m)):mxEvent.getSource(m);null!=w&&w!=this.container;)w=w.parentNode;if(null==w&&g.isEnabled()){a=g.getImportableCells(a);if(0<a.length){g.stopEditing();w=null==p||mxEvent.isAltDown(m)?!1:g.isValidDropTarget(p,a,m);var z=null;null==p||w||(p=null);if(!g.isCellLocked(p||
-g.getDefaultParent())){g.model.beginUpdate();try{k=Math.round(k);u=Math.round(u);if(b&&g.isSplitTarget(p,a,m)){var C=g.view.scale,E=g.view.translate,D=(k+E.x)*C,G=(u+E.y)*C,J=g.cloneCells(a);g.splitEdge(p,J,null,k-f.width/2,u-f.height/2,D,G);z=J}else if(0<a.length&&(z=g.importCells(a,k,u,p),g.model.isVertex(d)&&1==z.length&&g.model.isVertex(z[0]))){var L=g.insertEdge(g.model.getParent(d),null,"",d,z[0],g.createCurrentEdgeStyle());g.applyNewEdgeStyle(d,[L]);z.push(L);g.connectionHandler.insertBeforeSource&&
-g.insertEdgeBeforeCell(L,d)}if(null!=g.layoutManager){var Q=g.layoutManager.getLayout(p);if(null!=Q){C=g.view.scale;E=g.view.translate;D=(k+E.x)*C;G=(u+E.y)*C;for(var N=0;N<z.length;N++)Q.moveCell(z[N],D,G)}}!e||null!=m&&mxEvent.isShiftDown(m)||g.fireEvent(new mxEventObject("cellsInserted","cells",z));for(N=0;N<z.length;N++)g.model.isVertex(z[N])&&g.isAutoSizeCell(z[N])&&g.updateCellSize(z[N])}catch(U){this.editorUi.handleError(U)}finally{g.model.endUpdate()}null!=z&&0<z.length&&(g.scrollCellToVisible(z[0]),
+Sidebar.prototype.createItem=function(a,b,e,f,h,d,g,m,q,k,u,w,z,C){m=null!=m?m:!0;k=null!=k?k:this.thumbWidth;u=null!=u?u:this.thumbHeight;var E=document.createElement("a");E.className="geItem";E.style.overflow="hidden";var D=2*this.thumbBorder;E.style.width=k+D+"px";E.style.height=u+D+"px";E.style.padding=this.thumbPadding+"px";mxEvent.addListener(E,"click",function(J){mxEvent.consume(J)});var G=new mxRectangle(0,0,h,d);null!=a&&0<a.length?(D=a,a=this.graph.cloneCells(a),this.graph.pasteCellStyles(this.graph.includeDescendants(D),
+this.initialDefaultVertexStyle,this.initialDefaultEdgeStyle),null!=w?(E.style.backgroundImage="url("+w+")",E.style.backgroundRepeat="no-repeat",E.style.backgroundPosition="center",E.style.backgroundSize="24px 24px"):this.createThumb(D,k,u,E,b,e,f,h,d),1<a.length||a[0].vertex?(f=this.createDragSource(E,this.createDropHandler(a,!0,g,G,z,C),this.createDragPreview(h,d),a,G,z),this.addClickHandler(E,f,a,q,z),f.isGuidesEnabled=mxUtils.bind(this,function(){return this.editorUi.editor.graph.graphHandler.guidesEnabled})):
+null!=a[0]&&a[0].edge&&(f=this.createDragSource(E,this.createDropHandler(a,!1,g,G,z,C),this.createDragPreview(h,d),a,G,z),this.addClickHandler(E,f,a,q)),!mxClient.IS_IOS&&m&&mxEvent.addGestureListeners(E,null,mxUtils.bind(this,function(J){mxEvent.isMouseEvent(J)&&this.showTooltip(E,a,G.width,G.height,b,e)}))):(E.style.backgroundImage="url("+Editor.svgBrokenImage.src+")",E.setAttribute("title",b));return E};
+Sidebar.prototype.createDropHandler=function(a,b,e,f,h,d){e=null!=e?e:!0;return mxUtils.bind(this,function(g,m,q,k,u,w){for(w=w?null:mxEvent.isTouchEvent(m)||mxEvent.isPenEvent(m)?document.elementFromPoint(mxEvent.getClientX(m),mxEvent.getClientY(m)):mxEvent.getSource(m);null!=w&&w!=this.container;)w=w.parentNode;if(null==w&&g.isEnabled()){a=g.getImportableCells(a);if(0<a.length){g.stopEditing();w=null==q||mxEvent.isAltDown(m)?!1:g.isValidDropTarget(q,a,m);var z=null;null==q||w||(q=null);if(!g.isCellLocked(q||
+g.getDefaultParent())){g.model.beginUpdate();try{k=Math.round(k);u=Math.round(u);if(b&&g.isSplitTarget(q,a,m)){var C=g.view.scale,E=g.view.translate,D=(k+E.x)*C,G=(u+E.y)*C,J=g.cloneCells(a);g.splitEdge(q,J,null,k-f.width/2,u-f.height/2,D,G);z=J}else if(0<a.length&&(z=g.importCells(a,k,u,q),g.model.isVertex(d)&&1==z.length&&g.model.isVertex(z[0]))){var L=g.insertEdge(g.model.getParent(d),null,"",d,z[0],g.createCurrentEdgeStyle());g.applyNewEdgeStyle(d,[L]);z.push(L);g.connectionHandler.insertBeforeSource&&
+g.insertEdgeBeforeCell(L,d)}if(null!=g.layoutManager){var Q=g.layoutManager.getLayout(q);if(null!=Q){C=g.view.scale;E=g.view.translate;D=(k+E.x)*C;G=(u+E.y)*C;for(var N=0;N<z.length;N++)Q.moveCell(z[N],D,G)}}!e||null!=m&&mxEvent.isShiftDown(m)||g.fireEvent(new mxEventObject("cellsInserted","cells",z));for(N=0;N<z.length;N++)g.model.isVertex(z[N])&&g.isAutoSizeCell(z[N])&&g.updateCellSize(z[N])}catch(U){this.editorUi.handleError(U)}finally{g.model.endUpdate()}null!=z&&0<z.length&&(g.scrollCellToVisible(z[0]),
g.setSelectionCells(z));(h||g.editAfterInsert&&null!=m&&mxEvent.isMouseEvent(m)&&null!=z&&1==z.length)&&window.setTimeout(function(){g.startEditing(z[0])},0)}}mxEvent.consume(m)}})};Sidebar.prototype.createDragPreview=function(a,b){var e=document.createElement("div");e.className="geDragPreview";e.style.width=a+"px";e.style.height=b+"px";return e};
-Sidebar.prototype.dropAndConnect=function(a,b,e,f,h,d,g){var m=this.editorUi.editor.graph,p=m.model.isEdge(a)||null!=d?d:g;p=this.getDropAndConnectGeometry(a,b[p],e,b);var k=[];if(null!=p){var u=null;m.model.beginUpdate();try{var w=m.getCellGeometry(a),z=m.getCellGeometry(b[f]),C=m.model.getParent(a),E=!0;if(null!=m.layoutManager){var D=m.layoutManager.getLayout(C);null!=D&&D.constructor==mxStackLayout&&(E=!1)}k=m.model.isEdge(a)?null:m.view.getState(C);var G=D=0;if(null!=k){var J=k.origin;D=J.x;
-G=J.y}var L=!m.isTableRow(a)&&!m.isTableCell(a)&&(m.model.isEdge(a)||null!=w&&!w.relative&&E),Q=m.getCellAt((p.x+D+m.view.translate.x)*m.view.scale,(p.y+G+m.view.translate.y)*m.view.scale,null,null,null,function(K,V,Z){return!m.isContainer(K.cell)});if(null!=Q&&Q!=C)k=m.view.getState(Q),null!=k&&(J=k.origin,C=Q,L=!0,m.model.isEdge(a)||(p.x-=J.x-D,p.y-=J.y-G));else if(!E||m.isTableRow(a)||m.isTableCell(a))p.x+=D,p.y+=G;D=z.x;G=z.y;m.model.isEdge(b[f])&&(G=D=0);k=b=m.importCells(b,p.x-(L?D:0),p.y-(L?
+Sidebar.prototype.dropAndConnect=function(a,b,e,f,h,d,g){var m=this.editorUi.editor.graph,q=m.model.isEdge(a)||null!=d?d:g;q=this.getDropAndConnectGeometry(a,b[q],e,b);var k=[];if(null!=q){var u=null;m.model.beginUpdate();try{var w=m.getCellGeometry(a),z=m.getCellGeometry(b[f]),C=m.model.getParent(a),E=!0;if(null!=m.layoutManager){var D=m.layoutManager.getLayout(C);null!=D&&D.constructor==mxStackLayout&&(E=!1)}k=m.model.isEdge(a)?null:m.view.getState(C);var G=D=0;if(null!=k){var J=k.origin;D=J.x;
+G=J.y}var L=!m.isTableRow(a)&&!m.isTableCell(a)&&(m.model.isEdge(a)||null!=w&&!w.relative&&E),Q=m.getCellAt((q.x+D+m.view.translate.x)*m.view.scale,(q.y+G+m.view.translate.y)*m.view.scale,null,null,null,function(K,V,Z){return!m.isContainer(K.cell)});if(null!=Q&&Q!=C)k=m.view.getState(Q),null!=k&&(J=k.origin,C=Q,L=!0,m.model.isEdge(a)||(q.x-=J.x-D,q.y-=J.y-G));else if(!E||m.isTableRow(a)||m.isTableCell(a))q.x+=D,q.y+=G;D=z.x;G=z.y;m.model.isEdge(b[f])&&(G=D=0);k=b=m.importCells(b,q.x-(L?D:0),q.y-(L?
G:0),L?C:null);if(m.model.isEdge(a))m.model.setTerminal(a,b[f],e==mxConstants.DIRECTION_NORTH),null!=g&&null!=d&&(m.model.remove(b[g]),m.updateShapes(b[g],[a]));else if(m.model.isEdge(b[f])&&null==d){m.model.setTerminal(b[f],a,!0);var N=m.getCellGeometry(b[f]),U=null!=N?N.getTerminalPoint(!0):null;N.points=null;if(null!=U)for(e=0;e<b.length;e++)if(m.model.isEdge(b[e])&&e!=f){var Y=m.getCellGeometry(b[e]),P=null!=Y?Y.getTerminalPoint(!0):null;null!=P&&P.x==U.x&&P.y==U.y&&m.model.setTerminal(b[e],a,
-!0)}if(null!=N.getTerminalPoint(!1))N.setTerminalPoint(p.getTerminalPoint(!1),!1);else if(L&&m.model.isVertex(C)){var T=m.view.getState(C);J=T.cell!=m.view.currentRoot?T.origin:new mxPoint(0,0);m.cellsMoved(b,J.x,J.y,null,null,!0)}}else null!=d&&(z=m.getCellGeometry(b[d]),D=p.x-Math.round(z.x),G=p.y-Math.round(z.y),p.x=Math.round(z.x),p.y=Math.round(z.y),m.model.setGeometry(b[f],p),m.cellsMoved(b,D,G,null,null,!0),k=b.slice(),u=1==k.length?k[0]:null,null!=g?m.model.setTerminal(b[g],a,!0):b.push(m.insertEdge(null,
+!0)}if(null!=N.getTerminalPoint(!1))N.setTerminalPoint(q.getTerminalPoint(!1),!1);else if(L&&m.model.isVertex(C)){var T=m.view.getState(C);J=T.cell!=m.view.currentRoot?T.origin:new mxPoint(0,0);m.cellsMoved(b,J.x,J.y,null,null,!0)}}else null!=d&&(z=m.getCellGeometry(b[d]),D=q.x-Math.round(z.x),G=q.y-Math.round(z.y),q.x=Math.round(z.x),q.y=Math.round(z.y),m.model.setGeometry(b[f],q),m.cellsMoved(b,D,G,null,null,!0),k=b.slice(),u=1==k.length?k[0]:null,null!=g?m.model.setTerminal(b[g],a,!0):b.push(m.insertEdge(null,
null,"",a,b[f],m.createCurrentEdgeStyle())));null!=h&&mxEvent.isShiftDown(h)||m.fireEvent(new mxEventObject("cellsInserted","cells",b))}catch(K){this.editorUi.handleError(K)}finally{m.model.endUpdate()}m.editAfterInsert&&null!=h&&mxEvent.isMouseEvent(h)&&null!=u&&window.setTimeout(function(){m.startEditing(u)},0)}null!=g&&1<k.length&&k.splice(g,1);return k};
-Sidebar.prototype.getDropAndConnectGeometry=function(a,b,e,f){var h=this.editorUi.editor.graph,d=h.view,g=1<f.length,m=h.view.getState(a),p=h.getCellGeometry(a);f=h.getCellGeometry(b);null!=m&&null!=p&&null!=f&&(f=f.clone(),h.model.isEdge(a)?(p=m.absolutePoints,b=p[0],h=p[p.length-1],e==mxConstants.DIRECTION_NORTH?(f.x=b.x/d.scale-d.translate.x-f.width/2,f.y=b.y/d.scale-d.translate.y-f.height/2):(f.x=h.x/d.scale-d.translate.x-f.width/2,f.y=h.y/d.scale-d.translate.y-f.height/2)):(p.relative&&(p=p.clone(),
-p.x=(m.x-d.translate.x)/d.scale,p.y=(m.y-d.translate.y)/d.scale),d=h.defaultEdgeLength,h.model.isEdge(b)&&null!=f.getTerminalPoint(!0)&&null!=f.getTerminalPoint(!1)?(b=f.getTerminalPoint(!0),h=f.getTerminalPoint(!1),d=h.x-b.x,b=h.y-b.y,d=Math.sqrt(d*d+b*b),f.x=p.getCenterX(),f.y=p.getCenterY(),f.width=1,f.height=1,e==mxConstants.DIRECTION_NORTH?(f.height=d,f.y=p.y-d,f.setTerminalPoint(new mxPoint(f.x,f.y),!1)):e==mxConstants.DIRECTION_EAST?(f.width=d,f.x=p.x+p.width,f.setTerminalPoint(new mxPoint(f.x+
-f.width,f.y),!1)):e==mxConstants.DIRECTION_SOUTH?(f.height=d,f.y=p.y+p.height,f.setTerminalPoint(new mxPoint(f.x,f.y+f.height),!1)):e==mxConstants.DIRECTION_WEST&&(f.width=d,f.x=p.x-d,f.setTerminalPoint(new mxPoint(f.x,f.y),!1))):(!g&&45<f.width&&45<f.height&&45<p.width&&45<p.height&&(f.width*=p.height/f.height,f.height=p.height),f.x=p.x+p.width/2-f.width/2,f.y=p.y+p.height/2-f.height/2,e==mxConstants.DIRECTION_NORTH?f.y=f.y-p.height/2-f.height/2-d:e==mxConstants.DIRECTION_EAST?f.x=f.x+p.width/2+
-f.width/2+d:e==mxConstants.DIRECTION_SOUTH?f.y=f.y+p.height/2+f.height/2+d:e==mxConstants.DIRECTION_WEST&&(f.x=f.x-p.width/2-f.width/2-d),h.model.isEdge(b)&&null!=f.getTerminalPoint(!0)&&null!=b.getTerminal(!1)&&(p=h.getCellGeometry(b.getTerminal(!1)),null!=p&&(e==mxConstants.DIRECTION_NORTH?(f.x-=p.getCenterX(),f.y-=p.getCenterY()+p.height/2):e==mxConstants.DIRECTION_EAST?(f.x-=p.getCenterX()-p.width/2,f.y-=p.getCenterY()):e==mxConstants.DIRECTION_SOUTH?(f.x-=p.getCenterX(),f.y-=p.getCenterY()-p.height/
-2):e==mxConstants.DIRECTION_WEST&&(f.x-=p.getCenterX()+p.width/2,f.y-=p.getCenterY()))))));return f};Sidebar.prototype.isDropStyleEnabled=function(a,b){var e=!0;null!=b&&1==a.length&&(a=this.graph.getCellStyle(a[b]),null!=a&&(e=mxUtils.getValue(a,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(a,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE)!=mxConstants.NONE));return e};
+Sidebar.prototype.getDropAndConnectGeometry=function(a,b,e,f){var h=this.editorUi.editor.graph,d=h.view,g=1<f.length,m=h.view.getState(a),q=h.getCellGeometry(a);f=h.getCellGeometry(b);null!=m&&null!=q&&null!=f&&(f=f.clone(),h.model.isEdge(a)?(q=m.absolutePoints,b=q[0],h=q[q.length-1],e==mxConstants.DIRECTION_NORTH?(f.x=b.x/d.scale-d.translate.x-f.width/2,f.y=b.y/d.scale-d.translate.y-f.height/2):(f.x=h.x/d.scale-d.translate.x-f.width/2,f.y=h.y/d.scale-d.translate.y-f.height/2)):(q.relative&&(q=q.clone(),
+q.x=(m.x-d.translate.x)/d.scale,q.y=(m.y-d.translate.y)/d.scale),d=h.defaultEdgeLength,h.model.isEdge(b)&&null!=f.getTerminalPoint(!0)&&null!=f.getTerminalPoint(!1)?(b=f.getTerminalPoint(!0),h=f.getTerminalPoint(!1),d=h.x-b.x,b=h.y-b.y,d=Math.sqrt(d*d+b*b),f.x=q.getCenterX(),f.y=q.getCenterY(),f.width=1,f.height=1,e==mxConstants.DIRECTION_NORTH?(f.height=d,f.y=q.y-d,f.setTerminalPoint(new mxPoint(f.x,f.y),!1)):e==mxConstants.DIRECTION_EAST?(f.width=d,f.x=q.x+q.width,f.setTerminalPoint(new mxPoint(f.x+
+f.width,f.y),!1)):e==mxConstants.DIRECTION_SOUTH?(f.height=d,f.y=q.y+q.height,f.setTerminalPoint(new mxPoint(f.x,f.y+f.height),!1)):e==mxConstants.DIRECTION_WEST&&(f.width=d,f.x=q.x-d,f.setTerminalPoint(new mxPoint(f.x,f.y),!1))):(!g&&45<f.width&&45<f.height&&45<q.width&&45<q.height&&(f.width*=q.height/f.height,f.height=q.height),f.x=q.x+q.width/2-f.width/2,f.y=q.y+q.height/2-f.height/2,e==mxConstants.DIRECTION_NORTH?f.y=f.y-q.height/2-f.height/2-d:e==mxConstants.DIRECTION_EAST?f.x=f.x+q.width/2+
+f.width/2+d:e==mxConstants.DIRECTION_SOUTH?f.y=f.y+q.height/2+f.height/2+d:e==mxConstants.DIRECTION_WEST&&(f.x=f.x-q.width/2-f.width/2-d),h.model.isEdge(b)&&null!=f.getTerminalPoint(!0)&&null!=b.getTerminal(!1)&&(q=h.getCellGeometry(b.getTerminal(!1)),null!=q&&(e==mxConstants.DIRECTION_NORTH?(f.x-=q.getCenterX(),f.y-=q.getCenterY()+q.height/2):e==mxConstants.DIRECTION_EAST?(f.x-=q.getCenterX()-q.width/2,f.y-=q.getCenterY()):e==mxConstants.DIRECTION_SOUTH?(f.x-=q.getCenterX(),f.y-=q.getCenterY()-q.height/
+2):e==mxConstants.DIRECTION_WEST&&(f.x-=q.getCenterX()+q.width/2,f.y-=q.getCenterY()))))));return f};Sidebar.prototype.isDropStyleEnabled=function(a,b){var e=!0;null!=b&&1==a.length&&(a=this.graph.getCellStyle(a[b]),null!=a&&(e=mxUtils.getValue(a,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(a,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE)!=mxConstants.NONE));return e};
Sidebar.prototype.isDropStyleTargetIgnored=function(a){return this.graph.isSwimlane(a.cell)||this.graph.isTableCell(a.cell)||this.graph.isTableRow(a.cell)||this.graph.isTable(a.cell)};Sidebar.prototype.disablePointerEvents=function(a){mxUtils.visitNodes(a,mxUtils.bind(this,function(b){b.nodeType==mxConstants.NODETYPE_ELEMENT&&(b.style.pointerEvents="none",b.removeAttribute("pointer-events"))}))};
-Sidebar.prototype.createDragSource=function(a,b,e,f,h,d){function g(ma,Ba){var Ca=mxUtils.createImage(ma.src);Ca.style.width=ma.width+"px";Ca.style.height=ma.height+"px";null!=Ba&&Ca.setAttribute("title",Ba);mxUtils.setOpacity(Ca,ma==this.refreshTarget?30:20);Ca.style.position="absolute";Ca.style.cursor="crosshair";return Ca}function m(ma,Ba,Ca,Ja){null!=Ja.parentNode&&(mxUtils.contains(Ca,ma,Ba)?(mxUtils.setOpacity(Ja,100),O=Ja):mxUtils.setOpacity(Ja,Ja==V?30:20));return Ca}var p=this.editorUi,k=
-p.editor.graph,u=null,w=null,z=this;d=0;for(var C=this.livePreview,E=0;E<f.length&&C;E++)d+=k.model.getDescendants(f[E]).length,C=d<k.graphHandler.maxLivePreview;for(E=0;E<f.length&&(null==w&&k.model.isVertex(f[E])?w=E:null==u&&k.model.isEdge(f[E])&&null==k.model.getTerminal(f[E],!0)&&(u=E),null==w||null==u);E++);var D=this.isDropStyleEnabled(f,w),G=mxUtils.makeDraggable(a,k,mxUtils.bind(this,function(ma,Ba,Ca,Ja,Ia){null!=this.updateThread&&window.clearTimeout(this.updateThread);if(null!=f&&null!=
+Sidebar.prototype.createDragSource=function(a,b,e,f,h,d){function g(ma,Ba){var Ca=mxUtils.createImage(ma.src);Ca.style.width=ma.width+"px";Ca.style.height=ma.height+"px";null!=Ba&&Ca.setAttribute("title",Ba);mxUtils.setOpacity(Ca,ma==this.refreshTarget?30:20);Ca.style.position="absolute";Ca.style.cursor="crosshair";return Ca}function m(ma,Ba,Ca,Ja){null!=Ja.parentNode&&(mxUtils.contains(Ca,ma,Ba)?(mxUtils.setOpacity(Ja,100),O=Ja):mxUtils.setOpacity(Ja,Ja==V?30:20));return Ca}var q=this.editorUi,k=
+q.editor.graph,u=null,w=null,z=this;d=0;for(var C=this.livePreview,E=0;E<f.length&&C;E++)d+=k.model.getDescendants(f[E]).length,C=d<k.graphHandler.maxLivePreview;for(E=0;E<f.length&&(null==w&&k.model.isVertex(f[E])?w=E:null==u&&k.model.isEdge(f[E])&&null==k.model.getTerminal(f[E],!0)&&(u=E),null==w||null==u);E++);var D=this.isDropStyleEnabled(f,w),G=mxUtils.makeDraggable(a,k,mxUtils.bind(this,function(ma,Ba,Ca,Ja,Ia){null!=this.updateThread&&window.clearTimeout(this.updateThread);if(null!=f&&null!=
N&&O==V){var Da=ma.isCellSelected(N.cell)?ma.getSelectionCells():[N.cell];ma.updateShapes(ma.model.isEdge(N.cell)?f[0]:f[w],Da,!0);ma.setSelectionCells(Da)}else null!=f&&null!=O&&null!=L&&O!=V?(Da=ma.model.isEdge(L.cell)||null==u?w:u,ma.setSelectionCells(this.dropAndConnect(L.cell,f,sa,Da,Ba,w,u))):b.apply(this,arguments);null!=this.editorUi.hoverIcons&&this.editorUi.hoverIcons.update(ma.view.getState(ma.getSelectionCell()))}),e,0,0,k.autoscroll,!0,!0);C&&(G.createDragElement=mxUtils.bind(this,function(){return G.createPreviewElement(this.graph)}),
G.createPreviewElement=mxUtils.bind(this,function(ma){var Ba=document.createElement("a");Ba.className="geItem";Ba.style.overflow="visible";ma=ma.view.scale;Ba.style.width=ma*Math.max(1,h.width)+"px";Ba.style.height=ma*Math.max(1,h.height)+"px";mxUtils.setOpacity(Ba,50);var Ca=k.cloneCells(f);this.graph.pasteCellStyles(k.includeDescendants(Ca),k.currentVertexStyle,k.currentEdgeStyle,null,k.pasteEdgeStyle);z.createThumb(Ca,ma*Math.max(1,h.width),ma*Math.max(1,h.height),Ba,null,null,null,null,null,k.shapeBackgroundColor,
0,ma);return Ba}));var J=G.mouseDown;G.mouseDown=function(ma){mxEvent.isPopupTrigger(ma)||mxEvent.isMultiTouchEvent(ma)||k.isCellLocked(k.getDefaultParent())||(k.stopEditing(),J.apply(this,arguments))};var L=null,Q=null,N=null,U=!1,Y=g(this.triangleUp,mxResources.get("connect")),P=g(this.triangleRight,mxResources.get("connect")),T=g(this.triangleDown,mxResources.get("connect")),K=g(this.triangleLeft,mxResources.get("connect")),V=g(this.refreshTarget,mxResources.get("replace")),Z=null,ia=g(this.roundDrop),
-oa=g(this.roundDrop),sa=mxConstants.DIRECTION_NORTH,O=null,X=G.createPreviewElement;G.createPreviewElement=function(ma){var Ba=X.apply(this,arguments);mxClient.IS_SVG&&(Ba.style.pointerEvents="none");this.previewElementWidth=Ba.style.width;this.previewElementHeight=Ba.style.height;return Ba};var ba=G.dragEnter;G.dragEnter=function(ma,Ba){null!=p.hoverIcons&&p.hoverIcons.setDisplay("none");ba.apply(this,arguments)};var da=G.dragExit;G.dragExit=function(ma,Ba){null!=p.hoverIcons&&p.hoverIcons.setDisplay("");
-da.apply(this,arguments)};G.dragOver=function(ma,Ba){mxDragSource.prototype.dragOver.apply(this,arguments);null!=this.currentGuide&&null!=O&&this.currentGuide.hide();if(null!=this.previewElement){p.hideShapePicker();var Ca=ma.view;if(null!=N&&O==V)this.previewElement.style.display="none";else if(null!=L&&null!=O){null!=G.currentHighlight&&null!=G.currentHighlight.state&&G.currentHighlight.hide();var Ja=ma.model.isEdge(L.cell)||null!=w?w:u,Ia=z.getDropAndConnectGeometry(L.cell,f[Ja],sa,f),Da=ma.model.isEdge(L.cell)?
+oa=g(this.roundDrop),sa=mxConstants.DIRECTION_NORTH,O=null,X=G.createPreviewElement;G.createPreviewElement=function(ma){var Ba=X.apply(this,arguments);mxClient.IS_SVG&&(Ba.style.pointerEvents="none");this.previewElementWidth=Ba.style.width;this.previewElementHeight=Ba.style.height;return Ba};var ba=G.dragEnter;G.dragEnter=function(ma,Ba){null!=q.hoverIcons&&q.hoverIcons.setDisplay("none");ba.apply(this,arguments)};var da=G.dragExit;G.dragExit=function(ma,Ba){null!=q.hoverIcons&&q.hoverIcons.setDisplay("");
+da.apply(this,arguments)};G.dragOver=function(ma,Ba){mxDragSource.prototype.dragOver.apply(this,arguments);null!=this.currentGuide&&null!=O&&this.currentGuide.hide();if(null!=this.previewElement){q.hideShapePicker();var Ca=ma.view;if(null!=N&&O==V)this.previewElement.style.display="none";else if(null!=L&&null!=O){null!=G.currentHighlight&&null!=G.currentHighlight.state&&G.currentHighlight.hide();var Ja=ma.model.isEdge(L.cell)||null!=w?w:u,Ia=z.getDropAndConnectGeometry(L.cell,f[Ja],sa,f),Da=ma.model.isEdge(L.cell)?
null:ma.getCellGeometry(L.cell),Ga=ma.getCellGeometry(f[Ja]),ta=ma.model.getParent(L.cell),La=Ca.translate.x*Ca.scale,Xa=Ca.translate.y*Ca.scale;null!=Da&&!Da.relative&&ma.model.isVertex(ta)&&ta!=Ca.currentRoot&&(Xa=Ca.getState(ta),La=Xa.x,Xa=Xa.y);Da=Ga.x;Ga=Ga.y;ma.model.isEdge(f[Ja])&&(Ga=Da=0);this.previewElement.style.left=(Ia.x-Da)*Ca.scale+La+"px";this.previewElement.style.top=(Ia.y-Ga)*Ca.scale+Xa+"px";1==f.length&&(this.previewElement.style.width=Ia.width*Ca.scale+"px",this.previewElement.style.height=
Ia.height*Ca.scale+"px",null!=this.previewElement.firstChild&&(this.previewElement.firstChild.style.display="none",this.previewElement.className="geDragPreview",mxUtils.setOpacity(this.previewElement,100)));this.previewElement.style.display=""}else null!=G.currentHighlight&&null!=G.currentHighlight.state&&ma.model.isEdge(G.currentHighlight.state.cell)?(this.previewElement.style.left=Math.round(parseInt(this.previewElement.style.left)-h.width*Ca.scale/2)+"px",this.previewElement.style.top=Math.round(parseInt(this.previewElement.style.top)-
h.height*Ca.scale/2)+"px"):(this.previewElement.style.width=this.previewElementWidth,this.previewElement.style.height=this.previewElementHeight,this.previewElement.style.display="",null!=this.previewElement.firstChild&&(this.previewElement.firstChild.style.display="",mxUtils.setOpacity(this.previewElement,50),this.previewElement.className=""))}};var ca=(new Date).getTime(),H=0,ea=null,ra=this.editorUi.editor.graph.getCellStyle(f[0]);G.getDropTarget=mxUtils.bind(this,function(ma,Ba,Ca,Ja){var Ia=mxEvent.isAltDown(Ja)||
@@ -2498,13 +2498,13 @@ Da[ta].parentNode&&Da[ta].parentNode.removeChild(Da[ta]);U||null==Q||Q.setHandle
Ba=0;Ba<ma.length;Ba++)null!=ma[Ba].parentNode&&ma[Ba].parentNode.removeChild(ma[Ba]);null!=L&&null!=Q&&Q.reset();O=Z=N=L=Q=z.activeDragSource=null};return G};
Sidebar.prototype.itemClicked=function(a,b,e,f){f=this.editorUi.editor.graph;f.container.focus();if(mxEvent.isAltDown(e)&&1==f.getSelectionCount()&&f.model.isVertex(f.getSelectionCell())){b=null;for(var h=0;h<a.length&&null==b;h++)f.model.isVertex(a[h])&&(b=h);null!=b&&(f.setSelectionCells(this.dropAndConnect(f.getSelectionCell(),a,mxEvent.isMetaDown(e)||mxEvent.isControlDown(e)?mxEvent.isShiftDown(e)?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH:mxEvent.isShiftDown(e)?mxConstants.DIRECTION_EAST:
mxConstants.DIRECTION_SOUTH,b,e)),f.scrollCellToVisible(f.getSelectionCell()))}else mxEvent.isShiftDown(e)&&!f.isSelectionEmpty()?(e=f.getEditableCells(f.getSelectionCells()),f.updateShapes(a[0],e,!0),f.scrollCellToVisible(e)):(a=mxEvent.isAltDown(e)?f.getFreeInsertPoint():f.getCenterInsertPoint(f.getBoundingBoxFromGeometry(a,!0)),b.drop(f,e,null,a.x,a.y,!0))};
-Sidebar.prototype.addClickHandler=function(a,b,e,f){var h=b.getGraphForEvent,d=b.mouseDown,g=b.mouseMove,m=b.mouseUp,p=this.editorUi.editor.graph.tolerance,k=!1,u=null,w=this,z=null;b.getGraphForEvent=function(C){return k?h.apply(this,arguments):null};b.mouseDown=function(C){d.apply(this,arguments);u=new mxPoint(mxEvent.getClientX(C),mxEvent.getClientY(C));z=a.style.opacity;k=!1;""==z&&(z="1");null!=this.dragElement&&(this.dragElement.style.display="none",mxUtils.setOpacity(a,50))};b.mouseMove=function(C){(k=
-null!=u&&(Math.abs(u.x-mxEvent.getClientX(C))>p||Math.abs(u.y-mxEvent.getClientY(C))>p))&&null!=this.dragElement&&"none"==this.dragElement.style.display&&(this.dragElement.style.display="",mxUtils.setOpacity(a,100*z));g.apply(this,arguments)};b.mouseUp=function(C){try{mxEvent.isPopupTrigger(C)||null!=this.currentGraph||null==this.dragElement||"none"!=this.dragElement.style.display||(null!=f&&f(C),mxEvent.isConsumed(C)||w.itemClicked(e,b,C,a)),m.apply(b,arguments),mxUtils.setOpacity(a,100*z),u=null,
+Sidebar.prototype.addClickHandler=function(a,b,e,f){var h=b.getGraphForEvent,d=b.mouseDown,g=b.mouseMove,m=b.mouseUp,q=this.editorUi.editor.graph.tolerance,k=!1,u=null,w=this,z=null;b.getGraphForEvent=function(C){return k?h.apply(this,arguments):null};b.mouseDown=function(C){d.apply(this,arguments);u=new mxPoint(mxEvent.getClientX(C),mxEvent.getClientY(C));z=a.style.opacity;k=!1;""==z&&(z="1");null!=this.dragElement&&(this.dragElement.style.display="none",mxUtils.setOpacity(a,50))};b.mouseMove=function(C){(k=
+null!=u&&(Math.abs(u.x-mxEvent.getClientX(C))>q||Math.abs(u.y-mxEvent.getClientY(C))>q))&&null!=this.dragElement&&"none"==this.dragElement.style.display&&(this.dragElement.style.display="",mxUtils.setOpacity(a,100*z));g.apply(this,arguments)};b.mouseUp=function(C){try{mxEvent.isPopupTrigger(C)||null!=this.currentGraph||null==this.dragElement||"none"!=this.dragElement.style.display||(null!=f&&f(C),mxEvent.isConsumed(C)||w.itemClicked(e,b,C,a)),m.apply(b,arguments),mxUtils.setOpacity(a,100*z),u=null,
w.currentElt=a}catch(E){b.reset(),w.editorUi.handleError(E)}}};Sidebar.prototype.createVertexTemplateEntry=function(a,b,e,f,h,d,g,m){null!=m&&null!=h&&(m+=" "+h);m=null!=m&&0<m.length?m:null!=h?h.toLowerCase():"";return this.addEntry(m,mxUtils.bind(this,function(){return this.createVertexTemplate(a,b,e,f,h,d,g)}))};
-Sidebar.prototype.createVertexTemplate=function(a,b,e,f,h,d,g,m,p,k,u,w,z,C){a=[new mxCell(null!=f?f:"",new mxGeometry(0,0,b,e),a)];a[0].vertex=!0;return this.createVertexTemplateFromCells(a,b,e,h,d,g,m,p,k,u,w,z,C)};
-Sidebar.prototype.createVertexTemplateFromData=function(a,b,e,f,h,d,g,m){var p=null;try{var k=mxUtils.parseXml(Graph.decompress(a)),u=new mxCodec(k),w=new mxGraphModel;u.decode(k.documentElement,w);p=this.graph.cloneCells(w.root.getChildAt(0).children)}catch(z){f=mxResources.get("error")+": "+z.message}return this.createVertexTemplateFromCells(p,b,e,f,h,d,g,m)};Sidebar.prototype.createVertexTemplateFromCells=function(a,b,e,f,h,d,g,m,p,k,u,w,z,C){return this.createItem(a,f,h,d,b,e,g,m,p,k,u,w,z,C)};
-Sidebar.prototype.createEdgeTemplateEntry=function(a,b,e,f,h,d,g,m,p){g=null!=g&&0<g.length?g:h.toLowerCase();return this.addEntry(g,mxUtils.bind(this,function(){return this.createEdgeTemplate(a,b,e,f,h,d,m,p)}))};
-Sidebar.prototype.createEdgeTemplate=function(a,b,e,f,h,d,g,m){a=new mxCell(null!=f?f:"",new mxGeometry(0,0,b,e),a);a.geometry.setTerminalPoint(new mxPoint(0,e),!0);a.geometry.setTerminalPoint(new mxPoint(b,0),!1);a.geometry.relative=!0;a.edge=!0;return this.createEdgeTemplateFromCells([a],b,e,h,d,g,m)};Sidebar.prototype.createEdgeTemplateFromCells=function(a,b,e,f,h,d,g,m,p,k,u,w){return this.createItem(a,f,h,null!=m?m:!0,b,e,d,g,p,k,u,w)};
+Sidebar.prototype.createVertexTemplate=function(a,b,e,f,h,d,g,m,q,k,u,w,z,C){a=[new mxCell(null!=f?f:"",new mxGeometry(0,0,b,e),a)];a[0].vertex=!0;return this.createVertexTemplateFromCells(a,b,e,h,d,g,m,q,k,u,w,z,C)};
+Sidebar.prototype.createVertexTemplateFromData=function(a,b,e,f,h,d,g,m){var q=null;try{var k=mxUtils.parseXml(Graph.decompress(a)),u=new mxCodec(k),w=new mxGraphModel;u.decode(k.documentElement,w);q=this.graph.cloneCells(w.root.getChildAt(0).children)}catch(z){f=mxResources.get("error")+": "+z.message}return this.createVertexTemplateFromCells(q,b,e,f,h,d,g,m)};Sidebar.prototype.createVertexTemplateFromCells=function(a,b,e,f,h,d,g,m,q,k,u,w,z,C){return this.createItem(a,f,h,d,b,e,g,m,q,k,u,w,z,C)};
+Sidebar.prototype.createEdgeTemplateEntry=function(a,b,e,f,h,d,g,m,q){g=null!=g&&0<g.length?g:h.toLowerCase();return this.addEntry(g,mxUtils.bind(this,function(){return this.createEdgeTemplate(a,b,e,f,h,d,m,q)}))};
+Sidebar.prototype.createEdgeTemplate=function(a,b,e,f,h,d,g,m){a=new mxCell(null!=f?f:"",new mxGeometry(0,0,b,e),a);a.geometry.setTerminalPoint(new mxPoint(0,e),!0);a.geometry.setTerminalPoint(new mxPoint(b,0),!1);a.geometry.relative=!0;a.edge=!0;return this.createEdgeTemplateFromCells([a],b,e,h,d,g,m)};Sidebar.prototype.createEdgeTemplateFromCells=function(a,b,e,f,h,d,g,m,q,k,u,w){return this.createItem(a,f,h,null!=m?m:!0,b,e,d,g,q,k,u,w)};
Sidebar.prototype.addPaletteFunctions=function(a,b,e,f){this.addPalette(a,b,e,mxUtils.bind(this,function(h){for(var d=0;d<f.length;d++)h.appendChild(f[d](h))}))};
Sidebar.prototype.addPalette=function(a,b,e,f){b=this.createTitle(b);this.appendChild(b);var h=document.createElement("div");h.className="geSidebar";mxClient.IS_POINTER&&(h.style.touchAction="none");e&&this.expandLibraries?(f(h),f=null):h.style.display="none";this.addFoldingHandler(b,h,f);e=document.createElement("div");e.appendChild(h);this.appendChild(e);null!=a&&(this.palettes[a]=[b,e]);return h};
Sidebar.prototype.addFoldingHandler=function(a,b,e){var f=!1;a.style.backgroundImage="none"==b.style.display?"url('"+Editor.arrowRightImage+"')":"url('"+Editor.arrowDownImage+"')";a.style.backgroundRepeat="no-repeat";a.style.backgroundPosition="0px 50%";a.style.backgroundSize="20px";mxEvent.addListener(a,"click",mxUtils.bind(this,function(h){if(a.contains(mxEvent.getSource(h))){if("none"==b.style.display){if(f)this.setContentVisible(b,!0);else if(f=!0,null!=e){a.style.cursor="wait";for(var d=[],g=
@@ -2512,37 +2512,37 @@ Sidebar.prototype.addFoldingHandler=function(a,b,e){var f=!1;a.style.backgroundI
"')",this.setContentVisible(b,!1);mxEvent.consume(h)}}));mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(h){h.preventDefault()}))};
Sidebar.prototype.setContentVisible=function(a,b){mxUtils.setPrefixedStyle(a.style,"transition","all 0.2s linear");mxUtils.setPrefixedStyle(a.style,"transform-origin","top left");b?(mxUtils.setPrefixedStyle(a.style,"transform","scaleY(0)"),a.style.display="block",window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(a.style,"transform","scaleY(1)");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(a.style,"transform",null);mxUtils.setPrefixedStyle(a.style,"transition",
null)}),200)}),0)):(mxUtils.setPrefixedStyle(a.style,"transform","scaleY(0)"),window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(a.style,"transform",null);mxUtils.setPrefixedStyle(a.style,"transition",null);a.style.display="none"}),200))};Sidebar.prototype.removePalette=function(a){var b=this.palettes[a];if(null!=b){this.palettes[a]=null;for(a=0;a<b.length;a++)this.container.removeChild(b[a]);return!0}return!1};
-Sidebar.prototype.addImagePalette=function(a,b,e,f,h,d,g){for(var m=[],p=0;p<h.length;p++)mxUtils.bind(this,function(k,u,w){if(null==w&&(null==e||"img/lib/clip_art/"!=e.substring(0,17))){w=k.lastIndexOf("/");var z=k.lastIndexOf(".");w=k.substring(0<=w?w+1:0,0<=z?z:k.length).replace(/[-_]/g," ")}m.push(this.createVertexTemplateEntry("image;html=1;image="+e+k+f,this.defaultImageWidth,this.defaultImageHeight,"",u,null!=u,null,this.filterTags(w)))})(h[p],null!=d?d[p]:null,null!=g?g[h[p]]:null);this.addPaletteFunctions(a,
+Sidebar.prototype.addImagePalette=function(a,b,e,f,h,d,g){for(var m=[],q=0;q<h.length;q++)mxUtils.bind(this,function(k,u,w){if(null==w&&(null==e||"img/lib/clip_art/"!=e.substring(0,17))){w=k.lastIndexOf("/");var z=k.lastIndexOf(".");w=k.substring(0<=w?w+1:0,0<=z?z:k.length).replace(/[-_]/g," ")}m.push(this.createVertexTemplateEntry("image;html=1;image="+e+k+f,this.defaultImageWidth,this.defaultImageHeight,"",u,null!=u,null,this.filterTags(w)))})(h[q],null!=d?d[q]:null,null!=g?g[h[q]]:null);this.addPaletteFunctions(a,
b,!1,m)};Sidebar.prototype.getTagsForStencil=function(a,b,e){a=a.split(".");for(var f=1;f<a.length;f++)a[f]=a[f].replace(/_/g," ");a.push(b.replace(/_/g," "));null!=e&&a.push(e);return a.slice(1,a.length)};
-Sidebar.prototype.addStencilPalette=function(a,b,e,f,h,d,g,m,p,k){g=null!=g?g:1;if(this.addStencilsToIndex){var u=[];if(null!=p)for(k=0;k<p.length;k++)u.push(p[k]);mxStencilRegistry.loadStencilSet(e,mxUtils.bind(this,function(w,z,C,E,D){if(null==h||0>mxUtils.indexOf(h,z)){C=this.getTagsForStencil(w,z);var G=null!=m?m[z]:null;null!=G&&C.push(G);u.push(this.createVertexTemplateEntry("shape="+w+z.toLowerCase()+f,Math.round(E*g),Math.round(D*g),"",z.replace(/_/g," "),null,null,this.filterTags(C.join(" "))))}}),
-!0,!0);this.addPaletteFunctions(a,b,!1,u)}else this.addPalette(a,b,!1,mxUtils.bind(this,function(w){null==f&&(f="");null!=d&&d.call(this,w);if(null!=p)for(var z=0;z<p.length;z++)p[z](w);mxStencilRegistry.loadStencilSet(e,mxUtils.bind(this,function(C,E,D,G,J){(null==h||0>mxUtils.indexOf(h,E))&&w.appendChild(this.createVertexTemplate("shape="+C+E.toLowerCase()+f,Math.round(G*g),Math.round(J*g),"",E.replace(/_/g," "),!0))}),!0)}))};
+Sidebar.prototype.addStencilPalette=function(a,b,e,f,h,d,g,m,q,k){g=null!=g?g:1;if(this.addStencilsToIndex){var u=[];if(null!=q)for(k=0;k<q.length;k++)u.push(q[k]);mxStencilRegistry.loadStencilSet(e,mxUtils.bind(this,function(w,z,C,E,D){if(null==h||0>mxUtils.indexOf(h,z)){C=this.getTagsForStencil(w,z);var G=null!=m?m[z]:null;null!=G&&C.push(G);u.push(this.createVertexTemplateEntry("shape="+w+z.toLowerCase()+f,Math.round(E*g),Math.round(D*g),"",z.replace(/_/g," "),null,null,this.filterTags(C.join(" "))))}}),
+!0,!0);this.addPaletteFunctions(a,b,!1,u)}else this.addPalette(a,b,!1,mxUtils.bind(this,function(w){null==f&&(f="");null!=d&&d.call(this,w);if(null!=q)for(var z=0;z<q.length;z++)q[z](w);mxStencilRegistry.loadStencilSet(e,mxUtils.bind(this,function(C,E,D,G,J){(null==h||0>mxUtils.indexOf(h,E))&&w.appendChild(this.createVertexTemplate("shape="+C+E.toLowerCase()+f,Math.round(G*g),Math.round(J*g),"",E.replace(/_/g," "),!0))}),!0)}))};
Sidebar.prototype.destroy=function(){null!=this.graph&&(null!=this.graph.container&&null!=this.graph.container.parentNode&&this.graph.container.parentNode.removeChild(this.graph.container),this.graph.destroy(),this.graph=null);null!=this.escapeListener&&(this.editorUi.editor.graph.removeListener(this.escapeListener),this.escapeListener=null);null!=this.pointerUpHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointerup":"mouseup",this.pointerUpHandler),this.pointerUpHandler=null);null!=
this.pointerDownHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointerdown":"mousedown",this.pointerDownHandler),this.pointerDownHandler=null);null!=this.pointerMoveHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointermove":"mousemove",this.pointerMoveHandler),this.pointerMoveHandler=null);null!=this.pointerOutHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointerout":"mouseout",this.pointerOutHandler),this.pointerOutHandler=null)};(function(){var a=[["nbsp","160"],["shy","173"]],b=mxUtils.parseXml;mxUtils.parseXml=function(f){for(var h=0;h<a.length;h++)f=f.replace(new RegExp("&"+a[h][0]+";","g"),"&#"+a[h][1]+";");return b(f)};var e=mxUtils.getSizeForString;mxUtils.getSizeForString=function(f,h,d,g){return e(Graph.sanitizeHtml(f),h,d,g)}})();
Date.prototype.toISOString||function(){function a(b){b=String(b);1===b.length&&(b="0"+b);return b}Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1E3).toFixed(3)).slice(2,5)+"Z"}}();Date.now||(Date.now=function(){return(new Date).getTime()});
Uint8Array.from||(Uint8Array.from=function(){var a=Object.prototype.toString,b=function(f){return"function"===typeof f||"[object Function]"===a.call(f)},e=Math.pow(2,53)-1;return function(f){var h=Object(f);if(null==f)throw new TypeError("Array.from requires an array-like object - not null or undefined");var d=1<arguments.length?arguments[1]:void 0,g;if("undefined"!==typeof d){if(!b(d))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(g=
-arguments[2])}var m=Number(h.length);m=isNaN(m)?0:0!==m&&isFinite(m)?(0<m?1:-1)*Math.floor(Math.abs(m)):m;m=Math.min(Math.max(m,0),e);for(var p=b(this)?Object(new this(m)):Array(m),k=0,u;k<m;)u=h[k],p[k]=d?"undefined"===typeof g?d(u,k):d.call(g,u,k):u,k+=1;p.length=m;return p}}());mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";mxConstants.VML_SHADOWCOLOR="#d0d0d0";mxCodec.allowlist="mxStylesheet Array mxGraphModel mxCell mxGeometry mxRectangle mxPoint mxChildChange mxRootChange mxTerminalChange mxValueChange mxStyleChange mxGeometryChange mxCollapseChange mxVisibleChange mxCellAttributeChange".split(" ");
+arguments[2])}var m=Number(h.length);m=isNaN(m)?0:0!==m&&isFinite(m)?(0<m?1:-1)*Math.floor(Math.abs(m)):m;m=Math.min(Math.max(m,0),e);for(var q=b(this)?Object(new this(m)):Array(m),k=0,u;k<m;)u=h[k],q[k]=d?"undefined"===typeof g?d(u,k):d.call(g,u,k):u,k+=1;q.length=m;return q}}());mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";mxConstants.VML_SHADOWCOLOR="#d0d0d0";mxCodec.allowlist="mxStylesheet Array mxGraphModel mxCell mxGeometry mxRectangle mxPoint mxChildChange mxRootChange mxTerminalChange mxValueChange mxStyleChange mxGeometryChange mxCollapseChange mxVisibleChange mxCellAttributeChange".split(" ");
mxGraph.prototype.pageBreakColor="#c0c0c0";mxGraph.prototype.pageScale=1;(function(){try{if(null!=navigator&&null!=navigator.language){var a=navigator.language.toLowerCase();mxGraph.prototype.pageFormat="en-us"===a||"en-ca"===a||"es-mx"===a?mxConstants.PAGE_FORMAT_LETTER_PORTRAIT:mxConstants.PAGE_FORMAT_A4_PORTRAIT}}catch(b){}})();mxText.prototype.baseSpacingTop=5;mxText.prototype.baseSpacingBottom=1;mxGraphModel.prototype.ignoreRelativeEdgeParent=!1;
mxGraphView.prototype.gridImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhCgAKAJEAAAAAAP///8zMzP///yH5BAEAAAMALAAAAAAKAAoAAAIJ1I6py+0Po2wFADs=":IMAGE_PATH+"/grid.gif";mxGraphView.prototype.gridSteps=4;mxGraphView.prototype.minGridSize=4;mxGraphView.prototype.defaultGridColor="#d0d0d0";mxGraphView.prototype.defaultDarkGridColor="#424242";mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultGridColor;mxGraphView.prototype.unit=mxConstants.POINTS;
mxGraphView.prototype.setUnit=function(a){this.unit!=a&&(this.unit=a,this.graph.refresh(),this.fireEvent(new mxEventObject("unitChanged","unit",a)))};mxSvgCanvas2D.prototype.foAltText="[Not supported by viewer]";mxShape.prototype.getConstraints=function(a,b,e){return null};
mxImageShape.prototype.getImageDataUri=function(){var a=String(this.image);if("data:image/svg+xml;base64,"==a.substring(0,26)&&null!=this.style&&"1"==mxUtils.getValue(this.style,"clipSvg","0")){if(null==this.clippedSvg||this.clippedImage!=a)this.clippedSvg=Graph.clipSvgDataUri(a),this.clippedImage=a;a=this.clippedSvg}return a};
(function(){var a=mxStencil.prototype.parseColor;mxStencil.prototype.parseColor=function(b,e,f,h,d){return"default"==h&&null!=d?"fillcolor"==f.nodeName?d.shapeBackgroundColor:d.shapeForegroundColor:a.apply(this,arguments)}})();(function(){var a=mxResources.get;mxResources.get=function(b,e,f){null==f&&(f=b);return a.apply(this,[b,e,f])}})();
-(function(){var a=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(b,e,f,h,d,g,m,p){var k=a.apply(this,arguments);if(null!=e){var u=k.getElementsByTagName("img");0<u.length&&(u[0].className="geToolbarButton geAdaptiveAsset",u[0].style.margin="4px",u[0].style.width="18px")}return k}})();
+(function(){var a=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(b,e,f,h,d,g,m,q){var k=a.apply(this,arguments);if(null!=e){var u=k.getElementsByTagName("img");0<u.length&&(u[0].className="geToolbarButton geAdaptiveAsset",u[0].style.margin="4px",u[0].style.width="18px")}return k}})();
Graph=function(a,b,e,f,h,d){mxGraph.call(this,a,b,e,f);this.themes=h||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=d?d:!1;a=this.baseUrl;b=a.indexOf("//");this.domainPathUrl=this.domainUrl="";0<b&&(b=a.indexOf("/",b+2),0<b&&(this.domainUrl=a.substring(0,b)),b=a.lastIndexOf("/"),0<b&&(this.domainPathUrl=a.substring(0,b+1)));this.isHtmlLabel=function(O){O=this.getCurrentCellStyle(O);
-return null!=O?"1"==O.html||"wrap"==O[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var g=null,m=null,p=null,k=null,u=!1,w=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(O,X){if("mouseDown"==X.getProperty("eventName")&&this.isEnabled()){O=X.getProperty("event");var ba=O.getState();X=this.view.scale;if(!mxEvent.isAltDown(O.getEvent())&&null!=ba&&(w=this.isCellSelected(ba.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(O.getEvent()))){var da=this.selectionCellsHandler.getHandler(ba.cell);
+return null!=O?"1"==O.html||"wrap"==O[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var g=null,m=null,q=null,k=null,u=!1,w=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(O,X){if("mouseDown"==X.getProperty("eventName")&&this.isEnabled()){O=X.getProperty("event");var ba=O.getState();X=this.view.scale;if(!mxEvent.isAltDown(O.getEvent())&&null!=ba&&(w=this.isCellSelected(ba.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(O.getEvent()))){var da=this.selectionCellsHandler.getHandler(ba.cell);
if(null==da||null==da.getHandleForEvent(O)){var ca=new mxRectangle(O.getGraphX()-1,O.getGraphY()-1),H=mxEvent.isTouchEvent(O.getEvent())?mxShape.prototype.svgStrokeTolerance-1:(mxShape.prototype.svgStrokeTolerance+2)/2;da=H+2;ca.grow(H);if(this.isTableCell(ba.cell)&&this.isCellMovable(ba.cell)&&!this.isCellSelected(ba.cell)&&!(mxUtils.contains(ba,O.getGraphX()-da,O.getGraphY()-da)&&mxUtils.contains(ba,O.getGraphX()-da,O.getGraphY()+da)&&mxUtils.contains(ba,O.getGraphX()+da,O.getGraphY()+da)&&mxUtils.contains(ba,
O.getGraphX()+da,O.getGraphY()-da))){var ea=this.model.getParent(ba.cell);da=this.model.getParent(ea);if(!this.isCellSelected(da)){H*=X;var ra=2*H;if(this.model.getChildAt(da,0)!=ea&&mxUtils.intersects(ca,new mxRectangle(ba.x,ba.y-H,ba.width,ra))||this.model.getChildAt(ea,0)!=ba.cell&&mxUtils.intersects(ca,new mxRectangle(ba.x-H,ba.y,ra,ba.height))||mxUtils.intersects(ca,new mxRectangle(ba.x,ba.y+ba.height-H,ba.width,ra))||mxUtils.intersects(ca,new mxRectangle(ba.x+ba.width-H,ba.y,ra,ba.height)))ea=
this.selectionCellsHandler.isHandled(da),this.selectCellForEvent(da,O.getEvent()),da=this.selectionCellsHandler.getHandler(da),null!=da&&(H=da.getHandleForEvent(O),null!=H&&(da.start(O.getGraphX(),O.getGraphY(),H),da.blockDelayedSelection=!ea,O.consume()))}}for(;!O.isConsumed()&&null!=ba&&(this.isTableCell(ba.cell)||this.isTableRow(ba.cell)||this.isTable(ba.cell));)this.isSwimlane(ba.cell)&&this.isCellMovable(ba.cell)&&(da=this.getActualStartSize(ba.cell),(0<da.x||0<da.width)&&mxUtils.intersects(ca,
new mxRectangle(ba.x+(da.x-da.width-1)*X+(0==da.x?ba.width:0),ba.y,1,ba.height))||(0<da.y||0<da.height)&&mxUtils.intersects(ca,new mxRectangle(ba.x,ba.y+(da.y-da.height-1)*X+(0==da.y?ba.height:0),ba.width,1)))&&(this.selectCellForEvent(ba.cell,O.getEvent()),da=this.selectionCellsHandler.getHandler(ba.cell),null!=da&&null!=da.customHandles&&(H=mxEvent.CUSTOM_HANDLE-da.customHandles.length+1,da.start(O.getGraphX(),O.getGraphY(),H),O.consume())),ba=this.view.getState(this.model.getParent(ba.cell))}}}}));
-this.addListener(mxEvent.CONSUME_MOUSE_EVENT,mxUtils.bind(this,function(O,X){if("mouseDown"==X.getProperty("eventName")&&this.isEnabled()){O=X.getProperty("event");var ba=O.getState();mxEvent.isAltDown(O.getEvent())||mxEvent.isControlDown(X)||mxEvent.isShiftDown(X)||w||null==ba||!this.model.isEdge(ba.cell)||(g=new mxPoint(O.getGraphX(),O.getGraphY()),u=this.isCellSelected(ba.cell),p=ba,m=O,null!=ba.text&&null!=ba.text.boundingBox&&mxUtils.contains(ba.text.boundingBox,O.getGraphX(),O.getGraphY())?
-k=mxEvent.LABEL_HANDLE:(X=this.selectionCellsHandler.getHandler(ba.cell),null!=X&&null!=X.bends&&0<X.bends.length&&(k=X.getHandleForEvent(O))))}}));this.addMouseListener({mouseDown:function(O,X){},mouseMove:mxUtils.bind(this,function(O,X){O=this.selectionCellsHandler.handlers.map;for(var ba in O)if(null!=O[ba].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(X.getEvent())){var da=this.tolerance;if(null!=g&&null!=p&&null!=m){if(ba=p,null!=k||Math.abs(g.x-X.getGraphX())>
+this.addListener(mxEvent.CONSUME_MOUSE_EVENT,mxUtils.bind(this,function(O,X){if("mouseDown"==X.getProperty("eventName")&&this.isEnabled()){O=X.getProperty("event");var ba=O.getState();mxEvent.isAltDown(O.getEvent())||mxEvent.isControlDown(X)||mxEvent.isShiftDown(X)||w||null==ba||!this.model.isEdge(ba.cell)||(g=new mxPoint(O.getGraphX(),O.getGraphY()),u=this.isCellSelected(ba.cell),q=ba,m=O,null!=ba.text&&null!=ba.text.boundingBox&&mxUtils.contains(ba.text.boundingBox,O.getGraphX(),O.getGraphY())?
+k=mxEvent.LABEL_HANDLE:(X=this.selectionCellsHandler.getHandler(ba.cell),null!=X&&null!=X.bends&&0<X.bends.length&&(k=X.getHandleForEvent(O))))}}));this.addMouseListener({mouseDown:function(O,X){},mouseMove:mxUtils.bind(this,function(O,X){O=this.selectionCellsHandler.handlers.map;for(var ba in O)if(null!=O[ba].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(X.getEvent())){var da=this.tolerance;if(null!=g&&null!=q&&null!=m){if(ba=q,null!=k||Math.abs(g.x-X.getGraphX())>
da||Math.abs(g.y-X.getGraphY())>da){var ca=null;mxEvent.isShiftDown(X.getEvent())||(ca=this.selectionCellsHandler.getHandler(ba.cell));if(null!=ca&&null!=ca.bends&&0<ca.bends.length){ca.redrawHandles();var H=null!=k?k:ca.getHandleForEvent(m),ea=this.view.getEdgeStyle(ba),ra=ea==mxEdgeStyle.EntityRelation;da=ba.absolutePoints;u||(H=k);H!=mxEvent.LABEL_HANDLE&&null!=da&&(H=k,null==H&&(O=new mxRectangle(g.x,g.y),O.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(O,da[0].x,da[0].y)?
H=0:mxUtils.contains(O,da[da.length-1].x,da[da.length-1].y)?H=ca.bends.length-1:null!=da&&(null==ea&&null==H||ea==mxEdgeStyle.SegmentConnector||ea==mxEdgeStyle.OrthConnector)&&(null!=ea&&(2==da.length||3==da.length&&(0==Math.round(da[0].x-da[1].x)&&0==Math.round(da[1].x-da[2].x)||0==Math.round(da[0].y-da[1].y)&&0==Math.round(da[1].y-da[2].y)))?H=2:(H=mxUtils.findNearestSegment(ba,g.x,g.y),H=null==ea?mxEvent.VIRTUAL_HANDLE-H:H+1))),null==H&&(H=mxEvent.VIRTUAL_HANDLE));O=H==mxEvent.LABEL_HANDLE||0==
-H||H==ca.bends.length-1;if(!ra&&(null!=ba.visibleSourceState||null!=ba.visibleTargetState)||O)ca.start(X.getGraphX(),X.getGraphX(),H),X.consume(),this.graphHandler.reset()}null!=ca&&(this.selectionCellsHandler.isHandlerActive(ca)?this.isCellSelected(ba.cell)||(this.selectionCellsHandler.handlers.put(ba.cell,ca),this.selectCellForEvent(ba.cell,X.getEvent())):this.isCellSelected(ba.cell)||ca.destroy());u=!1;g=m=p=k=null}}else if(ba=X.getState(),null!=ba&&this.isCellEditable(ba.cell)){O=this.model.getParent(ba.cell);
+H||H==ca.bends.length-1;if(!ra&&(null!=ba.visibleSourceState||null!=ba.visibleTargetState)||O)ca.start(X.getGraphX(),X.getGraphX(),H),X.consume(),this.graphHandler.reset()}null!=ca&&(this.selectionCellsHandler.isHandlerActive(ca)?this.isCellSelected(ba.cell)||(this.selectionCellsHandler.handlers.put(ba.cell,ca),this.selectCellForEvent(ba.cell,X.getEvent())):this.isCellSelected(ba.cell)||ca.destroy());u=!1;g=m=q=k=null}}else if(ba=X.getState(),null!=ba&&this.isCellEditable(ba.cell)){O=this.model.getParent(ba.cell);
ca=null;if(this.model.isEdge(ba.cell)&&!this.isCellSelected(ba.cell)&&!mxEvent.isAltDown(X.getEvent())&&!mxEvent.isShiftDown(X.getEvent())&&!this.isAncestorSelected(ba.cell)&&(this.isSwimlane(O)||this.model.isLayer(O)||this.getCurrentRoot()==O)){if(O=new mxRectangle(X.getGraphX(),X.getGraphY()),O.grow(mxEdgeHandler.prototype.handleImage.width/2),da=ba.absolutePoints,null!=da)null!=ba.text&&null!=ba.text.boundingBox&&mxUtils.contains(ba.text.boundingBox,X.getGraphX(),X.getGraphY())?ca="move":mxUtils.contains(O,
da[0].x,da[0].y)||mxUtils.contains(O,da[da.length-1].x,da[da.length-1].y)?ca="pointer":(ea=this.view.getEdgeStyle(ba),ea==mxEdgeStyle.EntityRelation||null==ba.visibleSourceState&&null==ba.visibleTargetState||(ca="crosshair",ea!=mxEdgeStyle.SegmentConnector&&ea!=mxEdgeStyle.OrthConnector))||(X=mxUtils.findNearestSegment(ba,X.getGraphX(),X.getGraphY()),X<da.length-1&&0<=X&&(ca=0==Math.round(da[X].x-da[X+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(X.getEvent())){da=mxShape.prototype.svgStrokeTolerance/
2;O=new mxRectangle(X.getGraphX(),X.getGraphY());O.grow(da);if(this.isTableCell(ba.cell)&&this.isCellMovable(ba.cell)&&(X=this.model.getParent(ba.cell),da=this.model.getParent(X),!this.isCellSelected(da)))if(mxUtils.intersects(O,new mxRectangle(ba.x,ba.y-2,ba.width,4))&&this.model.getChildAt(da,0)!=X||mxUtils.intersects(O,new mxRectangle(ba.x,ba.y+ba.height-2,ba.width,4)))ca="row-resize";else if(mxUtils.intersects(O,new mxRectangle(ba.x-2,ba.y,4,ba.height))&&this.model.getChildAt(X,0)!=ba.cell||mxUtils.intersects(O,
new mxRectangle(ba.x+ba.width-2,ba.y,4,ba.height)))ca="col-resize";for(X=ba;null==ca&&null!=X&&(this.isTableCell(X.cell)||this.isTableRow(X.cell)||this.isTable(X.cell));)this.isSwimlane(X.cell)&&this.isCellMovable(X.cell)&&(da=this.getActualStartSize(X.cell),H=this.view.scale,(0<da.x||0<da.width)&&mxUtils.intersects(O,new mxRectangle(X.x+(da.x-da.width-1)*H+(0==da.x?X.width*H:0),X.y,1,X.height))?ca="col-resize":(0<da.y||0<da.height)&&mxUtils.intersects(O,new mxRectangle(X.x,X.y+(da.y-da.height-1)*
-H+(0==da.y?X.height:0),X.width,1))&&(ca="row-resize")),X=this.view.getState(this.model.getParent(X.cell))}null!=ca&&ba.setCursor(ca)}}}),mouseUp:mxUtils.bind(this,function(O,X){k=g=m=p=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var z=document.createElement("div");this.cellRenderer.getLabelValue=function(O){var X=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);O.view.graph.isHtmlLabel(O.cell)&&("0"==mxUtils.getValue(O.style,"html","0")?X=mxUtils.htmlEntities(X,!1):(O.lastLabelValue!=
+H+(0==da.y?X.height:0),X.width,1))&&(ca="row-resize")),X=this.view.getState(this.model.getParent(X.cell))}null!=ca&&ba.setCursor(ca)}}}),mouseUp:mxUtils.bind(this,function(O,X){k=g=m=q=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var z=document.createElement("div");this.cellRenderer.getLabelValue=function(O){var X=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);O.view.graph.isHtmlLabel(O.cell)&&("0"==mxUtils.getValue(O.style,"html","0")?X=mxUtils.htmlEntities(X,!1):(O.lastLabelValue!=
X&&(O.lastLabelValue=X,O.lastSanitizedLabelValue=Graph.sanitizeHtml(X),z.innerHTML=O.lastSanitizedLabelValue,Graph.addLightDarkColors(z,null,"simple"==O.view.graph.getAdaptiveColors())&&(O.lastSanitizedLabelValue=z.innerHTML)),X=O.lastSanitizedLabelValue));return X};if("undefined"!==typeof mxVertexHandler){this.setConnectable(!0);this.setDropEnabled(!0);this.setPanning(!0);this.setTooltips(!0);this.setAllowLoops(!0);this.allowAutoPanning=!0;this.constrainChildren=this.resetEdgesOnConnect=!1;this.constrainRelativeChildren=
!0;this.graphHandler.scrollOnMove=!1;this.graphHandler.scaleGrid=!0;this.connectionHandler.setCreateTarget(!1);this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(O,X){return!1};this.alternateEdgeStyle="vertical";null==f&&this.loadStylesheet();var C=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var O=C.apply(this,arguments);if(this.graph.pageVisible){var X=[],ba=this.graph.pageFormat,da=this.graph.pageScale,ca=ba.width*da;ba=ba.height*
da;da=this.graph.view.translate;for(var H=this.graph.view.scale,ea=this.graph.getPageLayout(),ra=0;ra<ea.width;ra++)X.push(new mxRectangle(((ea.x+ra)*ca+da.x)*H,(ea.y*ba+da.y)*H,ca*H,ba*H));for(ra=1;ra<ea.height;ra++)X.push(new mxRectangle((ea.x*ca+da.x)*H,((ea.y+ra)*ba+da.y)*H,ca*H,ba*H));O=X.concat(O)}return O};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(O,X){return null==O.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=
@@ -2571,13 +2571,13 @@ Graph.createSvgImage=function(a,b,e,f,h){e=unescape(encodeURIComponent(Graph.svg
Graph.getSvgFromDataUri=function(a){return null!=a&&"data:image/svg"==a.substring(0,14)?Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+decodeURIComponent(escape(atob(a.substring(a.indexOf(",")+1)))):null};
Graph.createSvgNode=function(a,b,e,f,h){var d=mxUtils.createXmlDocument(),g=null!=d.createElementNS?d.createElementNS(mxConstants.NS_SVG,"svg"):d.createElement("svg");null!=h&&g.setAttribute("style","background: "+h.light+"; background-color: "+h.cssText+";");null==d.createElementNS?(g.setAttribute("xmlns",mxConstants.NS_SVG),g.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):g.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);g.setAttribute("version","1.1");g.setAttribute("width",
e+"px");g.setAttribute("height",f+"px");g.setAttribute("viewBox",a+" "+b+" "+e+" "+f);d.appendChild(g);return g};
-Graph.htmlToPng=function(a,b,e,f,h,d){h=null!=h?h:"";d=null!=d?d:Editor.htmlRasterScale;var g=document.createElement("canvas");g.width=b*d;g.height=e*d;var m=document.createElement("img");m.onload=mxUtils.bind(this,function(){try{var k=g.getContext("2d");k.scale(d,d);k.drawImage(m,0,0);f(g.toDataURL())}catch(u){f(null)}});var p=mxUtils.createXmlDocument();p=null!=p.createElementNS?p.createElementNS(mxConstants.NS_SVG,"svg"):p.createElement("svg");a=(new mxSvgCanvas2D(p)).convertHtml(a);m.onerror=
+Graph.htmlToPng=function(a,b,e,f,h,d){h=null!=h?h:"";d=null!=d?d:Editor.htmlRasterScale;var g=document.createElement("canvas");g.width=b*d;g.height=e*d;var m=document.createElement("img");m.onload=mxUtils.bind(this,function(){try{var k=g.getContext("2d");k.scale(d,d);k.drawImage(m,0,0);f(g.toDataURL())}catch(u){f(null)}});var q=mxUtils.createXmlDocument();q=null!=q.createElementNS?q.createElementNS(mxConstants.NS_SVG,"svg"):q.createElement("svg");a=(new mxSvgCanvas2D(q)).convertHtml(a);m.onerror=
function(k){f(null)};m.src="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="'+b+'" height="'+e+'">'+(""!=h?'<defs xmlns="http://www.w3.org/2000/svg"><style type="text/css">'+h+"</style></defs>":"")+'<foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml">'+a+"</div></foreignObject></svg>")};
-Graph.addLightDarkColors=function(a,b,e,f){function h(z,C,E){return null!=f?f(z,C,E):mxUtils.isValidColor(E)?(null==g&&null!=b&&(g={}),null!=g&&(g[C]=z.style.getPropertyValue(C)),E=mxUtils.getLightDarkColor(E,null,null,e),z.style.setProperty(C,E.cssText),!0):!1}for(var d=a.getElementsByTagName("*"),g=null,m=!1,p=0;p<d.length;p++)if(d[p]!=a&&null!=d[p].style){g=null;for(var k=0;k<d[p].style.length;k++){var u=d[p].style.item(k),w=d[p].style.getPropertyValue(u);m=h(d[p],u,w)||m}"FONT"==d[p].nodeName&&
-""==d[p].style.getPropertyValue("color")&&(w=d[p].getAttribute("color"),m=h(d[p],"color",w)||m);null!=b&&null!=g&&d[p].setAttribute(b,JSON.stringify(g))}return m};Graph.removeLightDarkColors=function(a,b){a=a.getElementsByTagName("*");for(var e=!1,f=0;f<a.length;f++)try{var h=a[f].getAttribute(b);if(null!=h){a[f].removeAttribute(b);var d=JSON.parse(h),g;for(g in d){var m=d[g];""==m?(a[f].style[g]=null,""==a[f].getAttribute("style")&&a[f].removeAttribute("style")):a[f].style[g]=m;e=!0}}}catch(p){}return e};
+Graph.addLightDarkColors=function(a,b,e,f){function h(z,C,E){return null!=f?f(z,C,E):mxUtils.isValidColor(E)?(null==g&&null!=b&&(g={}),null!=g&&(g[C]=z.style.getPropertyValue(C)),E=mxUtils.getLightDarkColor(E,null,null,e),z.style.setProperty(C,E.cssText),!0):!1}for(var d=a.getElementsByTagName("*"),g=null,m=!1,q=0;q<d.length;q++)if(d[q]!=a&&null!=d[q].style){g=null;for(var k=0;k<d[q].style.length;k++){var u=d[q].style.item(k),w=d[q].style.getPropertyValue(u);m=h(d[q],u,w)||m}"FONT"==d[q].nodeName&&
+""==d[q].style.getPropertyValue("color")&&(w=d[q].getAttribute("color"),m=h(d[q],"color",w)||m);null!=b&&null!=g&&d[q].setAttribute(b,JSON.stringify(g))}return m};Graph.removeLightDarkColors=function(a,b){a=a.getElementsByTagName("*");for(var e=!1,f=0;f<a.length;f++)try{var h=a[f].getAttribute(b);if(null!=h){a[f].removeAttribute(b);var d=JSON.parse(h),g;for(g in d){var m=d[g];""==m?(a[f].style[g]=null,""==a[f].getAttribute("style")&&a[f].removeAttribute("style")):a[f].style[g]=m;e=!0}}}catch(q){}return e};
Graph.getGivenColor=function(a,b){var e=null;if(a.nodeType==mxConstants.NODETYPE_ELEMENT){try{var f=a.getAttribute(Graph.backupStyleAttribute);if(null!=f){var h=JSON.parse(f);null!=h&&null!=h[b]&&("color"==b&&"FONT"==a.nodeName&&""==h[b]&&null!=a.getAttribute("color")?e=a.getAttribute("color"):""!=h[b]&&(e=h[b]))}}catch(d){}null==e&&""!=a.style[b]&&(e=a.style[b])}return e};
-Graph.setTextColor=function(a,b,e){for(var f=e?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,h=e?"color":"background-color",d=a.getElementsByTagName("*"),g=[],m=0;m<d.length;m++)g.push({node:d[m],value:d[m].style[h]});document.execCommand(e?"forecolor":"backcolor",!1,f);a=a.getElementsByTagName("*");for(m=0;m<a.length;m++){if(m<g.length&&g[m].node==a[m]&&g[m].value!=a[m].style[h]&&""==a[m].style[h])try{if(d=a[m].getAttribute(Graph.backupStyleAttribute),null!=d){var p=JSON.parse(d);p[h]=
-"";a[m].setAttribute(Graph.backupStyleAttribute,JSON.stringify(p))}}catch(k){}if(e&&a[m].getAttribute("color")==f||a[m].style[h]==f){e&&a[m].getAttribute("color")==f&&a[m].removeAttribute("color");a[m].style[h]=b!=mxConstants.NONE?mxUtils.getLightDarkColor(b).cssText:null;try{d=a[m].getAttribute(Graph.backupStyleAttribute),p=null!=d?JSON.parse(d):{},p[h]=b!=mxConstants.NONE?b:"",a[m].setAttribute(Graph.backupStyleAttribute,JSON.stringify(p))}catch(k){}if(e&&mxClient.IS_FF){b=a[m];e=b.firstChild;if(null!=
+Graph.setTextColor=function(a,b,e){for(var f=e?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,h=e?"color":"background-color",d=a.getElementsByTagName("*"),g=[],m=0;m<d.length;m++)g.push({node:d[m],value:d[m].style[h]});document.execCommand(e?"forecolor":"backcolor",!1,f);a=a.getElementsByTagName("*");for(m=0;m<a.length;m++){if(m<g.length&&g[m].node==a[m]&&g[m].value!=a[m].style[h]&&""==a[m].style[h])try{if(d=a[m].getAttribute(Graph.backupStyleAttribute),null!=d){var q=JSON.parse(d);q[h]=
+"";a[m].setAttribute(Graph.backupStyleAttribute,JSON.stringify(q))}}catch(k){}if(e&&a[m].getAttribute("color")==f||a[m].style[h]==f){e&&a[m].getAttribute("color")==f&&a[m].removeAttribute("color");a[m].style[h]=b!=mxConstants.NONE?mxUtils.getLightDarkColor(b).cssText:null;try{d=a[m].getAttribute(Graph.backupStyleAttribute),q=null!=d?JSON.parse(d):{},q[h]=b!=mxConstants.NONE?b:"",a[m].setAttribute(Graph.backupStyleAttribute,JSON.stringify(q))}catch(k){}if(e&&mxClient.IS_FF){b=a[m];e=b.firstChild;if(null!=
e&&"A"==e.nodeName&&null==e.nextSibling&&null!=e.firstChild){b.parentNode.insertBefore(e,b);for(f=e.firstChild;null!=f;)h=f.nextSibling,b.appendChild(f),f=h;e.appendChild(b)}break}}}};Graph.zapGremlins=function(a){return mxUtils.zapGremlins(a)};Graph.stringToBytes=function(a){for(var b=Array(a.length),e=0;e<a.length;e++)b[e]=a.charCodeAt(e);return b};Graph.bytesToString=function(a){for(var b=Array(a.length),e=0;e<a.length;e++)b[e]=String.fromCharCode(a[e]);return b.join("")};
Graph.base64EncodeUnicode=function(a){return btoa(encodeURIComponent(a).replace(/%([0-9A-F]{2})/g,function(b,e){return String.fromCharCode(parseInt(e,16))}))};Graph.base64DecodeUnicode=function(a){return decodeURIComponent(Array.prototype.map.call(atob(a),function(b){return"%"+("00"+b.charCodeAt(0).toString(16)).slice(-2)}).join(""))};Graph.compressNode=function(a,b){a=mxUtils.getXml(a);return Graph.compress(b?a:Graph.zapGremlins(a))};
Graph.arrayBufferToString=function(a){var b="";a=new Uint8Array(a);for(var e=a.byteLength,f=0;f<e;f++)b+=String.fromCharCode(a[f]);return b};Graph.stringToArrayBuffer=function(a){return Uint8Array.from(a,function(b){return b.charCodeAt(0)})};
@@ -2590,9 +2590,9 @@ Graph.exploreFromCell=function(a,b,e){pageSize=null!=e&&null!=e.pageSize?e.pageS
" ("+Math.ceil((w.startIndex||0)/pageSize)+"/"+Math.ceil(G.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");Y.referenceCell=E;Y.startIndex=Math.max(0,(w.startIndex||0)-pageSize);N.splice(0,0,Y)}if(G.length>(w.startIndex||0)+pageSize){var P=u.createVertex(null,null,mxResources.get("nextPage")+" ("+(Math.ceil((w.startIndex||0)/pageSize)+2)+"/"+Math.ceil(G.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");P.referenceCell=
E;P.startIndex=(w.startIndex||0)+pageSize;N.splice(0,0,P)}for(var T in u.getModel().cells){var K=u.getModel().getCell(T);K!=u.rootCell&&!u.getModel().isAncestor(u.rootCell,K)&&u.getModel().isVertex(K)&&u.removeCells([K])}u.addCells(N);var V=u.getModel().getGeometry(u.rootCell);null!=V&&(V=V.clone(),V.x=z-V.width/2,V.y=C-V.height/3,u.getModel().setGeometry(u.rootCell,V));w=[];for(T in u.getModel().cells)K=u.getModel().getCell(T),K!=u.rootCell&&u.getModel().isVertex(K)&&u.getModel().getParent(K)==u.getDefaultParent()&&
(w.push(K),V=u.getModel().getGeometry(K),null!=V&&(V.x=z-V.width/2,V.y=C-V.height/2));var Z=w.length,ia=2*Math.PI/Z,oa=Math.max(minSize,Math.min(u.container.scrollWidth/2.5-80,u.container.scrollHeight/2.5-80));for(z=0;z<Z;z++)V=u.getModel().getGeometry(w[z]),null!=V&&(V=V.clone(),V.x+=oa*Math.sin(z*ia),V.y+=oa*Math.cos(z*ia),u.getModel().setGeometry(w[z],V))}finally{u.getModel().endUpdate()}}}var g=document.createElement("div");g.style.position="absolute";g.style.display="block";g.style.background=
-Editor.isDarkMode()?Editor.darkColor:"#ffffff";g.style.width="100%";g.style.height="100%";g.style.left="0px";g.style.top="0px";g.style.zIndex=2;var m=document.createElement("img");m.setAttribute("src",Editor.closeBlackImage);m.style.position="absolute";m.style.cursor="pointer";m.style.right="10px";m.style.top="10px";g.appendChild(m);var p=document.createElement("div");p.style.position="absolute";p.style.cursor="pointer";p.style.right="38px";p.style.top="14px";p.style.textAlign="right";p.style.verticalAlign=
-"top";mxUtils.write(p,mxResources.get("close"));g.appendChild(p);document.body.appendChild(g);var k=function(u){27==u.keyCode&&m.click()};mxEvent.addListener(document,"keydown",k);(function(u){if(mxClient.isBrowserSupported()){var w=new Graph(u);w.keepEdgesInBackground=!0;w.isCellResizable=function(){return!1};w.isCellRotatable=function(){return!1};w.getCursorForCell=function(J){return this.model.isVertex(J)?"pointer":null};w.getFoldingImage=function(){return null};var z=function(){mxEvent.removeListener(document,
-"keydown",k);u.parentNode.removeChild(u);f.scrollCellToVisible(h)};mxEvent.addListener(m,"click",z);mxEvent.addListener(p,"click",z);w.setEnabled(!1);var C=w.click;w.click=function(J){var L=J.getCell(),Q=null!=L?null!=L.referenceCell?L.referenceCell:L:null;null!=L&&w.rootCell!=L&&0<w.getEdges(Q).length?d(w,L):C.apply(this,arguments)};z=w.container.scrollWidth/2;var E=w.container.scrollHeight/3;w.model.beginUpdate();var D=w.importCells([h])[0];D.sourceCellId=h.id;D.geometry.x=z-D.geometry.width/2;
+Editor.isDarkMode()?Editor.darkColor:"#ffffff";g.style.width="100%";g.style.height="100%";g.style.left="0px";g.style.top="0px";g.style.zIndex=2;var m=document.createElement("img");m.setAttribute("src",Editor.closeBlackImage);m.style.position="absolute";m.style.cursor="pointer";m.style.right="10px";m.style.top="10px";g.appendChild(m);var q=document.createElement("div");q.style.position="absolute";q.style.cursor="pointer";q.style.right="38px";q.style.top="14px";q.style.textAlign="right";q.style.verticalAlign=
+"top";mxUtils.write(q,mxResources.get("close"));g.appendChild(q);document.body.appendChild(g);var k=function(u){27==u.keyCode&&m.click()};mxEvent.addListener(document,"keydown",k);(function(u){if(mxClient.isBrowserSupported()){var w=new Graph(u);w.keepEdgesInBackground=!0;w.isCellResizable=function(){return!1};w.isCellRotatable=function(){return!1};w.getCursorForCell=function(J){return this.model.isVertex(J)?"pointer":null};w.getFoldingImage=function(){return null};var z=function(){mxEvent.removeListener(document,
+"keydown",k);u.parentNode.removeChild(u);f.scrollCellToVisible(h)};mxEvent.addListener(m,"click",z);mxEvent.addListener(q,"click",z);w.setEnabled(!1);var C=w.click;w.click=function(J){var L=J.getCell(),Q=null!=L?null!=L.referenceCell?L.referenceCell:L:null;null!=L&&w.rootCell!=L&&0<w.getEdges(Q).length?d(w,L):C.apply(this,arguments)};z=w.container.scrollWidth/2;var E=w.container.scrollHeight/3;w.model.beginUpdate();var D=w.importCells([h])[0];D.sourceCellId=h.id;D.geometry.x=z-D.geometry.width/2;
D.geometry.y=E-D.geometry.height/2;w.model.endUpdate();var G=!1;w.getModel().addListener(mxEvent.CHANGE,function(J,L){G||(J=L.getProperty("edit").changes,mxText.prototype.enableBoundingBox=!1,w.labelsVisible=!1,G=!0,mxEffects.animateChanges(w,J,function(){var Q=new mxParallelEdgeLayout(w);Q.spacing=60;var N=Q.layout;Q.layout=function(U){Q.spacing=Math.min(60,Math.max(30,60-5*U.length));N.apply(this,arguments)};Q.execute(w.getDefaultParent());mxText.prototype.enableBoundingBox=!0;w.labelsVisible=!0;
w.tooltipHandler.hide();w.refresh();G=!1}))});d(w,D)}else mxUtils.error("Browser is not supported!",200,!1)})(g)})(a,b)};Graph.removeKeys=function(a,b){for(var e in a)b(e)&&delete a[e]};Graph.setTransitionForNodes=function(a,b){for(var e=0;e<a.length;e++)mxUtils.setPrefixedStyle(a[e].style,"transition",b)};Graph.setOpacityForNodes=function(a,b){for(var e=0;e<a.length;e++)a[e].style.opacity=b};
Graph.removePasteFormatting=function(a,b){for(;null!=a;){null!=a.firstChild&&Graph.removePasteFormatting(a.firstChild,!0);var e=a.nextSibling;if(a.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=a.style){"#000000"==a.style.color&&(a.style.color="");if("SPAN"==a.nodeName&&"Apple-tab-span"==a.className){var f=Graph.createTabNode(4);a.parentNode.replaceChild(f,a);a=f}if("P"==a.nodeName&&"p1"==a.className){for(;null!=a.firstChild;)a.parentNode.insertBefore(a.firstChild,a);null!=e&&"P"==e.nodeName&&"p1"==
@@ -2600,7 +2600,7 @@ e.className&&a.parentNode.insertBefore(a.ownerDocument.createElement("br"),a);a.
Graph.sanitizeLink=function(a){if(null==a)return null;var b=document.createElement("a");b.setAttribute("href",a);Graph.sanitizeNode(b);return b.getAttribute("href")};Graph.sanitizeNode=function(a){return Graph.domPurify(a,!0)};DOMPurify.addHook("afterSanitizeAttributes",function(a){"use"==a.nodeName&&(null!=a.getAttribute("xlink:href")&&!a.getAttribute("xlink:href").startsWith("#")||null!=a.getAttribute("href")&&!a.getAttribute("href").startsWith("#"))&&a.remove()});
Graph.domPurify=function(a,b){window.DOM_PURIFY_CONFIG.IN_PLACE=b;return DOMPurify.sanitize(a,window.DOM_PURIFY_CONFIG)};
Graph.clipSvgDataUri=function(a){if(null!=a&&"data:image/svg+xml;base64,"==a.substring(0,26))try{var b=document.createElement("div");b.style.position="absolute";b.style.visibility="hidden";var e=decodeURIComponent(escape(atob(a.substring(26)))),f=e.indexOf("<svg");if(0<=f){b.innerHTML=Graph.sanitizeHtml(e.substring(f));var h=b.getElementsByTagName("svg");if(0<h.length){document.body.appendChild(b);try{f=e=1;var d=h[0].getAttribute("width"),g=h[0].getAttribute("height");d=null!=d&&"%"!=d.charAt(d.length-
-1)?parseFloat(d):NaN;g=null!=g&&"%"!=g.charAt(g.length-1)?parseFloat(g):NaN;var m=h[0].getAttribute("viewBox");if(null!=m&&!isNaN(d)&&!isNaN(g)){var p=m.split(" ");4<=m.length&&(e=parseFloat(p[2])/d,f=parseFloat(p[3])/g,new mxRectangle(parseFloat(p[0]),parseFloat(p[1]),parseFloat(p[2]),parseFloat(p[3])))}var k=h[0].getBBox();if(0<k.width&&0<k.height){d=0;var u=h[0].querySelectorAll("[stroke-width]");for(g=0;g<u.length;g++)d=Math.max(d,parseFloat(u[g].getAttribute("stroke-width")));k=new mxRectangle(k.x,
+1)?parseFloat(d):NaN;g=null!=g&&"%"!=g.charAt(g.length-1)?parseFloat(g):NaN;var m=h[0].getAttribute("viewBox");if(null!=m&&!isNaN(d)&&!isNaN(g)){var q=m.split(" ");4<=m.length&&(e=parseFloat(q[2])/d,f=parseFloat(q[3])/g,new mxRectangle(parseFloat(q[0]),parseFloat(q[1]),parseFloat(q[2]),parseFloat(q[3])))}var k=h[0].getBBox();if(0<k.width&&0<k.height){d=0;var u=h[0].querySelectorAll("[stroke-width]");for(g=0;g<u.length;g++)d=Math.max(d,parseFloat(u[g].getAttribute("stroke-width")));k=new mxRectangle(k.x,
k.y,k.width,k.height);k.grow(d/2);b.getElementsByTagName("svg")[0].setAttribute("viewBox",k.x+" "+k.y+" "+k.width+" "+k.height);b.getElementsByTagName("svg")[0].setAttribute("width",k.width/e);b.getElementsByTagName("svg")[0].setAttribute("height",k.height/f)}}catch(w){}finally{document.body.removeChild(b)}a=Editor.createSvgDataUri(mxUtils.getXml(h[0]))}}}catch(w){}return a};
Graph.createRemoveIcon=function(a,b){var e=document.createElement("img");e.setAttribute("src",Dialog.prototype.clearImage);e.setAttribute("title",a);e.setAttribute("width","13");e.setAttribute("height","10");e.style.marginLeft="4px";e.style.marginBottom="-1px";e.style.cursor="pointer";mxEvent.addListener(e,"click",b);return e};Graph.isPageLink=function(a){return null!=a&&"data:page/id,"==a.substring(0,13)};
Graph.rewritePageLinks=function(a,b){function e(h,d){var g=h.getAttribute(d);if(null!=g){Graph.isPageLink(g)&&(g="#"+g.substring(g.indexOf(":")+1));var m=d;b&&"xlink:href"==d&&(h.removeAttribute(d),m="href");h.setAttribute(m,g)}}a=a.getElementsByTagName("a");if(null!=a)for(var f=0;f<a.length;f++)e(a[f],"href"),e(a[f],"xlink:href")};Graph.isLink=function(a){return null!=a&&a.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g)};
@@ -2609,33 +2609,33 @@ Graph.prototype.diagramBackgroundColor="#f0f0f0";Graph.prototype.enableDiagramBa
Graph.prototype.scrollTileSize=new mxRectangle(0,0,400,400);Graph.prototype.transparentBackground=!0;Graph.prototype.selectParentAfterDelete=!1;Graph.prototype.defaultEdgeLength=80;Graph.prototype.immediateHandling=!0;Graph.prototype.connectionArrowsEnabled=!0;Graph.prototype.placeholderPattern=RegExp("%(date{.*}|[^%^{^}^ ^\"^ '^=^;]+)%","g");Graph.prototype.absoluteUrlPattern=RegExp("^(?:[a-z]+:)?//","i");Graph.prototype.defaultThemeName="default";Graph.prototype.defaultThemes={};
Graph.prototype.baseUrl=null!=urlParams.base?mxUtils.removeJavascriptProtocol(decodeURIComponent(urlParams.base)):(window!=window.top?document.referrer:document.location.toString()).split("#")[0];Graph.prototype.editAfterInsert=!1;Graph.prototype.builtInProperties=["label","tooltip","placeholders","placeholder"];Graph.prototype.standalone=!1;Graph.prototype.enableFlowAnimation=!1;Graph.prototype.roundableShapes="label rectangle internalStorage corner parallelogram swimlane triangle trapezoid ext step tee process link rhombus offPageConnector loopLimit hexagon manualInput card curlyBracket singleArrow callout doubleArrow flexArrow umlLifeline".split(" ");
Graph.prototype.vertexFontSize=null;Graph.prototype.edgeFontSize=null;Graph.prototype.adaptiveColors="auto";
-Graph.prototype.init=function(a){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(e,f){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var h=e.view.graph.tolerance,d=!0,g=null,m=mxUtils.bind(this,function(u){d=!0;g=new mxPoint(mxEvent.getClientX(u),mxEvent.getClientY(u))}),p=mxUtils.bind(this,function(u){d=d&&null!=g&&Math.abs(g.x-mxEvent.getClientX(u))<h&&Math.abs(g.y-mxEvent.getClientY(u))<h}),k=mxUtils.bind(this,function(u){if(d)for(var w=mxEvent.getSource(u);null!=
-w&&w!=f.node;){if("a"==w.nodeName.toLowerCase()){e.view.graph.labelLinkClicked(e,w,u);break}w=w.parentNode}});mxEvent.addGestureListeners(f.node,m,p,k);mxEvent.addListener(f.node,"click",function(u){mxEvent.consume(u)})};if(null!=this.tooltipHandler){var b=this.tooltipHandler.init;this.tooltipHandler.init=function(){b.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(e){var f=mxEvent.getSource(e);"A"==f.nodeName&&(f=f.getAttribute("href"),null!=
+Graph.prototype.init=function(a){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(e,f){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var h=e.view.graph.tolerance,d=!0,g=null,m=mxUtils.bind(this,function(u){d=!0;g=new mxPoint(mxEvent.getClientX(u),mxEvent.getClientY(u))}),q=mxUtils.bind(this,function(u){d=d&&null!=g&&Math.abs(g.x-mxEvent.getClientX(u))<h&&Math.abs(g.y-mxEvent.getClientY(u))<h}),k=mxUtils.bind(this,function(u){if(d)for(var w=mxEvent.getSource(u);null!=
+w&&w!=f.node;){if("a"==w.nodeName.toLowerCase()){e.view.graph.labelLinkClicked(e,w,u);break}w=w.parentNode}});mxEvent.addGestureListeners(f.node,m,q,k);mxEvent.addListener(f.node,"click",function(u){mxEvent.consume(u)})};if(null!=this.tooltipHandler){var b=this.tooltipHandler.init;this.tooltipHandler.init=function(){b.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(e){var f=mxEvent.getSource(e);"A"==f.nodeName&&(f=f.getAttribute("href"),null!=
f&&this.graph.isCustomLink(f)&&(mxEvent.isTouchEvent(e)||!mxEvent.isPopupTrigger(e))&&this.graph.customLinkClicked(f)&&mxEvent.consume(e))}))}}this.initLayoutManager()};
(function(){Graph.prototype.useCssTransforms=!1;Graph.prototype.currentScale=1;Graph.prototype.currentTranslate=new mxPoint(0,0);Graph.prototype.pasteEdgeStyle=!1;Graph.prototype.isFillState=function(g){return!this.isSpecialColor(g.style[mxConstants.STYLE_FILLCOLOR])&&"1"!=mxUtils.getValue(g.style,"lineShape",null)&&(this.model.isVertex(g.cell)||"arrow"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)||"wire"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)||"filledEdge"==mxUtils.getValue(g.style,
-mxConstants.STYLE_SHAPE,null)||"flexArrow"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)||"mxgraph.arrows2.wedgeArrow"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isGradientState=function(g){return this.isFillState(g)&&"wire"!=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)};Graph.prototype.isStrokeState=function(g){return!0};Graph.prototype.getTextColor=function(g,m){for(var p=g==this.cellEditor.textarea&&m?"default":Graph.getGivenColor(g,m?"color":
-"background-color");null==p&&null!=g&&g!=this.cellEditor.textarea.parentNode;)p=g==this.cellEditor.textarea&&m?"default":Graph.getGivenColor(g,"color"),g=g.parentNode;if("rgba(0, 0, 0, 0)"==p||"transparent"==p)p=mxConstants.NONE;return p};Graph.prototype.isSpecialColor=function(g){return 0<=mxUtils.indexOf([mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_FILLCOLOR,"inherit","swimlane","indicated"],g)};Graph.prototype.isGlassState=function(g){g=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null);
-return"label"==g||"rectangle"==g||"internalStorage"==g||"ext"==g||"umlLifeline"==g||"swimlane"==g||"process"==g};Graph.prototype.isRoundedState=function(g){return null!=g.shape?g.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isLineJumpState=function(g){var m=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null);return!mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,!1)&&("connector"==m||"filledEdge"==m||"wire"==
-m)};Graph.prototype.isAutoSizeState=function(g){return"1"==mxUtils.getValue(g.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(g){return null!=mxUtils.getValue(g.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(g){return!0};Graph.prototype.getVerticesAndEdges=function(g,m){g=null!=g?g:!0;m=null!=m?m:!0;var p=this.model;return p.filterDescendants(function(k){return g&&p.isVertex(k)||m&&p.isEdge(k)},p.getRoot())};Graph.prototype.applyNewEdgeStyle=
-function(g,m,p){g=this.getCellStyle(g).newEdgeStyle;if(null!=g){this.model.beginUpdate();try{var k=JSON.parse(g),u;for(u in k)this.setCellStyles(u,k[u],m),"edgeStyle"==u&&"elbowEdgeStyle"==k[u]&&null!=p&&this.setCellStyles("elbow",p==mxConstants.DIRECTION_SOUTH||p==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",m)}finally{this.model.endUpdate()}}};Graph.prototype.getCommonStyle=function(g){for(var m={},p=0;p<g.length;p++){var k=this.view.getState(g[p]);null!=k&&this.mergeStyle(k.style,m,0==p)}return m};
-Graph.prototype.mergeStyle=function(g,m,p){if(null!=g){var k={},u;for(u in g){var w=g[u];null!=w&&(k[u]=!0,null==m[u]&&p?m[u]=w:m[u]!=w&&delete m[u])}for(u in m)k[u]||delete m[u]}};Graph.prototype.getStartEditingCell=function(g,m){m=this.getCellStyle(g);m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,0));this.isTable(g)&&(!this.isSwimlane(g)||0==m)&&""==this.getLabel(g)&&0<this.model.getChildCount(g)&&(g=this.model.getChildAt(g,0),m=this.getCellStyle(g),m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,
-0)));if(this.isTableRow(g)&&(!this.isSwimlane(g)||0==m)&&""==this.getLabel(g)&&0<this.model.getChildCount(g))for(m=0;m<this.model.getChildCount(g);m++){var p=this.model.getChildAt(g,m);if(this.isCellEditable(p)){g=p;break}}return g};Graph.prototype.copyStyle=function(g){return this.getCellStyle(g,!1)};Graph.prototype.pasteStyle=function(g,m,p,k){null!=g&&(k||(p=null!=p?p:Graph.cellStyles,Graph.removeKeys(g,function(u){return 0>mxUtils.indexOf(p,u)})),this.updateCellStyles(g,m))};Graph.prototype.copyCellStyles=
-function(g,m,p,k,u,w,z){var C=!1,E=!1;if(0<g.length)for(var D=0;D<g.length&&(C=this.getModel().isVertex(g[D])||C,!(E=this.getModel().isEdge(g[D])||E)||!C);D++);else E=C=!0;C=C&&!w;E=E&&!z;for(D=0;D<m.length;D++)if(g=0<=mxUtils.indexOf(Graph.textStyles,m[D]),"strokeColor"!=m[D]||null!=p[D]&&"none"!=p[D])if(0<=mxUtils.indexOf(Graph.cellStyles,m[D])||"shape"==m[D])if("shape"!=m[D]&&(C||g)&&(null==p[D]?delete k[m[D]]:k[m[D]]=p[D]),E||g)null==p[D]?delete u[m[D]]:u[m[D]]=p[D]};Graph.prototype.includeDescendants=
-function(g){for(var m=[],p=0;p<g.length;p++)m=m.concat(this.model.getDescendants(g[p]));return m};Graph.prototype.pasteCellStyles=function(g,m,p,k,u){m=null!=m?m:this.currentVertexStyle;p=null!=p?p:this.currentEdgeStyle;u=null!=u?u:this.pasteEdgeStyle;this.model.beginUpdate();try{for(var w=0;w<g.length;w++){var z=g[w],C=this.model.getStyle(z),E=!1;null!=z.style&&(pairs=z.style.split(";"),E=E||0<=mxUtils.indexOf(pairs,"text"));if(E)var D=Graph.textStyles;else if(D=Graph.cellStyles.slice(),!k)for(var G=
-null!=C?C.split(";"):[],J=0;J<G.length;J++){var L=G[J],Q=L.indexOf("=");if(0<=Q){var N=L.substring(0,Q),U=mxUtils.indexOf(D,N);0<=U&&D.splice(U,1);for(E=0;E<Graph.cellStyleGroups.length;E++){var Y=Graph.cellStyleGroups[E];if(0<=mxUtils.indexOf(Y,N))for(var P=0;P<Y.length;P++){var T=mxUtils.indexOf(D,Y[P]);0<=T&&D.splice(T,1)}}}}var K=this.model.isEdge(z);E=K?p:m;for(J=0;J<D.length;J++){N=D[J];var V=E[N];null!=V&&("edgeStyle"!=N||u)&&(K||!K&&0>mxUtils.indexOf(Graph.edgeStyles,N))&&(C=mxUtils.setStyle(C,
-N,V),"fontFamily"==N&&null==E.fontSource&&(C=mxUtils.setStyle(C,"fontSource",null)),K&&"rounded"==N&&"1"==V&&null==E.curved&&(C=mxUtils.setStyle(C,"curved",null)))}Editor.simpleLabels&&(C=mxUtils.setStyle(mxUtils.setStyle(C,"html",null),"whiteSpace",null));this.model.setStyle(z,C)}}finally{this.model.endUpdate()}return g};Graph.prototype.updateCellStyles=function(g,m){this.model.beginUpdate();try{for(var p=0;p<m.length;p++)if(this.model.isVertex(m[p])||this.model.isEdge(m[p])){var k=this.getCellStyle(m[p],
-!1),u=k[mxConstants.STYLE_PERIMETER],w=!1;for(C in g){var z=g[C];if(k[C]!=z){if(C==mxConstants.STYLE_SHAPE&&"umlLifeline"==k[C]&&"umlLifeline"!=z){w=!0;var C="participant"}this.setCellStyles(C,z,[m[p]])}}w&&this.setCellStyles(mxConstants.STYLE_PERIMETER,u,[m[p]])}}finally{this.model.endUpdate()}};Graph.prototype.isFastZoomEnabled=function(){return"nocss"!=urlParams.zoom&&!mxClient.NO_FO&&!mxClient.IS_EDGE&&!this.useCssTransforms&&(this.isCssTransformsSupported()||mxClient.IS_IOS)};Graph.prototype.isCssTransformsSupported=
-function(){return this.dialect==mxConstants.DIALECT_SVG&&!mxClient.NO_FO&&(!this.lightbox||!mxClient.IS_SF)};Graph.prototype.getCellAt=function(g,m,p,k,u,w){this.useCssTransforms&&(g=g/this.currentScale-this.currentTranslate.x,m=m/this.currentScale-this.currentTranslate.y);return this.getScaledCellAt.apply(this,arguments)};Graph.prototype.getScaledCellAt=function(g,m,p,k,u,w){k=null!=k?k:!0;u=null!=u?u:!0;null==p&&(p=this.getCurrentRoot(),null==p&&(p=this.getModel().getRoot()));if(null!=p)for(var z=
-this.model.getChildCount(p)-1;0<=z;z--){var C=this.model.getChildAt(p,z),E=this.getScaledCellAt(g,m,C,k,u,w);if(null!=E)return E;if(this.isCellVisible(C)&&(u&&this.model.isEdge(C)||k&&this.model.isVertex(C))&&(E=this.view.getState(C),null!=E&&(null==w||!w(E,g,m))&&this.intersects(E,g,m)))return C}return null};Graph.prototype.isRecursiveVertexResize=function(g){return!this.isSwimlane(g.cell)&&0<this.model.getChildCount(g.cell)&&!this.isCellCollapsed(g.cell)&&"1"==mxUtils.getValue(g.style,"recursiveResize",
-"1")&&null==mxUtils.getValue(g.style,"childLayout",null)};Graph.prototype.getAbsoluteParent=function(g){for(var m=this.getCellGeometry(g);null!=m&&m.relative;)g=this.getModel().getParent(g),m=this.getCellGeometry(g);return g};Graph.prototype.isPart=function(g){return"1"==mxUtils.getValue(this.getCurrentCellStyle(g),"part","0")||this.isTableCell(g)||this.isTableRow(g)};Graph.prototype.getCompositeParents=function(g){for(var m=new mxDictionary,p=[],k=0;k<g.length;k++){var u=this.getCompositeParent(g[k]);
-this.isTableCell(u)&&(u=this.graph.model.getParent(u));this.isTableRow(u)&&(u=this.graph.model.getParent(u));null==u||m.get(u)||(m.put(u,!0),p.push(u))}return p};Graph.prototype.getReferenceTerminal=function(g){if(null!=g){var m=this.getCellGeometry(g);null!=m&&m.relative&&(g=this.model.getParent(g))}null!=g&&this.model.isEdge(g)&&(g=this.model.getParent(g));null!=g&&(g=this.getCompositeParent(g));return g};Graph.prototype.getCompositeParent=function(g){for(;this.isPart(g);){var m=this.model.getParent(g);
-if(!this.model.isVertex(m))break;g=m}return g};Graph.prototype.filterSelectionCells=function(g){var m=this.getSelectionCells();if(null!=g){for(var p=[],k=0;k<m.length;k++)g(m[k])||p.push(m[k]);m=p}return m};var a=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(g){if(this.useCssTransforms){var m=this.currentScale,p=this.currentTranslate;g=new mxRectangle((g.x+2*p.x)*m-p.x,(g.y+2*p.y)*m-p.y,g.width*m,g.height*m)}a.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=
-function(g){g=this.strokeWidth;this.graph.useCssTransforms&&(g/=this.graph.currentScale);return g};mxGraphView.prototype.getGraphBounds=function(){var g=this.graphBounds;if(this.graph.useCssTransforms){var m=this.graph.currentTranslate,p=this.graph.currentScale;g=new mxRectangle((g.x+m.x)*p,(g.y+m.y)*p,g.width*p,g.height*p)}return g};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var b=mxGraphView.prototype.validate;
-mxGraphView.prototype.validate=function(g){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y,this.scale=1,this.translate.x=0,this.translate.y=0);b.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,this.translate.y=this.graph.currentTranslate.y)};var e=mxGraph.prototype.getCellsForGroup;
-Graph.prototype.getCellsForGroup=function(g){g=e.apply(this,arguments);for(var m=[],p=0;p<g.length;p++)this.isTableRow(g[p])||this.isTableCell(g[p])||m.push(g[p]);return m};var f=mxGraph.prototype.getCellsForUngroup;Graph.prototype.getCellsForUngroup=function(g){g=f.apply(this,arguments);for(var m=[],p=0;p<g.length;p++)this.isTable(g[p])||this.isTableRow(g[p])||this.isTableCell(g[p])||m.push(g[p]);return m};Graph.prototype.updateCssTransform=function(){var g=this.view.getDrawPane();if(null!=g)if(g=
-g.parentNode,this.useCssTransforms){var m=g.getAttribute("transform");g.setAttribute("transformOrigin","0 0");var p=Math.round(100*this.currentScale)/100;g.setAttribute("transform","scale("+p+","+p+")translate("+Math.round(100*this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");m!=g.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",g.getAttribute("transform"))}else g.removeAttribute("transformOrigin"),g.removeAttribute("transform")};
-var h=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var g=this.graph.useCssTransforms,m=this.scale,p=this.translate;g&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);h.apply(this,arguments);g&&(this.scale=m,this.translate=p)};var d=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(g,m,p){var k=this.useCssTransforms,u=this.view.scale,w=this.view.translate;k&&(this.view.scale=1,this.view.translate=
-new mxPoint(0,0),this.useCssTransforms=!1);d.apply(this,arguments);k&&(this.view.scale=u,this.view.translate=w,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox};Graph.prototype.isViewer=function(){return!1};
+mxConstants.STYLE_SHAPE,null)||"flexArrow"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)||"mxgraph.arrows2.wedgeArrow"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isGradientState=function(g){return this.isFillState(g)&&"wire"!=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)};Graph.prototype.isStrokeState=function(g){return!0};Graph.prototype.getTextColor=function(g,m){for(var q=m?"color":"background-color",k=g==this.cellEditor.textarea&&m?"default":Graph.getGivenColor(g,
+q);null==k&&null!=g&&g!=this.cellEditor.textarea.parentNode;)k=g==this.cellEditor.textarea&&m?"default":Graph.getGivenColor(g,q),g=g.parentNode;if("rgba(0, 0, 0, 0)"==k||"transparent"==k)k=mxConstants.NONE;return k};Graph.prototype.isSpecialColor=function(g){return 0<=mxUtils.indexOf([mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_FILLCOLOR,"inherit","swimlane","indicated"],g)};Graph.prototype.isGlassState=function(g){g=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null);return"label"==g||"rectangle"==
+g||"internalStorage"==g||"ext"==g||"umlLifeline"==g||"swimlane"==g||"process"==g};Graph.prototype.isRoundedState=function(g){return null!=g.shape?g.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isLineJumpState=function(g){var m=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null);return!mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,!1)&&("connector"==m||"filledEdge"==m||"wire"==m)};Graph.prototype.isAutoSizeState=
+function(g){return"1"==mxUtils.getValue(g.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(g){return null!=mxUtils.getValue(g.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(g){return!0};Graph.prototype.getVerticesAndEdges=function(g,m){g=null!=g?g:!0;m=null!=m?m:!0;var q=this.model;return q.filterDescendants(function(k){return g&&q.isVertex(k)||m&&q.isEdge(k)},q.getRoot())};Graph.prototype.applyNewEdgeStyle=function(g,m,q){g=this.getCellStyle(g).newEdgeStyle;
+if(null!=g){this.model.beginUpdate();try{var k=JSON.parse(g),u;for(u in k)this.setCellStyles(u,k[u],m),"edgeStyle"==u&&"elbowEdgeStyle"==k[u]&&null!=q&&this.setCellStyles("elbow",q==mxConstants.DIRECTION_SOUTH||q==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",m)}finally{this.model.endUpdate()}}};Graph.prototype.getCommonStyle=function(g){for(var m={},q=0;q<g.length;q++){var k=this.view.getState(g[q]);null!=k&&this.mergeStyle(k.style,m,0==q)}return m};Graph.prototype.mergeStyle=function(g,m,q){if(null!=
+g){var k={},u;for(u in g){var w=g[u];null!=w&&(k[u]=!0,null==m[u]&&q?m[u]=w:m[u]!=w&&delete m[u])}for(u in m)k[u]||delete m[u]}};Graph.prototype.getStartEditingCell=function(g,m){m=this.getCellStyle(g);m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,0));this.isTable(g)&&(!this.isSwimlane(g)||0==m)&&""==this.getLabel(g)&&0<this.model.getChildCount(g)&&(g=this.model.getChildAt(g,0),m=this.getCellStyle(g),m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,0)));if(this.isTableRow(g)&&
+(!this.isSwimlane(g)||0==m)&&""==this.getLabel(g)&&0<this.model.getChildCount(g))for(m=0;m<this.model.getChildCount(g);m++){var q=this.model.getChildAt(g,m);if(this.isCellEditable(q)){g=q;break}}return g};Graph.prototype.copyStyle=function(g){return this.getCellStyle(g,!1)};Graph.prototype.pasteStyle=function(g,m,q,k){null!=g&&(k||(q=null!=q?q:Graph.cellStyles,Graph.removeKeys(g,function(u){return 0>mxUtils.indexOf(q,u)})),this.updateCellStyles(g,m))};Graph.prototype.copyCellStyles=function(g,m,q,
+k,u,w,z){var C=!1,E=!1;if(0<g.length)for(var D=0;D<g.length&&(C=this.getModel().isVertex(g[D])||C,!(E=this.getModel().isEdge(g[D])||E)||!C);D++);else E=C=!0;C=C&&!w;E=E&&!z;for(D=0;D<m.length;D++)if(g=0<=mxUtils.indexOf(Graph.textStyles,m[D]),"strokeColor"!=m[D]||null!=q[D]&&"none"!=q[D])if(0<=mxUtils.indexOf(Graph.cellStyles,m[D])||"shape"==m[D])if("shape"!=m[D]&&(C||g)&&(null==q[D]?delete k[m[D]]:k[m[D]]=q[D]),E||g)null==q[D]?delete u[m[D]]:u[m[D]]=q[D]};Graph.prototype.includeDescendants=function(g){for(var m=
+[],q=0;q<g.length;q++)m=m.concat(this.model.getDescendants(g[q]));return m};Graph.prototype.pasteCellStyles=function(g,m,q,k,u){m=null!=m?m:this.currentVertexStyle;q=null!=q?q:this.currentEdgeStyle;u=null!=u?u:this.pasteEdgeStyle;this.model.beginUpdate();try{for(var w=0;w<g.length;w++){var z=g[w],C=this.model.getStyle(z),E=!1;null!=z.style&&(pairs=z.style.split(";"),E=E||0<=mxUtils.indexOf(pairs,"text"));if(E)var D=Graph.textStyles;else if(D=Graph.cellStyles.slice(),!k)for(var G=null!=C?C.split(";"):
+[],J=0;J<G.length;J++){var L=G[J],Q=L.indexOf("=");if(0<=Q){var N=L.substring(0,Q),U=mxUtils.indexOf(D,N);0<=U&&D.splice(U,1);for(E=0;E<Graph.cellStyleGroups.length;E++){var Y=Graph.cellStyleGroups[E];if(0<=mxUtils.indexOf(Y,N))for(var P=0;P<Y.length;P++){var T=mxUtils.indexOf(D,Y[P]);0<=T&&D.splice(T,1)}}}}var K=this.model.isEdge(z);E=K?q:m;for(J=0;J<D.length;J++){N=D[J];var V=E[N];null!=V&&("edgeStyle"!=N||u)&&(K||!K&&0>mxUtils.indexOf(Graph.edgeStyles,N))&&(C=mxUtils.setStyle(C,N,V),"fontFamily"==
+N&&null==E.fontSource&&(C=mxUtils.setStyle(C,"fontSource",null)),K&&"rounded"==N&&"1"==V&&null==E.curved&&(C=mxUtils.setStyle(C,"curved",null)))}Editor.simpleLabels&&(C=mxUtils.setStyle(mxUtils.setStyle(C,"html",null),"whiteSpace",null));this.model.setStyle(z,C)}}finally{this.model.endUpdate()}return g};Graph.prototype.updateCellStyles=function(g,m){this.model.beginUpdate();try{for(var q=0;q<m.length;q++)if(this.model.isVertex(m[q])||this.model.isEdge(m[q])){var k=this.getCellStyle(m[q],!1),u=k[mxConstants.STYLE_PERIMETER],
+w=!1;for(C in g){var z=g[C];if(k[C]!=z){if(C==mxConstants.STYLE_SHAPE&&"umlLifeline"==k[C]&&"umlLifeline"!=z){w=!0;var C="participant"}this.setCellStyles(C,z,[m[q]])}}w&&this.setCellStyles(mxConstants.STYLE_PERIMETER,u,[m[q]])}}finally{this.model.endUpdate()}};Graph.prototype.isFastZoomEnabled=function(){return"nocss"!=urlParams.zoom&&!mxClient.NO_FO&&!mxClient.IS_EDGE&&!this.useCssTransforms&&(this.isCssTransformsSupported()||mxClient.IS_IOS)};Graph.prototype.isCssTransformsSupported=function(){return this.dialect==
+mxConstants.DIALECT_SVG&&!mxClient.NO_FO&&(!this.lightbox||!mxClient.IS_SF)};Graph.prototype.getCellAt=function(g,m,q,k,u,w){this.useCssTransforms&&(g=g/this.currentScale-this.currentTranslate.x,m=m/this.currentScale-this.currentTranslate.y);return this.getScaledCellAt.apply(this,arguments)};Graph.prototype.getScaledCellAt=function(g,m,q,k,u,w){k=null!=k?k:!0;u=null!=u?u:!0;null==q&&(q=this.getCurrentRoot(),null==q&&(q=this.getModel().getRoot()));if(null!=q)for(var z=this.model.getChildCount(q)-1;0<=
+z;z--){var C=this.model.getChildAt(q,z),E=this.getScaledCellAt(g,m,C,k,u,w);if(null!=E)return E;if(this.isCellVisible(C)&&(u&&this.model.isEdge(C)||k&&this.model.isVertex(C))&&(E=this.view.getState(C),null!=E&&(null==w||!w(E,g,m))&&this.intersects(E,g,m)))return C}return null};Graph.prototype.isRecursiveVertexResize=function(g){return!this.isSwimlane(g.cell)&&0<this.model.getChildCount(g.cell)&&!this.isCellCollapsed(g.cell)&&"1"==mxUtils.getValue(g.style,"recursiveResize","1")&&null==mxUtils.getValue(g.style,
+"childLayout",null)};Graph.prototype.getAbsoluteParent=function(g){for(var m=this.getCellGeometry(g);null!=m&&m.relative;)g=this.getModel().getParent(g),m=this.getCellGeometry(g);return g};Graph.prototype.isPart=function(g){return"1"==mxUtils.getValue(this.getCurrentCellStyle(g),"part","0")||this.isTableCell(g)||this.isTableRow(g)};Graph.prototype.getCompositeParents=function(g){for(var m=new mxDictionary,q=[],k=0;k<g.length;k++){var u=this.getCompositeParent(g[k]);this.isTableCell(u)&&(u=this.graph.model.getParent(u));
+this.isTableRow(u)&&(u=this.graph.model.getParent(u));null==u||m.get(u)||(m.put(u,!0),q.push(u))}return q};Graph.prototype.getReferenceTerminal=function(g){if(null!=g){var m=this.getCellGeometry(g);null!=m&&m.relative&&(g=this.model.getParent(g))}null!=g&&this.model.isEdge(g)&&(g=this.model.getParent(g));null!=g&&(g=this.getCompositeParent(g));return g};Graph.prototype.getCompositeParent=function(g){for(;this.isPart(g);){var m=this.model.getParent(g);if(!this.model.isVertex(m))break;g=m}return g};
+Graph.prototype.filterSelectionCells=function(g){var m=this.getSelectionCells();if(null!=g){for(var q=[],k=0;k<m.length;k++)g(m[k])||q.push(m[k]);m=q}return m};var a=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(g){if(this.useCssTransforms){var m=this.currentScale,q=this.currentTranslate;g=new mxRectangle((g.x+2*q.x)*m-q.x,(g.y+2*q.y)*m-q.y,g.width*m,g.height*m)}a.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=function(g){g=this.strokeWidth;this.graph.useCssTransforms&&
+(g/=this.graph.currentScale);return g};mxGraphView.prototype.getGraphBounds=function(){var g=this.graphBounds;if(this.graph.useCssTransforms){var m=this.graph.currentTranslate,q=this.graph.currentScale;g=new mxRectangle((g.x+m.x)*q,(g.y+m.y)*q,g.width*q,g.height*q)}return g};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var b=mxGraphView.prototype.validate;mxGraphView.prototype.validate=function(g){this.graph.useCssTransforms&&
+(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y,this.scale=1,this.translate.x=0,this.translate.y=0);b.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,this.translate.y=this.graph.currentTranslate.y)};var e=mxGraph.prototype.getCellsForGroup;Graph.prototype.getCellsForGroup=function(g){g=e.apply(this,arguments);
+for(var m=[],q=0;q<g.length;q++)this.isTableRow(g[q])||this.isTableCell(g[q])||m.push(g[q]);return m};var f=mxGraph.prototype.getCellsForUngroup;Graph.prototype.getCellsForUngroup=function(g){g=f.apply(this,arguments);for(var m=[],q=0;q<g.length;q++)this.isTable(g[q])||this.isTableRow(g[q])||this.isTableCell(g[q])||m.push(g[q]);return m};Graph.prototype.updateCssTransform=function(){var g=this.view.getDrawPane();if(null!=g)if(g=g.parentNode,this.useCssTransforms){var m=g.getAttribute("transform");
+g.setAttribute("transformOrigin","0 0");var q=Math.round(100*this.currentScale)/100;g.setAttribute("transform","scale("+q+","+q+")translate("+Math.round(100*this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");m!=g.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",g.getAttribute("transform"))}else g.removeAttribute("transformOrigin"),g.removeAttribute("transform")};var h=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=
+function(){var g=this.graph.useCssTransforms,m=this.scale,q=this.translate;g&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);h.apply(this,arguments);g&&(this.scale=m,this.translate=q)};var d=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(g,m,q){var k=this.useCssTransforms,u=this.view.scale,w=this.view.translate;k&&(this.view.scale=1,this.view.translate=new mxPoint(0,0),this.useCssTransforms=!1);d.apply(this,arguments);k&&(this.view.scale=
+u,this.view.translate=w,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox};Graph.prototype.isViewer=function(){return!1};
Graph.prototype.labelLinkClicked=function(a,b,e){var f=b.getAttribute("href");f!=Graph.sanitizeLink(f)&&Graph.sanitizeNode(b);if(null!=f&&!this.isCustomLink(f)&&(mxEvent.isLeftMouseButton(e)&&!mxEvent.isPopupTrigger(e)||mxEvent.isTouchEvent(e))){if(!this.isEnabled()||this.isCellLocked(a.cell))a=this.isBlankLink(f)?this.linkTarget:"_top",this.openLink(this.getAbsoluteUrl(f),a);mxEvent.consume(e)}};
Graph.prototype.openLink=function(a,b,e){var f=window;try{if(a=Graph.sanitizeLink(a),null!=a)if("_self"==b&&window!=window.top)window.location.href=a;else if(a.substring(0,this.baseUrl.length)==this.baseUrl&&"#"==a.charAt(this.baseUrl.length)&&"_top"==b&&window==window.top){var h=a.split("#")[1];window.location.hash=="#"+h&&(window.location.hash="");window.location.hash=h}else f=window.open(a,null!=b?b:"_blank",e?null:"noopener,noreferrer"),null==f||e||(f.opener=null)}catch(d){}return f};
Graph.prototype.getLinkTitle=function(a){return a.substring(a.lastIndexOf("/")+1)};Graph.prototype.isCustomLink=function(a){return"data:"==a.substring(0,5)};Graph.prototype.customLinkClicked=function(a,b){return!1};Graph.prototype.isExternalProtocol=function(a){return"mailto:"===a.substring(0,7)};Graph.prototype.isBlankLink=function(a){return!this.isExternalProtocol(a)&&("blank"===this.linkPolicy||"self"!==this.linkPolicy&&!this.isRelativeUrl(a)&&a.substring(0,this.domainUrl.length)!==this.domainUrl)};
@@ -2650,7 +2650,7 @@ Graph.prototype.createLayouts=function(a){for(var b=[],e=0;e<a.length;e++)if(0<=
Graph.prototype.getDataForCells=function(a,b){for(var e=[],f=0;f<a.length;f++){var h={};h.id=a[f].id;var d=null!=a[f].value?a[f].value.attributes:null;this.isReplacePlaceholders(a[f])&&b&&(h.value=this.getLabel(a[f]));if(null!=d)for(var g=0;g<d.length;g++)h[d[g].nodeName]=d[g].nodeValue;else h.label=this.convertValueToString(a[f]);e.push(h)}return e};
Graph.prototype.getNodesForCells=function(a){for(var b=[],e=0;e<a.length;e++){var f=this.view.getState(a[e]);if(null!=f){for(var h=this.cellRenderer.getShapesForState(f),d=0;d<h.length;d++)null!=h[d]&&null!=h[d].node&&b.push(h[d].node);null!=f.control&&null!=f.control.node&&b.push(f.control.node)}}return b};
Graph.prototype.createWipeAnimations=function(a,b){for(var e=[],f=0;f<a.length;f++){var h=this.view.getState(a[f]);null!=h&&null!=h.shape&&(this.model.isEdge(h.cell)&&null!=h.absolutePoints&&1<h.absolutePoints.length?e.push(this.createEdgeWipeAnimation(h,b)):this.model.isVertex(h.cell)&&null!=h.shape.bounds&&e.push(this.createVertexWipeAnimation(h,b)))}return e};
-Graph.prototype.createEdgeWipeAnimation=function(a,b){var e=a.absolutePoints.slice(),f=a.segments,h=a.length,d=e.length;return{execute:mxUtils.bind(this,function(g,m){if(null!=a.shape){var p=[e[0]];m=g/m;b||(m=1-m);for(var k=h*m,u=1;u<d;u++)if(k<=f[u-1]){p.push(new mxPoint(e[u-1].x+(e[u].x-e[u-1].x)*k/f[u-1],e[u-1].y+(e[u].y-e[u-1].y)*k/f[u-1]));break}else k-=f[u-1],p.push(e[u]);a.shape.points=p;a.shape.redraw();0==g&&Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),1);null!=a.text&&null!=
+Graph.prototype.createEdgeWipeAnimation=function(a,b){var e=a.absolutePoints.slice(),f=a.segments,h=a.length,d=e.length;return{execute:mxUtils.bind(this,function(g,m){if(null!=a.shape){var q=[e[0]];m=g/m;b||(m=1-m);for(var k=h*m,u=1;u<d;u++)if(k<=f[u-1]){q.push(new mxPoint(e[u-1].x+(e[u].x-e[u-1].x)*k/f[u-1],e[u-1].y+(e[u].y-e[u-1].y)*k/f[u-1]));break}else k-=f[u-1],q.push(e[u]);a.shape.points=q;a.shape.redraw();0==g&&Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),1);null!=a.text&&null!=
a.text.node&&(a.text.node.style.opacity=m)}}),stop:mxUtils.bind(this,function(){null!=a.shape&&(a.shape.points=e,a.shape.redraw(),null!=a.text&&null!=a.text.node&&(a.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),b?1:0))})}};
Graph.prototype.createVertexWipeAnimation=function(a,b){var e=new mxRectangle.fromRectangle(a.shape.bounds);return{execute:mxUtils.bind(this,function(f,h){null!=a.shape&&(h=f/h,b||(h=1-h),a.shape.bounds=new mxRectangle(e.x,e.y,e.width*h,e.height),a.shape.redraw(),0==f&&Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),1),null!=a.text&&null!=a.text.node&&(a.text.node.style.opacity=h))}),stop:mxUtils.bind(this,function(){null!=a.shape&&(a.shape.bounds=e,a.shape.redraw(),null!=a.text&&null!=a.text.node&&
(a.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),b?1:0))})}};Graph.prototype.executeAnimations=function(a,b,e,f){e=null!=e?e:30;f=null!=f?f:30;var h=null,d=0,g=mxUtils.bind(this,function(){if(d==e||this.stoppingCustomActions){window.clearInterval(h);for(var m=0;m<a.length;m++)a[m].stop();null!=b&&b()}else for(m=0;m<a.length;m++)a[m].execute(d,e);d++});h=window.setInterval(g,f);g()};
@@ -2665,17 +2665,17 @@ Graph.prototype.isLabelMovable=function(a){var b=this.getCurrentCellStyle(a);ret
Graph.prototype.getClickableLinkForCell=function(a){do{var b=this.getLinkForCell(a);if(null!=b)return b;a=this.model.getParent(a)}while(null!=a);return null};Graph.prototype.getGlobalVariable=function(a){var b=null;"date"==a?b=(new Date).toLocaleDateString():"time"==a?b=(new Date).toLocaleTimeString():"timestamp"==a?b=(new Date).toLocaleString():"date{"==a.substring(0,5)&&(a=a.substring(5,a.length-1),b=this.formatDate(new Date,a));return b};
Graph.prototype.formatDate=function(a,b,e){null==this.dateFormatCache&&(this.dateFormatCache={i18n:{dayNames:"Sun Mon Tue Wed Thu Fri Sat Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),monthNames:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec January February March April May June July August September October November December".split(" ")},masks:{"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",
shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"}});var f=this.dateFormatCache,h=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,d=/[^-+\dA-Z]/g,g=function(J,L){J=String(J);for(L=L||2;J.length<L;)J="0"+J;return J};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(a)||
-/\d/.test(a)||(b=a,a=void 0);a=a?new Date(a):new Date;if(isNaN(a))throw SyntaxError("invalid date");b=String(f.masks[b]||b||f.masks["default"]);"UTC:"==b.slice(0,4)&&(b=b.slice(4),e=!0);var m=e?"getUTC":"get",p=a[m+"Date"](),k=a[m+"Day"](),u=a[m+"Month"](),w=a[m+"FullYear"](),z=a[m+"Hours"](),C=a[m+"Minutes"](),E=a[m+"Seconds"]();m=a[m+"Milliseconds"]();var D=e?0:a.getTimezoneOffset(),G={d:p,dd:g(p),ddd:f.i18n.dayNames[k],dddd:f.i18n.dayNames[k+7],m:u+1,mm:g(u+1),mmm:f.i18n.monthNames[u],mmmm:f.i18n.monthNames[u+
-12],yy:String(w).slice(2),yyyy:w,h:z%12||12,hh:g(z%12||12),H:z,HH:g(z),M:C,MM:g(C),s:E,ss:g(E),l:g(m,3),L:g(99<m?Math.round(m/10):m),t:12>z?"a":"p",tt:12>z?"am":"pm",T:12>z?"A":"P",TT:12>z?"AM":"PM",Z:e?"UTC":(String(a).match(h)||[""]).pop().replace(d,""),o:(0<D?"-":"+")+g(100*Math.floor(Math.abs(D)/60)+Math.abs(D)%60,4),S:["th","st","nd","rd"][3<p%10?0:(10!=p%100-p%10)*p%10]};return b.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(J){return J in G?G[J]:J.slice(1,
+/\d/.test(a)||(b=a,a=void 0);a=a?new Date(a):new Date;if(isNaN(a))throw SyntaxError("invalid date");b=String(f.masks[b]||b||f.masks["default"]);"UTC:"==b.slice(0,4)&&(b=b.slice(4),e=!0);var m=e?"getUTC":"get",q=a[m+"Date"](),k=a[m+"Day"](),u=a[m+"Month"](),w=a[m+"FullYear"](),z=a[m+"Hours"](),C=a[m+"Minutes"](),E=a[m+"Seconds"]();m=a[m+"Milliseconds"]();var D=e?0:a.getTimezoneOffset(),G={d:q,dd:g(q),ddd:f.i18n.dayNames[k],dddd:f.i18n.dayNames[k+7],m:u+1,mm:g(u+1),mmm:f.i18n.monthNames[u],mmmm:f.i18n.monthNames[u+
+12],yy:String(w).slice(2),yyyy:w,h:z%12||12,hh:g(z%12||12),H:z,HH:g(z),M:C,MM:g(C),s:E,ss:g(E),l:g(m,3),L:g(99<m?Math.round(m/10):m),t:12>z?"a":"p",tt:12>z?"am":"pm",T:12>z?"A":"P",TT:12>z?"AM":"PM",Z:e?"UTC":(String(a).match(h)||[""]).pop().replace(d,""),o:(0<D?"-":"+")+g(100*Math.floor(Math.abs(D)/60)+Math.abs(D)%60,4),S:["th","st","nd","rd"][3<q%10?0:(10!=q%100-q%10)*q%10]};return b.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(J){return J in G?G[J]:J.slice(1,
J.length-1)})};Graph.prototype.getLayerForCell=function(a){for(;null!=a&&!this.model.isLayer(a);)a=this.model.getParent(a);return a};Graph.prototype.getLayerForCells=function(a){var b=null;if(0<a.length){b=this.getLayerForCell(a[0]);for(var e=1;e<a.length;e++)if(!this.model.isAncestor(b,a[e])){b=null;break}}return b};
-Graph.prototype.createLayersDialog=function(a,b){var e=document.createElement("div");e.style.position="absolute";for(var f=this.getModel(),h=f.getChildCount(f.root),d=0;d<h;d++)mxUtils.bind(this,function(g){function m(){f.isVisible(g)?(u.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(k,75)):(u.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(k,25))}var p=this.convertValueToString(g)||mxResources.get("background")||"Background",k=document.createElement("div");k.style.overflow=
-"hidden";k.style.textOverflow="ellipsis";k.style.padding="2px";k.style.whiteSpace="nowrap";k.style.cursor="pointer";k.setAttribute("title",mxResources.get(f.isVisible(g)?"hideIt":"show",[p]));var u=document.createElement("img");u.setAttribute("draggable","false");u.setAttribute("align","absmiddle");u.setAttribute("border","0");u.style.position="relative";u.style.width="16px";u.style.padding="0px 6px 0 4px";b&&(u.style.filter="invert(100%)",u.style.top="-2px");k.appendChild(u);mxUtils.write(k,p);e.appendChild(k);
+Graph.prototype.createLayersDialog=function(a,b){var e=document.createElement("div");e.style.position="absolute";for(var f=this.getModel(),h=f.getChildCount(f.root),d=0;d<h;d++)mxUtils.bind(this,function(g){function m(){f.isVisible(g)?(u.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(k,75)):(u.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(k,25))}var q=this.convertValueToString(g)||mxResources.get("background")||"Background",k=document.createElement("div");k.style.overflow=
+"hidden";k.style.textOverflow="ellipsis";k.style.padding="2px";k.style.whiteSpace="nowrap";k.style.cursor="pointer";k.setAttribute("title",mxResources.get(f.isVisible(g)?"hideIt":"show",[q]));var u=document.createElement("img");u.setAttribute("draggable","false");u.setAttribute("align","absmiddle");u.setAttribute("border","0");u.style.position="relative";u.style.width="16px";u.style.padding="0px 6px 0 4px";b&&(u.style.filter="invert(100%)",u.style.top="-2px");k.appendChild(u);mxUtils.write(k,q);e.appendChild(k);
mxEvent.addListener(k,"click",function(){f.setVisible(g,!f.isVisible(g));m();null!=a&&a(g)});m()})(f.getChildAt(f.root,d));return e};
-Graph.prototype.replacePlaceholders=function(a,b,e,f){f=[];if(null!=b){for(var h=0;match=this.placeholderPattern.exec(b);){var d=match[0];if(2<d.length&&"%label%"!=d&&"%tooltip%"!=d){var g=null;if(match.index>h&&"%"==b.charAt(match.index-1))g=d.substring(1);else{var m=d.substring(1,d.length-1),p={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==m)g=a.id;else if("width"===m.substring(0,5)&&this.model.isVertex(a)){var k=this.getCellGeometry(a);
-null!=k&&(g=k.width,5<m.length&&(g=Editor.toUnit(g,p[m.substring(6)])))}else if("height"==m.substring(0,6)&&this.model.isVertex(a))k=this.getCellGeometry(a),null!=k&&(g=k.height,6<m.length&&(g=Editor.toUnit(g,p[m.substring(7)])));else if("length"==m.substring(0,6)){for(k=a;null!=k&&!this.model.isEdge(k);)k=this.model.getParent(k);k=this.view.getState(k);null!=k&&(g=Math.round(k.length/this.view.scale),6<m.length&&(g=Editor.toUnit(g,p[m.substring(7)])))}else if(0>m.indexOf("{"))for(p=a;null==g&&null!=
-p;)null!=p.value&&"object"==typeof p.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(g=p.getAttribute(m+"_"+Graph.diagramLanguage)),null==g&&(g=p.hasAttribute(m)?null!=p.getAttribute(m)?p.getAttribute(m):"":null)),p=this.model.getParent(p);null==g&&(g=this.getGlobalVariable(m));null==g&&null!=e&&(g=e[m])}f.push(b.substring(h,match.index)+(null!=g?g:d));h=match.index+d.length}}f.push(b.substring(h))}return f.join("")};
+Graph.prototype.replacePlaceholders=function(a,b,e,f){f=[];if(null!=b){for(var h=0;match=this.placeholderPattern.exec(b);){var d=match[0];if(2<d.length&&"%label%"!=d&&"%tooltip%"!=d){var g=null;if(match.index>h&&"%"==b.charAt(match.index-1))g=d.substring(1);else{var m=d.substring(1,d.length-1),q={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==m)g=a.id;else if("width"===m.substring(0,5)&&this.model.isVertex(a)){var k=this.getCellGeometry(a);
+null!=k&&(g=k.width,5<m.length&&(g=Editor.toUnit(g,q[m.substring(6)])))}else if("height"==m.substring(0,6)&&this.model.isVertex(a))k=this.getCellGeometry(a),null!=k&&(g=k.height,6<m.length&&(g=Editor.toUnit(g,q[m.substring(7)])));else if("length"==m.substring(0,6)){for(k=a;null!=k&&!this.model.isEdge(k);)k=this.model.getParent(k);k=this.view.getState(k);null!=k&&(g=Math.round(k.length/this.view.scale),6<m.length&&(g=Editor.toUnit(g,q[m.substring(7)])))}else if(0>m.indexOf("{"))for(q=a;null==g&&null!=
+q;)null!=q.value&&"object"==typeof q.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(g=q.getAttribute(m+"_"+Graph.diagramLanguage)),null==g&&(g=q.hasAttribute(m)?null!=q.getAttribute(m)?q.getAttribute(m):"":null)),q=this.model.getParent(q);null==g&&(g=this.getGlobalVariable(m));null==g&&null!=e&&(g=e[m])}f.push(b.substring(h,match.index)+(null!=g?g:d));h=match.index+d.length}}f.push(b.substring(h))}return f.join("")};
Graph.prototype.restoreSelection=function(a){if(null!=a&&0<a.length){for(var b=[],e=0;e<a.length;e++){var f=this.model.getCell(a[e].id);null!=f&&b.push(f)}this.setSelectionCells(b)}else this.clearSelection()};Graph.prototype.selectCellForEvent=function(a,b){mxEvent.isShiftDown(b)&&!this.isSelectionEmpty()&&this.selectTableRange(this.getSelectionCell(),a)||mxGraph.prototype.selectCellForEvent.apply(this,arguments)};
-Graph.prototype.selectTableRange=function(a,b){var e=!1;if(this.isTableCell(a)&&this.isTableCell(b)){var f=this.model.getParent(a),h=this.model.getParent(f),d=this.model.getParent(b);if(h==this.model.getParent(d)){a=f.getIndex(a);f=h.getIndex(f);var g=d.getIndex(b),m=h.getIndex(d);d=Math.max(f,m);b=Math.min(a,g);a=Math.max(a,g);g=[];for(f=Math.min(f,m);f<=d;f++){m=this.model.getChildAt(h,f);for(var p=b;p<=a;p++)g.push(this.model.getChildAt(m,p))}0<g.length&&(1<g.length||1<this.getSelectionCount()||
+Graph.prototype.selectTableRange=function(a,b){var e=!1;if(this.isTableCell(a)&&this.isTableCell(b)){var f=this.model.getParent(a),h=this.model.getParent(f),d=this.model.getParent(b);if(h==this.model.getParent(d)){a=f.getIndex(a);f=h.getIndex(f);var g=d.getIndex(b),m=h.getIndex(d);d=Math.max(f,m);b=Math.min(a,g);a=Math.max(a,g);g=[];for(f=Math.min(f,m);f<=d;f++){m=this.model.getChildAt(h,f);for(var q=b;q<=a;q++)g.push(this.model.getChildAt(m,q))}0<g.length&&(1<g.length||1<this.getSelectionCount()||
!this.isCellSelected(g[0]))&&(this.setSelectionCells(g),e=!0)}}return e};
Graph.prototype.snapCellsToGrid=function(a,b){this.getModel().beginUpdate();try{for(var e=0;e<a.length;e++){var f=a[e],h=this.getCellGeometry(f);if(null!=h){h=h.clone();if(this.getModel().isVertex(f))h.x=Math.round(h.x/b)*b,h.y=Math.round(h.y/b)*b,h.width=Math.round(h.width/b)*b,h.height=Math.round(h.height/b)*b;else if(this.getModel().isEdge(f)&&null!=h.points)for(var d=0;d<h.points.length;d++)h.points[d].x=Math.round(h.points[d].x/b)*b,h.points[d].y=Math.round(h.points[d].y/b)*b;this.getModel().setGeometry(f,
h)}}}finally{this.getModel().endUpdate()}};Graph.prototype.removeChildCells=function(a){this.model.beginUpdate();try{for(var b=this.model.getChildCount(a);0<=b;b--)this.model.remove(this.model.getChildAt(a,b))}finally{this.model.endUpdate()}};
@@ -2683,13 +2683,13 @@ Graph.prototype.updateShapes=function(a,b,e){this.model.beginUpdate();try{var f=
this.model.isEdge(a)&&this.model.isEdge(b[d]))if(e){var g=this.model.getStyle(b[d]);if(null!=g){var m=g.split(";");0<m.length&&0>m[0].indexOf("=")&&(m=m.slice(1));this.model.setStyle(b[d],m.join(";"))}this.setCellStyles(mxConstants.STYLE_PERIMETER,null,[b[d]]);this.setCellStyles("points",null,[b[d]]);this.pasteStyle(h,[b[d]],null,!0)}else h=this.copyStyle(b[d]),this.model.setStyle(b[d],f),this.pasteStyle(h,[b[d]]);"1"==mxUtils.getValue(this.getCellStyle(b[d],!1),"composite","0")&&this.removeChildCells(b[d])}}finally{this.model.endUpdate()}};
Graph.prototype.selectCellsForConnectVertex=function(a,b,e){2==a.length&&this.model.isVertex(a[1])?(this.setSelectionCell(a[1]),this.scrollCellToVisible(a[1]),null!=e&&(mxEvent.isTouchEvent(b)?e.update(e.getState(this.view.getState(a[1]))):e.reset())):this.setSelectionCells(a)};Graph.prototype.isCloneConnectSource=function(a){var b=null;null!=this.layoutManager&&(b=this.layoutManager.getLayout(this.model.getParent(a)));return this.isTableRow(a)||this.isTableCell(a)||null!=b&&b.constructor==mxStackLayout};
Graph.prototype.insertEdgeBeforeCell=function(a,b){for(var e=b;null!=e.parent&&null!=e.geometry&&e.geometry.relative&&e.parent!=a.parent;)e=this.model.getParent(e);null!=e&&null!=e.parent&&e.parent==a.parent&&(b=e.parent.getIndex(e),this.model.add(e.parent,a,b))};
-Graph.prototype.connectVertex=function(a,b,e,f,h,d,g,m){d=d?d:!1;if(a.geometry.relative&&this.model.isEdge(a.parent))return[];for(;a.geometry.relative&&this.model.isVertex(a.parent);)a=a.parent;var p=this.isCloneConnectSource(a),k=p?a:this.getCompositeParent(a),u=a.geometry.relative&&null!=a.parent.geometry?new mxPoint(a.parent.geometry.width*a.geometry.x,a.parent.geometry.height*a.geometry.y):new mxPoint(k.geometry.x,k.geometry.y);b==mxConstants.DIRECTION_NORTH?(u.x+=k.geometry.width/2,u.y-=e):b==
+Graph.prototype.connectVertex=function(a,b,e,f,h,d,g,m){d=d?d:!1;if(a.geometry.relative&&this.model.isEdge(a.parent))return[];for(;a.geometry.relative&&this.model.isVertex(a.parent);)a=a.parent;var q=this.isCloneConnectSource(a),k=q?a:this.getCompositeParent(a),u=a.geometry.relative&&null!=a.parent.geometry?new mxPoint(a.parent.geometry.width*a.geometry.x,a.parent.geometry.height*a.geometry.y):new mxPoint(k.geometry.x,k.geometry.y);b==mxConstants.DIRECTION_NORTH?(u.x+=k.geometry.width/2,u.y-=e):b==
mxConstants.DIRECTION_SOUTH?(u.x+=k.geometry.width/2,u.y+=k.geometry.height+e):(u.x=b==mxConstants.DIRECTION_WEST?u.x-e:u.x+(k.geometry.width+e),u.y+=k.geometry.height/2);var w=this.view.getState(this.model.getParent(a));e=this.view.scale;var z=this.view.translate;k=z.x*e;z=z.y*e;null!=w&&this.model.isVertex(w.cell)&&(k=w.x,z=w.y);this.model.isVertex(a.parent)&&a.geometry.relative&&(u.x+=a.parent.geometry.x,u.y+=a.parent.geometry.y);d=d?null:(new mxRectangle(k+u.x*e,z+u.y*e)).grow(40*e);d=null!=d?
this.getCells(0,0,0,0,null,null,d,null,!0):null;w=this.view.getState(a);var C=null,E=null;if(null!=d){d=d.reverse();for(var D=0;D<d.length;D++)if(!this.isCellLocked(d[D])&&!this.model.isEdge(d[D])&&d[D]!=a)if(!this.model.isAncestor(a,d[D])&&this.isContainer(d[D])&&(null==C||d[D]==this.model.getParent(a)))C=d[D];else if(null==E&&this.isCellConnectable(d[D])&&!this.model.isAncestor(d[D],a)&&!this.isSwimlane(d[D])){var G=this.view.getState(d[D]);null==w||null==G||mxUtils.intersects(w,G)||(E=d[D])}}var J=
-!mxEvent.isShiftDown(f)||mxEvent.isControlDown(f)||h;J&&("1"!=urlParams.sketch||h)&&(b==mxConstants.DIRECTION_NORTH?u.y-=a.geometry.height/2:b==mxConstants.DIRECTION_SOUTH?u.y+=a.geometry.height/2:u.x=b==mxConstants.DIRECTION_WEST?u.x-a.geometry.width/2:u.x+a.geometry.width/2);var L=[],Q=E;E=C;h=mxUtils.bind(this,function(N){if(null==g||null!=N||null==E&&p){this.model.beginUpdate();try{if(null==Q&&J){var U=this.getAbsoluteParent(null!=N?N:a);U=p?a:this.getCompositeParent(U);Q=null!=N?N:this.duplicateCells([U],
-!1)[0];null!=N&&this.addCells([Q],this.model.getParent(a),null,null,null,!0);var Y=this.getCellGeometry(Q);null!=Y&&(null!=N&&"1"==urlParams.sketch&&(b==mxConstants.DIRECTION_NORTH?u.y-=Y.height/2:b==mxConstants.DIRECTION_SOUTH?u.y+=Y.height/2:u.x=b==mxConstants.DIRECTION_WEST?u.x-Y.width/2:u.x+Y.width/2),Y.x=u.x-Y.width/2,Y.y=u.y-Y.height/2);null!=C?(this.addCells([Q],C,null,null,null,!0),E=null):J&&!p&&this.addCells([Q],this.getDefaultParent(),null,null,null,!0)}var P=mxEvent.isControlDown(f)&&
-mxEvent.isShiftDown(f)&&J||null==E&&p?null:this.insertEdge(this.model.getParent(a),null,"",a,Q,this.createCurrentEdgeStyle());null!=P&&(L.push(P),this.applyNewEdgeStyle(a,[P],b),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(P,a));if(null==E&&null!=Q&&null!=a.parent&&p&&b==mxConstants.DIRECTION_WEST){var T=a.parent.getIndex(a);this.model.add(a.parent,Q,T)}null==E&&null!=Q&&L.push(Q);null==Q&&null!=P&&P.geometry.setTerminalPoint(u,!1);null!=P&&this.fireEvent(new mxEventObject("cellsInserted",
-"cells",[P]))}finally{this.model.endUpdate()}}if(null!=m)m(L);else return L});if(null==g||null!=Q||!J||null==E&&p)return h(Q);g(k+u.x*e,z+u.y*e,h)};
+!mxEvent.isShiftDown(f)||mxEvent.isControlDown(f)||h;J&&("1"!=urlParams.sketch||h)&&(b==mxConstants.DIRECTION_NORTH?u.y-=a.geometry.height/2:b==mxConstants.DIRECTION_SOUTH?u.y+=a.geometry.height/2:u.x=b==mxConstants.DIRECTION_WEST?u.x-a.geometry.width/2:u.x+a.geometry.width/2);var L=[],Q=E;E=C;h=mxUtils.bind(this,function(N){if(null==g||null!=N||null==E&&q){this.model.beginUpdate();try{if(null==Q&&J){var U=this.getAbsoluteParent(null!=N?N:a);U=q?a:this.getCompositeParent(U);Q=null!=N?N:this.duplicateCells([U],
+!1)[0];null!=N&&this.addCells([Q],this.model.getParent(a),null,null,null,!0);var Y=this.getCellGeometry(Q);null!=Y&&(null!=N&&"1"==urlParams.sketch&&(b==mxConstants.DIRECTION_NORTH?u.y-=Y.height/2:b==mxConstants.DIRECTION_SOUTH?u.y+=Y.height/2:u.x=b==mxConstants.DIRECTION_WEST?u.x-Y.width/2:u.x+Y.width/2),Y.x=u.x-Y.width/2,Y.y=u.y-Y.height/2);null!=C?(this.addCells([Q],C,null,null,null,!0),E=null):J&&!q&&this.addCells([Q],this.getDefaultParent(),null,null,null,!0)}var P=mxEvent.isControlDown(f)&&
+mxEvent.isShiftDown(f)&&J||null==E&&q?null:this.insertEdge(this.model.getParent(a),null,"",a,Q,this.createCurrentEdgeStyle());null!=P&&(L.push(P),this.applyNewEdgeStyle(a,[P],b),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(P,a));if(null==E&&null!=Q&&null!=a.parent&&q&&b==mxConstants.DIRECTION_WEST){var T=a.parent.getIndex(a);this.model.add(a.parent,Q,T)}null==E&&null!=Q&&L.push(Q);null==Q&&null!=P&&P.geometry.setTerminalPoint(u,!1);null!=P&&this.fireEvent(new mxEventObject("cellsInserted",
+"cells",[P]))}finally{this.model.endUpdate()}}if(null!=m)m(L);else return L});if(null==g||null!=Q||!J||null==E&&q)return h(Q);g(k+u.x*e,z+u.y*e,h)};
Graph.prototype.getIndexableText=function(a){a=null!=a?a:this.model.getDescendants(this.model.root);for(var b=document.createElement("div"),e=[],f,h=0;h<a.length;h++)if(f=a[h],this.model.isVertex(f)||this.model.isEdge(f))this.isHtmlLabel(f)?(b.innerHTML=Graph.sanitizeHtml(this.getLabel(f)),f=mxUtils.extractTextWithWhitespace([b])):f=this.getLabel(f),f=mxUtils.trim(f.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")),0<f.length&&e.push(f);return e.join(" ")};
Graph.prototype.convertValueToString=function(a){var b=this.model.getValue(a);if(null!=b&&"object"==typeof b){var e=null;if(this.isReplacePlaceholders(a)&&null!=a.getAttribute("placeholder")){b=a.getAttribute("placeholder");for(var f=a;null==e&&null!=f;)null!=f.value&&"object"==typeof f.value&&(e=f.hasAttribute(b)?null!=f.getAttribute(b)?f.getAttribute(b):"":null),f=this.model.getParent(f)}else e=null,Graph.translateDiagram&&null!=Graph.diagramLanguage&&(e=b.getAttribute("label_"+Graph.diagramLanguage)),
null==e&&(e=b.getAttribute("label")||"");return e||""}return mxGraph.prototype.convertValueToString.apply(this,arguments)};Graph.prototype.getLinksForState=function(a){return null!=a&&null!=a.text&&null!=a.text.node?a.text.node.getElementsByTagName("a"):null};Graph.prototype.getLinkForCell=function(a,b){return null!=a.value&&"object"==typeof a.value?(a=a.value.getAttribute("link"),b||(a=mxUtils.removeJavascriptProtocol(a)),a):null};
@@ -2700,8 +2700,8 @@ mxConstants.STYLE_IMAGE_BACKGROUND,a);this.replaceDefaultColor(b,mxConstants.STY
Graph.prototype.getDefaultColor=function(a,b,e){b="default"+b.charAt(0).toUpperCase()+b.substring(1);"invert"==a[b]&&(a=mxUtils.getLightDarkColor(e),e="light-dark("+a.dark+", "+a.light+")");return e};
Graph.prototype.setAdaptiveColors=function(a){this.adaptiveColors="default"==a?null:a;"1"==urlParams.embedInline?null!=this.container&&(this.container.style.colorScheme="none"==this.getAdaptiveColors()?"light":""):(a=this.view.getDrawPane().ownerSVGElement,null!=a&&(a.style.colorScheme="none"==this.getAdaptiveColors()?"light":""))};Graph.prototype.getAdaptiveColors=function(){return null!=this.adaptiveColors?this.adaptiveColors:Graph.defaultAdaptiveColors};
Graph.prototype.updateAlternateBounds=function(a,b,e){if(null!=a&&null!=b&&null!=this.layoutManager&&null!=b.alternateBounds){var f=this.layoutManager.getLayout(this.model.getParent(a));null!=f&&f.constructor==mxStackLayout&&(f.horizontal?b.alternateBounds.height=0:b.alternateBounds.width=0)}mxGraph.prototype.updateAlternateBounds.apply(this,arguments)};Graph.prototype.isMoveCellsEvent=function(a,b){return mxEvent.isShiftDown(a)||"1"==mxUtils.getValue(b.style,"moveCells","0")};
-Graph.prototype.foldCells=function(a,b,e,f,h){b=null!=b?b:!1;null==e&&(e=this.getFoldableCells(this.getSelectionCells(),a));if(null!=e){this.model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutManager)for(var d=0;d<e.length;d++){var g=this.view.getState(e[d]),m=this.getCellGeometry(e[d]);if(null!=g&&null!=m){var p=0,k=0;if(m.alternateBounds)p=m.width-m.alternateBounds.width,k=m.height-m.alternateBounds.height;else{var u=this.useCssTransforms?1:this.view.scale;
-p=Math.round(m.width-g.width/u);k=Math.round(m.height-g.height/u)}if(0!=k||0!=p){var w=this.model.getParent(e[d]),z=this.layoutManager.getLayout(w);null==z?null!=h&&this.isMoveCellsEvent(h,g)&&this.moveSiblings(g,w,p,k):null!=h&&mxEvent.isAltDown(h)||z.constructor!=mxStackLayout||z.resizeLast||this.resizeParentStacks(w,z,p,k)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(e)}};
+Graph.prototype.foldCells=function(a,b,e,f,h){b=null!=b?b:!1;null==e&&(e=this.getFoldableCells(this.getSelectionCells(),a));if(null!=e){this.model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutManager)for(var d=0;d<e.length;d++){var g=this.view.getState(e[d]),m=this.getCellGeometry(e[d]);if(null!=g&&null!=m){var q=0,k=0;if(m.alternateBounds)q=m.width-m.alternateBounds.width,k=m.height-m.alternateBounds.height;else{var u=this.useCssTransforms?1:this.view.scale;
+q=Math.round(m.width-g.width/u);k=Math.round(m.height-g.height/u)}if(0!=k||0!=q){var w=this.model.getParent(e[d]),z=this.layoutManager.getLayout(w);null==z?null!=h&&this.isMoveCellsEvent(h,g)&&this.moveSiblings(g,w,q,k):null!=h&&mxEvent.isAltDown(h)||z.constructor!=mxStackLayout||z.resizeLast||this.resizeParentStacks(w,z,q,k)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(e)}};
Graph.prototype.moveSiblings=function(a,b,e,f){this.model.beginUpdate();try{var h=this.getCellsBeyond(a.x,a.y,b,!0,!0);for(b=0;b<h.length;b++)if(h[b]!=a.cell){var d=this.view.getState(h[b]),g=this.getCellGeometry(h[b]);null!=d&&null!=g&&(g=g.clone(),g.translate(Math.round(e*Math.max(0,Math.min(1,(d.x-a.x)/a.width))),Math.round(f*Math.max(0,Math.min(1,(d.y-a.y)/a.height)))),this.model.setGeometry(h[b],g))}}finally{this.model.endUpdate()}};
Graph.prototype.resizeParentStacks=function(a,b,e,f){if(null!=this.layoutManager&&null!=b&&b.constructor==mxStackLayout&&!b.resizeLast){this.model.beginUpdate();try{for(var h=b.horizontal;null!=a&&null!=b&&b.constructor==mxStackLayout&&b.horizontal==h&&!b.resizeLast;){var d=this.getCellGeometry(a),g=this.view.getState(a);null!=g&&null!=d&&(d=d.clone(),b.horizontal?d.width+=e+Math.min(0,g.width/this.view.scale-d.width):d.height+=f+Math.min(0,g.height/this.view.scale-d.height),this.model.setGeometry(a,
d));a=this.model.getParent(a);b=this.layoutManager.getLayout(a)}}finally{this.model.endUpdate()}}};Graph.prototype.isContainer=function(a){var b=this.getCurrentCellStyle(a);return this.isSwimlane(a)?"0"!=b.container:"1"==b.container};Graph.prototype.isCellConnectable=function(a){var b=this.getCurrentCellStyle(a);return!this.isCellLocked(this.getLayerForCell(a))&&(null!=b.connectable?"0"!=b.connectable:mxGraph.prototype.isCellConnectable.apply(this,arguments))};
@@ -2743,10 +2743,10 @@ HoverIcons.prototype.click=function(a,b,e){var f=e.getEvent(),h=e.getGraphX(),d=
HoverIcons.prototype.execute=function(a,b,e){e=e.getEvent();this.graph.selectCellsForConnectVertex(this.graph.connectVertex(a.cell,b,this.graph.defaultEdgeLength,e,this.graph.isCloneEvent(e),this.graph.isCloneEvent(e)),e,this)};HoverIcons.prototype.reset=function(a){null!=a&&!a||null==this.updateThread||window.clearTimeout(this.updateThread);this.activeArrow=this.currentState=this.mouseDownPoint=null;this.removeNodes();this.bbox=null;this.fireEvent(new mxEventObject("reset"))};
HoverIcons.prototype.repaint=function(){this.bbox=null;if(null!=this.currentState){this.currentState=this.getState(this.currentState);if(null!=this.currentState&&this.graph.model.isVertex(this.currentState.cell)&&this.graph.isCellConnectable(this.currentState.cell)){var a=mxRectangle.fromRectangle(this.currentState);null!=this.currentState.shape&&null!=this.currentState.shape.boundingBox&&(a=mxRectangle.fromRectangle(this.currentState.shape.boundingBox));a.grow(this.graph.tolerance);a.grow(this.arrowSpacing);
var b=this.graph.selectionCellsHandler.getHandler(this.currentState.cell);this.graph.isTableRow(this.currentState.cell)&&(b=this.graph.selectionCellsHandler.getHandler(this.graph.model.getParent(this.currentState.cell)));var e=null;null!=b&&(a.x-=b.horizontalOffset/2,a.y-=b.verticalOffset/2,a.width+=b.horizontalOffset,a.height+=b.verticalOffset,null!=b.rotationShape&&null!=b.rotationShape.node&&"hidden"!=b.rotationShape.node.style.visibility&&"none"!=b.rotationShape.node.style.display&&null!=b.rotationShape.boundingBox&&
-(e=b.rotationShape.boundingBox));b=mxUtils.bind(this,function(m,p,k){if(null!=e){var u=new mxRectangle(p,k,m.clientWidth,m.clientHeight);mxUtils.intersects(u,e)&&(m==this.arrowUp?k-=u.y+u.height-e.y:m==this.arrowRight?p+=e.x+e.width-u.x:m==this.arrowDown?k+=e.y+e.height-u.y:m==this.arrowLeft&&(p-=u.x+u.width-e.x))}m.style.left=p+"px";m.style.top=k+"px";mxUtils.setOpacity(m,this.inactiveOpacity)});b(this.arrowUp,Math.round(this.currentState.getCenterX()-this.triangleUp.width/2-this.tolerance),Math.round(a.y-
+(e=b.rotationShape.boundingBox));b=mxUtils.bind(this,function(m,q,k){if(null!=e){var u=new mxRectangle(q,k,m.clientWidth,m.clientHeight);mxUtils.intersects(u,e)&&(m==this.arrowUp?k-=u.y+u.height-e.y:m==this.arrowRight?q+=e.x+e.width-u.x:m==this.arrowDown?k+=e.y+e.height-u.y:m==this.arrowLeft&&(q-=u.x+u.width-e.x))}m.style.left=q+"px";m.style.top=k+"px";mxUtils.setOpacity(m,this.inactiveOpacity)});b(this.arrowUp,Math.round(this.currentState.getCenterX()-this.triangleUp.width/2-this.tolerance),Math.round(a.y-
this.triangleUp.height-this.tolerance));b(this.arrowRight,Math.round(a.x+a.width-this.tolerance),Math.round(this.currentState.getCenterY()-this.triangleRight.height/2-this.tolerance));b(this.arrowDown,parseInt(this.arrowUp.style.left),Math.round(a.y+a.height-this.tolerance));b(this.arrowLeft,Math.round(a.x-this.triangleLeft.width-this.tolerance),parseInt(this.arrowRight.style.top));if(this.checkCollisions){b=this.graph.getCellAt(a.x+a.width+this.triangleRight.width/2,this.currentState.getCenterY());
-var f=this.graph.getCellAt(a.x-this.triangleLeft.width/2,this.currentState.getCenterY()),h=this.graph.getCellAt(this.currentState.getCenterX(),a.y-this.triangleUp.height/2);a=this.graph.getCellAt(this.currentState.getCenterX(),a.y+a.height+this.triangleDown.height/2);null!=b&&b==f&&f==h&&h==a&&(a=h=f=b=null);var d=this.graph.getCellGeometry(this.currentState.cell),g=mxUtils.bind(this,function(m,p){var k=this.graph.model.isVertex(m)&&this.graph.getCellGeometry(m);null==m||this.graph.model.isAncestor(m,
-this.currentState.cell)||this.graph.isSwimlane(m)||!(null==k||null==d||k.height<3*d.height&&k.width<3*d.width)?p.style.visibility="visible":p.style.visibility="hidden"});g(b,this.arrowRight);g(f,this.arrowLeft);g(h,this.arrowUp);g(a,this.arrowDown)}else this.arrowLeft.style.visibility="visible",this.arrowRight.style.visibility="visible",this.arrowUp.style.visibility="visible",this.arrowDown.style.visibility="visible";this.graph.tooltipHandler.isEnabled()?(this.arrowLeft.setAttribute("title",mxResources.get("plusTooltip")),
+var f=this.graph.getCellAt(a.x-this.triangleLeft.width/2,this.currentState.getCenterY()),h=this.graph.getCellAt(this.currentState.getCenterX(),a.y-this.triangleUp.height/2);a=this.graph.getCellAt(this.currentState.getCenterX(),a.y+a.height+this.triangleDown.height/2);null!=b&&b==f&&f==h&&h==a&&(a=h=f=b=null);var d=this.graph.getCellGeometry(this.currentState.cell),g=mxUtils.bind(this,function(m,q){var k=this.graph.model.isVertex(m)&&this.graph.getCellGeometry(m);null==m||this.graph.model.isAncestor(m,
+this.currentState.cell)||this.graph.isSwimlane(m)||!(null==k||null==d||k.height<3*d.height&&k.width<3*d.width)?q.style.visibility="visible":q.style.visibility="hidden"});g(b,this.arrowRight);g(f,this.arrowLeft);g(h,this.arrowUp);g(a,this.arrowDown)}else this.arrowLeft.style.visibility="visible",this.arrowRight.style.visibility="visible",this.arrowUp.style.visibility="visible",this.arrowDown.style.visibility="visible";this.graph.tooltipHandler.isEnabled()?(this.arrowLeft.setAttribute("title",mxResources.get("plusTooltip")),
this.arrowRight.setAttribute("title",mxResources.get("plusTooltip")),this.arrowUp.setAttribute("title",mxResources.get("plusTooltip")),this.arrowDown.setAttribute("title",mxResources.get("plusTooltip"))):(this.arrowLeft.removeAttribute("title"),this.arrowRight.removeAttribute("title"),this.arrowUp.removeAttribute("title"),this.arrowDown.removeAttribute("title"))}else this.reset();null!=this.currentState&&(this.bbox=this.computeBoundingBox(),null!=this.bbox&&this.bbox.grow(10))}};
HoverIcons.prototype.computeBoundingBox=function(){var a=this.graph.model.isEdge(this.currentState.cell)?null:mxRectangle.fromRectangle(this.currentState);this.visitNodes(function(b){null!=b.parentNode&&(b=new mxRectangle(b.offsetLeft,b.offsetTop,b.offsetWidth,b.offsetHeight),null==a?a=b:a.add(b))});return a};
HoverIcons.prototype.getState=function(a){if(null!=a)if(a=a.cell,this.graph.getModel().contains(a)){if(this.graph.getModel().isVertex(a)&&!this.graph.isCellConnectable(a)){var b=this.graph.getModel().getParent(a);this.graph.getModel().isVertex(b)&&this.graph.isCellConnectable(b)&&(a=b)}if(this.graph.isCellLocked(a)||this.graph.model.isEdge(a))a=null;a=this.graph.view.getState(a);null!=a&&null==a.style&&(a=null)}else a=null;return a};
@@ -2756,26 +2756,26 @@ a||null==this.bbox||null==b||null==e||!mxUtils.contains(this.bbox,b,e))&&(null!=
HoverIcons.prototype.setCurrentState=function(a){"eastwest"!=a.style.portConstraint&&(this.graph.container.appendChild(this.arrowUp),this.graph.container.appendChild(this.arrowDown));this.graph.container.appendChild(this.arrowRight);this.graph.container.appendChild(this.arrowLeft);this.currentState=a};
Graph.prototype.removeTextStyleForCell=function(a,b){var e=this.getCurrentCellStyle(a),f=!1;this.getModel().beginUpdate();try{if("1"==mxUtils.getValue(e,"html","0")){var h=this.convertValueToString(a);"0"!=mxUtils.getValue(e,"nl2Br","1")&&(h=h.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n"));h=Editor.convertHtmlToText(h);this.cellLabelChanged(a,h);f=!0}b&&(this.setCellStyles("fontSource",null,[a]),this.setCellStyles(mxConstants.STYLE_FONTFAMILY,null,[a]),this.setCellStyles(mxConstants.STYLE_FONTSIZE,
null,[a]),this.setCellStyles(mxConstants.STYLE_FONTSTYLE,null,[a]),this.setCellStyles(mxConstants.STYLE_FONTCOLOR,null,[a]),this.setCellStyles(mxConstants.STYLE_LABEL_BORDERCOLOR,null,[a]),this.setCellStyles(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null,[a]))}finally{this.getModel().endUpdate()}return f};Graph.prototype.createParent=function(a,b,e,f,h){a=this.cloneCell(a);for(var d=0;d<e;d++){var g=this.cloneCell(b),m=this.getCellGeometry(g);null!=m&&(m.x+=d*f,m.y+=d*h);a.insert(g)}return a};
-Graph.prototype.createTable=function(a,b,e,f,h,d,g,m,p){e=null!=e?e:60;f=null!=f?f:40;d=null!=d?d:30;m=null!=m?m:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;";p=null!=p?p:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";return this.createParent(this.createVertex(null,
-null,null!=h?h:"",0,0,b*e,a*f+(null!=h?d:0),null!=g?g:"shape=table;startSize="+(null!=h?d:"0")+";container=1;collapsible=0;childLayout=tableLayout;"),this.createParent(this.createVertex(null,null,"",0,0,b*e,f,m),this.createVertex(null,null,"",0,0,e,f,p),b,e,0),a,0,f)};
+Graph.prototype.createTable=function(a,b,e,f,h,d,g,m,q){e=null!=e?e:60;f=null!=f?f:40;d=null!=d?d:30;m=null!=m?m:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;";q=null!=q?q:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";return this.createParent(this.createVertex(null,
+null,null!=h?h:"",0,0,b*e,a*f+(null!=h?d:0),null!=g?g:"shape=table;startSize="+(null!=h?d:"0")+";container=1;collapsible=0;childLayout=tableLayout;"),this.createParent(this.createVertex(null,null,"",0,0,b*e,f,m),this.createVertex(null,null,"",0,0,e,f,q),b,e,0),a,0,f)};
Graph.prototype.setTableValues=function(a,b,e){for(var f=this.model.getChildCells(a,!0),h=0;h<f.length;h++)if(null!=e&&(f[h].value=e[h]),null!=b)for(var d=this.model.getChildCells(f[h],!0),g=0;g<d.length;g++)null!=b[h][g]&&(d[g].value=b[h][g]);return a};
-Graph.prototype.createCrossFunctionalSwimlane=function(a,b,e,f,h,d,g,m,p){e=null!=e?e:120;f=null!=f?f:120;g=null!=g?g:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;collapsible=0;recursiveResize=0;expand=0;";m=null!=m?m:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
-p=null!=p?p:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";h=this.createVertex(null,null,null!=h?h:"",0,0,b*e,a*f,null!=d?d:"shape=table;childLayout=tableLayout;"+(null==h?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");d=mxUtils.getValue(this.getCellStyle(h),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);h.geometry.width+=d;h.geometry.height+=
-d;g=this.createVertex(null,null,"",0,d,b*e+d,f,g);h.insert(this.createParent(g,this.createVertex(null,null,"",d,0,e,f,m),b,e,0));return 1<a?(g.geometry.y=f+d,this.createParent(h,this.createParent(g,this.createVertex(null,null,"",d,0,e,f,p),b,e,0),a-1,0,f)):h};
-Graph.prototype.visitTableCells=function(a,b){var e=null,f=this.model.getChildCells(a,!0);a=this.getActualStartSize(a,!0);for(var h=0;h<f.length;h++){for(var d=this.getActualStartSize(f[h],!0),g=this.model.getChildCells(f[h],!0),m=this.getCellStyle(f[h],!0),p=null,k=[],u=0;u<g.length;u++){var w=this.getCellGeometry(g[u]),z={cell:g[u],rospan:1,colspan:1,row:h,col:u,geo:w};w=null!=w.alternateBounds?w.alternateBounds:w;z.point=new mxPoint(w.width+(null!=p?p.point.x:a.x+d.x),w.height+(null!=e&&null!=
-e[0]?e[0].point.y:a.y+d.y));z.actual=z;null!=e&&null!=e[u]&&1<e[u].rowspan?(z.rowspan=e[u].rowspan-1,z.colspan=e[u].colspan,z.actual=e[u].actual):null!=p&&1<p.colspan?(z.rowspan=p.rowspan,z.colspan=p.colspan-1,z.actual=p.actual):(p=this.getCurrentCellStyle(g[u],!0),null!=p&&(z.rowspan=parseInt(p.rowspan||1),z.colspan=parseInt(p.colspan||1)));p=1==mxUtils.getValue(m,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(m,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;b(z,g.length,
-f.length,a.x+(p?d.x:0),a.y+(p?d.y:0));k.push(z);p=z}e=k}};Graph.prototype.getTableLines=function(a,b,e){var f=[],h=[];(b||e)&&this.visitTableCells(a,mxUtils.bind(this,function(d,g,m,p,k){b&&d.row<m-1&&(null==f[d.row]&&(f[d.row]=[new mxPoint(p,d.point.y)]),1<d.rowspan&&f[d.row].push(null),f[d.row].push(d.point));e&&d.col<g-1&&(null==h[d.col]&&(h[d.col]=[new mxPoint(d.point.x,k)]),1<d.colspan&&h[d.col].push(null),h[d.col].push(d.point))}));return f.concat(h)};
+Graph.prototype.createCrossFunctionalSwimlane=function(a,b,e,f,h,d,g,m,q){e=null!=e?e:120;f=null!=f?f:120;g=null!=g?g:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;collapsible=0;recursiveResize=0;expand=0;";m=null!=m?m:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
+q=null!=q?q:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";h=this.createVertex(null,null,null!=h?h:"",0,0,b*e,a*f,null!=d?d:"shape=table;childLayout=tableLayout;"+(null==h?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");d=mxUtils.getValue(this.getCellStyle(h),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);h.geometry.width+=d;h.geometry.height+=
+d;g=this.createVertex(null,null,"",0,d,b*e+d,f,g);h.insert(this.createParent(g,this.createVertex(null,null,"",d,0,e,f,m),b,e,0));return 1<a?(g.geometry.y=f+d,this.createParent(h,this.createParent(g,this.createVertex(null,null,"",d,0,e,f,q),b,e,0),a-1,0,f)):h};
+Graph.prototype.visitTableCells=function(a,b){var e=null,f=this.model.getChildCells(a,!0);a=this.getActualStartSize(a,!0);for(var h=0;h<f.length;h++){for(var d=this.getActualStartSize(f[h],!0),g=this.model.getChildCells(f[h],!0),m=this.getCellStyle(f[h],!0),q=null,k=[],u=0;u<g.length;u++){var w=this.getCellGeometry(g[u]),z={cell:g[u],rospan:1,colspan:1,row:h,col:u,geo:w};w=null!=w.alternateBounds?w.alternateBounds:w;z.point=new mxPoint(w.width+(null!=q?q.point.x:a.x+d.x),w.height+(null!=e&&null!=
+e[0]?e[0].point.y:a.y+d.y));z.actual=z;null!=e&&null!=e[u]&&1<e[u].rowspan?(z.rowspan=e[u].rowspan-1,z.colspan=e[u].colspan,z.actual=e[u].actual):null!=q&&1<q.colspan?(z.rowspan=q.rowspan,z.colspan=q.colspan-1,z.actual=q.actual):(q=this.getCurrentCellStyle(g[u],!0),null!=q&&(z.rowspan=parseInt(q.rowspan||1),z.colspan=parseInt(q.colspan||1)));q=1==mxUtils.getValue(m,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(m,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;b(z,g.length,
+f.length,a.x+(q?d.x:0),a.y+(q?d.y:0));k.push(z);q=z}e=k}};Graph.prototype.getTableLines=function(a,b,e){var f=[],h=[];(b||e)&&this.visitTableCells(a,mxUtils.bind(this,function(d,g,m,q,k){b&&d.row<m-1&&(null==f[d.row]&&(f[d.row]=[new mxPoint(q,d.point.y)]),1<d.rowspan&&f[d.row].push(null),f[d.row].push(d.point));e&&d.col<g-1&&(null==h[d.col]&&(h[d.col]=[new mxPoint(d.point.x,k)]),1<d.colspan&&h[d.col].push(null),h[d.col].push(d.point))}));return f.concat(h)};
Graph.prototype.isTableCell=function(a){return this.model.isVertex(a)&&this.isTableRow(this.model.getParent(a))};Graph.prototype.isTableRow=function(a){return this.model.isVertex(a)&&this.isTable(this.model.getParent(a))};Graph.prototype.isTable=function(a){a=this.getCellStyle(a);return null!=a&&"tableLayout"==a.childLayout};Graph.prototype.isStack=function(a){a=this.getCellStyle(a);return null!=a&&"stackLayout"==a.childLayout};
Graph.prototype.isStackChild=function(a){return this.model.isVertex(a)&&this.isStack(this.model.getParent(a))};
-Graph.prototype.setTableRowHeight=function(a,b,e){e=null!=e?e:!0;var f=this.getModel();f.beginUpdate();try{var h=this.getCellGeometry(a);if(null!=h){h=h.clone();h.height+=b;f.setGeometry(a,h);var d=f.getParent(a),g=f.getChildCells(d,!0);if(!e){var m=mxUtils.indexOf(g,a);if(m<g.length-1){var p=g[m+1],k=this.getCellGeometry(p);null!=k&&(k=k.clone(),k.y+=b,k.height-=b,f.setGeometry(p,k))}}var u=this.getCellGeometry(d);null!=u&&(e||(e=a==g[g.length-1]),e&&(u=u.clone(),u.height+=b,f.setGeometry(d,u)))}}finally{f.endUpdate()}};
-Graph.prototype.setTableColumnWidth=function(a,b,e){e=null!=e?e:!1;var f=this.getModel(),h=f.getParent(a),d=f.getParent(h),g=f.getChildCells(h,!0);a=mxUtils.indexOf(g,a);var m=a==g.length-1;f.beginUpdate();try{for(var p=f.getChildCells(d,!0),k=0;k<p.length;k++){h=p[k];g=f.getChildCells(h,!0);var u=g[a],w=this.getCellGeometry(u);null!=w&&(w=w.clone(),w.width+=b,null!=w.alternateBounds&&(w.alternateBounds.width+=b),f.setGeometry(u,w));a<g.length-1&&(u=g[a+1],w=this.getCellGeometry(u),null!=w&&(w=w.clone(),
+Graph.prototype.setTableRowHeight=function(a,b,e){e=null!=e?e:!0;var f=this.getModel();f.beginUpdate();try{var h=this.getCellGeometry(a);if(null!=h){h=h.clone();h.height+=b;f.setGeometry(a,h);var d=f.getParent(a),g=f.getChildCells(d,!0);if(!e){var m=mxUtils.indexOf(g,a);if(m<g.length-1){var q=g[m+1],k=this.getCellGeometry(q);null!=k&&(k=k.clone(),k.y+=b,k.height-=b,f.setGeometry(q,k))}}var u=this.getCellGeometry(d);null!=u&&(e||(e=a==g[g.length-1]),e&&(u=u.clone(),u.height+=b,f.setGeometry(d,u)))}}finally{f.endUpdate()}};
+Graph.prototype.setTableColumnWidth=function(a,b,e){e=null!=e?e:!1;var f=this.getModel(),h=f.getParent(a),d=f.getParent(h),g=f.getChildCells(h,!0);a=mxUtils.indexOf(g,a);var m=a==g.length-1;f.beginUpdate();try{for(var q=f.getChildCells(d,!0),k=0;k<q.length;k++){h=q[k];g=f.getChildCells(h,!0);var u=g[a],w=this.getCellGeometry(u);null!=w&&(w=w.clone(),w.width+=b,null!=w.alternateBounds&&(w.alternateBounds.width+=b),f.setGeometry(u,w));a<g.length-1&&(u=g[a+1],w=this.getCellGeometry(u),null!=w&&(w=w.clone(),
w.x+=b,e||(w.width-=b,null!=w.alternateBounds&&(w.alternateBounds.width-=b)),f.setGeometry(u,w)))}if(m||e){var z=this.getCellGeometry(d);null!=z&&(z=z.clone(),z.width+=b,f.setGeometry(d,z))}null!=this.layoutManager&&this.layoutManager.executeLayout(d)}finally{f.endUpdate()}};function TableLayout(a){mxGraphLayout.call(this,a)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!1};
TableLayout.prototype.isVertexIgnored=function(a){return!this.graph.getModel().isVertex(a)||!this.graph.isCellVisible(a)};TableLayout.prototype.getSize=function(a,b){for(var e=0,f=0;f<a.length;f++)if(!this.isVertexIgnored(a[f])){var h=this.graph.getCellGeometry(a[f]);null!=h&&(e+=b?h.width:h.height)}return e};
TableLayout.prototype.getRowLayout=function(a,b){var e=this.graph.model.getChildCells(a,!0),f=this.graph.getActualStartSize(a,!0);a=this.getSize(e,!0);b=b-f.x-f.width;var h=[];f=f.x;for(var d=0;d<e.length;d++){var g=this.graph.getCellGeometry(e[d]);null!=g&&(f+=(null!=g.alternateBounds?g.alternateBounds.width:g.width)*b/a,h.push(Math.round(f)))}return h};
-TableLayout.prototype.layoutRow=function(a,b,e,f){var h=this.graph.getModel(),d=h.getChildCells(a,!0);a=this.graph.getActualStartSize(a,!0);var g=a.x,m=0;null!=b&&(b=b.slice(),b.splice(0,0,a.x));for(var p=0;p<d.length;p++){var k=this.graph.getCellGeometry(d[p]);null!=k&&(k=k.clone(),k.y=a.y,k.height=e-a.y-a.height,null!=b?(k.x=b[p],k.width=b[p+1]-k.x,p==d.length-1&&p<b.length-2&&(k.width=f-k.x-a.x-a.width)):(k.x=g,g+=k.width,p==d.length-1?k.width=f-a.x-a.width-m:m+=k.width),k.alternateBounds=new mxRectangle(0,
-0,k.width,k.height),h.setGeometry(d[p],k))}return m};
-TableLayout.prototype.execute=function(a){if(null!=a){var b=this.graph.getActualStartSize(a,!0),e=this.graph.getCellGeometry(a),f=this.graph.getCellStyle(a),h="1"==mxUtils.getValue(f,"resizeLastRow","0"),d="1"==mxUtils.getValue(f,"resizeLast","0");f="1"==mxUtils.getValue(f,"fixedRows","0");var g=this.graph.getModel(),m=0;g.beginUpdate();try{for(var p=e.height-b.y-b.height,k=e.width-b.x-b.width,u=g.getChildCells(a,!0),w=0;w<u.length;w++)g.setVisible(u[w],!0);var z=this.getSize(u,!1);if(0<p&&0<k&&0<
-u.length&&0<z){if(h){var C=this.graph.getCellGeometry(u[u.length-1]);null!=C&&(C=C.clone(),C.height=p-z+C.height,g.setGeometry(u[u.length-1],C))}var E=d?null:this.getRowLayout(u[0],k),D=[],G=b.y;for(w=0;w<u.length;w++)C=this.graph.getCellGeometry(u[w]),null!=C&&(C=C.clone(),C.x=b.x,C.width=k,C.y=Math.round(G),G=h||f?G+C.height:G+C.height/z*p,C.height=Math.round(G)-C.y,g.setGeometry(u[w],C)),m=Math.max(m,this.layoutRow(u[w],E,C.height,k,D));f&&p<z&&(e=e.clone(),e.height=G+b.height,g.setGeometry(a,
+TableLayout.prototype.layoutRow=function(a,b,e,f){var h=this.graph.getModel(),d=h.getChildCells(a,!0);a=this.graph.getActualStartSize(a,!0);var g=a.x,m=0;null!=b&&(b=b.slice(),b.splice(0,0,a.x));for(var q=0;q<d.length;q++){var k=this.graph.getCellGeometry(d[q]);null!=k&&(k=k.clone(),k.y=a.y,k.height=e-a.y-a.height,null!=b?(k.x=b[q],k.width=b[q+1]-k.x,q==d.length-1&&q<b.length-2&&(k.width=f-k.x-a.x-a.width)):(k.x=g,g+=k.width,q==d.length-1?k.width=f-a.x-a.width-m:m+=k.width),k.alternateBounds=new mxRectangle(0,
+0,k.width,k.height),h.setGeometry(d[q],k))}return m};
+TableLayout.prototype.execute=function(a){if(null!=a){var b=this.graph.getActualStartSize(a,!0),e=this.graph.getCellGeometry(a),f=this.graph.getCellStyle(a),h="1"==mxUtils.getValue(f,"resizeLastRow","0"),d="1"==mxUtils.getValue(f,"resizeLast","0");f="1"==mxUtils.getValue(f,"fixedRows","0");var g=this.graph.getModel(),m=0;g.beginUpdate();try{for(var q=e.height-b.y-b.height,k=e.width-b.x-b.width,u=g.getChildCells(a,!0),w=0;w<u.length;w++)g.setVisible(u[w],!0);var z=this.getSize(u,!1);if(0<q&&0<k&&0<
+u.length&&0<z){if(h){var C=this.graph.getCellGeometry(u[u.length-1]);null!=C&&(C=C.clone(),C.height=q-z+C.height,g.setGeometry(u[u.length-1],C))}var E=d?null:this.getRowLayout(u[0],k),D=[],G=b.y;for(w=0;w<u.length;w++)C=this.graph.getCellGeometry(u[w]),null!=C&&(C=C.clone(),C.x=b.x,C.width=k,C.y=Math.round(G),G=h||f?G+C.height:G+C.height/z*q,C.height=Math.round(G)-C.y,g.setGeometry(u[w],C)),m=Math.max(m,this.layoutRow(u[w],E,C.height,k,D));f&&q<z&&(e=e.clone(),e.height=G+b.height,g.setGeometry(a,
e));d&&k<m+Graph.minTableColumnWidth&&(e=e.clone(),e.width=m+b.width+b.x+Graph.minTableColumnWidth,g.setGeometry(a,e));this.graph.visitTableCells(a,mxUtils.bind(this,function(J){g.setVisible(J.cell,J.actual.cell==J.cell);if(J.actual.cell!=J.cell){if(J.actual.row==J.row){var L=null!=J.geo.alternateBounds?J.geo.alternateBounds:J.geo;J.actual.geo.width+=L.width}J.actual.col==J.col&&(L=null!=J.geo.alternateBounds?J.geo.alternateBounds:J.geo,J.actual.geo.height+=L.height)}}))}else for(w=0;w<u.length;w++)g.setVisible(u[w],
!1)}finally{g.endUpdate()}}};
(function(){var a=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){a.apply(this,arguments);this.validEdges=[]};var b=mxGraphView.prototype.validateCellState;mxGraphView.prototype.validateCellState=function(w,z){z=null!=z?z:!0;var C=this.getState(w);null!=C&&z&&this.graph.model.isEdge(C.cell)&&null!=C.style&&1!=C.style[mxConstants.STYLE_CURVED]&&!C.invalid&&this.updateLineJumps(C)&&this.graph.cellRenderer.redraw(C,!1,this.isRendering());C=b.apply(this,
@@ -2789,7 +2789,7 @@ U=T[P+2];var ia=mxUtils.intersection(Q.x,Q.y,L.x,L.y,Z.x,Z.y,V.x,V.y);if(null!=i
arguments);else{var E=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,D=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,G=mxUtils.getValue(this.style,"jumpStyle","none"),J=!0,L=null,Q=null,N=[],U=null;w.begin();for(var Y=0;Y<this.state.routedPoints.length;Y++){var P=this.state.routedPoints[Y],T=new mxPoint(P.x/this.scale,P.y/this.scale);0==Y?T=z[0]:Y==this.state.routedPoints.length-1&&(T=z[z.length-1]);var K=!1;if(null!=
L&&1==P.type){var V=this.state.routedPoints[Y+1];P=V.x/this.scale-T.x;V=V.y/this.scale-T.y;P=P*P+V*V;null==U&&(U=new mxPoint(T.x-L.x,T.y-L.y),Q=Math.sqrt(U.x*U.x+U.y*U.y),0<Q?(U.x=U.x*D/Q,U.y=U.y*D/Q):U=null);P>D*D&&0<Q&&(P=L.x-T.x,V=L.y-T.y,P=P*P+V*V,P>D*D&&(K=new mxPoint(T.x-U.x,T.y-U.y),P=new mxPoint(T.x+U.x,T.y+U.y),N.push(K),this.addPoints(w,N,C,E,!1,null,J),N=0>Math.round(U.x)||0==Math.round(U.x)&&0>=Math.round(U.y)?1:-1,J=!1,"sharp"==G?(w.lineTo(K.x-U.y*N,K.y+U.x*N),w.lineTo(P.x-U.y*N,P.y+
U.x*N),w.lineTo(P.x,P.y)):"line"==G?(w.moveTo(K.x+U.y*N,K.y-U.x*N),w.lineTo(K.x-U.y*N,K.y+U.x*N),w.moveTo(P.x-U.y*N,P.y+U.x*N),w.lineTo(P.x+U.y*N,P.y-U.x*N),w.moveTo(P.x,P.y)):"arc"==G?(N*=1.3,w.curveTo(K.x-U.y*N,K.y+U.x*N,P.x-U.y*N,P.y+U.x*N,P.x,P.y)):(w.moveTo(P.x,P.y),J=!0),N=[P],K=!0))}else U=null;K||(N.push(T),L=T)}this.addPoints(w,N,C,E,!1,null,J);w.stroke()}};var m=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=function(w,z,C,E){return null!=z&&"centerPerimeter"==
-z.style[mxConstants.STYLE_PERIMETER]?new mxPoint(z.getCenterX(),z.getCenterY()):m.apply(this,arguments)};var p=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(w,z,C,E){if(null==z||null==w||"1"!=z.style.snapToPoint&&"1"!=w.style.snapToPoint)p.apply(this,arguments);else{z=this.getTerminalPort(w,z,E);var D=this.getNextPoint(w,C,E),G=this.graph.isOrthogonal(w),J=mxUtils.toRadians(Number(z.style[mxConstants.STYLE_ROTATION]||"0")),L=new mxPoint(z.getCenterX(),
+z.style[mxConstants.STYLE_PERIMETER]?new mxPoint(z.getCenterX(),z.getCenterY()):m.apply(this,arguments)};var q=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(w,z,C,E){if(null==z||null==w||"1"!=z.style.snapToPoint&&"1"!=w.style.snapToPoint)q.apply(this,arguments);else{z=this.getTerminalPort(w,z,E);var D=this.getNextPoint(w,C,E),G=this.graph.isOrthogonal(w),J=mxUtils.toRadians(Number(z.style[mxConstants.STYLE_ROTATION]||"0")),L=new mxPoint(z.getCenterX(),
z.getCenterY());if(0!=J){var Q=Math.cos(-J),N=Math.sin(-J);D=mxUtils.getRotatedPoint(D,Q,N,L)}Q=parseFloat(w.style[mxConstants.STYLE_PERIMETER_SPACING]||0);Q+=parseFloat(w.style[E?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);D=this.getPerimeterPoint(z,D,0==J&&G,Q);0!=J&&(Q=Math.cos(J),N=Math.sin(J),D=mxUtils.getRotatedPoint(D,Q,N,L));w.setAbsoluteTerminalPoint(this.snapToAnchorPoint(w,z,C,E,D),E)}};mxGraphView.prototype.snapToAnchorPoint=function(w,z,
C,E,D){if(null!=z&&null!=w){w=this.graph.getAllConnectionConstraints(z);E=C=null;if(null!=w)for(var G=0;G<w.length;G++){var J=this.graph.getConnectionPoint(z,w[G]);if(null!=J){var L=(J.x-D.x)*(J.x-D.x)+(J.y-D.y)*(J.y-D.y);if(null==E||L<E)C=J,E=L}}null!=C&&(D=C)}return D};var k=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(w,z,C){var E=k.apply(this,arguments);"1"==w.getAttribute("placeholders")&&null!=C.state&&(E=C.state.view.graph.replacePlaceholders(C.state.cell,
E));return E};var u=mxCellRenderer.prototype.createShape;mxCellRenderer.prototype.createShape=function(w){if(null!=w.style&&"undefined"!==typeof pako){var z=mxUtils.getValue(w.style,mxConstants.STYLE_SHAPE,null);if(null!=z&&"string"===typeof z&&"stencil("==z.substring(0,8))try{var C=z.substring(8,z.length-1),E=mxUtils.parseXml(Graph.decompress(C));return new mxShape(new mxStencil(E.documentElement))}catch(D){null!=window.console&&console.log("Error in shape: "+D)}}return u.apply(this,arguments)}})();
@@ -2801,156 +2801,156 @@ mxStencilRegistry.loadStencilSet=function(a,b,e,f){var h=mxStencilRegistry.packa
h.documentElement&&mxStencilRegistry.parseStencilSet(h.documentElement,b,d)}};mxStencilRegistry.loadStencil=function(a,b){if(null!=b)mxUtils.get(a,mxUtils.bind(this,function(e){b(200<=e.getStatus()&&299>=e.getStatus()?e.getXml():null)}),mxUtils.bind(this,function(e){b(null)}));else return mxUtils.load(a).getXml()};mxStencilRegistry.parseStencilSets=function(a){for(var b=0;b<a.length;b++)mxStencilRegistry.parseStencilSet(mxUtils.parseXml(a[b]).documentElement)};
mxStencilRegistry.parseStencilSet=function(a,b,e){if("stencils"==a.nodeName)for(var f=a.firstChild;null!=f;)"shapes"==f.nodeName&&mxStencilRegistry.parseStencilSet(f,b,e),f=f.nextSibling;else{e=null!=e?e:!0;f=a.firstChild;var h="";a=a.getAttribute("name");for(null!=a&&(h=a+".");null!=f;){if(f.nodeType==mxConstants.NODETYPE_ELEMENT&&(a=f.getAttribute("name"),null!=a)){h=h.toLowerCase();var d=a.replace(/ /g,"_");e&&mxStencilRegistry.addStencil(h+d.toLowerCase(),new mxStencil(f));if(null!=b){var g=f.getAttribute("w"),
m=f.getAttribute("h");g=null==g?80:parseInt(g,10);m=null==m?80:parseInt(m,10);b(h,d,a,g,m)}}f=f.nextSibling}}};
-"undefined"!==typeof mxVertexHandler&&function(){function a(){var q=document.createElement("div");q.className="geHint";q.style.whiteSpace="nowrap";q.style.position="absolute";return q}function b(q,A){switch(A){case mxConstants.POINTS:return q;case mxConstants.MILLIMETERS:return(q/mxConstants.PIXELS_PER_MM).toFixed(1);case mxConstants.METERS:return(q/(1E3*mxConstants.PIXELS_PER_MM)).toFixed(4);case mxConstants.INCHES:return(q/mxConstants.PIXELS_PER_INCH).toFixed(3)}}mxConstants.HANDLE_FILLCOLOR="#29b6f2";
+"undefined"!==typeof mxVertexHandler&&function(){function a(){var p=document.createElement("div");p.className="geHint";p.style.whiteSpace="nowrap";p.style.position="absolute";return p}function b(p,A){switch(A){case mxConstants.POINTS:return p;case mxConstants.MILLIMETERS:return(p/mxConstants.PIXELS_PER_MM).toFixed(1);case mxConstants.METERS:return(p/(1E3*mxConstants.PIXELS_PER_MM)).toFixed(4);case mxConstants.INCHES:return(p/mxConstants.PIXELS_PER_INCH).toFixed(3)}}mxConstants.HANDLE_FILLCOLOR="#29b6f2";
mxConstants.HANDLE_STROKECOLOR="#0088cf";mxConstants.VERTEX_SELECTION_COLOR="#00a8ff";mxConstants.OUTLINE_COLOR="#00a8ff";mxConstants.OUTLINE_HANDLE_FILLCOLOR="#99ccff";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#00a8ff";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.EDGE_SELECTION_COLOR="#00a8ff";mxConstants.DEFAULT_VALID_COLOR="#00a8ff";mxConstants.LABEL_HANDLE_FILLCOLOR="#cee7ff";mxConstants.GUIDE_COLOR="#0088cf";mxConstants.HIGHLIGHT_STROKEWIDTH=5;mxConstants.HIGHLIGHT_OPACITY=50;mxConstants.HIGHLIGHT_SIZE=
5;mxWindow.prototype.closeImage=Graph.createSvgImage(18,10,'<path d="M 5 1 L 13 9 M 13 1 L 5 9" stroke="#707070" stroke-width="2"/>').src;mxWindow.prototype.minimizeImage=Graph.createSvgImage(14,10,'<path d="M 3 7 L 7 3 L 11 7" stroke="#707070" stroke-width="2" fill="none"/>').src;mxWindow.prototype.normalizeImage=Graph.createSvgImage(14,10,'<path d="M 3 3 L 7 7 L 11 3" stroke="#707070" stroke-width="2" fill="none"/>').src;mxWindow.prototype.resizeImage=Graph.createSvgImage(10,10,'<path d="Z" stroke="#C0C0C0" stroke-width="1" fill="none"/>').src;
-mxEdgeHandler.prototype.snapToTerminals=!0;mxGraphHandler.prototype.guidesEnabled=!0;mxGraphHandler.prototype.removeEmptyParents=!0;mxRubberband.prototype.fadeOut=!0;mxGuide.prototype.isEnabledForEvent=function(q){return!mxEvent.isAltDown(q)||mxEvent.isShiftDown(q)};var e=mxGraphLayout.prototype.isVertexIgnored;mxGraphLayout.prototype.isVertexIgnored=function(q){return e.apply(this,arguments)||this.graph.isTableRow(q)||this.graph.isTableCell(q)};var f=mxGraphLayout.prototype.isEdgeIgnored;mxGraphLayout.prototype.isEdgeIgnored=
-function(q){return f.apply(this,arguments)||this.graph.isEdgeIgnored(q)};var h=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(q){return this.graph.isCloneEvent(q)!=h.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var q=new mxEllipse(null,this.highlightColor,this.highlightColor,0);q.opacity=mxConstants.HIGHLIGHT_OPACITY;return q};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor=
-"crosshair";mxConnectionHandler.prototype.createEdgeState=function(q){q=this.graph.createCurrentEdgeStyle();q=this.graph.createEdge(null,null,null,null,null,q);q=new mxCellState(this.graph.view,q,this.graph.getCellStyle(q));for(var A in this.graph.currentEdgeStyle)q.style[A]=this.graph.currentEdgeStyle[A];if(null!=this.previous){var B=this.previous.style.newEdgeStyle;if(null!=B)try{var F=JSON.parse(B);for(A in F)q.style[A]=F[A]}catch(M){}}q.style=this.graph.postProcessCellStyle(q.cell,q.style);return q};
-var d=mxConnectionHandler.prototype.createShape;mxConnectionHandler.prototype.createShape=function(){var q=d.apply(this,arguments);q.isDashed="1"==this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED];return q};mxConnectionHandler.prototype.updatePreview=function(q){};var g=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var q=g.apply(this,arguments),A=q.getCell;q.getCell=mxUtils.bind(this,function(B){var F=A.apply(this,arguments);this.error=null;return F});
-return q};Graph.prototype.defaultVertexStyle={};Graph.prototype.defaultEdgeStyle={edgeStyle:"orthogonalEdgeStyle",rounded:"0",jettySize:"auto",orthogonalLoop:"1"};Graph.prototype.createCurrentEdgeStyle=function(){for(var q="edgeStyle="+(this.currentEdgeStyle.edgeStyle||"none")+";",A="shape curved rounded comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification comicStyle jumpStyle jumpSize".split(" "),B=0;B<A.length;B++)null!=
-this.currentEdgeStyle[A[B]]&&(q+=A[B]+"="+this.currentEdgeStyle[A[B]]+";");null!=this.currentEdgeStyle.orthogonalLoop?q+="orthogonalLoop="+this.currentEdgeStyle.orthogonalLoop+";":null!=Graph.prototype.defaultEdgeStyle.orthogonalLoop&&(q+="orthogonalLoop="+Graph.prototype.defaultEdgeStyle.orthogonalLoop+";");null!=this.currentEdgeStyle.jettySize?q+="jettySize="+this.currentEdgeStyle.jettySize+";":null!=Graph.prototype.defaultEdgeStyle.jettySize&&(q+="jettySize="+Graph.prototype.defaultEdgeStyle.jettySize+
-";");"elbowEdgeStyle"==this.currentEdgeStyle.edgeStyle&&null!=this.currentEdgeStyle.elbow&&(q+="elbow="+this.currentEdgeStyle.elbow+";");return q=null!=this.currentEdgeStyle.html?q+("html="+this.currentEdgeStyle.html+";"):q+"html=1;"};Graph.prototype.getPagePadding=function(){return new mxPoint(0,0)};Graph.prototype.loadStylesheet=function(){var q=null!=this.themes?this.themes[this.defaultThemeName]:mxStyleRegistry.dynamicLoading?mxUtils.load(STYLE_PATH+"/default.xml").getDocumentElement():null;null!=
-q&&(new mxCodec(q.ownerDocument)).decode(q,this.getStylesheet())};Graph.prototype.createCellLookup=function(q,A){A=null!=A?A:{};for(var B=0;B<q.length;B++){var F=q[B];A[mxObjectIdentity.get(F)]=F.getId();for(var M=this.model.getChildCount(F),R=0;R<M;R++)this.createCellLookup([this.model.getChildAt(F,R)],A)}return A};Graph.prototype.createCellMapping=function(q,A,B){B=null!=B?B:{};for(var F in q){var M=A[F];null==B[M]&&(B[M]=q[F].getId()||"")}return B};Graph.prototype.importGraphModel=function(q,A,
-B,F){A=null!=A?A:0;B=null!=B?B:0;var M=new mxCodec(q.ownerDocument),R=new mxGraphModel;M.decode(q,R);q=[];M={};var W={},ha=R.getChildren(this.cloneCell(R.root,this.isCloneInvalidEdges(),M));if(null!=ha){var fa=this.createCellLookup([R.root]);ha=ha.slice();this.model.beginUpdate();try{if(1!=ha.length||this.isCellLocked(this.getDefaultParent()))for(R=0;R<ha.length;R++)ja=this.model.getChildren(this.moveCells([ha[R]],A,B,!1,this.model.getRoot())[0]),null!=ja&&(q=q.concat(ja));else{var ja=R.getChildren(ha[0]);
-null!=ja&&(q=this.moveCells(ja,A,B,!1,this.getDefaultParent()),W[R.getChildAt(R.root,0).getId()]=this.getDefaultParent().getId())}if(null!=q&&(this.createCellMapping(M,fa,W),this.updateCustomLinks(W,q),F)){this.isGridEnabled()&&(A=this.snap(A),B=this.snap(B));var va=this.getBoundingBoxFromGeometry(q,!0);null!=va&&this.moveCells(q,A-va.x,B-va.y)}}finally{this.model.endUpdate()}}return q};Graph.prototype.encodeCells=function(q){for(var A={},B=this.cloneCells(q,null,A),F=new mxDictionary,M=0;M<q.length;M++)F.put(q[M],
-!0);var R=new mxCodec,W=new mxGraphModel,ha=W.getChildAt(W.getRoot(),0);for(M=0;M<B.length;M++){W.add(ha,B[M]);var fa=this.view.getState(q[M]);if(null!=fa){var ja=this.getCellGeometry(B[M]);null!=ja&&ja.relative&&!this.model.isEdge(q[M])&&null==F.get(this.model.getParent(q[M]))&&(ja.offset=null,ja.relative=!1,ja.x=fa.x/fa.view.scale-fa.view.translate.x,ja.y=fa.y/fa.view.scale-fa.view.translate.y)}}this.updateCustomLinks(this.createCellMapping(A,this.createCellLookup(q)),B);return R.encode(W)};Graph.prototype.isSwimlane=
-function(q,A){var B=null;null==q||this.model.isEdge(q)||this.model.getParent(q)==this.model.getRoot()||(B=this.getCurrentCellStyle(q,A)[mxConstants.STYLE_SHAPE]);return B==mxConstants.SHAPE_SWIMLANE||"table"==B||"tableRow"==B};var m=Graph.prototype.isCellEditable;Graph.prototype.isCellEditable=function(q){return null!=q&&m.apply(this,arguments)?this.isTableCell(q)||this.isTableRow(q)?this.isCellEditable(this.model.getParent(q)):!0:!1};var p=Graph.prototype.isCellMovable;Graph.prototype.isCellMovable=
-function(q){return null!=q&&p.apply(this,arguments)?this.isTableCell(q)||this.isTableRow(q)?this.isCellMovable(this.model.getParent(q)):!0:!1};var k=Graph.prototype.isExtendParent;Graph.prototype.isExtendParent=function(q){var A=this.model.getParent(q);if(null!=A){var B=this.getCurrentCellStyle(A);if(null!=B.expand)return"0"!=B.expand}return k.apply(this,arguments)&&(null==A||!this.isTable(A))};var u=Graph.prototype.splitEdge;Graph.prototype.splitEdge=function(q,A,B,F,M,R,W,ha){null==ha&&(ha=this.model.getParent(q),
-this.isTable(ha)||this.isTableRow(ha))&&(ha=this.getCellAt(R,W,null,!0,!1));B=null;this.model.beginUpdate();try{B=u.apply(this,[q,A,B,F,M,R,W,ha]);this.model.setValue(B,"");var fa=this.getChildCells(B,!0);for(A=0;A<fa.length;A++){var ja=this.getCellGeometry(fa[A]);null!=ja&&ja.relative&&0<ja.x&&this.model.remove(fa[A])}var va=this.getChildCells(q,!0);for(A=0;A<va.length;A++)ja=this.getCellGeometry(va[A]),null!=ja&&ja.relative&&0>=ja.x&&this.model.remove(va[A]);var Ma=this.model.getTerminal(B,!1);
-if(null!=Ma){var Na=this.getCurrentCellStyle(Ma);null!=Na&&"1"==Na.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[q]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[q]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[B]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[B]))}}finally{this.model.endUpdate()}return B};var w=Graph.prototype.selectCell;Graph.prototype.selectCell=function(q,A,B){if(A||B)w.apply(this,arguments);else{var F=this.getSelectionCell(),M=null,R=[],W=mxUtils.bind(this,
-function(ha){if(null!=this.view.getState(ha)&&(this.model.isVertex(ha)||this.model.isEdge(ha)))if(R.push(ha),ha==F)M=R.length-1;else if(q&&null==F&&0<R.length||null!=M&&q&&R.length>M||!q&&0<M)return;for(var fa=0;fa<this.model.getChildCount(ha);fa++)W(this.model.getChildAt(ha,fa))});W(this.model.root);0<R.length&&(M=null!=M?mxUtils.mod(M+(q?1:-1),R.length):0,this.setSelectionCell(R[M]))}};Graph.prototype.swapShapes=function(q,A){if(this.model.isVertex(q)&&this.model.isVertex(A)&&2==this.getMovableCells([q,
-A]).length){var B=this.getCellGeometry(q),F=this.getCellGeometry(A);if(null!=B&&null!=F){var M=B.clone(),R=F.clone();this.model.beginUpdate();try{M.x=F.getCenterX()-B.width/2,M.y=F.getCenterY()-B.height/2,R.x=B.getCenterX()-F.width/2,R.y=B.getCenterY()-F.height/2,this.model.setGeometry(q,M),this.model.setGeometry(A,R)}finally{this.model.endUpdate()}}}};var z=Graph.prototype.moveCells;Graph.prototype.moveCells=function(q,A,B,F,M,R,W){W=null!=W?W:{};if(this.isTable(M)){for(var ha=[],fa=0;fa<q.length;fa++)this.isTable(q[fa])?
-ha=ha.concat(this.model.getChildCells(q[fa],!0).reverse()):ha.push(q[fa]);q=ha}this.model.beginUpdate();try{ha=[];for(fa=0;fa<q.length;fa++)if(null!=M&&this.isTableRow(q[fa])){var ja=this.model.getParent(q[fa]),va=this.getCellGeometry(q[fa]);this.isTable(ja)&&ha.push(ja);if(null!=ja&&null!=va&&this.isTable(ja)&&this.isTable(M)&&(F||ja!=M)){if(!F){var Ma=this.getCellGeometry(ja);null!=Ma&&(Ma=Ma.clone(),Ma.height-=va.height,this.model.setGeometry(ja,Ma))}Ma=this.getCellGeometry(M);null!=Ma&&(Ma=Ma.clone(),
-Ma.height+=va.height,this.model.setGeometry(M,Ma));var Na=this.model.getChildCells(M,!0);if(0<Na.length){q[fa]=F?this.cloneCell(q[fa]):q[fa];var ya=this.model.getChildCells(q[fa],!0),Ha=this.model.getChildCells(Na[0],!0),wa=Ha.length-ya.length;if(0<wa)for(var ua=0;ua<wa;ua++){var Va=this.cloneCell(ya[ya.length-1]);null!=Va&&(Va.value="",this.model.add(q[fa],Va))}else if(0>wa)for(ua=0;ua>wa;ua--)this.model.remove(ya[ya.length+ua-1]);ya=this.model.getChildCells(q[fa],!0);for(ua=0;ua<Ha.length;ua++){var Qa=
-this.getCellGeometry(Ha[ua]),Ka=this.getCellGeometry(ya[ua]);null!=Qa&&null!=Ka&&(Ka=Ka.clone(),Ka.width=Qa.width,this.model.setGeometry(ya[ua],Ka))}}}}var Ua=z.apply(this,arguments);for(fa=0;fa<ha.length;fa++)!F&&this.model.contains(ha[fa])&&0==this.model.getChildCount(ha[fa])&&this.model.remove(ha[fa]);F&&this.updateCustomLinks(this.createCellMapping(W,this.createCellLookup(q)),Ua)}finally{this.model.endUpdate()}return Ua};var C=Graph.prototype.removeCells;Graph.prototype.removeCells=function(q,
-A){var B=[];this.model.beginUpdate();try{for(var F=0;F<q.length;F++)if(this.isTableCell(q[F])){var M=this.model.getParent(q[F]),R=this.model.getParent(M);1==this.model.getChildCount(M)&&1==this.model.getChildCount(R)?0>mxUtils.indexOf(q,R)&&0>mxUtils.indexOf(B,R)&&B.push(R):this.labelChanged(q[F],"")}else{if(this.isTableRow(q[F])&&(R=this.model.getParent(q[F]),0>mxUtils.indexOf(q,R)&&0>mxUtils.indexOf(B,R))){for(var W=this.model.getChildCells(R,!0),ha=0,fa=0;fa<W.length;fa++)0<=mxUtils.indexOf(q,
-W[fa])&&ha++;ha==W.length&&B.push(R)}B.push(q[F])}B=C.apply(this,[B,A])}finally{this.model.endUpdate()}return B};Graph.prototype.updateCustomLinks=function(q,A,B){B=null!=B?B:new Graph;for(var F=0;F<A.length;F++)null!=A[F]&&B.updateCustomLinksForCell(q,A[F],B)};Graph.prototype.updateCustomLinksForCell=function(q,A){this.doUpdateCustomLinksForCell(q,A);for(var B=this.model.getChildCount(A),F=0;F<B;F++)this.updateCustomLinksForCell(q,this.model.getChildAt(A,F))};Graph.prototype.doUpdateCustomLinksForCell=
-function(q,A){};Graph.prototype.getAllConnectionConstraints=function(q,A){if(null!=q){A=mxUtils.getValue(q.style,"points",null);if(null!=A){q=[];try{var B=JSON.parse(A);for(A=0;A<B.length;A++){var F=B[A];q.push(new mxConnectionConstraint(new mxPoint(F[0],F[1]),2<F.length?"0"!=F[2]:!0,null,3<F.length?F[3]:0,4<F.length?F[4]:0))}}catch(R){}return q}if(null!=q.shape&&null!=q.shape.bounds){F=q.shape.direction;A=q.shape.bounds;var M=q.shape.scale;B=A.width/M;A=A.height/M;if(F==mxConstants.DIRECTION_NORTH||
-F==mxConstants.DIRECTION_SOUTH)F=B,B=A,A=F;A=q.shape.getConstraints(q.style,B,A);if(null!=A)return A;if(null!=q.shape.stencil&&null!=q.shape.stencil.constraints)return q.shape.stencil.constraints;if(null!=q.shape.constraints)return q.shape.constraints}}return null};Graph.prototype.flipEdge=function(q){if(null!=q){var A=this.getCurrentCellStyle(q);A=mxUtils.getValue(A,mxConstants.STYLE_ELBOW,mxConstants.ELBOW_HORIZONTAL)==mxConstants.ELBOW_HORIZONTAL?mxConstants.ELBOW_VERTICAL:mxConstants.ELBOW_HORIZONTAL;
-this.setCellStyles(mxConstants.STYLE_ELBOW,A,[q])}};Graph.prototype.isValidRoot=function(q){for(var A=this.model.getChildCount(q),B=0,F=0;F<A;F++){var M=this.model.getChildAt(q,F);this.model.isVertex(M)&&(M=this.getCellGeometry(M),null==M||M.relative||B++)}return 0<B||this.isContainer(q)};Graph.prototype.isValidDropTarget=function(q,A,B){for(var F=this.getCurrentCellStyle(q),M=!0,R=!0,W=0;W<A.length&&R;W++)M=M&&this.isTable(A[W]),R=R&&this.isTableRow(A[W]);return!this.isCellLocked(q)&&(this.isTargetShape(q,
-A,B)||("1"!=mxUtils.getValue(F,"part","0")||this.isContainer(q))&&"0"!=mxUtils.getValue(F,"dropTarget","1")&&(mxGraph.prototype.isValidDropTarget.apply(this,arguments)||this.isContainer(q))&&!this.isTableRow(q)&&(!this.isTable(q)||R||M))};Graph.prototype.createGroupCell=function(){var q=mxGraph.prototype.createGroupCell.apply(this,arguments);q.setStyle("group");return q};Graph.prototype.isExtendParentsOnAdd=function(q){var A=mxGraph.prototype.isExtendParentsOnAdd.apply(this,arguments);if(A&&null!=
-q&&null!=this.layoutManager){var B=this.model.getParent(q);null!=B&&(B=this.layoutManager.getLayout(B),null!=B&&B.constructor==mxStackLayout&&(A=!1))}return A};Graph.prototype.getPreferredSizeForCell=function(q,A,B){B=null!=B?B:this.gridEnabled;var F=mxGraph.prototype.getPreferredSizeForCell.apply(this,arguments);null!=F&&(F.width+=10,F.height+=4,B&&(F.width=this.snap(F.width),F.height=this.snap(F.height)));return F};Graph.prototype.turnShapes=function(q,A){var B=this.getModel(),F=[];B.beginUpdate();
-try{for(var M=0;M<q.length;M++){var R=q[M];if(B.isEdge(R)){var W=B.getTerminal(R,!0),ha=B.getTerminal(R,!1);B.setTerminal(R,ha,!0);B.setTerminal(R,W,!1);var fa=B.getGeometry(R);if(null!=fa){fa=fa.clone();null!=fa.points&&fa.points.reverse();var ja=fa.getTerminalPoint(!0),va=fa.getTerminalPoint(!1);fa.setTerminalPoint(ja,!1);fa.setTerminalPoint(va,!0);B.setGeometry(R,fa);var Ma=this.view.getState(R),Na=this.view.getState(W),ya=this.view.getState(ha);if(null!=Ma){var Ha=null!=Na?this.getConnectionConstraint(Ma,
+mxEdgeHandler.prototype.snapToTerminals=!0;mxGraphHandler.prototype.guidesEnabled=!0;mxGraphHandler.prototype.removeEmptyParents=!0;mxRubberband.prototype.fadeOut=!0;mxGuide.prototype.isEnabledForEvent=function(p){return!mxEvent.isAltDown(p)||mxEvent.isShiftDown(p)};var e=mxGraphLayout.prototype.isVertexIgnored;mxGraphLayout.prototype.isVertexIgnored=function(p){return e.apply(this,arguments)||this.graph.isTableRow(p)||this.graph.isTableCell(p)};var f=mxGraphLayout.prototype.isEdgeIgnored;mxGraphLayout.prototype.isEdgeIgnored=
+function(p){return f.apply(this,arguments)||this.graph.isEdgeIgnored(p)};var h=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(p){return this.graph.isCloneEvent(p)!=h.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var p=new mxEllipse(null,this.highlightColor,this.highlightColor,0);p.opacity=mxConstants.HIGHLIGHT_OPACITY;return p};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor=
+"crosshair";mxConnectionHandler.prototype.createEdgeState=function(p){p=this.graph.createCurrentEdgeStyle();p=this.graph.createEdge(null,null,null,null,null,p);p=new mxCellState(this.graph.view,p,this.graph.getCellStyle(p));for(var A in this.graph.currentEdgeStyle)p.style[A]=this.graph.currentEdgeStyle[A];if(null!=this.previous){var B=this.previous.style.newEdgeStyle;if(null!=B)try{var F=JSON.parse(B);for(A in F)p.style[A]=F[A]}catch(M){}}p.style=this.graph.postProcessCellStyle(p.cell,p.style);return p};
+var d=mxConnectionHandler.prototype.createShape;mxConnectionHandler.prototype.createShape=function(){var p=d.apply(this,arguments);p.isDashed="1"==this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED];return p};mxConnectionHandler.prototype.updatePreview=function(p){};var g=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var p=g.apply(this,arguments),A=p.getCell;p.getCell=mxUtils.bind(this,function(B){var F=A.apply(this,arguments);this.error=null;return F});
+return p};Graph.prototype.defaultVertexStyle={};Graph.prototype.defaultEdgeStyle={edgeStyle:"orthogonalEdgeStyle",rounded:"0",jettySize:"auto",orthogonalLoop:"1"};Graph.prototype.createCurrentEdgeStyle=function(){for(var p="edgeStyle="+(this.currentEdgeStyle.edgeStyle||"none")+";",A="shape curved rounded comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification comicStyle jumpStyle jumpSize".split(" "),B=0;B<A.length;B++)null!=
+this.currentEdgeStyle[A[B]]&&(p+=A[B]+"="+this.currentEdgeStyle[A[B]]+";");null!=this.currentEdgeStyle.orthogonalLoop?p+="orthogonalLoop="+this.currentEdgeStyle.orthogonalLoop+";":null!=Graph.prototype.defaultEdgeStyle.orthogonalLoop&&(p+="orthogonalLoop="+Graph.prototype.defaultEdgeStyle.orthogonalLoop+";");null!=this.currentEdgeStyle.jettySize?p+="jettySize="+this.currentEdgeStyle.jettySize+";":null!=Graph.prototype.defaultEdgeStyle.jettySize&&(p+="jettySize="+Graph.prototype.defaultEdgeStyle.jettySize+
+";");"elbowEdgeStyle"==this.currentEdgeStyle.edgeStyle&&null!=this.currentEdgeStyle.elbow&&(p+="elbow="+this.currentEdgeStyle.elbow+";");return p=null!=this.currentEdgeStyle.html?p+("html="+this.currentEdgeStyle.html+";"):p+"html=1;"};Graph.prototype.getPagePadding=function(){return new mxPoint(0,0)};Graph.prototype.loadStylesheet=function(){var p=null!=this.themes?this.themes[this.defaultThemeName]:mxStyleRegistry.dynamicLoading?mxUtils.load(STYLE_PATH+"/default.xml").getDocumentElement():null;null!=
+p&&(new mxCodec(p.ownerDocument)).decode(p,this.getStylesheet())};Graph.prototype.createCellLookup=function(p,A){A=null!=A?A:{};for(var B=0;B<p.length;B++){var F=p[B];A[mxObjectIdentity.get(F)]=F.getId();for(var M=this.model.getChildCount(F),R=0;R<M;R++)this.createCellLookup([this.model.getChildAt(F,R)],A)}return A};Graph.prototype.createCellMapping=function(p,A,B){B=null!=B?B:{};for(var F in p){var M=A[F];null==B[M]&&(B[M]=p[F].getId()||"")}return B};Graph.prototype.importGraphModel=function(p,A,
+B,F){A=null!=A?A:0;B=null!=B?B:0;var M=new mxCodec(p.ownerDocument),R=new mxGraphModel;M.decode(p,R);p=[];M={};var W={},ha=R.getChildren(this.cloneCell(R.root,this.isCloneInvalidEdges(),M));if(null!=ha){var fa=this.createCellLookup([R.root]);ha=ha.slice();this.model.beginUpdate();try{if(1!=ha.length||this.isCellLocked(this.getDefaultParent()))for(R=0;R<ha.length;R++)ja=this.model.getChildren(this.moveCells([ha[R]],A,B,!1,this.model.getRoot())[0]),null!=ja&&(p=p.concat(ja));else{var ja=R.getChildren(ha[0]);
+null!=ja&&(p=this.moveCells(ja,A,B,!1,this.getDefaultParent()),W[R.getChildAt(R.root,0).getId()]=this.getDefaultParent().getId())}if(null!=p&&(this.createCellMapping(M,fa,W),this.updateCustomLinks(W,p),F)){this.isGridEnabled()&&(A=this.snap(A),B=this.snap(B));var va=this.getBoundingBoxFromGeometry(p,!0);null!=va&&this.moveCells(p,A-va.x,B-va.y)}}finally{this.model.endUpdate()}}return p};Graph.prototype.encodeCells=function(p){for(var A={},B=this.cloneCells(p,null,A),F=new mxDictionary,M=0;M<p.length;M++)F.put(p[M],
+!0);var R=new mxCodec,W=new mxGraphModel,ha=W.getChildAt(W.getRoot(),0);for(M=0;M<B.length;M++){W.add(ha,B[M]);var fa=this.view.getState(p[M]);if(null!=fa){var ja=this.getCellGeometry(B[M]);null!=ja&&ja.relative&&!this.model.isEdge(p[M])&&null==F.get(this.model.getParent(p[M]))&&(ja.offset=null,ja.relative=!1,ja.x=fa.x/fa.view.scale-fa.view.translate.x,ja.y=fa.y/fa.view.scale-fa.view.translate.y)}}this.updateCustomLinks(this.createCellMapping(A,this.createCellLookup(p)),B);return R.encode(W)};Graph.prototype.isSwimlane=
+function(p,A){var B=null;null==p||this.model.isEdge(p)||this.model.getParent(p)==this.model.getRoot()||(B=this.getCurrentCellStyle(p,A)[mxConstants.STYLE_SHAPE]);return B==mxConstants.SHAPE_SWIMLANE||"table"==B||"tableRow"==B};var m=Graph.prototype.isCellEditable;Graph.prototype.isCellEditable=function(p){return null!=p&&m.apply(this,arguments)?this.isTableCell(p)||this.isTableRow(p)?this.isCellEditable(this.model.getParent(p)):!0:!1};var q=Graph.prototype.isCellMovable;Graph.prototype.isCellMovable=
+function(p){return null!=p&&q.apply(this,arguments)?this.isTableCell(p)||this.isTableRow(p)?this.isCellMovable(this.model.getParent(p)):!0:!1};var k=Graph.prototype.isExtendParent;Graph.prototype.isExtendParent=function(p){var A=this.model.getParent(p);if(null!=A){var B=this.getCurrentCellStyle(A);if(null!=B.expand)return"0"!=B.expand}return k.apply(this,arguments)&&(null==A||!this.isTable(A))};var u=Graph.prototype.splitEdge;Graph.prototype.splitEdge=function(p,A,B,F,M,R,W,ha){null==ha&&(ha=this.model.getParent(p),
+this.isTable(ha)||this.isTableRow(ha))&&(ha=this.getCellAt(R,W,null,!0,!1));B=null;this.model.beginUpdate();try{B=u.apply(this,[p,A,B,F,M,R,W,ha]);this.model.setValue(B,"");var fa=this.getChildCells(B,!0);for(A=0;A<fa.length;A++){var ja=this.getCellGeometry(fa[A]);null!=ja&&ja.relative&&0<ja.x&&this.model.remove(fa[A])}var va=this.getChildCells(p,!0);for(A=0;A<va.length;A++)ja=this.getCellGeometry(va[A]),null!=ja&&ja.relative&&0>=ja.x&&this.model.remove(va[A]);var Ma=this.model.getTerminal(B,!1);
+if(null!=Ma){var Na=this.getCurrentCellStyle(Ma);null!=Na&&"1"==Na.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[p]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[p]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[B]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[B]))}}finally{this.model.endUpdate()}return B};var w=Graph.prototype.selectCell;Graph.prototype.selectCell=function(p,A,B){if(A||B)w.apply(this,arguments);else{var F=this.getSelectionCell(),M=null,R=[],W=mxUtils.bind(this,
+function(ha){if(null!=this.view.getState(ha)&&(this.model.isVertex(ha)||this.model.isEdge(ha)))if(R.push(ha),ha==F)M=R.length-1;else if(p&&null==F&&0<R.length||null!=M&&p&&R.length>M||!p&&0<M)return;for(var fa=0;fa<this.model.getChildCount(ha);fa++)W(this.model.getChildAt(ha,fa))});W(this.model.root);0<R.length&&(M=null!=M?mxUtils.mod(M+(p?1:-1),R.length):0,this.setSelectionCell(R[M]))}};Graph.prototype.swapShapes=function(p,A){if(this.model.isVertex(p)&&this.model.isVertex(A)&&2==this.getMovableCells([p,
+A]).length){var B=this.getCellGeometry(p),F=this.getCellGeometry(A);if(null!=B&&null!=F){var M=B.clone(),R=F.clone();this.model.beginUpdate();try{M.x=F.getCenterX()-B.width/2,M.y=F.getCenterY()-B.height/2,R.x=B.getCenterX()-F.width/2,R.y=B.getCenterY()-F.height/2,this.model.setGeometry(p,M),this.model.setGeometry(A,R)}finally{this.model.endUpdate()}}}};var z=Graph.prototype.moveCells;Graph.prototype.moveCells=function(p,A,B,F,M,R,W){W=null!=W?W:{};if(this.isTable(M)){for(var ha=[],fa=0;fa<p.length;fa++)this.isTable(p[fa])?
+ha=ha.concat(this.model.getChildCells(p[fa],!0).reverse()):ha.push(p[fa]);p=ha}this.model.beginUpdate();try{ha=[];for(fa=0;fa<p.length;fa++)if(null!=M&&this.isTableRow(p[fa])){var ja=this.model.getParent(p[fa]),va=this.getCellGeometry(p[fa]);this.isTable(ja)&&ha.push(ja);if(null!=ja&&null!=va&&this.isTable(ja)&&this.isTable(M)&&(F||ja!=M)){if(!F){var Ma=this.getCellGeometry(ja);null!=Ma&&(Ma=Ma.clone(),Ma.height-=va.height,this.model.setGeometry(ja,Ma))}Ma=this.getCellGeometry(M);null!=Ma&&(Ma=Ma.clone(),
+Ma.height+=va.height,this.model.setGeometry(M,Ma));var Na=this.model.getChildCells(M,!0);if(0<Na.length){p[fa]=F?this.cloneCell(p[fa]):p[fa];var ya=this.model.getChildCells(p[fa],!0),Ha=this.model.getChildCells(Na[0],!0),wa=Ha.length-ya.length;if(0<wa)for(var ua=0;ua<wa;ua++){var Va=this.cloneCell(ya[ya.length-1]);null!=Va&&(Va.value="",this.model.add(p[fa],Va))}else if(0>wa)for(ua=0;ua>wa;ua--)this.model.remove(ya[ya.length+ua-1]);ya=this.model.getChildCells(p[fa],!0);for(ua=0;ua<Ha.length;ua++){var Qa=
+this.getCellGeometry(Ha[ua]),Ka=this.getCellGeometry(ya[ua]);null!=Qa&&null!=Ka&&(Ka=Ka.clone(),Ka.width=Qa.width,this.model.setGeometry(ya[ua],Ka))}}}}var Ua=z.apply(this,arguments);for(fa=0;fa<ha.length;fa++)!F&&this.model.contains(ha[fa])&&0==this.model.getChildCount(ha[fa])&&this.model.remove(ha[fa]);F&&this.updateCustomLinks(this.createCellMapping(W,this.createCellLookup(p)),Ua)}finally{this.model.endUpdate()}return Ua};var C=Graph.prototype.removeCells;Graph.prototype.removeCells=function(p,
+A){var B=[];this.model.beginUpdate();try{for(var F=0;F<p.length;F++)if(this.isTableCell(p[F])){var M=this.model.getParent(p[F]),R=this.model.getParent(M);1==this.model.getChildCount(M)&&1==this.model.getChildCount(R)?0>mxUtils.indexOf(p,R)&&0>mxUtils.indexOf(B,R)&&B.push(R):this.labelChanged(p[F],"")}else{if(this.isTableRow(p[F])&&(R=this.model.getParent(p[F]),0>mxUtils.indexOf(p,R)&&0>mxUtils.indexOf(B,R))){for(var W=this.model.getChildCells(R,!0),ha=0,fa=0;fa<W.length;fa++)0<=mxUtils.indexOf(p,
+W[fa])&&ha++;ha==W.length&&B.push(R)}B.push(p[F])}B=C.apply(this,[B,A])}finally{this.model.endUpdate()}return B};Graph.prototype.updateCustomLinks=function(p,A,B){B=null!=B?B:new Graph;for(var F=0;F<A.length;F++)null!=A[F]&&B.updateCustomLinksForCell(p,A[F],B)};Graph.prototype.updateCustomLinksForCell=function(p,A){this.doUpdateCustomLinksForCell(p,A);for(var B=this.model.getChildCount(A),F=0;F<B;F++)this.updateCustomLinksForCell(p,this.model.getChildAt(A,F))};Graph.prototype.doUpdateCustomLinksForCell=
+function(p,A){};Graph.prototype.getAllConnectionConstraints=function(p,A){if(null!=p){A=mxUtils.getValue(p.style,"points",null);if(null!=A){p=[];try{var B=JSON.parse(A);for(A=0;A<B.length;A++){var F=B[A];p.push(new mxConnectionConstraint(new mxPoint(F[0],F[1]),2<F.length?"0"!=F[2]:!0,null,3<F.length?F[3]:0,4<F.length?F[4]:0))}}catch(R){}return p}if(null!=p.shape&&null!=p.shape.bounds){F=p.shape.direction;A=p.shape.bounds;var M=p.shape.scale;B=A.width/M;A=A.height/M;if(F==mxConstants.DIRECTION_NORTH||
+F==mxConstants.DIRECTION_SOUTH)F=B,B=A,A=F;A=p.shape.getConstraints(p.style,B,A);if(null!=A)return A;if(null!=p.shape.stencil&&null!=p.shape.stencil.constraints)return p.shape.stencil.constraints;if(null!=p.shape.constraints)return p.shape.constraints}}return null};Graph.prototype.flipEdge=function(p){if(null!=p){var A=this.getCurrentCellStyle(p);A=mxUtils.getValue(A,mxConstants.STYLE_ELBOW,mxConstants.ELBOW_HORIZONTAL)==mxConstants.ELBOW_HORIZONTAL?mxConstants.ELBOW_VERTICAL:mxConstants.ELBOW_HORIZONTAL;
+this.setCellStyles(mxConstants.STYLE_ELBOW,A,[p])}};Graph.prototype.isValidRoot=function(p){for(var A=this.model.getChildCount(p),B=0,F=0;F<A;F++){var M=this.model.getChildAt(p,F);this.model.isVertex(M)&&(M=this.getCellGeometry(M),null==M||M.relative||B++)}return 0<B||this.isContainer(p)};Graph.prototype.isValidDropTarget=function(p,A,B){for(var F=this.getCurrentCellStyle(p),M=!0,R=!0,W=0;W<A.length&&R;W++)M=M&&this.isTable(A[W]),R=R&&this.isTableRow(A[W]);return!this.isCellLocked(p)&&(this.isTargetShape(p,
+A,B)||("1"!=mxUtils.getValue(F,"part","0")||this.isContainer(p))&&"0"!=mxUtils.getValue(F,"dropTarget","1")&&(mxGraph.prototype.isValidDropTarget.apply(this,arguments)||this.isContainer(p))&&!this.isTableRow(p)&&(!this.isTable(p)||R||M))};Graph.prototype.createGroupCell=function(){var p=mxGraph.prototype.createGroupCell.apply(this,arguments);p.setStyle("group");return p};Graph.prototype.isExtendParentsOnAdd=function(p){var A=mxGraph.prototype.isExtendParentsOnAdd.apply(this,arguments);if(A&&null!=
+p&&null!=this.layoutManager){var B=this.model.getParent(p);null!=B&&(B=this.layoutManager.getLayout(B),null!=B&&B.constructor==mxStackLayout&&(A=!1))}return A};Graph.prototype.getPreferredSizeForCell=function(p,A,B){B=null!=B?B:this.gridEnabled;var F=mxGraph.prototype.getPreferredSizeForCell.apply(this,arguments);null!=F&&(F.width+=10,F.height+=4,B&&(F.width=this.snap(F.width),F.height=this.snap(F.height)));return F};Graph.prototype.turnShapes=function(p,A){var B=this.getModel(),F=[];B.beginUpdate();
+try{for(var M=0;M<p.length;M++){var R=p[M];if(B.isEdge(R)){var W=B.getTerminal(R,!0),ha=B.getTerminal(R,!1);B.setTerminal(R,ha,!0);B.setTerminal(R,W,!1);var fa=B.getGeometry(R);if(null!=fa){fa=fa.clone();null!=fa.points&&fa.points.reverse();var ja=fa.getTerminalPoint(!0),va=fa.getTerminalPoint(!1);fa.setTerminalPoint(ja,!1);fa.setTerminalPoint(va,!0);B.setGeometry(R,fa);var Ma=this.view.getState(R),Na=this.view.getState(W),ya=this.view.getState(ha);if(null!=Ma){var Ha=null!=Na?this.getConnectionConstraint(Ma,
Na,!0):null,wa=null!=ya?this.getConnectionConstraint(Ma,ya,!1):null;this.setConnectionConstraint(R,W,!0,wa);this.setConnectionConstraint(R,ha,!1,Ha);var ua=mxUtils.getValue(Ma.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING);this.setCellStyles(mxConstants.STYLE_SOURCE_PERIMETER_SPACING,mxUtils.getValue(Ma.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING),[R]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,ua,[R])}F.push(R)}}else if(B.isVertex(R)&&(fa=this.getCellGeometry(R),null!=
fa)){if(!(this.isTable(R)||this.isTableRow(R)||this.isTableCell(R)||this.isSwimlane(R))){fa=fa.clone();fa.x+=fa.width/2-fa.height/2;fa.y+=fa.height/2-fa.width/2;var Va=fa.width;fa.width=fa.height;fa.height=Va;B.setGeometry(R,fa)}var Qa=this.view.getState(R);if(null!=Qa){var Ka=[mxConstants.DIRECTION_EAST,mxConstants.DIRECTION_SOUTH,mxConstants.DIRECTION_WEST,mxConstants.DIRECTION_NORTH],Ua=mxUtils.getValue(Qa.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST);this.setCellStyles(mxConstants.STYLE_DIRECTION,
-Ka[mxUtils.mod(mxUtils.indexOf(Ka,Ua)+(A?-1:1),Ka.length)],[R])}F.push(R)}}}finally{B.endUpdate()}return F};Graph.prototype.stencilHasPlaceholders=function(q){if(null!=q&&null!=q.fgNode)for(q=q.fgNode.firstChild;null!=q;){if("text"==q.nodeName&&"1"==q.getAttribute("placeholders"))return!0;q=q.nextSibling}return!1};var E=Graph.prototype.processChange;Graph.prototype.processChange=function(q){if(q instanceof mxGeometryChange&&(this.isTableCell(q.cell)||this.isTableRow(q.cell))&&(null==q.previous&&null!=
-q.geometry||null!=q.previous&&!q.previous.equals(q.geometry))){var A=q.cell;this.isTableCell(A)&&(A=this.model.getParent(A));this.isTableRow(A)&&(A=this.model.getParent(A));var B=this.view.getState(A);null!=B&&null!=B.shape&&(this.view.invalidate(A),B.shape.bounds=null)}E.apply(this,arguments);q instanceof mxValueChange&&null!=q.cell&&null!=q.cell.value&&"object"==typeof q.cell.value&&this.invalidateDescendantsWithPlaceholders(q.cell)};Graph.prototype.invalidateDescendantsWithPlaceholders=function(q){q=
-this.model.getDescendants(q);if(0<q.length)for(var A=0;A<q.length;A++){var B=this.view.getState(q[A]);null!=B&&null!=B.shape&&null!=B.shape.stencil&&this.stencilHasPlaceholders(B.shape.stencil)?this.removeStateForCell(q[A]):this.isReplacePlaceholders(q[A])&&this.view.invalidate(q[A],!1,!1)}};Graph.prototype.replaceElement=function(q,A){A=q.ownerDocument.createElement(null!=A?A:"span");for(var B=Array.prototype.slice.call(q.attributes);attr=B.pop();)A.setAttribute(attr.nodeName,attr.nodeValue);A.innerHTML=
-q.innerHTML;q.parentNode.replaceChild(A,q)};Graph.prototype.processElements=function(q,A){if(null!=q){q=q.getElementsByTagName("*");for(var B=0;B<q.length;B++)null!=q[B]&&A(q[B])}};Graph.prototype.updateLabelElements=function(q,A,B){q=null!=q?q:this.getSelectionCells();for(var F=document.createElement("div"),M=0;M<q.length;M++){var R=this.getCurrentCellStyle(q[M]);if(null!=R&&"1"==R.html&&(R=this.convertValueToString(q[M]),null!=R&&0<R.length)){F.innerHTML=Graph.sanitizeHtml(R);for(var W=F.getElementsByTagName(null!=
-B?B:"*"),ha=0;ha<W.length;ha++)A(W[ha]);F.innerHTML!=R&&this.cellLabelChanged(q[M],F.innerHTML)}}};Graph.prototype.cellLabelChanged=function(q,A,B){A=Graph.zapGremlins(A);this.model.beginUpdate();try{if(null!=q.value&&"object"==typeof q.value){if(this.isReplacePlaceholders(q)&&null!=q.getAttribute("placeholder"))for(var F=q.getAttribute("placeholder"),M=q;null!=M;){if(M==this.model.getRoot()||null!=M.value&&"object"==typeof M.value&&M.hasAttribute(F)){this.setAttributeForCell(M,F,A);break}M=this.model.getParent(M)}var R=
-q.value.cloneNode(!0);Graph.translateDiagram&&null!=Graph.diagramLanguage&&R.hasAttribute("label_"+Graph.diagramLanguage)?R.setAttribute("label_"+Graph.diagramLanguage,A):R.setAttribute("label",A);A=R}mxGraph.prototype.cellLabelChanged.apply(this,arguments)}finally{this.model.endUpdate()}};Graph.prototype.cellsRemoved=function(q){if(null!=q){for(var A=new mxDictionary,B=0;B<q.length;B++)A.put(q[B],!0);var F=[];for(B=0;B<q.length;B++){var M=this.model.getParent(q[B]);null==M||A.get(M)||(A.put(M,!0),
-F.push(M))}for(B=0;B<F.length;B++)if(M=this.view.getState(F[B]),null!=M&&(this.model.isEdge(M.cell)||this.model.isVertex(M.cell))&&this.isCellDeletable(M.cell)&&this.isTransparentState(M)){for(var R=!0,W=0;W<this.model.getChildCount(M.cell)&&R;W++)A.get(this.model.getChildAt(M.cell,W))||(R=!1);R&&q.push(M.cell)}}mxGraph.prototype.cellsRemoved.apply(this,arguments)};Graph.prototype.removeCellsAfterUngroup=function(q){for(var A=[],B=0;B<q.length;B++)this.isCellDeletable(q[B])&&this.isTransparentState(this.view.getState(q[B]))&&
-A.push(q[B]);q=A;mxGraph.prototype.removeCellsAfterUngroup.apply(this,arguments)};Graph.prototype.setLinkForCell=function(q,A){this.setAttributeForCell(q,"link",A)};Graph.prototype.setTooltipForCell=function(q,A){var B="tooltip";Graph.translateDiagram&&null!=Graph.diagramLanguage&&mxUtils.isNode(q.value)&&q.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(B="tooltip_"+Graph.diagramLanguage);this.setAttributeForCell(q,B,A)};Graph.prototype.getAttributeForCell=function(q,A,B){q=null!=q.value&&
-"object"===typeof q.value?q.value.getAttribute(A):null;return null!=q?q:B};Graph.prototype.setAttributeForCell=function(q,A,B){if(null!=q.value&&"object"==typeof q.value)var F=q.value.cloneNode(!0);else F=mxUtils.createXmlDocument().createElement("UserObject"),F.setAttribute("label",q.value||"");null!=B?F.setAttribute(A,B):F.removeAttribute(A);this.model.setValue(q,F)};Graph.prototype.isTargetShape=function(q,A,B){q=mxUtils.getValue(this.getCurrentCellStyle(q),mxConstants.STYLE_SHAPE,"");for(B=0;B<
-A.length;B++){var F=mxUtils.getValue(this.getCurrentCellStyle(A[B]),"targetShapes","").split(",");if(0<=mxUtils.indexOf(F,q))return!0}return!1};var D=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(q,A,B,F){if(mxEvent.isAltDown(A))return null;for(var M=0;M<q.length;M++){var R=this.model.getParent(q[M]);if(this.model.isEdge(R)&&0>mxUtils.indexOf(q,R))return null}R=D.apply(this,arguments);var W=!0;for(M=0;M<q.length&&W;M++)W=W&&this.isTableRow(q[M]);W&&(this.isTableCell(R)&&(R=
-this.model.getParent(R)),this.isTableRow(R)&&(R=this.model.getParent(R)),this.isTable(R)||(R=null));return R};Graph.prototype.click=function(q){mxGraph.prototype.click.call(this,q);this.firstClickState=q.getState();this.firstClickSource=q.getSource()};Graph.prototype.dblClick=function(q,A){this.isEnabled()&&(A=this.insertTextForEvent(q,A),mxGraph.prototype.dblClick.call(this,q,A))};Graph.prototype.insertTextForEvent=function(q,A){var B=mxUtils.convertPoint(this.container,mxEvent.getClientX(q),mxEvent.getClientY(q));
-if(null!=q&&!this.model.isVertex(A)){var F=this.model.isEdge(A)?this.view.getState(A):null,M=mxEvent.getSource(q);this.firstClickState!=F||this.firstClickSource!=M||null!=F&&null!=F.text&&null!=F.text.node&&null!=F.text.boundingBox&&(mxUtils.contains(F.text.boundingBox,B.x,B.y)||mxUtils.isAncestorNode(F.text.node,mxEvent.getSource(q)))||(null!=F||this.isCellLocked(this.getDefaultParent()))&&(null==F||this.isCellLocked(F.cell))||!(null!=F||mxClient.IS_SVG&&M==this.view.getCanvas().ownerSVGElement)||
-(null==F&&(F=this.view.getState(this.getCellAt(B.x,B.y))),A=this.addText(B.x,B.y,F))}return A};Graph.prototype.getInsertPoint=function(){var q=this.getGridSize(),A=this.container.scrollLeft/this.view.scale-this.view.translate.x,B=this.container.scrollTop/this.view.scale-this.view.translate.y;if(this.pageVisible){var F=this.getPageLayout(),M=this.getPageSize();A=Math.max(A,F.x*M.width);B=Math.max(B,F.y*M.height)}return new mxPoint(this.snap(A+q),this.snap(B+q))};Graph.prototype.getFreeInsertPoint=
-function(){var q=this.view,A=this.getGraphBounds(),B=this.getInsertPoint(),F=this.snap(Math.round(Math.max(B.x,A.x/q.scale-q.translate.x+(0==A.width?2*this.gridSize:0))));q=this.snap(Math.round(Math.max(B.y,(A.y+A.height)/q.scale-q.translate.y+2*this.gridSize)));return new mxPoint(F,q)};Graph.prototype.getCenterInsertPoint=function(q){q=null!=q?q:new mxRectangle;return mxUtils.hasScrollbars(this.container)?new mxPoint(this.snap(Math.round((this.container.scrollLeft+this.container.clientWidth/2)/this.view.scale-
-this.view.translate.x-q.width/2)),this.snap(Math.round((this.container.scrollTop+this.container.clientHeight/2)/this.view.scale-this.view.translate.y-q.height/2))):new mxPoint(this.snap(Math.round(this.container.clientWidth/2/this.view.scale-this.view.translate.x-q.width/2)),this.snap(Math.round(this.container.clientHeight/2/this.view.scale-this.view.translate.y-q.height/2)))};Graph.prototype.isMouseInsertPoint=function(){return!1};Graph.prototype.appendFontSize=function(q,A){q=null!=q?q:"";null!=
-A&&(0<q.length&&";"!=q.charAt(q.length-1)&&(q+=";"),q+="fontSize="+A+";");return q};Graph.prototype.addText=function(q,A,B){var F=new mxCell;F.value="Text";F.geometry=new mxGeometry(0,0,0,0);F.vertex=!0;if(null!=B&&this.model.isEdge(B.cell)){F.style="edgeLabel;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.edgeFontSize);F.geometry.relative=!0;F.connectable=!1;var M=this.view.getRelativePoint(B,q,A);F.geometry.x=Math.round(1E4*M.x)/1E4;F.geometry.y=Math.round(M.y);
-F.geometry.offset=new mxPoint(0,0);M=this.view.getPoint(B,F.geometry);var R=this.view.scale;F.geometry.offset=new mxPoint(Math.round((q-M.x)/R),Math.round((A-M.y)/R))}else M=this.view.translate,F.style="text;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.vertexFontSize),F.geometry.width=40,F.geometry.height=20,F.geometry.x=Math.round(q/this.view.scale)-M.x-(null!=B?B.origin.x:0),F.geometry.y=Math.round(A/this.view.scale)-M.y-(null!=B?B.origin.y:0),F.style+=
-"autosize=1;";this.getModel().beginUpdate();try{this.addCells([F],null!=B?B.cell:null),this.fireEvent(new mxEventObject("textInserted","cells",[F])),this.autoSizeCell(F)}finally{this.getModel().endUpdate()}return F};Graph.prototype.addClickHandler=function(q,A,B){var F=mxUtils.bind(this,function(){var fa=this.container.getElementsByTagName("a");if(null!=fa)for(var ja=0;ja<fa.length;ja++){var va=this.getAbsoluteUrl(fa[ja].getAttribute("href"));null!=va&&(fa[ja].setAttribute("rel",this.linkRelation),
-fa[ja].setAttribute("href",va),null!=A&&mxEvent.addGestureListeners(fa[ja],null,null,A))}});this.model.addListener(mxEvent.CHANGE,F);F();var M=this.container.style.cursor,R=this.getTolerance(),W=this,ha={currentState:null,currentLink:null,currentTarget:null,highlight:null!=q&&""!=q&&q!=mxConstants.NONE?new mxCellHighlight(W,q,4):null,startX:0,startY:0,scrollLeft:0,scrollTop:0,updateCurrentState:function(fa){var ja=fa.sourceState;if(null==ja||null==W.getLinkForCell(ja.cell))fa=W.getCellAt(fa.getGraphX(),
+Ka[mxUtils.mod(mxUtils.indexOf(Ka,Ua)+(A?-1:1),Ka.length)],[R])}F.push(R)}}}finally{B.endUpdate()}return F};Graph.prototype.stencilHasPlaceholders=function(p){if(null!=p&&null!=p.fgNode)for(p=p.fgNode.firstChild;null!=p;){if("text"==p.nodeName&&"1"==p.getAttribute("placeholders"))return!0;p=p.nextSibling}return!1};var E=Graph.prototype.processChange;Graph.prototype.processChange=function(p){if(p instanceof mxGeometryChange&&(this.isTableCell(p.cell)||this.isTableRow(p.cell))&&(null==p.previous&&null!=
+p.geometry||null!=p.previous&&!p.previous.equals(p.geometry))){var A=p.cell;this.isTableCell(A)&&(A=this.model.getParent(A));this.isTableRow(A)&&(A=this.model.getParent(A));var B=this.view.getState(A);null!=B&&null!=B.shape&&(this.view.invalidate(A),B.shape.bounds=null)}E.apply(this,arguments);p instanceof mxValueChange&&null!=p.cell&&null!=p.cell.value&&"object"==typeof p.cell.value&&this.invalidateDescendantsWithPlaceholders(p.cell)};Graph.prototype.invalidateDescendantsWithPlaceholders=function(p){p=
+this.model.getDescendants(p);if(0<p.length)for(var A=0;A<p.length;A++){var B=this.view.getState(p[A]);null!=B&&null!=B.shape&&null!=B.shape.stencil&&this.stencilHasPlaceholders(B.shape.stencil)?this.removeStateForCell(p[A]):this.isReplacePlaceholders(p[A])&&this.view.invalidate(p[A],!1,!1)}};Graph.prototype.replaceElement=function(p,A){A=p.ownerDocument.createElement(null!=A?A:"span");for(var B=Array.prototype.slice.call(p.attributes);attr=B.pop();)A.setAttribute(attr.nodeName,attr.nodeValue);A.innerHTML=
+p.innerHTML;p.parentNode.replaceChild(A,p)};Graph.prototype.processElements=function(p,A){if(null!=p){p=p.getElementsByTagName("*");for(var B=0;B<p.length;B++)null!=p[B]&&A(p[B])}};Graph.prototype.updateLabelElements=function(p,A,B){p=null!=p?p:this.getSelectionCells();for(var F=document.createElement("div"),M=0;M<p.length;M++){var R=this.getCurrentCellStyle(p[M]);if(null!=R&&"1"==R.html&&(R=this.convertValueToString(p[M]),null!=R&&0<R.length)){F.innerHTML=Graph.sanitizeHtml(R);for(var W=F.getElementsByTagName(null!=
+B?B:"*"),ha=0;ha<W.length;ha++)A(W[ha]);F.innerHTML!=R&&this.cellLabelChanged(p[M],F.innerHTML)}}};Graph.prototype.cellLabelChanged=function(p,A,B){A=Graph.zapGremlins(A);this.model.beginUpdate();try{if(null!=p.value&&"object"==typeof p.value){if(this.isReplacePlaceholders(p)&&null!=p.getAttribute("placeholder"))for(var F=p.getAttribute("placeholder"),M=p;null!=M;){if(M==this.model.getRoot()||null!=M.value&&"object"==typeof M.value&&M.hasAttribute(F)){this.setAttributeForCell(M,F,A);break}M=this.model.getParent(M)}var R=
+p.value.cloneNode(!0);Graph.translateDiagram&&null!=Graph.diagramLanguage&&R.hasAttribute("label_"+Graph.diagramLanguage)?R.setAttribute("label_"+Graph.diagramLanguage,A):R.setAttribute("label",A);A=R}mxGraph.prototype.cellLabelChanged.apply(this,arguments)}finally{this.model.endUpdate()}};Graph.prototype.cellsRemoved=function(p){if(null!=p){for(var A=new mxDictionary,B=0;B<p.length;B++)A.put(p[B],!0);var F=[];for(B=0;B<p.length;B++){var M=this.model.getParent(p[B]);null==M||A.get(M)||(A.put(M,!0),
+F.push(M))}for(B=0;B<F.length;B++)if(M=this.view.getState(F[B]),null!=M&&(this.model.isEdge(M.cell)||this.model.isVertex(M.cell))&&this.isCellDeletable(M.cell)&&this.isTransparentState(M)){for(var R=!0,W=0;W<this.model.getChildCount(M.cell)&&R;W++)A.get(this.model.getChildAt(M.cell,W))||(R=!1);R&&p.push(M.cell)}}mxGraph.prototype.cellsRemoved.apply(this,arguments)};Graph.prototype.removeCellsAfterUngroup=function(p){for(var A=[],B=0;B<p.length;B++)this.isCellDeletable(p[B])&&this.isTransparentState(this.view.getState(p[B]))&&
+A.push(p[B]);p=A;mxGraph.prototype.removeCellsAfterUngroup.apply(this,arguments)};Graph.prototype.setLinkForCell=function(p,A){this.setAttributeForCell(p,"link",A)};Graph.prototype.setTooltipForCell=function(p,A){var B="tooltip";Graph.translateDiagram&&null!=Graph.diagramLanguage&&mxUtils.isNode(p.value)&&p.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(B="tooltip_"+Graph.diagramLanguage);this.setAttributeForCell(p,B,A)};Graph.prototype.getAttributeForCell=function(p,A,B){p=null!=p.value&&
+"object"===typeof p.value?p.value.getAttribute(A):null;return null!=p?p:B};Graph.prototype.setAttributeForCell=function(p,A,B){if(null!=p.value&&"object"==typeof p.value)var F=p.value.cloneNode(!0);else F=mxUtils.createXmlDocument().createElement("UserObject"),F.setAttribute("label",p.value||"");null!=B?F.setAttribute(A,B):F.removeAttribute(A);this.model.setValue(p,F)};Graph.prototype.isTargetShape=function(p,A,B){p=mxUtils.getValue(this.getCurrentCellStyle(p),mxConstants.STYLE_SHAPE,"");for(B=0;B<
+A.length;B++){var F=mxUtils.getValue(this.getCurrentCellStyle(A[B]),"targetShapes","").split(",");if(0<=mxUtils.indexOf(F,p))return!0}return!1};var D=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(p,A,B,F){if(mxEvent.isAltDown(A))return null;for(var M=0;M<p.length;M++){var R=this.model.getParent(p[M]);if(this.model.isEdge(R)&&0>mxUtils.indexOf(p,R))return null}R=D.apply(this,arguments);var W=!0;for(M=0;M<p.length&&W;M++)W=W&&this.isTableRow(p[M]);W&&(this.isTableCell(R)&&(R=
+this.model.getParent(R)),this.isTableRow(R)&&(R=this.model.getParent(R)),this.isTable(R)||(R=null));return R};Graph.prototype.click=function(p){mxGraph.prototype.click.call(this,p);this.firstClickState=p.getState();this.firstClickSource=p.getSource()};Graph.prototype.dblClick=function(p,A){this.isEnabled()&&(A=this.insertTextForEvent(p,A),mxGraph.prototype.dblClick.call(this,p,A))};Graph.prototype.insertTextForEvent=function(p,A){var B=mxUtils.convertPoint(this.container,mxEvent.getClientX(p),mxEvent.getClientY(p));
+if(null!=p&&!this.model.isVertex(A)){var F=this.model.isEdge(A)?this.view.getState(A):null,M=mxEvent.getSource(p);this.firstClickState!=F||this.firstClickSource!=M||null!=F&&null!=F.text&&null!=F.text.node&&null!=F.text.boundingBox&&(mxUtils.contains(F.text.boundingBox,B.x,B.y)||mxUtils.isAncestorNode(F.text.node,mxEvent.getSource(p)))||(null!=F||this.isCellLocked(this.getDefaultParent()))&&(null==F||this.isCellLocked(F.cell))||!(null!=F||mxClient.IS_SVG&&M==this.view.getCanvas().ownerSVGElement)||
+(null==F&&(F=this.view.getState(this.getCellAt(B.x,B.y))),A=this.addText(B.x,B.y,F))}return A};Graph.prototype.getInsertPoint=function(){var p=this.getGridSize(),A=this.container.scrollLeft/this.view.scale-this.view.translate.x,B=this.container.scrollTop/this.view.scale-this.view.translate.y;if(this.pageVisible){var F=this.getPageLayout(),M=this.getPageSize();A=Math.max(A,F.x*M.width);B=Math.max(B,F.y*M.height)}return new mxPoint(this.snap(A+p),this.snap(B+p))};Graph.prototype.getFreeInsertPoint=
+function(){var p=this.view,A=this.getGraphBounds(),B=this.getInsertPoint(),F=this.snap(Math.round(Math.max(B.x,A.x/p.scale-p.translate.x+(0==A.width?2*this.gridSize:0))));p=this.snap(Math.round(Math.max(B.y,(A.y+A.height)/p.scale-p.translate.y+2*this.gridSize)));return new mxPoint(F,p)};Graph.prototype.getCenterInsertPoint=function(p){p=null!=p?p:new mxRectangle;return mxUtils.hasScrollbars(this.container)?new mxPoint(this.snap(Math.round((this.container.scrollLeft+this.container.clientWidth/2)/this.view.scale-
+this.view.translate.x-p.width/2)),this.snap(Math.round((this.container.scrollTop+this.container.clientHeight/2)/this.view.scale-this.view.translate.y-p.height/2))):new mxPoint(this.snap(Math.round(this.container.clientWidth/2/this.view.scale-this.view.translate.x-p.width/2)),this.snap(Math.round(this.container.clientHeight/2/this.view.scale-this.view.translate.y-p.height/2)))};Graph.prototype.isMouseInsertPoint=function(){return!1};Graph.prototype.appendFontSize=function(p,A){p=null!=p?p:"";null!=
+A&&(0<p.length&&";"!=p.charAt(p.length-1)&&(p+=";"),p+="fontSize="+A+";");return p};Graph.prototype.addText=function(p,A,B){var F=new mxCell;F.value="Text";F.geometry=new mxGeometry(0,0,0,0);F.vertex=!0;if(null!=B&&this.model.isEdge(B.cell)){F.style="edgeLabel;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.edgeFontSize);F.geometry.relative=!0;F.connectable=!1;var M=this.view.getRelativePoint(B,p,A);F.geometry.x=Math.round(1E4*M.x)/1E4;F.geometry.y=Math.round(M.y);
+F.geometry.offset=new mxPoint(0,0);M=this.view.getPoint(B,F.geometry);var R=this.view.scale;F.geometry.offset=new mxPoint(Math.round((p-M.x)/R),Math.round((A-M.y)/R))}else M=this.view.translate,F.style="text;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.vertexFontSize),F.geometry.width=40,F.geometry.height=20,F.geometry.x=Math.round(p/this.view.scale)-M.x-(null!=B?B.origin.x:0),F.geometry.y=Math.round(A/this.view.scale)-M.y-(null!=B?B.origin.y:0),F.style+=
+"autosize=1;";this.getModel().beginUpdate();try{this.addCells([F],null!=B?B.cell:null),this.fireEvent(new mxEventObject("textInserted","cells",[F])),this.autoSizeCell(F)}finally{this.getModel().endUpdate()}return F};Graph.prototype.addClickHandler=function(p,A,B){var F=mxUtils.bind(this,function(){var fa=this.container.getElementsByTagName("a");if(null!=fa)for(var ja=0;ja<fa.length;ja++){var va=this.getAbsoluteUrl(fa[ja].getAttribute("href"));null!=va&&(fa[ja].setAttribute("rel",this.linkRelation),
+fa[ja].setAttribute("href",va),null!=A&&mxEvent.addGestureListeners(fa[ja],null,null,A))}});this.model.addListener(mxEvent.CHANGE,F);F();var M=this.container.style.cursor,R=this.getTolerance(),W=this,ha={currentState:null,currentLink:null,currentTarget:null,highlight:null!=p&&""!=p&&p!=mxConstants.NONE?new mxCellHighlight(W,p,4):null,startX:0,startY:0,scrollLeft:0,scrollTop:0,updateCurrentState:function(fa){var ja=fa.sourceState;if(null==ja||null==W.getLinkForCell(ja.cell))fa=W.getCellAt(fa.getGraphX(),
fa.getGraphY(),null,null,null,function(va,Ma,Na){return null==W.getLinkForCell(va.cell)}),ja=null==ja||W.model.isAncestor(fa,ja.cell)?W.view.getState(fa):null;ja!=this.currentState&&(null!=this.currentState&&this.clear(),this.currentState=ja,null!=this.currentState&&this.activate(this.currentState))},mouseDown:function(fa,ja){this.startX=ja.getGraphX();this.startY=ja.getGraphY();this.scrollLeft=W.container.scrollLeft;this.scrollTop=W.container.scrollTop;null==this.currentLink&&"auto"==W.container.style.overflow&&
(W.container.style.cursor="move");this.updateCurrentState(ja)},mouseMove:function(fa,ja){if(W.isMouseDown)null!=this.currentLink&&(fa=Math.abs(this.startX-ja.getGraphX()),ja=Math.abs(this.startY-ja.getGraphY()),(fa>R||ja>R)&&this.clear());else{for(fa=ja.getSource();null!=fa&&"a"!=fa.nodeName.toLowerCase();)fa=fa.parentNode;null!=fa?this.clear():(null!=W.tooltipHandler&&null!=this.currentLink&&null!=this.currentState&&W.tooltipHandler.reset(ja,!0,this.currentState),(null==this.currentState||ja.getState()!=
this.currentState&&null!=ja.sourceState||!W.intersects(this.currentState,ja.getGraphX(),ja.getGraphY()))&&this.updateCurrentState(ja))}},mouseUp:function(fa,ja){var va=ja.getSource();for(fa=ja.getEvent();null!=va&&"a"!=va.nodeName.toLowerCase();)va=va.parentNode;null==va&&Math.abs(this.scrollLeft-W.container.scrollLeft)<R&&Math.abs(this.scrollTop-W.container.scrollTop)<R&&(null==ja.sourceState||!ja.isSource(ja.sourceState.control))&&((mxEvent.isLeftMouseButton(fa)||mxEvent.isMiddleMouseButton(fa))&&
!mxEvent.isPopupTrigger(fa)||mxEvent.isTouchEvent(fa))&&(null!=this.currentLink?(va=W.isBlankLink(this.currentLink),"data:"!==this.currentLink.substring(0,5)&&va||null==A||A(fa,this.currentLink,null!=this.currentState?this.currentState.cell:null),mxEvent.isConsumed(fa)||(fa=null!=this.currentTarget?this.currentTarget:mxEvent.isMiddleMouseButton(fa)?"_blank":va?W.linkTarget:"_top",W.openLink(this.currentLink,fa),ja.consume())):null!=B&&!ja.isConsumed()&&Math.abs(this.scrollLeft-W.container.scrollLeft)<
R&&Math.abs(this.scrollTop-W.container.scrollTop)<R&&Math.abs(this.startX-ja.getGraphX())<R&&Math.abs(this.startY-ja.getGraphY())<R&&B(ja.getEvent()));this.clear()},activate:function(fa){this.currentLink=W.getAbsoluteUrl(W.getLinkForCell(fa.cell));null!=this.currentLink&&(this.currentTarget=W.getLinkTargetForCell(fa.cell),W.container.style.cursor="pointer",null!=this.highlight&&this.highlight.highlight(fa))},clear:function(){null!=W.container&&(W.container.style.cursor=M);this.currentLink=this.currentState=
-this.currentTarget=null;null!=this.highlight&&this.highlight.hide();null!=W.tooltipHandler&&W.tooltipHandler.hide()}};W.click=function(fa){};W.addMouseListener(ha);mxEvent.addListener(document,"mouseleave",function(fa){ha.clear()})};Graph.prototype.duplicateCells=function(q,A){q=null!=q?q:this.getSelectionCells();A=null!=A?A:!0;for(var B=0;B<q.length;B++)this.isTableCell(q[B])&&(q[B]=this.model.getParent(q[B]));q=this.model.getTopmostCells(q);var F=this.getModel(),M=this.gridSize,R=[];F.beginUpdate();
-try{var W={},ha=this.createCellLookup(q),fa=this.cloneCells(q,!1,W,!0);for(B=0;B<q.length;B++){var ja=F.getParent(q[B]);if(null!=ja){var va=this.moveCells([fa[B]],M,M,!1)[0];R.push(va);if(A)F.add(ja,fa[B]);else{var Ma=ja.getIndex(q[B]);F.add(ja,fa[B],Ma+1)}if(this.isTable(ja)){var Na=this.getCellGeometry(fa[B]),ya=this.getCellGeometry(ja);null!=Na&&null!=ya&&(ya=ya.clone(),ya.height+=Na.height,F.setGeometry(ja,ya))}}else R.push(fa[B])}this.updateCustomLinks(this.createCellMapping(W,ha),fa,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,
-"cells",fa))}finally{F.endUpdate()}return R};Graph.prototype.insertImage=function(q,A,B){if(null!=q&&null!=this.cellEditor.textarea){for(var F=this.cellEditor.textarea.getElementsByTagName("img"),M=[],R=0;R<F.length;R++)M.push(F[R]);document.execCommand("insertimage",!1,q);q=this.cellEditor.textarea.getElementsByTagName("img");if(q.length==M.length+1)for(R=q.length-1;0<=R;R--)if(0==R||q[R]!=M[R-1]){q[R].setAttribute("width",A);q[R].setAttribute("height",B);break}}};Graph.prototype.insertLink=function(q){if(null!=
-this.cellEditor.textarea)if(0==q.length)document.execCommand("unlink",!1);else if(mxClient.IS_FF){for(var A=this.cellEditor.textarea.getElementsByTagName("a"),B=[],F=0;F<A.length;F++)B.push(A[F]);document.execCommand("createlink",!1,mxUtils.trim(q));A=this.cellEditor.textarea.getElementsByTagName("a");if(A.length==B.length+1)for(F=A.length-1;0<=F;F--)if(A[F]!=B[F-1]){for(A=A[F].getElementsByTagName("a");0<A.length;){for(B=A[0].parentNode;null!=A[0].firstChild;)B.insertBefore(A[0].firstChild,A[0]);
-B.removeChild(A[0])}break}}else document.execCommand("createlink",!1,mxUtils.trim(q))};Graph.prototype.isCellResizable=function(q){var A=mxGraph.prototype.isCellResizable.apply(this,arguments),B=this.getCurrentCellStyle(q);return!this.isTableCell(q)&&!this.isTableRow(q)&&(A||"0"!=mxUtils.getValue(B,mxConstants.STYLE_RESIZABLE,"1")&&"wrap"==B[mxConstants.STYLE_WHITE_SPACE])};Graph.prototype.distributeCells=function(q,A,B){null==A&&(A=this.getSelectionCells());if(null!=A&&1<A.length){for(var F=[],M=
-null,R=null,W=0,ha=0;ha<A.length;ha++)if(this.getModel().isVertex(A[ha])){var fa=this.view.getState(A[ha]);if(null!=fa){var ja=q?fa.getCenterX():fa.getCenterY();M=null!=M?Math.max(M,ja):ja;R=null!=R?Math.min(R,ja):ja;B&&(W+=q?fa.width:fa.height);F.push(fa)}}if(2<F.length){F.sort(function(Ha,wa){return q?Ha.x-wa.x:Ha.y-wa.y});B&&(W-=q?F[0].width/2+F[F.length-1].width/2:F[0].height/2+F[F.length-1].height/2);fa=this.view.translate;ja=this.view.scale;R=R/ja-(q?fa.x:fa.y);M=M/ja-(q?fa.x:fa.y);this.getModel().beginUpdate();
-try{var va=(M-R-W)/(F.length-1),Ma=R+(B?q?F[0].width/2:F[0].height/2:0);for(ha=1;ha<F.length-1;ha++){var Na=this.view.getState(this.model.getParent(F[ha].cell)),ya=this.getCellGeometry(F[ha].cell);Ma+=va;null!=ya&&null!=Na&&(ya=ya.clone(),q?ya.x=Math.round(Ma-(B?0:ya.width/2))-Na.origin.x:ya.y=Math.round(Ma-(B?0:ya.height/2))-Na.origin.y,this.getModel().setGeometry(F[ha].cell,ya));B&&(Ma+=q?F[ha].width:F[ha].height)}}finally{this.getModel().endUpdate()}}}return A};Graph.prototype.isCloneEvent=function(q){return mxClient.IS_MAC&&
-mxEvent.isMetaDown(q)||mxEvent.isControlDown(q)};Graph.prototype.createSvgImageExport=function(q){q=new mxImageExport;q.addCellData=function(B,F,M){F.setAttribute("data-cell-id",B.id);if(M)if(mxUtils.isNode(B.value))for(M=0;M<B.value.attributes.length;M++){var R=B.value.attributes[M];F.setAttribute("data-cell-"+R.name,R.value)}else if("object"===typeof B.value)for(R in B.value)F.setAttribute("data-cell-"+R,B.value[R]);else null!=B.value&&F.setAttribute("data-cell-value",B.value);return F};var A=q.visitStatesRecursive;
-q.visitStatesRecursive=function(B,F,M){if(null!=B){var R=F.root,W=F.root.ownerDocument;F.root=this.addCellData(B.cell,null!=W.createElementNS?W.createElementNS(mxConstants.NS_SVG,"g"):W.createElement("g"),Editor.addSvgMetadata);R.appendChild(F.root);A.apply(this,arguments);F.root=R}};q.getLinkForCellState=mxUtils.bind(this,function(B,F){return this.getLinkForCell(B.cell)});q.getTitleForCellState=mxUtils.bind(this,function(B,F){return Editor.convertHtmlToText(this.convertValueToTooltip(B.cell))});
-return q};Graph.prototype.parseBackgroundImage=function(q){var A=null;null!=q&&0<q.length&&(q=JSON.parse(q),A=new mxImage(q.src,q.width,q.height));return A};Graph.prototype.getBackgroundImageObject=function(q){return q};Graph.prototype.getSvg=function(q,A,B,F,M,R,W,ha,fa,ja,va,Ma,Na,ya,Ha,wa){var ua=null;if(null!=ya)for(ua=new mxDictionary,va=0;va<ya.length;va++)ua.put(ya[va],!0);ya=this.useCssTransforms;var Va=this.enableFlowAnimation;this.enableFlowAnimation=!1;ya&&(this.useCssTransforms=!1,this.view.revalidate(),
+this.currentTarget=null;null!=this.highlight&&this.highlight.hide();null!=W.tooltipHandler&&W.tooltipHandler.hide()}};W.click=function(fa){};W.addMouseListener(ha);mxEvent.addListener(document,"mouseleave",function(fa){ha.clear()})};Graph.prototype.duplicateCells=function(p,A){p=null!=p?p:this.getSelectionCells();A=null!=A?A:!0;for(var B=0;B<p.length;B++)this.isTableCell(p[B])&&(p[B]=this.model.getParent(p[B]));p=this.model.getTopmostCells(p);var F=this.getModel(),M=this.gridSize,R=[];F.beginUpdate();
+try{var W={},ha=this.createCellLookup(p),fa=this.cloneCells(p,!1,W,!0);for(B=0;B<p.length;B++){var ja=F.getParent(p[B]);if(null!=ja){var va=this.moveCells([fa[B]],M,M,!1)[0];R.push(va);if(A)F.add(ja,fa[B]);else{var Ma=ja.getIndex(p[B]);F.add(ja,fa[B],Ma+1)}if(this.isTable(ja)){var Na=this.getCellGeometry(fa[B]),ya=this.getCellGeometry(ja);null!=Na&&null!=ya&&(ya=ya.clone(),ya.height+=Na.height,F.setGeometry(ja,ya))}}else R.push(fa[B])}this.updateCustomLinks(this.createCellMapping(W,ha),fa,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,
+"cells",fa))}finally{F.endUpdate()}return R};Graph.prototype.insertImage=function(p,A,B){if(null!=p&&null!=this.cellEditor.textarea){for(var F=this.cellEditor.textarea.getElementsByTagName("img"),M=[],R=0;R<F.length;R++)M.push(F[R]);document.execCommand("insertimage",!1,p);p=this.cellEditor.textarea.getElementsByTagName("img");if(p.length==M.length+1)for(R=p.length-1;0<=R;R--)if(0==R||p[R]!=M[R-1]){p[R].setAttribute("width",A);p[R].setAttribute("height",B);break}}};Graph.prototype.insertLink=function(p){if(null!=
+this.cellEditor.textarea)if(0==p.length)document.execCommand("unlink",!1);else if(mxClient.IS_FF){for(var A=this.cellEditor.textarea.getElementsByTagName("a"),B=[],F=0;F<A.length;F++)B.push(A[F]);document.execCommand("createlink",!1,mxUtils.trim(p));A=this.cellEditor.textarea.getElementsByTagName("a");if(A.length==B.length+1)for(F=A.length-1;0<=F;F--)if(A[F]!=B[F-1]){for(A=A[F].getElementsByTagName("a");0<A.length;){for(B=A[0].parentNode;null!=A[0].firstChild;)B.insertBefore(A[0].firstChild,A[0]);
+B.removeChild(A[0])}break}}else document.execCommand("createlink",!1,mxUtils.trim(p))};Graph.prototype.isCellResizable=function(p){var A=mxGraph.prototype.isCellResizable.apply(this,arguments),B=this.getCurrentCellStyle(p);return!this.isTableCell(p)&&!this.isTableRow(p)&&(A||"0"!=mxUtils.getValue(B,mxConstants.STYLE_RESIZABLE,"1")&&"wrap"==B[mxConstants.STYLE_WHITE_SPACE])};Graph.prototype.distributeCells=function(p,A,B){null==A&&(A=this.getSelectionCells());if(null!=A&&1<A.length){for(var F=[],M=
+null,R=null,W=0,ha=0;ha<A.length;ha++)if(this.getModel().isVertex(A[ha])){var fa=this.view.getState(A[ha]);if(null!=fa){var ja=p?fa.getCenterX():fa.getCenterY();M=null!=M?Math.max(M,ja):ja;R=null!=R?Math.min(R,ja):ja;B&&(W+=p?fa.width:fa.height);F.push(fa)}}if(2<F.length){F.sort(function(Ha,wa){return p?Ha.x-wa.x:Ha.y-wa.y});B&&(W-=p?F[0].width/2+F[F.length-1].width/2:F[0].height/2+F[F.length-1].height/2);fa=this.view.translate;ja=this.view.scale;R=R/ja-(p?fa.x:fa.y);M=M/ja-(p?fa.x:fa.y);this.getModel().beginUpdate();
+try{var va=(M-R-W)/(F.length-1),Ma=R+(B?p?F[0].width/2:F[0].height/2:0);for(ha=1;ha<F.length-1;ha++){var Na=this.view.getState(this.model.getParent(F[ha].cell)),ya=this.getCellGeometry(F[ha].cell);Ma+=va;null!=ya&&null!=Na&&(ya=ya.clone(),p?ya.x=Math.round(Ma-(B?0:ya.width/2))-Na.origin.x:ya.y=Math.round(Ma-(B?0:ya.height/2))-Na.origin.y,this.getModel().setGeometry(F[ha].cell,ya));B&&(Ma+=p?F[ha].width:F[ha].height)}}finally{this.getModel().endUpdate()}}}return A};Graph.prototype.isCloneEvent=function(p){return mxClient.IS_MAC&&
+mxEvent.isMetaDown(p)||mxEvent.isControlDown(p)};Graph.prototype.createSvgImageExport=function(p){p=new mxImageExport;p.addCellData=function(B,F,M){F.setAttribute("data-cell-id",B.id);if(M)if(mxUtils.isNode(B.value))for(M=0;M<B.value.attributes.length;M++){var R=B.value.attributes[M];F.setAttribute("data-cell-"+R.name,R.value)}else if("object"===typeof B.value)for(R in B.value)F.setAttribute("data-cell-"+R,B.value[R]);else null!=B.value&&F.setAttribute("data-cell-value",B.value);return F};var A=p.visitStatesRecursive;
+p.visitStatesRecursive=function(B,F,M){if(null!=B){var R=F.root,W=F.root.ownerDocument;F.root=this.addCellData(B.cell,null!=W.createElementNS?W.createElementNS(mxConstants.NS_SVG,"g"):W.createElement("g"),Editor.addSvgMetadata);R.appendChild(F.root);A.apply(this,arguments);F.root=R}};p.getLinkForCellState=mxUtils.bind(this,function(B,F){return this.getLinkForCell(B.cell)});p.getTitleForCellState=mxUtils.bind(this,function(B,F){return Editor.convertHtmlToText(this.convertValueToTooltip(B.cell))});
+return p};Graph.prototype.parseBackgroundImage=function(p){var A=null;null!=p&&0<p.length&&(p=JSON.parse(p),A=new mxImage(p.src,p.width,p.height));return A};Graph.prototype.getBackgroundImageObject=function(p){return p};Graph.prototype.getSvg=function(p,A,B,F,M,R,W,ha,fa,ja,va,Ma,Na,ya,Ha,wa){var ua=null;if(null!=ya)for(ua=new mxDictionary,va=0;va<ya.length;va++)ua.put(ya[va],!0);ya=this.useCssTransforms;var Va=this.enableFlowAnimation;this.enableFlowAnimation=!1;ya&&(this.useCssTransforms=!1,this.view.revalidate(),
this.sizeDidChange());try{A=null!=A?A:1;B=null!=B?B:0;M=null!=M?M:!0;R=null!=R?R:!0;W=null!=W?W:!0;ja=null!=ja?ja:!1;var Qa="page"==Na?this.view.getBackgroundPageBounds():R&&null==ua||F||"diagram"==Na?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells()),Ka=this.backgroundImage,Ua=this.view.translate,Wa=this.view.scale;"diagram"==Na&&null!=Ka&&null!=Ka.width&&null!=Ka.height&&(Qa=mxRectangle.fromRectangle(Qa),Qa.add(new mxRectangle((Ua.x+Ka.x)*Wa,(Ua.y+Ka.y)*Wa,Ka.width*Wa,Ka.height*
-Wa)));if(null==Qa)throw Error(mxResources.get("drawingEmpty"));F=A/Wa;var mb=Math.max(1,Math.ceil(Qa.width*F)+2*B)+(ja&&0==B?5:0),ub=Math.max(1,Math.ceil(Qa.height*F)+2*B)+(ja&&0==B?5:0);ja=M?-.5:0;var vb=mxUtils.getLightDarkColor(q),jb=Graph.createSvgNode(ja,ja,mb,ub,vb),nb=jb.ownerDocument;if(null!=q){var db=mxUtils.createElementNs(nb,mxConstants.NS_SVG,"rect");db.setAttribute("fill",vb.light);db.style.fill=vb.cssText;db.setAttribute("width","100%");db.setAttribute("height","100%");db.setAttribute("x",
+Wa)));if(null==Qa)throw Error(mxResources.get("drawingEmpty"));F=A/Wa;var mb=Math.max(1,Math.ceil(Qa.width*F)+2*B)+(ja&&0==B?5:0),ub=Math.max(1,Math.ceil(Qa.height*F)+2*B)+(ja&&0==B?5:0);ja=M?-.5:0;var vb=mxUtils.getLightDarkColor(p),jb=Graph.createSvgNode(ja,ja,mb,ub,vb),nb=jb.ownerDocument;if(null!=p){var db=mxUtils.createElementNs(nb,mxConstants.NS_SVG,"rect");db.setAttribute("fill",vb.light);db.style.fill=vb.cssText;db.setAttribute("width","100%");db.setAttribute("height","100%");db.setAttribute("x",
"0");db.setAttribute("y","0");jb.appendChild(db)}var qb=mxUtils.createElementNs(nb,mxConstants.NS_SVG,"g");jb.appendChild(qb);var bb=this.createSvgCanvas(qb);bb.foOffset=M?-.5:0;bb.textOffset=M?-.5:0;bb.imageOffset=M?-.5:0;bb.translate(Math.floor(B/A-Qa.x/Wa),Math.floor(B/A-Qa.y/Wa));bb.idPrefix="drawio-svg-"+Editor.guid();var wb=document.createElement("div"),rb=bb.getAlternateText;bb.getAlternateText=function(Sa,sb,$a,kb,ob,Za,xb,c,l,t,n,r,v){if(null!=Za&&0<this.state.fontSize)try{mxUtils.isNode(Za)?
-Za=Za.innerText:(wb.innerHTML=Za,Za=mxUtils.extractTextWithWhitespace(wb.childNodes));for(var x=Math.ceil(2*kb/this.state.fontSize),I=[],y=0,aa=0;(0==x||y<x)&&aa<Za.length;){var S=Za.charCodeAt(aa);if(10==S||13==S){if(0<y)break}else I.push(Za.charAt(aa)),255>S&&y++;aa++}I.length<Za.length&&1<Za.length-I.length&&(Za=mxUtils.trim(I.join(""))+"...");return Za}catch(Fa){return rb.apply(this,arguments)}else return rb.apply(this,arguments)};null!=Ka&&null!=Ka.width&&null!=Ka.height&&(q=Wa/A,ja=new mxRectangle((Ka.x+
-Ua.x)*q,(Ka.y+Ua.y)*q,Ka.width*q,Ka.height*q),mxUtils.intersects(Qa,ja)&&bb.image(Ka.x+Ua.x,Ka.y+Ua.y,Ka.width,Ka.height,Ka.src,!0));bb.scale(F);bb.textEnabled=W;ha=null!=ha?ha:this.createSvgImageExport();var tb=ha.getLinkForCellState;ha.getLinkForCellState=function(Sa,sb){var $a=Sa.view.graph.getAbsoluteUrl(tb.apply(this,arguments));return null==$a||Sa.view.graph.isCustomLink($a)?null:$a};ha.getLinkTargetForCellState=function(Sa,sb){return Sa.view.graph.getLinkTargetForCell(Sa.cell)};var yb=ha.drawCellState,
+Za=Za.innerText:(wb.innerHTML=Za,Za=mxUtils.extractTextWithWhitespace(wb.childNodes));for(var x=Math.ceil(2*kb/this.state.fontSize),I=[],y=0,aa=0;(0==x||y<x)&&aa<Za.length;){var S=Za.charCodeAt(aa);if(10==S||13==S){if(0<y)break}else I.push(Za.charAt(aa)),255>S&&y++;aa++}I.length<Za.length&&1<Za.length-I.length&&(Za=mxUtils.trim(I.join(""))+"...");return Za}catch(Fa){return rb.apply(this,arguments)}else return rb.apply(this,arguments)};null!=Ka&&null!=Ka.width&&null!=Ka.height&&(p=Wa/A,ja=new mxRectangle((Ka.x+
+Ua.x)*p,(Ka.y+Ua.y)*p,Ka.width*p,Ka.height*p),mxUtils.intersects(Qa,ja)&&bb.image(Ka.x+Ua.x,Ka.y+Ua.y,Ka.width,Ka.height,Ka.src,!0));bb.scale(F);bb.textEnabled=W;ha=null!=ha?ha:this.createSvgImageExport();var tb=ha.getLinkForCellState;ha.getLinkForCellState=function(Sa,sb){var $a=Sa.view.graph.getAbsoluteUrl(tb.apply(this,arguments));return null==$a||Sa.view.graph.isCustomLink($a)?null:$a};ha.getLinkTargetForCellState=function(Sa,sb){return Sa.view.graph.getLinkTargetForCell(Sa.cell)};var yb=ha.drawCellState,
lb=null,hb=mxUtils.bind(this,function(){if(null==lb){lb="ge-flow-animation-"+Editor.guid();var Sa=null!=nb.createElementNS?nb.createElementNS(mxConstants.NS_SVG,"style"):nb.createElement("style");Sa.innerHTML=this.createFlowAnimationCss(lb);nb.getElementsByTagName("defs")[0].appendChild(Sa)}return lb});ha.drawCellState=function(Sa,sb){for(var $a=Sa.view.graph,kb=null!=ua?ua.get(Sa.cell):$a.isCellSelected(Sa.cell),ob=$a.model.getParent(Sa.cell);!(R&&null==ua||kb)&&null!=ob;)kb=null!=ua?ua.get(ob):
$a.isCellSelected(ob),ob=$a.model.getParent(ob);if(null!=Sa.shape)try{var Za=Sa.shape.isFlowAnimationEnabled,xb=Sa.shape.addFlowAnimationToShape;Sa.shape.isFlowAnimationEnabled=function(){return Va&&$a.model.isEdge(Sa.cell)&&"1"==mxUtils.getValue(Sa.style,"flowAnimation","0")};Sa.shape.addFlowAnimationToShape=function(){$a.addFlowAnimationToNode(this.getFlowAnimationPath(),Sa.style,A,hb())};if(R&&null==ua||kb)$a.view.redrawEnumerationState(Sa),yb.apply(this,arguments),this.doDrawShape(Sa.secondLabel,
-sb)}finally{Sa.shape.isFlowAnimationEnabled=Za,Sa.shape.addFlowAnimationToShape=xb}};var Ta=null!=this.view.currentRoot?this.view.currentRoot:this.model.root;ha.drawState(this.getView().getState(Ta),bb);this.addForeignObjectWarning(bb,jb);wa?this.disableSvgLinks(jb):this.updateSvgLinks(jb,fa,!0);return jb}finally{this.enableFlowAnimation=Va,ya&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.addForeignObjectWarning=function(q,A){if("0"!=urlParams["svg-warning"]&&
-0<A.getElementsByTagName("foreignObject").length){var B=q.createElement("switch"),F=q.createElement("g");F.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility");var M=q.createElement("a");M.setAttribute("transform","translate(0,-5)");null==M.setAttributeNS||A.ownerDocument!=document&&null==document.documentMode?(M.setAttribute("xlink:href",Graph.foreignObjectWarningLink),M.setAttribute("target","_blank")):(M.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",Graph.foreignObjectWarningLink),
-M.setAttributeNS(mxConstants.NS_XLINK,"target","_blank"));q=q.createElement("text");q.setAttribute("text-anchor","middle");q.setAttribute("font-size","10px");q.setAttribute("x","50%");q.setAttribute("y","100%");mxUtils.write(q,Graph.foreignObjectWarningText);B.appendChild(F);M.appendChild(q);B.appendChild(M);A.appendChild(B)}};Graph.prototype.disableSvgLinks=function(q,A){q=q.getElementsByTagName("a");for(var B=0;B<q.length;B++){var F=q[B].getAttribute("href");null==F&&(F=q[B].getAttribute("xlink:href"));
-null!=F&&(q[B].style.pointerEvents="none",q[B].setAttribute("href",""));A&&A(q[B])}};Graph.prototype.updateSvgLinks=function(q,A,B){q=q.getElementsByTagName("a");for(var F=0;F<q.length;F++)if(null==q[F].getAttribute("target")){var M=q[F].getAttribute("href");null==M&&(M=q[F].getAttribute("xlink:href"));null!=M&&(null!=A&&/^https?:\/\//.test(M)?q[F].setAttribute("target",A):B&&this.isCustomLink(M)&&q[F].setAttribute("href","javascript:void(0);"))}};Graph.prototype.createSvgCanvas=function(q){q=new mxSvgCanvas2D(q);
-q.minStrokeWidth=this.cellRenderer.minSvgStrokeWidth;q.adaptiveColors=this.getAdaptiveColors();q.pointerEvents=!0;return q};Graph.prototype.getSelectedElement=function(){var q=null;if(window.getSelection){var A=window.getSelection();A.getRangeAt&&A.rangeCount&&(q=A.getRangeAt(0).commonAncestorContainer)}else document.selection&&(q=document.selection.createRange().parentElement());return q};Graph.prototype.getSelectedEditingElement=function(){var q=null;if(null!=this.cellEditor.textarea)for(q=this.getSelectedElement();null!=
-q&&q.nodeType!=mxConstants.NODETYPE_ELEMENT;)q=q.parentNode;return q};Graph.prototype.getParentByName=function(q,A,B){for(;null!=q&&q.nodeName!=A;){if(q==B)return null;q=q.parentNode}return q};Graph.prototype.getParentByNames=function(q,A,B){for(;null!=q&&!(0<=mxUtils.indexOf(A,q.nodeName));){if(q==B)return null;q=q.parentNode}return q};Graph.prototype.selectNode=function(q){var A=null;if(window.getSelection){if(A=window.getSelection(),A.getRangeAt&&A.rangeCount){var B=document.createRange();B.selectNode(q);
-A.removeAllRanges();A.addRange(B)}}else(A=document.selection)&&"Control"!=A.type&&(q=A.createRange(),q.collapse(!0),B=A.createRange(),B.setEndPoint("StartToStart",q),B.select())};Graph.prototype.flipEdgePoints=function(q,A,B){var F=this.getCellGeometry(q);if(null!=F){F=F.clone();if(null!=F.points)for(var M=0;M<F.points.length;M++)A?F.points[M].x=B+(B-F.points[M].x):F.points[M].y=B+(B-F.points[M].y);M=function(R){null!=R&&(A?R.x=B+(B-R.x):R.y=B+(B-R.y))};M(F.getTerminalPoint(!0));M(F.getTerminalPoint(!1));
-this.model.setGeometry(q,F)}};Graph.prototype.flipChildren=function(q,A,B){this.model.beginUpdate();try{for(var F=this.model.getChildCount(q),M=0;M<F;M++){var R=this.model.getChildAt(q,M);if(this.model.isEdge(R))this.flipEdgePoints(R,A,B);else{var W=this.getCellGeometry(R);null!=W&&(W=W.clone(),A?W.x=B+(B-W.x-W.width):W.y=B+(B-W.y-W.height),this.model.setGeometry(R,W))}}}finally{this.model.endUpdate()}};Graph.prototype.flipCells=function(q,A){this.model.beginUpdate();try{q=this.model.getTopmostCells(q);
-for(var B=[],F=0;F<q.length;F++)if(this.model.isEdge(q[F])){var M=this.view.getState(q[F]);null!=M&&this.flipEdgePoints(q[F],A,(A?M.getCenterX():M.getCenterY())/this.view.scale-(A?M.origin.x:M.origin.y)-(A?this.view.translate.x:this.view.translate.y))}else{var R=this.getCellGeometry(q[F]);null!=R&&this.flipChildren(q[F],A,A?R.getCenterX()-R.x:R.getCenterY()-R.y);B.push(q[F])}this.toggleCellStyles(A?mxConstants.STYLE_FLIPH:mxConstants.STYLE_FLIPV,!1,B)}finally{this.model.endUpdate()}};Graph.prototype.deleteCells=
-function(q,A){var B=null;if(null!=q&&0<q.length){this.model.beginUpdate();try{for(var F=0;F<q.length;F++){var M=this.model.getParent(q[F]);if(this.isTable(M)){var R=this.getCellGeometry(q[F]),W=this.getCellGeometry(M);null!=R&&null!=W&&(W=W.clone(),W.height-=R.height,this.model.setGeometry(M,W))}}var ha=this.selectParentAfterDelete?this.model.getParents(q):null;this.removeCells(q,A)}finally{this.model.endUpdate()}if(null!=ha)for(B=[],F=0;F<ha.length;F++)this.model.contains(ha[F])&&(this.model.isVertex(ha[F])||
-this.model.isEdge(ha[F]))&&B.push(ha[F])}return B};Graph.prototype.insertTableColumn=function(q,A){var B=this.getModel();B.beginUpdate();try{var F=q,M=0;if(this.isTableCell(q)){var R=B.getParent(q);F=B.getParent(R);M=mxUtils.indexOf(B.getChildCells(R,!0),q)}else this.isTableRow(q)?F=B.getParent(q):q=B.getChildCells(F,!0)[0],A||(M=B.getChildCells(q,!0).length-1);var W=B.getChildCells(F,!0),ha=Graph.minTableColumnWidth;for(q=0;q<W.length;q++){var fa=B.getChildCells(W[q],!0)[M],ja=B.cloneCell(fa,!1);
-null==ja&&(ja=this.createVertex());var va=this.getCellGeometry(ja);ja.value=null;ja.style=mxUtils.setStyle(mxUtils.setStyle(ja.style,"rowspan",null),"colspan",null);if(null!=va){null!=va.alternateBounds&&(va.width=va.alternateBounds.width,va.height=va.alternateBounds.height,va.alternateBounds=null);ha=va.width;var Ma=this.getCellGeometry(W[q]);null!=Ma&&(va.height=Ma.height)}B.add(W[q],ja,M+(A?0:1))}var Na=this.getCellGeometry(F);null!=Na&&(Na=Na.clone(),Na.width+=ha,B.setGeometry(F,Na))}finally{B.endUpdate()}};
-Graph.prototype.deleteLane=function(q){var A=this.getModel();A.beginUpdate();try{var B=null;B="stackLayout"==this.getCurrentCellStyle(q).childLayout?q:A.getParent(q);var F=A.getChildCells(B,!0);0==F.length?A.remove(B):(B==q&&(q=F[F.length-1]),A.remove(q))}finally{A.endUpdate()}};Graph.prototype.insertLane=function(q,A){var B=this.getModel();B.beginUpdate();try{var F=null;if("stackLayout"==this.getCurrentCellStyle(q).childLayout){F=q;var M=B.getChildCells(F,!0);q=M[A?0:M.length-1]}else F=B.getParent(q);
-var R=F.getIndex(q);q=B.cloneCell(q,!1);q.value=null;B.add(F,q,R+(A?0:1))}finally{B.endUpdate()}};Graph.prototype.insertTableRow=function(q,A){var B=this.getModel();B.beginUpdate();try{var F=q,M=q;if(this.isTableCell(q))M=B.getParent(q),F=B.getParent(M);else if(this.isTableRow(q))F=B.getParent(q);else{var R=B.getChildCells(F,!0);M=R[A?0:R.length-1]}var W=B.getChildCells(M,!0),ha=F.getIndex(M);M=B.cloneCell(M,!1);M.value=null;var fa=this.getCellGeometry(M);if(null!=fa){for(R=0;R<W.length;R++){q=B.cloneCell(W[R],
-!1);q.value=null;q.style=mxUtils.setStyle(mxUtils.setStyle(q.style,"rowspan",null),"colspan",null);var ja=this.getCellGeometry(q);null!=ja&&(null!=ja.alternateBounds&&(ja.width=ja.alternateBounds.width,ja.height=ja.alternateBounds.height,ja.alternateBounds=null),ja.height=fa.height);M.insert(q)}B.add(F,M,ha+(A?0:1));var va=this.getCellGeometry(F);null!=va&&(va=va.clone(),va.height+=fa.height,B.setGeometry(F,va))}}finally{B.endUpdate()}};Graph.prototype.deleteTableColumn=function(q){var A=this.getModel();
-A.beginUpdate();try{var B=q,F=q;this.isTableCell(q)&&(F=A.getParent(q));this.isTableRow(F)&&(B=A.getParent(F));var M=A.getChildCells(B,!0);if(0==M.length)A.remove(B);else{this.isTableRow(F)||(F=M[0]);var R=A.getChildCells(F,!0);if(1>=R.length)A.remove(B);else{var W=R.length-1;this.isTableCell(q)&&(W=mxUtils.indexOf(R,q));for(F=q=0;F<M.length;F++){var ha=A.getChildCells(M[F],!0)[W];A.remove(ha);var fa=this.getCellGeometry(ha);null!=fa&&(q=Math.max(q,fa.width))}var ja=this.getCellGeometry(B);null!=
-ja&&(ja=ja.clone(),ja.width-=q,A.setGeometry(B,ja))}}}finally{A.endUpdate()}};Graph.prototype.deleteTableRow=function(q){var A=this.getModel();A.beginUpdate();try{var B=q,F=q;this.isTableCell(q)&&(q=F=A.getParent(q));this.isTableRow(q)&&(B=A.getParent(F));var M=A.getChildCells(B,!0);if(1>=M.length)A.remove(B);else{this.isTableRow(F)||(F=M[M.length-1]);A.remove(F);q=0;var R=this.getCellGeometry(F);null!=R&&(q=R.height);var W=this.getCellGeometry(B);null!=W&&(W=W.clone(),W.height-=q,A.setGeometry(B,
-W))}}finally{A.endUpdate()}};Graph.prototype.insertRow=function(q,A){for(var B=q.tBodies[0],F=B.rows[0].cells,M=q=0;M<F.length;M++){var R=F[M].getAttribute("colspan");q+=null!=R?parseInt(R):1}A=B.insertRow(A);for(M=0;M<q;M++)mxUtils.br(A.insertCell(-1));return A.cells[0]};Graph.prototype.deleteRow=function(q,A){q.tBodies[0].deleteRow(A)};Graph.prototype.insertColumn=function(q,A){var B=q.tHead;if(null!=B)for(var F=0;F<B.rows.length;F++){var M=document.createElement("th");B.rows[F].appendChild(M);
-mxUtils.br(M)}q=q.tBodies[0];for(B=0;B<q.rows.length;B++)F=q.rows[B].insertCell(A),mxUtils.br(F);return q.rows[0].cells[0<=A?A:q.rows[0].cells.length-1]};Graph.prototype.deleteColumn=function(q,A){if(0<=A){q=q.tBodies[0].rows;for(var B=0;B<q.length;B++)q[B].cells.length>A&&q[B].deleteCell(A)}};Graph.prototype.pasteHtmlAtCaret=function(q){if(window.getSelection){var A=window.getSelection();if(A.getRangeAt&&A.rangeCount){A=A.getRangeAt(0);A.deleteContents();var B=document.createElement("div");B.innerHTML=
-q;q=document.createDocumentFragment();for(var F;F=B.firstChild;)lastNode=q.appendChild(F);A.insertNode(q)}}else(A=document.selection)&&"Control"!=A.type&&A.createRange().pasteHTML(q)};Graph.prototype.createLinkForHint=function(q,A,B){function F(R,W){R.length>W&&(R=R.substring(0,Math.round(W/2))+"..."+R.substring(R.length-Math.round(W/4)));return R}q=null!=q?q:"javascript:void(0);";if(null==A||0==A.length)A=this.isCustomLink(q)?this.getLinkTitle(q):q;var M=document.createElement("a");M.setAttribute("rel",
-this.linkRelation);M.setAttribute("href",this.getAbsoluteUrl(q));M.setAttribute("title",F(this.isCustomLink(q)?this.getLinkTitle(q):q,80));null!=this.linkTarget&&M.setAttribute("target",this.linkTarget);mxUtils.write(M,F(A,40));this.isCustomLink(q)&&mxEvent.addListener(M,"click",mxUtils.bind(this,function(R){this.customLinkClicked(q,B);mxEvent.consume(R)}));return M};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};
-this.addListener(mxEvent.START_EDITING,function(R,W){this.popupMenuHandler.hideMenu()});var q=this.updateMouseEvent;this.updateMouseEvent=function(R){R=q.apply(this,arguments);if(mxEvent.isTouchEvent(R.getEvent())&&null==R.getState()){var W=this.getCellAt(R.graphX,R.graphY);null!=W&&this.isSwimlane(W)&&this.hitsSwimlaneContent(W,R.graphX,R.graphY)||(R.state=this.view.getState(W),null!=R.state&&null!=R.state.shape&&(this.container.style.cursor=R.state.shape.node.style.cursor))}null==R.getState()&&
+sb)}finally{Sa.shape.isFlowAnimationEnabled=Za,Sa.shape.addFlowAnimationToShape=xb}};var Ta=null!=this.view.currentRoot?this.view.currentRoot:this.model.root;ha.drawState(this.getView().getState(Ta),bb);this.addForeignObjectWarning(bb,jb);wa?this.disableSvgLinks(jb):this.updateSvgLinks(jb,fa,!0);return jb}finally{this.enableFlowAnimation=Va,ya&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.addForeignObjectWarning=function(p,A){if("0"!=urlParams["svg-warning"]&&
+0<A.getElementsByTagName("foreignObject").length){var B=p.createElement("switch"),F=p.createElement("g");F.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility");var M=p.createElement("a");M.setAttribute("transform","translate(0,-5)");null==M.setAttributeNS||A.ownerDocument!=document&&null==document.documentMode?(M.setAttribute("xlink:href",Graph.foreignObjectWarningLink),M.setAttribute("target","_blank")):(M.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",Graph.foreignObjectWarningLink),
+M.setAttributeNS(mxConstants.NS_XLINK,"target","_blank"));p=p.createElement("text");p.setAttribute("text-anchor","middle");p.setAttribute("font-size","10px");p.setAttribute("x","50%");p.setAttribute("y","100%");mxUtils.write(p,Graph.foreignObjectWarningText);B.appendChild(F);M.appendChild(p);B.appendChild(M);A.appendChild(B)}};Graph.prototype.disableSvgLinks=function(p,A){p=p.getElementsByTagName("a");for(var B=0;B<p.length;B++){var F=p[B].getAttribute("href");null==F&&(F=p[B].getAttribute("xlink:href"));
+null!=F&&(p[B].style.pointerEvents="none",p[B].setAttribute("href",""));A&&A(p[B])}};Graph.prototype.updateSvgLinks=function(p,A,B){p=p.getElementsByTagName("a");for(var F=0;F<p.length;F++)if(null==p[F].getAttribute("target")){var M=p[F].getAttribute("href");null==M&&(M=p[F].getAttribute("xlink:href"));null!=M&&(null!=A&&/^https?:\/\//.test(M)?p[F].setAttribute("target",A):B&&this.isCustomLink(M)&&p[F].setAttribute("href","javascript:void(0);"))}};Graph.prototype.createSvgCanvas=function(p){p=new mxSvgCanvas2D(p);
+p.minStrokeWidth=this.cellRenderer.minSvgStrokeWidth;p.adaptiveColors=this.getAdaptiveColors();p.pointerEvents=!0;return p};Graph.prototype.getSelectedElement=function(){var p=null;if(window.getSelection){var A=window.getSelection();A.getRangeAt&&A.rangeCount&&(p=A.getRangeAt(0).commonAncestorContainer)}else document.selection&&(p=document.selection.createRange().parentElement());return p};Graph.prototype.getSelectedEditingElement=function(){var p=null;if(null!=this.cellEditor.textarea)for(p=this.getSelectedElement();null!=
+p&&p.nodeType!=mxConstants.NODETYPE_ELEMENT;)p=p.parentNode;return p};Graph.prototype.getParentByName=function(p,A,B){for(;null!=p&&p.nodeName!=A;){if(p==B)return null;p=p.parentNode}return p};Graph.prototype.getParentByNames=function(p,A,B){for(;null!=p&&!(0<=mxUtils.indexOf(A,p.nodeName));){if(p==B)return null;p=p.parentNode}return p};Graph.prototype.selectNode=function(p){var A=null;if(window.getSelection){if(A=window.getSelection(),A.getRangeAt&&A.rangeCount){var B=document.createRange();B.selectNode(p);
+A.removeAllRanges();A.addRange(B)}}else(A=document.selection)&&"Control"!=A.type&&(p=A.createRange(),p.collapse(!0),B=A.createRange(),B.setEndPoint("StartToStart",p),B.select())};Graph.prototype.flipEdgePoints=function(p,A,B){var F=this.getCellGeometry(p);if(null!=F){F=F.clone();if(null!=F.points)for(var M=0;M<F.points.length;M++)A?F.points[M].x=B+(B-F.points[M].x):F.points[M].y=B+(B-F.points[M].y);M=function(R){null!=R&&(A?R.x=B+(B-R.x):R.y=B+(B-R.y))};M(F.getTerminalPoint(!0));M(F.getTerminalPoint(!1));
+this.model.setGeometry(p,F)}};Graph.prototype.flipChildren=function(p,A,B){this.model.beginUpdate();try{for(var F=this.model.getChildCount(p),M=0;M<F;M++){var R=this.model.getChildAt(p,M);if(this.model.isEdge(R))this.flipEdgePoints(R,A,B);else{var W=this.getCellGeometry(R);null!=W&&(W=W.clone(),A?W.x=B+(B-W.x-W.width):W.y=B+(B-W.y-W.height),this.model.setGeometry(R,W))}}}finally{this.model.endUpdate()}};Graph.prototype.flipCells=function(p,A){this.model.beginUpdate();try{p=this.model.getTopmostCells(p);
+for(var B=[],F=0;F<p.length;F++)if(this.model.isEdge(p[F])){var M=this.view.getState(p[F]);null!=M&&this.flipEdgePoints(p[F],A,(A?M.getCenterX():M.getCenterY())/this.view.scale-(A?M.origin.x:M.origin.y)-(A?this.view.translate.x:this.view.translate.y))}else{var R=this.getCellGeometry(p[F]);null!=R&&this.flipChildren(p[F],A,A?R.getCenterX()-R.x:R.getCenterY()-R.y);B.push(p[F])}this.toggleCellStyles(A?mxConstants.STYLE_FLIPH:mxConstants.STYLE_FLIPV,!1,B)}finally{this.model.endUpdate()}};Graph.prototype.deleteCells=
+function(p,A){var B=null;if(null!=p&&0<p.length){this.model.beginUpdate();try{for(var F=0;F<p.length;F++){var M=this.model.getParent(p[F]);if(this.isTable(M)){var R=this.getCellGeometry(p[F]),W=this.getCellGeometry(M);null!=R&&null!=W&&(W=W.clone(),W.height-=R.height,this.model.setGeometry(M,W))}}var ha=this.selectParentAfterDelete?this.model.getParents(p):null;this.removeCells(p,A)}finally{this.model.endUpdate()}if(null!=ha)for(B=[],F=0;F<ha.length;F++)this.model.contains(ha[F])&&(this.model.isVertex(ha[F])||
+this.model.isEdge(ha[F]))&&B.push(ha[F])}return B};Graph.prototype.insertTableColumn=function(p,A){var B=this.getModel();B.beginUpdate();try{var F=p,M=0;if(this.isTableCell(p)){var R=B.getParent(p);F=B.getParent(R);M=mxUtils.indexOf(B.getChildCells(R,!0),p)}else this.isTableRow(p)?F=B.getParent(p):p=B.getChildCells(F,!0)[0],A||(M=B.getChildCells(p,!0).length-1);var W=B.getChildCells(F,!0),ha=Graph.minTableColumnWidth;for(p=0;p<W.length;p++){var fa=B.getChildCells(W[p],!0)[M],ja=B.cloneCell(fa,!1);
+null==ja&&(ja=this.createVertex());var va=this.getCellGeometry(ja);ja.value=null;ja.style=mxUtils.setStyle(mxUtils.setStyle(ja.style,"rowspan",null),"colspan",null);if(null!=va){null!=va.alternateBounds&&(va.width=va.alternateBounds.width,va.height=va.alternateBounds.height,va.alternateBounds=null);ha=va.width;var Ma=this.getCellGeometry(W[p]);null!=Ma&&(va.height=Ma.height)}B.add(W[p],ja,M+(A?0:1))}var Na=this.getCellGeometry(F);null!=Na&&(Na=Na.clone(),Na.width+=ha,B.setGeometry(F,Na))}finally{B.endUpdate()}};
+Graph.prototype.deleteLane=function(p){var A=this.getModel();A.beginUpdate();try{var B=null;B="stackLayout"==this.getCurrentCellStyle(p).childLayout?p:A.getParent(p);var F=A.getChildCells(B,!0);0==F.length?A.remove(B):(B==p&&(p=F[F.length-1]),A.remove(p))}finally{A.endUpdate()}};Graph.prototype.insertLane=function(p,A){var B=this.getModel();B.beginUpdate();try{var F=null;if("stackLayout"==this.getCurrentCellStyle(p).childLayout){F=p;var M=B.getChildCells(F,!0);p=M[A?0:M.length-1]}else F=B.getParent(p);
+var R=F.getIndex(p);p=B.cloneCell(p,!1);p.value=null;B.add(F,p,R+(A?0:1))}finally{B.endUpdate()}};Graph.prototype.insertTableRow=function(p,A){var B=this.getModel();B.beginUpdate();try{var F=p,M=p;if(this.isTableCell(p))M=B.getParent(p),F=B.getParent(M);else if(this.isTableRow(p))F=B.getParent(p);else{var R=B.getChildCells(F,!0);M=R[A?0:R.length-1]}var W=B.getChildCells(M,!0),ha=F.getIndex(M);M=B.cloneCell(M,!1);M.value=null;var fa=this.getCellGeometry(M);if(null!=fa){for(R=0;R<W.length;R++){p=B.cloneCell(W[R],
+!1);p.value=null;p.style=mxUtils.setStyle(mxUtils.setStyle(p.style,"rowspan",null),"colspan",null);var ja=this.getCellGeometry(p);null!=ja&&(null!=ja.alternateBounds&&(ja.width=ja.alternateBounds.width,ja.height=ja.alternateBounds.height,ja.alternateBounds=null),ja.height=fa.height);M.insert(p)}B.add(F,M,ha+(A?0:1));var va=this.getCellGeometry(F);null!=va&&(va=va.clone(),va.height+=fa.height,B.setGeometry(F,va))}}finally{B.endUpdate()}};Graph.prototype.deleteTableColumn=function(p){var A=this.getModel();
+A.beginUpdate();try{var B=p,F=p;this.isTableCell(p)&&(F=A.getParent(p));this.isTableRow(F)&&(B=A.getParent(F));var M=A.getChildCells(B,!0);if(0==M.length)A.remove(B);else{this.isTableRow(F)||(F=M[0]);var R=A.getChildCells(F,!0);if(1>=R.length)A.remove(B);else{var W=R.length-1;this.isTableCell(p)&&(W=mxUtils.indexOf(R,p));for(F=p=0;F<M.length;F++){var ha=A.getChildCells(M[F],!0)[W];A.remove(ha);var fa=this.getCellGeometry(ha);null!=fa&&(p=Math.max(p,fa.width))}var ja=this.getCellGeometry(B);null!=
+ja&&(ja=ja.clone(),ja.width-=p,A.setGeometry(B,ja))}}}finally{A.endUpdate()}};Graph.prototype.deleteTableRow=function(p){var A=this.getModel();A.beginUpdate();try{var B=p,F=p;this.isTableCell(p)&&(p=F=A.getParent(p));this.isTableRow(p)&&(B=A.getParent(F));var M=A.getChildCells(B,!0);if(1>=M.length)A.remove(B);else{this.isTableRow(F)||(F=M[M.length-1]);A.remove(F);p=0;var R=this.getCellGeometry(F);null!=R&&(p=R.height);var W=this.getCellGeometry(B);null!=W&&(W=W.clone(),W.height-=p,A.setGeometry(B,
+W))}}finally{A.endUpdate()}};Graph.prototype.insertRow=function(p,A){for(var B=p.tBodies[0],F=B.rows[0].cells,M=p=0;M<F.length;M++){var R=F[M].getAttribute("colspan");p+=null!=R?parseInt(R):1}A=B.insertRow(A);for(M=0;M<p;M++)mxUtils.br(A.insertCell(-1));return A.cells[0]};Graph.prototype.deleteRow=function(p,A){p.tBodies[0].deleteRow(A)};Graph.prototype.insertColumn=function(p,A){var B=p.tHead;if(null!=B)for(var F=0;F<B.rows.length;F++){var M=document.createElement("th");B.rows[F].appendChild(M);
+mxUtils.br(M)}p=p.tBodies[0];for(B=0;B<p.rows.length;B++)F=p.rows[B].insertCell(A),mxUtils.br(F);return p.rows[0].cells[0<=A?A:p.rows[0].cells.length-1]};Graph.prototype.deleteColumn=function(p,A){if(0<=A){p=p.tBodies[0].rows;for(var B=0;B<p.length;B++)p[B].cells.length>A&&p[B].deleteCell(A)}};Graph.prototype.pasteHtmlAtCaret=function(p){if(window.getSelection){var A=window.getSelection();if(A.getRangeAt&&A.rangeCount){A=A.getRangeAt(0);A.deleteContents();var B=document.createElement("div");B.innerHTML=
+p;p=document.createDocumentFragment();for(var F;F=B.firstChild;)lastNode=p.appendChild(F);A.insertNode(p)}}else(A=document.selection)&&"Control"!=A.type&&A.createRange().pasteHTML(p)};Graph.prototype.createLinkForHint=function(p,A,B){function F(R,W){R.length>W&&(R=R.substring(0,Math.round(W/2))+"..."+R.substring(R.length-Math.round(W/4)));return R}p=null!=p?p:"javascript:void(0);";if(null==A||0==A.length)A=this.isCustomLink(p)?this.getLinkTitle(p):p;var M=document.createElement("a");M.setAttribute("rel",
+this.linkRelation);M.setAttribute("href",this.getAbsoluteUrl(p));M.setAttribute("title",F(this.isCustomLink(p)?this.getLinkTitle(p):p,80));null!=this.linkTarget&&M.setAttribute("target",this.linkTarget);mxUtils.write(M,F(A,40));this.isCustomLink(p)&&mxEvent.addListener(M,"click",mxUtils.bind(this,function(R){this.customLinkClicked(p,B);mxEvent.consume(R)}));return M};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};
+this.addListener(mxEvent.START_EDITING,function(R,W){this.popupMenuHandler.hideMenu()});var p=this.updateMouseEvent;this.updateMouseEvent=function(R){R=p.apply(this,arguments);if(mxEvent.isTouchEvent(R.getEvent())&&null==R.getState()){var W=this.getCellAt(R.graphX,R.graphY);null!=W&&this.isSwimlane(W)&&this.hitsSwimlaneContent(W,R.graphX,R.graphY)||(R.state=this.view.getState(W),null!=R.state&&null!=R.state.shape&&(this.container.style.cursor=R.state.shape.node.style.cursor))}null==R.getState()&&
this.isEnabled()&&(this.container.style.cursor="default");return R};var A=!1,B=!1,F=!1,M=this.fireMouseEvent;this.fireMouseEvent=function(R,W,ha){R==mxEvent.MOUSE_DOWN&&(W=this.updateMouseEvent(W),A=this.isCellSelected(W.getCell()),B=this.isSelectionEmpty(),F=this.popupMenuHandler.isMenuShowing());M.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(R,W){if(null!=this.freehand&&!this.freehand.isDrawing()){var ha=mxEvent.isMouseEvent(W.getEvent());this.popupMenuHandler.popupTrigger=
!this.isEditing()&&this.isEnabled()&&(null==W.getState()||!W.isSource(W.getState().control))&&(this.popupMenuHandler.popupTrigger||!F&&!ha&&(B&&null==W.getCell()&&this.isSelectionEmpty()||A&&this.isCellSelected(W.getCell())));ha=!A||ha?null:mxUtils.bind(this,function(fa){window.setTimeout(mxUtils.bind(this,function(){if(!this.isEditing()){var ja=mxUtils.getScrollOrigin();this.popupMenuHandler.popup(W.getX()+ja.x+1,W.getY()+ja.y+1,fa,W.getEvent())}}),300)});mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler,
-[R,W,ha])}})};mxCellEditor.prototype.isContentEditing=function(){var q=this.graph.view.getState(this.editingCell);return null!=q&&1==q.style.html};mxCellEditor.prototype.isTableSelected=function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected=function(){var q="";window.getSelection?q=window.getSelection():document.getSelection?q=document.getSelection():document.selection&&(q=document.selection.createRange().text);
-return""!=q};mxCellEditor.prototype.insertTab=function(q){var A=this.textarea.ownerDocument.defaultView.getSelection(),B=A.getRangeAt(0);q=Graph.createTabNode(q);B.insertNode(q);B.setStartAfter(q);B.setEndAfter(q);A.removeAllRanges();A.addRange(B)};mxCellEditor.prototype.alignText=function(q,A){var B=this.graph.getView().getState(this.editingCell);if(null!=B){B=mxUtils.getValue(B.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);var F=null!=B&&"vertical-"==B.substring(0,9),
-M=null!=A&&mxEvent.isShiftDown(A);if(M||null!=window.getSelection&&null!=window.getSelection().containsNode){var R=!0;this.graph.processElements(this.textarea,function(W){M||F||window.getSelection().containsNode(W,!0)?(W.removeAttribute("align"),W.style.textAlign=null):R=!1});(R||F)&&this.graph.cellEditor.setAlign(q)}F||document.execCommand("justify"+q.toLowerCase(),!1,null)}};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var q=window.getSelection();if(q.getRangeAt&&q.rangeCount){for(var A=
-[],B=0,F=q.rangeCount;B<F;++B)A.push(q.getRangeAt(B));return A}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=function(q){try{if(q)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var A=0,B=q.length;A<B;++A)sel.addRange(q[A])}else document.selection&&q.select&&q.select()}catch(F){}};var G=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=
-function(q){null!=q.text&&(q.text.replaceLinefeeds="0"!=mxUtils.getValue(q.style,"nl2Br","1"));G.apply(this,arguments)};var J=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(q,A){this.isKeepFocusEvent(q)||!mxEvent.isAltDown(q.getEvent())?J.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(q){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var L=mxCellEditor.prototype.startEditing;
-mxCellEditor.prototype.startEditing=function(q,A){q=this.graph.getStartEditingCell(q,A);L.apply(this,arguments);var B=this.graph.view.getState(q);this.textarea.className=null!=B&&1==B.style.html?"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";this.textarea.style.colorScheme="none"==this.graph.getAdaptiveColors()?"light":"";this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(q)};mxCellEditor.prototype.toggleViewMode=function(){var q=this.graph.view.getState(this.editingCell);
-if(null!=q){var A=null!=q&&"0"!=mxUtils.getValue(q.style,"nl2Br","1"),B=this.saveSelection();if(this.codeViewMode){Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);ha=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0<ha.length&&"\n"==ha.charAt(ha.length-1)&&(ha=ha.substring(0,ha.length-1));ha=Graph.sanitizeHtml(A?ha.replace(/\n/g,"<br/>"):ha,!0);this.textarea.className="mxCellEditor geContentEditable";fa=mxUtils.getValue(q.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);
-A=mxUtils.getValue(q.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);var F=mxUtils.getValue(q.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),M=(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,R=(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,W=[];(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&W.push("underline");
-(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&W.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(fa*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(fa)+"px";this.textarea.style.textDecoration=W.join(" ");this.textarea.style.fontWeight=M?"bold":"normal";this.textarea.style.fontStyle=R?"italic":"";this.textarea.style.fontFamily=A;this.textarea.style.textAlign=
+[R,W,ha])}})};mxCellEditor.prototype.isContentEditing=function(){var p=this.graph.view.getState(this.editingCell);return null!=p&&1==p.style.html};mxCellEditor.prototype.isTableSelected=function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected=function(){var p="";window.getSelection?p=window.getSelection():document.getSelection?p=document.getSelection():document.selection&&(p=document.selection.createRange().text);
+return""!=p};mxCellEditor.prototype.insertTab=function(p){var A=this.textarea.ownerDocument.defaultView.getSelection(),B=A.getRangeAt(0);p=Graph.createTabNode(p);B.insertNode(p);B.setStartAfter(p);B.setEndAfter(p);A.removeAllRanges();A.addRange(B)};mxCellEditor.prototype.alignText=function(p,A){var B=this.graph.getView().getState(this.editingCell);if(null!=B){B=mxUtils.getValue(B.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);var F=null!=B&&"vertical-"==B.substring(0,9),
+M=null!=A&&mxEvent.isShiftDown(A);if(M||null!=window.getSelection&&null!=window.getSelection().containsNode){var R=!0;this.graph.processElements(this.textarea,function(W){M||F||window.getSelection().containsNode(W,!0)?(W.removeAttribute("align"),W.style.textAlign=null):R=!1});(R||F)&&this.graph.cellEditor.setAlign(p)}F||document.execCommand("justify"+p.toLowerCase(),!1,null)}};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var p=window.getSelection();if(p.getRangeAt&&p.rangeCount){for(var A=
+[],B=0,F=p.rangeCount;B<F;++B)A.push(p.getRangeAt(B));return A}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=function(p){try{if(p)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var A=0,B=p.length;A<B;++A)sel.addRange(p[A])}else document.selection&&p.select&&p.select()}catch(F){}};var G=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=
+function(p){null!=p.text&&(p.text.replaceLinefeeds="0"!=mxUtils.getValue(p.style,"nl2Br","1"));G.apply(this,arguments)};var J=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(p,A){this.isKeepFocusEvent(p)||!mxEvent.isAltDown(p.getEvent())?J.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(p){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var L=mxCellEditor.prototype.startEditing;
+mxCellEditor.prototype.startEditing=function(p,A){p=this.graph.getStartEditingCell(p,A);L.apply(this,arguments);var B=this.graph.view.getState(p);this.textarea.className=null!=B&&1==B.style.html?"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";this.textarea.style.colorScheme="none"==this.graph.getAdaptiveColors()?"light":"";this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(p)};mxCellEditor.prototype.toggleViewMode=function(){var p=this.graph.view.getState(this.editingCell);
+if(null!=p){var A=null!=p&&"0"!=mxUtils.getValue(p.style,"nl2Br","1"),B=this.saveSelection();if(this.codeViewMode){Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);ha=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0<ha.length&&"\n"==ha.charAt(ha.length-1)&&(ha=ha.substring(0,ha.length-1));ha=Graph.sanitizeHtml(A?ha.replace(/\n/g,"<br/>"):ha,!0);this.textarea.className="mxCellEditor geContentEditable";fa=mxUtils.getValue(p.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);
+A=mxUtils.getValue(p.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);var F=mxUtils.getValue(p.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),M=(mxUtils.getValue(p.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,R=(mxUtils.getValue(p.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,W=[];(mxUtils.getValue(p.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&W.push("underline");
+(mxUtils.getValue(p.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&W.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(fa*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(fa)+"px";this.textarea.style.textDecoration=W.join(" ");this.textarea.style.fontWeight=M?"bold":"normal";this.textarea.style.fontStyle=R?"italic":"";this.textarea.style.fontFamily=A;this.textarea.style.textAlign=
F;this.textarea.style.padding="0px";this.textarea.innerHTML!=ha&&(this.textarea.innerHTML=ha,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0<this.textarea.innerHTML.length));Graph.addLightDarkColors(this.textarea,Graph.backupStyleAttribute,"simple"==this.graph.getAdaptiveColors());this.codeViewMode=!1}else{this.clearOnChange&&this.textarea.innerHTML==this.getEmptyLabelText()&&(this.clearOnChange=!1,this.textarea.innerText="");Graph.removeLightDarkColors(this.textarea,
Graph.backupStyleAttribute);var ha=mxUtils.htmlEntities(this.textarea.innerHTML);8!=document.documentMode&&(ha=mxUtils.replaceTrailingNewlines(ha,"<div><br></div>"));ha=Graph.sanitizeHtml(A?ha.replace(/\n/g,"").replace(/&lt;br\s*.?&gt;/g,"<br>"):ha,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var fa=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(fa*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=
Math.round(fa)+"px";this.textarea.style.textDecoration="";this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.width="";this.textarea.style.padding="2px";this.textarea.innerHTML!=ha&&(this.textarea.innerHTML=ha);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState);this.switchSelectionState=
-B;this.resize()}};var Q=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(q,A){if(null!=this.textarea)if(q=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=q){var B=q.view.scale;this.bounds=mxRectangle.fromRectangle(q);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*B;this.bounds.height=60*B;var F=null!=q.text?q.text.margin:null;null==F&&(F=mxUtils.getAlignmentAsPoint(mxUtils.getValue(q.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),
-mxUtils.getValue(q.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=F.x*this.bounds.width;this.bounds.y+=F.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/B)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/B)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/B)+(this.textarea.offsetHeight-this.textarea.clientHeight)+
+B;this.resize()}};var Q=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(p,A){if(null!=this.textarea)if(p=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=p){var B=p.view.scale;this.bounds=mxRectangle.fromRectangle(p);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*B;this.bounds.height=60*B;var F=null!=p.text?p.text.margin:null;null==F&&(F=mxUtils.getAlignmentAsPoint(mxUtils.getValue(p.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),
+mxUtils.getValue(p.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=F.x*this.bounds.width;this.bounds.y+=F.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/B)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/B)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/B)+(this.textarea.offsetHeight-this.textarea.clientHeight)+
"px",this.bounds.height=parseInt(this.textarea.style.height)*B);this.textarea.clientWidth<this.textarea.offsetWidth&&(this.textarea.style.width=Math.round(this.bounds.width/B)+(this.textarea.offsetWidth-this.textarea.clientWidth)+"px",this.bounds.width=parseInt(this.textarea.style.width)*B);this.textarea.style.left=Math.round(this.bounds.x)+"px";this.textarea.style.top=Math.round(this.bounds.y)+"px";mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+B+","+B+")")}else this.textarea.style.height=
-"",this.textarea.style.overflow="",Q.apply(this,arguments)};mxCellEditorGetInitialValue=mxCellEditor.prototype.getInitialValue;mxCellEditor.prototype.getInitialValue=function(q,A){if("0"==mxUtils.getValue(q.style,"html","0"))return mxCellEditorGetInitialValue.apply(this,arguments);var B=this.graph.getEditingValue(q.cell,A);"1"==mxUtils.getValue(q.style,"nl2Br","1")&&(B=B.replace(/\n/g,"<br/>"));return Graph.sanitizeHtml(B,!0)};mxCellEditorSetEditingValue=mxCellEditor.prototype.setEditingValue;mxCellEditor.prototype.setEditingValue=
-function(q,A){mxCellEditorSetEditingValue.apply(this,arguments);"1"==mxUtils.getValue(q.style,"html","0")&&Graph.addLightDarkColors(this.textarea,Graph.backupStyleAttribute,"simple"==this.graph.getAdaptiveColors())};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(q){if("0"==mxUtils.getValue(q.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);
-var A=Graph.sanitizeHtml(this.textarea.innerHTML,!0);"1"==mxUtils.getValue(q.style,"nl2Br","1")?(A=A.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>"),0<A.length&&("<br/>"==A.substring(A.length-5)||"<br>"==A.substring(A.length-4))&&(A=A.substring(0,A.lastIndexOf("<br"))+"<div><br/></div>")):A=A.replace(/\r\n/g,"").replace(/\n/g,"");return A};var N=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(q){this.codeViewMode&&this.toggleViewMode();N.apply(this,arguments);this.focusContainer()};
-mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(q){}};var U=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(q,A){this.graph.getModel().beginUpdate();try{U.apply(this,arguments),""==A&&this.graph.isCellDeletable(q.cell)&&0==this.graph.model.getChildCount(q.cell)&&this.graph.isTransparentState(q)&&this.graph.removeCells([q.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(q){q=
-mxUtils.getValue(q.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);q==mxConstants.NONE&&(q=null);return q};mxCellEditor.prototype.getBorderColor=function(q){q=mxUtils.getValue(q.style,mxConstants.STYLE_LABEL_BORDERCOLOR,null);q==mxConstants.NONE&&(q=null);return q};mxCellEditor.prototype.getMinimumSize=function(q){var A=this.graph.getView().scale;return new mxRectangle(0,0,null==q.text?30:q.text.size*A+20,30)};mxGraphHandlerIsValidDropTarget=mxGraphHandler.prototype.isValidDropTarget;mxGraphHandler.prototype.isValidDropTarget=
-function(q,A){return mxGraphHandlerIsValidDropTarget.apply(this,arguments)&&!mxEvent.isAltDown(A.getEvent)};mxGraphView.prototype.formatUnitText=function(q){return q?b(q,this.unit):q};mxGraphHandler.prototype.updateHint=function(q){if(null!=this.pBounds&&(null!=this.shape||this.livePreviewActive)){null==this.hint&&(this.hint=a(),this.graph.container.appendChild(this.hint));var A=this.graph.view.translate,B=this.graph.view.scale;q=this.roundLength((this.bounds.x+this.currentDx)/B-A.x);A=this.roundLength((this.bounds.y+
-this.currentDy)/B-A.y);B=this.graph.view.unit;this.hint.innerHTML=b(q,B)+", "+b(A,B);this.hint.style.left=this.pBounds.x+this.currentDx+Math.round((this.pBounds.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=this.pBounds.y+this.currentDy+this.pBounds.height+Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(null!=this.hint.parentNode&&this.hint.parentNode.removeChild(this.hint),this.hint=null)};var Y=mxStackLayout.prototype.resizeCell;mxStackLayout.prototype.resizeCell=
-function(q,A){Y.apply(this,arguments);var B=this.graph.getCellStyle(q);if(null==B.childLayout){var F=this.graph.model.getParent(q),M=null!=F?this.graph.getCellGeometry(F):null;if(null!=M&&(B=this.graph.getCellStyle(F),"stackLayout"==B.childLayout)){var R=parseFloat(mxUtils.getValue(B,"stackBorder",mxStackLayout.prototype.border));B="1"==mxUtils.getValue(B,"horizontalStack","1");var W=this.graph.getActualStartSize(F);M=M.clone();B?M.height=A.height+W.y+W.height+2*R:M.width=A.width+W.x+W.width+2*R;
-this.graph.model.setGeometry(F,M)}}};var P=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function q(ha){B.get(ha)||(B.put(ha,!0),M.push(ha))}for(var A=P.apply(this,arguments),B=new mxDictionary,F=this.graph.model,M=[],R=0;R<A.length;R++){var W=A[R];this.graph.isTableCell(W)?q(F.getParent(F.getParent(W))):this.graph.isTableRow(W)&&q(F.getParent(W));q(W)}return M};var T=mxConnectionHandler.prototype.isStartEvent;mxConnectionHandler.prototype.isStartEvent=
-function(q){return T.apply(this,arguments)&&!mxEvent.isControlDown(q.getEvent())&&!mxEvent.isShiftDown(q.getEvent())};var K=mxVertexHandler.prototype.isGhostPreview;mxVertexHandler.prototype.isGhostPreview=function(){return K.apply(this,arguments)&&!this.graph.isTable(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isSwimlane(this.state.cell)};var V=mxVertexHandler.prototype.createParentHighlightShape;mxVertexHandler.prototype.createParentHighlightShape=
-function(q){var A=V.apply(this,arguments);A.stroke="#C0C0C0";A.strokewidth=1;return A};var Z=mxEdgeHandler.prototype.createParentHighlightShape;mxEdgeHandler.prototype.createParentHighlightShape=function(q){var A=Z.apply(this,arguments);A.stroke="#C0C0C0";A.strokewidth=1;return A};mxVertexHandler.prototype.rotationHandleVSpacing=-12;mxVertexHandler.prototype.getRotationHandlePosition=function(){var q=this.getHandlePadding();return new mxPoint(this.bounds.x+this.bounds.width-this.rotationHandleVSpacing+
-q.x/2,this.bounds.y+this.rotationHandleVSpacing-q.y/2)};mxVertexHandler.prototype.isRecursiveResize=function(q,A){return this.graph.isRecursiveVertexResize(q)&&!mxEvent.isAltDown(A.getEvent())};mxVertexHandler.prototype.isCenteredEvent=function(q,A){return mxEvent.isControlDown(A.getEvent())||mxEvent.isMetaDown(A.getEvent())};var ia=mxVertexHandler.prototype.isRotationHandleVisible;mxVertexHandler.prototype.isRotationHandleVisible=function(){return ia.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&
+"",this.textarea.style.overflow="",Q.apply(this,arguments)};mxCellEditorGetInitialValue=mxCellEditor.prototype.getInitialValue;mxCellEditor.prototype.getInitialValue=function(p,A){if("0"==mxUtils.getValue(p.style,"html","0"))return mxCellEditorGetInitialValue.apply(this,arguments);var B=this.graph.getEditingValue(p.cell,A);"1"==mxUtils.getValue(p.style,"nl2Br","1")&&(B=B.replace(/\n/g,"<br/>"));return Graph.sanitizeHtml(B,!0)};mxCellEditorSetEditingValue=mxCellEditor.prototype.setEditingValue;mxCellEditor.prototype.setEditingValue=
+function(p,A){mxCellEditorSetEditingValue.apply(this,arguments);"1"==mxUtils.getValue(p.style,"html","0")&&Graph.addLightDarkColors(this.textarea,Graph.backupStyleAttribute,"simple"==this.graph.getAdaptiveColors())};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(p){if("0"==mxUtils.getValue(p.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);
+var A=Graph.sanitizeHtml(this.textarea.innerHTML,!0);"1"==mxUtils.getValue(p.style,"nl2Br","1")?(A=A.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>"),0<A.length&&("<br/>"==A.substring(A.length-5)||"<br>"==A.substring(A.length-4))&&(A=A.substring(0,A.lastIndexOf("<br"))+"<div><br/></div>")):A=A.replace(/\r\n/g,"").replace(/\n/g,"");return A};var N=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(p){this.codeViewMode&&this.toggleViewMode();N.apply(this,arguments);this.focusContainer()};
+mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(p){}};var U=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(p,A){this.graph.getModel().beginUpdate();try{U.apply(this,arguments),""==A&&this.graph.isCellDeletable(p.cell)&&0==this.graph.model.getChildCount(p.cell)&&this.graph.isTransparentState(p)&&this.graph.removeCells([p.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(p){p=
+mxUtils.getValue(p.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);p==mxConstants.NONE&&(p=null);return p};mxCellEditor.prototype.getBorderColor=function(p){p=mxUtils.getValue(p.style,mxConstants.STYLE_LABEL_BORDERCOLOR,null);p==mxConstants.NONE&&(p=null);return p};mxCellEditor.prototype.getMinimumSize=function(p){var A=this.graph.getView().scale;return new mxRectangle(0,0,null==p.text?30:p.text.size*A+20,30)};mxGraphHandlerIsValidDropTarget=mxGraphHandler.prototype.isValidDropTarget;mxGraphHandler.prototype.isValidDropTarget=
+function(p,A){return mxGraphHandlerIsValidDropTarget.apply(this,arguments)&&!mxEvent.isAltDown(A.getEvent)};mxGraphView.prototype.formatUnitText=function(p){return p?b(p,this.unit):p};mxGraphHandler.prototype.updateHint=function(p){if(null!=this.pBounds&&(null!=this.shape||this.livePreviewActive)){null==this.hint&&(this.hint=a(),this.graph.container.appendChild(this.hint));var A=this.graph.view.translate,B=this.graph.view.scale;p=this.roundLength((this.bounds.x+this.currentDx)/B-A.x);A=this.roundLength((this.bounds.y+
+this.currentDy)/B-A.y);B=this.graph.view.unit;this.hint.innerHTML=b(p,B)+", "+b(A,B);this.hint.style.left=this.pBounds.x+this.currentDx+Math.round((this.pBounds.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=this.pBounds.y+this.currentDy+this.pBounds.height+Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(null!=this.hint.parentNode&&this.hint.parentNode.removeChild(this.hint),this.hint=null)};var Y=mxStackLayout.prototype.resizeCell;mxStackLayout.prototype.resizeCell=
+function(p,A){Y.apply(this,arguments);var B=this.graph.getCellStyle(p);if(null==B.childLayout){var F=this.graph.model.getParent(p),M=null!=F?this.graph.getCellGeometry(F):null;if(null!=M&&(B=this.graph.getCellStyle(F),"stackLayout"==B.childLayout)){var R=parseFloat(mxUtils.getValue(B,"stackBorder",mxStackLayout.prototype.border));B="1"==mxUtils.getValue(B,"horizontalStack","1");var W=this.graph.getActualStartSize(F);M=M.clone();B?M.height=A.height+W.y+W.height+2*R:M.width=A.width+W.x+W.width+2*R;
+this.graph.model.setGeometry(F,M)}}};var P=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function p(ha){B.get(ha)||(B.put(ha,!0),M.push(ha))}for(var A=P.apply(this,arguments),B=new mxDictionary,F=this.graph.model,M=[],R=0;R<A.length;R++){var W=A[R];this.graph.isTableCell(W)?p(F.getParent(F.getParent(W))):this.graph.isTableRow(W)&&p(F.getParent(W));p(W)}return M};var T=mxConnectionHandler.prototype.isStartEvent;mxConnectionHandler.prototype.isStartEvent=
+function(p){return T.apply(this,arguments)&&!mxEvent.isControlDown(p.getEvent())&&!mxEvent.isShiftDown(p.getEvent())};var K=mxVertexHandler.prototype.isGhostPreview;mxVertexHandler.prototype.isGhostPreview=function(){return K.apply(this,arguments)&&!this.graph.isTable(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isSwimlane(this.state.cell)};var V=mxVertexHandler.prototype.createParentHighlightShape;mxVertexHandler.prototype.createParentHighlightShape=
+function(p){var A=V.apply(this,arguments);A.stroke="#C0C0C0";A.strokewidth=1;return A};var Z=mxEdgeHandler.prototype.createParentHighlightShape;mxEdgeHandler.prototype.createParentHighlightShape=function(p){var A=Z.apply(this,arguments);A.stroke="#C0C0C0";A.strokewidth=1;return A};mxVertexHandler.prototype.rotationHandleVSpacing=-12;mxVertexHandler.prototype.getRotationHandlePosition=function(){var p=this.getHandlePadding();return new mxPoint(this.bounds.x+this.bounds.width-this.rotationHandleVSpacing+
+p.x/2,this.bounds.y+this.rotationHandleVSpacing-p.y/2)};mxVertexHandler.prototype.isRecursiveResize=function(p,A){return this.graph.isRecursiveVertexResize(p)&&!mxEvent.isAltDown(A.getEvent())};mxVertexHandler.prototype.isCenteredEvent=function(p,A){return mxEvent.isControlDown(A.getEvent())||mxEvent.isMetaDown(A.getEvent())};var ia=mxVertexHandler.prototype.isRotationHandleVisible;mxVertexHandler.prototype.isRotationHandleVisible=function(){return ia.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&
!this.graph.isTableRow(this.state.cell)&&!this.graph.isTable(this.state.cell)};mxVertexHandler.prototype.getSizerBounds=function(){return this.graph.isTableCell(this.state.cell)?this.graph.view.getState(this.graph.model.getParent(this.graph.model.getParent(this.state.cell))):this.bounds};var oa=mxVertexHandler.prototype.isParentHighlightVisible;mxVertexHandler.prototype.isParentHighlightVisible=function(){return oa.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)};
-var sa=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(q){return q.tableHandle||sa.apply(this,arguments)&&(!this.graph.isTable(this.state.cell)||this.graph.isCellSelected(this.state.cell))};mxVertexHandler.prototype.getSelectionBorderInset=function(){var q=0;this.graph.isTableRow(this.state.cell)?q=1:this.graph.isTableCell(this.state.cell)&&(q=2);return q};var O=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=
-function(){return O.apply(this,arguments).grow(-this.getSelectionBorderInset())};var X=null,ba=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){null==X&&(X=mxCellRenderer.defaultShapes.tableLine);var q=ba.apply(this,arguments);if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)){var A=function(Ha,wa,ua){for(var Va=[],Qa=0;Qa<Ha.length;Qa++){var Ka=Ha[Qa];Va.push(null==Ka?null:new mxPoint((fa+Ka.x+wa)*R,(ja+Ka.y+ua)*
-R))}return Va},B=this,F=this.graph,M=F.model,R=F.view.scale,W=this.state,ha=this.selectionBorder,fa=this.state.origin.x+F.view.translate.x,ja=this.state.origin.y+F.view.translate.y;null==q&&(q=[]);var va=F.view.getCellStates(M.getChildCells(this.state.cell,!0));if(0<va.length){var Ma=M.getChildCells(va[0].cell,!0),Na=F.getTableLines(this.state.cell,!1,!0),ya=F.getTableLines(this.state.cell,!0,!1);for(M=0;M<va.length;M++)mxUtils.bind(this,function(Ha){var wa=va[Ha],ua=null;if(F.isCellMovable(wa.cell)){ua=
+var sa=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(p){return p.tableHandle||sa.apply(this,arguments)&&(!this.graph.isTable(this.state.cell)||this.graph.isCellSelected(this.state.cell))};mxVertexHandler.prototype.getSelectionBorderInset=function(){var p=0;this.graph.isTableRow(this.state.cell)?p=1:this.graph.isTableCell(this.state.cell)&&(p=2);return p};var O=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=
+function(){return O.apply(this,arguments).grow(-this.getSelectionBorderInset())};var X=null,ba=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){null==X&&(X=mxCellRenderer.defaultShapes.tableLine);var p=ba.apply(this,arguments);if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)){var A=function(Ha,wa,ua){for(var Va=[],Qa=0;Qa<Ha.length;Qa++){var Ka=Ha[Qa];Va.push(null==Ka?null:new mxPoint((fa+Ka.x+wa)*R,(ja+Ka.y+ua)*
+R))}return Va},B=this,F=this.graph,M=F.model,R=F.view.scale,W=this.state,ha=this.selectionBorder,fa=this.state.origin.x+F.view.translate.x,ja=this.state.origin.y+F.view.translate.y;null==p&&(p=[]);var va=F.view.getCellStates(M.getChildCells(this.state.cell,!0));if(0<va.length){var Ma=M.getChildCells(va[0].cell,!0),Na=F.getTableLines(this.state.cell,!1,!0),ya=F.getTableLines(this.state.cell,!0,!1);for(M=0;M<va.length;M++)mxUtils.bind(this,function(Ha){var wa=va[Ha],ua=null;if(F.isCellMovable(wa.cell)){ua=
Ha<va.length-1?va[Ha+1]:null;ua=null!=ua?F.getCellGeometry(ua.cell):null;var Va=null!=ua&&null!=ua.alternateBounds?ua.alternateBounds:ua;ua=null!=ya[Ha]?new X(ya[Ha],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!1);ua.isDashed=ha.isDashed;ua.svgStrokeTolerance++;ua=new mxHandle(wa,"row-resize",null,ua);ua.tableHandle=!0;var Qa=0;ua.shape.node.parentNode.insertBefore(ua.shape.node,ua.shape.node.parentNode.firstChild);ua.redraw=function(){if(null!=this.shape){this.shape.stroke=
0==Qa?mxConstants.NONE:ha.stroke;if(this.shape.constructor==X)this.shape.line=A(ya[Ha],0,Qa),this.shape.updateBoundsFromLine();else{var Ua=F.getActualStartSize(W.cell,!0);this.shape.bounds.height=1;this.shape.bounds.y=this.state.y+this.state.height+Qa*R;this.shape.bounds.x=W.x+(Ha==va.length-1?0:Ua.x*R);this.shape.bounds.width=W.width-(Ha==va.length-1?0:Ua.width+Ua.x+R)}this.shape.redraw()}};var Ka=!1;ua.setPosition=function(Ua,Wa,mb){Qa=Math.max(Graph.minTableRowHeight-Ua.height,Wa.y-Ua.y-Ua.height);
-Ka=mxEvent.isShiftDown(mb.getEvent());null!=Va&&Ka&&(Qa=Math.min(Qa,Va.height-Graph.minTableRowHeight))};ua.execute=function(Ua){if(0!=Qa)F.setTableRowHeight(this.state.cell,Qa,!Ka);else if(!B.blockDelayedSelection){var Wa=F.getCellAt(Ua.getGraphX(),Ua.getGraphY())||W.cell;F.graphHandler.selectCellForEvent(Wa,Ua)}Qa=0};ua.reset=function(){Qa=0}}q.push(ua)})(M);for(M=0;M<Ma.length;M++)mxUtils.bind(this,function(Ha){var wa=F.view.getState(Ma[Ha]),ua=F.getCellGeometry(Ma[Ha]),Va=null!=ua.alternateBounds?
+Ka=mxEvent.isShiftDown(mb.getEvent());null!=Va&&Ka&&(Qa=Math.min(Qa,Va.height-Graph.minTableRowHeight))};ua.execute=function(Ua){if(0!=Qa)F.setTableRowHeight(this.state.cell,Qa,!Ka);else if(!B.blockDelayedSelection){var Wa=F.getCellAt(Ua.getGraphX(),Ua.getGraphY())||W.cell;F.graphHandler.selectCellForEvent(Wa,Ua)}Qa=0};ua.reset=function(){Qa=0}}p.push(ua)})(M);for(M=0;M<Ma.length;M++)mxUtils.bind(this,function(Ha){var wa=F.view.getState(Ma[Ha]),ua=F.getCellGeometry(Ma[Ha]),Va=null!=ua.alternateBounds?
ua.alternateBounds:ua;null==wa&&(wa=new mxCellState(F.view,Ma[Ha],F.getCellStyle(Ma[Ha])),wa.x=W.x+ua.x*R,wa.y=W.y+ua.y*R,wa.width=Va.width*R,wa.height=Va.height*R,wa.updateCachedBounds());ua=Ha<Ma.length-1?Ma[Ha+1]:null;ua=null!=ua?F.getCellGeometry(ua):null;var Qa=null!=ua&&null!=ua.alternateBounds?ua.alternateBounds:ua;ua=null!=Na[Ha]?new X(Na[Ha],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!0);ua.isDashed=ha.isDashed;ua.svgStrokeTolerance++;wa=new mxHandle(wa,"col-resize",
null,ua);wa.tableHandle=!0;var Ka=0;wa.shape.node.parentNode.insertBefore(wa.shape.node,wa.shape.node.parentNode.firstChild);wa.redraw=function(){if(null!=this.shape){this.shape.stroke=0==Ka?mxConstants.NONE:ha.stroke;if(this.shape.constructor==X)this.shape.line=A(Na[Ha],Ka,0),this.shape.updateBoundsFromLine();else{var Wa=F.getActualStartSize(W.cell,!0);this.shape.bounds.width=1;this.shape.bounds.x=this.state.x+(Va.width+Ka)*R;this.shape.bounds.y=W.y+(Ha==Ma.length-1?0:Wa.y*R);this.shape.bounds.height=
W.height-(Ha==Ma.length-1?0:(Wa.height+Wa.y)*R)}this.shape.redraw()}};var Ua=!1;wa.setPosition=function(Wa,mb,ub){Ka=Math.max(Graph.minTableColumnWidth-Va.width,mb.x-Wa.x-Va.width);Ua=mxEvent.isShiftDown(ub.getEvent());null==Qa||Ua||(Ka=Math.min(Ka,Qa.width-Graph.minTableColumnWidth))};wa.execute=function(Wa){if(0!=Ka)F.setTableColumnWidth(this.state.cell,Ka,Ua);else if(!B.blockDelayedSelection){var mb=F.getCellAt(Wa.getGraphX(),Wa.getGraphY())||W.cell;F.graphHandler.selectCellForEvent(mb,Wa)}Ka=
-0};wa.positionChanged=function(){};wa.reset=function(){Ka=0};q.push(wa)})(M)}}return null!=q?q.reverse():null};var da=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(q){da.apply(this,arguments);if(null!=this.moveHandles)for(var A=0;A<this.moveHandles.length;A++)null!=this.moveHandles[A]&&(this.moveHandles[A].node.style.visibility=q?"":"hidden");if(null!=this.cornerHandles)for(A=0;A<this.cornerHandles.length;A++)this.cornerHandles[A].node.style.visibility=
-q?"":"hidden"};mxVertexHandler.prototype.isMoveHandlesVisible=function(){return this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)};mxVertexHandler.prototype.refreshMoveHandles=function(){var q=this.isMoveHandlesVisible();q&&null==this.moveHandles?this.moveHandles=this.createMoveHandles():q||null==this.moveHandles||this.destroyMoveHandles();if(q&&null==this.moveHandles){for(q=0;q<this.moveHandles.length;q++)null!=this.moveHandles[q]&&this.moveHandles[q].parentNode.removeChild(this.moveHandles[q]);
-this.moveHandles=null}};mxVertexHandler.prototype.createMoveHandles=function(){for(var q=this.graph,A=q.model,B=[],F=0;F<A.getChildCount(this.state.cell);F++)mxUtils.bind(this,function(M){if(null!=M&&A.isVertex(M.cell)&&q.isCellMovable(M.cell)){var R=new mxRectangle(0,0,this.rowHandleImage.width,this.rowHandleImage.height);R=new mxImageShape(R,this.rowHandleImage.src);R.rowState=M;R.dialect=this.graph.dialect!=mxConstants.DIALECT_SVG?mxConstants.DIALECT_MIXEDHTML:mxConstants.DIALECT_SVG;R.init(this.graph.getView().getOverlayPane());
+0};wa.positionChanged=function(){};wa.reset=function(){Ka=0};p.push(wa)})(M)}}return null!=p?p.reverse():null};var da=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(p){da.apply(this,arguments);if(null!=this.moveHandles)for(var A=0;A<this.moveHandles.length;A++)null!=this.moveHandles[A]&&(this.moveHandles[A].node.style.visibility=p?"":"hidden");if(null!=this.cornerHandles)for(A=0;A<this.cornerHandles.length;A++)this.cornerHandles[A].node.style.visibility=
+p?"":"hidden"};mxVertexHandler.prototype.isMoveHandlesVisible=function(){return this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)};mxVertexHandler.prototype.refreshMoveHandles=function(){var p=this.isMoveHandlesVisible();p&&null==this.moveHandles?this.moveHandles=this.createMoveHandles():p||null==this.moveHandles||this.destroyMoveHandles();if(p&&null==this.moveHandles){for(p=0;p<this.moveHandles.length;p++)null!=this.moveHandles[p]&&this.moveHandles[p].parentNode.removeChild(this.moveHandles[p]);
+this.moveHandles=null}};mxVertexHandler.prototype.createMoveHandles=function(){for(var p=this.graph,A=p.model,B=[],F=0;F<A.getChildCount(this.state.cell);F++)mxUtils.bind(this,function(M){if(null!=M&&A.isVertex(M.cell)&&p.isCellMovable(M.cell)){var R=new mxRectangle(0,0,this.rowHandleImage.width,this.rowHandleImage.height);R=new mxImageShape(R,this.rowHandleImage.src);R.rowState=M;R.dialect=this.graph.dialect!=mxConstants.DIALECT_SVG?mxConstants.DIALECT_MIXEDHTML:mxConstants.DIALECT_SVG;R.init(this.graph.getView().getOverlayPane());
R.node.style.cursor="move";mxEvent.addGestureListeners(R.node,mxUtils.bind(this,function(W){this.graph.popupMenuHandler.hideMenu();this.graph.stopEditing(!1);!this.graph.isToggleEvent(W)&&this.graph.isCellSelected(M.cell)||this.graph.selectCellForEvent(M.cell,W);mxEvent.isPopupTrigger(W)||(this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(W),mxEvent.getClientY(W),this.graph.getSelectionCells()),this.graph.graphHandler.cellWasClicked=!0,this.graph.isMouseTrigger=mxEvent.isMouseEvent(W),
-this.graph.isMouseDown=!0);mxEvent.consume(W)}),null,mxUtils.bind(this,function(W){mxEvent.isPopupTrigger(W)&&(this.graph.popupMenuHandler.popup(mxEvent.getClientX(W),mxEvent.getClientY(W),M.cell,W),mxEvent.consume(W))}));B.push(R)}else B.push(null)})(this.graph.view.getState(A.getChildAt(this.state.cell,F)));return B};mxVertexHandler.prototype.destroyMoveHandles=function(){if(null!=this.moveHandles){for(var q=0;q<this.moveHandles.length;q++)null!=this.moveHandles[q]&&this.moveHandles[q].destroy();
-this.moveHandles=null}};mxVertexHandler.prototype.destroyCornerHandles=function(){if(null!=this.cornerHandles){for(var q=0;q<this.cornerHandles.length;q++)null!=this.cornerHandles[q]&&null!=this.cornerHandles[q].node&&null!=this.cornerHandles[q].node.parentNode&&this.cornerHandles[q].node.parentNode.removeChild(this.cornerHandles[q].node);this.cornerHandles=null}};var ca=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){ca.apply(this,arguments);this.destroyMoveHandles();
-this.destroyCornerHandles();if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell))this.refreshMoveHandles();else if(1==this.graph.getSelectionCount()&&this.graph.isCellMovable(this.state.cell)&&(this.graph.isTableCell(this.state.cell)||this.graph.isTableRow(this.state.cell))){this.cornerHandles=[];for(var q=0;4>q;q++){var A=new mxRectangleShape(new mxRectangle(0,0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR);A.dialect=mxConstants.DIALECT_SVG;A.init(this.graph.view.getOverlayPane());
-this.cornerHandles.push(A)}}this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)&&this.refreshMoveHandles();q=this.graph.getLinkForCell(this.state.cell);A=this.graph.getLinksForState(this.state);this.updateLinkHint(q,A)};var H=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var q=new mxPoint(0,0),A=this.tolerance,B=this.state.style.shape;null==mxCellRenderer.defaultShapes[B]&&mxStencilRegistry.getStencil(B);B=this.graph.isTable(this.state.cell)||
+this.graph.isMouseDown=!0);mxEvent.consume(W)}),null,mxUtils.bind(this,function(W){mxEvent.isPopupTrigger(W)&&(this.graph.popupMenuHandler.popup(mxEvent.getClientX(W),mxEvent.getClientY(W),M.cell,W),mxEvent.consume(W))}));B.push(R)}else B.push(null)})(this.graph.view.getState(A.getChildAt(this.state.cell,F)));return B};mxVertexHandler.prototype.destroyMoveHandles=function(){if(null!=this.moveHandles){for(var p=0;p<this.moveHandles.length;p++)null!=this.moveHandles[p]&&this.moveHandles[p].destroy();
+this.moveHandles=null}};mxVertexHandler.prototype.destroyCornerHandles=function(){if(null!=this.cornerHandles){for(var p=0;p<this.cornerHandles.length;p++)null!=this.cornerHandles[p]&&null!=this.cornerHandles[p].node&&null!=this.cornerHandles[p].node.parentNode&&this.cornerHandles[p].node.parentNode.removeChild(this.cornerHandles[p].node);this.cornerHandles=null}};var ca=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){ca.apply(this,arguments);this.destroyMoveHandles();
+this.destroyCornerHandles();if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell))this.refreshMoveHandles();else if(1==this.graph.getSelectionCount()&&this.graph.isCellMovable(this.state.cell)&&(this.graph.isTableCell(this.state.cell)||this.graph.isTableRow(this.state.cell))){this.cornerHandles=[];for(var p=0;4>p;p++){var A=new mxRectangleShape(new mxRectangle(0,0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR);A.dialect=mxConstants.DIALECT_SVG;A.init(this.graph.view.getOverlayPane());
+this.cornerHandles.push(A)}}this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)&&this.refreshMoveHandles();p=this.graph.getLinkForCell(this.state.cell);A=this.graph.getLinksForState(this.state);this.updateLinkHint(p,A)};var H=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var p=new mxPoint(0,0),A=this.tolerance,B=this.state.style.shape;null==mxCellRenderer.defaultShapes[B]&&mxStencilRegistry.getStencil(B);B=this.graph.isTable(this.state.cell)||
this.graph.cellEditor.getEditingCell()==this.state.cell;if(!B&&null!=this.customHandles)for(var F=0;F<this.customHandles.length;F++)if(null!=this.customHandles[F]&&null!=this.customHandles[F].shape&&null!=this.customHandles[F].shape.bounds){var M=this.customHandles[F].shape.bounds,R=M.getCenterX(),W=M.getCenterY();if(Math.abs(this.state.x-R)<M.width/2||Math.abs(this.state.y-W)<M.height/2||Math.abs(this.state.x+this.state.width-R)<M.width/2||Math.abs(this.state.y+this.state.height-W)<M.height/2){B=
-!0;break}}B&&null!=this.sizers&&0<this.sizers.length&&null!=this.sizers[0]?(A/=2,this.graph.isTable(this.state.cell)&&(A+=7),q.x=this.sizers[0].bounds.width+A,q.y=this.sizers[0].bounds.height+A):q=H.apply(this,arguments);return q};mxVertexHandler.prototype.updateHint=function(q){if(this.index!=mxEvent.LABEL_HANDLE){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));if(this.index==mxEvent.ROTATION_HANDLE)this.hint.innerHTML=this.currentAlpha+"&deg;";else{q=this.state.view.scale;
-var A=this.state.view.unit;this.hint.innerHTML=b(this.roundLength(this.bounds.width/q),A)+" x "+b(this.roundLength(this.bounds.height/q),A)}q=mxUtils.getBoundingBox(this.bounds,null!=this.currentAlpha?this.currentAlpha:this.state.style[mxConstants.STYLE_ROTATION]||"0");null==q&&(q=this.bounds);this.hint.style.left=q.x+Math.round((q.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=q.y+q.height+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")}};mxVertexHandler.prototype.removeHint=
-function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display="")};var ea=mxEdgeHandler.prototype.refresh;mxEdgeHandler.prototype.refresh=function(){ea.apply(this,arguments);var q=this.graph.getLinkForCell(this.state.cell),A=this.graph.getLinksForState(this.state);this.updateLinkHint(q,A)};var ra=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(q,A){ra.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&
-null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display="none")};var qa=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(q,A){qa.apply(this,arguments);null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="")};mxEdgeHandler.prototype.updateHint=function(q,A,B){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));var F=this.graph.view.translate,
+!0;break}}B&&null!=this.sizers&&0<this.sizers.length&&null!=this.sizers[0]?(A/=2,this.graph.isTable(this.state.cell)&&(A+=7),p.x=this.sizers[0].bounds.width+A,p.y=this.sizers[0].bounds.height+A):p=H.apply(this,arguments);return p};mxVertexHandler.prototype.updateHint=function(p){if(this.index!=mxEvent.LABEL_HANDLE){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));if(this.index==mxEvent.ROTATION_HANDLE)this.hint.innerHTML=this.currentAlpha+"&deg;";else{p=this.state.view.scale;
+var A=this.state.view.unit;this.hint.innerHTML=b(this.roundLength(this.bounds.width/p),A)+" x "+b(this.roundLength(this.bounds.height/p),A)}p=mxUtils.getBoundingBox(this.bounds,null!=this.currentAlpha?this.currentAlpha:this.state.style[mxConstants.STYLE_ROTATION]||"0");null==p&&(p=this.bounds);this.hint.style.left=p.x+Math.round((p.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=p.y+p.height+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")}};mxVertexHandler.prototype.removeHint=
+function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display="")};var ea=mxEdgeHandler.prototype.refresh;mxEdgeHandler.prototype.refresh=function(){ea.apply(this,arguments);var p=this.graph.getLinkForCell(this.state.cell),A=this.graph.getLinksForState(this.state);this.updateLinkHint(p,A)};var ra=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(p,A){ra.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&
+null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display="none")};var qa=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(p,A){qa.apply(this,arguments);null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="")};mxEdgeHandler.prototype.updateHint=function(p,A,B){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));var F=this.graph.view.translate,
M=this.graph.view.scale,R=this.roundLength(A.x/M-F.x);F=this.roundLength(A.y/M-F.y);var W=this.graph.view.unit;this.hint.innerHTML=b(R,W)+", "+b(F,W);this.hint.style.visibility="visible";null!=B&&(B.view.updateEdgeBounds(B),this.hint.innerHTML+=" ("+(W==mxConstants.POINTS?Math.round(B.length/M):b(B.length/M,W))+")");if(this.isSource||this.isTarget)null!=this.constraintHandler&&null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus?(B=this.constraintHandler.currentConstraint.point,
-this.hint.innerHTML="["+Math.round(100*B.x)+"%, "+Math.round(100*B.y)+"%]"):this.marker.hasValidState()&&(this.hint.style.visibility="hidden");this.hint.style.left=Math.round(q.getGraphX()-this.hint.clientWidth/2)+"px";this.hint.style.top=Math.max(q.getGraphY(),A.y)+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")};Graph.prototype.expandedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="50%" y1="0%" x2="50%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 2 4.5 L 7 4.5 z" stroke="#000"/>');
+this.hint.innerHTML="["+Math.round(100*B.x)+"%, "+Math.round(100*B.y)+"%]"):this.marker.hasValidState()&&(this.hint.style.visibility="hidden");this.hint.style.left=Math.round(p.getGraphX()-this.hint.clientWidth/2)+"px";this.hint.style.top=Math.max(p.getGraphY(),A.y)+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")};Graph.prototype.expandedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="50%" y1="0%" x2="50%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 2 4.5 L 7 4.5 z" stroke="#000"/>');
Graph.prototype.collapsedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 4.5 2 L 4.5 7 M 2 4.5 L 7 4.5 z" stroke="#000"/>');mxEdgeHandler.prototype.removeHint=mxVertexHandler.prototype.removeHint;HoverIcons.prototype.mainHandle=
Graph.createSvgImage(18,18,'<circle cx="9" cy="9" r="5" stroke="#fff" fill="'+HoverIcons.prototype.arrowFill+'"/>');HoverIcons.prototype.endMainHandle=Graph.createSvgImage(18,18,'<circle cx="9" cy="9" r="6" stroke="#fff" fill="'+HoverIcons.prototype.arrowFill+'"/>');HoverIcons.prototype.secondaryHandle=Graph.createSvgImage(16,16,'<path d="m 8 3 L 13 8 L 8 13 L 3 8 z" stroke="#fff" fill="#fca000"/>');HoverIcons.prototype.fixedHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="6" stroke="#fff" fill="#01bd22"/><path d="m 8 8 L 14 14M 8 14 L 14 8" stroke="#fff"/>');
HoverIcons.prototype.endFixedHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="7" stroke="#fff" fill="#01bd22"/><path d="m 8 8 L 14 14M 8 14 L 14 8" stroke="#fff"/>');HoverIcons.prototype.terminalHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="6" stroke="#fff" fill="'+HoverIcons.prototype.arrowFill+'"/><circle cx="11" cy="11" r="3" stroke="#fff" fill="transparent"/>');HoverIcons.prototype.endTerminalHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="7" stroke="#fff" fill="'+
@@ -2960,37 +2960,37 @@ HoverIcons.prototype.arrowFill+'"/><circle cx="11" cy="11" r="3" stroke="#fff" f
HoverIcons.prototype.endTerminalHandle;mxEdgeHandler.prototype.fixedHandleImage=HoverIcons.prototype.fixedHandle;mxEdgeHandler.prototype.endFixedHandleImage=HoverIcons.prototype.endFixedHandle;mxEdgeHandler.prototype.labelHandleImage=HoverIcons.prototype.secondaryHandle;mxOutline.prototype.sizerImage=HoverIcons.prototype.mainHandle;null!=window.Sidebar&&(Sidebar.prototype.triangleUp=HoverIcons.prototype.triangleUp,Sidebar.prototype.triangleRight=HoverIcons.prototype.triangleRight,Sidebar.prototype.triangleDown=
HoverIcons.prototype.triangleDown,Sidebar.prototype.triangleLeft=HoverIcons.prototype.triangleLeft,Sidebar.prototype.refreshTarget=HoverIcons.prototype.refreshTarget,Sidebar.prototype.roundDrop=HoverIcons.prototype.roundDrop);mxVertexHandler.prototype.rotationEnabled=!0;mxVertexHandler.prototype.manageSizers=!0;mxVertexHandler.prototype.livePreview=!0;mxGraphHandler.prototype.maxLivePreview=16;mxGraphHandler.prototype.previewColor="light-dark(#000000, #cccccc)";mxRubberband.prototype.defaultOpacity=
30;mxConnectionHandler.prototype.outlineConnect=!0;mxCellHighlight.prototype.keepOnTop=!0;mxVertexHandler.prototype.parentHighlightEnabled=!0;mxEdgeHandler.prototype.parentHighlightEnabled=!0;mxEdgeHandler.prototype.dblClickRemoveEnabled=!0;mxEdgeHandler.prototype.straightRemoveEnabled=!0;mxEdgeHandler.prototype.virtualBendsEnabled=!0;mxEdgeHandler.prototype.mergeRemoveEnabled=!0;mxEdgeHandler.prototype.manageLabelHandle=!0;mxEdgeHandler.prototype.outlineConnect=!0;mxEdgeHandler.prototype.isAddVirtualBendEvent=
-function(q){return!mxEvent.isShiftDown(q.getEvent())};mxEdgeHandler.prototype.isCustomHandleEvent=function(q){return!mxEvent.isShiftDown(q.getEvent())};if(Graph.touchStyle){if(mxClient.IS_TOUCH||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)mxShape.prototype.svgStrokeTolerance=18,mxVertexHandler.prototype.tolerance=12,mxEdgeHandler.prototype.tolerance=12,Graph.prototype.tolerance=12,mxVertexHandler.prototype.rotationHandleVSpacing=-16,mxConstraintHandler.prototype.getTolerance=function(q){return mxEvent.isMouseEvent(q.getEvent())?
-4:this.graph.getTolerance()};mxPanningHandler.prototype.isPanningTrigger=function(q){var A=q.getEvent();return null==q.getState()&&!mxEvent.isMouseEvent(A)||mxEvent.isPopupTrigger(A)&&(null==q.getState()||mxEvent.isControlDown(A)||mxEvent.isShiftDown(A))}}else mxPanningHandler.prototype.isPanningTrigger=function(q){var A=q.getEvent();return mxEvent.isLeftMouseButton(A)&&(this.useLeftButtonForPanning&&null==q.getState()||mxEvent.isControlDown(A)&&!mxEvent.isShiftDown(A))||this.usePopupTrigger&&mxEvent.isPopupTrigger(A)};
-mxRubberband.prototype.isSpaceEvent=function(q){return this.graph.isEnabled()&&!this.graph.isCellLocked(this.graph.getDefaultParent())&&(mxEvent.isControlDown(q.getEvent())||mxEvent.isMetaDown(q.getEvent()))&&mxEvent.isShiftDown(q.getEvent())&&mxEvent.isAltDown(q.getEvent())};mxRubberband.prototype.cancelled=!1;mxRubberband.prototype.cancel=function(){this.isActive()&&(this.cancelled=!0,this.reset())};mxRubberband.prototype.mouseUp=function(q,A){if(this.cancelled)this.cancelled=!1,A.consume();else{var B=
-null!=this.div&&"none"!=this.div.style.display,F=null,M=null,R=q=null;null!=this.first&&null!=this.currentX&&null!=this.currentY&&(F=this.first.x,M=this.first.y,q=(this.currentX-F)/this.graph.view.scale,R=(this.currentY-M)/this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(q=this.graph.snap(q),R=this.graph.snap(R),this.graph.isGridEnabled()||(Math.abs(q)<this.graph.tolerance&&(q=0),Math.abs(R)<this.graph.tolerance&&(R=0))));this.reset();if(B){if(this.isSpaceEvent(A)){this.graph.model.beginUpdate();
-try{var W=this.graph.getCellsBeyond(F,M,this.graph.getDefaultParent(),!0,!0);for(B=0;B<W.length;B++)if(this.graph.isCellMovable(W[B])){var ha=this.graph.view.getState(W[B]),fa=this.graph.getCellGeometry(W[B]);null!=ha&&null!=fa&&(fa=fa.clone(),fa.translate(q,R),this.graph.model.setGeometry(W[B],fa))}}finally{this.graph.model.endUpdate()}}else W=new mxRectangle(this.x,this.y,this.width,this.height),this.graph.selectRegion(W,A.getEvent());A.consume()}}};mxRubberband.prototype.mouseMove=function(q,A){if(!A.isConsumed()&&
-null!=this.first){var B=mxUtils.getScrollOrigin(this.graph.container);q=mxUtils.getOffset(this.graph.container);B.x-=q.x;B.y-=q.y;q=A.getX()+B.x;B=A.getY()+B.y;var F=this.first.x-q,M=this.first.y-B,R=this.graph.tolerance;if(null!=this.div||Math.abs(F)>R||Math.abs(M)>R)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(q,B),this.isSpaceEvent(A)?(q=this.x+this.width,B=this.y+this.height,F=this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(this.width=this.graph.snap(this.width/
-F)*F,this.height=this.graph.snap(this.height/F)*F,this.graph.isGridEnabled()||(this.width<this.graph.tolerance&&(this.width=0),this.height<this.graph.tolerance&&(this.height=0)),this.x<this.first.x&&(this.x=q-this.width),this.y<this.first.y&&(this.y=B-this.height)),this.div.style.borderStyle="dashed",this.div.style.backgroundColor="white",this.div.style.left=this.x+"px",this.div.style.top=this.y+"px",this.div.style.width=Math.max(0,this.width)+"px",this.div.style.height=this.graph.container.clientHeight+
+function(p){return!mxEvent.isShiftDown(p.getEvent())};mxEdgeHandler.prototype.isCustomHandleEvent=function(p){return!mxEvent.isShiftDown(p.getEvent())};if(Graph.touchStyle){if(mxClient.IS_TOUCH||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)mxShape.prototype.svgStrokeTolerance=18,mxVertexHandler.prototype.tolerance=12,mxEdgeHandler.prototype.tolerance=12,Graph.prototype.tolerance=12,mxVertexHandler.prototype.rotationHandleVSpacing=-16,mxConstraintHandler.prototype.getTolerance=function(p){return mxEvent.isMouseEvent(p.getEvent())?
+4:this.graph.getTolerance()};mxPanningHandler.prototype.isPanningTrigger=function(p){var A=p.getEvent();return null==p.getState()&&!mxEvent.isMouseEvent(A)||mxEvent.isPopupTrigger(A)&&(null==p.getState()||mxEvent.isControlDown(A)||mxEvent.isShiftDown(A))}}else mxPanningHandler.prototype.isPanningTrigger=function(p){var A=p.getEvent();return mxEvent.isLeftMouseButton(A)&&(this.useLeftButtonForPanning&&null==p.getState()||mxEvent.isControlDown(A)&&!mxEvent.isShiftDown(A))||this.usePopupTrigger&&mxEvent.isPopupTrigger(A)};
+mxRubberband.prototype.isSpaceEvent=function(p){return this.graph.isEnabled()&&!this.graph.isCellLocked(this.graph.getDefaultParent())&&(mxEvent.isControlDown(p.getEvent())||mxEvent.isMetaDown(p.getEvent()))&&mxEvent.isShiftDown(p.getEvent())&&mxEvent.isAltDown(p.getEvent())};mxRubberband.prototype.cancelled=!1;mxRubberband.prototype.cancel=function(){this.isActive()&&(this.cancelled=!0,this.reset())};mxRubberband.prototype.mouseUp=function(p,A){if(this.cancelled)this.cancelled=!1,A.consume();else{var B=
+null!=this.div&&"none"!=this.div.style.display,F=null,M=null,R=p=null;null!=this.first&&null!=this.currentX&&null!=this.currentY&&(F=this.first.x,M=this.first.y,p=(this.currentX-F)/this.graph.view.scale,R=(this.currentY-M)/this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(p=this.graph.snap(p),R=this.graph.snap(R),this.graph.isGridEnabled()||(Math.abs(p)<this.graph.tolerance&&(p=0),Math.abs(R)<this.graph.tolerance&&(R=0))));this.reset();if(B){if(this.isSpaceEvent(A)){this.graph.model.beginUpdate();
+try{var W=this.graph.getCellsBeyond(F,M,this.graph.getDefaultParent(),!0,!0);for(B=0;B<W.length;B++)if(this.graph.isCellMovable(W[B])){var ha=this.graph.view.getState(W[B]),fa=this.graph.getCellGeometry(W[B]);null!=ha&&null!=fa&&(fa=fa.clone(),fa.translate(p,R),this.graph.model.setGeometry(W[B],fa))}}finally{this.graph.model.endUpdate()}}else W=new mxRectangle(this.x,this.y,this.width,this.height),this.graph.selectRegion(W,A.getEvent());A.consume()}}};mxRubberband.prototype.mouseMove=function(p,A){if(!A.isConsumed()&&
+null!=this.first){var B=mxUtils.getScrollOrigin(this.graph.container);p=mxUtils.getOffset(this.graph.container);B.x-=p.x;B.y-=p.y;p=A.getX()+B.x;B=A.getY()+B.y;var F=this.first.x-p,M=this.first.y-B,R=this.graph.tolerance;if(null!=this.div||Math.abs(F)>R||Math.abs(M)>R)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(p,B),this.isSpaceEvent(A)?(p=this.x+this.width,B=this.y+this.height,F=this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(this.width=this.graph.snap(this.width/
+F)*F,this.height=this.graph.snap(this.height/F)*F,this.graph.isGridEnabled()||(this.width<this.graph.tolerance&&(this.width=0),this.height<this.graph.tolerance&&(this.height=0)),this.x<this.first.x&&(this.x=p-this.width),this.y<this.first.y&&(this.y=B-this.height)),this.div.style.borderStyle="dashed",this.div.style.backgroundColor="white",this.div.style.left=this.x+"px",this.div.style.top=this.y+"px",this.div.style.width=Math.max(0,this.width)+"px",this.div.style.height=this.graph.container.clientHeight+
"px",this.div.style.borderWidth=0>=this.width?"0px 1px 0px 0px":"0px 1px 0px 1px",null==this.secondDiv&&(this.secondDiv=this.div.cloneNode(!0),this.div.parentNode.appendChild(this.secondDiv)),this.secondDiv.style.left=this.x+"px",this.secondDiv.style.top=this.y+"px",this.secondDiv.style.width=this.graph.container.clientWidth+"px",this.secondDiv.style.height=Math.max(0,this.height)+"px",this.secondDiv.style.borderWidth=0>=this.height?"1px 0px 0px 0px":"1px 0px 1px 0px"):(this.div.style.backgroundColor=
-"",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),A.consume()}};var Pa=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);Pa.apply(this,arguments)};var ma=(new Date).getTime(),Ba=0,Ca=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(q,
-A,B,F){Ca.apply(this,arguments);B!=this.currentTerminalState?(ma=(new Date).getTime(),Ba=0):Ba=(new Date).getTime()-ma;this.currentTerminalState=B};var Ja=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(q){return mxEvent.isShiftDown(q.getEvent())&&mxEvent.isAltDown(q.getEvent())?!1:null!=this.currentTerminalState&&q.getState()==this.currentTerminalState&&2E3<Ba||(null==this.currentTerminalState||"0"!=mxUtils.getValue(this.currentTerminalState.style,
-"outlineConnect","1"))&&Ja.apply(this,arguments)};mxEdgeHandler.prototype.createHandleShape=function(q,A,B){A=null!=q&&0==q;var F=this.state.getVisibleTerminalState(A);q=null!=q&&null!=this.state.absolutePoints&&(0==q||q>=this.state.absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==q)?this.graph.getConnectionConstraint(this.state,F,A):null;B=null!=(null!=q?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(A),q):null)?B?this.endFixedHandleImage:this.fixedHandleImage:
-null!=q&&null!=F?B?this.endTerminalHandleImage:this.terminalHandleImage:B?this.endHandleImage:this.handleImage;if(null!=B)return B=new mxImageShape(new mxRectangle(0,0,B.width,B.height),B.src),B.preserveImageAspect=!1,B;B=mxConstants.HANDLE_SIZE;this.preferHtml&&--B;return new mxRectangleShape(new mxRectangle(0,0,B,B),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var Ia=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(q,A,B,F){F=A==mxEvent.ROTATION_HANDLE?
-HoverIcons.prototype.rotationHandle:A==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:F;return Ia.apply(this,arguments)};var Da=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(q){if(null!=q&&1==q.length){var A=this.graph.getModel(),B=A.getParent(q[0]),F=this.graph.getCellGeometry(q[0]);if(A.isEdge(B)&&null!=F&&F.relative&&(A=this.graph.view.getState(q[0]),null!=A&&2>A.width&&2>A.height&&null!=A.text&&null!=A.text.boundingBox))return mxRectangle.fromRectangle(A.text.boundingBox)}return Da.apply(this,
-arguments)};var Ga=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates=function(){for(var q=Ga.apply(this,arguments),A=[],B=0;B<q.length;B++)"1"!=mxUtils.getValue(q[B].style,"part","0")&&A.push(q[B]);return A};var ta=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(q){var A=this.graph.getModel(),B=A.getParent(q.cell),F=this.graph.getCellGeometry(q.cell);return A.isEdge(B)&&null!=F&&F.relative&&2>q.width&&2>q.height&&null!=
-q.text&&null!=q.text.boundingBox?(A=q.text.unrotatedBoundingBox||q.text.boundingBox,new mxRectangle(Math.round(A.x),Math.round(A.y),Math.round(A.width),Math.round(A.height))):ta.apply(this,arguments)};var La=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(q,A){var B=this.graph.getModel(),F=B.getParent(this.state.cell),M=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(A)==mxEvent.ROTATION_HANDLE||!B.isEdge(F)||null==M||!M.relative||null==this.state||
-2<=this.state.width||2<=this.state.height)&&La.apply(this,arguments)};mxVertexHandler.prototype.rotateClick=function(){var q=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),A=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(this.state.cell)&&q==mxConstants.NONE&&A==mxConstants.NONE?(q=mxUtils.mod(mxUtils.getValue(this.state.style,mxConstants.STYLE_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,
-q,[this.state.cell])):this.state.view.graph.turnShapes([this.state.cell])};var Xa=mxVertexHandler.prototype.mouseMove;mxVertexHandler.prototype.mouseMove=function(q,A){Xa.apply(this,arguments);null!=this.graph.graphHandler.first&&(null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display="none"),null!=this.linkHint&&"none"!=this.linkHint.style.display&&(this.linkHint.style.display="none"))};var Ya=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=
-function(q,A){Ya.apply(this,arguments);null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display=1==this.graph.getSelectionCount()?"":"none");null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="");this.blockDelayedSelection=null};mxVertexHandler.prototype.updateLinkHint=function(q,A){try{if(null==q&&(null==A||0==A.length))null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),
-this.linkHint=null);else if(null!=q||null!=A&&0<A.length){var B=document.createElement("img");B.className="geAdaptiveAsset";B.setAttribute("src",Editor.editImage);B.setAttribute("title",mxResources.get("editLink"));B.setAttribute("width","14");B.setAttribute("height","14");B.style.paddingLeft="8px";B.style.marginLeft="auto";B.style.marginBottom="-1px";B.style.cursor="pointer";var F=B.cloneNode(!0);F.setAttribute("src",Editor.trashImage);F.setAttribute("title",mxResources.get("removeIt",[mxResources.get("link")]));
-F.style.paddingLeft="4px";F.style.marginLeft="0";null==this.linkHint&&(this.linkHint=a(),mxUtils.setPrefixedStyle(this.linkHint.style,"transform","translate(-50%,0)"),this.linkHint.style.padding="6px 8px 6px 8px",this.linkHint.style.opacity="1",this.linkHint.style.filter="",this.graph.container.appendChild(this.linkHint),mxEvent.addListener(this.linkHint,"mouseenter",mxUtils.bind(this,function(){this.graph.tooltipHandler.hide()})));this.linkHint.innerText="";if(null!=q){var M=document.createElement("div");
-M.style.display="flex";M.style.alignItems="center";M.appendChild(this.graph.createLinkForHint(q,null,this.state.cell));this.linkHint.appendChild(M);if(this.graph.isEnabled()&&"function"===typeof this.graph.editLink&&!this.graph.isCellLocked(this.state.cell)){var R=B.cloneNode(!0);M.appendChild(R);mxEvent.addListener(R,"click",mxUtils.bind(this,function(ha){this.graph.setSelectionCell(this.state.cell);this.graph.editLink();mxEvent.consume(ha)}));var W=F.cloneNode(!0);M.appendChild(W);mxEvent.addListener(W,
-"click",mxUtils.bind(this,function(ha){this.graph.setLinkForCell(this.state.cell,null);mxEvent.consume(ha)}))}}if(null!=A)for(M=0;M<A.length;M++)mxUtils.bind(this,function(ha,fa){var ja=document.createElement("div");ja.style.display="flex";ja.style.alignItems="center";ja.style.marginTop=null!=q||0<fa?"6px":"0px";ja.appendChild(this.graph.createLinkForHint(ha.getAttribute("href"),mxUtils.getTextContent(ha),this.state.cell));var va=B.cloneNode(!0);ja.appendChild(va);var Ma=mxUtils.bind(this,function(Na){var ya=
+"",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),A.consume()}};var Pa=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);Pa.apply(this,arguments)};var ma=(new Date).getTime(),Ba=0,Ca=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(p,
+A,B,F){Ca.apply(this,arguments);B!=this.currentTerminalState?(ma=(new Date).getTime(),Ba=0):Ba=(new Date).getTime()-ma;this.currentTerminalState=B};var Ja=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(p){return mxEvent.isShiftDown(p.getEvent())&&mxEvent.isAltDown(p.getEvent())?!1:null!=this.currentTerminalState&&p.getState()==this.currentTerminalState&&2E3<Ba||(null==this.currentTerminalState||"0"!=mxUtils.getValue(this.currentTerminalState.style,
+"outlineConnect","1"))&&Ja.apply(this,arguments)};mxEdgeHandler.prototype.createHandleShape=function(p,A,B){A=null!=p&&0==p;var F=this.state.getVisibleTerminalState(A);p=null!=p&&null!=this.state.absolutePoints&&(0==p||p>=this.state.absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==p)?this.graph.getConnectionConstraint(this.state,F,A):null;B=null!=(null!=p?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(A),p):null)?B?this.endFixedHandleImage:this.fixedHandleImage:
+null!=p&&null!=F?B?this.endTerminalHandleImage:this.terminalHandleImage:B?this.endHandleImage:this.handleImage;if(null!=B)return B=new mxImageShape(new mxRectangle(0,0,B.width,B.height),B.src),B.preserveImageAspect=!1,B;B=mxConstants.HANDLE_SIZE;this.preferHtml&&--B;return new mxRectangleShape(new mxRectangle(0,0,B,B),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var Ia=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(p,A,B,F){F=A==mxEvent.ROTATION_HANDLE?
+HoverIcons.prototype.rotationHandle:A==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:F;return Ia.apply(this,arguments)};var Da=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(p){if(null!=p&&1==p.length){var A=this.graph.getModel(),B=A.getParent(p[0]),F=this.graph.getCellGeometry(p[0]);if(A.isEdge(B)&&null!=F&&F.relative&&(A=this.graph.view.getState(p[0]),null!=A&&2>A.width&&2>A.height&&null!=A.text&&null!=A.text.boundingBox))return mxRectangle.fromRectangle(A.text.boundingBox)}return Da.apply(this,
+arguments)};var Ga=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates=function(){for(var p=Ga.apply(this,arguments),A=[],B=0;B<p.length;B++)"1"!=mxUtils.getValue(p[B].style,"part","0")&&A.push(p[B]);return A};var ta=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(p){var A=this.graph.getModel(),B=A.getParent(p.cell),F=this.graph.getCellGeometry(p.cell);return A.isEdge(B)&&null!=F&&F.relative&&2>p.width&&2>p.height&&null!=
+p.text&&null!=p.text.boundingBox?(A=p.text.unrotatedBoundingBox||p.text.boundingBox,new mxRectangle(Math.round(A.x),Math.round(A.y),Math.round(A.width),Math.round(A.height))):ta.apply(this,arguments)};var La=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(p,A){var B=this.graph.getModel(),F=B.getParent(this.state.cell),M=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(A)==mxEvent.ROTATION_HANDLE||!B.isEdge(F)||null==M||!M.relative||null==this.state||
+2<=this.state.width||2<=this.state.height)&&La.apply(this,arguments)};mxVertexHandler.prototype.rotateClick=function(){var p=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),A=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(this.state.cell)&&p==mxConstants.NONE&&A==mxConstants.NONE?(p=mxUtils.mod(mxUtils.getValue(this.state.style,mxConstants.STYLE_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,
+p,[this.state.cell])):this.state.view.graph.turnShapes([this.state.cell])};var Xa=mxVertexHandler.prototype.mouseMove;mxVertexHandler.prototype.mouseMove=function(p,A){Xa.apply(this,arguments);null!=this.graph.graphHandler.first&&(null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display="none"),null!=this.linkHint&&"none"!=this.linkHint.style.display&&(this.linkHint.style.display="none"))};var Ya=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=
+function(p,A){Ya.apply(this,arguments);null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display=1==this.graph.getSelectionCount()?"":"none");null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="");this.blockDelayedSelection=null};mxVertexHandler.prototype.updateLinkHint=function(p,A){try{if(null==p&&(null==A||0==A.length))null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),
+this.linkHint=null);else if(null!=p||null!=A&&0<A.length){var B=document.createElement("img");B.className="geAdaptiveAsset";B.setAttribute("src",Editor.editImage);B.setAttribute("title",mxResources.get("editLink"));B.setAttribute("width","14");B.setAttribute("height","14");B.style.paddingLeft="8px";B.style.marginLeft="auto";B.style.marginBottom="-1px";B.style.cursor="pointer";var F=B.cloneNode(!0);F.setAttribute("src",Editor.trashImage);F.setAttribute("title",mxResources.get("removeIt",[mxResources.get("link")]));
+F.style.paddingLeft="4px";F.style.marginLeft="0";null==this.linkHint&&(this.linkHint=a(),mxUtils.setPrefixedStyle(this.linkHint.style,"transform","translate(-50%,0)"),this.linkHint.style.padding="6px 8px 6px 8px",this.linkHint.style.opacity="1",this.linkHint.style.filter="",this.graph.container.appendChild(this.linkHint),mxEvent.addListener(this.linkHint,"mouseenter",mxUtils.bind(this,function(){this.graph.tooltipHandler.hide()})));this.linkHint.innerText="";if(null!=p){var M=document.createElement("div");
+M.style.display="flex";M.style.alignItems="center";M.appendChild(this.graph.createLinkForHint(p,null,this.state.cell));this.linkHint.appendChild(M);if(this.graph.isEnabled()&&"function"===typeof this.graph.editLink&&!this.graph.isCellLocked(this.state.cell)){var R=B.cloneNode(!0);M.appendChild(R);mxEvent.addListener(R,"click",mxUtils.bind(this,function(ha){this.graph.setSelectionCell(this.state.cell);this.graph.editLink();mxEvent.consume(ha)}));var W=F.cloneNode(!0);M.appendChild(W);mxEvent.addListener(W,
+"click",mxUtils.bind(this,function(ha){this.graph.setLinkForCell(this.state.cell,null);mxEvent.consume(ha)}))}}if(null!=A)for(M=0;M<A.length;M++)mxUtils.bind(this,function(ha,fa){var ja=document.createElement("div");ja.style.display="flex";ja.style.alignItems="center";ja.style.marginTop=null!=p||0<fa?"6px":"0px";ja.appendChild(this.graph.createLinkForHint(ha.getAttribute("href"),mxUtils.getTextContent(ha),this.state.cell));var va=B.cloneNode(!0);ja.appendChild(va);var Ma=mxUtils.bind(this,function(Na){var ya=
document.createElement("div");ya.innerHTML=Graph.sanitizeHtml(this.graph.getLabel(this.state.cell));var Ha=ya.getElementsByTagName("a")[fa];if(null!=Ha){if(null==Na||""==Na){for(Na=Ha.cloneNode(!0).firstChild;null!=Na;)Ha.parentNode.insertBefore(Na.cloneNode(!0),Ha),Na=Na.nextSibling;Ha.parentNode.removeChild(Ha)}else Ha.setAttribute("href",Na);this.graph.labelChanged(this.state.cell,ya.innerHTML)}});mxEvent.addListener(va,"click",mxUtils.bind(this,function(Na){this.graph.showLinkDialog(ha.getAttribute("href")||
-"",mxResources.get("ok"),Ma);mxEvent.consume(Na)}));va=F.cloneNode(!0);ja.appendChild(va);mxEvent.addListener(va,"click",mxUtils.bind(this,function(Na){Ma();mxEvent.consume(Na)}));this.linkHint.appendChild(ja)})(A[M],M)}null!=this.linkHint&&Graph.sanitizeNode(this.linkHint)}catch(ha){}};mxEdgeHandler.prototype.updateLinkHint=mxVertexHandler.prototype.updateLinkHint;var cb=mxEdgeHandler.prototype.createConstraintHandler;mxEdgeHandler.prototype.createConstraintHandler=function(){var q=cb.apply(this,
-arguments);q.isEnabled=mxUtils.bind(this,function(){return this.state.view.graph.connectionHandler.isEnabled()});return q};var fb=mxConnectionHandler.prototype.init;mxConnectionHandler.prototype.init=function(){fb.apply(this,arguments);this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.graph.connectionHandler.isEnabled()})};var pb=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){if(null!=this.moveHandles)for(var q=0;q<this.moveHandles.length;q++)null!=
-this.moveHandles[q]&&(this.moveHandles[q].bounds.x=Math.round(this.moveHandles[q].rowState.x+this.moveHandles[q].rowState.width-this.moveHandles[q].bounds.width/2),this.moveHandles[q].bounds.y=Math.round(this.moveHandles[q].rowState.y+(this.moveHandles[q].rowState.height-this.moveHandles[q].bounds.height)/2),this.moveHandles[q].redraw());if(null!=this.cornerHandles){q=this.getSelectionBorderInset();var A=this.cornerHandles,B=A[0].bounds.height/2;A[0].bounds.x=this.state.x-A[0].bounds.width/2+q;A[0].bounds.y=
-this.state.y-B+q;A[0].redraw();A[1].bounds.x=A[0].bounds.x+this.state.width-2*q;A[1].bounds.y=A[0].bounds.y;A[1].redraw();A[2].bounds.x=A[0].bounds.x;A[2].bounds.y=this.state.y+this.state.height-2*q;A[2].redraw();A[3].bounds.x=A[1].bounds.x;A[3].bounds.y=A[2].bounds.y;A[3].redraw();for(q=0;q<this.cornerHandles.length;q++)this.cornerHandles[q].node.style.display=1==this.graph.getSelectionCount()?"":"none"}null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.setAttribute("title",
-mxResources.get("rotateTooltip")),this.rotationShape.node.style.display=null!=this.moveHandles||1!=this.graph.getSelectionCount()||null!=this.index&&this.index!=mxEvent.ROTATION_HANDLE?"none":"");pb.apply(this);null!=this.state&&null!=this.linkHint&&(q=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),A=new mxRectangle(this.state.x,this.state.y-22,this.state.width+24,this.state.height+22),B=mxUtils.getBoundingBox(A,this.state.style[mxConstants.STYLE_ROTATION]||"0",q),q=null!=B?mxUtils.getBoundingBox(this.state,
-this.state.style[mxConstants.STYLE_ROTATION]||"0"):this.state,A=null!=this.state.text?this.state.text.boundingBox:null,null==B&&(B=this.state),B=B.y+B.height,null!=A&&(B=Math.max(B,A.y+A.height)),this.linkHint.style.left=q.x+q.width/2+"px",this.linkHint.style.top=Math.round(B+this.verticalOffset/2+Editor.hintOffset)+"px",this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var gb=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){gb.apply(this,arguments);
+"",mxResources.get("ok"),Ma);mxEvent.consume(Na)}));va=F.cloneNode(!0);ja.appendChild(va);mxEvent.addListener(va,"click",mxUtils.bind(this,function(Na){Ma();mxEvent.consume(Na)}));this.linkHint.appendChild(ja)})(A[M],M)}null!=this.linkHint&&Graph.sanitizeNode(this.linkHint)}catch(ha){}};mxEdgeHandler.prototype.updateLinkHint=mxVertexHandler.prototype.updateLinkHint;var cb=mxEdgeHandler.prototype.createConstraintHandler;mxEdgeHandler.prototype.createConstraintHandler=function(){var p=cb.apply(this,
+arguments);p.isEnabled=mxUtils.bind(this,function(){return this.state.view.graph.connectionHandler.isEnabled()});return p};var fb=mxConnectionHandler.prototype.init;mxConnectionHandler.prototype.init=function(){fb.apply(this,arguments);this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.graph.connectionHandler.isEnabled()})};var pb=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){if(null!=this.moveHandles)for(var p=0;p<this.moveHandles.length;p++)null!=
+this.moveHandles[p]&&(this.moveHandles[p].bounds.x=Math.round(this.moveHandles[p].rowState.x+this.moveHandles[p].rowState.width-this.moveHandles[p].bounds.width/2),this.moveHandles[p].bounds.y=Math.round(this.moveHandles[p].rowState.y+(this.moveHandles[p].rowState.height-this.moveHandles[p].bounds.height)/2),this.moveHandles[p].redraw());if(null!=this.cornerHandles){p=this.getSelectionBorderInset();var A=this.cornerHandles,B=A[0].bounds.height/2;A[0].bounds.x=this.state.x-A[0].bounds.width/2+p;A[0].bounds.y=
+this.state.y-B+p;A[0].redraw();A[1].bounds.x=A[0].bounds.x+this.state.width-2*p;A[1].bounds.y=A[0].bounds.y;A[1].redraw();A[2].bounds.x=A[0].bounds.x;A[2].bounds.y=this.state.y+this.state.height-2*p;A[2].redraw();A[3].bounds.x=A[1].bounds.x;A[3].bounds.y=A[2].bounds.y;A[3].redraw();for(p=0;p<this.cornerHandles.length;p++)this.cornerHandles[p].node.style.display=1==this.graph.getSelectionCount()?"":"none"}null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.setAttribute("title",
+mxResources.get("rotateTooltip")),this.rotationShape.node.style.display=null!=this.moveHandles||1!=this.graph.getSelectionCount()||null!=this.index&&this.index!=mxEvent.ROTATION_HANDLE?"none":"");pb.apply(this);null!=this.state&&null!=this.linkHint&&(p=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),A=new mxRectangle(this.state.x,this.state.y-22,this.state.width+24,this.state.height+22),B=mxUtils.getBoundingBox(A,this.state.style[mxConstants.STYLE_ROTATION]||"0",p),p=null!=B?mxUtils.getBoundingBox(this.state,
+this.state.style[mxConstants.STYLE_ROTATION]||"0"):this.state,A=null!=this.state.text?this.state.text.boundingBox:null,null==B&&(B=this.state),B=B.y+B.height,null!=A&&(B=Math.max(B,A.y+A.height)),this.linkHint.style.left=p.x+p.width/2+"px",this.linkHint.style.top=Math.round(B+this.verticalOffset/2+Editor.hintOffset)+"px",this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var gb=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){gb.apply(this,arguments);
this.destroyMoveHandles();this.destroyCornerHandles();null!=this.linkHint&&(null!=this.linkHint.parentNode&&this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getSelectionModel().removeListener(this.changeHandler),this.graph.getModel().removeListener(this.changeHandler),this.changeHandler=null);null!=this.editingHandler&&(this.graph.removeListener(this.editingHandler),this.editingHandler=null)};var ab=mxEdgeHandler.prototype.redrawHandles;
-mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(ab.apply(this),null!=this.state&&null!=this.linkHint)){var q=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(q=new mxRectangle(q.x,q.y,q.width,q.height),q.add(this.state.text.bounds));this.linkHint.style.left=q.x+q.width/2+"px";this.linkHint.style.top=Math.round(q.y+q.height+Editor.hintOffset)+"px";this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":""}};var ib=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=
+mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(ab.apply(this),null!=this.state&&null!=this.linkHint)){var p=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(p=new mxRectangle(p.x,p.y,p.width,p.height),p.add(this.state.text.bounds));this.linkHint.style.left=p.x+p.width/2+"px";this.linkHint.style.top=Math.round(p.y+p.height+Editor.hintOffset)+"px";this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":""}};var ib=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=
function(){ib.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var eb=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){eb.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();Format=function(a,b){this.editorUi=a;this.container=b};Format.inactiveTabBackgroundColor="light-dark(#e4e4e4, #000000)";Format.noMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);Format.classicFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 10 2 L 5 8 L 10 14 Z M 0 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);
Format.classicThinFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 8 4 L 3 8 L 8 12 Z M 0 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);Format.openFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 8 0 L 0 8 L 8 16 M 0 8 L 24 8" stroke="#404040" fill="transparent"/>',32,20);
Format.openThinFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 8 4 L 0 8 L 8 12 M 0 8 L 24 8" stroke="#404040" fill="transparent"/>',32,20);Format.openAsyncFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 8 4 L 0 8 L 24 8" stroke="#404040" fill="transparent"/>',32,20);
@@ -3020,46 +3020,46 @@ Format.processMenuIcon=function(a,b){var e=a.getElementsByTagName("img");0<e.len
Format.prototype.init=function(){var a=this.editorUi,b=a.editor,e=b.graph;this.update=mxUtils.bind(this,function(f,h){this.refresh()});e.getSelectionModel().addListener(mxEvent.CHANGE,this.update);e.getModel().addListener(mxEvent.CHANGE,this.update);e.addListener(mxEvent.EDITING_STARTED,this.update);e.addListener(mxEvent.EDITING_STOPPED,this.update);e.getView().addListener("unitChanged",this.update);b.addListener("autosaveChanged",this.update);e.addListener(mxEvent.ROOT,this.update);a.addListener("styleChanged",
this.update);a.addListener("lockedChanged",this.update);this.refresh()};Format.prototype.clear=function(){this.container.innerText="";if(null!=this.panels)for(var a=0;a<this.panels.length;a++)this.panels[a].destroy();this.panels=[]};Format.prototype.refresh=function(){null!=this.pendingRefresh&&(window.clearTimeout(this.pendingRefresh),this.pendingRefresh=null);this.pendingRefresh=window.setTimeout(mxUtils.bind(this,function(){this.immediateRefresh()}))};
Format.prototype.immediateRefresh=function(){if("0px"!=this.container.style.width){this.clear();var a=this.editorUi,b=a.editor.graph,e=document.createElement("div");e.style.whiteSpace="nowrap";e.style.textAlign="left";e.style.cursor="default";var f=document.createElement("div");f.className="geFormatSection";f.style.textAlign="center";f.style.fontWeight="bold";f.style.paddingTop="8px";f.style.fontSize="13px";f.style.borderWidth="0px 0px 1px 1px";f.style.borderStyle="solid";f.style.display="inline-block";
-f.style.height="25px";f.style.overflow="hidden";f.style.width="100%";this.container.appendChild(e);mxEvent.addListener(f,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(C){C.preventDefault()}));var h=a.getSelectionState(),d=h.containsLabel,g=null,m=null,p=mxUtils.bind(this,function(C,E,D,G){var J=mxUtils.bind(this,function(L){g!=C&&(d?this.labelIndex=D:b.isSelectionEmpty()?this.diagramIndex=D:this.currentIndex=D,null!=g&&(g.style.backgroundColor=Format.inactiveTabBackgroundColor,
+f.style.height="25px";f.style.overflow="hidden";f.style.width="100%";this.container.appendChild(e);mxEvent.addListener(f,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(C){C.preventDefault()}));var h=a.getSelectionState(),d=h.containsLabel,g=null,m=null,q=mxUtils.bind(this,function(C,E,D,G){var J=mxUtils.bind(this,function(L){g!=C&&(d?this.labelIndex=D:b.isSelectionEmpty()?this.diagramIndex=D:this.currentIndex=D,null!=g&&(g.style.backgroundColor=Format.inactiveTabBackgroundColor,
g.style.borderBottomWidth="1px"),g=C,g.style.backgroundColor="",g.style.borderBottomWidth="0px",m!=E&&(null!=m&&(m.style.display="none"),m=E,m.style.display=""))});mxEvent.addListener(C,"click",J);mxEvent.addListener(C,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(L){L.preventDefault()}));(G&&null==g||D==(d?this.labelIndex:b.isSelectionEmpty()?this.diagramIndex:this.currentIndex))&&J()}),k=0;if(b.isSelectionEmpty()){mxUtils.write(f,mxResources.get("diagram"));f.style.borderLeftWidth=
-"0px";e.appendChild(f);h=e.cloneNode(!1);this.panels.push(new DiagramFormatPanel(this,a,h));this.container.appendChild(h);if(null!=Editor.styles){h.style.display="none";f.style.width=this.showCloseButton?"106px":"50%";f.style.cursor="pointer";f.style.backgroundColor=Format.inactiveTabBackgroundColor;var u=f.cloneNode(!1);u.style.borderLeftWidth="1px";u.style.borderRightWidth="1px";u.style.backgroundColor=Format.inactiveTabBackgroundColor;p(f,h,k++);var w=e.cloneNode(!1);w.style.display="none";mxUtils.write(u,
-mxResources.get("style"));e.appendChild(u);this.panels.push(new DiagramStylePanel(this,a,w));this.container.appendChild(w);p(u,w,k++)}this.showCloseButton&&(u=f.cloneNode(!1),u.style.borderLeftWidth="1px",u.style.borderRightWidth="1px",u.style.borderBottomWidth="1px",u.style.backgroundColor=Format.inactiveTabBackgroundColor,u.style.position="absolute",u.style.display="flex",u.style.right="0px",u.style.top="0px",u.style.width="25px",u.style.padding="0px",u.style.height="33px",u.style.alignItems="center",
-u.style.justifyContent="center",p=document.createElement("img"),p.className="geAdaptiveAsset",p.setAttribute("border","0"),p.setAttribute("src",Editor.crossImage),p.setAttribute("title",mxResources.get("hide")),p.style.width="16px",p.style.height="16px",p.style.opacity=.5,u.appendChild(p),mxEvent.addListener(p,"click",function(){a.actions.get("format").funct()}),e.appendChild(u))}else if(b.isEditing())mxUtils.write(f,mxResources.get("text")),e.appendChild(f),f.style.borderLeftStyle="none",this.panels.push(new TextFormatPanel(this,
+"0px";e.appendChild(f);h=e.cloneNode(!1);this.panels.push(new DiagramFormatPanel(this,a,h));this.container.appendChild(h);if(null!=Editor.styles){h.style.display="none";f.style.width=this.showCloseButton?"106px":"50%";f.style.cursor="pointer";f.style.backgroundColor=Format.inactiveTabBackgroundColor;var u=f.cloneNode(!1);u.style.borderLeftWidth="1px";u.style.borderRightWidth="1px";u.style.backgroundColor=Format.inactiveTabBackgroundColor;q(f,h,k++);var w=e.cloneNode(!1);w.style.display="none";mxUtils.write(u,
+mxResources.get("style"));e.appendChild(u);this.panels.push(new DiagramStylePanel(this,a,w));this.container.appendChild(w);q(u,w,k++)}this.showCloseButton&&(u=f.cloneNode(!1),u.style.borderLeftWidth="1px",u.style.borderRightWidth="1px",u.style.borderBottomWidth="1px",u.style.backgroundColor=Format.inactiveTabBackgroundColor,u.style.position="absolute",u.style.display="flex",u.style.right="0px",u.style.top="0px",u.style.width="25px",u.style.padding="0px",u.style.height="33px",u.style.alignItems="center",
+u.style.justifyContent="center",q=document.createElement("img"),q.className="geAdaptiveAsset",q.setAttribute("border","0"),q.setAttribute("src",Editor.crossImage),q.setAttribute("title",mxResources.get("hide")),q.style.width="16px",q.style.height="16px",q.style.opacity=.5,u.appendChild(q),mxEvent.addListener(q,"click",function(){a.actions.get("format").funct()}),e.appendChild(u))}else if(b.isEditing())mxUtils.write(f,mxResources.get("text")),e.appendChild(f),f.style.borderLeftStyle="none",this.panels.push(new TextFormatPanel(this,
a,e));else{f.style.backgroundColor=Format.inactiveTabBackgroundColor;f.style.borderLeftWidth="1px";f.style.cursor="pointer";f.style.width=0==h.cells.length?"100%":d?"50%":"33.3%";u=f.cloneNode(!1);var z=u.cloneNode(!1);u.style.backgroundColor=Format.inactiveTabBackgroundColor;z.style.backgroundColor=Format.inactiveTabBackgroundColor;d?u.style.borderLeftWidth="0px":0<h.cells.length&&(f.style.borderLeftWidth="0px",mxUtils.write(f,mxResources.get("style")),e.appendChild(f),w=e.cloneNode(!1),w.style.display=
-"none",this.panels.push(new StyleFormatPanel(this,a,w)),this.container.appendChild(w),p(f,w,k++));mxUtils.write(u,mxResources.get("text"));e.appendChild(u);f=e.cloneNode(!1);f.style.display="none";this.panels.push(new TextFormatPanel(this,a,f));this.container.appendChild(f);mxUtils.write(z,mxResources.get("arrange"));e.appendChild(z);e=e.cloneNode(!1);e.style.display="none";this.panels.push(new ArrangePanel(this,a,e));this.container.appendChild(e);0<h.cells.length?p(u,f,k+1):u.style.display="none";
-p(z,e,k++,!0)}}};BaseFormatPanel=function(a,b,e){this.format=a;this.editorUi=b;this.container=e;this.listeners=[]};BaseFormatPanel.prototype.buttonBackgroundColor="transparent";
-BaseFormatPanel.prototype.installInputHandler=function(a,b,e,f,h,d,g,m,p){d=null!=d?d:"";m=null!=m?m:!1;var k=this.editorUi,u=k.editor.graph;f=null!=f?f:1;h=null!=h?h:999;var w=null,z=!1,C=null,E=mxUtils.bind(this,function(D){var G=m?parseFloat(a.value):parseInt(a.value);p&&(G=this.fromUnit(G));if(G!=C){C=G;isNaN(G)||b!=mxConstants.STYLE_ROTATION||(G=mxUtils.mod(Math.round(100*G),36E3)/100);G=Math.min(h,Math.max(f,isNaN(G)?e:G));if(u.cellEditor.isContentEditing()&&g)z||(z=!0,null!=w&&(u.cellEditor.restoreSelection(w),
-w=null),g(G),a.value=(p?this.inUnit(G):G)+d,z=!1);else if(G!=mxUtils.getValue(k.getSelectionState().style,b,e)){u.isEditing()&&u.stopEditing(!0);u.getModel().beginUpdate();try{var J=k.getSelectionState().cells;u.setCellStyles(b,G,J);b==mxConstants.STYLE_FONTSIZE&&u.updateLabelElements(J,function(Q){Q.removeAttribute("size");Q.style.fontSize="";""==Q.getAttribute("style")&&Q.removeAttribute("style")});for(var L=0;L<J.length;L++)0==u.model.getChildCount(J[L])&&u.autoSizeCell(J[L],!1);k.fireEvent(new mxEventObject("styleChanged",
-"keys",[b],"values",[G],"cells",J))}finally{u.getModel().endUpdate()}}a.value=(p?this.inUnit(G):G)+d}mxEvent.consume(D)});g&&u.cellEditor.isContentEditing()&&mxEvent.addGestureListeners(a,mxUtils.bind(this,function(D){document.activeElement==u.cellEditor.textarea&&(w=u.cellEditor.saveSelection())}));mxEvent.addListener(a,"change",E);mxEvent.addListener(a,"blur",E);return E};
+"none",this.panels.push(new StyleFormatPanel(this,a,w)),this.container.appendChild(w),q(f,w,k++));mxUtils.write(u,mxResources.get("text"));e.appendChild(u);f=e.cloneNode(!1);f.style.display="none";this.panels.push(new TextFormatPanel(this,a,f));this.container.appendChild(f);mxUtils.write(z,mxResources.get("arrange"));e.appendChild(z);e=e.cloneNode(!1);e.style.display="none";this.panels.push(new ArrangePanel(this,a,e));this.container.appendChild(e);0<h.cells.length?q(u,f,k+1):u.style.display="none";
+q(z,e,k++,!0)}}};BaseFormatPanel=function(a,b,e){this.format=a;this.editorUi=b;this.container=e;this.listeners=[]};BaseFormatPanel.prototype.buttonBackgroundColor="transparent";
+BaseFormatPanel.prototype.installInputHandler=function(a,b,e,f,h,d,g,m,q){d=null!=d?d:"";m=null!=m?m:!1;var k=this.editorUi,u=k.editor.graph;f=null!=f?f:1;h=null!=h?h:999;var w=null,z=!1,C=null,E=mxUtils.bind(this,function(D){var G=m?parseFloat(a.value):parseInt(a.value);q&&(G=this.fromUnit(G));if(G!=C){C=G;isNaN(G)||b!=mxConstants.STYLE_ROTATION||(G=mxUtils.mod(Math.round(100*G),36E3)/100);G=Math.min(h,Math.max(f,isNaN(G)?e:G));if(u.cellEditor.isContentEditing()&&g)z||(z=!0,null!=w&&(u.cellEditor.restoreSelection(w),
+w=null),g(G),a.value=(q?this.inUnit(G):G)+d,z=!1);else if(G!=mxUtils.getValue(k.getSelectionState().style,b,e)){u.isEditing()&&u.stopEditing(!0);u.getModel().beginUpdate();try{var J=k.getSelectionState().cells;u.setCellStyles(b,G,J);b==mxConstants.STYLE_FONTSIZE&&u.updateLabelElements(J,function(Q){Q.removeAttribute("size");Q.style.fontSize="";""==Q.getAttribute("style")&&Q.removeAttribute("style")});for(var L=0;L<J.length;L++)0==u.model.getChildCount(J[L])&&u.autoSizeCell(J[L],!1);k.fireEvent(new mxEventObject("styleChanged",
+"keys",[b],"values",[G],"cells",J))}finally{u.getModel().endUpdate()}}a.value=(q?this.inUnit(G):G)+d}mxEvent.consume(D)});g&&u.cellEditor.isContentEditing()&&mxEvent.addGestureListeners(a,mxUtils.bind(this,function(D){document.activeElement==u.cellEditor.textarea&&(w=u.cellEditor.saveSelection())}));mxEvent.addListener(a,"change",E);mxEvent.addListener(a,"blur",E);return E};
BaseFormatPanel.prototype.createPanel=function(){var a=document.createElement("div");a.className="geFormatSection";a.style.padding="12px 0px 8px 14px";return a};BaseFormatPanel.prototype.createTitle=function(a){var b=document.createElement("div");b.style.padding="0px 0px 6px 0px";b.style.whiteSpace="nowrap";b.style.overflow="hidden";b.style.width="200px";b.style.fontWeight="bold";mxUtils.write(b,a);return b};
BaseFormatPanel.prototype.addAction=function(a,b){var e=this.editorUi.actions.get(b);b=null;null!=e&&e.isEnabled()&&(b=mxUtils.button(e.label,mxUtils.bind(this,function(f){try{e.funct(f,f)}catch(h){this.editorUi.handleError(h)}})),b.setAttribute("title",e.label+(null!=e.shortcut?" ("+e.shortcut+")":"")),b.style.marginBottom="2px",b.style.width="210px",a.appendChild(b));return b};
BaseFormatPanel.prototype.addActions=function(a,b){for(var e=null,f=null,h=0,d=0;d<b.length;d++){var g=this.addAction(a,b[d]);null!=g&&(h++,0==mxUtils.mod(h,2)&&(f.style.marginRight="2px",f.style.width="104px",g.style.width="104px",e.parentNode.removeChild(e)),e=mxUtils.br(a),f=g)}return h};
-BaseFormatPanel.prototype.createStepper=function(a,b,e,f,h,d,g){e=null!=e?e:1;f=null!=f?f:9;var m=10*e,p=document.createElement("div");p.className="geBtnStepper";p.style.position="absolute";var k=document.createElement("div");k.style.height=f+"px";k.style.backgroundImage="url("+Editor.arrowUpImage+")";k.style.width="10px";p.appendChild(k);var u=k.cloneNode(!1);u.style.height=f+"px";u.style.backgroundImage="url("+Editor.arrowDownImage+")";p.appendChild(u);mxEvent.addGestureListeners(u,function(z){mxEvent.consume(z)},
-null,function(z){""==a.value&&(a.value=d||"2");var C=g?parseFloat(a.value):parseInt(a.value);isNaN(C)||(a.value=C-(mxEvent.isShiftDown(z)?m:e),null!=b&&b(z));mxEvent.consume(z)});mxEvent.addGestureListeners(k,function(z){mxEvent.consume(z)},null,function(z){""==a.value&&(a.value=d||"0");var C=g?parseFloat(a.value):parseInt(a.value);isNaN(C)||(a.value=C+(mxEvent.isShiftDown(z)?m:e),null!=b&&b(z));mxEvent.consume(z)});if(h){var w=null;mxEvent.addGestureListeners(p,function(z){mxEvent.consume(z)},null,
-function(z){if(null!=w){try{w.select()}catch(C){}w=null;mxEvent.consume(z)}})}else mxEvent.addListener(p,"click",function(z){mxEvent.consume(z)});return p};
+BaseFormatPanel.prototype.createStepper=function(a,b,e,f,h,d,g){e=null!=e?e:1;f=null!=f?f:9;var m=10*e,q=document.createElement("div");q.className="geBtnStepper";q.style.position="absolute";var k=document.createElement("div");k.style.height=f+"px";k.style.backgroundImage="url("+Editor.arrowUpImage+")";k.style.width="10px";q.appendChild(k);var u=k.cloneNode(!1);u.style.height=f+"px";u.style.backgroundImage="url("+Editor.arrowDownImage+")";q.appendChild(u);mxEvent.addGestureListeners(u,function(z){mxEvent.consume(z)},
+null,function(z){""==a.value&&(a.value=d||"2");var C=g?parseFloat(a.value):parseInt(a.value);isNaN(C)||(a.value=C-(mxEvent.isShiftDown(z)?m:e),null!=b&&b(z));mxEvent.consume(z)});mxEvent.addGestureListeners(k,function(z){mxEvent.consume(z)},null,function(z){""==a.value&&(a.value=d||"0");var C=g?parseFloat(a.value):parseInt(a.value);isNaN(C)||(a.value=C+(mxEvent.isShiftDown(z)?m:e),null!=b&&b(z));mxEvent.consume(z)});if(h){var w=null;mxEvent.addGestureListeners(q,function(z){mxEvent.consume(z)},null,
+function(z){if(null!=w){try{w.select()}catch(C){}w=null;mxEvent.consume(z)}})}else mxEvent.addListener(q,"click",function(z){mxEvent.consume(z)});return q};
BaseFormatPanel.prototype.createOption=function(a,b,e,f,h){var d=document.createElement("div");d.style.display="flex";d.style.alignItems="center";d.style.padding="3px 0px 3px 0px";d.style.height="18px";var g=document.createElement("input");g.setAttribute("type","checkbox");g.style.margin="1px 6px 0px 0px";g.style.verticalAlign="top";d.appendChild(g);var m=document.createElement("div");m.setAttribute("title",a);m.style.display="inline-block";m.style.whiteSpace="nowrap";m.style.textOverflow="ellipsis";
-m.style.overflow="hidden";m.style.maxWidth="75%";m.style.userSelect="none";mxUtils.write(m,a);d.appendChild(m);var p=!1,k=b(),u=function(w,z){p||(p=!0,w?(g.setAttribute("checked","checked"),g.defaultChecked=!0,g.checked=!0):(g.removeAttribute("checked"),g.defaultChecked=!1,g.checked=!1),k!=w&&(k=w,b()!=k&&e(k,z)),p=!1)};mxEvent.addListener(d,"click",function(w){if("disabled"!=g.getAttribute("disabled")){var z=mxEvent.getSource(w);if(z==d||z==m)g.checked=!g.checked;u(g.checked,w)}});u(k);null!=f&&
+m.style.overflow="hidden";m.style.maxWidth="75%";m.style.userSelect="none";mxUtils.write(m,a);d.appendChild(m);var q=!1,k=b(),u=function(w,z){q||(q=!0,w?(g.setAttribute("checked","checked"),g.defaultChecked=!0,g.checked=!0):(g.removeAttribute("checked"),g.defaultChecked=!1,g.checked=!1),k!=w&&(k=w,b()!=k&&e(k,z)),q=!1)};mxEvent.addListener(d,"click",function(w){if("disabled"!=g.getAttribute("disabled")){var z=mxEvent.getSource(w);if(z==d||z==m)g.checked=!g.checked;u(g.checked,w)}});u(k);null!=f&&
(f.install(u),this.listeners.push(f));null!=h&&h(d);return d};
-BaseFormatPanel.prototype.createCellOption=function(a,b,e,f,h,d,g,m,p){var k=this.editorUi,u=k.editor.graph;f=null!=f?"null"==f?null:f:1;h=null!=h?"null"==h?null:h:0;var w=null!=p?u.getCommonStyle(p):k.getSelectionState().style;return this.createOption(a,function(){return mxUtils.getValue(w,b,e)!=h},function(z){m&&u.stopEditing();if(null!=g)g.funct();else{u.getModel().beginUpdate();try{var C=null!=p?p:k.getSelectionState().cells;z=z?f:h;u.setCellStyles(b,z,C);null!=d&&d(C,z);k.fireEvent(new mxEventObject("styleChanged",
+BaseFormatPanel.prototype.createCellOption=function(a,b,e,f,h,d,g,m,q){var k=this.editorUi,u=k.editor.graph;f=null!=f?"null"==f?null:f:1;h=null!=h?"null"==h?null:h:0;var w=null!=q?u.getCommonStyle(q):k.getSelectionState().style;return this.createOption(a,function(){return mxUtils.getValue(w,b,e)!=h},function(z){m&&u.stopEditing();if(null!=g)g.funct();else{u.getModel().beginUpdate();try{var C=null!=q?q:k.getSelectionState().cells;z=z?f:h;u.setCellStyles(b,z,C);null!=d&&d(C,z);k.fireEvent(new mxEventObject("styleChanged",
"keys",[b],"values",[z],"cells",C))}finally{u.getModel().endUpdate()}}},{install:function(z){this.listener=function(){z(mxUtils.getValue(w,b,e)!=h)};u.getModel().addListener(mxEvent.CHANGE,this.listener)},destroy:function(){u.getModel().removeListener(this.listener)}})};
-BaseFormatPanel.prototype.createColorOption=function(a,b,e,f,h,d,g,m,p,k){function u(P,T){"default"!=P||T||(P=m);"default"!=P&&p&&(P=mxUtils.getLightDarkColor(P),P=k()?P.dark:P.light);return P}var w=null!=k;k=null!=k?k:Editor.isDarkMode;var z=this.editorUi.editor.graph,C=document.createElement("div");C.style.padding="3px 0px 3px 0px";C.style.whiteSpace="nowrap";C.style.overflow="hidden";C.style.width="200px";C.style.height="18px";var E=document.createElement("input");E.setAttribute("type","checkbox");
+BaseFormatPanel.prototype.createColorOption=function(a,b,e,f,h,d,g,m,q,k){function u(P,T){"default"!=P||T||(P=m);"default"!=P&&q&&(P=mxUtils.getLightDarkColor(P),P=k()?P.dark:P.light);return P}var w=null!=k;k=null!=k?k:Editor.isDarkMode;var z=this.editorUi.editor.graph,C=document.createElement("div");C.style.padding="3px 0px 3px 0px";C.style.whiteSpace="nowrap";C.style.overflow="hidden";C.style.width="200px";C.style.height="18px";var E=document.createElement("input");E.setAttribute("type","checkbox");
E.style.margin="1px 6px 0px 0px";E.style.verticalAlign="top";g||C.appendChild(E);var D=document.createElement("span");D.style.verticalAlign="top";mxUtils.write(D,a);C.appendChild(D);var G=b(),J=!1,L=null,Q=null,N=document.createElement("input");N.setAttribute("type","color");N.style.position="relative";N.style.visibility="hidden";N.style.top="10px";N.style.width="0px";N.style.height="0px";N.style.border="none";mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_TOUCH||(L=document.createElement("img"),L.src=
Editor.colorDropperImage,L.className="geColorDropper geAdaptiveAsset",L.style.position="relative",L.style.right="-20px",L.style.top="-1px",L.style.width="auto",L.style.height="14px",mxEvent.addListener(L,"click",function(P){N.value=u(G);N.click();mxEvent.consume(P)}));var U=null,Y=function(P,T){J||(J=!0,null!=d&&d(P),T||(null!=U&&(z.cellEditor.restoreSelection(U),U=null),e(P)),G=b(),P=mxUtils.getLightDarkColor("default"!=G?G:m),T=document.createElement("div"),T.style.width="21px",T.style.height="12px",
-T.style.margin="2px 18px 2px 3px",T.style.borderWidth="1px",T.style.borderStyle="solid",T.style.backgroundColor=P.cssText,Q.innerText="",Q.appendChild(T),!p&&mxUtils.isLightDarkColor(G)&&P.light!=P.dark?T.style.background="linear-gradient(to right bottom, "+P.cssText+" 50%, "+mxUtils.invertLightDarkColor(P).cssText+" 50.3%)":p&&w&&(T.style.backgroundColor=k()?P.dark:P.light),null!=L?(T.style.width="21px",T.style.margin="2px 18px 2px 3px",T.appendChild(L)):(T.style.width="36px",T.style.margin="3px"),
+T.style.margin="2px 18px 2px 3px",T.style.borderWidth="1px",T.style.borderStyle="solid",T.style.backgroundColor=P.cssText,Q.innerText="",Q.appendChild(T),!q&&mxUtils.isLightDarkColor(G)&&P.light!=P.dark?T.style.background="linear-gradient(to right bottom, "+P.cssText+" 50%, "+mxUtils.invertLightDarkColor(P).cssText+" 50.3%)":q&&w&&(T.style.backgroundColor=k()?P.dark:P.light),null!=L?(T.style.width="21px",T.style.margin="2px 18px 2px 3px",T.appendChild(L)):(T.style.width="36px",T.style.margin="3px"),
null!=G&&G!=mxConstants.NONE&&1<G.length&&"string"===typeof G&&(P="#"==G.charAt(0)?G.substring(1).toUpperCase():G,P=ColorDialog.prototype.colorNames[P],null!=P?Q.setAttribute("title",P):"default"==G?Q.setAttribute("title",mxResources.get("useBlackAndWhite")):Q.setAttribute("title",G)),null==G||G==mxConstants.NONE||z.isSpecialColor(G)?(E.removeAttribute("checked"),E.defaultChecked=!1,E.checked=!1):(E.setAttribute("checked","checked"),E.defaultChecked=!0,E.checked=!0),Q.style.display=E.checked||g?"":
-"none",J=!1)};C.appendChild(N);mxEvent.addListener(N,"change",function(){var P=N.value;if(!p){var T=mxUtils.getLightDarkColor(G);k()?T.dark=P:T.light=P;P="light-dark("+T.light+", "+T.dark+")"}Y(P)});Q=mxUtils.button("",mxUtils.bind(this,function(P){var T=m;p&&k()&&mxUtils.isLightDarkColor(T)&&(T=mxUtils.getLightDarkColor(m).dark);this.editorUi.pickColor(u(G,!0),function(K){Y(K)},"default"==f?"default":null,T,p);mxEvent.consume(P)}));Q.style.position="absolute";Q.style.marginTop="-3px";Q.style.left=
+"none",J=!1)};C.appendChild(N);mxEvent.addListener(N,"change",function(){var P=N.value;if(!q){var T=mxUtils.getLightDarkColor(G);k()?T.dark=P:T.light=P;P="light-dark("+T.light+", "+T.dark+")"}Y(P)});Q=mxUtils.button("",mxUtils.bind(this,function(P){var T=m;q&&k()&&mxUtils.isLightDarkColor(T)&&(T=mxUtils.getLightDarkColor(m).dark);this.editorUi.pickColor(u(G,!0),function(K){Y(K)},"default"==f?"default":null,T,q);mxEvent.consume(P)}));Q.style.position="absolute";Q.style.marginTop="-3px";Q.style.left=
"178px";Q.style.height="22px";Q.className="geColorBtn";Q.style.display=E.checked||g?"":"none";C.appendChild(Q);a=null!=G&&"string"===typeof G&&"#"==G.charAt(0)?G.substring(1).toUpperCase():G;a=ColorDialog.prototype.colorNames[a];null!=a&&Q.setAttribute("title",a);g||(mxEvent.addListener(C,"click",function(P){P=mxEvent.getSource(P);if(P==E||"INPUT"!=P.nodeName)P!=E&&(E.checked=!E.checked),E.checked||null==G||G==mxConstants.NONE||f==mxConstants.NONE||(f=u(G)),Y(E.checked?f:mxConstants.NONE)}),mxEvent.addGestureListeners(E,
mxUtils.bind(this,function(P){document.activeElement==z.cellEditor.textarea&&(U=z.cellEditor.saveSelection())})),mxEvent.addGestureListeners(C,mxUtils.bind(this,function(P){document.activeElement==z.cellEditor.textarea&&(U=z.cellEditor.saveSelection())})));Y(G,!0);null!=h&&h.install(function(){Y(G,!0)},this.listeners.push(h));return C};
-BaseFormatPanel.prototype.createCellColorOption=function(a,b,e,f,h,d){var g=this.editorUi,m=g.editor.graph;return this.createColorOption(a,function(){var p=m.getCellStyle(m.getSelectionCell(),!1);return null!=p?p[b]:null},function(p){m.getModel().beginUpdate();try{var k=g.getSelectionState().cells;m.setCellStyles(b,p,k);null!=h&&h(p);g.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[p],"cells",k))}finally{m.getModel().endUpdate()}},e||mxConstants.NONE,{install:function(p){this.listener=
-function(){var k=m.getCellStyle(m.getSelectionCell(),!1);null!=k&&p(k[b],!0)};m.getModel().addListener(mxEvent.CHANGE,this.listener)},destroy:function(){m.getModel().removeListener(this.listener)}},f,null,d)};
+BaseFormatPanel.prototype.createCellColorOption=function(a,b,e,f,h,d){var g=this.editorUi,m=g.editor.graph;return this.createColorOption(a,function(){var q=m.getCellStyle(m.getSelectionCell(),!1);return null!=q?q[b]:null},function(q){m.getModel().beginUpdate();try{var k=g.getSelectionState().cells;m.setCellStyles(b,q,k);null!=h&&h(q);g.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[q],"cells",k))}finally{m.getModel().endUpdate()}},e||mxConstants.NONE,{install:function(q){this.listener=
+function(){var k=m.getCellStyle(m.getSelectionCell(),!1);null!=k&&q(k[b],!0)};m.getModel().addListener(mxEvent.CHANGE,this.listener)},destroy:function(){m.getModel().removeListener(this.listener)}},f,null,d)};
BaseFormatPanel.prototype.addArrow=function(a){a.className="geColorBtn";a.style.display="inline-flex";a.style.alignItems="top";a.style.boxSizing="border-box";a.style.width="64px";a.style.height="22px";a.style.borderWidth="1px";a.style.borderStyle="solid";a.style.margin="2px 2px 2px 3px";var b=document.createElement("div");b.className="geAdaptiveAsset";b.style.display="inline-block";b.style.backgroundImage="url("+Editor.thinExpandImage+")";b.style.backgroundRepeat="no-repeat";b.style.backgroundPosition=
"-2px 1px";b.style.backgroundSize="18px 18px";b.style.opacity="0.5";b.style.height="100%";b.style.width="14px";a.appendChild(b);a=a.getElementsByTagName("div")[0];null!=a&&(a.style.display="inline-block",a.style.backgroundPositionX="center",a.style.textAlign="center",a.style.height="100%",a.style.flexGrow="1",a.style.opacity="0.6");return a};
-BaseFormatPanel.prototype.addUnitInput=function(a,b,e,f,h,d,g,m,p){g=null!=g?g:0;b=document.createElement("input");b.style.position="absolute";b.style.textAlign="right";b.style.marginTop="-2px";b.style.left=228-e-f+"px";b.style.width=f+"px";b.style.height="21px";b.style.borderWidth="1px";b.style.borderStyle="solid";b.style.boxSizing="border-box";a.appendChild(b);f=this.createStepper(b,h,d,null,m,null,p);f.style.marginTop=g-2+"px";f.style.left=228-e+"px";a.appendChild(f);return b};
-BaseFormatPanel.prototype.addGenericInput=function(a,b,e,f,h,d){var g=this.editorUi.editor.graph,m=function(){d(p.value)},p=this.addUnitInput(a,b,e,f,m),k=mxUtils.bind(this,function(u,w,z){if(z||p!=document.activeElement)p.value=h()+b});mxEvent.addListener(p,"keydown",function(u){13==u.keyCode?(g.container.focus(),mxEvent.consume(u)):27==u.keyCode&&(k(null,null,!0),g.container.focus(),mxEvent.consume(u))});g.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){g.getModel().removeListener(k)}});
-k();mxEvent.addListener(p,"blur",m);mxEvent.addListener(p,"change",m);return p};
-BaseFormatPanel.prototype.createRelativeOption=function(a,b,e,f,h){e=null!=e?e:52;var d=this.editorUi,g=d.editor.graph,m=this.createPanel();m.style.paddingTop="10px";m.style.paddingBottom="12px";mxUtils.write(m,a);m.style.fontWeight="bold";a=mxUtils.bind(this,function(u){if(null!=f)f(p);else{var w=parseInt(p.value);w=Math.min(100,Math.max(0,isNaN(w)?100:w));var z=g.view.getState(d.getSelectionState().cells[0]);null!=z&&w!=mxUtils.getValue(z.style,b,100)&&(100==w&&(w=null),z=d.getSelectionState().cells,
-g.setCellStyles(b,w,z),this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[w],"cells",z)));p.value=(null!=w?w:"100")+" %"}mxEvent.consume(u)});var p=this.addUnitInput(m,"%",16,e,a,10,0,null!=f);if(null!=b){var k=mxUtils.bind(this,function(u,w,z){if(z||p!=document.activeElement)u=d.getSelectionState(),u=parseInt(mxUtils.getValue(u.style,b,100)),p.value=isNaN(u)?"":u+" %"});mxEvent.addListener(p,"keydown",function(u){13==u.keyCode?(g.container.focus(),mxEvent.consume(u)):27==
-u.keyCode&&(k(null,null,!0),g.container.focus(),mxEvent.consume(u))});g.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){g.getModel().removeListener(k)}});k()}mxEvent.addListener(p,"blur",a);mxEvent.addListener(p,"change",a);null!=h&&h(p);return m};
+BaseFormatPanel.prototype.addUnitInput=function(a,b,e,f,h,d,g,m,q){g=null!=g?g:0;b=document.createElement("input");b.style.position="absolute";b.style.textAlign="right";b.style.marginTop="-2px";b.style.left=228-e-f+"px";b.style.width=f+"px";b.style.height="21px";b.style.borderWidth="1px";b.style.borderStyle="solid";b.style.boxSizing="border-box";a.appendChild(b);f=this.createStepper(b,h,d,null,m,null,q);f.style.marginTop=g-2+"px";f.style.left=228-e+"px";a.appendChild(f);return b};
+BaseFormatPanel.prototype.addGenericInput=function(a,b,e,f,h,d){var g=this.editorUi.editor.graph,m=function(){d(q.value)},q=this.addUnitInput(a,b,e,f,m),k=mxUtils.bind(this,function(u,w,z){if(z||q!=document.activeElement)q.value=h()+b});mxEvent.addListener(q,"keydown",function(u){13==u.keyCode?(g.container.focus(),mxEvent.consume(u)):27==u.keyCode&&(k(null,null,!0),g.container.focus(),mxEvent.consume(u))});g.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){g.getModel().removeListener(k)}});
+k();mxEvent.addListener(q,"blur",m);mxEvent.addListener(q,"change",m);return q};
+BaseFormatPanel.prototype.createRelativeOption=function(a,b,e,f,h){e=null!=e?e:52;var d=this.editorUi,g=d.editor.graph,m=this.createPanel();m.style.paddingTop="10px";m.style.paddingBottom="12px";mxUtils.write(m,a);m.style.fontWeight="bold";a=mxUtils.bind(this,function(u){if(null!=f)f(q);else{var w=parseInt(q.value);w=Math.min(100,Math.max(0,isNaN(w)?100:w));var z=g.view.getState(d.getSelectionState().cells[0]);null!=z&&w!=mxUtils.getValue(z.style,b,100)&&(100==w&&(w=null),z=d.getSelectionState().cells,
+g.setCellStyles(b,w,z),this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[w],"cells",z)));q.value=(null!=w?w:"100")+" %"}mxEvent.consume(u)});var q=this.addUnitInput(m,"%",16,e,a,10,0,null!=f);if(null!=b){var k=mxUtils.bind(this,function(u,w,z){if(z||q!=document.activeElement)u=d.getSelectionState(),u=parseInt(mxUtils.getValue(u.style,b,100)),q.value=isNaN(u)?"":u+" %"});mxEvent.addListener(q,"keydown",function(u){13==u.keyCode?(g.container.focus(),mxEvent.consume(u)):27==
+u.keyCode&&(k(null,null,!0),g.container.focus(),mxEvent.consume(u))});g.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){g.getModel().removeListener(k)}});k()}mxEvent.addListener(q,"blur",a);mxEvent.addListener(q,"change",a);null!=h&&h(q);return m};
BaseFormatPanel.prototype.addLabel=function(a,b,e,f){f=null!=f?f:61;var h=document.createElement("div");mxUtils.write(h,b);h.style.position="absolute";h.style.left=240-e-f+"px";h.style.width=f+"px";h.style.marginTop="6px";h.style.display="flex";h.style.justifyContent="center";a.appendChild(h);return h};
BaseFormatPanel.prototype.addKeyHandler=function(a,b){mxEvent.addListener(a,"keydown",mxUtils.bind(this,function(e){13==e.keyCode?(this.editorUi.editor.graph.container.focus(),mxEvent.consume(e)):27==e.keyCode&&(null!=b&&b(null,null,!0),this.editorUi.editor.graph.container.focus(),mxEvent.consume(e))}))};
BaseFormatPanel.prototype.styleButtons=function(a){for(var b=0;b<a.length;b++)mxUtils.setPrefixedStyle(a[b].style,"borderRadius","3px"),a[b].style.border="1px solid #a0a0a0",a[b].style.padding="4px",a[b].style.paddingTop="3px",a[b].style.paddingRight="1px",a[b].style.margin="1px",a[b].style.marginRight="2px",a[b].style.width="24px",a[b].style.height="20px"};
@@ -3067,60 +3067,60 @@ BaseFormatPanel.prototype.destroy=function(){if(null!=this.listeners){for(var a=
ArrangePanel.prototype.init=function(){var a=this.editorUi.getSelectionState();0<a.cells.length&&(this.container.appendChild(this.addLayerOps(this.createPanel())),this.addGeometry(this.container),this.addEdgeGeometry(this.container),a.containsLabel&&0!=a.edges.length||this.container.appendChild(this.addAngle(this.createPanel())),a.containsLabel||this.container.appendChild(this.addFlip(this.createPanel())),this.container.appendChild(this.addAlign(this.createPanel())),1<a.vertices.length&&!a.cell&&
!a.row&&this.container.appendChild(this.addDistribute(this.createPanel())),this.container.appendChild(this.addTable(this.createPanel())));this.container.appendChild(this.addGroupOps(this.createPanel()));a.containsLabel&&(1==a.cells.length&&(a=document.createElement("div"),a.style.width="100%",a.style.marginTop="0px",a.style.fontWeight="bold",a.style.padding="10px 0 0 14px",mxUtils.write(a,mxResources.get("style")),this.container.appendChild(a)),new StyleFormatPanel(this.format,this.editorUi,this.container))};
ArrangePanel.prototype.addTable=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();a.style.paddingTop="6px";a.style.paddingBottom="10px";var h=document.createElement("div");h.style.marginTop="0px";h.style.marginBottom="6px";h.style.fontWeight="bold";mxUtils.write(h,mxResources.get("table"));a.appendChild(h);h=document.createElement("div");h.style.position="relative";h.style.paddingLeft="0px";h.style.borderWidth="0px";h.style.width="220px";h.className="geToolbarContainer";var d=
-f.vertices[0];1<e.getSelectionCount()&&(e.isTableCell(d)&&(d=e.model.getParent(d)),e.isTableRow(d)&&(d=e.model.getParent(d)));var g=f.table||f.row||f.cell,m=e.isStack(d)||e.isStackChild(d),p=g;m&&(g="0"==(e.isStack(d)?f.style:e.getCellStyle(e.model.getParent(d))).horizontalStack,p=!g);var k=[];p&&(k=k.concat([b.toolbar.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{m?e.insertLane(d,!0):e.insertTableColumn(d,!0)}catch(u){b.handleError(u)}}),
+f.vertices[0];1<e.getSelectionCount()&&(e.isTableCell(d)&&(d=e.model.getParent(d)),e.isTableRow(d)&&(d=e.model.getParent(d)));var g=f.table||f.row||f.cell,m=e.isStack(d)||e.isStackChild(d),q=g;m&&(g="0"==(e.isStack(d)?f.style:e.getCellStyle(e.model.getParent(d))).horizontalStack,q=!g);var k=[];q&&(k=k.concat([b.toolbar.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{m?e.insertLane(d,!0):e.insertTableColumn(d,!0)}catch(u){b.handleError(u)}}),
h),b.toolbar.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{m?e.insertLane(d,!1):e.insertTableColumn(d,!1)}catch(u){b.handleError(u)}}),h),b.toolbar.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{m?e.deleteLane(d):e.deleteTableColumn(d)}catch(u){b.handleError(u)}}),h)]));g&&(k=k.concat([b.toolbar.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{m?
e.insertLane(d,!0):e.insertTableRow(d,!0)}catch(u){b.handleError(u)}}),h),b.toolbar.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{m?e.insertLane(d,!1):e.insertTableRow(d,!1)}catch(u){b.handleError(u)}}),h),b.toolbar.addButton(Editor.removeRowImage,mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{m?e.deleteLane(d):e.deleteTableRow(d)}catch(u){b.handleError(u)}}),h)]));if(0<k.length){this.styleButtons(k);a.appendChild(h);3<k.length&&
-(k[2].style.marginRight="10px");p=0;if(null!=f.mergeCell)p+=this.addActions(a,["mergeCells"]);else if(1<f.style.colspan||1<f.style.rowspan)p+=this.addActions(a,["unmergeCells"]);0<p&&(h.style.paddingBottom="2px")}else a.style.display="none";return a};ArrangePanel.prototype.addLayerOps=function(a){this.addActions(a,["toFront","toBack"]);this.addActions(a,["bringForward","sendBackward"]);return a};
+(k[2].style.marginRight="10px");q=0;if(null!=f.mergeCell)q+=this.addActions(a,["mergeCells"]);else if(1<f.style.colspan||1<f.style.rowspan)q+=this.addActions(a,["unmergeCells"]);0<q&&(h.style.paddingBottom="2px")}else a.style.display="none";return a};ArrangePanel.prototype.addLayerOps=function(a){this.addActions(a,["toFront","toBack"]);this.addActions(a,["bringForward","sendBackward"]);return a};
ArrangePanel.prototype.addGroupOps=function(a){var b=this.editorUi,e=b.editor.graph;b=b.getSelectionState();a.style.paddingTop="8px";a.style.paddingBottom="6px";var f=this.addActions(a,["group","ungroup"])+this.addActions(a,["removeFromGroup"]);b.cell||b.row||(f+=this.addActions(a,["copySize","pasteSize","swap"]));var h=document.createElement("select");h.style.width="210px";h.style.textAlign="center";h.style.marginBottom="2px";for(var d=[{label:mxResources.get("reset"),action:"reset"},{label:mxResources.get("waypoints"),
-action:"clearWaypoints"},{label:mxResources.get("connectionPoints"),action:"clearAnchors"}],g=0;g<d.length;g++){var m=this.editorUi.actions.get(d[g].action);if(null==m||m.enabled){var p=document.createElement("option");p.setAttribute("value",d[g].action);p.setAttribute("title",d[g].label+(null!=m&&null!=m.shortcut?" ("+m.shortcut+")":""));mxUtils.write(p,d[g].label);h.appendChild(p)}}1<h.children.length&&(h.value="reset",a.appendChild(h),mxUtils.br(a),f++,mxEvent.addListener(h,"change",mxUtils.bind(this,
+action:"clearWaypoints"},{label:mxResources.get("connectionPoints"),action:"clearAnchors"}],g=0;g<d.length;g++){var m=this.editorUi.actions.get(d[g].action);if(null==m||m.enabled){var q=document.createElement("option");q.setAttribute("value",d[g].action);q.setAttribute("title",d[g].label+(null!=m&&null!=m.shortcut?" ("+m.shortcut+")":""));mxUtils.write(q,d[g].label);h.appendChild(q)}}1<h.children.length&&(h.value="reset",a.appendChild(h),mxUtils.br(a),f++,mxEvent.addListener(h,"change",mxUtils.bind(this,
function(k){k=this.editorUi.actions.get(h.value);h.value="reset";null!=k&&k.funct()})));f+=this.addActions(a,["lockUnlock"]);1==b.vertices.length&&0==b.edges.length&&0<e.getOpposites(e.getEdges(b.vertices[0]),b.vertices[0]).length&&(f+=this.addActions(a,["explore"]));0==f&&(a.style.display="none");return a};
ArrangePanel.prototype.addAlign=function(a){var b=this.editorUi.getSelectionState(),e=this.editorUi.editor.graph;a.style.paddingTop="6px";a.style.paddingBottom="8px";a.appendChild(this.createTitle(mxResources.get("align")));var f=document.createElement("div");f.style.position="relative";f.style.whiteSpace="nowrap";f.style.paddingLeft="0px";f.style.paddingBottom="2px";f.style.borderWidth="0px";f.style.width="220px";f.className="geToolbarContainer";if(1<b.vertices.length){b=this.editorUi.toolbar.addButton(Editor.alignHorizontalLeftImage,
mxResources.get("left"),function(){e.alignCells(mxConstants.ALIGN_LEFT)},f);var h=this.editorUi.toolbar.addButton(Editor.alignHorizontalCenterImage,mxResources.get("center"),function(){e.alignCells(mxConstants.ALIGN_CENTER)},f),d=this.editorUi.toolbar.addButton(Editor.alignHorizontalRightImage,mxResources.get("right"),function(){e.alignCells(mxConstants.ALIGN_RIGHT)},f),g=this.editorUi.toolbar.addButton(Editor.alignVerticalTopImage,mxResources.get("top"),function(){e.alignCells(mxConstants.ALIGN_TOP)},
-f),m=this.editorUi.toolbar.addButton(Editor.alignVerticalMiddleImage,mxResources.get("middle"),function(){e.alignCells(mxConstants.ALIGN_MIDDLE)},f),p=this.editorUi.toolbar.addButton(Editor.alignVerticalBottomImage,mxResources.get("bottom"),function(){e.alignCells(mxConstants.ALIGN_BOTTOM)},f);this.styleButtons([b,h,d,g,m,p]);d.style.marginRight="10px"}a.appendChild(f);this.addActions(a,["snapToGrid"]);return a};
+f),m=this.editorUi.toolbar.addButton(Editor.alignVerticalMiddleImage,mxResources.get("middle"),function(){e.alignCells(mxConstants.ALIGN_MIDDLE)},f),q=this.editorUi.toolbar.addButton(Editor.alignVerticalBottomImage,mxResources.get("bottom"),function(){e.alignCells(mxConstants.ALIGN_BOTTOM)},f);this.styleButtons([b,h,d,g,m,q]);d.style.marginRight="10px"}a.appendChild(f);this.addActions(a,["snapToGrid"]);return a};
ArrangePanel.prototype.addFlip=function(a){var b=this.editorUi.editor.graph;a.style.paddingTop="6px";a.style.paddingBottom="10px";var e=this.editorUi.getSelectionState(),f=document.createElement("div");f.style.marginTop="2px";f.style.marginBottom="8px";f.style.fontWeight="bold";mxUtils.write(f,mxResources.get("flip"));a.appendChild(f);f=mxUtils.button(mxResources.get("horizontal"),function(h){b.flipCells(e.cells,!0)});f.setAttribute("title",mxResources.get("horizontal"));f.style.width="104px";f.style.marginRight=
"2px";a.appendChild(f);f=mxUtils.button(mxResources.get("vertical"),function(h){b.flipCells(e.cells,!1)});f.setAttribute("title",mxResources.get("vertical"));f.style.width="104px";a.appendChild(f);return a};
ArrangePanel.prototype.addDistribute=function(a){var b=this.editorUi.editor.graph;a.style.paddingTop="6px";a.style.paddingBottom="8px";a.appendChild(this.createTitle(mxResources.get("distribute")));var e=mxUtils.button(mxResources.get("horizontal"),function(d){b.distributeCells(!0,null,f.checked)});e.setAttribute("title",mxResources.get("horizontal"));e.style.width="104px";e.style.marginRight="2px";a.appendChild(e);e=mxUtils.button(mxResources.get("vertical"),function(d){b.distributeCells(!1,null,
f.checked)});e.setAttribute("title",mxResources.get("vertical"));e.style.width="104px";a.appendChild(e);mxUtils.br(a);e=document.createElement("div");e.style.margin="6px 0 0 0";e.style.display="flex";e.style.justifyContent="center";e.style.alignItems="center";var f=document.createElement("input");f.setAttribute("type","checkbox");f.setAttribute("id","spacingCheckbox");f.style.margin="0 6px 0 0";e.appendChild(f);var h=document.createElement("label");h.style.verticalAlign="top";h.setAttribute("for",
"spacingCheckbox");h.style.userSelect="none";mxUtils.write(h,mxResources.get("spacing"));e.appendChild(h);a.appendChild(e);return a};
ArrangePanel.prototype.addAngle=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();a.style.paddingBottom="12px";var h=document.createElement("div");h.style.position="absolute";h.style.width="70px";h.style.marginTop="0px";h.style.fontWeight="bold";var d=null,g=null,m=null;!f.rotatable||f.table||f.row||f.cell?a.style.paddingTop="8px":(mxUtils.write(h,mxResources.get("angle")),a.appendChild(h),d=this.addUnitInput(a,"°",16,52,function(){g.apply(this,arguments)}),mxUtils.br(a),a.style.paddingTop=
-"10px");f.containsLabel||(h=mxResources.get("reverse"),0<f.vertices.length&&0<f.edges.length?h=mxResources.get("turn")+" / "+h:0<f.vertices.length&&(h=mxResources.get("turn")),m=mxUtils.button(h,function(k){b.actions.get("turn").funct(k)}),m.setAttribute("title",h+" ("+this.editorUi.actions.get("turn").shortcut+")"),m.style.width="210px",a.appendChild(m),null!=d&&(m.style.marginTop="8px"));if(null!=d){var p=mxUtils.bind(this,function(k,u,w){if(w||document.activeElement!=d)f=b.getSelectionState(),
-k=parseFloat(mxUtils.getValue(f.style,mxConstants.STYLE_ROTATION,0)),d.value=isNaN(k)?"":k+"°"});g=this.installInputHandler(d,mxConstants.STYLE_ROTATION,0,0,360,"°",null,!0);this.addKeyHandler(d,p);e.getModel().addListener(mxEvent.CHANGE,p);this.listeners.push({destroy:function(){e.getModel().removeListener(p)}});p()}return a};
+"10px");f.containsLabel||(h=mxResources.get("reverse"),0<f.vertices.length&&0<f.edges.length?h=mxResources.get("turn")+" / "+h:0<f.vertices.length&&(h=mxResources.get("turn")),m=mxUtils.button(h,function(k){b.actions.get("turn").funct(k)}),m.setAttribute("title",h+" ("+this.editorUi.actions.get("turn").shortcut+")"),m.style.width="210px",a.appendChild(m),null!=d&&(m.style.marginTop="8px"));if(null!=d){var q=mxUtils.bind(this,function(k,u,w){if(w||document.activeElement!=d)f=b.getSelectionState(),
+k=parseFloat(mxUtils.getValue(f.style,mxConstants.STYLE_ROTATION,0)),d.value=isNaN(k)?"":k+"°"});g=this.installInputHandler(d,mxConstants.STYLE_ROTATION,0,0,360,"°",null,!0);this.addKeyHandler(d,q);e.getModel().addListener(mxEvent.CHANGE,q);this.listeners.push({destroy:function(){e.getModel().removeListener(q)}});q()}return a};
BaseFormatPanel.prototype.getUnit=function(a){var b="";switch(this.editorUi.editor.graph.view.unit){case mxConstants.POINTS:b="pt";break;case mxConstants.INCHES:b='"';break;case mxConstants.MILLIMETERS:b="mm";break;case mxConstants.METERS:b="m"}return(a?a:"")+b};BaseFormatPanel.prototype.inUnit=function(a){return this.editorUi.editor.graph.view.formatUnitText(a)};
BaseFormatPanel.prototype.fromUnit=function(a){switch(this.editorUi.editor.graph.view.unit){case mxConstants.POINTS:return a;case mxConstants.INCHES:return a*mxConstants.PIXELS_PER_INCH;case mxConstants.MILLIMETERS:return a*mxConstants.PIXELS_PER_MM;case mxConstants.METERS:return a*mxConstants.PIXELS_PER_MM*1E3}};BaseFormatPanel.prototype.isFloatUnit=function(){return this.editorUi.editor.graph.view.unit!=mxConstants.POINTS};
BaseFormatPanel.prototype.getUnitStep=function(){switch(this.editorUi.editor.graph.view.unit){case mxConstants.POINTS:return 1;case mxConstants.INCHES:return.1;case mxConstants.MILLIMETERS:return.5;case mxConstants.METERS:return.001}};
-ArrangePanel.prototype.addGeometry=function(a){var b=this,e=this.editorUi,f=e.editor.graph,h=f.getModel(),d=e.getSelectionState(),g=this.createPanel();g.style.paddingBottom="8px";var m=document.createElement("div");m.style.position="absolute";m.style.width="50px";m.style.marginTop="0px";m.style.fontWeight="bold";mxUtils.write(m,mxResources.get("size"));g.appendChild(m);var p=this.addUnitInput(g,this.getUnit(),87,52,function(){C.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),
+ArrangePanel.prototype.addGeometry=function(a){var b=this,e=this.editorUi,f=e.editor.graph,h=f.getModel(),d=e.getSelectionState(),g=this.createPanel();g.style.paddingBottom="8px";var m=document.createElement("div");m.style.position="absolute";m.style.width="50px";m.style.marginTop="0px";m.style.fontWeight="bold";mxUtils.write(m,mxResources.get("size"));g.appendChild(m);var q=this.addUnitInput(g,this.getUnit(),87,52,function(){C.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),
k=this.addUnitInput(g,this.getUnit(),16,52,function(){E.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),u=document.createElement("div");u.className="geAdaptiveAsset";u.style.backgroundImage="url("+Editor.autosizeImage+")";u.style.backgroundPosition="center center";u.style.backgroundRepeat="no-repeat";u.style.backgroundSize="18px 18px";u.style.width="21px";u.style.height="21px";u.setAttribute("title",mxResources.get("autosize")+" ("+this.editorUi.actions.get("autosize").shortcut+
-")");u.style.position="relative";u.style.cursor="pointer";u.style.marginTop="-3px";u.style.border="0px";u.style.left="42px";mxUtils.setOpacity(u,50);mxEvent.addListener(u,"mouseenter",function(){mxUtils.setOpacity(u,100)});mxEvent.addListener(u,"mouseleave",function(){mxUtils.setOpacity(u,50)});mxEvent.addListener(u,"click",function(){e.actions.get("autosize").funct()});g.appendChild(u);d.row?(p.style.visibility="hidden",p.nextSibling.style.visibility="hidden"):this.addLabel(g,mxResources.get("width"),
-87,64);this.addLabel(g,mxResources.get("height"),16,64);mxUtils.br(g);m=document.createElement("div");m.style.paddingTop="8px";m.style.paddingRight="20px";m.style.whiteSpace="nowrap";m.style.textAlign="right";var w=this.createCellOption(mxResources.get("constrainProportions"),mxConstants.STYLE_ASPECT,null,"fixed","null");w.style.width="210px";m.appendChild(w);d.cell||d.row?u.style.visibility="hidden":g.appendChild(m);var z=w.getElementsByTagName("input")[0];this.addKeyHandler(p,Y);this.addKeyHandler(k,
-Y);var C=this.addGeometryHandler(p,function(K,V,Z){V=Math.max(1,b.fromUnit(V));if(f.isTableCell(Z))return f.setTableColumnWidth(Z,V-K.width,!0),!0;0<K.width&&(z.checked&&(K.height=Math.round(K.height*V*100/K.width)/100),K.width=V)});var E=this.addGeometryHandler(k,function(K,V,Z){V=Math.max(1,b.fromUnit(V));f.isTableCell(Z)&&(Z=h.getParent(Z));if(f.isTableRow(Z))return f.setTableRowHeight(Z,V-K.height),!0;0<K.height&&(z.checked&&(K.width=Math.round(K.width*V*100/K.height)/100),K.height=V)});(d.resizable||
+")");u.style.position="relative";u.style.cursor="pointer";u.style.marginTop="-3px";u.style.border="0px";u.style.left="42px";mxUtils.setOpacity(u,50);mxEvent.addListener(u,"mouseenter",function(){mxUtils.setOpacity(u,100)});mxEvent.addListener(u,"mouseleave",function(){mxUtils.setOpacity(u,50)});mxEvent.addListener(u,"click",function(){e.actions.get("autosize").funct()});g.appendChild(u);d.row?(q.style.visibility="hidden",q.nextSibling.style.visibility="hidden"):this.addLabel(g,mxResources.get("width"),
+87,64);this.addLabel(g,mxResources.get("height"),16,64);mxUtils.br(g);m=document.createElement("div");m.style.paddingTop="8px";m.style.paddingRight="20px";m.style.whiteSpace="nowrap";m.style.textAlign="right";var w=this.createCellOption(mxResources.get("constrainProportions"),mxConstants.STYLE_ASPECT,null,"fixed","null");w.style.width="210px";m.appendChild(w);d.cell||d.row?u.style.visibility="hidden":g.appendChild(m);var z=w.getElementsByTagName("input")[0];this.addKeyHandler(q,Y);this.addKeyHandler(k,
+Y);var C=this.addGeometryHandler(q,function(K,V,Z){V=Math.max(1,b.fromUnit(V));if(f.isTableCell(Z))return f.setTableColumnWidth(Z,V-K.width,!0),!0;0<K.width&&(z.checked&&(K.height=Math.round(K.height*V*100/K.width)/100),K.width=V)});var E=this.addGeometryHandler(k,function(K,V,Z){V=Math.max(1,b.fromUnit(V));f.isTableCell(Z)&&(Z=h.getParent(Z));if(f.isTableRow(Z))return f.setTableRowHeight(Z,V-K.height),!0;0<K.height&&(z.checked&&(K.width=Math.round(K.width*V*100/K.height)/100),K.height=V)});(d.resizable||
d.row||d.cell)&&a.appendChild(g);var D=this.createPanel();D.style.paddingBottom="30px";m=document.createElement("div");m.style.position="absolute";m.style.width="70px";m.style.marginTop="0px";m.style.fontWeight="bold";mxUtils.write(m,mxResources.get("position"));D.appendChild(m);var G=this.addUnitInput(D,this.getUnit(),87,52,function(){P.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),J=this.addUnitInput(D,this.getUnit(),16,52,function(){T.apply(this,arguments)},this.getUnitStep(),
null,null,this.isFloatUnit());mxUtils.br(D);w=!0;var L=null,Q=null;if(d.movable){if(0==d.edges.length&&1==d.vertices.length){var N=f.getCellGeometry(d.vertices[0]);if(null!=N&&N.relative){mxUtils.br(D);m=document.createElement("div");m.style.position="absolute";m.style.width="70px";m.style.marginTop="0px";mxUtils.write(m,mxResources.get("relative"));D.appendChild(m);L=this.addGenericInput(D," %",87,52,function(){return Math.round(1E3*N.x)/10},function(K){K=parseFloat(K);if(!isNaN(K)){h.beginUpdate();
try{N=N.clone(),N.x=parseFloat(K)/100,h.setGeometry(d.vertices[0],N)}finally{h.endUpdate()}}});if(h.isEdge(h.getParent(d.vertices[0]))){w=!1;var U=null;Q=this.addUnitInput(D,this.getUnit(),16,52,function(){U.apply(this,arguments)});U=this.addGeometryHandler(Q,function(K,V){K.y=b.fromUnit(V)})}else Q=this.addGenericInput(D," %",16,52,function(){return Math.round(1E3*N.y)/10},function(K){K=parseFloat(K);if(!isNaN(K)){h.beginUpdate();try{N=N.clone(),N.y=parseFloat(K)/100,h.setGeometry(d.vertices[0],
-N)}finally{h.endUpdate()}}});mxUtils.br(D)}}a.appendChild(D)}this.addLabel(D,mxResources.get(w?"left":"line"),87,64).style.marginTop="8px";this.addLabel(D,mxResources.get(w?"top":"orthogonal"),16,64).style.marginTop="8px";var Y=mxUtils.bind(this,function(K,V,Z){d=e.getSelectionState();if(d.containsLabel||d.vertices.length!=f.getSelectionCount()||null==d.width||null==d.height)g.style.display="none";else{g.style.display="";if(Z||document.activeElement!=p)p.value=this.inUnit(d.width)+" "+this.getUnit();
+N)}finally{h.endUpdate()}}});mxUtils.br(D)}}a.appendChild(D)}this.addLabel(D,mxResources.get(w?"left":"line"),87,64).style.marginTop="8px";this.addLabel(D,mxResources.get(w?"top":"orthogonal"),16,64).style.marginTop="8px";var Y=mxUtils.bind(this,function(K,V,Z){d=e.getSelectionState();if(d.containsLabel||d.vertices.length!=f.getSelectionCount()||null==d.width||null==d.height)g.style.display="none";else{g.style.display="";if(Z||document.activeElement!=q)q.value=this.inUnit(d.width)+" "+this.getUnit();
if(Z||document.activeElement!=k)k.value=this.inUnit(d.height)+" "+this.getUnit()}if(d.vertices.length==f.getSelectionCount()&&0<d.vertices.length&&null!=d.x&&null!=d.y){K=f.getCellGeometry(d.vertices[0]);D.style.display="";if(Z||document.activeElement!=G)G.value=this.inUnit(d.x)+" "+this.getUnit();if(Z||document.activeElement!=J)J.value=this.inUnit(d.y)+" "+this.getUnit();null!=K&&K.relative&&(null==L||!Z&&document.activeElement==L||(L.value=Math.round(1E3*K.x)/10+" %"),null==Q||!Z&&document.activeElement==
Q||(h.isEdge(h.getParent(d.vertices[0]))?Q.value=this.inUnit(K.y)+" "+this.getUnit():Q.value=Math.round(1E3*K.y)/10+" %"))}else D.style.display="none"});this.listeners.push({destroy:function(){h.removeListener(Y)}});h.addListener(mxEvent.CHANGE,Y);this.addKeyHandler(G,Y);this.addKeyHandler(J,Y);Y();var P=this.addGeometryHandler(G,function(K,V){V=b.fromUnit(V);K.relative?(K.offset=null!=K.offset?K.offset:new mxPoint,K.offset.x=V):K.x=V});var T=this.addGeometryHandler(J,function(K,V){V=b.fromUnit(V);
K.relative?(K.offset=null!=K.offset?K.offset:new mxPoint,K.offset.y=V):K.y=V});d.movable&&(0==d.edges.length&&1==d.vertices.length&&h.isEdge(h.getParent(d.vertices[0]))&&(N=f.getCellGeometry(d.vertices[0]),null!=N&&N.relative&&(m=mxUtils.button(mxResources.get("center"),mxUtils.bind(this,function(K){h.beginUpdate();try{N=N.clone(),N.x=0,N.y=0,N.offset=new mxPoint,h.setGeometry(d.vertices[0],N)}finally{h.endUpdate()}})),m.setAttribute("title",mxResources.get("center")),m.style.width="134px",m.style.left=
"89px",m.style.position="absolute",mxUtils.br(D),mxUtils.br(D),D.appendChild(m))),a.appendChild(D))};
-ArrangePanel.prototype.addGeometryHandler=function(a,b){function e(m){if(""!=a.value){var p=parseFloat(a.value);if(isNaN(p))a.value=d+" "+g.getUnit();else if(p!=d){h.getModel().beginUpdate();try{for(var k=f.getSelectionState().cells,u=0;u<k.length;u++)if(h.getModel().isVertex(k[u])){var w=h.getCellGeometry(k[u]);if(null!=w&&(w=w.clone(),!b(w,p,k[u]))){var z=h.view.getState(k[u]);null!=z&&h.isRecursiveVertexResize(z)&&h.resizeChildCells(k[u],w);h.getModel().setGeometry(k[u],w);h.constrainChildCells(k[u])}}}finally{h.getModel().endUpdate()}d=
-p;a.value=p+" "+g.getUnit()}}mxEvent.consume(m)}var f=this.editorUi,h=f.editor.graph,d=null,g=this;mxEvent.addListener(a,"blur",e);mxEvent.addListener(a,"change",e);mxEvent.addListener(a,"focus",function(){d=a.value});return e};
-ArrangePanel.prototype.addEdgeGeometryHandler=function(a,b){function e(g){if(""!=a.value){var m=parseFloat(a.value);if(isNaN(m))a.value=d+" pt";else if(m!=d){h.getModel().beginUpdate();try{for(var p=f.getSelectionState().cells,k=0;k<p.length;k++)if(h.getModel().isEdge(p[k])){var u=h.getCellGeometry(p[k]);null!=u&&(u=u.clone(),b(u,m),h.getModel().setGeometry(p[k],u))}}finally{h.getModel().endUpdate()}d=m;a.value=m+" pt"}}mxEvent.consume(g)}var f=this.editorUi,h=f.editor.graph,d=null;mxEvent.addListener(a,
+ArrangePanel.prototype.addGeometryHandler=function(a,b){function e(m){if(""!=a.value){var q=parseFloat(a.value);if(isNaN(q))a.value=d+" "+g.getUnit();else if(q!=d){h.getModel().beginUpdate();try{for(var k=f.getSelectionState().cells,u=0;u<k.length;u++)if(h.getModel().isVertex(k[u])){var w=h.getCellGeometry(k[u]);if(null!=w&&(w=w.clone(),!b(w,q,k[u]))){var z=h.view.getState(k[u]);null!=z&&h.isRecursiveVertexResize(z)&&h.resizeChildCells(k[u],w);h.getModel().setGeometry(k[u],w);h.constrainChildCells(k[u])}}}finally{h.getModel().endUpdate()}d=
+q;a.value=q+" "+g.getUnit()}}mxEvent.consume(m)}var f=this.editorUi,h=f.editor.graph,d=null,g=this;mxEvent.addListener(a,"blur",e);mxEvent.addListener(a,"change",e);mxEvent.addListener(a,"focus",function(){d=a.value});return e};
+ArrangePanel.prototype.addEdgeGeometryHandler=function(a,b){function e(g){if(""!=a.value){var m=parseFloat(a.value);if(isNaN(m))a.value=d+" pt";else if(m!=d){h.getModel().beginUpdate();try{for(var q=f.getSelectionState().cells,k=0;k<q.length;k++)if(h.getModel().isEdge(q[k])){var u=h.getCellGeometry(q[k]);null!=u&&(u=u.clone(),b(u,m),h.getModel().setGeometry(q[k],u))}}finally{h.getModel().endUpdate()}d=m;a.value=m+" pt"}}mxEvent.consume(g)}var f=this.editorUi,h=f.editor.graph,d=null;mxEvent.addListener(a,
"blur",e);mxEvent.addListener(a,"change",e);mxEvent.addListener(a,"focus",function(){d=a.value});return e};
-ArrangePanel.prototype.addEdgeGeometry=function(a){var b=this,e=this.editorUi,f=e.editor.graph,h=e.getSelectionState(),d=this.createPanel(),g=document.createElement("div");g.style.position="absolute";g.style.width="70px";g.style.marginTop="0px";g.style.fontWeight="bold";mxUtils.write(g,mxResources.get("width"));d.appendChild(g);var m=this.addUnitInput(d,"pt",12,44,function(){p.apply(this,arguments)});mxUtils.br(d);this.addKeyHandler(m,D);var p=mxUtils.bind(this,function(N){var U=parseInt(m.value);
-U=Math.min(999,Math.max(1,isNaN(U)?1:U));if(U!=mxUtils.getValue(h.style,"width",mxCellRenderer.defaultShapes.flexArrow.prototype.defaultWidth)){var Y=e.getSelectionState().cells;f.setCellStyles("width",U,Y);e.fireEvent(new mxEventObject("styleChanged","keys",["width"],"values",[U],"cells",Y))}m.value=U+" pt";mxEvent.consume(N)});mxEvent.addListener(m,"blur",p);mxEvent.addListener(m,"change",p);a.appendChild(d);var k=this.createPanel();k.style.paddingBottom="30px";g=document.createElement("div");g.style.position=
+ArrangePanel.prototype.addEdgeGeometry=function(a){var b=this,e=this.editorUi,f=e.editor.graph,h=e.getSelectionState(),d=this.createPanel(),g=document.createElement("div");g.style.position="absolute";g.style.width="70px";g.style.marginTop="0px";g.style.fontWeight="bold";mxUtils.write(g,mxResources.get("width"));d.appendChild(g);var m=this.addUnitInput(d,"pt",12,44,function(){q.apply(this,arguments)});mxUtils.br(d);this.addKeyHandler(m,D);var q=mxUtils.bind(this,function(N){var U=parseInt(m.value);
+U=Math.min(999,Math.max(1,isNaN(U)?1:U));if(U!=mxUtils.getValue(h.style,"width",mxCellRenderer.defaultShapes.flexArrow.prototype.defaultWidth)){var Y=e.getSelectionState().cells;f.setCellStyles("width",U,Y);e.fireEvent(new mxEventObject("styleChanged","keys",["width"],"values",[U],"cells",Y))}m.value=U+" pt";mxEvent.consume(N)});mxEvent.addListener(m,"blur",q);mxEvent.addListener(m,"change",q);a.appendChild(d);var k=this.createPanel();k.style.paddingBottom="30px";g=document.createElement("div");g.style.position=
"absolute";g.style.width="70px";g.style.marginTop="0px";mxUtils.write(g,mxResources.get("linestart"));k.appendChild(g);var u=this.addUnitInput(k,this.getUnit(),87,52,function(){G.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),w=this.addUnitInput(k,this.getUnit(),16,52,function(){J.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(k);this.addLabel(k,mxResources.get("left"),87,64);this.addLabel(k,mxResources.get("top"),16,64);a.appendChild(k);
this.addKeyHandler(u,D);this.addKeyHandler(w,D);var z=this.createPanel();z.style.paddingBottom="30px";g=document.createElement("div");g.style.position="absolute";g.style.width="70px";g.style.marginTop="0px";mxUtils.write(g,mxResources.get("lineend"));z.appendChild(g);var C=this.addUnitInput(z,this.getUnit(),87,52,function(){L.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),E=this.addUnitInput(z,this.getUnit(),16,52,function(){Q.apply(this,arguments)},this.getUnitStep(),null,
null,this.isFloatUnit());mxUtils.br(z);this.addLabel(z,mxResources.get("left"),87,64);this.addLabel(z,mxResources.get("top"),16,64);a.appendChild(z);this.addKeyHandler(C,D);this.addKeyHandler(E,D);var D=mxUtils.bind(this,function(N,U,Y){h=e.getSelectionState();N=h.cells[0];if("link"==h.style.shape||"flexArrow"==h.style.shape){if(d.style.display="",Y||document.activeElement!=m)Y=mxUtils.getValue(h.style,"width",mxCellRenderer.defaultShapes.flexArrow.prototype.defaultWidth),m.value=Y+" pt"}else d.style.display=
"none";1==h.cells.length&&f.model.isEdge(N)?(Y=f.model.getGeometry(N),null!=Y&&null!=Y.sourcePoint&&null==f.model.getTerminal(N,!0)?(u.value=this.inUnit(Y.sourcePoint.x)+" "+this.getUnit(),w.value=this.inUnit(Y.sourcePoint.y)+" "+this.getUnit()):k.style.display="none",null!=Y&&null!=Y.targetPoint&&null==f.model.getTerminal(N,!1)?(C.value=this.inUnit(Y.targetPoint.x)+" "+this.getUnit(),E.value=this.inUnit(Y.targetPoint.y)+" "+this.getUnit()):z.style.display="none"):(k.style.display="none",z.style.display=
"none")});var G=this.addEdgeGeometryHandler(u,function(N,U){N.sourcePoint.x=b.fromUnit(U)});var J=this.addEdgeGeometryHandler(w,function(N,U){N.sourcePoint.y=b.fromUnit(U)});var L=this.addEdgeGeometryHandler(C,function(N,U){N.targetPoint.x=b.fromUnit(U)});var Q=this.addEdgeGeometryHandler(E,function(N,U){N.targetPoint.y=b.fromUnit(U)});f.getModel().addListener(mxEvent.CHANGE,D);this.listeners.push({destroy:function(){f.getModel().removeListener(D)}});D()};
TextFormatPanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(TextFormatPanel,BaseFormatPanel);TextFormatPanel.prototype.init=function(){this.container.style.borderBottom="none";this.addFont(this.container);this.container.appendChild(this.addFontOps(this.createPanel()))};TextFormatPanel.prototype.addFontOps=function(a){a.style.paddingTop="8px";a.style.paddingBottom="6px";0==this.addActions(a,["removeFormat"])&&(a.style.display="none");return a};
-TextFormatPanel.prototype.addFont=function(a){function b(q){q=null!=q?q.fontSize:null;return null!=q&&"px"==q.substring(q.length-2)?parseFloat(q):mxConstants.DEFAULT_FONTSIZE}function e(q,A){if(null!=q&&""!=q.textContent){q.style.lineHeight="";var B=mxUtils.getCurrentStyle(q);parseFloat(B.fontSize)*A/100!=parseFloat(B.lineHeight)?q.style.lineHeight=A+"%":""==q.getAttribute("style")&&q.removeAttribute("style")}}function f(q,A){A?q.classList.add("geActiveItem"):q.classList.remove("geActiveItem")}var h=
-this.editorUi,d=h.editor.graph,g=h.getSelectionState(),m=this.createTitle(mxResources.get("font"));m.style.paddingLeft="14px";m.style.paddingTop="10px";m.style.paddingBottom="6px";a.appendChild(m);m=this.createPanel();m.style.paddingTop="2px";m.style.paddingBottom="2px";m.style.position="relative";m.style.marginLeft="-2px";m.style.borderWidth="0px";m.className="geToolbarContainer";if(d.cellEditor.isContentEditing()){var p=m.cloneNode(),k=this.editorUi.toolbar.addMenu(mxResources.get("style"),mxResources.get("style"),
-!0,"formatBlock",p,null,!0);this.addArrow(k);k.style.width="211px";k.style.alignItems="center";k.style.justifyContent="center";k.style.whiteSpace="nowrap";k.style.overflow="hidden";k.style.margin="0px";k.style.position="relative";k=k.getElementsByTagName("div")[0];k.style.position="absolute";k.style.right="2px";a.appendChild(p)}a.appendChild(m);p=this.createPanel();p.style.marginTop="8px";p.style.borderWidth="1px";p.style.borderStyle="solid";p.style.paddingTop="6px";p.style.paddingBottom="2px";var u=
+TextFormatPanel.prototype.addFont=function(a){function b(p){p=null!=p?p.fontSize:null;return null!=p&&"px"==p.substring(p.length-2)?parseFloat(p):mxConstants.DEFAULT_FONTSIZE}function e(p,A){if(null!=p&&""!=p.textContent){p.style.lineHeight="";var B=mxUtils.getCurrentStyle(p);parseFloat(B.fontSize)*A/100!=parseFloat(B.lineHeight)?p.style.lineHeight=A+"%":""==p.getAttribute("style")&&p.removeAttribute("style")}}function f(p,A){A?p.classList.add("geActiveItem"):p.classList.remove("geActiveItem")}var h=
+this.editorUi,d=h.editor.graph,g=h.getSelectionState(),m=this.createTitle(mxResources.get("font"));m.style.paddingLeft="14px";m.style.paddingTop="10px";m.style.paddingBottom="6px";a.appendChild(m);m=this.createPanel();m.style.paddingTop="2px";m.style.paddingBottom="2px";m.style.position="relative";m.style.marginLeft="-2px";m.style.borderWidth="0px";m.className="geToolbarContainer";if(d.cellEditor.isContentEditing()){var q=m.cloneNode(),k=this.editorUi.toolbar.addMenu(mxResources.get("style"),mxResources.get("style"),
+!0,"formatBlock",q,null,!0);this.addArrow(k);k.style.width="211px";k.style.alignItems="center";k.style.justifyContent="center";k.style.whiteSpace="nowrap";k.style.overflow="hidden";k.style.margin="0px";k.style.position="relative";k=k.getElementsByTagName("div")[0];k.style.position="absolute";k.style.right="2px";a.appendChild(q)}a.appendChild(m);q=this.createPanel();q.style.marginTop="8px";q.style.borderWidth="1px";q.style.borderStyle="solid";q.style.paddingTop="6px";q.style.paddingBottom="2px";var u=
this.editorUi.toolbar.addMenu("Helvetica",mxResources.get("fontFamily"),!0,"fontFamily",m,null,!0);this.addArrow(u);u.style.width="211px";u.style.alignItems="center";u.style.justifyContent="center";u.style.whiteSpace="nowrap";u.style.overflow="hidden";u.style.margin="0px";u.style.position="relative";k=u.getElementsByTagName("div")[0];k.style.position="absolute";k.style.right="2px";k=m.cloneNode(!1);k.style.marginLeft="-3px";k.style.height="31px";var w=this.editorUi.toolbar.addItems(["bold","italic",
"underline"],k,!0,[Editor.boldImage,Editor.italicImage,Editor.underlineImage]);w[0].setAttribute("title",mxResources.get("bold")+" ("+this.editorUi.actions.get("bold").shortcut+")");w[1].setAttribute("title",mxResources.get("italic")+" ("+this.editorUi.actions.get("italic").shortcut+")");w[2].setAttribute("title",mxResources.get("underline")+" ("+this.editorUi.actions.get("underline").shortcut+")");var z=this.editorUi.toolbar.addItems(["vertical"],k,!0,[Editor.verticalTextImage])[0];a.appendChild(k);
-this.styleButtons(w);this.styleButtons([z]);var C=m.cloneNode(!1);C.style.height="31px";C.style.paddingTop="2px";C.style.marginLeft="-3px";C.style.paddingBottom="0px";var E=function(q){return function(){return q()}},D=this.editorUi.toolbar.addButton(Editor.alignLeftImage,mxResources.get("left"),d.cellEditor.isContentEditing()?function(q){d.cellEditor.alignText(mxConstants.ALIGN_LEFT,q);h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_LEFT],
-"cells",g.cells))}:E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_LEFT])),C),G=this.editorUi.toolbar.addButton(Editor.alignCenterImage,mxResources.get("center"),d.cellEditor.isContentEditing()?function(q){d.cellEditor.alignText(mxConstants.ALIGN_CENTER,q);h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_CENTER],"cells",g.cells))}:E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],
-[mxConstants.ALIGN_CENTER])),C),J=this.editorUi.toolbar.addButton(Editor.alignRightImage,mxResources.get("right"),d.cellEditor.isContentEditing()?function(q){d.cellEditor.alignText(mxConstants.ALIGN_RIGHT,q);h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_RIGHT],"cells",g.cells))}:E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_RIGHT])),C);this.styleButtons([D,G,J]);if(d.cellEditor.isContentEditing()){var L=
+this.styleButtons(w);this.styleButtons([z]);var C=m.cloneNode(!1);C.style.height="31px";C.style.paddingTop="2px";C.style.marginLeft="-3px";C.style.paddingBottom="0px";var E=function(p){return function(){return p()}},D=this.editorUi.toolbar.addButton(Editor.alignLeftImage,mxResources.get("left"),d.cellEditor.isContentEditing()?function(p){d.cellEditor.alignText(mxConstants.ALIGN_LEFT,p);h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_LEFT],
+"cells",g.cells))}:E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_LEFT])),C),G=this.editorUi.toolbar.addButton(Editor.alignCenterImage,mxResources.get("center"),d.cellEditor.isContentEditing()?function(p){d.cellEditor.alignText(mxConstants.ALIGN_CENTER,p);h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_CENTER],"cells",g.cells))}:E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],
+[mxConstants.ALIGN_CENTER])),C),J=this.editorUi.toolbar.addButton(Editor.alignRightImage,mxResources.get("right"),d.cellEditor.isContentEditing()?function(p){d.cellEditor.alignText(mxConstants.ALIGN_RIGHT,p);h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_RIGHT],"cells",g.cells))}:E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_RIGHT])),C);this.styleButtons([D,G,J]);if(d.cellEditor.isContentEditing()){var L=
this.editorUi.toolbar.addButton(Editor.strikethroughImage,mxResources.get("strikethrough"),function(){document.execCommand("strikeThrough",!1,null)},k);this.styleButtons([L])}var Q=this.editorUi.toolbar.addButton(Editor.alignTopImage,mxResources.get("top"),E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_TOP])),C),N=this.editorUi.toolbar.addButton(Editor.alignMiddleImage,mxResources.get("middle"),E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],
[mxConstants.ALIGN_MIDDLE])),C),U=this.editorUi.toolbar.addButton(Editor.alignBottomImage,mxResources.get("bottom"),E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_BOTTOM])),C);this.styleButtons([Q,N,U]);a.appendChild(C);var Y,P,T,K,V;if(d.cellEditor.isContentEditing()){Q.style.display="none";N.style.display="none";U.style.display="none";z.style.display="none";var Z=this.editorUi.toolbar.addButton(Editor.alignJustifyImage,mxResources.get("block"),
function(){1==Z.style.opacity&&document.execCommand("justifyfull",!1,null)},C);Z.style.marginRight="9px";this.styleButtons([Z,Y=this.editorUi.toolbar.addButton(Editor.subscriptImage,mxResources.get("subscript")+" ("+Editor.ctrlKey+"+,)",function(){document.execCommand("subscript",!1,null)},C),P=this.editorUi.toolbar.addButton(Editor.superscriptImage,mxResources.get("superscript")+" ("+Editor.ctrlKey+"+.)",function(){document.execCommand("superscript",!1,null)},C)]);Y.style.marginLeft="10px";E=C.cloneNode(!1);
@@ -3131,70 +3131,70 @@ mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM],top:[mxConstants.ALIGN_CENTER,
mxConstants.ALIGN_MIDDLE,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE],bottomLeft:[mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_TOP],bottom:[mxConstants.ALIGN_CENTER,mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_TOP],bottomRight:[mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_TOP]};for(E=0;E<oa.length;E++){var O=document.createElement("option");O.setAttribute("value",oa[E]);mxUtils.write(O,
mxResources.get(oa[E]));ia.appendChild(O)}C.appendChild(ia);oa=m.cloneNode(!1);oa.removeAttribute("class");oa.style.marginLeft="0px";oa.style.paddingTop="4px";oa.style.paddingBottom="4px";oa.style.fontWeight="normal";mxUtils.write(oa,mxResources.get("writingDirection"));var X=document.createElement("select");X.style.position="absolute";X.style.borderWidth="1px";X.style.borderStyle="solid";X.style.left="126px";X.style.width="98px";X.style.marginTop="-3px";O=["automatic","leftToRight","rightToLeft"];
g.html&&(O.push("vertical-leftToRight"),O.push("vertical-rightToLeft"));var ba={automatic:null,leftToRight:mxConstants.TEXT_DIRECTION_LTR,rightToLeft:mxConstants.TEXT_DIRECTION_RTL,"vertical-leftToRight":mxConstants.TEXT_DIRECTION_VERTICAL_LR,"vertical-rightToLeft":mxConstants.TEXT_DIRECTION_VERTICAL_RL};for(E=0;E<O.length;E++){var da=document.createElement("option");da.setAttribute("value",O[E]);"vertical-"==O[E].substring(0,9)?mxUtils.write(da,mxResources.get("vertical")+" ("+mxResources.get(O[E].substring(9))+
-")"):mxUtils.write(da,mxResources.get(O[E]));X.appendChild(da)}oa.appendChild(X);d.isEditing()||(a.appendChild(C),mxEvent.addListener(ia,"change",function(q){d.getModel().beginUpdate();try{var A=sa[ia.value];null!=A&&(d.setCellStyles(mxConstants.STYLE_LABEL_POSITION,A[0],g.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_LABEL_POSITION,A[1],g.cells),d.setCellStyles(mxConstants.STYLE_ALIGN,A[2],g.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_ALIGN,A[3],g.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(q)}),
-a.appendChild(oa),mxEvent.addListener(X,"change",function(q){d.setCellStyles(mxConstants.STYLE_TEXT_DIRECTION,ba[X.value],g.cells);mxEvent.consume(q)}));var ca=document.createElement("input");ca.style.position="absolute";ca.style.borderWidth="1px";ca.style.borderStyle="solid";ca.style.textAlign="right";ca.style.marginTop="4px";ca.style.left="161px";ca.style.width="53px";ca.style.height="23px";ca.style.boxSizing="border-box";k.appendChild(ca);C=this.installInputHandler(ca,mxConstants.STYLE_FONTSIZE,
-Menus.prototype.defaultFontSize,1,999," "+Editor.fontSizeUnit,function(q){if(null!=d.getSelectedEditingElement()){ca.value=q+" "+Editor.fontSizeUnit;document.execCommand("fontSize",!1,"1");for(var A=d.cellEditor.textarea.getElementsByTagName("font"),B=0;B<A.length;B++)if("1"==A[B].getAttribute("size")){A[B].removeAttribute("size");A[B].style.fontSize="";var F=mxUtils.getCurrentStyle(A[B]);q!=b(F)?A[B].style.fontSize=q+"px":""==A[B].getAttribute("style")&&A[B].removeAttribute("style")}}},!0);C=this.createStepper(ca,
+")"):mxUtils.write(da,mxResources.get(O[E]));X.appendChild(da)}oa.appendChild(X);d.isEditing()||(a.appendChild(C),mxEvent.addListener(ia,"change",function(p){d.getModel().beginUpdate();try{var A=sa[ia.value];null!=A&&(d.setCellStyles(mxConstants.STYLE_LABEL_POSITION,A[0],g.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_LABEL_POSITION,A[1],g.cells),d.setCellStyles(mxConstants.STYLE_ALIGN,A[2],g.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_ALIGN,A[3],g.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(p)}),
+a.appendChild(oa),mxEvent.addListener(X,"change",function(p){d.setCellStyles(mxConstants.STYLE_TEXT_DIRECTION,ba[X.value],g.cells);mxEvent.consume(p)}));var ca=document.createElement("input");ca.style.position="absolute";ca.style.borderWidth="1px";ca.style.borderStyle="solid";ca.style.textAlign="right";ca.style.marginTop="4px";ca.style.left="161px";ca.style.width="53px";ca.style.height="23px";ca.style.boxSizing="border-box";k.appendChild(ca);C=this.installInputHandler(ca,mxConstants.STYLE_FONTSIZE,
+Menus.prototype.defaultFontSize,1,999," "+Editor.fontSizeUnit,function(p){if(null!=d.getSelectedEditingElement()){ca.value=p+" "+Editor.fontSizeUnit;document.execCommand("fontSize",!1,"1");for(var A=d.cellEditor.textarea.getElementsByTagName("font"),B=0;B<A.length;B++)if("1"==A[B].getAttribute("size")){A[B].removeAttribute("size");A[B].style.fontSize="";var F=mxUtils.getCurrentStyle(A[B]);p!=b(F)?A[B].style.fontSize=p+"px":""==A[B].getAttribute("style")&&A[B].removeAttribute("style")}}},!0);C=this.createStepper(ca,
C,1,10,!0,Menus.prototype.defaultFontSize);C.style.display=ca.style.display;C.style.marginTop="4px";C.style.left="214px";k.appendChild(C);k=u.getElementsByTagName("div")[0];k.style.cssFloat="right";var H=null,ea=d.shapeBackgroundColor,ra=null,qa=d.shapeForegroundColor;k=mxUtils.getLightDarkColor(d.shapeBackgroundColor);var Pa="light-dark("+mxUtils.hex2rgb(k.light)+", "+mxUtils.hex2rgb(k.dark)+")",ma=d.cellEditor.isContentEditing()?this.createColorOption(mxResources.get("backgroundColor"),function(){return ea==
-d.shapeBackgroundColor||ea==Pa?"default":ea},function(q){null!=d.cellEditor.textarea&&("default"==q&&(q=d.shapeBackgroundColor),Graph.setTextColor(d.cellEditor.textarea,q,!1),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[q],"cells",g.cells)))},"default",{install:function(q){H=q},destroy:function(){H=null}},null,null,d.shapeBackgroundColor):this.createCellColorOption(mxResources.get("backgroundColor"),mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,
-"default",null,function(q){d.updateLabelElements(g.cells,function(A){A.style.backgroundColor=null})},d.shapeBackgroundColor);ma.style.fontWeight="bold";var Ba=this.createCellColorOption(mxResources.get("borderColor"),mxConstants.STYLE_LABEL_BORDERCOLOR,"default",null,null,d.shapeForegroundColor);Ba.style.fontWeight="bold";k=1<=g.vertices.length?d.stylesheet.getDefaultVertexStyle():d.stylesheet.getDefaultEdgeStyle();k=d.cellEditor.isContentEditing()?this.createColorOption(mxResources.get("fontColor"),
-function(){return qa},function(q){null!=d.cellEditor.textarea&&("default"==q&&(q=mxConstants.NONE),Graph.setTextColor(d.cellEditor.textarea,q,!0),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTCOLOR],"values",[q],"cells",g.cells)))},"default",{install:function(q){ra=q},destroy:function(){ra=null}},null,!0,null!=k[mxConstants.STYLE_FONTCOLOR]&&"default"!=k[mxConstants.STYLE_FONTCOLOR]?k[mxConstants.STYLE_FONTCOLOR]:d.shapeForegroundColor):this.createCellColorOption(mxResources.get("fontColor"),
-mxConstants.STYLE_FONTCOLOR,"default",function(q){ma.style.display=q==mxConstants.NONE?"none":"";Ba.style.display=ma.style.display},function(q){q==mxConstants.NONE?d.setCellStyles(mxConstants.STYLE_NOLABEL,"1",g.cells):d.setCellStyles(mxConstants.STYLE_NOLABEL,null,g.cells);d.setCellStyles(mxConstants.STYLE_FONTCOLOR,q,g.cells);d.updateLabelElements(g.cells,function(A){A.removeAttribute("color");A.style.color=null})},d.shapeForegroundColor);k.style.fontWeight="bold";p.appendChild(k);p.appendChild(ma);
-k=this.createCellOption(mxResources.get("shadow"),mxConstants.STYLE_TEXT_SHADOW,0);k.style.width="100%";k.style.fontWeight="bold";Editor.enableShadowOption||(k.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(k,60));d.cellEditor.isContentEditing()||(p.appendChild(Ba),p.appendChild(k));a.appendChild(p);p=this.createPanel();p.style.paddingTop="2px";p.style.paddingBottom="4px";k=d.filterSelectionCells(mxUtils.bind(this,function(q){var A=d.view.getState(q);return null==
-A||d.getModel().isEdge(q)||d.isAutoSizeState(A)}));C=this.createCellOption(mxResources.get("wordWrap"),mxConstants.STYLE_WHITE_SPACE,null,"wrap","null",null,null,!0,k);C.style.fontWeight="bold";0<k.length&&p.appendChild(C);k=this.createCellOption(mxResources.get("formattedText"),"html",0,null,null,null,h.actions.get("formattedText"));k.style.fontWeight="bold";p.appendChild(k);k=this.createPanel();k.style.paddingTop="10px";k.style.paddingBottom="28px";k.style.fontWeight="normal";C=document.createElement("div");
+d.shapeBackgroundColor||ea==Pa?"default":ea},function(p){null!=d.cellEditor.textarea&&("default"==p&&(p=d.shapeBackgroundColor),Graph.setTextColor(d.cellEditor.textarea,p,!1),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[p],"cells",g.cells)))},"default",{install:function(p){H=p},destroy:function(){H=null}},null,null,d.shapeBackgroundColor):this.createCellColorOption(mxResources.get("backgroundColor"),mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,
+"default",null,function(p){d.updateLabelElements(g.cells,function(A){A.style.backgroundColor=null})},d.shapeBackgroundColor);ma.style.fontWeight="bold";var Ba=this.createCellColorOption(mxResources.get("borderColor"),mxConstants.STYLE_LABEL_BORDERCOLOR,"default",null,null,d.shapeForegroundColor);Ba.style.fontWeight="bold";k=1<=g.vertices.length?d.stylesheet.getDefaultVertexStyle():d.stylesheet.getDefaultEdgeStyle();k=d.cellEditor.isContentEditing()?this.createColorOption(mxResources.get("fontColor"),
+function(){return qa},function(p){null!=d.cellEditor.textarea&&("default"==p&&(p=mxConstants.NONE),Graph.setTextColor(d.cellEditor.textarea,p,!0),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTCOLOR],"values",[p],"cells",g.cells)))},"default",{install:function(p){ra=p},destroy:function(){ra=null}},null,!0,null!=k[mxConstants.STYLE_FONTCOLOR]&&"default"!=k[mxConstants.STYLE_FONTCOLOR]?k[mxConstants.STYLE_FONTCOLOR]:d.shapeForegroundColor):this.createCellColorOption(mxResources.get("fontColor"),
+mxConstants.STYLE_FONTCOLOR,"default",function(p){ma.style.display=p==mxConstants.NONE?"none":"";Ba.style.display=ma.style.display},function(p){p==mxConstants.NONE?d.setCellStyles(mxConstants.STYLE_NOLABEL,"1",g.cells):d.setCellStyles(mxConstants.STYLE_NOLABEL,null,g.cells);d.setCellStyles(mxConstants.STYLE_FONTCOLOR,p,g.cells);d.updateLabelElements(g.cells,function(A){A.removeAttribute("color");A.style.color=null})},d.shapeForegroundColor);k.style.fontWeight="bold";q.appendChild(k);q.appendChild(ma);
+k=this.createCellOption(mxResources.get("shadow"),mxConstants.STYLE_TEXT_SHADOW,0);k.style.width="100%";k.style.fontWeight="bold";Editor.enableShadowOption||(k.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(k,60));d.cellEditor.isContentEditing()||(q.appendChild(Ba),q.appendChild(k));a.appendChild(q);q=this.createPanel();q.style.paddingTop="2px";q.style.paddingBottom="4px";k=d.filterSelectionCells(mxUtils.bind(this,function(p){var A=d.view.getState(p);return null==
+A||d.getModel().isEdge(p)||d.isAutoSizeState(A)}));C=this.createCellOption(mxResources.get("wordWrap"),mxConstants.STYLE_WHITE_SPACE,null,"wrap","null",null,null,!0,k);C.style.fontWeight="bold";0<k.length&&q.appendChild(C);k=this.createCellOption(mxResources.get("formattedText"),"html",0,null,null,null,h.actions.get("formattedText"));k.style.fontWeight="bold";q.appendChild(k);k=this.createPanel();k.style.paddingTop="10px";k.style.paddingBottom="28px";k.style.fontWeight="normal";C=document.createElement("div");
C.style.position="absolute";C.style.width="70px";C.style.marginTop="0px";C.style.fontWeight="bold";mxUtils.write(C,mxResources.get("spacing"));k.appendChild(C);var Ca=this.addUnitInput(k,this.getUnit(),87,52,function(){fb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ja=this.addUnitInput(k,this.getUnit(),16,52,function(){cb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(k);this.addLabel(k,mxResources.get("top"),87,64);this.addLabel(k,mxResources.get("global"),
16,64);mxUtils.br(k);mxUtils.br(k);var Ia=this.addUnitInput(k,this.getUnit(),158,52,function(){ab.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Da=this.addUnitInput(k,this.getUnit(),87,52,function(){gb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ga=this.addUnitInput(k,this.getUnit(),16,52,function(){pb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(k);this.addLabel(k,mxResources.get("left"),158,64);this.addLabel(k,
-mxResources.get("bottom"),87,64);this.addLabel(k,mxResources.get("right"),16,64);if(d.cellEditor.isContentEditing()){var ta=null,La=null;a.appendChild(this.createRelativeOption(mxResources.get("lineheight"),null,null,function(q){var A=""==q.value?120:parseInt(q.value);A=Math.max(0,isNaN(A)?120:A);if(window.getSelection){null!=ta&&(d.cellEditor.restoreSelection(ta),ta=null);var B=d.getSelectedEditingElement();if(null!=d.cellEditor.textarea&&B==d.cellEditor.textarea){var F=window.getSelection();if(F.getRangeAt&&
-0<F.rangeCount){var M=F.getRangeAt(0);B=document.createElement("div");B.appendChild(M.extractContents());d.cellEditor.textarea.innerHTML="";d.cellEditor.textarea.appendChild(B);F.removeAllRanges();M=new Range;M.selectNodeContents(B);F.addRange(M)}}if(null!=B)for(B!=d.cellEditor.textarea&&e(B,A),B=B.getElementsByTagName("*"),F=window.getSelection(),M=0;M<B.length;M++)F.containsNode(B[M],!0)&&e(B[M],A)}q.value=A+" %"},function(q){La=q;mxEvent.addGestureListeners(q,mxUtils.bind(this,function(A){document.activeElement==
-d.cellEditor.textarea&&(ta=d.cellEditor.saveSelection())}));mxEvent.addListener(q,"touchstart",function(){document.activeElement==d.cellEditor.textarea&&(ta=d.cellEditor.saveSelection())});q.value="120 %"}));p=m.cloneNode(!1);p.style.paddingLeft="0px";k=this.editorUi.toolbar.addItems(["link","image"],p,!0,[Editor.linkImage,Editor.imageImage]);C=[this.editorUi.toolbar.addButton(Editor.horizontalRuleImage,mxResources.get("insertHorizontalRule"),function(){document.execCommand("inserthorizontalrule",
-!1)},p),this.editorUi.toolbar.addMenuFunctionInContainer(p,Editor.tableImage,mxResources.get("table"),!1,mxUtils.bind(this,function(q){this.editorUi.menus.addInsertTableItem(q,null,null,!1)}))];this.styleButtons(k);this.styleButtons(C);k=this.createPanel();k.style.height="57px";k.style.paddingTop="10px";k.style.paddingBottom="8px";k.appendChild(this.createTitle(mxResources.get("insert")));k.appendChild(p);a.appendChild(k);k=m.cloneNode(!1);k.style.height="33px";k.style.paddingLeft="0px";C=[this.editorUi.toolbar.addButton(Editor.addColumnLeftImage,
-mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{null!=T&&d.insertColumn(T,null!=K?K.cellIndex:0)}catch(q){this.editorUi.handleError(q)}}),k),this.editorUi.toolbar.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{null!=T&&d.insertColumn(T,null!=K?K.cellIndex+1:-1)}catch(q){this.editorUi.handleError(q)}}),k),this.editorUi.toolbar.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{null!=
-T&&null!=K&&d.deleteColumn(T,K.cellIndex)}catch(q){this.editorUi.handleError(q)}}),k),this.editorUi.toolbar.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{null!=T&&null!=V&&d.insertRow(T,V.sectionRowIndex)}catch(q){this.editorUi.handleError(q)}}),k),this.editorUi.toolbar.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{null!=T&&null!=V&&d.insertRow(T,V.sectionRowIndex+1)}catch(q){this.editorUi.handleError(q)}}),
-k),this.editorUi.toolbar.addButton(Editor.removeRowImage,mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{null!=T&&null!=V&&d.deleteRow(T,V.sectionRowIndex)}catch(q){this.editorUi.handleError(q)}}),k)];this.styleButtons(C);C[2].style.marginRight="10px";p=this.createPanel();p.style.paddingTop="10px";p.style.paddingBottom="10px";p.appendChild(this.createTitle(mxResources.get("table")));p.appendChild(k);m=m.cloneNode(!1);m.style.height="33px";m.style.padding="0";C=[this.editorUi.toolbar.addButton(Editor.strokeColorImage,
-mxResources.get("borderColor"),mxUtils.bind(this,function(q){if(null!=T){var A=T.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,M,R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(M).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});this.editorUi.pickColor(A,function(B){var F=null==K||null!=q&&mxEvent.isShiftDown(q)?T:K;d.processElements(F,function(M){M.style.border=null});null==B||B==mxConstants.NONE?(F.removeAttribute("border"),
-F.style.border="",F.style.borderCollapse=""):(F.setAttribute("border","1"),F.style.border="1px solid "+B,F.style.borderCollapse="collapse")})}}),m),this.editorUi.toolbar.addButton(Editor.fillColorImage,mxResources.get("backgroundColor"),mxUtils.bind(this,function(q){if(null!=T){var A=T.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,M,R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(M).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});
-this.editorUi.pickColor(A,function(B){var F=null==K||null!=q&&mxEvent.isShiftDown(q)?T:K;d.processElements(F,function(M){M.style.backgroundColor=null});F.style.backgroundColor=null==B||B==mxConstants.NONE?"":B})}}),m),this.editorUi.toolbar.addButton(Editor.spacingImage,mxResources.get("spacing"),function(){if(null!=T){var q=T.getAttribute("cellPadding")||0;q=new FilenameDialog(h,q,mxResources.get("apply"),mxUtils.bind(this,function(A){null!=A&&0<A.length?T.setAttribute("cellPadding",A):T.removeAttribute("cellPadding")}),
-mxResources.get("spacing"));h.showDialog(q.container,300,80,!0,!0);q.init()}},m),this.editorUi.toolbar.addButton(Editor.alignLeftImage,mxResources.get("left"),function(){null!=T&&T.setAttribute("align","left")},m),this.editorUi.toolbar.addButton(Editor.alignCenterImage,mxResources.get("center"),function(){null!=T&&T.setAttribute("align","center")},m),this.editorUi.toolbar.addButton(Editor.alignRightImage,mxResources.get("right"),function(){null!=T&&T.setAttribute("align","right")},m)];this.styleButtons(C);
-C[2].style.marginRight="10px";p.appendChild(m);a.appendChild(p);var Xa=p}else a.appendChild(p),a.appendChild(this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_TEXT_OPACITY)),a.appendChild(k);for(E=0;3>E;E++)(function(q){mxEvent.addListener(w[q],"click",function(){f(w[q],""==w[q].style.backgroundImage)})})(E);var Ya=mxUtils.bind(this,function(q,A,B){g=h.getSelectionState();q=mxUtils.getValue(g.style,mxConstants.STYLE_FONTSTYLE,0);f(w[0],(q&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD);
-f(w[1],(q&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC);f(w[2],(q&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE);u.firstChild.nodeValue=mxUtils.getValue(g.style,mxConstants.STYLE_FONTFAMILY,Menus.prototype.defaultFont);f(z,"0"==mxUtils.getValue(g.style,mxConstants.STYLE_HORIZONTAL,"1"));if(B||document.activeElement!=ca)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize)),ca.value=isNaN(q)?"":q+" "+Editor.fontSizeUnit;q=mxUtils.getValue(g.style,
-mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);f(D,q==mxConstants.ALIGN_LEFT);f(G,q==mxConstants.ALIGN_CENTER);f(J,q==mxConstants.ALIGN_RIGHT);q=mxUtils.getValue(g.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);f(Q,q==mxConstants.ALIGN_TOP);f(N,q==mxConstants.ALIGN_MIDDLE);f(U,q==mxConstants.ALIGN_BOTTOM);q=mxUtils.getValue(g.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);A=mxUtils.getValue(g.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);
-ia.value=q==mxConstants.ALIGN_LEFT&&A==mxConstants.ALIGN_TOP?"topLeft":q==mxConstants.ALIGN_CENTER&&A==mxConstants.ALIGN_TOP?"top":q==mxConstants.ALIGN_RIGHT&&A==mxConstants.ALIGN_TOP?"topRight":q==mxConstants.ALIGN_LEFT&&A==mxConstants.ALIGN_BOTTOM?"bottomLeft":q==mxConstants.ALIGN_CENTER&&A==mxConstants.ALIGN_BOTTOM?"bottom":q==mxConstants.ALIGN_RIGHT&&A==mxConstants.ALIGN_BOTTOM?"bottomRight":q==mxConstants.ALIGN_LEFT?"left":q==mxConstants.ALIGN_RIGHT?"right":"center";q=mxUtils.getValue(g.style,
-mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);q==mxConstants.TEXT_DIRECTION_RTL?X.value="rightToLeft":q==mxConstants.TEXT_DIRECTION_LTR?X.value="leftToRight":q!=mxConstants.TEXT_DIRECTION_AUTO&&g.html?q==mxConstants.TEXT_DIRECTION_VERTICAL_LR?X.value="vertical-leftToRight":q==mxConstants.TEXT_DIRECTION_VERTICAL_RL&&(X.value="vertical-rightToLeft"):X.value="automatic";if(B||document.activeElement!=Ja)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING,2)),Ja.value=
-isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Ca)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_TOP,0)),Ca.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Ga)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_RIGHT,0)),Ga.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Da)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_BOTTOM,0)),Da.value=isNaN(q)?"":this.inUnit(q)+
-" "+this.getUnit();if(B||document.activeElement!=Ia)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_LEFT,0)),Ia.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit()});var cb=this.installInputHandler(Ja,mxConstants.STYLE_SPACING,2,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var fb=this.installInputHandler(Ca,mxConstants.STYLE_SPACING_TOP,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var pb=this.installInputHandler(Ga,mxConstants.STYLE_SPACING_RIGHT,0,-999,999,this.getUnit(" "),
+mxResources.get("bottom"),87,64);this.addLabel(k,mxResources.get("right"),16,64);if(d.cellEditor.isContentEditing()){var ta=null,La=null;a.appendChild(this.createRelativeOption(mxResources.get("lineheight"),null,null,function(p){var A=""==p.value?120:parseInt(p.value);A=Math.max(0,isNaN(A)?120:A);if(window.getSelection){null!=ta&&(d.cellEditor.restoreSelection(ta),ta=null);var B=d.getSelectedEditingElement();if(null!=d.cellEditor.textarea&&B==d.cellEditor.textarea){var F=window.getSelection();if(F.getRangeAt&&
+0<F.rangeCount){var M=F.getRangeAt(0);B=document.createElement("div");B.appendChild(M.extractContents());d.cellEditor.textarea.innerHTML="";d.cellEditor.textarea.appendChild(B);F.removeAllRanges();M=new Range;M.selectNodeContents(B);F.addRange(M)}}if(null!=B)for(B!=d.cellEditor.textarea&&e(B,A),B=B.getElementsByTagName("*"),F=window.getSelection(),M=0;M<B.length;M++)F.containsNode(B[M],!0)&&e(B[M],A)}p.value=A+" %"},function(p){La=p;mxEvent.addGestureListeners(p,mxUtils.bind(this,function(A){document.activeElement==
+d.cellEditor.textarea&&(ta=d.cellEditor.saveSelection())}));mxEvent.addListener(p,"touchstart",function(){document.activeElement==d.cellEditor.textarea&&(ta=d.cellEditor.saveSelection())});p.value="120 %"}));q=m.cloneNode(!1);q.style.paddingLeft="0px";k=this.editorUi.toolbar.addItems(["link","image"],q,!0,[Editor.linkImage,Editor.imageImage]);C=[this.editorUi.toolbar.addButton(Editor.horizontalRuleImage,mxResources.get("insertHorizontalRule"),function(){document.execCommand("inserthorizontalrule",
+!1)},q),this.editorUi.toolbar.addMenuFunctionInContainer(q,Editor.tableImage,mxResources.get("table"),!1,mxUtils.bind(this,function(p){this.editorUi.menus.addInsertTableItem(p,null,null,!1)}))];this.styleButtons(k);this.styleButtons(C);k=this.createPanel();k.style.height="57px";k.style.paddingTop="10px";k.style.paddingBottom="8px";k.appendChild(this.createTitle(mxResources.get("insert")));k.appendChild(q);a.appendChild(k);k=m.cloneNode(!1);k.style.height="33px";k.style.paddingLeft="0px";C=[this.editorUi.toolbar.addButton(Editor.addColumnLeftImage,
+mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{null!=T&&d.insertColumn(T,null!=K?K.cellIndex:0)}catch(p){this.editorUi.handleError(p)}}),k),this.editorUi.toolbar.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{null!=T&&d.insertColumn(T,null!=K?K.cellIndex+1:-1)}catch(p){this.editorUi.handleError(p)}}),k),this.editorUi.toolbar.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{null!=
+T&&null!=K&&d.deleteColumn(T,K.cellIndex)}catch(p){this.editorUi.handleError(p)}}),k),this.editorUi.toolbar.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{null!=T&&null!=V&&d.insertRow(T,V.sectionRowIndex)}catch(p){this.editorUi.handleError(p)}}),k),this.editorUi.toolbar.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{null!=T&&null!=V&&d.insertRow(T,V.sectionRowIndex+1)}catch(p){this.editorUi.handleError(p)}}),
+k),this.editorUi.toolbar.addButton(Editor.removeRowImage,mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{null!=T&&null!=V&&d.deleteRow(T,V.sectionRowIndex)}catch(p){this.editorUi.handleError(p)}}),k)];this.styleButtons(C);C[2].style.marginRight="10px";q=this.createPanel();q.style.paddingTop="10px";q.style.paddingBottom="10px";q.appendChild(this.createTitle(mxResources.get("table")));q.appendChild(k);m=m.cloneNode(!1);m.style.height="33px";m.style.padding="0";C=[this.editorUi.toolbar.addButton(Editor.strokeColorImage,
+mxResources.get("borderColor"),mxUtils.bind(this,function(p){if(null!=T){var A=T.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,M,R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(M).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});this.editorUi.pickColor(A,function(B){var F=null==K||null!=p&&mxEvent.isShiftDown(p)?T:K;d.processElements(F,function(M){M.style.border=null});null==B||B==mxConstants.NONE?(F.removeAttribute("border"),
+F.style.border="",F.style.borderCollapse=""):(F.setAttribute("border","1"),F.style.border="1px solid "+B,F.style.borderCollapse="collapse")})}}),m),this.editorUi.toolbar.addButton(Editor.fillColorImage,mxResources.get("backgroundColor"),mxUtils.bind(this,function(p){if(null!=T){var A=T.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,M,R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(M).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});
+this.editorUi.pickColor(A,function(B){var F=null==K||null!=p&&mxEvent.isShiftDown(p)?T:K;d.processElements(F,function(M){M.style.backgroundColor=null});F.style.backgroundColor=null==B||B==mxConstants.NONE?"":B})}}),m),this.editorUi.toolbar.addButton(Editor.spacingImage,mxResources.get("spacing"),function(){if(null!=T){var p=T.getAttribute("cellPadding")||0;p=new FilenameDialog(h,p,mxResources.get("apply"),mxUtils.bind(this,function(A){null!=A&&0<A.length?T.setAttribute("cellPadding",A):T.removeAttribute("cellPadding")}),
+mxResources.get("spacing"));h.showDialog(p.container,300,80,!0,!0);p.init()}},m),this.editorUi.toolbar.addButton(Editor.alignLeftImage,mxResources.get("left"),function(){null!=T&&T.setAttribute("align","left")},m),this.editorUi.toolbar.addButton(Editor.alignCenterImage,mxResources.get("center"),function(){null!=T&&T.setAttribute("align","center")},m),this.editorUi.toolbar.addButton(Editor.alignRightImage,mxResources.get("right"),function(){null!=T&&T.setAttribute("align","right")},m)];this.styleButtons(C);
+C[2].style.marginRight="10px";q.appendChild(m);a.appendChild(q);var Xa=q}else a.appendChild(q),a.appendChild(this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_TEXT_OPACITY)),a.appendChild(k);for(E=0;3>E;E++)(function(p){mxEvent.addListener(w[p],"click",function(){f(w[p],""==w[p].style.backgroundImage)})})(E);var Ya=mxUtils.bind(this,function(p,A,B){g=h.getSelectionState();p=mxUtils.getValue(g.style,mxConstants.STYLE_FONTSTYLE,0);f(w[0],(p&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD);
+f(w[1],(p&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC);f(w[2],(p&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE);u.firstChild.nodeValue=mxUtils.getValue(g.style,mxConstants.STYLE_FONTFAMILY,Menus.prototype.defaultFont);f(z,"0"==mxUtils.getValue(g.style,mxConstants.STYLE_HORIZONTAL,"1"));if(B||document.activeElement!=ca)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize)),ca.value=isNaN(p)?"":p+" "+Editor.fontSizeUnit;p=mxUtils.getValue(g.style,
+mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);f(D,p==mxConstants.ALIGN_LEFT);f(G,p==mxConstants.ALIGN_CENTER);f(J,p==mxConstants.ALIGN_RIGHT);p=mxUtils.getValue(g.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);f(Q,p==mxConstants.ALIGN_TOP);f(N,p==mxConstants.ALIGN_MIDDLE);f(U,p==mxConstants.ALIGN_BOTTOM);p=mxUtils.getValue(g.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);A=mxUtils.getValue(g.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);
+ia.value=p==mxConstants.ALIGN_LEFT&&A==mxConstants.ALIGN_TOP?"topLeft":p==mxConstants.ALIGN_CENTER&&A==mxConstants.ALIGN_TOP?"top":p==mxConstants.ALIGN_RIGHT&&A==mxConstants.ALIGN_TOP?"topRight":p==mxConstants.ALIGN_LEFT&&A==mxConstants.ALIGN_BOTTOM?"bottomLeft":p==mxConstants.ALIGN_CENTER&&A==mxConstants.ALIGN_BOTTOM?"bottom":p==mxConstants.ALIGN_RIGHT&&A==mxConstants.ALIGN_BOTTOM?"bottomRight":p==mxConstants.ALIGN_LEFT?"left":p==mxConstants.ALIGN_RIGHT?"right":"center";p=mxUtils.getValue(g.style,
+mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);p==mxConstants.TEXT_DIRECTION_RTL?X.value="rightToLeft":p==mxConstants.TEXT_DIRECTION_LTR?X.value="leftToRight":p!=mxConstants.TEXT_DIRECTION_AUTO&&g.html?p==mxConstants.TEXT_DIRECTION_VERTICAL_LR?X.value="vertical-leftToRight":p==mxConstants.TEXT_DIRECTION_VERTICAL_RL&&(X.value="vertical-rightToLeft"):X.value="automatic";if(B||document.activeElement!=Ja)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING,2)),Ja.value=
+isNaN(p)?"":this.inUnit(p)+" "+this.getUnit();if(B||document.activeElement!=Ca)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_TOP,0)),Ca.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit();if(B||document.activeElement!=Ga)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_RIGHT,0)),Ga.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit();if(B||document.activeElement!=Da)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_BOTTOM,0)),Da.value=isNaN(p)?"":this.inUnit(p)+
+" "+this.getUnit();if(B||document.activeElement!=Ia)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_LEFT,0)),Ia.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit()});var cb=this.installInputHandler(Ja,mxConstants.STYLE_SPACING,2,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var fb=this.installInputHandler(Ca,mxConstants.STYLE_SPACING_TOP,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var pb=this.installInputHandler(Ga,mxConstants.STYLE_SPACING_RIGHT,0,-999,999,this.getUnit(" "),
null,this.isFloatUnit(),!0);var gb=this.installInputHandler(Da,mxConstants.STYLE_SPACING_BOTTOM,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ab=this.installInputHandler(Ia,mxConstants.STYLE_SPACING_LEFT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);this.addKeyHandler(ca,Ya);this.addKeyHandler(Ja,Ya);this.addKeyHandler(Ca,Ya);this.addKeyHandler(Ga,Ya);this.addKeyHandler(Da,Ya);this.addKeyHandler(Ia,Ya);d.getModel().addListener(mxEvent.CHANGE,Ya);this.listeners.push({destroy:function(){d.getModel().removeListener(Ya)}});
-Ya();if(d.cellEditor.isContentEditing()){var ib=null,eb=!1;m=mxUtils.bind(this,function(){eb||(eb=!0,window.setTimeout(mxUtils.bind(this,function(){var q=d.getSelectedEditingElement();if(null!=q&&null!=d.cellEditor.textarea){var A=function(ya,Ha){if(null!=ya&&null!=Ha){if(ya==Ha)return!0;if(ya.length>Ha.length+1)return ya.substring(ya.length-Ha.length-1,ya.length)=="-"+Ha}return!1},B=function(ya){if(null!=d.getParentByName(q,ya,d.cellEditor.textarea))return!0;for(var Ha=q;null!=Ha&&1==Ha.childNodes.length;)if(Ha=
-Ha.childNodes[0],Ha.nodeName==ya)return!0;return!1},F=function(ya){for(;null!=ya&&ya!=d.cellEditor.textarea;){if("block"==mxUtils.getCurrentStyle(ya).display)return ya;ya=ya.parentNode}return null},M=mxUtils.getCurrentStyle(q),R=q==d.cellEditor.textarea||""==q.style.lineHeight?null:q.style.lineHeight,W=q==d.cellEditor.textarea||""==q.style.fontSize?null:b(M);if(window.getSelection)for(var ha=q.getElementsByTagName("*"),fa=window.getSelection(),ja=0;ja<ha.length&&(!fa.containsNode(ha[ja],!0)||(null==
-W&&""!=ha[ja].style.fontSize&&(W=parseFloat(ha[ja].style.fontSize)),null==R&&""!=ha[ja].style.lineHeight&&(R=ha[ja].style.lineHeight),null==W||null==R));ja++);null==W&&(W=b(M));if(null==R)for(ha=q;null!=ha&&ha!=d.cellEditor.textarea.parentNode;){if(null!=ha.style&&""!=ha.style.lineHeight){R=ha.style.lineHeight;break}ha=ha.parentNode}if(null!=M){f(w[0],"bold"==M.fontWeight||400<M.fontWeight||B("B")||B("STRONG"));f(w[1],"italic"==M.fontStyle||B("I")||B("EM"));f(w[2],"underline"==M.textDecorationLine||
-B("U"));f(L,"line-through"==M.textDecorationLine||B("STRIKE"));f(P,B("SUP"));f(Y,B("SUB"));var va=F(q);if(null!=va){B=function(ya,Ha){Na.push({name:ya,dispName:Ha,type:"string",getValue:function(){return Ma[ya]},valueChanged:function(wa,ua){var Va=va.style,Qa=wa;parseInt(Qa)==Qa&&(Qa+="px",null!=ua&&(ua.value=Qa));Va[ya]=Qa;""==wa&&null!=ua&&(ua.value=Ma[ya])}})};var Ma=mxUtils.getCurrentStyle(va),Na=[];B("paddingTop","Padding Top");B("paddingRight","Padding Right");B("paddingLeft","Padding Left");
+Ya();if(d.cellEditor.isContentEditing()){var ib=null,eb=!1;m=mxUtils.bind(this,function(){eb||(eb=!0,window.setTimeout(mxUtils.bind(this,function(){var p=d.getSelectedEditingElement();if(null!=p&&null!=d.cellEditor.textarea){var A=function(ya,Ha){if(null!=ya&&null!=Ha){if(ya==Ha)return!0;if(ya.length>Ha.length+1)return ya.substring(ya.length-Ha.length-1,ya.length)=="-"+Ha}return!1},B=function(ya){if(null!=d.getParentByName(p,ya,d.cellEditor.textarea))return!0;for(var Ha=p;null!=Ha&&1==Ha.childNodes.length;)if(Ha=
+Ha.childNodes[0],Ha.nodeName==ya)return!0;return!1},F=function(ya){for(;null!=ya&&ya!=d.cellEditor.textarea;){if("block"==mxUtils.getCurrentStyle(ya).display)return ya;ya=ya.parentNode}return null},M=mxUtils.getCurrentStyle(p),R=p==d.cellEditor.textarea||""==p.style.lineHeight?null:p.style.lineHeight,W=p==d.cellEditor.textarea||""==p.style.fontSize?null:b(M);if(window.getSelection)for(var ha=p.getElementsByTagName("*"),fa=window.getSelection(),ja=0;ja<ha.length&&(!fa.containsNode(ha[ja],!0)||(null==
+W&&""!=ha[ja].style.fontSize&&(W=parseFloat(ha[ja].style.fontSize)),null==R&&""!=ha[ja].style.lineHeight&&(R=ha[ja].style.lineHeight),null==W||null==R));ja++);null==W&&(W=b(M));if(null==R)for(ha=p;null!=ha&&ha!=d.cellEditor.textarea.parentNode;){if(null!=ha.style&&""!=ha.style.lineHeight){R=ha.style.lineHeight;break}ha=ha.parentNode}if(null!=M){f(w[0],"bold"==M.fontWeight||400<M.fontWeight||B("B")||B("STRONG"));f(w[1],"italic"==M.fontStyle||B("I")||B("EM"));f(w[2],"underline"==M.textDecorationLine||
+B("U"));f(L,"line-through"==M.textDecorationLine||B("STRIKE"));f(P,B("SUP"));f(Y,B("SUB"));var va=F(p);if(null!=va){B=function(ya,Ha){Na.push({name:ya,dispName:Ha,type:"string",getValue:function(){return Ma[ya]},valueChanged:function(wa,ua){var Va=va.style,Qa=wa;parseInt(Qa)==Qa&&(Qa+="px",null!=ua&&(ua.value=Qa));Va[ya]=Qa;""==wa&&null!=ua&&(ua.value=Ma[ya])}})};var Ma=mxUtils.getCurrentStyle(va),Na=[];B("paddingTop","Padding Top");B("paddingRight","Padding Right");B("paddingLeft","Padding Left");
B("paddingBottom","Padding Bottom");B("marginTop","Margin Top");B("marginRight","Margin Right");B("marginLeft","Margin Left");B("marginBottom","Margin Bottom");B=this.createPanel();this.addProperties(B,Na,g,!0);null!=ib?ib.parentNode.replaceChild(B,ib):a.appendChild(B);ib=B}d.cellEditor.isTableSelected()?(f(Z,A(M.textAlign,"justify")),f(D,A(M.textAlign,"left")),f(G,A(M.textAlign,"center")),f(J,A(M.textAlign,"right"))):(B=d.cellEditor.align||mxUtils.getValue(g.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),
-A(M.textAlign,"justify")?(f(Z,A(M.textAlign,"justify")),f(D,!1),f(G,!1),f(J,!1)):(f(Z,!1),f(D,B==mxConstants.ALIGN_LEFT),f(G,B==mxConstants.ALIGN_CENTER),f(J,B==mxConstants.ALIGN_RIGHT)));T=d.getParentByName(q,"TABLE",d.cellEditor.textarea);V=null==T?null:d.getParentByName(q,"TR",T);K=null==T?null:d.getParentByNames(q,["TD","TH"],T);Xa.style.display=null!=T?"":"none";document.activeElement!=ca&&(ca.value=isNaN(W)?"":W+" "+Editor.fontSizeUnit,"string"===typeof R&&0<R.indexOf("%")?La.value=R.replace("%",
-" %"):(A=parseFloat(R),isNaN(A)?La.value="120 %":La.value=Math.round(100*A)+" %"));null!=ra&&(qa=d.getTextColor(q,!0),ra(qa,!0));null!=H&&(ea=d.getTextColor(q,!1),H(ea,!0));null!=u.firstChild&&(u.firstChild.nodeValue=mxUtils.getCssFontFamily(M.fontFamily))}}eb=!1}),0))});(mxClient.IS_FF||mxClient.IS_EDGE||mxClient.IS_IE||mxClient.IS_IE11)&&mxEvent.addListener(d.cellEditor.textarea,"DOMSubtreeModified",m);mxEvent.addListener(d.cellEditor.textarea,"input",m);mxEvent.addListener(d.cellEditor.textarea,
+A(M.textAlign,"justify")?(f(Z,A(M.textAlign,"justify")),f(D,!1),f(G,!1),f(J,!1)):(f(Z,!1),f(D,B==mxConstants.ALIGN_LEFT),f(G,B==mxConstants.ALIGN_CENTER),f(J,B==mxConstants.ALIGN_RIGHT)));T=d.getParentByName(p,"TABLE",d.cellEditor.textarea);V=null==T?null:d.getParentByName(p,"TR",T);K=null==T?null:d.getParentByNames(p,["TD","TH"],T);Xa.style.display=null!=T?"":"none";document.activeElement!=ca&&(ca.value=isNaN(W)?"":W+" "+Editor.fontSizeUnit,"string"===typeof R&&0<R.indexOf("%")?La.value=R.replace("%",
+" %"):(A=parseFloat(R),isNaN(A)?La.value="120 %":La.value=Math.round(100*A)+" %"));null!=ra&&(qa=d.getTextColor(p,!0),ra(qa,!0));null!=H&&(ea=d.getTextColor(p,!1),H(ea,!0));null!=u.firstChild&&(u.firstChild.nodeValue=mxUtils.getCssFontFamily(M.fontFamily))}}eb=!1}),0))});(mxClient.IS_FF||mxClient.IS_EDGE||mxClient.IS_IE||mxClient.IS_IE11)&&mxEvent.addListener(d.cellEditor.textarea,"DOMSubtreeModified",m);mxEvent.addListener(d.cellEditor.textarea,"input",m);mxEvent.addListener(d.cellEditor.textarea,
"touchend",m);mxEvent.addListener(d.cellEditor.textarea,"mouseup",m);mxEvent.addListener(d.cellEditor.textarea,"keyup",m);this.listeners.push({destroy:function(){}});m()}return a};StyleFormatPanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(StyleFormatPanel,BaseFormatPanel);
StyleFormatPanel.prototype.init=function(){var a=this.editorUi.getSelectionState();if(!a.containsLabel&&0<a.cells.length){a.containsImage&&1==a.vertices.length&&"image"==a.style.shape&&null!=a.style.image&&"data:image/svg+xml;"==String(a.style.image).substring(0,19)&&this.container.appendChild(this.addSvgStyles(this.createPanel()));a.fill&&this.container.appendChild(this.addFill(this.createPanel()));this.container.appendChild(this.addStroke(this.createPanel()));this.container.appendChild(this.addLineJumps(this.createPanel()));
var b=this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_OPACITY);b.style.paddingTop="8px";b.style.paddingBottom="10px";this.container.appendChild(b);this.container.appendChild(this.addEffects(this.createPanel()))}b=this.createPanel();b.style.paddingTop="8px";1==a.cells.length&&(this.addEditOps(b),null!=b.firstChild&&mxUtils.br(b));1<=a.cells.length&&this.addStyleOps(b);null!=b.firstChild&&this.container.appendChild(b)};
StyleFormatPanel.prototype.getCssRules=function(a){var b=document.implementation.createHTMLDocument(""),e=document.createElement("style");mxUtils.setTextContent(e,a);b.body.appendChild(e);return e.sheet.cssRules};
StyleFormatPanel.prototype.addSvgStyles=function(a){var b=this.editorUi.getSelectionState();a.style.paddingTop="6px";a.style.paddingBottom="6px";a.style.fontWeight="bold";a.style.display="none";try{var e=b.style.editableCssRules;if(null!=e){var f=new RegExp(e),h=b.style.image.substring(b.style.image.indexOf(",")+1),d=window.atob?decodeURIComponent(escape(atob(h))):Base64.decode(h,!0),g=mxUtils.parseXml(d);if(null!=g){var m="light"==g.documentElement.style.colorScheme||"0"==mxUtils.getValue(b.style,
-"darkMode",null),p=""==g.documentElement.style.colorScheme,k=g.getElementsByTagName("style");for(b=0;b<k.length;b++){var u=this.getCssRules(mxUtils.getTextContent(k[b]));for(e=0;e<u.length;e++)this.addSvgRule(a,u[e],g,k[b],u,e,f,m,p)}}}}catch(w){}return a};StyleFormatPanel.prototype.getColorSchemeFromCss=function(a){return(a=a.match(/color-scheme\s*:\s*([^;]+)/i))?a[1].trim():null};
-StyleFormatPanel.prototype.addSvgRule=function(a,b,e,f,h,d,g,m,p){var k=this.editorUi,u=k.editor.graph;g.test(b.selectorText)&&(g=mxUtils.bind(this,function(w,z,C,E){var D=mxUtils.trim(w.style[z]);if(""!=D&&"url("!=D.substring(0,4)){var G=D;"transparent"==G?G=mxConstants.NONE:(D=mxUtils.isLightDarkColor(G))&&E?E=!1:D||E||(G="light-dark("+G+", "+G+")");w=this.createColorOption(C+" "+w.selectorText,function(){return G},mxUtils.bind(this,function(J){h[d].style[z]=J==mxConstants.NONE?"transparent":mxUtils.getLightDarkColor(J).cssText;
-J="";p&&mxUtils.isLightDarkColor(h[d].style[z])&&(e.documentElement.style.colorScheme="light dark");for(var L=0;L<h.length;L++)J+=h[L].cssText+" ";f.textContent=J;J=mxUtils.getXml(e.documentElement);u.setCellStyles(mxConstants.STYLE_IMAGE,"data:image/svg+xml,"+(window.btoa?btoa(unescape(encodeURIComponent(J))):Base64.encode(J,!0)),k.getSelectionState().cells)}),"#ffffff",{install:function(J){},destroy:function(){}},null,null,null,E);a.appendChild(w);a.style.display=""}}),g(b,"fill",mxResources.get("fill"),
+"darkMode",null),q=""==g.documentElement.style.colorScheme,k=g.getElementsByTagName("style");for(b=0;b<k.length;b++){var u=this.getCssRules(mxUtils.getTextContent(k[b]));for(e=0;e<u.length;e++)this.addSvgRule(a,u[e],g,k[b],u,e,f,m,q)}}}}catch(w){}return a};StyleFormatPanel.prototype.getColorSchemeFromCss=function(a){return(a=a.match(/color-scheme\s*:\s*([^;]+)/i))?a[1].trim():null};
+StyleFormatPanel.prototype.addSvgRule=function(a,b,e,f,h,d,g,m,q){var k=this.editorUi,u=k.editor.graph;g.test(b.selectorText)&&(g=mxUtils.bind(this,function(w,z,C,E){var D=mxUtils.trim(w.style[z]);if(""!=D&&"url("!=D.substring(0,4)){var G=D;"transparent"==G?G=mxConstants.NONE:(D=mxUtils.isLightDarkColor(G))&&E?E=!1:D||E||(G="light-dark("+G+", "+G+")");w=this.createColorOption(C+" "+w.selectorText,function(){return G},mxUtils.bind(this,function(J){h[d].style[z]=J==mxConstants.NONE?"transparent":mxUtils.getLightDarkColor(J).cssText;
+J="";q&&mxUtils.isLightDarkColor(h[d].style[z])&&(e.documentElement.style.colorScheme="light dark");for(var L=0;L<h.length;L++)J+=h[L].cssText+" ";f.textContent=J;J=mxUtils.getXml(e.documentElement);u.setCellStyles(mxConstants.STYLE_IMAGE,"data:image/svg+xml,"+(window.btoa?btoa(unescape(encodeURIComponent(J))):Base64.encode(J,!0)),k.getSelectionState().cells)}),"#ffffff",{install:function(J){},destroy:function(){}},null,null,null,E);a.appendChild(w);a.style.display=""}}),g(b,"fill",mxResources.get("fill"),
m),g(b,"stroke",mxResources.get("line"),m),g(b,"stop-color",mxResources.get("gradient"),m))};
StyleFormatPanel.prototype.addEditOps=function(a){var b=this.editorUi.getSelectionState();if(1==b.cells.length){var e=document.createElement("select");e.style.width="210px";e.style.textAlign="center";e.style.marginBottom="2px";var f="edit copyAsText editLink editShape editImage editData copyData pasteData editConnectionPoints editGeometry editTooltip editStyle".split(" "),h=null;if(null!=this.editorUi.sidebar){var d=this.editorUi.sidebar.getKeyStyle(b.cells[0].style);h=this.editorUi.sidebar.getLibsForStyle(d);
-null!=h||this.editorUi.sidebar.isSearchIndexLoaded()||null==b.style.shape||"mxgraph."!=String(b.style.shape).substring(0,8)||(h=[])}null!=h&&f.push("openLibrary");for(d=0;d<f.length;d++){var g=this.editorUi.actions.get(f[d]);if(null==g||g.enabled){var m=document.createElement("option");m.setAttribute("value",f[d]);var p=mxResources.get(f[d]);mxUtils.write(m,p+("edit"==f[d]?"":"..."));null!=g&&null!=g.shortcut&&(p+=" ("+g.shortcut+")");m.setAttribute("title",p);e.appendChild(m)}}1<e.children.length&&
+null!=h||this.editorUi.sidebar.isSearchIndexLoaded()||null==b.style.shape||"mxgraph."!=String(b.style.shape).substring(0,8)||(h=[])}null!=h&&f.push("openLibrary");for(d=0;d<f.length;d++){var g=this.editorUi.actions.get(f[d]);if(null==g||g.enabled){var m=document.createElement("option");m.setAttribute("value",f[d]);var q=mxResources.get(f[d]);mxUtils.write(m,q+("edit"==f[d]?"":"..."));null!=g&&null!=g.shortcut&&(q+=" ("+g.shortcut+")");m.setAttribute("title",q);e.appendChild(m)}}1<e.children.length&&
(a.appendChild(e),mxEvent.addListener(e,"change",mxUtils.bind(this,function(k){"openLibrary"==e.value?(null!=h&&0==h.length&&(this.editorUi.sidebar.updateSearchIndex(),k=this.editorUi.sidebar.getKeyStyle(b.cells[0].style),h=this.editorUi.sidebar.getLibsForStyle(k)),null!=h&&0<h.length?this.editorUi.sidebar.openLibraries(h):this.editorUi.handleError({message:mxResources.get("objectNotFound")}),e.value="edit"):(k=this.editorUi.actions.get(e.value),e.value="edit",null!=k&&k.funct())})),b.image&&(f=this.editorUi.editor.graph,
f=f.view.getState(f.getSelectionCell()),null!=f&&null!=mxUtils.getValue(f.style,mxConstants.STYLE_IMAGE,null)&&(f=mxUtils.button(mxResources.get("crop")+"...",mxUtils.bind(this,function(k){this.editorUi.actions.get("crop").funct()})),f.setAttribute("title",mxResources.get("crop")),e.style.width="104px",f.style.width="104px",f.style.marginLeft="2px",f.style.marginBottom="2px",a.appendChild(f))))}return a};
StyleFormatPanel.prototype.addFill=function(a){function b(){g.innerHTML="";C=1;for(var D=0;D<Editor.fillStyles.length;D++){var G=document.createElement("option");G.setAttribute("value",Editor.fillStyles[D].val);mxUtils.write(G,Editor.fillStyles[D].dispName);g.appendChild(G)}}var e=this.editorUi,f=e.editor.graph,h=e.getSelectionState();a.style.paddingTop="6px";a.style.paddingBottom="6px";var d=document.createElement("select");d.style.position="absolute";d.style.left="104px";d.style.width="70px";d.style.height=
"22px";d.style.marginTop="-3px";d.style.borderWidth="1px";d.style.borderStyle="solid";d.style.boxSizing="border-box";var g=d.cloneNode(!1);mxEvent.addListener(d,"click",function(D){mxEvent.consume(D)});mxEvent.addListener(g,"click",function(D){mxEvent.consume(D)});var m=this.createCellColorOption(mxResources.get("gradient"),mxConstants.STYLE_GRADIENTCOLOR,"default",function(D){d.style.display=null==D||D==mxConstants.NONE?"none":""},function(D){f.updateCellStyles({gradientColor:D},f.getSelectionCells())},
-f.getDefaultColor(h.style,mxConstants.STYLE_GRADIENTCOLOR,f.shapeForegroundColor,f.shapeBackgroundColor));m.style.fontWeight="bold";var p="image"==h.style.shape?mxConstants.STYLE_IMAGE_BACKGROUND:mxConstants.STYLE_FILLCOLOR,k=this.createCellColorOption(mxResources.get("fill"),p,"default",null,mxUtils.bind(this,function(D){f.setCellStyles(p,D,h.cells)}),f.getDefaultColor(h.style,p,f.shapeBackgroundColor,f.shapeForegroundColor));k.style.fontWeight="bold";var u=mxUtils.getValue(h.style,p,null);m.style.display=
+f.getDefaultColor(h.style,mxConstants.STYLE_GRADIENTCOLOR,f.shapeForegroundColor,f.shapeBackgroundColor));m.style.fontWeight="bold";var q="image"==h.style.shape?mxConstants.STYLE_IMAGE_BACKGROUND:mxConstants.STYLE_FILLCOLOR,k=this.createCellColorOption(mxResources.get("fill"),q,"default",null,mxUtils.bind(this,function(D){f.setCellStyles(q,D,h.cells)}),f.getDefaultColor(h.style,q,f.shapeBackgroundColor,f.shapeForegroundColor));k.style.fontWeight="bold";var u=mxUtils.getValue(h.style,q,null);m.style.display=
null!=u&&u!=mxConstants.NONE&&h.fill&&"image"!=h.style.shape?"":"none";var w=[mxConstants.DIRECTION_NORTH,mxConstants.DIRECTION_EAST,mxConstants.DIRECTION_SOUTH,mxConstants.DIRECTION_WEST,mxConstants.DIRECTION_RADIAL];for(u=0;u<w.length;u++){var z=document.createElement("option");z.setAttribute("value",w[u]);mxUtils.write(z,mxResources.get(w[u]));d.appendChild(z)}m.appendChild(d);var C;b();h.gradient&&k.appendChild(g);var E=mxUtils.bind(this,function(){h=e.getSelectionState();var D=mxUtils.getValue(h.style,
-mxConstants.STYLE_GRADIENT_DIRECTION,mxConstants.DIRECTION_SOUTH),G=mxUtils.getValue(h.style,"fillStyle","auto");""==D&&(D=mxConstants.DIRECTION_SOUTH);d.value=D;a.style.display=h.fill?"":"none";D=mxUtils.getValue(h.style,p,null);if(h.fill&&null!=D&&D!=mxConstants.NONE&&"filledEdge"!=h.style.shape){if("1"==h.style.sketch){if(2!=C){g.innerHTML="";C=2;for(D=0;D<Editor.roughFillStyles.length;D++){var J=document.createElement("option");J.setAttribute("value",Editor.roughFillStyles[D].val);mxUtils.write(J,
+mxConstants.STYLE_GRADIENT_DIRECTION,mxConstants.DIRECTION_SOUTH),G=mxUtils.getValue(h.style,"fillStyle","auto");""==D&&(D=mxConstants.DIRECTION_SOUTH);d.value=D;a.style.display=h.fill?"":"none";D=mxUtils.getValue(h.style,q,null);if(h.fill&&null!=D&&D!=mxConstants.NONE&&"filledEdge"!=h.style.shape){if("1"==h.style.sketch){if(2!=C){g.innerHTML="";C=2;for(D=0;D<Editor.roughFillStyles.length;D++){var J=document.createElement("option");J.setAttribute("value",Editor.roughFillStyles[D].val);mxUtils.write(J,
Editor.roughFillStyles[D].dispName);g.appendChild(J)}g.value="auto"}}else 1!=C&&b();g.value=G;g.value||(G="auto",g.value=G);g.style.display="1"==h.style.sketch||"none"==d.style.display?"":"none";m.style.display=!h.gradient||h.containsImage||"1"==h.style.sketch&&"solid"!=G&&"auto"!=G?"none":""}else g.style.display="none",m.style.display="none"});f.getModel().addListener(mxEvent.CHANGE,E);this.listeners.push({destroy:function(){f.getModel().removeListener(E)}});E();mxEvent.addListener(d,"change",function(D){f.setCellStyles(mxConstants.STYLE_GRADIENT_DIRECTION,
d.value,h.cells);e.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_GRADIENT_DIRECTION],"values",[d.value],"cells",h.cells));mxEvent.consume(D)});mxEvent.addListener(g,"change",function(D){f.setCellStyles("fillStyle",g.value,h.cells);e.fireEvent(new mxEventObject("styleChanged","keys",["fillStyle"],"values",[g.value],"cells",h.cells));mxEvent.consume(D)});a.appendChild(k);a.appendChild(m);k=this.getCustomColors();for(u=0;u<k.length;u++)a.appendChild(this.createCellColorOption(k[u].title,
k[u].key,k[u].defaultValue));return a};StyleFormatPanel.prototype.getCustomColors=function(){var a=[];this.editorUi.getSelectionState().swimlane&&a.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return a};
StyleFormatPanel.prototype.addStroke=function(a){function b(H){var ea=f.fromUnit(parseFloat(J.value));ea=Math.min(999,Math.max(0,isNaN(ea)?1:ea));ea!=mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)&&(d.setCellStyles(mxConstants.STYLE_STROKEWIDTH,ea,g.cells),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_STROKEWIDTH],"values",[ea],"cells",g.cells)));J.value=f.inUnit(ea)+" "+f.getUnit();mxEvent.consume(H)}function e(H){var ea=f.fromUnit(parseFloat(L.value));ea=Math.min(999,
Math.max(0,isNaN(ea)?1:ea));ea!=mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)&&(d.setCellStyles(mxConstants.STYLE_STROKEWIDTH,ea,g.cells),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_STROKEWIDTH],"values",[ea],"cells",g.cells)));L.value=f.inUnit(ea)+" "+f.getUnit();mxEvent.consume(H)}var f=this,h=this.editorUi,d=h.editor.graph,g=h.getSelectionState();a.style.paddingTop="6px";a.style.paddingBottom="4px";a.style.whiteSpace="normal";var m=document.createElement("div");
-m.style.fontWeight="bold";g.stroke||(m.style.display="none");var p=document.createElement("select");p.style.position="absolute";p.style.height="22px";p.style.marginTop="-3px";p.style.textAlign="center";p.style.boxSizing="border-box";p.style.left="90px";p.style.width="83px";p.style.borderWidth="1px";p.style.borderStyle="solid";for(var k=["sharp","rounded","curved"],u=0;u<k.length;u++){var w=document.createElement("option");w.setAttribute("value",k[u]);mxUtils.write(w,mxResources.get(k[u]));p.appendChild(w)}mxEvent.addListener(p,
-"change",function(H){d.getModel().beginUpdate();try{var ea=[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],ra=["0","0"];"rounded"==p.value?ra=["1","0"]:"curved"==p.value&&(ra=["0","1"]);for(var qa=0;qa<ea.length;qa++)d.setCellStyles(ea[qa],ra[qa],g.cells);h.fireEvent(new mxEventObject("styleChanged","keys",ea,"values",ra,"cells",g.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(H)});mxEvent.addListener(p,"click",function(H){mxEvent.consume(H)});var z="image"==g.style.shape?mxConstants.STYLE_IMAGE_BORDER:
-mxConstants.STYLE_STROKECOLOR;k="image"==g.style.shape?mxResources.get("border"):mxResources.get("line");k=this.createCellColorOption(k,z,"default",null,mxUtils.bind(this,function(H){d.setCellStyles(z,H,g.cells);if(null==H||H==mxConstants.NONE){H=[];for(var ea=0;ea<g.cells.length;ea++)(d.isTableCell(g.cells[ea])||d.isTableRow(g.cells[ea]))&&H.push(g.cells[ea]);0<H.length&&d.setCellStyles(z,"inherit",H)}}),d.shapeForegroundColor);k.appendChild(p);m.appendChild(k);var C=m.cloneNode(!1);C.style.display=
+m.style.fontWeight="bold";g.stroke||(m.style.display="none");var q=document.createElement("select");q.style.position="absolute";q.style.height="22px";q.style.marginTop="-3px";q.style.textAlign="center";q.style.boxSizing="border-box";q.style.left="90px";q.style.width="83px";q.style.borderWidth="1px";q.style.borderStyle="solid";for(var k=["sharp","rounded","curved"],u=0;u<k.length;u++){var w=document.createElement("option");w.setAttribute("value",k[u]);mxUtils.write(w,mxResources.get(k[u]));q.appendChild(w)}mxEvent.addListener(q,
+"change",function(H){d.getModel().beginUpdate();try{var ea=[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],ra=["0","0"];"rounded"==q.value?ra=["1","0"]:"curved"==q.value&&(ra=["0","1"]);for(var qa=0;qa<ea.length;qa++)d.setCellStyles(ea[qa],ra[qa],g.cells);h.fireEvent(new mxEventObject("styleChanged","keys",ea,"values",ra,"cells",g.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(H)});mxEvent.addListener(q,"click",function(H){mxEvent.consume(H)});var z="image"==g.style.shape?mxConstants.STYLE_IMAGE_BORDER:
+mxConstants.STYLE_STROKECOLOR;k="image"==g.style.shape?mxResources.get("border"):mxResources.get("line");k=this.createCellColorOption(k,z,"default",null,mxUtils.bind(this,function(H){d.setCellStyles(z,H,g.cells);if(null==H||H==mxConstants.NONE){H=[];for(var ea=0;ea<g.cells.length;ea++)(d.isTableCell(g.cells[ea])||d.isTableRow(g.cells[ea]))&&H.push(g.cells[ea]);0<H.length&&d.setCellStyles(z,"inherit",H)}}),d.shapeForegroundColor);k.appendChild(q);m.appendChild(k);var C=m.cloneNode(!1);C.style.display=
"inline-flex";C.style.alignItems="top";C.style.fontWeight="normal";C.style.whiteSpace="nowrap";C.style.position="relative";C.style.paddingLeft="5px";C.style.overflow="hidden";C.style.marginTop="2px";C.style.width="220px";var E=mxUtils.bind(this,function(H,ea,ra,qa,Pa){H=this.editorUi.menus.styleChange(H,"",qa,Pa,"geIcon",null);qa=document.createElement("div");qa.style.width=ea+"px";qa.style.height="1px";qa.style.paddingTop="6px";Pa=ra.split(" ");2==Pa.length?(ra=parseInt(Pa[0])+parseInt(Pa[1]),Pa=
parseInt(Pa[0])/ra*100,qa.style.borderBottom="1px pat transparent",qa.style.backgroundImage="linear-gradient(to right, currentcolor "+Pa+"%, transparent 0%)",qa.style.backgroundPosition="bottom left",qa.style.backgroundSize=ra+"px 1px",qa.style.backgroundRepeat="repeat-x"):qa.style.borderBottom="1px "+ra+" currentcolor";H.firstChild.firstChild.style.padding="0px 4px 0px 4px";H.firstChild.firstChild.style.width=ea+"px";H.firstChild.firstChild.appendChild(qa);return H});u=this.editorUi.toolbar.addMenuFunctionInContainer(C,
null,mxResources.get("pattern"),!1,mxUtils.bind(this,function(H){E(H,75,"solid",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],[null,null]).setAttribute("title",mxResources.get("solid"));E(H,75,"dashed",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1",null]).setAttribute("title",mxResources.get("dashed")+" (1)");E(H,75,"8 8",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","8 8"]).setAttribute("title",mxResources.get("dashed")+" (2)");E(H,75,"12 12",[mxConstants.STYLE_DASHED,
@@ -3243,7 +3243,7 @@ Q.appendChild(P);var T=document.createElement("div");T.style.width="30px";T.styl
mxUtils.write(w,mxResources.get("linestart"));u.appendChild(w);var Z=this.addUnitInput(u,this.getUnit(),98,52,function(){X.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),ia=this.addUnitInput(u,this.getUnit(),30,52,function(){O.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(u);this.addLabel(u,mxResources.get("spacing"),98,64).style.fontSize="11px";this.addLabel(u,mxResources.get("size"),30,64).style.fontSize="11px";mxUtils.br(u);m=m.cloneNode(!1);
m.style.fontWeight="normal";m.style.position="relative";m.style.paddingLeft="16px";m.style.marginBottom="2px";m.style.marginTop="6px";m.style.borderWidth="0px";m.style.paddingBottom="18px";w=document.createElement("div");w.style.position="absolute";w.style.marginLeft="3px";w.style.marginBottom="12px";w.style.marginTop="1px";w.style.fontWeight="normal";w.style.width="120px";mxUtils.write(w,mxResources.get("perimeter"));m.appendChild(w);var oa=this.addUnitInput(m,this.getUnit(),30,52,function(){ca.apply(this,
arguments)},this.getUnitStep(),null,null,this.isFloatUnit());g.edges.length==g.cells.length?(a.appendChild(k),a.appendChild(u)):g.vertices.length==g.cells.length&&a.appendChild(m);var sa=mxUtils.bind(this,function(H,ea,ra){function qa(Pa,ma,Ba,Ca){Ba=Ba.getElementsByTagName("div")[0];null!=Ba&&h.updateCssForMarker(Ba,Ca,g.style.shape,Pa,ma);return Ba}g=h.getSelectionState();if(ra||document.activeElement!=J)H=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)),J.value=isNaN(H)?"":
-this.inUnit(H)+" "+this.getUnit();if(ra||document.activeElement!=L)H=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)),L.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();p.style.visibility="connector"==g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape?"":"hidden";"1"==mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,null)?p.value="curved":"1"==mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,null)&&(p.value="rounded");P.style.borderBottom="1px solid currentcolor";
+this.inUnit(H)+" "+this.getUnit();if(ra||document.activeElement!=L)H=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)),L.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();q.style.visibility="connector"==g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape?"":"hidden";"1"==mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,null)?q.value="curved":"1"==mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,null)&&(q.value="rounded");P.style.borderBottom="1px solid currentcolor";
"1"==mxUtils.getValue(g.style,mxConstants.STYLE_DASHED,null)&&(H=mxUtils.getValue(g.style,mxConstants.STYLE_DASH_PATTERN,""),ea=String(H).split(" "),2<=ea.length?(H=parseInt(ea[0])+parseInt(ea[1]),ea=parseInt(ea[0])/H*100,P.style.borderBottom="1px solid transparent",P.style.backgroundImage="linear-gradient(to right, currentcolor "+ea+"%, transparent 0%)",P.style.backgroundPosition="bottom left",P.style.backgroundSize=H+"px 1px",P.style.backgroundRepeat="repeat-x"):P.style.borderBottom="1px dashed currentcolor");
T.style.backgroundImage=P.style.backgroundImage;T.style.backgroundPosition=P.style.backgroundPosition;T.style.backgroundSize=P.style.backgroundSize;T.style.backgroundRepeat=P.style.backgroundRepeat;T.style.borderBottom=P.style.borderBottom;H=N.getElementsByTagName("div")[0];null!=H&&(H.style.backgroundPosition="center center",H.style.backgroundRepeat="no-repeat",H.className="geAdaptiveAsset",H.style.height="",ea=mxUtils.getValue(g.style,mxConstants.STYLE_EDGE,null),"1"==mxUtils.getValue(g.style,mxConstants.STYLE_NOEDGESTYLE,
null)&&(ea=null),"orthogonalEdgeStyle"==ea&&"1"==mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,null)?H.style.backgroundImage="url("+Format.curvedImage.src+")":"straight"==ea||"none"==ea||null==ea?H.style.backgroundImage="url("+Format.straightImage.src+")":"entityRelationEdgeStyle"==ea?H.style.backgroundImage="url("+Format.entityImage.src+")":"elbowEdgeStyle"==ea?"vertical"==mxUtils.getValue(g.style,mxConstants.STYLE_ELBOW,null)?H.style.backgroundImage="url("+Format.verticalElbowImage.src+")":
@@ -3256,30 +3256,30 @@ parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0))
sa);this.addKeyHandler(Z,sa);this.addKeyHandler(V,sa);this.addKeyHandler(K,sa);this.addKeyHandler(oa,sa);d.getModel().addListener(mxEvent.CHANGE,sa);this.listeners.push({destroy:function(){d.getModel().removeListener(sa)}});sa();return a};
StyleFormatPanel.prototype.addLineJumps=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();if(Graph.lineJumpsEnabled&&0<f.edges.length&&0==f.vertices.length&&f.lineJumps){a.style.padding="2px 0px 24px 14px";var h=document.createElement("div");h.style.position="absolute";h.style.maxWidth="78px";h.style.overflow="hidden";h.style.textOverflow="ellipsis";mxUtils.write(h,mxResources.get("lineJumps"));a.appendChild(h);var d=document.createElement("select");d.style.position="absolute";
d.style.height="21px";d.style.marginTop="-2px";d.style.boxSizing="border-box";d.style.textAlign="center";d.style.right="84px";d.style.width="64px";d.style.borderWidth="1px";d.style.borderStyle="solid";h=["none","arc","gap","sharp","line"];for(var g=0;g<h.length;g++){var m=document.createElement("option");m.setAttribute("value",h[g]);mxUtils.write(m,mxResources.get(h[g]));d.appendChild(m)}mxEvent.addListener(d,"change",function(w){e.getModel().beginUpdate();try{e.setCellStyles("jumpStyle",d.value,
-f.cells),b.fireEvent(new mxEventObject("styleChanged","keys",["jumpStyle"],"values",[d.value],"cells",f.cells))}finally{e.getModel().endUpdate()}mxEvent.consume(w)});mxEvent.addListener(d,"click",function(w){mxEvent.consume(w)});a.appendChild(d);var p=this.addUnitInput(a,this.getUnit(),16,52,function(){k.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());var k=this.installInputHandler(p,"jumpSize",Graph.defaultJumpSize,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var u=
-mxUtils.bind(this,function(w,z,C){f=b.getSelectionState();d.value=mxUtils.getValue(f.style,"jumpStyle","none");if(C||document.activeElement!=p)w=parseInt(mxUtils.getValue(f.style,"jumpSize",Graph.defaultJumpSize)),p.value=isNaN(w)?"":this.inUnit(w)+" "+this.getUnit()});this.addKeyHandler(p,u);e.getModel().addListener(mxEvent.CHANGE,u);this.listeners.push({destroy:function(){e.getModel().removeListener(u)}});u()}else a.style.display="none";return a};
-StyleFormatPanel.prototype.addEffects=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();a.style.paddingTop="4px";a.style.paddingBottom="4px";var h=document.createElement("table");h.style.width="210px";h.style.fontWeight="bold";h.style.tableLayout="fixed";var d=document.createElement("tbody"),g=document.createElement("tr");g.style.padding="0px";var m=document.createElement("td");m.style.padding="0px";m.style.width="50%";m.setAttribute("valign","top");var p=m.cloneNode(!0);p.style.paddingLeft=
-"8px";g.appendChild(m);g.appendChild(p);d.appendChild(g);h.appendChild(d);a.appendChild(h);var k=m,u=mxUtils.bind(this,function(z,C,E,D){z=this.createCellOption(z,C,E,null,null,D);z.style.width="100%";k.appendChild(z);k=k==m?p:m;return z}),w=mxUtils.bind(this,function(z,C,E){f=b.getSelectionState();m.innerText="";p.innerText="";k=m;f.rounded&&u(mxResources.get("rounded"),mxConstants.STYLE_ROUNDED,0);f.swimlane&&u(mxResources.get("divider"),"swimlaneLine",1);u(mxResources.get("sketch"),"sketch",0,
+f.cells),b.fireEvent(new mxEventObject("styleChanged","keys",["jumpStyle"],"values",[d.value],"cells",f.cells))}finally{e.getModel().endUpdate()}mxEvent.consume(w)});mxEvent.addListener(d,"click",function(w){mxEvent.consume(w)});a.appendChild(d);var q=this.addUnitInput(a,this.getUnit(),16,52,function(){k.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());var k=this.installInputHandler(q,"jumpSize",Graph.defaultJumpSize,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var u=
+mxUtils.bind(this,function(w,z,C){f=b.getSelectionState();d.value=mxUtils.getValue(f.style,"jumpStyle","none");if(C||document.activeElement!=q)w=parseInt(mxUtils.getValue(f.style,"jumpSize",Graph.defaultJumpSize)),q.value=isNaN(w)?"":this.inUnit(w)+" "+this.getUnit()});this.addKeyHandler(q,u);e.getModel().addListener(mxEvent.CHANGE,u);this.listeners.push({destroy:function(){e.getModel().removeListener(u)}});u()}else a.style.display="none";return a};
+StyleFormatPanel.prototype.addEffects=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();a.style.paddingTop="4px";a.style.paddingBottom="4px";var h=document.createElement("table");h.style.width="210px";h.style.fontWeight="bold";h.style.tableLayout="fixed";var d=document.createElement("tbody"),g=document.createElement("tr");g.style.padding="0px";var m=document.createElement("td");m.style.padding="0px";m.style.width="50%";m.setAttribute("valign","top");var q=m.cloneNode(!0);q.style.paddingLeft=
+"8px";g.appendChild(m);g.appendChild(q);d.appendChild(g);h.appendChild(d);a.appendChild(h);var k=m,u=mxUtils.bind(this,function(z,C,E,D){z=this.createCellOption(z,C,E,null,null,D);z.style.width="100%";k.appendChild(z);k=k==m?q:m;return z}),w=mxUtils.bind(this,function(z,C,E){f=b.getSelectionState();m.innerText="";q.innerText="";k=m;f.rounded&&u(mxResources.get("rounded"),mxConstants.STYLE_ROUNDED,0);f.swimlane&&u(mxResources.get("divider"),"swimlaneLine",1);u(mxResources.get("sketch"),"sketch",0,
function(D,G){e.updateCellStyles({sketch:G?"1":null,curveFitting:G?Editor.sketchDefaultCurveFitting:null,jiggle:G?Editor.sketchDefaultJiggle:null},D)});f.glass&&u(mxResources.get("glass"),mxConstants.STYLE_GLASS,0);z=u(mxResources.get("shadow"),mxConstants.STYLE_SHADOW,0);Editor.enableShadowOption||(z.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(z,60));0<f.edges.length&&0==f.vertices.length&&u(mxResources.get("flowAnimation",null,"Flow Animation"),"flowAnimation",
0)});e.getModel().addListener(mxEvent.CHANGE,w);this.listeners.push({destroy:function(){e.getModel().removeListener(w)}});w();return a};StyleFormatPanel.prototype.addStyleOps=function(a){1==this.editorUi.getSelectionState().cells.length&&this.addActions(a,["setAsDefaultStyle"]);return a};DiagramStylePanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(DiagramStylePanel,BaseFormatPanel);DiagramStylePanel.prototype.init=function(){this.container.appendChild(this.addView(this.createPanel()))};
DiagramStylePanel.prototype.getGlobalStyleButtons=function(){var a=this.editorUi,b=a.editor.graph,e=document.createElement("div");e.style.alignItems="center";e.style.textAlign="left";e.style.display="flex";var f=document.createElement("input");f.setAttribute("type","checkbox");f.style.margin="1px 6px 0px 0px";f.checked=Editor.sketchMode;e.appendChild(f);mxUtils.write(e,mxResources.get("sketch"));mxEvent.addListener(e,"click",function(d){if(b.isEnabled()){var g=!Editor.sketchMode;Editor.sketchMode=
-g;b.updateCellStyles({sketch:g?"1":null,curveFitting:g?Editor.sketchDefaultCurveFitting:null,jiggle:g?Editor.sketchDefaultJiggle:null},b.getVerticesAndEdges());mxEvent.consume(d);window.setTimeout(function(){Editor.sketchMode=!g;a.setSketchMode(g)})}});e=[e,mxUtils.button(mxResources.get("rounded"),mxUtils.bind(this,function(d){var g=b.getVerticesAndEdges(),m=!0;if(0<g.length)for(var p=0;p<g.length;p++){var k=b.getCellStyle(g[p]);if(0==mxUtils.getValue(k,mxConstants.STYLE_ROUNDED,0)){m=!1;break}}m=
+g;b.updateCellStyles({sketch:g?"1":null,curveFitting:g?Editor.sketchDefaultCurveFitting:null,jiggle:g?Editor.sketchDefaultJiggle:null},b.getVerticesAndEdges());mxEvent.consume(d);window.setTimeout(function(){Editor.sketchMode=!g;a.setSketchMode(g)})}});e=[e,mxUtils.button(mxResources.get("rounded"),mxUtils.bind(this,function(d){var g=b.getVerticesAndEdges(),m=!0;if(0<g.length)for(var q=0;q<g.length;q++){var k=b.getCellStyle(g[q]);if(0==mxUtils.getValue(k,mxConstants.STYLE_ROUNDED,0)){m=!1;break}}m=
!m;b.updateCellStyles({rounded:m?"1":"0"},g);m?(b.currentEdgeStyle.rounded="1",b.currentVertexStyle.rounded="1"):(delete b.currentEdgeStyle.rounded,delete b.currentVertexStyle.rounded);mxEvent.consume(d)}))];if(!b.isEnabled())for(f=0;f<e.length;f++)if("BUTTON"==e[f].nodeName)e[f].setAttribute("disabled","disabled");else{var h=e[f].getElementsByTagName("input");0<h.length&&h[0].setAttribute("disabled","disabled")}return e};
DiagramStylePanel.prototype.addView=function(a){var b=this.editorUi,e=b.editor.graph;a.style.paddingTop="2px";a.style.whiteSpace="normal";var f=document.createElement("div");f.style.marginRight="16px";f.style.paddingBottom="2px";if(e.isEnabled()){var h=document.createElement("div");h.style.display="flex";h.style.alignItems="center";h.style.padding="4px 0px 0px 4px";h.style.height="18px";var d=mxResources.get("adaptiveColors"),g=document.createElement("div");g.setAttribute("title",d);g.style.display=
"inline-block";g.style.whiteSpace="nowrap";g.style.textOverflow="ellipsis";g.style.overflow="hidden";g.style.maxWidth="92px";g.style.width="92px";g.style.userSelect="none";mxUtils.write(g,d);h.appendChild(g);mxClient.IS_FF&&(g.style.marginTop="1px");var m=document.createElement("select");m.style.textOverflow="ellipsis";m.style.height="22px";m.style.position="absolute";m.style.maxWidth="70px";m.style.width="70px";m.style.left="127px";d=document.createElement("option");d.setAttribute("title",mxResources.get("default")+
" ("+mxResources.get(Graph.getDefaultAdaptiveColorsKey())+")");mxUtils.write(d,mxUtils.htmlEntities(d.getAttribute("title")));d.setAttribute("value","default");m.appendChild(d);d=document.createElement("option");d.setAttribute("title",mxResources.get("automatic"));mxUtils.write(d,mxUtils.htmlEntities(d.getAttribute("title")));d.setAttribute("value","auto");m.appendChild(d);d=document.createElement("option");d.setAttribute("title",mxResources.get("simple"));mxUtils.write(d,mxUtils.htmlEntities(d.getAttribute("title")));
d.setAttribute("value","simple");m.appendChild(d);d=document.createElement("option");d.setAttribute("title",mxResources.get("none"));mxUtils.write(d,mxUtils.htmlEntities(d.getAttribute("title")));d.setAttribute("value","none");m.appendChild(d);m.value=null==e.adaptiveColors?"default":e.adaptiveColors;mxEvent.addListener(m,"change",function(){var C=new ChangePageSetup(b);C.ignoreColor=!0;C.ignoreImage=!0;C.adaptiveColors=m.value;e.model.execute(C)});h.appendChild(m);if(!b.isOffline()||mxClient.IS_CHROMEAPP||
-EditorUi.isElectronApp)d=b.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/4713"),d.style.position="absolute",d.style.left="196px",h.appendChild(d);a.appendChild(h)}h=document.createElement("table");h.style.width="204px";d=document.createElement("tbody");g=document.createElement("tr");g.style.padding="0px";var p=document.createElement("td");p.style.textAlign="center";p.style.padding="2px";p.style.width="50%";for(var k=p.cloneNode(!0),u=this.getGlobalStyleButtons(),w=0;w<u.length;w+=
-2){var z=u[w];z.style.height="22px";z.style.width="88px";p.appendChild(z);g.appendChild(p);z=u[w+1];null!=z&&(z.style.height="22px",z.style.width="88px",k.appendChild(z));g.appendChild(k);d.appendChild(g);p=p.cloneNode(!1);k=k.cloneNode(!1);g=g.cloneNode(!1)}h.appendChild(d);f.appendChild(h);a.appendChild(f);e.isEnabled()&&this.addGraphStyles(a);return a};
-DiagramStylePanel.prototype.addGraphStyles=function(a){var b=this.editorUi,e=b.editor.graph,f=e.getModel(),h=e.view.gridColor,d=["fillColor","strokeColor","fontColor","gradientColor"];a.style.whiteSpace="normal";a.style.paddingLeft="18px";a.style.paddingTop="6px";var g=mxUtils.bind(this,function(Y,P){var T=e.getVerticesAndEdges();f.beginUpdate();try{for(var K=0;K<T.length;K++){var V=e.getCellStyle(T[K]);p||null==V.labelBackgroundColor?p&&e.updateCellStyles({labelBackgroundColor:mxConstants.NONE},
-[T[K]]):e.updateCellStyles({labelBackgroundColor:null!=P?P.background:null},[T[K]]);for(var Z=f.isEdge(T[K]),ia=f.getStyle(T[K]),oa=Z?e.currentEdgeStyle:e.currentVertexStyle,sa=0;sa<Y.length;sa++)if(null!=V[Y[sa]]&&V[Y[sa]]!=mxConstants.NONE||Y[sa]!=mxConstants.STYLE_FILLCOLOR&&Y[sa]!=mxConstants.STYLE_STROKECOLOR)ia=p&&Z&&Y[sa]==mxConstants.STYLE_FONTCOLOR?mxUtils.setStyle(ia,Y[sa],"default"):mxUtils.setStyle(ia,Y[sa],oa[Y[sa]]);f.setStyle(T[K],ia)}}finally{f.endUpdate()}}),m=mxUtils.bind(this,function(Y,
-P,T){if(null!=Y)for(var K=0;K<P.length;K++)if(null!=Y[P[K]]&&Y[P[K]]!=mxConstants.NONE||P[K]!=mxConstants.STYLE_FILLCOLOR&&P[K]!=mxConstants.STYLE_STROKECOLOR)Y[P[K]]=T[P[K]]}),p=!0,k=mxUtils.bind(this,function(Y,P,T,K,V){if(null!=Y){null!=T&&(p||null==P.labelBackgroundColor?p&&(P.labelBackgroundColor=mxConstants.NONE):(K=null!=K?K.background:null,V=null!=V?V:e,null==K&&(K=V.background),null==K&&(K=V.defaultPageBackgroundColor),P.labelBackgroundColor=K));for(var Z in Y)if(null==T||null!=P[Z]&&P[Z]!=
-mxConstants.NONE||Z!=mxConstants.STYLE_FILLCOLOR&&Z!=mxConstants.STYLE_STROKECOLOR)p&&f.isEdge(T)&&Z==mxConstants.STYLE_FONTCOLOR?P[Z]="default":P[Z]=Y[Z]}}),u=mxUtils.bind(this,function(Y,P,T,K,V){var Z=document.createElement("div");Z.style.position="absolute";Z.style.display="inline-block";Z.style.overflow="hidden";Z.style.pointerEvents="none";Z.style.width="100%";Z.style.height="100%";V.appendChild(Z);var ia=new Graph(Z,null,null,e.getStylesheet());ia.shapeBackgroundColor="light-dark(#f1f3f4, "+
+EditorUi.isElectronApp)d=b.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/4713"),d.style.position="absolute",d.style.left="196px",h.appendChild(d);a.appendChild(h)}h=document.createElement("table");h.style.width="204px";d=document.createElement("tbody");g=document.createElement("tr");g.style.padding="0px";var q=document.createElement("td");q.style.textAlign="center";q.style.padding="2px";q.style.width="50%";for(var k=q.cloneNode(!0),u=this.getGlobalStyleButtons(),w=0;w<u.length;w+=
+2){var z=u[w];z.style.height="22px";z.style.width="88px";q.appendChild(z);g.appendChild(q);z=u[w+1];null!=z&&(z.style.height="22px",z.style.width="88px",k.appendChild(z));g.appendChild(k);d.appendChild(g);q=q.cloneNode(!1);k=k.cloneNode(!1);g=g.cloneNode(!1)}h.appendChild(d);f.appendChild(h);a.appendChild(f);e.isEnabled()&&this.addGraphStyles(a);return a};
+DiagramStylePanel.prototype.addGraphStyles=function(a){var b=this.editorUi,e=b.editor.graph,f=e.getModel(),h=e.view.gridColor,d=["fillColor","strokeColor","fontColor","gradientColor"];a.style.whiteSpace="normal";a.style.paddingLeft="18px";a.style.paddingTop="6px";var g=mxUtils.bind(this,function(Y,P){var T=e.getVerticesAndEdges();f.beginUpdate();try{for(var K=0;K<T.length;K++){var V=e.getCellStyle(T[K]);q||null==V.labelBackgroundColor?q&&e.updateCellStyles({labelBackgroundColor:mxConstants.NONE},
+[T[K]]):e.updateCellStyles({labelBackgroundColor:null!=P?P.background:null},[T[K]]);for(var Z=f.isEdge(T[K]),ia=f.getStyle(T[K]),oa=Z?e.currentEdgeStyle:e.currentVertexStyle,sa=0;sa<Y.length;sa++)if(null!=V[Y[sa]]&&V[Y[sa]]!=mxConstants.NONE||Y[sa]!=mxConstants.STYLE_FILLCOLOR&&Y[sa]!=mxConstants.STYLE_STROKECOLOR)ia=q&&Z&&Y[sa]==mxConstants.STYLE_FONTCOLOR?mxUtils.setStyle(ia,Y[sa],"default"):mxUtils.setStyle(ia,Y[sa],oa[Y[sa]]);f.setStyle(T[K],ia)}}finally{f.endUpdate()}}),m=mxUtils.bind(this,function(Y,
+P,T){if(null!=Y)for(var K=0;K<P.length;K++)if(null!=Y[P[K]]&&Y[P[K]]!=mxConstants.NONE||P[K]!=mxConstants.STYLE_FILLCOLOR&&P[K]!=mxConstants.STYLE_STROKECOLOR)Y[P[K]]=T[P[K]]}),q=!0,k=mxUtils.bind(this,function(Y,P,T,K,V){if(null!=Y){null!=T&&(q||null==P.labelBackgroundColor?q&&(P.labelBackgroundColor=mxConstants.NONE):(K=null!=K?K.background:null,V=null!=V?V:e,null==K&&(K=V.background),null==K&&(K=V.defaultPageBackgroundColor),P.labelBackgroundColor=K));for(var Z in Y)if(null==T||null!=P[Z]&&P[Z]!=
+mxConstants.NONE||Z!=mxConstants.STYLE_FILLCOLOR&&Z!=mxConstants.STYLE_STROKECOLOR)q&&f.isEdge(T)&&Z==mxConstants.STYLE_FONTCOLOR?P[Z]="default":P[Z]=Y[Z]}}),u=mxUtils.bind(this,function(Y,P,T,K,V){var Z=document.createElement("div");Z.style.position="absolute";Z.style.display="inline-block";Z.style.overflow="hidden";Z.style.pointerEvents="none";Z.style.width="100%";Z.style.height="100%";V.appendChild(Z);var ia=new Graph(Z,null,null,e.getStylesheet());ia.shapeBackgroundColor="light-dark(#f1f3f4, "+
Editor.darkColor+")";ia.resetViewOnRootChange=!1;ia.foldingEnabled=!1;ia.gridEnabled=!1;ia.autoScroll=!1;ia.setTooltips(!1);ia.setConnectable(!1);ia.setPanning(!1);ia.setEnabled(!1);ia.getCellStyle=function(O,X){X=null!=X?X:!0;var ba=mxUtils.clone(e.getCellStyle.apply(this,arguments)),da=e.stylesheet.getDefaultVertexStyle(),ca=P;f.isEdge(O)&&(da=e.stylesheet.getDefaultEdgeStyle(),ca=T);m(ba,d,da);k(Y,ba,O,K,ia);k(ca,ba,O,K,ia);X&&(ba=e.postProcessCellStyle(O,ba));return ba};ia.model.beginUpdate();
try{var oa=ia.insertVertex(ia.getDefaultParent(),null,"Shape",14,8,70,36,"strokeWidth=2;"),sa=ia.insertEdge(ia.getDefaultParent(),null,"Connector",oa,oa,"edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;endSize=5;strokeWidth=2;");sa.geometry.points=[new mxPoint(32,66)];sa.geometry.offset=new mxPoint(0,8)}finally{ia.model.endUpdate()}V=ia.view.getDrawPane().ownerSVGElement;null!=V&&(Z=V.cloneNode(!0),Z.style.position="absolute",Z.style.clipPath="rect(0 52% 100% 0)",V.style.clipPath=
"rect(0 100% 100% 51%)",V.style.colorScheme="light",V.parentNode.appendChild(Z))}),w=document.createElement("div");w.style.position="relative";w.style.width="210px";a.appendChild(w);null==this.format.cachedStyleEntries&&(this.format.cachedStyleEntries=[]);var z=mxUtils.bind(this,function(Y,P,T,K,V){var Z=this.format.cachedStyleEntries[V];null==Z&&(Z=document.createElement("div"),Z.className="geItem",Z.style.position="relative",Z.style.width="96px",Z.style.height="86px",Z.style.cursor="pointer",Z.style.border=
-"1px solid gray",Z.style.borderRadius="8px",Z.style.margin="1px 2px",Z.style.overflow="hidden",p||null==K||null==K.background||(Z.style.backgroundColor=K.background),u(Y,P,T,K,Z),mxEvent.addListener(Z,"click",mxUtils.bind(this,function(ia){e.currentVertexStyle=mxUtils.clone(e.defaultVertexStyle);e.currentEdgeStyle=mxUtils.clone(e.defaultEdgeStyle);k(Y,e.currentVertexStyle);k(Y,e.currentEdgeStyle);k(P,e.currentVertexStyle);k(T,e.currentEdgeStyle);f.beginUpdate();try{var oa=d.slice(),sa;for(sa in Y)oa.push(sa);
-g(oa,K);if(!p){var O=new ChangePageSetup(b,null!=K?K.background:null);O.ignoreImage=!0;f.execute(O);f.execute(new ChangeGridColor(b,null!=K&&null!=K.gridColor?K.gridColor:h))}}finally{f.endUpdate()}})),mxEvent.addGestureListeners(Z,mxUtils.bind(this,function(ia){Z.style.opacity=.5}),null,mxUtils.bind(this,function(ia){Z.style.opacity=1})),mxEvent.addListener(Z,"mouseenter",mxUtils.bind(this,function(ia){var oa=e.getCellStyle;ia=e.background;var sa=e.view.gridColor;p||(e.background=null!=K?K.background:
+"1px solid gray",Z.style.borderRadius="8px",Z.style.margin="1px 2px",Z.style.overflow="hidden",q||null==K||null==K.background||(Z.style.backgroundColor=K.background),u(Y,P,T,K,Z),mxEvent.addListener(Z,"click",mxUtils.bind(this,function(ia){e.currentVertexStyle=mxUtils.clone(e.defaultVertexStyle);e.currentEdgeStyle=mxUtils.clone(e.defaultEdgeStyle);k(Y,e.currentVertexStyle);k(Y,e.currentEdgeStyle);k(P,e.currentVertexStyle);k(T,e.currentEdgeStyle);f.beginUpdate();try{var oa=d.slice(),sa;for(sa in Y)oa.push(sa);
+g(oa,K);if(!q){var O=new ChangePageSetup(b,null!=K?K.background:null);O.ignoreImage=!0;f.execute(O);f.execute(new ChangeGridColor(b,null!=K&&null!=K.gridColor?K.gridColor:h))}}finally{f.endUpdate()}})),mxEvent.addGestureListeners(Z,mxUtils.bind(this,function(ia){Z.style.opacity=.5}),null,mxUtils.bind(this,function(ia){Z.style.opacity=1})),mxEvent.addListener(Z,"mouseenter",mxUtils.bind(this,function(ia){var oa=e.getCellStyle;ia=e.background;var sa=e.view.gridColor;q||(e.background=null!=K?K.background:
null,e.view.gridColor=null!=K&&null!=K.gridColor?K.gridColor:h);e.getCellStyle=function(O,X){X=null!=X?X:!0;var ba=mxUtils.clone(oa.apply(this,arguments)),da=e.stylesheet.getDefaultVertexStyle(),ca=P;f.isEdge(O)&&(da=e.stylesheet.getDefaultEdgeStyle(),ca=T);m(ba,d,da);k(Y,ba,O,K);k(ca,ba,O,K);X&&(ba=this.postProcessCellStyle(O,ba));return ba};e.refresh();e.getCellStyle=oa;e.background=ia;e.view.gridColor=sa;Z.style.border="2px solid blue";Z.style.margin="0px 1px"})),mxEvent.addListener(Z,"mouseleave",
mxUtils.bind(this,function(ia){Z.style.border="1px solid gray";Z.style.margin="1px 2px";e.refresh()})),mxClient.IS_IE||mxClient.IS_IE11||(this.format.cachedStyleEntries[V]=Z));w.appendChild(Z)}),C=Math.ceil(Editor.styles.length/10);this.format.currentStylePage=null!=this.format.currentStylePage?this.format.currentStylePage:0;var E=[],D=mxUtils.bind(this,function(){0<E.length&&(E[this.format.currentStylePage].style.background="#84d7ff");for(var Y=10*this.format.currentStylePage;Y<Math.min(10*(this.format.currentStylePage+
1),Editor.styles.length);Y++){var P=Editor.styles[Y];z(P.commonStyle,P.vertexStyle,P.edgeStyle,P.graph,Y)}}),G=mxUtils.bind(this,function(Y){0<=Y&&Y<C&&(E[this.format.currentStylePage].style.background="transparent",w.innerText="",this.format.currentStylePage=Y,D())});if(1<C){var J=document.createElement("div");J.style.whiteSpace="nowrap";J.style.position="relative";J.style.textAlign="center";J.style.paddingTop="4px";J.style.width="210px";for(var L=0;L<C;L++){var Q=document.createElement("div");Q.style.display=
@@ -3297,17 +3297,17 @@ a.appendChild(this.createOption(mxResources.get("connectionPoints"),function(){r
{install:function(f){this.listener=function(){f(e.graphHandler.guidesEnabled)};b.addListener("guidesEnabledChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}})));return a};
DiagramFormatPanel.prototype.addGridOption=function(a){function b(k){var u=e.isFloatUnit()?parseFloat(d.value):parseInt(d.value);u=e.fromUnit(Math.max(e.inUnit(1),isNaN(u)?e.inUnit(10):u));u!=h.getGridSize()&&(mxGraph.prototype.gridSize=u,h.setGridSize(u));d.value=e.inUnit(u)+" "+e.getUnit();mxEvent.consume(k)}var e=this,f=this.editorUi,h=f.editor.graph,d=document.createElement("input");d.style.position="absolute";d.style.textAlign="right";d.style.width="48px";d.style.marginTop="-2px";d.style.height=
"21px";d.style.borderWidth="1px";d.style.borderStyle="solid";d.style.boxSizing="border-box";d.value=this.inUnit(h.getGridSize())+" "+this.getUnit();var g=this.createStepper(d,b,this.getUnitStep(),null,null,null,this.isFloatUnit());d.style.display=h.isGridEnabled()?"":"none";g.style.display=d.style.display;mxEvent.addListener(d,"keydown",function(k){13==k.keyCode?(h.container.focus(),mxEvent.consume(k)):27==k.keyCode&&(d.value=h.getGridSize(),h.container.focus(),mxEvent.consume(k))});mxEvent.addListener(d,
-"blur",b);mxEvent.addListener(d,"change",b);d.style.left="104px";g.style.marginTop="-2px";g.style.left="152px";var m=function(){return"none"!=h.getAdaptiveColors()&&Editor.isDarkMode()},p="light-dark("+mxGraphView.prototype.defaultGridColor+","+mxGraphView.prototype.defaultDarkGridColor+")";p=this.createColorOption(mxResources.get("grid"),function(){return h.isGridEnabled()?h.view.gridColor:null},function(k){var u=h.isGridEnabled();k==mxConstants.NONE?h.setGridEnabled(!1):(h.setGridEnabled(!0),f.setGridColor(k,
+"blur",b);mxEvent.addListener(d,"change",b);d.style.left="104px";g.style.marginTop="-2px";g.style.left="152px";var m=function(){return"none"!=h.getAdaptiveColors()&&Editor.isDarkMode()},q="light-dark("+mxGraphView.prototype.defaultGridColor+","+mxGraphView.prototype.defaultDarkGridColor+")";q=this.createColorOption(mxResources.get("grid"),function(){return h.isGridEnabled()?h.view.gridColor:null},function(k){var u=h.isGridEnabled();k==mxConstants.NONE?h.setGridEnabled(!1):(h.setGridEnabled(!0),f.setGridColor(k,
m()));d.style.display=h.isGridEnabled()?"":"none";g.style.display=d.style.display;u!=h.isGridEnabled()&&(h.defaultGridEnabled=h.isGridEnabled(),f.fireEvent(new mxEventObject("gridEnabledChanged")))},h.view.gridColor,{install:function(k){this.listener=function(){k(h.isGridEnabled()?h.view.gridColor:mxConstants.NONE)};f.addListener("darkModeChanged",this.listener);f.addListener("gridColorChanged",this.listener);f.addListener("gridEnabledChanged",this.listener)},destroy:function(){f.removeListener(this.listener)}},
-null,null,p,!0,m);p.style.padding="6px 0 0 0";p.appendChild(d);p.appendChild(g);a.appendChild(p)};DiagramFormatPanel.prototype.addDocumentProperties=function(a){a.appendChild(this.createTitle(mxResources.get("options")));return a};
+null,null,q,!0,m);q.style.padding="6px 0 0 0";q.appendChild(d);q.appendChild(g);a.appendChild(q)};DiagramFormatPanel.prototype.addDocumentProperties=function(a){a.appendChild(this.createTitle(mxResources.get("options")));return a};
DiagramFormatPanel.prototype.addPaperSize=function(a){var b=this.editorUi,e=b.editor.graph;a.appendChild(this.createTitle(mxResources.get("paperSize")));var f=PageSetupDialog.addPageFormatPanel(a,"formatpanel",e.pageFormat,function(d){if(null==e.pageFormat||e.pageFormat.width!=d.width||e.pageFormat.height!=d.height)d=new ChangePageSetup(b,null,null,d),d.ignoreColor=!0,d.ignoreImage=!0,e.model.execute(d)});this.addKeyHandler(f.widthInput,function(){f.set(e.pageFormat)});this.addKeyHandler(f.heightInput,
function(){f.set(e.pageFormat)});var h=function(){f.set(e.pageFormat)};b.addListener("pageFormatChanged",h);this.listeners.push({destroy:function(){b.removeListener(h)}});e.getModel().addListener(mxEvent.CHANGE,h);this.listeners.push({destroy:function(){e.getModel().removeListener(h)}});return a};DiagramFormatPanel.prototype.addStyleOps=function(a){this.addActions(a,["editData"]);this.addActions(a,["clearDefaultStyle"]);return a};
-DiagramFormatPanel.prototype.destroy=function(){BaseFormatPanel.prototype.destroy.apply(this,arguments);this.gridEnabledListener&&(this.editorUi.removeListener(this.gridEnabledListener),this.gridEnabledListener=null)};(function(){function a(c,l,t){mxShape.call(this);this.line=c;this.stroke=l;this.strokewidth=null!=t?t:1;this.updateBoundsFromLine()}function b(){mxSwimlane.call(this)}function e(){mxSwimlane.call(this)}function f(){mxCylinder.call(this)}function h(){mxConnector.call(this)}function d(){mxCylinder.call(this)}function g(){mxActor.call(this)}function m(){mxCylinder.call(this)}function p(){mxCylinder.call(this)}function k(){mxCylinder.call(this)}function u(){mxCylinder.call(this)}function w(){mxShape.call(this)}
+DiagramFormatPanel.prototype.destroy=function(){BaseFormatPanel.prototype.destroy.apply(this,arguments);this.gridEnabledListener&&(this.editorUi.removeListener(this.gridEnabledListener),this.gridEnabledListener=null)};(function(){function a(c,l,t){mxShape.call(this);this.line=c;this.stroke=l;this.strokewidth=null!=t?t:1;this.updateBoundsFromLine()}function b(){mxSwimlane.call(this)}function e(){mxSwimlane.call(this)}function f(){mxCylinder.call(this)}function h(){mxConnector.call(this)}function d(){mxCylinder.call(this)}function g(){mxActor.call(this)}function m(){mxCylinder.call(this)}function q(){mxCylinder.call(this)}function k(){mxCylinder.call(this)}function u(){mxCylinder.call(this)}function w(){mxShape.call(this)}
function z(){mxShape.call(this)}function C(c,l,t,n){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=t;this.strokewidth=null!=n?n:1}function E(){mxActor.call(this)}function D(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function J(){mxActor.call(this)}function L(){mxActor.call(this)}function Q(){mxActor.call(this)}function N(){mxActor.call(this)}function U(){mxActor.call(this)}function Y(){mxActor.call(this)}function P(){mxActor.call(this)}function T(c,l){this.canvas=c;this.canvas.setLineJoin("round");
this.canvas.setLineCap("round");this.defaultVariation=l;this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,T.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,T.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,T.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,T.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,
T.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,T.prototype.arcTo)}function K(){mxRectangleShape.call(this)}function V(){mxRectangleShape.call(this)}function Z(){mxActor.call(this)}function ia(){mxActor.call(this)}function oa(){mxActor.call(this)}function sa(){mxRectangleShape.call(this)}function O(){mxRectangleShape.call(this)}function X(){mxCylinder.call(this)}function ba(){mxShape.call(this)}function da(){mxShape.call(this)}function ca(){mxEllipse.call(this)}
function H(){mxShape.call(this)}function ea(){mxShape.call(this)}function ra(){mxRectangleShape.call(this)}function qa(){mxShape.call(this)}function Pa(){mxShape.call(this)}function ma(){mxShape.call(this)}function Ba(){mxShape.call(this)}function Ca(){mxShape.call(this)}function Ja(){mxCylinder.call(this)}function Ia(){mxCylinder.call(this)}function Da(){mxRectangleShape.call(this)}function Ga(){mxDoubleEllipse.call(this)}function ta(){mxDoubleEllipse.call(this)}function La(){mxArrowConnector.call(this);
-this.spacing=0}function Xa(){mxArrowConnector.call(this);this.spacing=0}function Ya(){mxActor.call(this)}function cb(){mxRectangleShape.call(this)}function fb(){mxActor.call(this)}function pb(){mxActor.call(this)}function gb(){mxActor.call(this)}function ab(){mxActor.call(this)}function ib(){mxActor.call(this)}function eb(){mxActor.call(this)}function q(){mxActor.call(this)}function A(){mxActor.call(this)}function B(){mxActor.call(this)}function F(){mxActor.call(this)}function M(){mxEllipse.call(this)}
+this.spacing=0}function Xa(){mxArrowConnector.call(this);this.spacing=0}function Ya(){mxActor.call(this)}function cb(){mxRectangleShape.call(this)}function fb(){mxActor.call(this)}function pb(){mxActor.call(this)}function gb(){mxActor.call(this)}function ab(){mxActor.call(this)}function ib(){mxActor.call(this)}function eb(){mxActor.call(this)}function p(){mxActor.call(this)}function A(){mxActor.call(this)}function B(){mxActor.call(this)}function F(){mxActor.call(this)}function M(){mxEllipse.call(this)}
function R(){mxEllipse.call(this)}function W(){mxEllipse.call(this)}function ha(){mxRhombus.call(this)}function fa(){mxEllipse.call(this)}function ja(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Ma(){mxEllipse.call(this)}function Na(){mxActor.call(this)}function ya(){mxActor.call(this)}function Ha(){mxActor.call(this)}function wa(c,l,t,n){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=t;this.strokewidth=null!=n?n:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=
!0;this.indent=2;this.rectOutline="single"}function ua(){mxConnector.call(this)}function Va(c,l,t,n,r,v,x,I,y,aa){x+=y;var S=n.clone();n.x-=r*(2*x+y);n.y-=v*(2*x+y);r*=x+y;v*=x+y;return function(){c.ellipse(S.x-r-x,S.y-v-x,2*x,2*x);aa?c.fillAndStroke():c.stroke()}}mxUtils.extend(a,mxShape);a.prototype.updateBoundsFromLine=function(){var c=null;if(null!=this.line)for(var l=0;l<this.line.length;l++){var t=this.line[l];null!=t&&(t=new mxRectangle(t.x,t.y,this.strokewidth,this.strokewidth),null==c?c=
t:c.add(t))}this.bounds=null!=c?c:new mxRectangle};a.prototype.paintVertexShape=function(c,l,t,n,r){this.paintTableLine(c,this.line,0,0)};a.prototype.paintTableLine=function(c,l,t,n){if(null!=l){var r=null;c.begin();for(var v=0;v<l.length;v++){var x=l[v];null!=x&&(null==r?c.moveTo(x.x+t,x.y+n):null!=r&&c.lineTo(x.x+t,x.y+n));r=x}c.end();c.stroke()}};a.prototype.intersectsRectangle=function(c){var l=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=this.line)for(var t=null,n=
@@ -3320,8 +3320,8 @@ v),c.close(),c.fill()),0!=I&&(c.setFillAlpha(Math.abs(I)),c.setFillColor(0>I?"#F
f);var Qa=Math.tan(mxUtils.toRadians(30)),Ka=(.5-Qa)/2;mxCellRenderer.registerShape("isoRectangle",g);mxUtils.extend(h,mxConnector);h.prototype.paintEdgeShape=function(c,l){var t=this.createMarker(c,l,!0),n=this.createMarker(c,l,!1);c.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&c.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);c.setShadow(!1);c.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,
arguments);c.setStrokeColor(this.stroke);c.setFillColor(this.stroke);c.setDashed(!1);null!=t&&t();null!=n&&n()};mxCellRenderer.registerShape("wire",h);mxUtils.extend(d,mxCylinder);d.prototype.size=6;d.prototype.paintVertexShape=function(c,l,t,n,r){c.setFillColor(this.stroke);var v=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;c.ellipse(l+.5*(n-v),t+.5*(r-v),v,v);c.fill();c.setFillColor(mxConstants.NONE);c.rect(l,t,n,r);c.fill()};mxCellRenderer.registerShape("waypoint",
d);mxUtils.extend(g,mxActor);g.prototype.size=20;g.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(n,r/Qa);c.translate((n-l)/2,(r-l)/2+l/4);c.moveTo(0,.25*l);c.lineTo(.5*l,l*Ka);c.lineTo(l,.25*l);c.lineTo(.5*l,(.5-Ka)*l);c.lineTo(0,.25*l);c.close();c.end()};mxCellRenderer.registerShape("isoRectangle",g);mxUtils.extend(m,mxCylinder);m.prototype.size=20;m.prototype.redrawPath=function(c,l,t,n,r,v){l=Math.min(n,r/(.5+Qa));v?(c.moveTo(0,.25*l),c.lineTo(.5*l,(.5-Ka)*l),c.lineTo(l,.25*l),c.moveTo(.5*
-l,(.5-Ka)*l),c.lineTo(.5*l,(1-Ka)*l)):(c.translate((n-l)/2,(r-l)/2),c.moveTo(0,.25*l),c.lineTo(.5*l,l*Ka),c.lineTo(l,.25*l),c.lineTo(l,.75*l),c.lineTo(.5*l,(1-Ka)*l),c.lineTo(0,.75*l),c.close());c.end()};mxCellRenderer.registerShape("isoCube",m);mxUtils.extend(p,mxCylinder);p.prototype.redrawPath=function(c,l,t,n,r,v){l=Math.min(r/2,Math.round(r/8)+this.strokewidth-1);if(v&&null!=this.fill||!v&&null==this.fill)c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,
-l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,-l);v||(c.moveTo(0,l),c.curveTo(0,-l/3,n,-l/3,n,l),c.lineTo(n,r-l),c.curveTo(n,r+l/3,0,r+l/3,0,r-l),c.close())};p.prototype.getLabelMargins=function(c){return new mxRectangle(0,2.5*Math.min(c.height/2,Math.round(c.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",p);mxUtils.extend(k,mxCylinder);k.prototype.size=30;k.prototype.darkOpacity=
+l,(.5-Ka)*l),c.lineTo(.5*l,(1-Ka)*l)):(c.translate((n-l)/2,(r-l)/2),c.moveTo(0,.25*l),c.lineTo(.5*l,l*Ka),c.lineTo(l,.25*l),c.lineTo(l,.75*l),c.lineTo(.5*l,(1-Ka)*l),c.lineTo(0,.75*l),c.close());c.end()};mxCellRenderer.registerShape("isoCube",m);mxUtils.extend(q,mxCylinder);q.prototype.redrawPath=function(c,l,t,n,r,v){l=Math.min(r/2,Math.round(r/8)+this.strokewidth-1);if(v&&null!=this.fill||!v&&null==this.fill)c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,
+l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,-l);v||(c.moveTo(0,l),c.curveTo(0,-l/3,n,-l/3,n,l),c.lineTo(n,r-l),c.curveTo(n,r+l/3,0,r+l/3,0,r-l),c.close())};q.prototype.getLabelMargins=function(c){return new mxRectangle(0,2.5*Math.min(c.height/2,Math.round(c.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",q);mxUtils.extend(k,mxCylinder);k.prototype.size=30;k.prototype.darkOpacity=
0;k.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(0,Math.min(n,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),x=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));c.translate(l,t);c.begin();c.moveTo(0,0);c.lineTo(n-v,0);c.lineTo(n,v);c.lineTo(n,r);c.lineTo(0,r);c.lineTo(0,0);c.close();c.end();c.fillAndStroke();this.outline||(c.setShadow(!1),0!=x&&(c.setFillAlpha(Math.abs(x)),c.setFillColor(0>x?"#FFFFFF":"#000000"),
c.begin(),c.moveTo(n-v,0),c.lineTo(n-v,v),c.lineTo(n,v),c.close(),c.fill()),c.begin(),c.moveTo(n-v,0),c.lineTo(n-v,v),c.lineTo(n,v),c.end(),c.stroke())};mxCellRenderer.registerShape("note",k);mxUtils.extend(u,k);mxCellRenderer.registerShape("note2",u);u.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,l*this.scale),0,0)}return null};mxUtils.extend(w,mxShape);w.prototype.isoAngle=
15;w.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;v=Math.min(n*Math.tan(v),.5*r);c.translate(l,t);c.begin();c.moveTo(.5*n,0);c.lineTo(n,v);c.lineTo(n,r-v);c.lineTo(.5*n,r);c.lineTo(0,r-v);c.lineTo(0,v);c.close();c.fillAndStroke();c.setShadow(!1);c.begin();c.moveTo(0,v);c.lineTo(.5*n,2*v);c.lineTo(n,v);c.moveTo(.5*n,2*v);c.lineTo(.5*n,r);c.stroke()};mxCellRenderer.registerShape("isoCube2",
@@ -3406,7 +3406,7 @@ r/2);c.end()};mxCellRenderer.registerShape("crossbar",pb);mxUtils.extend(gb,mxAc
"arrowSize",this.arrowSize))));t=(r-v)/2;v=t+v;var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,t),new mxPoint(n-l,t),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(n-l,v),new mxPoint(0,v)],this.isRounded,x,!0);c.end()};mxCellRenderer.registerShape("singleArrow",ab);mxUtils.extend(ib,mxActor);ib.prototype.redrawPath=function(c,l,t,n,r){var v=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",
ab.prototype.arrowWidth))));l=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",ab.prototype.arrowSize))));t=(r-v)/2;v=t+v;var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,r/2),new mxPoint(l,0),new mxPoint(l,t),new mxPoint(n-l,t),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(n-l,v),new mxPoint(l,v),new mxPoint(l,r)],this.isRounded,x,!0);c.end()};mxCellRenderer.registerShape("doubleArrow",
ib);mxUtils.extend(eb,mxActor);eb.prototype.size=.1;eb.prototype.fixedSize=20;eb.prototype.redrawPath=function(c,l,t,n,r){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.moveTo(l,0);c.lineTo(n,0);c.quadTo(n-2*l,r/2,n,r);c.lineTo(l,r);c.quadTo(l-2*l,r/2,l,0);c.close();c.end()};mxCellRenderer.registerShape("dataStorage",eb);
-mxUtils.extend(q,mxActor);q.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.close();c.end()};mxCellRenderer.registerShape("or",q);mxUtils.extend(A,mxActor);A.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.quadTo(n/2,r/2,0,0);c.close();c.end()};mxCellRenderer.registerShape("xor",A);mxUtils.extend(B,mxActor);B.prototype.size=20;B.prototype.isRoundable=function(){return!0};B.prototype.redrawPath=function(c,
+mxUtils.extend(p,mxActor);p.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.close();c.end()};mxCellRenderer.registerShape("or",p);mxUtils.extend(A,mxActor);A.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.quadTo(n/2,r/2,0,0);c.close();c.end()};mxCellRenderer.registerShape("xor",A);mxUtils.extend(B,mxActor);B.prototype.size=20;B.prototype.isRoundable=function(){return!0};B.prototype.redrawPath=function(c,
l,t,n,r){l=Math.min(n/2,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(l,0),new mxPoint(n-l,0),new mxPoint(n,.8*l),new mxPoint(n,r),new mxPoint(0,r),new mxPoint(0,.8*l)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("loopLimit",B);mxUtils.extend(F,mxActor);F.prototype.size=.375;F.prototype.isRoundable=function(){return!0};F.prototype.redrawPath=function(c,
l,t,n,r){l=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,r-l),new mxPoint(n/2,r),new mxPoint(0,r-l)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("offPageConnector",F);mxUtils.extend(M,mxEllipse);M.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);
c.begin();c.moveTo(l+n/2,t+r);c.lineTo(l+n,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("tapeData",M);mxUtils.extend(R,mxEllipse);R.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();c.moveTo(l,t+r/2);c.lineTo(l+n,t+r/2);c.end();c.stroke();c.begin();c.moveTo(l+n/2,t);c.lineTo(l+n/2,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("orEllipse",R);mxUtils.extend(W,mxEllipse);W.prototype.paintVertexShape=function(c,
@@ -3567,7 +3567,7 @@ function(c,l,t){c=[];var n=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(t
function(c,l,t){c=[];var n=Math.min(t,l),r=Math.max(0,Math.min(n,n*parseFloat(mxUtils.getValue(this.style,"size",this.size))));n=(t-r)/2;var v=n+r,x=(l-r)/2;r=x+r;c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,0));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,r,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,t));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+r),n));c.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,l,n));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+r),v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*x,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,0,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*x,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,n));return c};ra.prototype.constraints=null;q.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.25),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,
+0),!1,null,0,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*x,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,n));return c};ra.prototype.constraints=null;p.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.25),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,
.9),!1)];A.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.175,.25),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.175,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];Ba.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];Ca.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,
.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)]})();function Actions(a){this.editorUi=a;this.actions={};this.init()}
Actions.prototype.init=function(){function a(k){d.escape();k=d.deleteCells(d.getDeletableCells(d.getSelectionCells()),k);null!=k&&d.setSelectionCells(k)}function b(){if(!d.isSelectionEmpty()){d.getModel().beginUpdate();try{for(var k=d.getSelectionCells(),u=0;u<k.length;u++)d.cellLabelChanged(k[u],"")}finally{d.getModel().endUpdate()}}}function e(k,u,w,z,C){C.getModel().beginUpdate();try{var E=C.getCellGeometry(k);null!=E&&w&&z&&(w/=z,E=E.clone(),1<w?E.height=E.width/w:E.width=E.height*w,C.getModel().setGeometry(k,
@@ -3610,7 +3610,7 @@ m.setEnabled(!1);m=this.addAction("animations",function(){Editor.enableAnimation
m=this.addAction("collapseExpand",function(){var k=new ChangePageSetup(f);k.ignoreColor=!0;k.ignoreImage=!0;k.foldingEnabled=!d.foldingEnabled;d.model.execute(k)});m.setToggleAction(!0);m.setSelectedCallback(function(){return d.foldingEnabled});m.isEnabled=g;m=this.addAction("pageView",mxUtils.bind(this,function(){f.setPageVisible(!d.pageVisible)}));m.setToggleAction(!0);m.setSelectedCallback(function(){return d.pageVisible});m=this.addAction("connectionArrows",function(){d.connectionArrowsEnabled=
!d.connectionArrowsEnabled;f.fireEvent(new mxEventObject("connectionArrowsChanged"))},null,null,"Alt+Shift+A");m.setToggleAction(!0);m.setSelectedCallback(function(){return d.connectionArrowsEnabled});m=this.addAction("connectionPoints",function(){d.setConnectable(!d.connectionHandler.isEnabled());f.fireEvent(new mxEventObject("connectionPointsChanged"))},null,null,"Alt+Shift+O");m.setToggleAction(!0);m.setSelectedCallback(function(){return d.connectionHandler.isEnabled()});m=this.addAction("copyConnect",
function(){d.connectionHandler.setCreateTarget(!d.connectionHandler.isCreateTarget());f.fireEvent(new mxEventObject("copyConnectChanged"))});m.setToggleAction(!0);m.setSelectedCallback(function(){return d.connectionHandler.isCreateTarget()});m.isEnabled=g;m=this.addAction("autosave",function(){f.editor.setAutosave(!f.editor.autosave)});m.setToggleAction(!0);m.setSelectedCallback(function(){return f.editor.autosave});m.isEnabled=g;m.visible=!1;this.addAction("help",function(){var k="";mxResources.isLanguageSupported(mxClient.language)&&
-(k="_"+mxClient.language);d.openLink(RESOURCES_PATH+"/help"+k+".html")});var p=!1;this.put("about",new Action(mxResources.get("about")+" Graph Editor...",function(){p||(f.showDialog((new AboutDialog(f)).container,320,280,!0,!0,function(){p=!1}),p=!0)}));m=mxUtils.bind(this,function(k,u,w,z){return this.addAction(k,function(){if(null!=w&&d.cellEditor.isContentEditing())w();else{d.stopEditing(!1);d.getModel().beginUpdate();try{var C=d.getEditableCells(d.getSelectionCells());d.toggleCellStyleFlags(mxConstants.STYLE_FONTSTYLE,
+(k="_"+mxClient.language);d.openLink(RESOURCES_PATH+"/help"+k+".html")});var q=!1;this.put("about",new Action(mxResources.get("about")+" Graph Editor...",function(){q||(f.showDialog((new AboutDialog(f)).container,320,280,!0,!0,function(){q=!1}),q=!0)}));m=mxUtils.bind(this,function(k,u,w,z){return this.addAction(k,function(){if(null!=w&&d.cellEditor.isContentEditing())w();else{d.stopEditing(!1);d.getModel().beginUpdate();try{var C=d.getEditableCells(d.getSelectionCells());d.toggleCellStyleFlags(mxConstants.STYLE_FONTSTYLE,
u,C);(u&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD?d.updateLabelElements(C,function(D){D.style.fontWeight=null;"B"==D.nodeName&&d.replaceElement(D)}):(u&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC?d.updateLabelElements(C,function(D){D.style.fontStyle=null;"I"==D.nodeName&&d.replaceElement(D)}):(u&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&d.updateLabelElements(C,function(D){D.style.textDecoration=null;"U"==D.nodeName&&d.replaceElement(D)});for(var E=0;E<C.length;E++)0==d.model.getChildCount(C[E])&&
d.autoSizeCell(C[E],!1)}finally{d.getModel().endUpdate()}}},null,null,z)});m("bold",mxConstants.FONT_BOLD,function(){document.execCommand("bold",!1,null)},Editor.ctrlKey+"+B");m("italic",mxConstants.FONT_ITALIC,function(){document.execCommand("italic",!1,null)},Editor.ctrlKey+"+I");m("underline",mxConstants.FONT_UNDERLINE,function(){document.execCommand("underline",!1,null)},Editor.ctrlKey+"+U");this.addAction("fontColor...",function(){f.menus.pickColor(mxConstants.STYLE_FONTCOLOR,"forecolor","000000",
"default",d.shapeForegroundColor)});this.addAction("strokeColor...",function(){f.menus.pickColor(mxConstants.STYLE_STROKECOLOR,null,null,"default",d.shapeForegroundColor)});this.addAction("fillColor...",function(){f.menus.pickColor(mxConstants.STYLE_FILLCOLOR,null,null,"default",d.shapeBackgroundColor)});this.addAction("gradientColor...",function(){f.menus.pickColor(mxConstants.STYLE_GRADIENTCOLOR,null,null,"default",d.shapeForegroundColor)});this.addAction("backgroundColor...",function(){f.menus.pickColor(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,
@@ -3639,12 +3639,12 @@ k);f.showDialog(u.container,350,450,!0,!1,function(){u.destroy()});u.init()}},nu
function Action(a,b,e,f,h){mxEventSource.call(this);this.label=a;this.funct=this.createFunction(b);this.enabled=null!=e?e:!0;this.iconCls=f;this.shortcut=h;this.visible=!0}mxUtils.extend(Action,mxEventSource);Action.prototype.createFunction=function(a){return a};Action.prototype.setEnabled=function(a){this.enabled!=a&&(this.enabled=a,this.fireEvent(new mxEventObject("stateChanged")))};Action.prototype.isEnabled=function(){return this.enabled};
Action.prototype.setToggleAction=function(a){this.toggleAction=a};Action.prototype.setSelectedCallback=function(a){this.selectedCallback=a};Action.prototype.isSelected=function(){return this.selectedCallback()};Menus=function(a){this.editorUi=a;this.menus={};this.init()};Menus.prototype.defaultFont="Helvetica";Menus.prototype.defaultFontSize="12";Menus.prototype.defaultMenuItems="file edit view arrange extras help".split(" ");Menus.prototype.defaultFonts="Helvetica;Verdana;Times New Roman;Garamond;Comic Sans MS;Courier New;Georgia;Lucida Console;Tahoma".split(";");Menus.prototype.autoPopup=!0;
Menus.prototype.init=function(){var a=this.editorUi,b=a.editor.graph,e=mxUtils.bind(b,b.isEnabled);this.customFonts=[];this.customFontSizes=[];this.put("fontFamily",new Menu(mxUtils.bind(this,function(f,h){for(var d=mxUtils.bind(this,function(m){this.styleChange(f,m,[mxConstants.STYLE_FONTFAMILY],[m],null,h,function(){document.execCommand("fontname",!1,m);a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTFAMILY],"values",[m],"cells",[b.cellEditor.getEditingCell()]))},function(){b.updateLabelElements(b.getSelectionCells(),
-function(p){p.removeAttribute("face");p.style.fontFamily=null;"PRE"==p.nodeName&&b.replaceElement(p,"div")})}).firstChild.nextSibling.style.fontFamily=m}),g=0;g<this.defaultFonts.length;g++)d(this.defaultFonts[g]);f.addSeparator(h);if(0<this.customFonts.length){for(g=0;g<this.customFonts.length;g++)d(this.customFonts[g]);f.addSeparator(h);f.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFonts=[];this.editorUi.fireEvent(new mxEventObject("customFontsChanged"))}),h);f.addSeparator(h)}this.promptChange(f,
+function(q){q.removeAttribute("face");q.style.fontFamily=null;"PRE"==q.nodeName&&b.replaceElement(q,"div")})}).firstChild.nextSibling.style.fontFamily=m}),g=0;g<this.defaultFonts.length;g++)d(this.defaultFonts[g]);f.addSeparator(h);if(0<this.customFonts.length){for(g=0;g<this.customFonts.length;g++)d(this.customFonts[g]);f.addSeparator(h);f.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFonts=[];this.editorUi.fireEvent(new mxEventObject("customFontsChanged"))}),h);f.addSeparator(h)}this.promptChange(f,
mxResources.get("custom")+"...","",mxConstants.DEFAULT_FONTFAMILY,mxConstants.STYLE_FONTFAMILY,h,!0,mxUtils.bind(this,function(m){0>mxUtils.indexOf(this.customFonts,m)&&(this.customFonts.push(m),this.editorUi.fireEvent(new mxEventObject("customFontsChanged")))}))})));this.put("formatBlock",new Menu(mxUtils.bind(this,function(f,h){function d(g,m){return f.addItem(g,null,mxUtils.bind(this,function(){null!=b.cellEditor.textarea&&(b.cellEditor.textarea.focus(),document.execCommand("formatBlock",!1,"<"+
m+">"))}),h)}d(mxResources.get("normal"),"p");d("","h1").firstChild.nextSibling.innerHTML='<h1 style="margin:0px;">'+mxResources.get("heading")+" 1</h1>";d("","h2").firstChild.nextSibling.innerHTML='<h2 style="margin:0px;">'+mxResources.get("heading")+" 2</h2>";d("","h3").firstChild.nextSibling.innerHTML='<h3 style="margin:0px;">'+mxResources.get("heading")+" 3</h3>";d("","h4").firstChild.nextSibling.innerHTML='<h4 style="margin:0px;">'+mxResources.get("heading")+" 4</h4>";d("","h5").firstChild.nextSibling.innerHTML=
'<h5 style="margin:0px;">'+mxResources.get("heading")+" 5</h5>";d("","h6").firstChild.nextSibling.innerHTML='<h6 style="margin:0px;">'+mxResources.get("heading")+" 6</h6>";d("","pre").firstChild.nextSibling.innerHTML='<pre style="margin:0px;">'+mxResources.get("formatted")+"</pre>";d("","blockquote").firstChild.nextSibling.innerHTML='<blockquote style="margin-top:0px;margin-bottom:0px;">'+mxResources.get("blockquote")+"</blockquote>"})));this.put("fontSize",new Menu(mxUtils.bind(this,function(f,h){var d=
[6,8,9,10,11,12,14,18,24,36,48,72];0>mxUtils.indexOf(d,this.defaultFontSize)&&(d.push(this.defaultFontSize),d.sort(function(w,z){return w-z}));for(var g=mxUtils.bind(this,function(w){if(null!=b.cellEditor.textarea){document.execCommand("fontSize",!1,"3");for(var z=b.cellEditor.textarea.getElementsByTagName("font"),C=0;C<z.length;C++)if("3"==z[C].getAttribute("size")){z[C].removeAttribute("size");z[C].style.fontSize=w+"px";break}a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTSIZE],
-"values",[w],"cells",[b.cellEditor.getEditingCell()]))}}),m=mxUtils.bind(this,function(w){this.styleChange(f,w,[mxConstants.STYLE_FONTSIZE],[w],null,h,function(){g(w)})}),p=0;p<d.length;p++)m(d[p]);f.addSeparator(h);if(0<this.customFontSizes.length){var k=0;for(p=0;p<this.customFontSizes.length;p++)0>mxUtils.indexOf(d,this.customFontSizes[p])&&(m(this.customFontSizes[p]),k++);0<k&&f.addSeparator(h);f.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFontSizes=[]}),h);f.addSeparator(h)}var u=
+"values",[w],"cells",[b.cellEditor.getEditingCell()]))}}),m=mxUtils.bind(this,function(w){this.styleChange(f,w,[mxConstants.STYLE_FONTSIZE],[w],null,h,function(){g(w)})}),q=0;q<d.length;q++)m(d[q]);f.addSeparator(h);if(0<this.customFontSizes.length){var k=0;for(q=0;q<this.customFontSizes.length;q++)0>mxUtils.indexOf(d,this.customFontSizes[q])&&(m(this.customFontSizes[q]),k++);0<k&&f.addSeparator(h);f.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFontSizes=[]}),h);f.addSeparator(h)}var u=
null;this.promptChange(f,mxResources.get("custom")+"...","("+mxResources.get("points")+")",this.defaultFontSize,mxConstants.STYLE_FONTSIZE,h,!0,mxUtils.bind(this,function(w){null!=u&&null!=b.cellEditor.textarea&&(b.cellEditor.textarea.focus(),b.cellEditor.restoreSelection(u));null!=w&&0<w.length&&(this.customFontSizes.push(w),g(w))}),null,function(){u=b.cellEditor.saveSelection();return!1})})));this.put("direction",new Menu(mxUtils.bind(this,function(f,h){f.addItem(mxResources.get("flipH"),null,function(){b.toggleCellStyles(mxConstants.STYLE_FLIPH,
!1)},h);f.addItem(mxResources.get("flipV"),null,function(){b.toggleCellStyles(mxConstants.STYLE_FLIPV,!1)},h);this.addMenuItems(f,["-","rotation"],h)})));this.put("align",new Menu(mxUtils.bind(this,function(f,h){var d=1<this.editorUi.getSelectionState().vertices.length;f.addItem(mxResources.get("leftAlign"),null,function(){b.alignCells(mxConstants.ALIGN_LEFT)},h,null,d);f.addItem(mxResources.get("center"),null,function(){b.alignCells(mxConstants.ALIGN_CENTER)},h,null,d);f.addItem(mxResources.get("rightAlign"),
null,function(){b.alignCells(mxConstants.ALIGN_RIGHT)},h,null,d);f.addSeparator(h);f.addItem(mxResources.get("topAlign"),null,function(){b.alignCells(mxConstants.ALIGN_TOP)},h,null,d);f.addItem(mxResources.get("middle"),null,function(){b.alignCells(mxConstants.ALIGN_MIDDLE)},h,null,d);f.addItem(mxResources.get("bottomAlign"),null,function(){b.alignCells(mxConstants.ALIGN_BOTTOM)},h,null,d);this.addMenuItems(f,["-","snapToGrid"],h)})));this.put("distribute",new Menu(mxUtils.bind(this,function(f,h){f.addItem(mxResources.get("horizontal"),
@@ -3655,43 +3655,43 @@ mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle","vertical",null,null],null,h,!0
mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],null,h,!0,Format.verticalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),"connector"==d&&Format.processMenuIcon(this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],null,h,!0,Format.curvedImage.src)).setAttribute("title",mxResources.get("curved")),Format.processMenuIcon(this.edgeStyleChange(f,
"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],null,h,!0,Format.entityImage.src)).setAttribute("title",mxResources.get("entityRelation"))),f.addSeparator(h),Format.processMenuIcon(this.styleChange(f,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],[null,null,null,null],null,h,null,null,!0,Format.connectionImage.src)).setAttribute("title",mxResources.get("line")),Format.processMenuIcon(this.styleChange(f,
"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["link",null,null,null],null,h,null,null,!0,Format.linkEdgeImage.src)).setAttribute("title",mxResources.get("link")),Format.processMenuIcon(this.styleChange(f,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["flexArrow",null,null,null],null,h,null,null,!0,Format.arrowImage.src)).setAttribute("title",mxResources.get("arrow")),Format.processMenuIcon(this.styleChange(f,
-"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["arrow",null,null,null],null,h,null,null,!0,Format.simpleArrowImage.src)).setAttribute("title",mxResources.get("simpleArrow")))})));this.put("layout",new Menu(mxUtils.bind(this,function(f,h){var d=mxUtils.bind(this,function(m,p){this.editorUi.prompt(mxResources.get("spacing"),m,p)}),g=mxUtils.bind(this,function(m){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var p=b.getSelectionCell(),k=null;null==
-p||0==b.getModel().getChildCount(p)?0==b.getModel().getEdgeCount(p)&&(k=b.findTreeRoots(b.getDefaultParent())):k=b.findTreeRoots(p);null!=k&&0<k.length&&(p=k[0]);null!=p&&this.editorUi.executeLayout(function(){m.execute(b.getDefaultParent(),p);b.isSelectionEmpty()||(p=b.getModel().getParent(p),b.getModel().isVertex(p)&&b.updateGroupBounds([p],2*b.gridSize,!0))},!0)}))});f.addItem(mxResources.get("horizontalFlow"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=
-new mxHierarchicalLayout(b,mxConstants.DIRECTION_WEST);this.editorUi.executeLayout(function(){var p=b.getSelectionCells();m.execute(b.getDefaultParent(),0==p.length?null:p)},!0)}))}),h);f.addItem(mxResources.get("verticalFlow"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxHierarchicalLayout(b,mxConstants.DIRECTION_NORTH);this.editorUi.executeLayout(function(){var p=b.getSelectionCells();m.execute(b.getDefaultParent(),0==p.length?null:p)},!0)}))}),
-h);f.addSeparator(h);f.addItem(mxResources.get("horizontalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!0);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=p,g(m))}))}),h);f.addItem(mxResources.get("verticalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!1);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=
-p,g(m))}))}),h);f.addItem(mxResources.get("radialTree"),null,mxUtils.bind(this,function(){var m=new mxRadialTreeLayout(b);m.levelDistance=80;m.autoRadius=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=p,g(m))}))}),h);f.addSeparator(h);f.addItem(mxResources.get("organic"),null,mxUtils.bind(this,function(){var m=new mxFastOrganicLayout(b);d(m.forceConstant,mxUtils.bind(this,function(p){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){m.forceConstant=p;this.editorUi.executeLayout(function(){var k=
-b.getSelectionCell();if(null==k||0==b.getModel().getChildCount(k))k=b.getDefaultParent();m.execute(k);b.getModel().isVertex(k)&&b.updateGroupBounds([k],2*b.gridSize,!0)},!0)}))}))}),h);f.addItem(mxResources.get("circle"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxCircleLayout(b);this.editorUi.executeLayout(function(){var p=b.getSelectionCell();if(null==p||0==b.getModel().getChildCount(p))p=b.getDefaultParent();m.execute(p);b.getModel().isVertex(p)&&
-b.updateGroupBounds([p],2*b.gridSize,!0)},!0)}))}),h)})));this.put("navigation",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,"home - exitGroup enterGroup - expand collapse - collapsible".split(" "),h)})));this.put("arrange",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["toFront","toBack","bringForward","sendBackward","-"],h);this.addSubmenu("direction",f,h);this.addMenuItems(f,["turn","-"],h);this.addSubmenu("align",f,h);this.addSubmenu("distribute",f,h);f.addSeparator(h);
+"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["arrow",null,null,null],null,h,null,null,!0,Format.simpleArrowImage.src)).setAttribute("title",mxResources.get("simpleArrow")))})));this.put("layout",new Menu(mxUtils.bind(this,function(f,h){var d=mxUtils.bind(this,function(m,q){this.editorUi.prompt(mxResources.get("spacing"),m,q)}),g=mxUtils.bind(this,function(m){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var q=b.getSelectionCell(),k=null;null==
+q||0==b.getModel().getChildCount(q)?0==b.getModel().getEdgeCount(q)&&(k=b.findTreeRoots(b.getDefaultParent())):k=b.findTreeRoots(q);null!=k&&0<k.length&&(q=k[0]);null!=q&&this.editorUi.executeLayout(function(){m.execute(b.getDefaultParent(),q);b.isSelectionEmpty()||(q=b.getModel().getParent(q),b.getModel().isVertex(q)&&b.updateGroupBounds([q],2*b.gridSize,!0))},!0)}))});f.addItem(mxResources.get("horizontalFlow"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=
+new mxHierarchicalLayout(b,mxConstants.DIRECTION_WEST);this.editorUi.executeLayout(function(){var q=b.getSelectionCells();m.execute(b.getDefaultParent(),0==q.length?null:q)},!0)}))}),h);f.addItem(mxResources.get("verticalFlow"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxHierarchicalLayout(b,mxConstants.DIRECTION_NORTH);this.editorUi.executeLayout(function(){var q=b.getSelectionCells();m.execute(b.getDefaultParent(),0==q.length?null:q)},!0)}))}),
+h);f.addSeparator(h);f.addItem(mxResources.get("horizontalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!0);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(q){isNaN(q)||(m.levelDistance=q,g(m))}))}),h);f.addItem(mxResources.get("verticalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!1);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(q){isNaN(q)||(m.levelDistance=
+q,g(m))}))}),h);f.addItem(mxResources.get("radialTree"),null,mxUtils.bind(this,function(){var m=new mxRadialTreeLayout(b);m.levelDistance=80;m.autoRadius=!0;d(m.levelDistance,mxUtils.bind(this,function(q){isNaN(q)||(m.levelDistance=q,g(m))}))}),h);f.addSeparator(h);f.addItem(mxResources.get("organic"),null,mxUtils.bind(this,function(){var m=new mxFastOrganicLayout(b);d(m.forceConstant,mxUtils.bind(this,function(q){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){m.forceConstant=q;this.editorUi.executeLayout(function(){var k=
+b.getSelectionCell();if(null==k||0==b.getModel().getChildCount(k))k=b.getDefaultParent();m.execute(k);b.getModel().isVertex(k)&&b.updateGroupBounds([k],2*b.gridSize,!0)},!0)}))}))}),h);f.addItem(mxResources.get("circle"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxCircleLayout(b);this.editorUi.executeLayout(function(){var q=b.getSelectionCell();if(null==q||0==b.getModel().getChildCount(q))q=b.getDefaultParent();m.execute(q);b.getModel().isVertex(q)&&
+b.updateGroupBounds([q],2*b.gridSize,!0)},!0)}))}),h)})));this.put("navigation",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,"home - exitGroup enterGroup - expand collapse - collapsible".split(" "),h)})));this.put("arrange",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["toFront","toBack","bringForward","sendBackward","-"],h);this.addSubmenu("direction",f,h);this.addMenuItems(f,["turn","-"],h);this.addSubmenu("align",f,h);this.addSubmenu("distribute",f,h);f.addSeparator(h);
this.addSubmenu("navigation",f,h);this.addSubmenu("insert",f,h);this.addSubmenu("layout",f,h);this.addMenuItems(f,"- group ungroup removeFromGroup - clearWaypoints autosize".split(" "),h)}))).isEnabled=e;this.put("insert",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["insertLink","insertImage"],h)})));this.put("view",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,(null!=this.editorUi.format?["format"]:[]).concat("outline layers - pageView pageScale - tooltips grid guides - connectionArrows connectionPoints - resetView zoomIn zoomOut".split(" "),
h))})));this.put("viewPanels",new Menu(mxUtils.bind(this,function(f,h){null!=this.editorUi.format&&this.addMenuItems(f,["format"],h);this.addMenuItems(f,["outline","layers"],h)})));this.put("viewZoom",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["smartFit","-"],h);for(var d=[.25,.5,.75,1,1.25,1.5,2,3,4],g=0;g<d.length;g++)(function(m){f.addItem(100*m+"%",null,function(){b.zoomTo(m)},h)})(d[g]);this.addMenuItems(f,"- fitWindow fitPageWidth fitPage fitTwoPages - customZoom".split(" "),
h)})));this.put("file",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,"new open - save saveAs - import export - pageSetup print".split(" "),h)})));this.put("edit",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,"undo redo - cut copy paste delete - duplicate - editData editTooltip - editStyle - edit - editLink openLink - selectVertices selectEdges selectAll selectNone - lockUnlock".split(" "))})));this.put("extras",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,
["copyConnect","collapseExpand","-","editDiagram"])})));this.put("help",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["help","-","about"])})))};Menus.prototype.put=function(a,b){return this.menus[a]=b};Menus.prototype.get=function(a){return this.menus[a]};Menus.prototype.addSubmenu=function(a,b,e,f){var h=this.get(a),d=null;null!=h&&(h=h.isEnabled(),b.showDisabled||h)&&(d=b.addItem(f||mxResources.get(a),null,null,e,null,h),this.addMenu(a,b,d));return d};
Menus.prototype.addMenu=function(a,b,e){a=this.get(a);null!=a&&(b.showDisabled||a.isEnabled())&&a.execute(b,e)};
-Menus.prototype.addInsertTableCellItem=function(a,b){var e=this.editorUi.editor.graph,f=e.getSelectionCell(),h=e.getCurrentCellStyle(f);1<e.getSelectionCount()&&(e.isTableCell(f)&&(f=e.model.getParent(f)),e.isTableRow(f)&&(f=e.model.getParent(f)));var d=e.isTable(f)||e.isTableRow(f)||e.isTableCell(f),g=e.isStack(f)||e.isStackChild(f),m=d,p=d;g&&(h=e.isStack(f)?h:e.getCellStyle(e.model.getParent(f)),p="0"==h.horizontalStack,m=!p);null!=b||!d&&!g?this.addInsertTableItem(a,mxUtils.bind(this,function(k,
+Menus.prototype.addInsertTableCellItem=function(a,b){var e=this.editorUi.editor.graph,f=e.getSelectionCell(),h=e.getCurrentCellStyle(f);1<e.getSelectionCount()&&(e.isTableCell(f)&&(f=e.model.getParent(f)),e.isTableRow(f)&&(f=e.model.getParent(f)));var d=e.isTable(f)||e.isTableRow(f)||e.isTableCell(f),g=e.isStack(f)||e.isStackChild(f),m=d,q=d;g&&(h=e.isStack(f)?h:e.getCellStyle(e.model.getParent(f)),q="0"==h.horizontalStack,m=!q);null!=b||!d&&!g?this.addInsertTableItem(a,mxUtils.bind(this,function(k,
u,w,z,C){u=C||mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)?e.createCrossFunctionalSwimlane(u,w,null,null,z||mxEvent.isShiftDown(k)?"Cross-Functional Flowchart":null):e.createTable(u,w,null,null,z||mxEvent.isShiftDown(k)?"Table":null);k=mxEvent.isAltDown(k)?e.getFreeInsertPoint():e.getCenterInsertPoint(e.getBoundingBoxFromGeometry([u],!0));w=null;e.getModel().beginUpdate();try{w=e.importCells([u],k.x,k.y),e.fireEvent(new mxEventObject("cellsInserted","cells",e.model.getDescendants(w[0])))}finally{e.getModel().endUpdate()}null!=
w&&0<w.length&&(e.scrollCellToVisible(w[0]),e.setSelectionCells(w))}),b):(m&&(b=a.addItem(mxResources.get("insertColumnBefore"),Editor.addColumnLeftImage,mxUtils.bind(this,function(){try{g?e.insertLane(f,!0):e.insertTableColumn(f,!0)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("insertColumnBefore")),b=a.addItem(mxResources.get("insertColumnAfter"),Editor.addColumnRightImage,mxUtils.bind(this,function(){try{g?e.insertLane(f,!1):e.insertTableColumn(f,!1)}catch(k){this.editorUi.handleError(k)}})),
-b.setAttribute("title",mxResources.get("insertColumnAfter")),b=a.addItem(mxResources.get("deleteColumn"),Editor.removeColumnImage,mxUtils.bind(this,function(){if(null!=f)try{g?e.deleteLane(f):e.deleteTableColumn(f)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("deleteColumn"))),p&&(b=a.addItem(mxResources.get("insertRowBefore"),Editor.addRowAboveImage,mxUtils.bind(this,function(){try{g?e.insertLane(f,!0):e.insertTableRow(f,!0)}catch(k){this.editorUi.handleError(k)}})),
+b.setAttribute("title",mxResources.get("insertColumnAfter")),b=a.addItem(mxResources.get("deleteColumn"),Editor.removeColumnImage,mxUtils.bind(this,function(){if(null!=f)try{g?e.deleteLane(f):e.deleteTableColumn(f)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("deleteColumn"))),q&&(b=a.addItem(mxResources.get("insertRowBefore"),Editor.addRowAboveImage,mxUtils.bind(this,function(){try{g?e.insertLane(f,!0):e.insertTableRow(f,!0)}catch(k){this.editorUi.handleError(k)}})),
b.setAttribute("title",mxResources.get("insertRowBefore")),b=a.addItem(mxResources.get("insertRowAfter"),Editor.addRowBelowImage,mxUtils.bind(this,function(){try{g?e.insertLane(f,!1):e.insertTableRow(f,!1)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("insertRowAfter")),b=a.addItem(mxResources.get("deleteRow"),Editor.removeRowImage,mxUtils.bind(this,function(){try{g?e.deleteLane(f):e.deleteTableRow(f)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",
-mxResources.get("deleteRow")),p=this.editorUi.getSelectionState(),null!=p.mergeCell?this.addMenuItem(a,"mergeCells"):(1<p.style.colspan||1<p.style.rowspan)&&this.addMenuItem(a,"unmergeCells")))};
+mxResources.get("deleteRow")),q=this.editorUi.getSelectionState(),null!=q.mergeCell?this.addMenuItem(a,"mergeCells"):(1<q.style.colspan||1<q.style.rowspan)&&this.addMenuItem(a,"unmergeCells")))};
Menus.prototype.addInsertTableItem=function(a,b,e,f){function h(C){m=d.getParentByName(mxEvent.getSource(C),"TD");var E=!1;if(null!=m){g=d.getParentByName(m,"TR");var D=mxEvent.isMouseEvent(C)?2:4,G=w,J=Math.min(20,g.sectionRowIndex+D);D=Math.min(20,m.cellIndex+D);for(var L=G.rows.length;L<J;L++)for(var Q=G.insertRow(L),N=0;N<G.rows[0].cells.length;N++)Q.insertCell(-1);for(L=0;L<G.rows.length;L++)for(Q=G.rows[L],N=Q.cells.length;N<D;N++)Q.insertCell(-1);z.innerHTML=m.cellIndex+1+"x"+(g.sectionRowIndex+
1);for(G=0;G<w.rows.length;G++)for(J=w.rows[G],D=0;D<J.cells.length;D++)L=J.cells[D],G==g.sectionRowIndex&&D==m.cellIndex&&(E="blue"==L.style.backgroundColor),L.style.backgroundColor=G<=g.sectionRowIndex&&D<=m.cellIndex?"blue":"transparent"}mxEvent.consume(C);return E}f=null!=f?f:!0;b=null!=b?b:mxUtils.bind(this,function(C,E,D){var G=this.editorUi.editor.graph;if(null!=G.getParentByName(mxEvent.getSource(C),"TD")&&null!=G.cellEditor.textarea){var J=G.cellEditor.textarea.getElementsByTagName("table");
C=[];for(var L=0;L<J.length;L++)C.push(J[L]);G.container.focus();L=G.pasteHtmlAtCaret;J=["<table>"];for(var Q=0;Q<E;Q++){J.push("<tr>");for(var N=0;N<D;N++)J.push("<td><br></td>");J.push("</tr>")}J.push("</table>");E=J.join("");L.call(G,E);E=G.cellEditor.textarea.getElementsByTagName("table");if(E.length==C.length+1)for(L=E.length-1;0<=L;L--)if(0==L||E[L]!=C[L-1]){G.selectNode(E[L].rows[0].cells[0]);break}}});var d=this.editorUi.editor.graph,g=null,m=null;null==e&&(a.div.className+=" geToolbarMenu",
-a.labels=!1);a=a.addItem("",null,null,e,null,null,null,!0);a.firstChild.style.fontSize=Menus.prototype.defaultFontSize+"px";e=a.getElementsByTagName("td");1<e.length&&(e[1].style.display="none",e[2].style.display="none");a.firstChild.innerText="";var p=document.createElement("input");p.setAttribute("id","geTitleOption");p.setAttribute("type","checkbox");p.style.verticalAlign="middle";e=document.createElement("label");mxUtils.write(e,mxResources.get("title"));e.setAttribute("for","geTitleOption");
-e.style.verticalAlign="middle";mxEvent.addGestureListeners(e,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));mxEvent.addGestureListeners(p,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));var k=document.createElement("input");k.setAttribute("id","geContainerOption");k.setAttribute("type","checkbox");k.style.verticalAlign="middle";var u=document.createElement("label");mxUtils.write(u,mxResources.get("container"));u.setAttribute("for","geContainerOption");u.style.verticalAlign=
-"middle";mxEvent.addGestureListeners(u,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));mxEvent.addGestureListeners(k,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));f&&(a.firstChild.appendChild(p),a.firstChild.appendChild(e),mxUtils.br(a.firstChild),a.firstChild.appendChild(k),a.firstChild.appendChild(u),mxUtils.br(a.firstChild));var w=function(C,E){var D=document.createElement("table");D.className="geInsertTablePicker";D.setAttribute("border","1");D.style.borderCollapse=
+a.labels=!1);a=a.addItem("",null,null,e,null,null,null,!0);a.firstChild.style.fontSize=Menus.prototype.defaultFontSize+"px";e=a.getElementsByTagName("td");1<e.length&&(e[1].style.display="none",e[2].style.display="none");a.firstChild.innerText="";var q=document.createElement("input");q.setAttribute("id","geTitleOption");q.setAttribute("type","checkbox");q.style.verticalAlign="middle";e=document.createElement("label");mxUtils.write(e,mxResources.get("title"));e.setAttribute("for","geTitleOption");
+e.style.verticalAlign="middle";mxEvent.addGestureListeners(e,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));mxEvent.addGestureListeners(q,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));var k=document.createElement("input");k.setAttribute("id","geContainerOption");k.setAttribute("type","checkbox");k.style.verticalAlign="middle";var u=document.createElement("label");mxUtils.write(u,mxResources.get("container"));u.setAttribute("for","geContainerOption");u.style.verticalAlign=
+"middle";mxEvent.addGestureListeners(u,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));mxEvent.addGestureListeners(k,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));f&&(a.firstChild.appendChild(q),a.firstChild.appendChild(e),mxUtils.br(a.firstChild),a.firstChild.appendChild(k),a.firstChild.appendChild(u),mxUtils.br(a.firstChild));var w=function(C,E){var D=document.createElement("table");D.className="geInsertTablePicker";D.setAttribute("border","1");D.style.borderCollapse=
"collapse";D.style.borderStyle="solid";D.style.marginBottom="4px";D.style.marginTop="8px";D.setAttribute("cellPadding","8");for(var G=0;G<C;G++)for(var J=D.insertRow(G),L=0;L<E;L++)J.insertCell(-1);return D}(5,5);a.firstChild.appendChild(w);var z=document.createElement("div");z.style.textAlign="center";z.style.padding="4px";z.style.width="100%";z.innerHTML="1x1";a.firstChild.appendChild(z);mxEvent.addGestureListeners(w,null,null,mxUtils.bind(this,function(C){var E=h(C);null!=m&&null!=g&&E&&(b(C,g.sectionRowIndex+
-1,m.cellIndex+1,p.checked,k.checked),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0))}));mxEvent.addListener(w,"mouseover",h)};
-Menus.prototype.edgeStyleChange=function(a,b,e,f,h,d,g,m){return this.showIconOnly(a.addItem(b,m,mxUtils.bind(this,function(){var p=this.editorUi.editor.graph;p.stopEditing(!1);p.getModel().beginUpdate();try{for(var k=p.getSelectionCells(),u=[],w=0;w<k.length;w++){var z=k[w];if(p.getModel().isEdge(z)){if(g){var C=p.getCellGeometry(z);null!=C&&(C=C.clone(),C.points=null,p.getModel().setGeometry(z,C))}for(var E=0;E<e.length;E++)p.setCellStyles(e[E],f[E],[z]);u.push(z)}}this.editorUi.fireEvent(new mxEventObject("styleChanged",
-"cells",u,"keys",e,"values",f,"force",0==k.length))}finally{p.getModel().endUpdate()}}),d,h))};Menus.prototype.showIconOnly=function(a){var b=a.getElementsByTagName("td");for(i=0;i<b.length;i++)"mxPopupMenuItem"==b[i].getAttribute("class")&&(b[i].style.display="none");return a};
-Menus.prototype.styleChange=function(a,b,e,f,h,d,g,m,p,k){var u=this.createStyleChangeFunction(e,f);a=a.addItem(b,k,mxUtils.bind(this,function(){var w=this.editorUi.editor.graph;null!=g&&w.cellEditor.isContentEditing()?g():u(m)}),d,h);p&&this.showIconOnly(a);return a};
+1,m.cellIndex+1,q.checked,k.checked),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0))}));mxEvent.addListener(w,"mouseover",h)};
+Menus.prototype.edgeStyleChange=function(a,b,e,f,h,d,g,m){return this.showIconOnly(a.addItem(b,m,mxUtils.bind(this,function(){var q=this.editorUi.editor.graph;q.stopEditing(!1);q.getModel().beginUpdate();try{for(var k=q.getSelectionCells(),u=[],w=0;w<k.length;w++){var z=k[w];if(q.getModel().isEdge(z)){if(g){var C=q.getCellGeometry(z);null!=C&&(C=C.clone(),C.points=null,q.getModel().setGeometry(z,C))}for(var E=0;E<e.length;E++)q.setCellStyles(e[E],f[E],[z]);u.push(z)}}this.editorUi.fireEvent(new mxEventObject("styleChanged",
+"cells",u,"keys",e,"values",f,"force",0==k.length))}finally{q.getModel().endUpdate()}}),d,h))};Menus.prototype.showIconOnly=function(a){var b=a.getElementsByTagName("td");for(i=0;i<b.length;i++)"mxPopupMenuItem"==b[i].getAttribute("class")&&(b[i].style.display="none");return a};
+Menus.prototype.styleChange=function(a,b,e,f,h,d,g,m,q,k){var u=this.createStyleChangeFunction(e,f);a=a.addItem(b,k,mxUtils.bind(this,function(){var w=this.editorUi.editor.graph;null!=g&&w.cellEditor.isContentEditing()?g():u(m)}),d,h);q&&this.showIconOnly(a);return a};
Menus.prototype.createStyleChangeFunction=function(a,b){return mxUtils.bind(this,function(e){var f=this.editorUi.editor.graph;f.stopEditing(!1);f.getModel().beginUpdate();try{for(var h=f.getEditableCells(f.getSelectionCells()),d=!1,g=0;g<a.length;g++)if(f.setCellStyles(a[g],b[g],h),a[g]==mxConstants.STYLE_ALIGN&&f.updateLabelElements(h,function(m){m.removeAttribute("align");m.style.textAlign=null}),a[g]==mxConstants.STYLE_FONTFAMILY||"fontSource"==a[g])d=!0;if(d)for(d=0;d<h.length;d++)0==f.model.getChildCount(h[d])&&
f.autoSizeCell(h[d],!1);null!=e&&e();this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",a,"values",b,"cells",h))}finally{f.getModel().endUpdate()}})};
-Menus.prototype.promptChange=function(a,b,e,f,h,d,g,m,p,k){return a.addItem(b,null,mxUtils.bind(this,function(){var u=this.editorUi.editor.graph,w=f,z=u.getView().getState(u.getSelectionCell());null!=z&&(w=z.style[h]||w);var C=null!=k?k():!0;w=new FilenameDialog(this.editorUi,w,mxResources.get("apply"),mxUtils.bind(this,function(E){if(null!=E&&0<E.length){if(C){u.getModel().beginUpdate();try{u.stopEditing(!1),u.setCellStyles(h,E)}finally{u.getModel().endUpdate()}}null!=m&&m(E)}}),mxResources.get("enterValue")+
-(0<e.length?" "+e:""),null,null,null,null,function(){null!=m&&null!=k&&m(null)});this.editorUi.showDialog(w.container,300,80,!0,!0);w.init()}),d,p,g)};
+Menus.prototype.promptChange=function(a,b,e,f,h,d,g,m,q,k){return a.addItem(b,null,mxUtils.bind(this,function(){var u=this.editorUi.editor.graph,w=f,z=u.getView().getState(u.getSelectionCell());null!=z&&(w=z.style[h]||w);var C=null!=k?k():!0;w=new FilenameDialog(this.editorUi,w,mxResources.get("apply"),mxUtils.bind(this,function(E){if(null!=E&&0<E.length){if(C){u.getModel().beginUpdate();try{u.stopEditing(!1),u.setCellStyles(h,E)}finally{u.getModel().endUpdate()}}null!=m&&m(E)}}),mxResources.get("enterValue")+
+(0<e.length?" "+e:""),null,null,null,null,function(){null!=m&&null!=k&&m(null)});this.editorUi.showDialog(w.container,300,80,!0,!0);w.init()}),d,q,g)};
Menus.prototype.pickColor=function(a,b,e,f,h,d){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var g=this.editorUi.editor.graph;if(null!=b&&g.cellEditor.isContentEditing()){var m=g.getSelectedEditingElement();null!=m&&null!=g.cellEditor.textarea&&(m=g.getTextColor(m,"forecolor"==b),this.editorUi.pickColor(m,mxUtils.bind(this,function(k){null!=g.cellEditor.textarea&&(Graph.setTextColor(g.cellEditor.textarea,k,"forecolor"==b),this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",
-["forecolor"==b?mxConstants.STYLE_FONTCOLOR:mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[k],"cells",[g.cellEditor.getEditingCell()])))}),f,h,d))}else{var p=g.getView().getState(g.getSelectionCell());m=mxConstants.NONE;null!=p&&(m=p.style[a]||m);this.editorUi.pickColor(m,ColorDialog.createApplyFunction(this.editorUi,a),f,h,d)}}))};
+["forecolor"==b?mxConstants.STYLE_FONTCOLOR:mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[k],"cells",[g.cellEditor.getEditingCell()])))}),f,h,d))}else{var q=g.getView().getState(g.getSelectionCell());m=mxConstants.NONE;null!=q&&(m=q.style[a]||m);this.editorUi.pickColor(m,ColorDialog.createApplyFunction(this.editorUi,a),f,h,d)}}))};
Menus.prototype.toggleStyle=function(a,b){var e=this.editorUi.editor.graph;b=e.toggleCellStyles(a,b);this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",[a],"values",[b],"cells",e.getSelectionCells()))};
-Menus.prototype.addMenuItem=function(a,b,e,f,h,d){var g=this.editorUi.actions.get(b);return null!=g&&(a.showDisabled||g.isEnabled())&&g.visible?(b=a.addItem(d||g.label,null,mxUtils.bind(this,function(m){try{g.funct(f,m)}catch(p){this.editorUi.handleError(p)}}),e,h,g.isEnabled()),g.toggleAction&&g.isSelected()&&a.addCheckmark(b,Editor.checkmarkImage),this.addShortcut(b,g,a.hideShortcuts),b):null};
+Menus.prototype.addMenuItem=function(a,b,e,f,h,d){var g=this.editorUi.actions.get(b);return null!=g&&(a.showDisabled||g.isEnabled())&&g.visible?(b=a.addItem(d||g.label,null,mxUtils.bind(this,function(m){try{g.funct(f,m)}catch(q){this.editorUi.handleError(q)}}),e,h,g.isEnabled()),g.toggleAction&&g.isSelected()&&a.addCheckmark(b,Editor.checkmarkImage),this.addShortcut(b,g,a.hideShortcuts),b):null};
Menus.prototype.addShortcut=function(a,b,e){null!=b.shortcut&&(e?a.setAttribute("title",b.shortcut):(a=a.firstChild.nextSibling.nextSibling,e=document.createElement("span"),e.style.color="gray",mxUtils.write(e,b.shortcut),a.appendChild(e)))};Menus.prototype.addMenuItems=function(a,b,e,f,h){for(var d=0;d<b.length;d++)"-"==b[d]?a.addSeparator(e):this.addMenuItem(a,b[d],e,f,null!=h?h[d]:null)};
Menus.prototype.createPopupMenu=function(a,b,e){a.smartSeparators=!0;a.hideShortcuts=!0;this.addPopupMenuItems(a,b,e)};Menus.prototype.addPopupMenuItems=function(a,b,e){this.isShowHistoryItems()&&this.addPopupMenuHistoryItems(a,b,e);this.addPopupMenuEditItems(a,b,e);this.isShowStyleItems()&&this.addPopupMenuStyleItems(a,b,e);this.isShowArrangeItems()&&this.addPopupMenuArrangeItems(a,b,e);this.addPopupMenuCellItems(a,b,e);this.addPopupMenuSelectionItems(a,b,e)};Menus.prototype.isShowHistoryItems=function(){return!0};
Menus.prototype.addPopupMenuHistoryItems=function(a,b,e){this.editorUi.editor.graph.isSelectionEmpty()&&this.addMenuItems(a,["undo","redo"],null,e)};Menus.prototype.addPopupDeleteItem=function(a,b,e){a=this.addMenuItem(a,"delete");null!=a&&null!=a.firstChild&&null!=a.firstChild.nextSibling&&(a.firstChild.nextSibling.style.color="red",b=this.editorUi.editor.graph,1<b.getSelectionCount()&&(a.firstChild.nextSibling.innerHTML=mxUtils.htmlEntities(mxResources.get("delete")+" ("+b.getSelectionCount()+")")))};
@@ -3736,15 +3736,15 @@ function(){document.execCommand("insertunorderedlist",!1,null)}));f.setAttribute
e=this.addMenuFunction("",mxResources.get("format"),!1,mxUtils.bind(this,function(h){f=h.addItem("",Editor.subscriptImage,this.editorUi.actions.get("subscript").funct);f.setAttribute("title",mxResources.get("subscript")+" ("+Editor.ctrlKey+"+,)");f=h.addItem("",Editor.superscriptImage,this.editorUi.actions.get("superscript").funct);f.setAttribute("title",mxResources.get("superscript")+" ("+Editor.ctrlKey+"+.)");f=h.addItem("",Editor.fontColorImage,this.editorUi.actions.get("fontColor").funct);f.setAttribute("title",
mxResources.get("fontColor"));f=h.addItem("",Editor.backgroundColorImage,this.editorUi.actions.get("backgroundColor").funct);f.setAttribute("title",mxResources.get("backgroundColor"));f=h.addItem("",Editor.removeFormatImage,mxUtils.bind(this,function(){document.execCommand("removeformat",!1,null)}));f.setAttribute("title",mxResources.get("removeFormat"))}));this.addDropDownArrow(e,Editor.textFormatImage,38);this.addSeparator();this.addButton(Editor.codeImage,mxResources.get("html"),function(){b.cellEditor.toggleViewMode();
0<b.cellEditor.textarea.innerHTML.length&&("&nbsp;"!=b.cellEditor.textarea.innerHTML||!b.cellEditor.clearOnChange)&&window.setTimeout(function(){document.execCommand("selectAll",!1,null)})});this.addSeparator();e=this.addMenuFunction("",mxResources.get("insert"),!0,mxUtils.bind(this,function(h){h.addItem(mxResources.get("insertLink"),null,mxUtils.bind(this,function(){this.editorUi.actions.get("link").funct()}));h.addItem(mxResources.get("insertImage"),null,mxUtils.bind(this,function(){this.editorUi.actions.get("image").funct()}));
-h.addItem(mxResources.get("insertHorizontalRule"),null,mxUtils.bind(this,function(){document.execCommand("inserthorizontalrule",!1,null)}))}));this.addDropDownArrow(e,Editor.plusImage,38);this.addSeparator();var f=this.addMenuFunction(Editor.tableImage,mxResources.get("table"),!1,mxUtils.bind(this,function(h){var d=b.getSelectedElement(),g=b.getParentByNames(d,["TD","TH"],b.cellEditor.text2),m=b.getParentByName(d,"TR",b.cellEditor.text2);if(null==m)this.editorUi.menus.addInsertTableItem(h);else{var p=
-b.getParentByName(m,"TABLE",b.cellEditor.text2);d=h.addItem("",Editor.addColumnLeftImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(p,null!=g?g.cellIndex:0))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertColumnBefore"));d=h.addItem("",Editor.addColumnRightImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(p,null!=g?g.cellIndex+1:-1))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertColumnAfter"));
-d=h.addItem("Delete column",Editor.removeColumnImage,mxUtils.bind(this,function(){if(null!=g)try{b.deleteColumn(p,g.cellIndex)}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("deleteColumn"));d=h.addItem("",Editor.addRowAboveImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertRow(p,m.sectionRowIndex))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertRowBefore"));d=h.addItem("",Editor.addRowBelowImage,mxUtils.bind(this,
-function(){try{b.selectNode(b.insertRow(p,m.sectionRowIndex+1))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertRowAfter"));d=h.addItem("",Editor.removeRowImage,mxUtils.bind(this,function(){try{b.deleteRow(p,m.sectionRowIndex)}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("deleteRow"));d=h.addItem("",Editor.strokeColorImage,mxUtils.bind(this,function(){var k=p.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,
-function(u,w,z,C){return"#"+("0"+Number(w).toString(16)).substr(-2)+("0"+Number(z).toString(16)).substr(-2)+("0"+Number(C).toString(16)).substr(-2)});this.editorUi.pickColor(k,function(u){null==u||u==mxConstants.NONE?(p.removeAttribute("border"),p.style.border="",p.style.borderCollapse=""):(p.setAttribute("border","1"),p.style.border="1px solid "+u,p.style.borderCollapse="collapse")})}));d.setAttribute("title",mxResources.get("borderColor"));d=h.addItem("",Editor.fillColorImage,mxUtils.bind(this,
-function(){var k=p.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(u,w,z,C){return"#"+("0"+Number(w).toString(16)).substr(-2)+("0"+Number(z).toString(16)).substr(-2)+("0"+Number(C).toString(16)).substr(-2)});this.editorUi.pickColor(k,function(u){p.style.backgroundColor=null==u||u==mxConstants.NONE?"":u})}));d.setAttribute("title",mxResources.get("backgroundColor"));d=h.addItem("",Editor.spacingImage,mxUtils.bind(this,function(){var k=p.getAttribute("cellPadding")||
-0;k=new FilenameDialog(this.editorUi,k,mxResources.get("apply"),mxUtils.bind(this,function(u){null!=u&&0<u.length?p.setAttribute("cellPadding",u):p.removeAttribute("cellPadding")}),mxResources.get("spacing"));this.editorUi.showDialog(k.container,300,80,!0,!0);k.init()}));d.setAttribute("title",mxResources.get("spacing"));d=h.addItem("",Editor.alignLeftImage,mxUtils.bind(this,function(){p.setAttribute("align","left")}));d.setAttribute("title",mxResources.get("left"));d=h.addItem("",Editor.alignCenterImage,
-mxUtils.bind(this,function(){p.setAttribute("align","center")}));d.setAttribute("title",mxResources.get("center"));d=h.addItem("",Editor.alignRightImage,mxUtils.bind(this,function(){p.setAttribute("align","right")}));d.setAttribute("title",mxResources.get("right"))}}));this.addDropDownArrow(f,Editor.tableImage,38)};Toolbar.prototype.hideMenu=function(){this.editorUi.hideCurrentMenu()};
-Toolbar.prototype.addMenu=function(a,b,e,f,h,d,g){var m=this.editorUi.menus.get(f),p=this.addMenuFunction(a,b,e,function(){m.funct.apply(m,arguments)},h,d);g||"function"!==typeof p.setEnabled||m.addListener("stateChanged",function(){p.setEnabled(m.enabled)});return p};Toolbar.prototype.addMenuFunction=function(a,b,e,f,h,d){return this.addMenuFunctionInContainer(null!=h?h:this.container,a,b,e,f,d)};
+h.addItem(mxResources.get("insertHorizontalRule"),null,mxUtils.bind(this,function(){document.execCommand("inserthorizontalrule",!1,null)}))}));this.addDropDownArrow(e,Editor.plusImage,38);this.addSeparator();var f=this.addMenuFunction(Editor.tableImage,mxResources.get("table"),!1,mxUtils.bind(this,function(h){var d=b.getSelectedElement(),g=b.getParentByNames(d,["TD","TH"],b.cellEditor.text2),m=b.getParentByName(d,"TR",b.cellEditor.text2);if(null==m)this.editorUi.menus.addInsertTableItem(h);else{var q=
+b.getParentByName(m,"TABLE",b.cellEditor.text2);d=h.addItem("",Editor.addColumnLeftImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(q,null!=g?g.cellIndex:0))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertColumnBefore"));d=h.addItem("",Editor.addColumnRightImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(q,null!=g?g.cellIndex+1:-1))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertColumnAfter"));
+d=h.addItem("Delete column",Editor.removeColumnImage,mxUtils.bind(this,function(){if(null!=g)try{b.deleteColumn(q,g.cellIndex)}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("deleteColumn"));d=h.addItem("",Editor.addRowAboveImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertRow(q,m.sectionRowIndex))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertRowBefore"));d=h.addItem("",Editor.addRowBelowImage,mxUtils.bind(this,
+function(){try{b.selectNode(b.insertRow(q,m.sectionRowIndex+1))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertRowAfter"));d=h.addItem("",Editor.removeRowImage,mxUtils.bind(this,function(){try{b.deleteRow(q,m.sectionRowIndex)}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("deleteRow"));d=h.addItem("",Editor.strokeColorImage,mxUtils.bind(this,function(){var k=q.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,
+function(u,w,z,C){return"#"+("0"+Number(w).toString(16)).substr(-2)+("0"+Number(z).toString(16)).substr(-2)+("0"+Number(C).toString(16)).substr(-2)});this.editorUi.pickColor(k,function(u){null==u||u==mxConstants.NONE?(q.removeAttribute("border"),q.style.border="",q.style.borderCollapse=""):(q.setAttribute("border","1"),q.style.border="1px solid "+u,q.style.borderCollapse="collapse")})}));d.setAttribute("title",mxResources.get("borderColor"));d=h.addItem("",Editor.fillColorImage,mxUtils.bind(this,
+function(){var k=q.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(u,w,z,C){return"#"+("0"+Number(w).toString(16)).substr(-2)+("0"+Number(z).toString(16)).substr(-2)+("0"+Number(C).toString(16)).substr(-2)});this.editorUi.pickColor(k,function(u){q.style.backgroundColor=null==u||u==mxConstants.NONE?"":u})}));d.setAttribute("title",mxResources.get("backgroundColor"));d=h.addItem("",Editor.spacingImage,mxUtils.bind(this,function(){var k=q.getAttribute("cellPadding")||
+0;k=new FilenameDialog(this.editorUi,k,mxResources.get("apply"),mxUtils.bind(this,function(u){null!=u&&0<u.length?q.setAttribute("cellPadding",u):q.removeAttribute("cellPadding")}),mxResources.get("spacing"));this.editorUi.showDialog(k.container,300,80,!0,!0);k.init()}));d.setAttribute("title",mxResources.get("spacing"));d=h.addItem("",Editor.alignLeftImage,mxUtils.bind(this,function(){q.setAttribute("align","left")}));d.setAttribute("title",mxResources.get("left"));d=h.addItem("",Editor.alignCenterImage,
+mxUtils.bind(this,function(){q.setAttribute("align","center")}));d.setAttribute("title",mxResources.get("center"));d=h.addItem("",Editor.alignRightImage,mxUtils.bind(this,function(){q.setAttribute("align","right")}));d.setAttribute("title",mxResources.get("right"))}}));this.addDropDownArrow(f,Editor.tableImage,38)};Toolbar.prototype.hideMenu=function(){this.editorUi.hideCurrentMenu()};
+Toolbar.prototype.addMenu=function(a,b,e,f,h,d,g){var m=this.editorUi.menus.get(f),q=this.addMenuFunction(a,b,e,function(){m.funct.apply(m,arguments)},h,d);g||"function"!==typeof q.setEnabled||m.addListener("stateChanged",function(){q.setEnabled(m.enabled)});return q};Toolbar.prototype.addMenuFunction=function(a,b,e,f,h,d){return this.addMenuFunctionInContainer(null!=h?h:this.container,a,b,e,f,d)};
Toolbar.prototype.addMenuFunctionInContainer=function(a,b,e,f,h,d){b=f?this.createLabel(b):this.createButton(b);this.initElement(b,e);this.addMenuHandler(b,f,h,d);a.appendChild(b);return b};Toolbar.prototype.addSeparator=function(a){a=null!=a?a:this.container;var b=document.createElement("div");b.className="geSeparator";a.appendChild(b);return b};
Toolbar.prototype.addItems=function(a,b,e,f){for(var h=[],d=0;d<a.length;d++){var g=a[d];"-"==g?h.push(this.addSeparator(b)):h.push(this.addItem(null!=f?f[d]:null,g,b,e))}return h};Toolbar.prototype.addItem=function(a,b,e,f){var h=this.editorUi.actions.get(b),d=null;null!=h&&(b=h.label,null!=h.shortcut&&(b+=" ("+h.shortcut+")"),d=this.addButton(a,b,h.funct,e),f||"function"!==typeof d.setEnabled||(d.setEnabled(h.enabled),h.addListener("stateChanged",function(){d.setEnabled(h.enabled)})));return d};
Toolbar.prototype.addButton=function(a,b,e,f){a=this.createButton(a);f=null!=f?f:this.container;this.initElement(a,b);this.addClickHandler(a,e);f.appendChild(a);return a};Toolbar.prototype.initElement=function(a,b){null!=b&&a.setAttribute("title",b);this.addEnabledState(a)};Toolbar.prototype.addEnabledState=function(a){var b=a.className;a.setEnabled=function(e){a.enabled=e;a.className=e?b:b+" mxDisabled"};a.setEnabled(!0)};
@@ -3752,17 +3752,17 @@ Toolbar.prototype.addClickHandler=function(a,b){null!=b&&(mxEvent.addListener(a,
Toolbar.prototype.createButton=function(a){var b=document.createElement("a");b.className="geButton";var e=document.createElement("div");null!=a&&"data:"==a.substring(0,5)&&(e.className="geAdaptiveAsset",e.style.backgroundImage="url("+a+")",e.style.backgroundPosition="center center",e.style.backgroundRepeat="no-repeat",e.style.backgroundSize="18px",e.style.width="22px",e.style.height="20px");b.appendChild(e);return b};
Toolbar.prototype.createLabel=function(a,b){b=document.createElement("a");b.className="geLabel";mxUtils.write(b,a);return b};
Toolbar.prototype.addMenuHandler=function(a,b,e,f){if(null!=e){var h=this.editorUi.editor.graph,d=null,g=!0;mxEvent.addListener(a,"click",mxUtils.bind(this,function(m){if(g&&(null==a.enabled||a.enabled)){h.popupMenuHandler.hideMenu();d=new mxPopupMenu(e);d.smartSeparators=!0;d.div.className+=" geToolbarMenu";d.showDisabled=f;d.labels=b;d.autoExpand=!0;!b&&d.div.scrollHeight>d.div.clientHeight&&(d.div.style.width="40px");d.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(d,
-arguments);this.editorUi.resetCurrentMenu();d.destroy()});var p=mxUtils.getOffset(a);d.popup(p.x,p.y+a.offsetHeight,null,m);this.editorUi.setCurrentMenu(d,a)}g=!0;mxEvent.consume(m)}));mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(m){g=null==d||null==d.div||null==d.div.parentNode;m.preventDefault()}))}};Toolbar.prototype.destroy=function(){null!=this.gestureHandler&&(mxEvent.removeGestureListeners(document,this.gestureHandler),this.gestureHandler=null)};var OpenDialog=function(){var a=document.createElement("iframe");a.style.backgroundColor="transparent";a.allowTransparency="true";a.style.borderStyle="none";a.style.borderWidth="0px";a.style.overflow="hidden";a.style.maxWidth="100%";a.frameBorder="0";a.setAttribute("width",(Editor.useLocalStorage?640:320)+"px");a.setAttribute("height",(Editor.useLocalStorage?480:220)+"px");a.setAttribute("src",OPEN_FORM);this.container=a},ColorPicker=function(){function a(E,D,G){if(null==E)return[G,G,G];var J=Math.floor(E),
+arguments);this.editorUi.resetCurrentMenu();d.destroy()});var q=mxUtils.getOffset(a);d.popup(q.x,q.y+a.offsetHeight,null,m);this.editorUi.setCurrentMenu(d,a)}g=!0;mxEvent.consume(m)}));mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(m){g=null==d||null==d.div||null==d.div.parentNode;m.preventDefault()}))}};Toolbar.prototype.destroy=function(){null!=this.gestureHandler&&(mxEvent.removeGestureListeners(document,this.gestureHandler),this.gestureHandler=null)};var OpenDialog=function(){var a=document.createElement("iframe");a.style.backgroundColor="transparent";a.allowTransparency="true";a.style.borderStyle="none";a.style.borderWidth="0px";a.style.overflow="hidden";a.style.maxWidth="100%";a.frameBorder="0";a.setAttribute("width",(Editor.useLocalStorage?640:320)+"px");a.setAttribute("height",(Editor.useLocalStorage?480:220)+"px");a.setAttribute("src",OPEN_FORM);this.container=a},ColorPicker=function(){function a(E,D,G){if(null==E)return[G,G,G];var J=Math.floor(E),
L=G*(1-D);E=G*(1-D*(J%2?E-J:1-(E-J)));switch(J){case 6:case 0:return[G,E,L];case 1:return[E,G,L];case 2:return[L,G,E];case 3:return[L,E,G];case 4:return[E,L,G];case 5:return[G,L,E]}}mxEventSource.call(this);var b=document.createElement("div");b.style.overflow="visible";b.style.position="relative";b.style.top="0px";b.style.left="0px";b.style.width="230px";b.style.height="114px";var e=document.createElement("div");e.style.border="1px solid light-dark(black, white)";e.style.backgroundImage="url("+this.hsImage+
")";e.style.position="absolute";e.style.overflow="hidden";e.style.cursor="crosshair";e.style.width="181px";e.style.height="101px";e.style.left="6px";e.style.top="4px";var f=document.createElement("div");f.style.background="url("+this.crossImage+")";f.style.pointerEvents="none";f.style.position="absolute";f.style.width="15px";f.style.height="15px";f.style.left="-8px";f.style.top="-8px";var h=[0,0,1];e.appendChild(f);b.appendChild(e);sliderBox=document.createElement("div");sliderBox.style.position=
-"absolute";sliderBox.style.cursor="pointer";sliderBox.style.width="38px";sliderBox.style.height="110px";sliderBox.style.left="199px";sliderBox.style.top="4px";var d=document.createElement("div");d.style.border="1px solid light-dark(black, white)";d.style.pointerEvents="none";d.style.overflow="hidden";d.style.position="absolute";d.style.width="16px";d.style.height="101px";d.style.left="9px";d.style.top="0px";var g=!1,m=!1,p=mxUtils.bind(this,function(E){var D=Math.round(100*(1-h[1]));f.style.left=
+"absolute";sliderBox.style.cursor="pointer";sliderBox.style.width="38px";sliderBox.style.height="110px";sliderBox.style.left="199px";sliderBox.style.top="4px";var d=document.createElement("div");d.style.border="1px solid light-dark(black, white)";d.style.pointerEvents="none";d.style.overflow="hidden";d.style.position="absolute";d.style.width="16px";d.style.height="101px";d.style.left="9px";d.style.top="0px";var g=!1,m=!1,q=mxUtils.bind(this,function(E){var D=Math.round(100*(1-h[1]));f.style.left=
Math.round(h[0]/6*180)-8+"px";f.style.top=D-8+"px";D=d.childNodes;for(var G=a(h[0],h[1],1),J=0;J<D.length;J++)D[J].style.backgroundColor="rgb("+G[0]*(1-J/D.length)*255+", "+G[1]*(1-J/D.length)*255+", "+G[2]*(1-J/D.length)*255+")";C.style.top=Math.round(100*(1-h[2]))-4+"px";D=a(h[0],h[1],h[2]);D="#"+("0"+Math.round(255*D[0]).toString(16)).slice(-2)+("0"+Math.round(255*D[1]).toString(16)).slice(-2)+("0"+Math.round(255*D[2]).toString(16)).slice(-2);1!=E&&this.fireEvent(new mxEventObject("change","color",
mxUtils.rgba2hex(D)))}),k=mxUtils.bind(this,function(E){0==h[2]&&(h[2]=1);g=!0;w(E)}),u=mxUtils.bind(this,function(E){m=!0;w(E)}),w=mxUtils.bind(this,function(E){if(g){var D=e.getBoundingClientRect(),G=mxEvent.getClientX(E)-D.left;E=mxEvent.getClientY(E)-D.top;f.style.left=G-8+"px";f.style.top=E-8+"px";G*=6/180;E=1-E/100;D=void 0;0>G&&(G=0);6<G&&(G=6);0>E&&(E=0);1<E&&(E=1);0>D&&(D=0);1<D&&(D=1);G=a(null==G?h[0]:h[0]=G,null==E?h[1]:h[1]=E,null==D?h[2]:h[2]=D);this.fromString("#"+("0"+Math.floor(255*
-G[0]).toString(16)).slice(-2)+("0"+Math.floor(255*G[1]).toString(16)).slice(-2)+("0"+Math.floor(255*G[2]).toString(16)).slice(-2))}else m&&(D=sliderBox.getBoundingClientRect(),E=mxEvent.getClientY(E)-D.top,h[2]=Math.max(Math.min(1,1-E/100),0),p())}),z=mxUtils.bind(this,function(){g=m=!1});mxEvent.addGestureListeners(e,k);mxEvent.addGestureListeners(sliderBox,u);mxEvent.addGestureListeners(b,null,w,z);mxEvent.addListener(b,"mouseleave",z);for(k=0;101>k;k+=4)u=document.createElement("div"),u.style.height=
+G[0]).toString(16)).slice(-2)+("0"+Math.floor(255*G[1]).toString(16)).slice(-2)+("0"+Math.floor(255*G[2]).toString(16)).slice(-2))}else m&&(D=sliderBox.getBoundingClientRect(),E=mxEvent.getClientY(E)-D.top,h[2]=Math.max(Math.min(1,1-E/100),0),q())}),z=mxUtils.bind(this,function(){g=m=!1});mxEvent.addGestureListeners(e,k);mxEvent.addGestureListeners(sliderBox,u);mxEvent.addGestureListeners(b,null,w,z);mxEvent.addListener(b,"mouseleave",z);for(k=0;101>k;k+=4)u=document.createElement("div"),u.style.height=
"4px",u.style.pointerEvents="none",d.appendChild(u);b.appendChild(d);var C=document.createElement("div");C.style.background="url("+this.arrowImage+")";C.style.position="absolute";C.style.pointerEvents="none";C.style.width="7px";C.style.height="11px";C.style.left="2px";C.style.top="-3px";sliderBox.appendChild(C);sliderBox.appendChild(d);b.appendChild(sliderBox);this.fromString=function(E,D){D=null!=D?D:!1;if(null==E||""==E||mxUtils.isVarColor(E)||E==mxConstants.NONE)E="#ffffff",D=!0;var G=mxUtils.parseColor(E);
-E=G.r/255;var J=G.g/255,L=G.b/255,Q=Math.min(Math.min(E,J),L);G=Math.max(Math.max(E,J),L);var N=G-Q;0===N?E=[null,0,G]:(E=E===Q?3+(L-J)/N:J===Q?5+(E-L)/N:1+(J-E)/N,E=[6===E?0:E,N/G,G]);null!=E[0]&&(h[0]=E[0]);0!=E[2]&&(h[1]=E[1]);h[2]=E[2];p(D)};this.fromString("#ffffff");this.div=b};mxUtils.extend(ColorPicker,mxEventSource);ColorPicker.prototype.hsImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALUAAABlCAIAAACEDzXRAAAKQ0lEQVR42u2d23IjKwxFBeRh5v8/9uQlzXlI2gGELoCEm6pxubp6PI69WoV3C20uIQPAH4A/AH/p41/pDcTxP4BPGDtq3vYJGPpv8craeRdo/fyTI8ZhHnodOGgcV/3rnx8QI0SABO2xfAbiCfVR8Wj+CD8jenbRJNyGOxLoAaH1iLu4EUEHAv1+MsQ4zLE4AiIOcpibv4u9OET6+cP4ASnJ1JH4/G60A9km+GbBxLlpKAkADoR2JnaBrvWD/x1GCZn9EYLEHqVfI6Efx0D7E9tDF/rBSJ54l8FqTUse0J+EvxPrdK0fD4aOLXQi7zyGxMaRvvWjjH2U8o9I44OKnf+wyCpHoR/Phk6d/COq8481YrNI3/qR2B+kMl1Fl6J8o/JrU/GEA6HdiB2ha/0YBVx7rFwNHAj9JuIl6EI/qKyJug4Yvg7xA0QEpB8nQe8itoQu9EOT8M3mTsqUSUzykH6cBO1PbA9d91+ShDzV9xrtcgW21IT6L0yfcS90FKCdw+wS6Q9ISWjVfLTVVT2mdiPGGRduFKWm7dBStWlLmI0j/QExdgp7gT5qCu2BLKiLqtc94hI7PB8auQP4KuyIvSJ960fUqXWcd2F48Khr1bHSj2dDp/afmg7tMrFxpG/9mHMFuqrH3spFw0s0Bgr9OAzamdgFutaPpMuqo6WVEXWJdSL14xhof2J76MKfS2yXWGOVB1WXXGOVdxFSx587CXoLsTE0689RH7VW4RMLeKI9wPpzz4XeS2wDzdbXR52AWStjwiSAA6HdiB2h1f6cqT0whzzuzz0LejuxATTy90Xt40v7CzdGRvKS4O/zQ0AiXaRW5x/dv4vS4A/a308LYR5pFquRRvlHIrKWoCj5woCVId4eR/KPNDjURg2tdEC7rSQN5B9DYR70X5YivVxft7AyrOvrD4V2JnaBJurr+qpemLEywlRhT6qvPx16C7ExdK0fSjcj0maAzsqgBt7rfIxGP46B9iT2gi70I842bNj0U4wd/WAG/L5VP3p0W4iNoYv6Oh6eoJmSMW5laIzF8iT1TtgeV9RZoZ7QvdEUzsQu0CP+HOMKDFoZvDFg6s89CNqf2B5a4e8Hts84W0pgeohBtspBXYp8H3Tk/H23MBtHuvbn5mp7dlU9TUkP+XNJMabzHdCIbnuYDSItzZ+bdgUWrAwNPhwInRxw1/wXuYGj+4vo7flboRpjEQ6EjgojYK9/K04NFfNTauEBypXQWQLAfqQoHl9CfvpQ6C3ExtC9/q2YW2u6X1JWzfsYFPKX3L99LrQ/sT10XR+jKh+UN2AxlDOyXfLQaxxf/fkvT4d2JnaBZv258M6h4IFu2Em7/sezoLcQG0Mjfy6xrqLnVBLGWHw1i69WP5LCCn0TNEL3DLNXpCV/n5oo5jAVLY5Em6i8Pwm6uSNuCrNxpNX+nDira20qqyZriv384xhoZ2IX6Lr/wg8eiwpXYGQqPEgjsBrX+er3X46B9ie2h6bX/4i6IfcLS2mIY++7TfoCuLj6hwgN89CwBJ3Gx8rOVsn0kQ48tDS/4X1L8SzMb3BbkGdtwsD05AbP9YOU8xui+uljZei/P/3qx2HQbsSO0Ar/lveHLZYCVK4GeN1P5N+eAb2R2Aya9ueUY+8dlhLtdhWvgfEfz4AeGf9hR2wcaeTPpacvRdzLTx8J/Qq1Ij995PrJ3/mp0p8LO5YyF0s215g/9yxoZ2IXaLo+FiwtgTlvIAznp4+G3khsBk3Pf5mYvqOwMqZnNnw3i9cRDoT2JPaCZuvreskDuXkHxfQMvfbBgdBbiI2hC/3QLCg6lESZZkrfJ7nSj3gWNEMcRkYJsf5L0BXENBl1WV8/aquMLM9/eSJ0UtxZmFGGg4MigZ75ovHnvsOcUX09zRbzjCrU/K/Rev0gT2i2vu4cZrNI1+sH2e49Yb3lRC6e9fSS9ETohjj7hdkx0rQ/57/rxIrhBQdCv494Hlrtz1lo30Qjz1z+cRh02ndTNIMm1j8NxtmePs+76i+/esJHrH/6dGh/YntoRf9l2RtQWgJXzY4bdtbqx0OhnYldoHv7I79jf4+rOGGaRWr14yToLcTG0Ky/v32rjAsdX9S5vgI4ENqT2Asa7Z/9vq0yStiGNNVHkOe/RGmqwBQ0jEDHFpoJ85BLN+jPaRoHGWl2/2yx3msxVRHjZ0Td4GfV/Bf9bCM1dBiBfrHeJ1HR6dKEedDf5yPdBLilp/efC3Ribb1VxlUHGQe8iTb0598+Hdqf2B6a3b9SOerezsoIBWaJ3IBn1fp0j4PeQmwMzc5/idLK3UZWRkmKX2zA4Vc/DoPeSGwGrdvfY24RpKmVjrLuCQdCuxE7Qkv64TZ3Z44dVPrxUOh3EK9C1/lHGpz7ZzpVsYTF7K8Hyj+Ogd5FbAk9uL9H9LIyYg821sjo13gYtD+xPbRU/9Ds/b1sZTTIr5OStMGHA6GdiV2gUf2UmQcfJdUbXOoe6HoN1A0b2uQD4EBosXJqQTwKnXvXAEX+oZlfGaS9ewetDGCLeV1exH4e9Mr+2TDpv2iggYFW+LdBsTbngv/yUroGH0jleEX7MOgtxMbQ7PzKoMuajKyM8pYIiB194HnQzsQu0Gp/LvpulVHylsgK/TgG2p/YHrqXf6T3bJUBhfxFWUDPg95CbAytm/+ycasM9WOxWu0PnTniLWE2iLRi/4Z3bJXRvY76s0+Arl93I3aMNOHPBce2PdSkL7Kpnwe9l9gGutCPoFgkUtytXAGbex0vKCznSOs00o+ToLcQG0N/QErCrG6jrTIynVUDwo896vCzssPrNnAYtD+xPfR9fwmKeu/CVhm5OAn1STPkvhxBW1KXjeP60Y/DoJ2JXaAL/RCPy+PXc80L9d7OV294dVPbC/fb4EDoLcTG0IV+TCDrrIxMHIFg512BWj9OgvYk9oK+9SMoZG55q/JMiGS40/sLjacu28T3MVfd0Aha+u3QJXr+0Q//MBtHutaPQOzh3H0RBoZS5OJ/MjqJ9x2vQb7qgSuvX0StH0+FLptzrvTDh9gl0oV+iAbi2lAsqNmbK3yBAyLNdbRzW8Y6Btqf2B76A2IURE2zZY16KGfZlwqofJSL4feABka+xCNX+ekx0LuILaFr/Zit7s4ZA7y5Qg2sDr/t4zDodxCvQt/6occctDKGriMPzH85D9qN2BG61g/QwcLSVDSGl78C6LePY6A3EptBf0BKcjWWH/GqyJqoxKnMufEVBLJxAJwJ7U9sDH3fX0CxnIB4orMyuilTyRh6g+0bfDgQ2p/YHrrQD+jV6qb/SdRrMit8TRWwyEabxgFwJrQnsQt0rR+LR3VqFNiGHRBv73ge9EZiM+haPyicuRcVmIxzAMTMl9wfi3sGtBuxF3ShH92C29yJTteU+ohbRrZk3Qe9hdgY+tYPnOqanA+mTN33ZGKE06HQbsQu0LV+MF8+94rU5dK8B8/KyJaI+6D9ie2hC/3Q12QnSnYLn5p9P/6d0D7EltAh5wz/Hv8exON/LUjHOuz5CksAAAAASUVORK5CYII=";
+E=G.r/255;var J=G.g/255,L=G.b/255,Q=Math.min(Math.min(E,J),L);G=Math.max(Math.max(E,J),L);var N=G-Q;0===N?E=[null,0,G]:(E=E===Q?3+(L-J)/N:J===Q?5+(E-L)/N:1+(J-E)/N,E=[6===E?0:E,N/G,G]);null!=E[0]&&(h[0]=E[0]);0!=E[2]&&(h[1]=E[1]);h[2]=E[2];q(D)};this.fromString("#ffffff");this.div=b};mxUtils.extend(ColorPicker,mxEventSource);ColorPicker.prototype.hsImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALUAAABlCAIAAACEDzXRAAAKQ0lEQVR42u2d23IjKwxFBeRh5v8/9uQlzXlI2gGELoCEm6pxubp6PI69WoV3C20uIQPAH4A/AH/p41/pDcTxP4BPGDtq3vYJGPpv8craeRdo/fyTI8ZhHnodOGgcV/3rnx8QI0SABO2xfAbiCfVR8Wj+CD8jenbRJNyGOxLoAaH1iLu4EUEHAv1+MsQ4zLE4AiIOcpibv4u9OET6+cP4ASnJ1JH4/G60A9km+GbBxLlpKAkADoR2JnaBrvWD/x1GCZn9EYLEHqVfI6Efx0D7E9tDF/rBSJ54l8FqTUse0J+EvxPrdK0fD4aOLXQi7zyGxMaRvvWjjH2U8o9I44OKnf+wyCpHoR/Phk6d/COq8481YrNI3/qR2B+kMl1Fl6J8o/JrU/GEA6HdiB2ha/0YBVx7rFwNHAj9JuIl6EI/qKyJug4Yvg7xA0QEpB8nQe8itoQu9EOT8M3mTsqUSUzykH6cBO1PbA9d91+ShDzV9xrtcgW21IT6L0yfcS90FKCdw+wS6Q9ISWjVfLTVVT2mdiPGGRduFKWm7dBStWlLmI0j/QExdgp7gT5qCu2BLKiLqtc94hI7PB8auQP4KuyIvSJ960fUqXWcd2F48Khr1bHSj2dDp/afmg7tMrFxpG/9mHMFuqrH3spFw0s0Bgr9OAzamdgFutaPpMuqo6WVEXWJdSL14xhof2J76MKfS2yXWGOVB1WXXGOVdxFSx587CXoLsTE0689RH7VW4RMLeKI9wPpzz4XeS2wDzdbXR52AWStjwiSAA6HdiB2h1f6cqT0whzzuzz0LejuxATTy90Xt40v7CzdGRvKS4O/zQ0AiXaRW5x/dv4vS4A/a308LYR5pFquRRvlHIrKWoCj5woCVId4eR/KPNDjURg2tdEC7rSQN5B9DYR70X5YivVxft7AyrOvrD4V2JnaBJurr+qpemLEywlRhT6qvPx16C7ExdK0fSjcj0maAzsqgBt7rfIxGP46B9iT2gi70I842bNj0U4wd/WAG/L5VP3p0W4iNoYv6Oh6eoJmSMW5laIzF8iT1TtgeV9RZoZ7QvdEUzsQu0CP+HOMKDFoZvDFg6s89CNqf2B5a4e8Hts84W0pgeohBtspBXYp8H3Tk/H23MBtHuvbn5mp7dlU9TUkP+XNJMabzHdCIbnuYDSItzZ+bdgUWrAwNPhwInRxw1/wXuYGj+4vo7flboRpjEQ6EjgojYK9/K04NFfNTauEBypXQWQLAfqQoHl9CfvpQ6C3ExtC9/q2YW2u6X1JWzfsYFPKX3L99LrQ/sT10XR+jKh+UN2AxlDOyXfLQaxxf/fkvT4d2JnaBZv258M6h4IFu2Em7/sezoLcQG0Mjfy6xrqLnVBLGWHw1i69WP5LCCn0TNEL3DLNXpCV/n5oo5jAVLY5Em6i8Pwm6uSNuCrNxpNX+nDira20qqyZriv384xhoZ2IX6Lr/wg8eiwpXYGQqPEgjsBrX+er3X46B9ie2h6bX/4i6IfcLS2mIY++7TfoCuLj6hwgN89CwBJ3Gx8rOVsn0kQ48tDS/4X1L8SzMb3BbkGdtwsD05AbP9YOU8xui+uljZei/P/3qx2HQbsSO0Ar/lveHLZYCVK4GeN1P5N+eAb2R2Aya9ueUY+8dlhLtdhWvgfEfz4AeGf9hR2wcaeTPpacvRdzLTx8J/Qq1Ij995PrJ3/mp0p8LO5YyF0s215g/9yxoZ2IXaLo+FiwtgTlvIAznp4+G3khsBk3Pf5mYvqOwMqZnNnw3i9cRDoT2JPaCZuvreskDuXkHxfQMvfbBgdBbiI2hC/3QLCg6lESZZkrfJ7nSj3gWNEMcRkYJsf5L0BXENBl1WV8/aquMLM9/eSJ0UtxZmFGGg4MigZ75ovHnvsOcUX09zRbzjCrU/K/Rev0gT2i2vu4cZrNI1+sH2e49Yb3lRC6e9fSS9ETohjj7hdkx0rQ/57/rxIrhBQdCv494Hlrtz1lo30Qjz1z+cRh02ndTNIMm1j8NxtmePs+76i+/esJHrH/6dGh/YntoRf9l2RtQWgJXzY4bdtbqx0OhnYldoHv7I79jf4+rOGGaRWr14yToLcTG0Ky/v32rjAsdX9S5vgI4ENqT2Asa7Z/9vq0yStiGNNVHkOe/RGmqwBQ0jEDHFpoJ85BLN+jPaRoHGWl2/2yx3msxVRHjZ0Td4GfV/Bf9bCM1dBiBfrHeJ1HR6dKEedDf5yPdBLilp/efC3Ribb1VxlUHGQe8iTb0598+Hdqf2B6a3b9SOerezsoIBWaJ3IBn1fp0j4PeQmwMzc5/idLK3UZWRkmKX2zA4Vc/DoPeSGwGrdvfY24RpKmVjrLuCQdCuxE7Qkv64TZ3Z44dVPrxUOh3EK9C1/lHGpz7ZzpVsYTF7K8Hyj+Ogd5FbAk9uL9H9LIyYg821sjo13gYtD+xPbRU/9Ds/b1sZTTIr5OStMGHA6GdiV2gUf2UmQcfJdUbXOoe6HoN1A0b2uQD4EBosXJqQTwKnXvXAEX+oZlfGaS9ewetDGCLeV1exH4e9Mr+2TDpv2iggYFW+LdBsTbngv/yUroGH0jleEX7MOgtxMbQ7PzKoMuajKyM8pYIiB194HnQzsQu0Gp/LvpulVHylsgK/TgG2p/YHrqXf6T3bJUBhfxFWUDPg95CbAytm/+ycasM9WOxWu0PnTniLWE2iLRi/4Z3bJXRvY76s0+Arl93I3aMNOHPBce2PdSkL7Kpnwe9l9gGutCPoFgkUtytXAGbex0vKCznSOs00o+ToLcQG0N/QErCrG6jrTIynVUDwo896vCzssPrNnAYtD+xPfR9fwmKeu/CVhm5OAn1STPkvhxBW1KXjeP60Y/DoJ2JXaAL/RCPy+PXc80L9d7OV294dVPbC/fb4EDoLcTG0IV+TCDrrIxMHIFg512BWj9OgvYk9oK+9SMoZG55q/JMiGS40/sLjacu28T3MVfd0Aha+u3QJXr+0Q//MBtHutaPQOzh3H0RBoZS5OJ/MjqJ9x2vQb7qgSuvX0StH0+FLptzrvTDh9gl0oV+iAbi2lAsqNmbK3yBAyLNdbRzW8Y6Btqf2B76A2IURE2zZY16KGfZlwqofJSL4feABka+xCNX+ekx0LuILaFr/Zit7s4ZA7y5Qg2sDr/t4zDodxCvQt/6occctDKGriMPzH85D9qN2BG61g/QwcLSVDSGl78C6LePY6A3EptBf0BKcjWWH/GqyJqoxKnMufEVBLJxAJwJ7U9sDH3fX0CxnIB4orMyuilTyRh6g+0bfDgQ2p/YHrrQD+jV6qb/SdRrMit8TRWwyEabxgFwJrQnsQt0rR+LR3VqFNiGHRBv73ge9EZiM+haPyicuRcVmIxzAMTMl9wfi3sGtBuxF3ShH92C29yJTteU+ohbRrZk3Qe9hdgY+tYPnOqanA+mTN33ZGKE06HQbsQu0LV+MF8+94rU5dK8B8/KyJaI+6D9ie2hC/3Q12QnSnYLn5p9P/6d0D7EltAh5wz/Hv8exON/LUjHOuz5CksAAAAASUVORK5CYII=";
ColorPicker.prototype.crossImage="data:image/gif;base64,R0lGODlhDwAPAKEBAAAAAP///////////yH5BAEKAAIALAAAAAAPAA8AAAIklB8Qx53b4otSUWcvyiz4/4AeQJbmKY4p1HHapBlwPL/uVRsFADs=";ColorPicker.prototype.arrowImage="data:image/gif;base64,R0lGODlhBwALAKECAAAAAP///6g8eKg8eCH5BAEKAAIALAAAAAAHAAsAAAITTIQYcLnsgGxvijrxqdQq6DRJAQA7";
-var ColorDialog=function(a,b,e,f,h,d,g){function m(ca){return mxUtils.color2hex("#"+ca).substring(1).toUpperCase()}function p(){Z.src="none"==V.style.display?Editor.arrowRightImage:Editor.arrowDownImage}function k(ca){V.style.display=ca||"none"==V.style.display?"flex":"none";p()}function u(ca){""==ca.value&&null!=L&&N?ca.style.background=ca==P?L.dark:L.light:""==ca.value||ca.value==mxConstants.NONE||mxUtils.isVarColor(ca.value)?ca.style.background="transparent":ca.style.background="#"+ca.value;ca.style.color=
+var ColorDialog=function(a,b,e,f,h,d,g){function m(ca){return mxUtils.color2hex("#"+ca).substring(1).toUpperCase()}function q(){Z.src="none"==V.style.display?Editor.arrowRightImage:Editor.arrowDownImage}function k(ca){V.style.display=ca||"none"==V.style.display?"flex":"none";q()}function u(ca){""==ca.value&&null!=L&&N?ca.style.background=ca==P?L.dark:L.light:""==ca.value||ca.value==mxConstants.NONE||mxUtils.isVarColor(ca.value)?ca.style.background="transparent":ca.style.background="#"+ca.value;ca.style.color=
"transparent"==ca.style.background?"light-dark(#000000, #ffffff)":mxUtils.isDarkColor(ca.style.background)?"#ffffff":"#000000"}function w(){u(U);u(P)}function z(ca){ca?g&&null!=L?(U.value=L.light.substring(1).toUpperCase(),ca=!1):(U.value="",P.value="",T.value="automatic",U.setAttribute("placeholder",mxResources.get("useBlackAndWhite")),P.setAttribute("title",mxResources.get("useBlackAndWhite")),U.setAttribute("title",mxResources.get("useBlackAndWhite"))):(""==U.value&&null!=L&&(U.value=L.light.substring(1).toUpperCase()),
U.removeAttribute("placeholder"),U.removeAttribute("title"),""==P.value&&null!=L&&(P.value=L.dark.substring(1).toUpperCase()),P.removeAttribute("placeholder"),P.removeAttribute("title"),ca=!1);N=ca}function C(ca){var H=ca.value,ea=H.toLowerCase();null==h||""!=H&&"automatic"!=ea&&"default"!=ea&&ea!=mxResources.get("default").toLowerCase()&&ea!=mxResources.get("automatic").toLowerCase()||null==L?(ca.value==mxConstants.NONE||mxUtils.isVarColor(ca.value)||(ca.value=m(ca.value),sa.fromString("#"+ca.value)),
z(!1),ca!=P||U.value==mxConstants.NONE&&P.value==mxConstants.NONE||(T.value="custom"),ca==U&&"automatic"==T.value&&(U.value==mxConstants.NONE?P.value=mxConstants.NONE:mxUtils.isVarColor(U.value)?P.value=U.value:P.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+ca.value)).substring(1).toUpperCase()),w()):ia.click()}function E(){var ca=U.value,H=P.value;if(N&&null!=L||(/(^#?[a-zA-Z0-9]*$)/.test(ca)||mxUtils.isVarColor(ca))&&(/(^#?[a-zA-Z0-9]*$)/.test(H)||mxUtils.isVarColor(H))){if(N)ca="default";
@@ -3771,95 +3771,95 @@ ColorDialog.addRecentColor(ca.substring(1),12),"none"!=ca||"none"!=H)ca=ca==mxCo
["FFFFFF"]:ColorDialog.recentColors,11,"FFFFFF",!0);ca.style.marginBottom="8px";return ca}function J(ca){13==ca.keyCode&&(C(mxEvent.getSource(ca)),E())}var L=null!=d?mxUtils.getLightDarkColor(d,null,null,g):null,Q=a.editor.graph;this.editorUi=a;var N=!1;"default"==b||"transparent"==b||b==mxConstants.NONE||mxUtils.isVarColor(b)||mxUtils.isHexColor(b)||mxUtils.isRgbColor(b)||mxUtils.isLightDarkColor(b)||(b=mxUtils.color2hex(b));var U=document.createElement("input");U.style.textOverflow="ellipsis";U.style.margin=
"0 0 0 4px";U.style.width="100%";d=document.createElement("div");d.style.padding="0 4px";var Y=document.createElement("div");Y.style.display="flex";Y.style.alignItems="center";d.appendChild(Y);var P=document.createElement("input");P.style.textOverflow="ellipsis";P.style.margin="0 4px";P.style.maxWidth="60px";P.style.width="100%";var T=document.createElement("select");T.style.textOverflow="ellipsis";T.style.width="100%";var K=document.createElement("option");K.setAttribute("value","automatic");mxUtils.write(K,
mxResources.get("automatic"));T.appendChild(K);K=document.createElement("option");K.setAttribute("value","custom");mxUtils.write(K,mxResources.get("userDefined"));T.appendChild(K);T.value=mxUtils.isLightDarkColor(b)?"custom":"automatic";var V=document.createElement("div");V.style.padding="0 6px 0 6px";K=document.createElement("img");K.setAttribute("title",mxResources.get("dark"));K.className="geAdaptiveAsset";K.src=Editor.thinDarkImage;K.style.width="20px";V.appendChild(K);mxEvent.addListener(K,"click",
-function(){P.focus()});V.appendChild(P);V.appendChild(T);V.style.display="flex";V.style.alignItems="center";K=document.createElement("div");K.style.display="flex";K.style.alignItems="center";K.style.userSelect="none";K.style.cursor="pointer";K.style.padding="2px 0 2px 0";var Z=document.createElement("img");Z.setAttribute("title",mxResources.get("dark"));Z.className="geAdaptiveAsset";Z.style.marginLeft="-2px";K.appendChild(Z);mxUtils.write(K,mxResources.get("advanced"));p();mxEvent.addListener(K,"click",
-function(){k();p();ColorDialog.collapsed="none"==V.style.display});var ia=mxUtils.button("",function(){z(!0);w();O.focus();""==O.value&&null!=L&&N&&sa.fromString(O==P?L.dark:L.light,!0)});mxEvent.addListener(T,"change",function(){"automatic"==T.value?(U.focus(),C(U)):(z(!1),mxUtils.isVarColor(P.value)||(P.value=N&&null!=L?L.dark.substring(1).toUpperCase():P.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+U.value)).substring(1).toUpperCase()),P.focus(),D());w()});mxEvent.addListener(U,"change",
+function(){P.focus()});V.appendChild(P);V.appendChild(T);V.style.display="flex";V.style.alignItems="center";K=document.createElement("div");K.style.display="flex";K.style.alignItems="center";K.style.userSelect="none";K.style.cursor="pointer";K.style.padding="2px 0 2px 0";var Z=document.createElement("img");Z.setAttribute("title",mxResources.get("dark"));Z.className="geAdaptiveAsset";Z.style.marginLeft="-2px";K.appendChild(Z);mxUtils.write(K,mxResources.get("advanced"));q();mxEvent.addListener(K,"click",
+function(){k();q();ColorDialog.collapsed="none"==V.style.display});var ia=mxUtils.button("",function(){z(!0);w();O.focus();""==O.value&&null!=L&&N&&sa.fromString(O==P?L.dark:L.light,!0)});mxEvent.addListener(T,"change",function(){"automatic"==T.value?(U.focus(),C(U)):(z(!1),mxUtils.isVarColor(P.value)||(P.value=N&&null!=L?L.dark.substring(1).toUpperCase():P.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+U.value)).substring(1).toUpperCase()),P.focus(),D());w()});mxEvent.addListener(U,"change",
function(){C(U)});mxEvent.addListener(P,"change",function(){C(P)});var oa=null!=e?e:this.createApplyFunction();this.init=function(){D()};var sa=new ColorPicker,O=Editor.isDarkMode()&&("auto"==Q.getAdaptiveColors()||"simple"==Q.getAdaptiveColors()&&"custom"==T.value)&&!g?P:U;mxEvent.addListener(U,"focus",function(){O=U});mxEvent.addListener(P,"focus",function(){O=P});sa.addListener("change",function(ca,H){ca=H.getProperty("color").substring(1).toUpperCase();O.value.toUpperCase()!=ca&&(O.value=ca,C(O),
window.setTimeout(function(){O.focus()},0))});e=document.createElement("div");e.appendChild(sa.div);var X=document.createElement("div");X.style.display="flex";X.style.flexFlow="row wrap";X.style.justifyContent="center";X.style.paddingTop="10px";var ba=mxUtils.bind(this,function(ca,H,ea,ra){H=null!=H?H:12;var qa=document.createElement("table");qa.style.borderCollapse="collapse";qa.setAttribute("cellspacing","0");qa.style.marginBottom="20px";qa.style.cellSpacing="0px";qa.style.marginLeft="1px";var Pa=
document.createElement("tbody");qa.appendChild(Pa);for(var ma=ca.length/H,Ba=0;Ba<ma;Ba++){for(var Ca=document.createElement("tr"),Ja=0;Ja<H;Ja++)mxUtils.bind(this,function(Ia){var Da=document.createElement("td");Da.style.border="0px solid black";Da.style.padding="0px";Da.style.width="16px";Da.style.height="16px";null==Ia&&(Ia=ea);if(null!=Ia){Da.style.borderWidth="1px";if(Ia==mxConstants.NONE||null==Ia)Da.style.background="url('"+Dialog.prototype.noColorImage+"')";else if(mxUtils.isLightDarkColor(Ia)){var Ga=
mxUtils.getLightDarkColor(Ia);Da.style.background="linear-gradient(to right bottom, "+Ga.cssText+" 50%, "+mxUtils.invertLightDarkColor(Ga).cssText+" 50.3%)"}else Da.style.backgroundColor="#"+Ia;Ga=this.colorNames[String(Ia).toUpperCase()];null!=Ga&&Da.setAttribute("title",Ga)}Ca.appendChild(Da);null!=Ia&&(Da.style.cursor="pointer",mxEvent.addListener(Da,"click",function(){if(Ia==mxConstants.NONE){O==P&&P.value==mxConstants.NONE?U.value=mxConstants.NONE:O.value=mxConstants.NONE;if(O==U||O==P&&U.value==
mxConstants.NONE)T.value="automatic";C(O);window.setTimeout(function(){O.focus()},0)}else if(mxUtils.isLightDarkColor(Ia)){k(!0);T.value="custom";var ta=mxUtils.getLightDarkColor(Ia);U.value=ta.light.substring(1).toUpperCase();P.value=ta.dark.substring(1).toUpperCase();C(U);C(P);O==U?sa.fromString(ta.light):sa.fromString(ta.dark)}else sa.fromString("#"+Ia)}),mxEvent.addListener(Da,"dblclick",E))})(ca[Ba*H+Ja]);Pa.appendChild(Ca)}ra&&(ca=document.createElement("td"),ca.setAttribute("title",mxResources.get("reset")),
ca.className="geAdaptiveAsset",ca.style.border="1px solid black",ca.style.padding="0px",ca.style.width="16px",ca.style.height="16px",ca.style.backgroundImage="url('"+Editor.crossImage+"')",ca.style.backgroundPosition="center center",ca.style.backgroundSize="14px 14px",ca.style.backgroundRepeat="no-repeat",ca.style.cursor="pointer",Ca.appendChild(ca),mxEvent.addListener(ca,"click",function(){ColorDialog.resetRecentColors();qa.parentNode.replaceChild(G(),qa)}));X.appendChild(qa);return qa});g||(d.appendChild(K),
-!ColorDialog.collapsed||Editor.isDarkMode()&&"auto"==Q.getAdaptiveColors()||"automatic"!=T.value||(V.style.display="none",p()),K=document.createElement("img"),K.setAttribute("title",mxResources.get("light")),K.className="geAdaptiveAsset",K.src=Editor.thinLightImage,K.style.width="20px",Y.appendChild(K),mxEvent.addListener(K,"click",function(){U.focus()}));Y.appendChild(U);null!=L&&(ia.setAttribute("title",mxResources.get(g?"default":"useBlackAndWhite")),ia.style.cursor="pointer",ia.style.position=
+!ColorDialog.collapsed||Editor.isDarkMode()&&"auto"==Q.getAdaptiveColors()||"automatic"!=T.value||(V.style.display="none",q()),K=document.createElement("img"),K.setAttribute("title",mxResources.get("light")),K.className="geAdaptiveAsset",K.src=Editor.thinLightImage,K.style.width="20px",Y.appendChild(K),mxEvent.addListener(K,"click",function(){U.focus()}));Y.appendChild(U);null!=L&&(ia.setAttribute("title",mxResources.get(g?"default":"useBlackAndWhite")),ia.style.cursor="pointer",ia.style.position=
"relative",ia.style.marginLeft="4px",ia.innerText="",Q=document.createElement("div"),Q.style.display="inline-block",Q.style.verticalAlign="middle",Q.style.borderStyle="solid",Q.style.borderWidth="1px",Q.style.marginTop="-2px",Q.style.width="12px",Q.style.height="12px",g?Q.style.backgroundColor=L.light:Q.style.backgroundImage="linear-gradient(to right bottom, "+L.cssText+" 50%, "+mxUtils.invertLightDarkColor(L).cssText+" 50.3%)",ia.appendChild(Q),Y.appendChild(ia),mxEvent.addListener(ia,"dblclick",
E));var da=document.createElement("input");da.setAttribute("type","color");da.style.position="relative";da.style.visibility="hidden";da.style.top="10px";da.style.width="0px";da.style.height="0px";da.style.border="none";e.style.whiteSpace="nowrap";Y.appendChild(da);Q=mxUtils.button("",function(){document.activeElement==da?U.focus():(da.value="#"+U.value,da.click())});Q.style.cursor="pointer";K=document.createElement("img");K.src=Editor.colorDropperImage;K.className="geAdaptiveAsset";K.style.position=
"relative";K.style.verticalAlign="middle";K.style.marginTop="-2px";K.style.width="auto";K.style.height="14px";Q.appendChild(K);Y.appendChild(Q);e.appendChild(d);mxEvent.addListener(da,"change",function(){sa.fromString(da.value)});g||e.appendChild(V);G();d=ba(this.presetColors);d.style.marginBottom="8px";d=ba(this.defaultColors);d.style.marginBottom="16px";e.appendChild(X);d=document.createElement("div");d.style.display="flex";d.style.whiteSpace="nowrap";d.style.alignItems="center";d.style.justifyContent=
"end";a.isOffline()||d.appendChild(a.createHelpIcon("https://github.com/jgraph/drawio/discussions/4713"));Y=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=f&&f()});Y.className="geBtn";a.editor.cancelFirst&&d.appendChild(Y);Q=mxUtils.button(mxResources.get("apply"),E);Q.className="geBtn gePrimaryBtn";d.appendChild(Q);a.editor.cancelFirst||d.appendChild(Y);null!=b&&("default"==b?ia.click():(Y=mxUtils.getLightDarkColor(b),b==mxConstants.NONE||"transparent"==Y.light?U.value=
mxConstants.NONE:mxUtils.isVarColor(Y.light)?U.value=Y.light:(mxUtils.isRgbColor(Y.light)?Y.light=mxUtils.rgba2hex(Y.light):mxUtils.isHexColor(Y.light)||(Y.light="#"+m(Y.light)),U.value=Y.light.substring(1).toUpperCase()),b==mxConstants.NONE||"transparent"==Y.dark?P.value=mxConstants.NONE:mxUtils.isVarColor(Y.dark)?P.value=Y.dark:(mxUtils.isRgbColor(Y.dark)?Y.dark=mxUtils.rgba2hex(Y.dark):mxUtils.isHexColor(Y.dark)||(Y.dark="#"+m(Y.dark)),P.value=Y.dark.substring(1).toUpperCase()),sa.fromString(O.value,
-!0),w()));g||!ColorDialog.collapsed||"automatic"!=T.value||Editor.isDarkMode()||(V.style.display="none",p());e.appendChild(d);this.picker=sa;this.colorInput=U;mxEvent.addListener(U,"keypress",J);mxEvent.addListener(P,"keypress",J);mxEvent.addListener(e,"keydown",function(ca){27==ca.keyCode&&(a.hideDialog(),null!=f&&f(),mxEvent.consume(ca))});this.container=e};ColorDialog.prototype.presetColors="E6D0DE CDA2BE B5739D E1D5E7 C3ABD0 A680B8 D4E1F5 A9C4EB 7EA6E0 D5E8D4 9AC7BF 67AB9F D5E8D4 B9E0A5 97D077 FFF2CC FFE599 FFD966 FFF4C3 FFCE9F FFB570 F8CECC F19C99 EA6B66".split(" ");
+!0),w()));g||!ColorDialog.collapsed||"automatic"!=T.value||Editor.isDarkMode()||(V.style.display="none",q());e.appendChild(d);this.picker=sa;this.colorInput=U;mxEvent.addListener(U,"keypress",J);mxEvent.addListener(P,"keypress",J);mxEvent.addListener(e,"keydown",function(ca){27==ca.keyCode&&(a.hideDialog(),null!=f&&f(),mxEvent.consume(ca))});this.container=e};ColorDialog.prototype.presetColors="E6D0DE CDA2BE B5739D E1D5E7 C3ABD0 A680B8 D4E1F5 A9C4EB 7EA6E0 D5E8D4 9AC7BF 67AB9F D5E8D4 B9E0A5 97D077 FFF2CC FFE599 FFD966 FFF4C3 FFCE9F FFB570 F8CECC F19C99 EA6B66".split(" ");
ColorDialog.prototype.colorNames={};ColorDialog.prototype.defaultColors="none FFFFFF E6E6E6 CCCCCC B3B3B3 999999 808080 666666 4D4D4D 333333 1A1A1A 000000 FFCCCC FFE6CC FFFFCC E6FFCC CCFFCC CCFFE6 CCFFFF CCE5FF CCCCFF E5CCFF FFCCFF FFCCE6 FF9999 FFCC99 FFFF99 CCFF99 99FF99 99FFCC 99FFFF 99CCFF 9999FF CC99FF FF99FF FF99CC FF6666 FFB366 FFFF66 B3FF66 66FF66 66FFB3 66FFFF 66B2FF 6666FF B266FF FF66FF FF66B3 FF3333 FF9933 FFFF33 99FF33 33FF33 33FF99 33FFFF 3399FF 3333FF 9933FF FF33FF FF3399 FF0000 FF8000 FFFF00 80FF00 00FF00 00FF80 00FFFF 007FFF 0000FF 7F00FF FF00FF FF0080 CC0000 CC6600 CCCC00 66CC00 00CC00 00CC66 00CCCC 0066CC 0000CC 6600CC CC00CC CC0066 990000 994C00 999900 4D9900 009900 00994D 009999 004C99 000099 4C0099 990099 99004D 660000 663300 666600 336600 006600 006633 006666 003366 000066 330066 660066 660033 330000 331A00 333300 1A3300 003300 00331A 003333 001933 000033 190033 330033 33001A".split(" ");
ColorDialog.prototype.createApplyFunction=function(){return ColorDialog.createApplyFunction(this.editorUi,this.currentColorKey)};ColorDialog.createApplyFunction=function(a,b){return function(e){var f=a.editor.graph;f.getModel().beginUpdate();try{f.setCellStyles(b,e),a.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[e],"cells",f.getSelectionCells()))}finally{f.getModel().endUpdate()}}};ColorDialog.recentColors=[];
ColorDialog.addRecentColor=function(a,b){null!=a&&(mxUtils.remove(a,ColorDialog.recentColors),ColorDialog.recentColors.splice(0,0,a),ColorDialog.recentColors.length>=b&&ColorDialog.recentColors.pop())};ColorDialog.resetRecentColors=function(){ColorDialog.recentColors=[]};ColorDialog.collapsed=!0;
var AboutDialog=function(a){var b=document.createElement("div");b.setAttribute("align","center");var e=document.createElement("h3");mxUtils.write(e,mxResources.get("about")+" GraphEditor");b.appendChild(e);e=document.createElement("img");e.style.border="0px";e.setAttribute("width","176");e.setAttribute("width","151");e.setAttribute("src",IMAGE_PATH+"/logo.png");b.appendChild(e);mxUtils.br(b);mxUtils.write(b,"Powered by mxGraph "+mxClient.VERSION);mxUtils.br(b);e=document.createElement("a");e.setAttribute("href",
-"http://www.jgraph.com/");e.setAttribute("target","_blank");mxUtils.write(e,"www.jgraph.com");b.appendChild(e);mxUtils.br(b);mxUtils.br(b);e=mxUtils.button(mxResources.get("close"),function(){a.hideDialog()});e.className="geBtn gePrimaryBtn";b.appendChild(e);this.container=b},TextareaDialog=function(a,b,e,f,h,d,g,m,p,k,u,w,z,C,E){k=null!=k?k:!1;g=document.createElement("div");g.style.position="absolute";g.style.top="20px";g.style.bottom="20px";g.style.left="20px";g.style.right="20px";m=document.createElement("div");
+"http://www.jgraph.com/");e.setAttribute("target","_blank");mxUtils.write(e,"www.jgraph.com");b.appendChild(e);mxUtils.br(b);mxUtils.br(b);e=mxUtils.button(mxResources.get("close"),function(){a.hideDialog()});e.className="geBtn gePrimaryBtn";b.appendChild(e);this.container=b},TextareaDialog=function(a,b,e,f,h,d,g,m,q,k,u,w,z,C,E){k=null!=k?k:!1;g=document.createElement("div");g.style.position="absolute";g.style.top="20px";g.style.bottom="20px";g.style.left="20px";g.style.right="20px";m=document.createElement("div");
m.style.position="absolute";m.style.left="0px";m.style.right="0px";var D=m.cloneNode(!1),G=m.cloneNode(!1);m.style.top="0px";m.style.height="20px";D.style.top="20px";D.style.bottom="64px";G.style.bottom="0px";G.style.height="60px";G.style.textAlign="right";G.style.paddingTop="14px";G.style.boxSizing="border-box";mxUtils.write(m,b);g.appendChild(m);g.appendChild(D);g.appendChild(G);null!=E&&m.appendChild(E);var J=document.createElement("textarea");u?J.setAttribute("wrap","off"):J.style.wordBreak="break-all";
J.setAttribute("spellcheck","false");J.setAttribute("autocorrect","off");J.setAttribute("autocomplete","off");J.setAttribute("autocapitalize","off");mxUtils.write(J,e||"");J.style.resize="none";J.style.outline="none";J.style.position="absolute";J.style.boxSizing="border-box";J.style.top="0px";J.style.left="0px";J.style.height="100%";J.style.width="100%";this.textarea=J;this.init=function(){J.focus();J.scrollTop=0};D.appendChild(J);null==z||a.isOffline()||G.appendChild(a.createHelpIcon(z));if(null!=
-C)for(b=0;b<C.length;b++)(function(Q,N,U){Q=mxUtils.button(Q,function(Y){N(Y,J)});null!=U&&Q.setAttribute("title",U);Q.className="geBtn";G.appendChild(Q)})(C[b][0],C[b][1],C[b][2]);d=mxUtils.button(d||mxResources.get("cancel"),function(){a.hideDialog();null!=h&&h()});d.setAttribute("title","Escape");d.className="geBtn";a.editor.cancelFirst&&G.appendChild(d);null!=p&&p(G,J);if(null!=f){var L=mxUtils.button(w||mxResources.get("apply"),function(){k||a.hideDialog();f(J.value)});L.setAttribute("title",
+C)for(b=0;b<C.length;b++)(function(Q,N,U){Q=mxUtils.button(Q,function(Y){N(Y,J)});null!=U&&Q.setAttribute("title",U);Q.className="geBtn";G.appendChild(Q)})(C[b][0],C[b][1],C[b][2]);d=mxUtils.button(d||mxResources.get("cancel"),function(){a.hideDialog();null!=h&&h()});d.setAttribute("title","Escape");d.className="geBtn";a.editor.cancelFirst&&G.appendChild(d);null!=q&&q(G,J);if(null!=f){var L=mxUtils.button(w||mxResources.get("apply"),function(){k||a.hideDialog();f(J.value)});L.setAttribute("title",
"Ctrl+Enter");L.className="geBtn gePrimaryBtn";G.appendChild(L);mxEvent.addListener(J,"keydown",function(Q){13==Q.keyCode&&mxEvent.isControlDown(Q)&&L.click()})}a.editor.cancelFirst||G.appendChild(d);this.container=g},EditDiagramDialog=function(a){var b=document.createElement("div");b.style.textAlign="right";var e=document.createElement("textarea");e.setAttribute("wrap","off");e.setAttribute("spellcheck","false");e.setAttribute("autocorrect","off");e.setAttribute("autocomplete","off");e.setAttribute("autocapitalize",
-"off");e.style.overflow="auto";e.style.resize="none";e.style.width="600px";e.style.height="360px";e.style.marginBottom="16px";var f=a.getDiagramSnapshot();e.value=mxUtils.getPrettyXml(f.node);b.appendChild(e);this.init=function(){e.focus()};Graph.fileSupport&&(e.addEventListener("dragover",function(m){m.stopPropagation();m.preventDefault()},!1),e.addEventListener("drop",function(m){m.stopPropagation();m.preventDefault();if(0<m.dataTransfer.files.length){m=m.dataTransfer.files[0];var p=new FileReader;
-p.onload=function(k){e.value=k.target.result};p.readAsText(m)}else e.value=a.extractGraphModelFromEvent(m)},!1));var h=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});h.className="geBtn";a.editor.cancelFirst&&b.appendChild(h);var d=document.createElement("select");d.style.textOverflow="ellipsis";d.style.width="196px";d.className="geBtn";if(a.editor.graph.isEnabled()){var g=document.createElement("option");g.setAttribute("value","apply");mxUtils.write(g,mxResources.get("apply",
-null,"Update Existing Drawing"));d.appendChild(g)}a.editor.graph.isEnabled()&&(g=document.createElement("option"),g.setAttribute("value","insert"),mxUtils.write(g,mxResources.get("insert")),d.appendChild(g));g=document.createElement("option");g.setAttribute("value","new");mxUtils.write(g,mxResources.get("openInNewWindow"));EditDiagramDialog.showNewWindowOption&&d.appendChild(g);b.appendChild(d);g=mxUtils.button(mxResources.get("ok"),function(){var m=Graph.zapGremlins(mxUtils.trim(e.value)),p=null;
-if("new"==d.value)a.hideDialog(),a.editor.editAsNew(m);else if("apply"==d.value)try{var k=mxUtils.parseXml(m).documentElement;a.updateDiagramData(f,k);a.hideDialog()}catch(C){p=C}else if("insert"==d.value){a.editor.graph.model.beginUpdate();try{var u=mxUtils.parseXml(m),w=new mxGraphModel;(new mxCodec(u)).decode(u.documentElement,w);var z=w.getChildren(w.getChildAt(w.getRoot(),0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(z));a.hideDialog()}catch(C){p=C}finally{a.editor.graph.model.endUpdate()}}null!=
-p&&a.handleError(p)});g.className="geBtn gePrimaryBtn";b.appendChild(g);a.editor.cancelFirst||b.appendChild(h);this.container=b};EditDiagramDialog.showNewWindowOption=!0;
+"off");e.style.overflow="auto";e.style.resize="none";e.style.width="600px";e.style.height="360px";e.style.marginBottom="16px";var f=a.getDiagramSnapshot();e.value=mxUtils.getPrettyXml(f.node);b.appendChild(e);this.init=function(){e.focus()};Graph.fileSupport&&(e.addEventListener("dragover",function(m){m.stopPropagation();m.preventDefault()},!1),e.addEventListener("drop",function(m){m.stopPropagation();m.preventDefault();if(0<m.dataTransfer.files.length){m=m.dataTransfer.files[0];var q=new FileReader;
+q.onload=function(k){e.value=k.target.result};q.readAsText(m)}else e.value=a.extractGraphModelFromEvent(m)},!1));var h=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});h.className="geBtn";a.editor.cancelFirst&&b.appendChild(h);var d=document.createElement("select");d.style.textOverflow="ellipsis";d.style.width="196px";d.className="geBtn";if(a.editor.graph.isEnabled()){var g=document.createElement("option");g.setAttribute("value","apply");mxUtils.write(g,mxResources.get("apply",
+null,"Update Existing Drawing"));d.appendChild(g)}a.editor.graph.isEnabled()&&(g=document.createElement("option"),g.setAttribute("value","insert"),mxUtils.write(g,mxResources.get("insert")),d.appendChild(g));g=document.createElement("option");g.setAttribute("value","new");mxUtils.write(g,mxResources.get("openInNewWindow"));EditDiagramDialog.showNewWindowOption&&d.appendChild(g);b.appendChild(d);g=mxUtils.button(mxResources.get("ok"),function(){var m=Graph.zapGremlins(mxUtils.trim(e.value)),q=null;
+if("new"==d.value)a.hideDialog(),a.editor.editAsNew(m);else if("apply"==d.value)try{var k=mxUtils.parseXml(m).documentElement;a.updateDiagramData(f,k);a.hideDialog()}catch(C){q=C}else if("insert"==d.value){a.editor.graph.model.beginUpdate();try{var u=mxUtils.parseXml(m),w=new mxGraphModel;(new mxCodec(u)).decode(u.documentElement,w);var z=w.getChildren(w.getChildAt(w.getRoot(),0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(z));a.hideDialog()}catch(C){q=C}finally{a.editor.graph.model.endUpdate()}}null!=
+q&&a.handleError(q)});g.className="geBtn gePrimaryBtn";b.appendChild(g);a.editor.cancelFirst||b.appendChild(h);this.container=b};EditDiagramDialog.showNewWindowOption=!0;
var ExportDialog=function(a){function b(){var P=u.value,T=P.lastIndexOf(".");u.value=0<T?P.substring(0,T+1)+w.value:P+"."+w.value;"xml"===w.value?(z.setAttribute("disabled","true"),C.setAttribute("disabled","true"),E.setAttribute("disabled","true"),N.setAttribute("disabled","true")):(z.removeAttribute("disabled"),C.removeAttribute("disabled"),E.removeAttribute("disabled"),N.removeAttribute("disabled"));"png"===w.value||"svg"===w.value||"pdf"===w.value?L.removeAttribute("disabled"):L.setAttribute("disabled",
"disabled");"png"===w.value||"jpg"===w.value||"pdf"===w.value?Q.removeAttribute("disabled"):Q.setAttribute("disabled","disabled");"png"===w.value?(D.removeAttribute("disabled"),G.removeAttribute("disabled")):(D.setAttribute("disabled","disabled"),G.setAttribute("disabled","disabled"))}function e(){C.style.backgroundColor=C.value*E.value>MAX_AREA||0>=C.value?"red":"";E.style.backgroundColor=C.value*E.value>MAX_AREA||0>=E.value?"red":""}var f=a.editor.graph,h=f.getGraphBounds(),d=f.view.scale,g=Math.ceil(h.width/
-d),m=Math.ceil(h.height/d);d=document.createElement("table");var p=document.createElement("tbody");d.setAttribute("cellpadding",mxClient.IS_SF?"0":"2");h=document.createElement("tr");var k=document.createElement("td");k.style.fontSize="10pt";k.style.width="100px";mxUtils.write(k,mxResources.get("filename")+":");h.appendChild(k);var u=document.createElement("input");u.setAttribute("value",a.editor.getOrCreateFilename());u.style.width="180px";k=document.createElement("td");k.appendChild(u);h.appendChild(k);
-p.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("format")+":");h.appendChild(k);var w=document.createElement("select");w.style.width="180px";k=document.createElement("option");k.setAttribute("value","png");mxUtils.write(k,mxResources.get("formatPng"));w.appendChild(k);k=document.createElement("option");ExportDialog.showGifOption&&(k.setAttribute("value","gif"),mxUtils.write(k,mxResources.get("formatGif")),w.appendChild(k));
-k=document.createElement("option");k.setAttribute("value","jpg");mxUtils.write(k,mxResources.get("formatJpg"));w.appendChild(k);k=document.createElement("option");k.setAttribute("value","svg");mxUtils.write(k,mxResources.get("formatSvg"));w.appendChild(k);ExportDialog.showXmlOption&&(k=document.createElement("option"),k.setAttribute("value","xml"),mxUtils.write(k,mxResources.get("formatXml")),w.appendChild(k));k=document.createElement("td");k.appendChild(w);h.appendChild(k);p.appendChild(h);h=document.createElement("tr");
-k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("zoom")+" (%):");h.appendChild(k);var z=document.createElement("input");z.setAttribute("type","number");z.setAttribute("value","100");z.style.width="180px";k=document.createElement("td");k.appendChild(z);h.appendChild(k);p.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("width")+":");h.appendChild(k);var C=document.createElement("input");
-C.setAttribute("value",g);C.style.width="180px";k=document.createElement("td");k.appendChild(C);h.appendChild(k);p.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("height")+":");h.appendChild(k);var E=document.createElement("input");E.setAttribute("value",m);E.style.width="180px";k=document.createElement("td");k.appendChild(E);h.appendChild(k);p.appendChild(h);h=document.createElement("tr");k=document.createElement("td");
+d),m=Math.ceil(h.height/d);d=document.createElement("table");var q=document.createElement("tbody");d.setAttribute("cellpadding",mxClient.IS_SF?"0":"2");h=document.createElement("tr");var k=document.createElement("td");k.style.fontSize="10pt";k.style.width="100px";mxUtils.write(k,mxResources.get("filename")+":");h.appendChild(k);var u=document.createElement("input");u.setAttribute("value",a.editor.getOrCreateFilename());u.style.width="180px";k=document.createElement("td");k.appendChild(u);h.appendChild(k);
+q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("format")+":");h.appendChild(k);var w=document.createElement("select");w.style.width="180px";k=document.createElement("option");k.setAttribute("value","png");mxUtils.write(k,mxResources.get("formatPng"));w.appendChild(k);k=document.createElement("option");ExportDialog.showGifOption&&(k.setAttribute("value","gif"),mxUtils.write(k,mxResources.get("formatGif")),w.appendChild(k));
+k=document.createElement("option");k.setAttribute("value","jpg");mxUtils.write(k,mxResources.get("formatJpg"));w.appendChild(k);k=document.createElement("option");k.setAttribute("value","svg");mxUtils.write(k,mxResources.get("formatSvg"));w.appendChild(k);ExportDialog.showXmlOption&&(k=document.createElement("option"),k.setAttribute("value","xml"),mxUtils.write(k,mxResources.get("formatXml")),w.appendChild(k));k=document.createElement("td");k.appendChild(w);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");
+k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("zoom")+" (%):");h.appendChild(k);var z=document.createElement("input");z.setAttribute("type","number");z.setAttribute("value","100");z.style.width="180px";k=document.createElement("td");k.appendChild(z);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("width")+":");h.appendChild(k);var C=document.createElement("input");
+C.setAttribute("value",g);C.style.width="180px";k=document.createElement("td");k.appendChild(C);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("height")+":");h.appendChild(k);var E=document.createElement("input");E.setAttribute("value",m);E.style.width="180px";k=document.createElement("td");k.appendChild(E);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");
k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("dpi")+":");h.appendChild(k);var D=document.createElement("select");D.style.width="180px";k=document.createElement("option");k.setAttribute("value","100");mxUtils.write(k,"100dpi");D.appendChild(k);k=document.createElement("option");k.setAttribute("value","200");mxUtils.write(k,"200dpi");D.appendChild(k);k=document.createElement("option");k.setAttribute("value","300");mxUtils.write(k,"300dpi");D.appendChild(k);k=document.createElement("option");
k.setAttribute("value","400");mxUtils.write(k,"400dpi");D.appendChild(k);k=document.createElement("option");k.setAttribute("value","custom");mxUtils.write(k,mxResources.get("custom"));D.appendChild(k);var G=document.createElement("input");G.style.width="180px";G.style.display="none";G.setAttribute("value","100");G.setAttribute("type","number");G.setAttribute("min","50");G.setAttribute("step","50");var J=!1;mxEvent.addListener(D,"change",function(){"custom"==this.value?(this.style.display="none",G.style.display=
-"",G.focus()):(G.value=this.value,J||(z.value=this.value))});mxEvent.addListener(G,"change",function(){var P=parseInt(G.value);isNaN(P)||0>=P?G.style.backgroundColor="red":(G.style.backgroundColor="",J||(z.value=P))});k=document.createElement("td");k.appendChild(D);k.appendChild(G);h.appendChild(k);p.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("background")+":");h.appendChild(k);var L=document.createElement("input");
-L.setAttribute("type","checkbox");L.checked=null==f.background||f.background==mxConstants.NONE;k=document.createElement("td");k.appendChild(L);mxUtils.write(k,mxResources.get("transparent"));h.appendChild(k);p.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("grid")+":");h.appendChild(k);var Q=document.createElement("input");Q.setAttribute("type","checkbox");Q.checked=!1;k=document.createElement("td");k.appendChild(Q);
-h.appendChild(k);p.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("borderWidth")+":");h.appendChild(k);var N=document.createElement("input");N.setAttribute("type","number");N.setAttribute("value",ExportDialog.lastBorderValue);N.style.width="180px";k=document.createElement("td");k.appendChild(N);h.appendChild(k);p.appendChild(h);d.appendChild(p);mxEvent.addListener(w,"change",b);b();mxEvent.addListener(z,"change",
+"",G.focus()):(G.value=this.value,J||(z.value=this.value))});mxEvent.addListener(G,"change",function(){var P=parseInt(G.value);isNaN(P)||0>=P?G.style.backgroundColor="red":(G.style.backgroundColor="",J||(z.value=P))});k=document.createElement("td");k.appendChild(D);k.appendChild(G);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("background")+":");h.appendChild(k);var L=document.createElement("input");
+L.setAttribute("type","checkbox");L.checked=null==f.background||f.background==mxConstants.NONE;k=document.createElement("td");k.appendChild(L);mxUtils.write(k,mxResources.get("transparent"));h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("grid")+":");h.appendChild(k);var Q=document.createElement("input");Q.setAttribute("type","checkbox");Q.checked=!1;k=document.createElement("td");k.appendChild(Q);
+h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("borderWidth")+":");h.appendChild(k);var N=document.createElement("input");N.setAttribute("type","number");N.setAttribute("value",ExportDialog.lastBorderValue);N.style.width="180px";k=document.createElement("td");k.appendChild(N);h.appendChild(k);q.appendChild(h);d.appendChild(q);mxEvent.addListener(w,"change",b);b();mxEvent.addListener(z,"change",
function(){J=!0;var P=Math.max(0,parseFloat(z.value)||100)/100;z.value=parseFloat((100*P).toFixed(2));0<g?(C.value=Math.floor(g*P),E.value=Math.floor(m*P)):(z.value="100",C.value=g,E.value=m);e()});mxEvent.addListener(C,"change",function(){var P=parseInt(C.value)/g;0<P?(z.value=parseFloat((100*P).toFixed(2)),E.value=Math.floor(m*P)):(z.value="100",C.value=g,E.value=m);e()});mxEvent.addListener(E,"change",function(){var P=parseInt(E.value)/m;0<P?(z.value=parseFloat((100*P).toFixed(2)),C.value=Math.floor(g*
P)):(z.value="100",C.value=g,E.value=m);e()});h=document.createElement("tr");k=document.createElement("td");k.setAttribute("align","right");k.style.paddingTop="22px";k.colSpan=2;var U=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(){if(0>=parseInt(z.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var P=u.value,T=w.value,K=Math.max(0,parseFloat(z.value)||100)/100,V=Math.max(0,parseInt(N.value)),Z=f.background,ia=Math.max(1,parseInt(G.value));if(("svg"==T||"png"==T||
-"pdf"==T)&&L.checked)Z=null;else if(null==Z||Z==mxConstants.NONE)Z="#ffffff";ExportDialog.lastBorderValue=V;ExportDialog.exportFile(a,P,T,Z,K,V,ia,Q.checked)}}));U.className="geBtn gePrimaryBtn";var Y=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});Y.className="geBtn";a.editor.cancelFirst?(k.appendChild(Y),k.appendChild(U)):(k.appendChild(U),k.appendChild(Y));h.appendChild(k);p.appendChild(h);d.appendChild(p);this.container=d};ExportDialog.lastBorderValue=0;
+"pdf"==T)&&L.checked)Z=null;else if(null==Z||Z==mxConstants.NONE)Z="#ffffff";ExportDialog.lastBorderValue=V;ExportDialog.exportFile(a,P,T,Z,K,V,ia,Q.checked)}}));U.className="geBtn gePrimaryBtn";var Y=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});Y.className="geBtn";a.editor.cancelFirst?(k.appendChild(Y),k.appendChild(U)):(k.appendChild(U),k.appendChild(Y));h.appendChild(k);q.appendChild(h);d.appendChild(q);this.container=d};ExportDialog.lastBorderValue=0;
ExportDialog.showGifOption=!0;ExportDialog.showXmlOption=!0;
-ExportDialog.exportFile=function(a,b,e,f,h,d,g,m){m=a.editor.graph;if("xml"==e)ExportDialog.saveLocalFile(a,mxUtils.getXml(a.editor.getGraphXml()),b,e);else if("svg"==e)ExportDialog.saveLocalFile(a,mxUtils.getXml(m.getSvg(f,h,d)),b,e);else{var p=m.getGraphBounds(),k=mxUtils.createXmlDocument(),u=k.createElement("output");k.appendChild(u);k=new mxXmlCanvas2D(u);k.translate(Math.floor((d/h-p.x)/m.view.scale),Math.floor((d/h-p.y)/m.view.scale));k.scale(h/m.view.scale);(new mxImageExport).drawState(m.getView().getState(m.model.root),
-k);u="xml="+encodeURIComponent(mxUtils.getXml(u));k=Math.ceil(p.width*h/m.view.scale+2*d);h=Math.ceil(p.height*h/m.view.scale+2*d);u.length<=MAX_REQUEST_SIZE&&k*h<MAX_AREA?(a.hideDialog(),(new mxXmlRequest(EXPORT_URL,"format="+e+"&filename="+encodeURIComponent(b)+"&bg="+(null!=f?f:"none")+"&w="+k+"&h="+h+"&"+u+"&dpi="+g)).simulate(document,"_blank")):mxUtils.alert(mxResources.get("drawingTooLarge"))}};
+ExportDialog.exportFile=function(a,b,e,f,h,d,g,m){m=a.editor.graph;if("xml"==e)ExportDialog.saveLocalFile(a,mxUtils.getXml(a.editor.getGraphXml()),b,e);else if("svg"==e)ExportDialog.saveLocalFile(a,mxUtils.getXml(m.getSvg(f,h,d)),b,e);else{var q=m.getGraphBounds(),k=mxUtils.createXmlDocument(),u=k.createElement("output");k.appendChild(u);k=new mxXmlCanvas2D(u);k.translate(Math.floor((d/h-q.x)/m.view.scale),Math.floor((d/h-q.y)/m.view.scale));k.scale(h/m.view.scale);(new mxImageExport).drawState(m.getView().getState(m.model.root),
+k);u="xml="+encodeURIComponent(mxUtils.getXml(u));k=Math.ceil(q.width*h/m.view.scale+2*d);h=Math.ceil(q.height*h/m.view.scale+2*d);u.length<=MAX_REQUEST_SIZE&&k*h<MAX_AREA?(a.hideDialog(),(new mxXmlRequest(EXPORT_URL,"format="+e+"&filename="+encodeURIComponent(b)+"&bg="+(null!=f?f:"none")+"&w="+k+"&h="+h+"&"+u+"&dpi="+g)).simulate(document,"_blank")):mxUtils.alert(mxResources.get("drawingTooLarge"))}};
ExportDialog.saveLocalFile=function(a,b,e,f){b.length<MAX_REQUEST_SIZE?(a.hideDialog(),(new mxXmlRequest(SAVE_URL,"xml="+encodeURIComponent(b)+"&filename="+encodeURIComponent(e)+"&format="+f)).simulate(document,"_blank")):(mxUtils.alert(mxResources.get("drawingTooLarge")),mxUtils.popup(xml))};
-var EditDataDialog=function(a,b){function e(){0<N.value.length?U.removeAttribute("disabled"):U.setAttribute("disabled","disabled")}var f=document.createElement("div"),h=a.editor.graph,d=h.getModel().getValue(b);if(!mxUtils.isNode(d)){var g=mxUtils.createXmlDocument().createElement("object");g.setAttribute("label",d||"");d=g}var m={};try{var p=mxUtils.getValue(a.editor.graph.getCurrentCellStyle(b),"metaData",null);null!=p&&(m=JSON.parse(p))}catch(P){}var k=new mxForm("properties");k.table.style.width=
+var EditDataDialog=function(a,b){function e(){0<N.value.length?U.removeAttribute("disabled"):U.setAttribute("disabled","disabled")}var f=document.createElement("div"),h=a.editor.graph,d=h.getModel().getValue(b);if(!mxUtils.isNode(d)){var g=mxUtils.createXmlDocument().createElement("object");g.setAttribute("label",d||"");d=g}var m={};try{var q=mxUtils.getValue(a.editor.graph.getCurrentCellStyle(b),"metaData",null);null!=q&&(m=JSON.parse(q))}catch(P){}var k=new mxForm("properties");k.table.style.width=
"100%";var u=d.attributes,w=[],z=[],C=0,E=null!=EditDataDialog.getDisplayIdForCell?EditDataDialog.getDisplayIdForCell(a,b):null,D=function(P,T){var K=document.createElement("div");K.style.position="relative";K.style.paddingRight="20px";K.style.boxSizing="border-box";K.style.width="100%";var V=document.createElement("a"),Z=mxUtils.createImage(Dialog.prototype.closeImage);Z.style.height="9px";Z.style.fontSize="9px";Z.style.marginBottom=mxClient.IS_IE11?"-1px":"5px";V.className="geButton";V.setAttribute("title",
mxResources.get("delete"));V.style.position="absolute";V.style.top="4px";V.style.right="0px";V.style.margin="0px";V.style.width="9px";V.style.height="9px";V.style.cursor="pointer";V.appendChild(Z);T=function(ia){return function(){for(var oa=0,sa=0;sa<w.length;sa++){if(w[sa]==ia){z[sa]=null;k.table.deleteRow(oa+(null!=E?1:0));break}null!=z[sa]&&oa++}}}(T);mxEvent.addListener(V,"click",T);T=P.parentNode;K.appendChild(P);K.appendChild(V);T.appendChild(K)};g=function(P,T,K){w[P]=T;z[P]=k.addTextarea(w[C]+
-":",K,2);z[P].style.width="100%";0<K.indexOf("\n")&&z[P].setAttribute("rows","2");D(z[P],T);null!=m[T]&&0==m[T].editable&&z[P].setAttribute("disabled","disabled")};p=[];for(var G=h.getModel().getParent(b)==h.getModel().getRoot(),J=h.getCellStyle(b),L=0;L<u.length;L++)("label"!=u[L].nodeName||"1"==J.metaEdit||Graph.translateDiagram||G)&&"placeholders"!=u[L].nodeName&&p.push({name:u[L].nodeName,value:u[L].nodeValue});p.sort(function(P,T){return"label"==P.name?1:"label"==T.name?-1:P.name<T.name?-1:P.name>
+":",K,2);z[P].style.width="100%";0<K.indexOf("\n")&&z[P].setAttribute("rows","2");D(z[P],T);null!=m[T]&&0==m[T].editable&&z[P].setAttribute("disabled","disabled")};q=[];for(var G=h.getModel().getParent(b)==h.getModel().getRoot(),J=h.getCellStyle(b),L=0;L<u.length;L++)("label"!=u[L].nodeName||"1"==J.metaEdit||Graph.translateDiagram||G)&&"placeholders"!=u[L].nodeName&&q.push({name:u[L].nodeName,value:u[L].nodeValue});q.sort(function(P,T){return"label"==P.name?1:"label"==T.name?-1:P.name<T.name?-1:P.name>
T.name?1:0});if(null!=E){u=document.createElement("div");u.style.width="100%";u.style.fontSize="11px";u.style.textAlign="center";mxUtils.write(u,E);var Q=k.addField(mxResources.get("id")+":",u);mxEvent.addListener(u,"dblclick",function(P){P=new FilenameDialog(a,E,mxResources.get("apply"),mxUtils.bind(this,function(T){if(null!=T&&0<T.length&&T!=E)if(h.model.isRoot(b)){var K=a.getPageById(E);if(null!=K)if(null==a.getPageById(T)){var V=a.getPageIndex(K);0<=V&&(a.removePage(K),K.node.setAttribute("id",
-T),E=T,Q.innerHTML=mxUtils.htmlEntities(T),a.insertPage(K,V))}else a.handleError({message:mxResources.get("alreadyExst",[mxResources.get("page")])})}else null==h.getModel().getCell(T)?(h.getModel().cellRemoved(b),b.setId(T),E=T,Q.innerHTML=mxUtils.htmlEntities(T),h.getModel().cellAdded(b)):a.handleError({message:mxResources.get("alreadyExst",[T])})}),mxResources.get("id"));a.showDialog(P.container,300,80,!0,!0);P.init()})}for(L=0;L<p.length;L++)g(C,p[L].name,p[L].value),C++;p=document.createElement("div");
-p.style.position="absolute";p.style.top="30px";p.style.left="30px";p.style.right="30px";p.style.bottom="80px";p.style.overflowY="auto";p.appendChild(k.table);g=document.createElement("div");g.style.display="flex";g.style.alignItems="center";g.style.boxSizing="border-box";g.style.paddingRight="160px";g.style.whiteSpace="nowrap";g.style.marginTop="6px";g.style.width="100%";var N=document.createElement("input");N.setAttribute("placeholder",mxResources.get("enterPropertyName"));N.setAttribute("type",
-"text");N.setAttribute("size",mxClient.IS_IE||mxClient.IS_IE11?"36":"40");N.style.boxSizing="border-box";N.style.borderWidth="1px";N.style.borderStyle="solid";N.style.marginLeft="2px";N.style.padding="4px";N.style.width="100%";g.appendChild(N);p.appendChild(g);f.appendChild(p);var U=mxUtils.button(mxResources.get("addProperty"),function(){var P=N.value;if(0<P.length&&"label"!=P&&"id"!=P&&"placeholders"!=P&&0>P.indexOf(":"))try{var T=mxUtils.indexOf(w,P);if(0<=T&&null!=z[T])z[T].focus();else{d.cloneNode(!1).setAttribute(P,
+T),E=T,Q.innerHTML=mxUtils.htmlEntities(T),a.insertPage(K,V))}else a.handleError({message:mxResources.get("alreadyExst",[mxResources.get("page")])})}else null==h.getModel().getCell(T)?(h.getModel().cellRemoved(b),b.setId(T),E=T,Q.innerHTML=mxUtils.htmlEntities(T),h.getModel().cellAdded(b)):a.handleError({message:mxResources.get("alreadyExst",[T])})}),mxResources.get("id"));a.showDialog(P.container,300,80,!0,!0);P.init()})}for(L=0;L<q.length;L++)g(C,q[L].name,q[L].value),C++;q=document.createElement("div");
+q.style.position="absolute";q.style.top="30px";q.style.left="30px";q.style.right="30px";q.style.bottom="80px";q.style.overflowY="auto";q.appendChild(k.table);g=document.createElement("div");g.style.display="flex";g.style.alignItems="center";g.style.boxSizing="border-box";g.style.paddingRight="160px";g.style.whiteSpace="nowrap";g.style.marginTop="6px";g.style.width="100%";var N=document.createElement("input");N.setAttribute("placeholder",mxResources.get("enterPropertyName"));N.setAttribute("type",
+"text");N.setAttribute("size",mxClient.IS_IE||mxClient.IS_IE11?"36":"40");N.style.boxSizing="border-box";N.style.borderWidth="1px";N.style.borderStyle="solid";N.style.marginLeft="2px";N.style.padding="4px";N.style.width="100%";g.appendChild(N);q.appendChild(g);f.appendChild(q);var U=mxUtils.button(mxResources.get("addProperty"),function(){var P=N.value;if(0<P.length&&"label"!=P&&"id"!=P&&"placeholders"!=P&&0>P.indexOf(":"))try{var T=mxUtils.indexOf(w,P);if(0<=T&&null!=z[T])z[T].focus();else{d.cloneNode(!1).setAttribute(P,
"");0<=T&&(w.splice(T,1),z.splice(T,1));w.push(P);var K=k.addTextarea(P+":","",2);K.style.width="100%";z.push(K);D(K,P);K.focus()}U.setAttribute("disabled","disabled");N.value=""}catch(V){mxUtils.alert(V)}else mxUtils.alert(mxResources.get("invalidName"))});mxEvent.addListener(N,"keypress",function(P){13==P.keyCode&&U.click()});this.init=function(){0<z.length?z[0].focus():N.focus()};U.setAttribute("title",mxResources.get("addProperty"));U.setAttribute("disabled","disabled");U.style.textOverflow="ellipsis";
-U.style.position="absolute";U.style.overflow="hidden";U.style.width="144px";U.style.right="0px";U.className="geBtn";g.appendChild(U);p=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog.apply(a,arguments)});p.setAttribute("title","Escape");p.className="geBtn";g=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(P){var T=h.getDataForCells([b],!0);P=new EmbedDialog(a,JSON.stringify(T,null,2),null,null,function(){console.log(T);a.alert("Written to Console (Dev Tools)")},
+U.style.position="absolute";U.style.overflow="hidden";U.style.width="144px";U.style.right="0px";U.className="geBtn";g.appendChild(U);q=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog.apply(a,arguments)});q.setAttribute("title","Escape");q.className="geBtn";g=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(P){var T=h.getDataForCells([b],!0);P=new EmbedDialog(a,JSON.stringify(T,null,2),null,null,function(){console.log(T);a.alert("Written to Console (Dev Tools)")},
mxResources.get("export"),null,"Console","data.json");a.showDialog(P.container,450,240,!0,!0);P.init()}));g.setAttribute("title",mxResources.get("export"));g.className="geBtn";var Y=mxUtils.button(mxResources.get("apply"),function(){try{a.hideDialog.apply(a,arguments);d=d.cloneNode(!0);for(var P=!1,T=0;T<w.length;T++)null==z[T]?d.removeAttribute(w[T]):(d.setAttribute(w[T],z[T].value),P=P||"placeholder"==w[T]&&"1"==d.getAttribute("placeholders"));P&&d.removeAttribute("label");h.getModel().setValue(b,
d)}catch(K){mxUtils.alert(K)}});Y.setAttribute("title","Ctrl+Enter");Y.className="geBtn gePrimaryBtn";mxEvent.addListener(f,"keydown",function(P){13==P.keyCode&&mxEvent.isControlDown(P)&&Y.click()});mxEvent.addListener(N,"keyup",e);mxEvent.addListener(N,"change",e);u=document.createElement("div");u.style.cssText="position:absolute;left:30px;right:30px;text-align:right;bottom:30px;height:40px;";if(a.editor.graph.getModel().isVertex(b)||a.editor.graph.getModel().isEdge(b))G=document.createElement("span"),
G.style.marginRight="10px",J=document.createElement("input"),J.setAttribute("type","checkbox"),J.style.marginRight="6px","1"==d.getAttribute("placeholders")&&(J.setAttribute("checked","checked"),J.defaultChecked=!0),mxEvent.addListener(J,"click",function(){"1"==d.getAttribute("placeholders")?d.removeAttribute("placeholders"):d.setAttribute("placeholders","1")}),G.appendChild(J),mxUtils.write(G,mxResources.get("placeholders")),null!=EditDataDialog.placeholderHelpLink&&G.appendChild(a.createHelpIcon(EditDataDialog.placeholderHelpLink)),
-u.appendChild(G);a.editor.cancelFirst&&u.appendChild(p);u.appendChild(g);u.appendChild(Y);a.editor.cancelFirst||u.appendChild(p);f.appendChild(u);this.container=f};EditDataDialog.getDisplayIdForCell=function(a,b){var e=null;null!=a.editor.graph.getModel().getParent(b)&&(e=b.getId());return e};EditDataDialog.placeholderHelpLink=null;
+u.appendChild(G);a.editor.cancelFirst&&u.appendChild(q);u.appendChild(g);u.appendChild(Y);a.editor.cancelFirst||u.appendChild(q);f.appendChild(u);this.container=f};EditDataDialog.getDisplayIdForCell=function(a,b){var e=null;null!=a.editor.graph.getModel().getParent(b)&&(e=b.getId());return e};EditDataDialog.placeholderHelpLink=null;
var LinkDialog=function(a,b,e,f){var h=document.createElement("div");mxUtils.write(h,mxResources.get("editLink")+":");var d=document.createElement("div");d.className="geTitle";d.style.backgroundColor="transparent";d.style.borderColor="transparent";d.style.whiteSpace="nowrap";d.style.textOverflow="clip";d.style.cursor="default";d.style.paddingRight="20px";var g=document.createElement("input");g.setAttribute("value",b);g.setAttribute("placeholder","http://www.example.com/");g.setAttribute("type","text");
g.style.marginTop="6px";g.style.width="400px";g.style.backgroundImage="url('"+Dialog.prototype.clearImage+"')";g.style.backgroundRepeat="no-repeat";g.style.backgroundPosition="100% 50%";g.style.paddingRight="14px";b=document.createElement("div");b.setAttribute("title",mxResources.get("reset"));b.style.position="relative";b.style.left="-16px";b.style.width="12px";b.style.height="14px";b.style.cursor="pointer";b.style.display="inline-block";b.style.top="3px";b.style.background="url("+IMAGE_PATH+"/transparent.gif)";
mxEvent.addListener(b,"click",function(){g.value="";g.focus()});d.appendChild(g);d.appendChild(b);h.appendChild(d);this.init=function(){g.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?g.select():document.execCommand("selectAll",!1,null)};d=document.createElement("div");d.style.marginTop="18px";d.style.textAlign="right";mxEvent.addListener(g,"keypress",function(m){13==m.keyCode&&(a.hideDialog(),f(g.value))});b=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});
b.className="geBtn";a.editor.cancelFirst&&d.appendChild(b);e=mxUtils.button(e,function(){a.hideDialog();f(g.value)});e.className="geBtn gePrimaryBtn";d.appendChild(e);a.editor.cancelFirst||d.appendChild(b);h.appendChild(d);this.container=h},OutlineWindow=function(a,b,e,f,h){var d=a.editor.graph,g=document.createElement("div");g.style.position="absolute";g.style.width="100%";g.style.height="100%";g.style.overflow="hidden";this.window=new mxWindow(mxResources.get("outline"),g,b,e,f,h,!0,!0);this.window.minimumSize=
new mxRectangle(0,0,80,80);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);var m=a.createOutline(this.window);a.installResizeHandler(this,!0,function(){m.destroy()});this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit();m.setSuspended(!1)}));this.window.addListener(mxEvent.HIDE,mxUtils.bind(this,function(){m.setSuspended(!0)}));this.window.addListener(mxEvent.NORMALIZE,mxUtils.bind(this,
-function(){m.setSuspended(!1)}));this.window.addListener(mxEvent.MINIMIZE,mxUtils.bind(this,function(){m.setSuspended(!0)}));m.init(g);mxEvent.addMouseWheelListener(function(p,k){for(var u=!1,w=mxEvent.getSource(p);null!=w;){if(w==m.svg){u=!0;break}w=w.parentNode}u&&(u=d.zoomFactor,null!=p.deltaY&&Math.round(p.deltaY)!=p.deltaY&&(u=1+Math.abs(p.deltaY)/20*(u-1)),d.lazyZoom(k,null,null,u),mxEvent.consume(p))})},LayersWindow=function(a,b,e,f,h){function d(){var T=N.get(p.getLayerForCells(p.getSelectionCells()));
+function(){m.setSuspended(!1)}));this.window.addListener(mxEvent.MINIMIZE,mxUtils.bind(this,function(){m.setSuspended(!0)}));m.init(g);mxEvent.addMouseWheelListener(function(q,k){for(var u=!1,w=mxEvent.getSource(q);null!=w;){if(w==m.svg){u=!0;break}w=w.parentNode}u&&(u=d.zoomFactor,null!=q.deltaY&&Math.round(q.deltaY)!=q.deltaY&&(u=1+Math.abs(q.deltaY)/20*(u-1)),d.lazyZoom(k,null,null,u),mxEvent.consume(q))})},LayersWindow=function(a,b,e,f,h){function d(){var T=N.get(q.getLayerForCells(q.getSelectionCells()));
null!=T?T.appendChild(P):null!=P.parentNode&&P.parentNode.removeChild(P)}function g(){function T(Z,ia,oa,sa){var O=document.createElement("div");O.className="geToolbarContainer";N.put(oa,O);O.style.overflow="hidden";O.style.position="relative";O.style.padding="4px";O.style.height="22px";O.style.display="flex";O.style.alignItems="center";O.style.borderWidth="0px 0px 1px 0px";O.style.borderStyle="solid";O.style.whiteSpace="nowrap";O.setAttribute("title",ia+" ("+oa.getId()+")");var X=document.createElement("div");
-X.style.display="inline-flex";X.style.alignItems="center";X.style.width="100%";X.style.textOverflow="ellipsis";X.style.overflow="hidden";var ba=document.createElement("span");mxEvent.addListener(O,"dragover",function(H){H.dataTransfer.dropEffect="move";z=Z;H.stopPropagation();H.preventDefault()});mxEvent.addListener(O,"dragstart",function(H){"true"!=ba.contentEditable&&(w=O,mxClient.IS_FF&&H.dataTransfer.setData("Text","<layer/>"))});mxEvent.addListener(O,"dragend",function(H){null!=w&&null!=z&&p.addCell(oa,
-p.model.root,z);z=w=null;H.stopPropagation();H.preventDefault()});var da=document.createElement("img");da.setAttribute("draggable","false");da.setAttribute("align","top");da.setAttribute("border","0");da.className="geAdaptiveAsset";da.style.width="16px";da.style.padding="0px 6px 0 4px";da.style.cursor="pointer";da.setAttribute("title",mxResources.get(p.model.isVisible(oa)?"hide":"show"));p.model.isVisible(oa)?(da.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(O,90)):(da.setAttribute("src",
-Editor.hiddenImage),mxUtils.setOpacity(O,40));p.isEnabled()||mxUtils.setOpacity(da,50);X.appendChild(da);mxEvent.addListener(da,"click",function(H){p.isEnabled()&&p.model.setVisible(oa,!p.model.isVisible(oa));mxEvent.consume(H)});da=document.createElement("img");da.setAttribute("draggable","false");da.setAttribute("align","top");da.setAttribute("border","0");da.className="geAdaptiveAsset";da.style.width="16px";da.style.padding="0px 6px 0 0";da.setAttribute("title",mxResources.get("lockUnlock"));var ca=
-p.getCurrentCellStyle(oa);"1"==mxUtils.getValue(ca,"locked","0")?(da.setAttribute("src",Editor.lockedImage),mxUtils.setOpacity(da,90),O.style.color="red"):(da.setAttribute("src",Editor.unlockedImage),mxUtils.setOpacity(da,40));p.isEnabled()&&(da.style.cursor="pointer");mxEvent.addListener(da,"click",function(H){if(p.isEnabled()){var ea=null;p.getModel().beginUpdate();try{ea="1"==mxUtils.getValue(ca,"locked","0")?null:"1",p.setCellStyles("locked",ea,[oa])}finally{p.getModel().endUpdate()}"1"==ea&&
-p.removeSelectionCells(p.getModel().getDescendants(oa));mxEvent.consume(H)}});X.appendChild(da);mxUtils.write(ba,ia);ba.style.display="block";ba.style.whiteSpace="nowrap";ba.style.overflow="hidden";ba.style.textOverflow="ellipsis";ba.style.position="absolute";ba.style.padding="2px";ba.style.left="52px";ba.style.right="8px";X.appendChild(ba);O.appendChild(X);if(p.isEnabled()){if(mxClient.IS_TOUCH||mxClient.IS_POINTER||mxClient.IS_IE&&10>document.documentMode)ia=document.createElement("div"),ia.style.display=
-"block",ia.style.textAlign="right",ia.style.whiteSpace="nowrap",ia.style.position="absolute",ia.style.right="16px",ia.style.top="6px",0<Z&&(X=document.createElement("a"),X.setAttribute("title",mxResources.get("toBack")),X.className="geButton",X.style.cssFloat="none",X.innerHTML="&#9660;",X.style.width="14px",X.style.height="14px",X.style.fontSize="14px",X.style.margin="0px",X.style.marginTop="-1px",ia.appendChild(X),mxEvent.addListener(X,"click",function(H){p.isEnabled()&&p.addCell(oa,p.model.root,
-Z-1);mxEvent.consume(H)})),0<=Z&&Z<C-1&&(X=document.createElement("a"),X.setAttribute("title",mxResources.get("toFront")),X.className="geButton",X.style.cssFloat="none",X.innerHTML="&#9650;",X.style.width="14px",X.style.height="14px",X.style.fontSize="14px",X.style.margin="0px",X.style.marginTop="-1px",ia.appendChild(X),mxEvent.addListener(X,"click",function(H){p.isEnabled()&&p.addCell(oa,p.model.root,Z+1);mxEvent.consume(H)})),O.appendChild(ia);mxClient.IS_SVG&&(!mxClient.IS_IE||10<=document.documentMode)&&
-(O.setAttribute("draggable","true"),O.style.cursor="move")}mxEvent.addListener(O,"dblclick",function(H){var ea=mxEvent.getSource(H).nodeName;"INPUT"!=ea&&"IMG"!=ea&&"true"!=ba.contentEditable&&(m(oa),mxEvent.consume(H))});p.getDefaultParent()==oa&&(O.classList.add("geActivePage"),O.style.fontWeight=p.isEnabled()?"bold":"",E=oa);mxEvent.addListener(O,"click",function(H){p.isEnabled()&&"true"!=ba.contentEditable&&(p.setDefaultParent(sa),p.view.setCurrentRoot(null),mxEvent.isShiftDown(H)&&p.setSelectionCells(oa.children),
-mxEvent.consume(H))});u.appendChild(O)}p.isEnabled()?(J.classList.remove("mxDisabled"),Q.classList.remove("mxDisabled"),U.classList.remove("mxDisabled"),Y.classList.remove("mxDisabled")):(J.classList.add("mxDisabled"),Q.classList.add("mxDisabled"),U.classList.add("mxDisabled"),Y.classList.add("mxDisabled"));C=p.model.getChildCount(p.model.root);u.innerText="";N.clear();for(var K=C-1;0<=K;K--)mxUtils.bind(this,function(Z){T(K,p.convertValueToString(Z)||mxResources.get("background"),Z,Z)})(p.model.getChildAt(p.model.root,
-K));var V=p.convertValueToString(E)||mxResources.get("background");J.setAttribute("title",mxResources.get("removeIt",[V]));U.setAttribute("title",mxResources.get("duplicateIt",[V]));p.isSelectionEmpty()&&L.classList.add("mxDisabled");d()}function m(T){if(p.isEnabled()&&null!=T){var K=N.get(T);if(null!=K){var V=K.getElementsByTagName("span");if(null!=V&&0<V.length){var Z=V[0],ia=mxUtils.getTextContent(Z);Z.style.textOverflow="";Z.style.cursor="text";Z.contentEditable="true";Z.focus();document.execCommand("selectAll",
-!1,null);K.removeAttribute("draggable");K.style.cursor="";var oa=function(sa){if("true"==Z.contentEditable){Z.contentEditable="false";var O=mxUtils.getTextContent(Z);sa&&O!=ia?(O=mxUtils.getTextContent(Z),0<O.length?p.cellLabelChanged(T,O):p.cellLabelChanged(T,mxResources.get("untitledLayer"))):g()}};mxEvent.addListener(Z,"keydown",function(sa){if(13==sa.keyCode||27==sa.keyCode)oa(13==sa.keyCode),mxEvent.consume(sa)});mxEvent.addListener(Z,"blur",function(sa){oa(!0);mxEvent.consume(sa)})}}}}var p=
+X.style.display="inline-flex";X.style.alignItems="center";X.style.width="100%";X.style.textOverflow="ellipsis";X.style.overflow="hidden";var ba=document.createElement("span");mxEvent.addListener(O,"dragover",function(H){H.dataTransfer.dropEffect="move";z=Z;H.stopPropagation();H.preventDefault()});mxEvent.addListener(O,"dragstart",function(H){"true"!=ba.contentEditable&&(w=O,mxClient.IS_FF&&H.dataTransfer.setData("Text","<layer/>"))});mxEvent.addListener(O,"dragend",function(H){null!=w&&null!=z&&q.addCell(oa,
+q.model.root,z);z=w=null;H.stopPropagation();H.preventDefault()});var da=document.createElement("img");da.setAttribute("draggable","false");da.setAttribute("align","top");da.setAttribute("border","0");da.className="geAdaptiveAsset";da.style.width="16px";da.style.padding="0px 6px 0 4px";da.style.cursor="pointer";da.setAttribute("title",mxResources.get(q.model.isVisible(oa)?"hide":"show"));q.model.isVisible(oa)?(da.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(O,90)):(da.setAttribute("src",
+Editor.hiddenImage),mxUtils.setOpacity(O,40));q.isEnabled()||mxUtils.setOpacity(da,50);X.appendChild(da);mxEvent.addListener(da,"click",function(H){q.isEnabled()&&q.model.setVisible(oa,!q.model.isVisible(oa));mxEvent.consume(H)});da=document.createElement("img");da.setAttribute("draggable","false");da.setAttribute("align","top");da.setAttribute("border","0");da.className="geAdaptiveAsset";da.style.width="16px";da.style.padding="0px 6px 0 0";da.setAttribute("title",mxResources.get("lockUnlock"));var ca=
+q.getCurrentCellStyle(oa);"1"==mxUtils.getValue(ca,"locked","0")?(da.setAttribute("src",Editor.lockedImage),mxUtils.setOpacity(da,90),O.style.color="red"):(da.setAttribute("src",Editor.unlockedImage),mxUtils.setOpacity(da,40));q.isEnabled()&&(da.style.cursor="pointer");mxEvent.addListener(da,"click",function(H){if(q.isEnabled()){var ea=null;q.getModel().beginUpdate();try{ea="1"==mxUtils.getValue(ca,"locked","0")?null:"1",q.setCellStyles("locked",ea,[oa])}finally{q.getModel().endUpdate()}"1"==ea&&
+q.removeSelectionCells(q.getModel().getDescendants(oa));mxEvent.consume(H)}});X.appendChild(da);mxUtils.write(ba,ia);ba.style.display="block";ba.style.whiteSpace="nowrap";ba.style.overflow="hidden";ba.style.textOverflow="ellipsis";ba.style.position="absolute";ba.style.padding="2px";ba.style.left="52px";ba.style.right="8px";X.appendChild(ba);O.appendChild(X);if(q.isEnabled()){if(mxClient.IS_TOUCH||mxClient.IS_POINTER||mxClient.IS_IE&&10>document.documentMode)ia=document.createElement("div"),ia.style.display=
+"block",ia.style.textAlign="right",ia.style.whiteSpace="nowrap",ia.style.position="absolute",ia.style.right="16px",ia.style.top="6px",0<Z&&(X=document.createElement("a"),X.setAttribute("title",mxResources.get("toBack")),X.className="geButton",X.style.cssFloat="none",X.innerHTML="&#9660;",X.style.width="14px",X.style.height="14px",X.style.fontSize="14px",X.style.margin="0px",X.style.marginTop="-1px",ia.appendChild(X),mxEvent.addListener(X,"click",function(H){q.isEnabled()&&q.addCell(oa,q.model.root,
+Z-1);mxEvent.consume(H)})),0<=Z&&Z<C-1&&(X=document.createElement("a"),X.setAttribute("title",mxResources.get("toFront")),X.className="geButton",X.style.cssFloat="none",X.innerHTML="&#9650;",X.style.width="14px",X.style.height="14px",X.style.fontSize="14px",X.style.margin="0px",X.style.marginTop="-1px",ia.appendChild(X),mxEvent.addListener(X,"click",function(H){q.isEnabled()&&q.addCell(oa,q.model.root,Z+1);mxEvent.consume(H)})),O.appendChild(ia);mxClient.IS_SVG&&(!mxClient.IS_IE||10<=document.documentMode)&&
+(O.setAttribute("draggable","true"),O.style.cursor="move")}mxEvent.addListener(O,"dblclick",function(H){var ea=mxEvent.getSource(H).nodeName;"INPUT"!=ea&&"IMG"!=ea&&"true"!=ba.contentEditable&&(m(oa),mxEvent.consume(H))});q.getDefaultParent()==oa&&(O.classList.add("geActivePage"),O.style.fontWeight=q.isEnabled()?"bold":"",E=oa);mxEvent.addListener(O,"click",function(H){q.isEnabled()&&"true"!=ba.contentEditable&&(q.setDefaultParent(sa),q.view.setCurrentRoot(null),mxEvent.isShiftDown(H)&&q.setSelectionCells(oa.children),
+mxEvent.consume(H))});u.appendChild(O)}q.isEnabled()?(J.classList.remove("mxDisabled"),Q.classList.remove("mxDisabled"),U.classList.remove("mxDisabled"),Y.classList.remove("mxDisabled")):(J.classList.add("mxDisabled"),Q.classList.add("mxDisabled"),U.classList.add("mxDisabled"),Y.classList.add("mxDisabled"));C=q.model.getChildCount(q.model.root);u.innerText="";N.clear();for(var K=C-1;0<=K;K--)mxUtils.bind(this,function(Z){T(K,q.convertValueToString(Z)||mxResources.get("background"),Z,Z)})(q.model.getChildAt(q.model.root,
+K));var V=q.convertValueToString(E)||mxResources.get("background");J.setAttribute("title",mxResources.get("removeIt",[V]));U.setAttribute("title",mxResources.get("duplicateIt",[V]));q.isSelectionEmpty()&&L.classList.add("mxDisabled");d()}function m(T){if(q.isEnabled()&&null!=T){var K=N.get(T);if(null!=K){var V=K.getElementsByTagName("span");if(null!=V&&0<V.length){var Z=V[0],ia=mxUtils.getTextContent(Z);Z.style.textOverflow="";Z.style.cursor="text";Z.contentEditable="true";Z.focus();document.execCommand("selectAll",
+!1,null);K.removeAttribute("draggable");K.style.cursor="";var oa=function(sa){if("true"==Z.contentEditable){Z.contentEditable="false";var O=mxUtils.getTextContent(Z);sa&&O!=ia?(O=mxUtils.getTextContent(Z),0<O.length?q.cellLabelChanged(T,O):q.cellLabelChanged(T,mxResources.get("untitledLayer"))):g()}};mxEvent.addListener(Z,"keydown",function(sa){if(13==sa.keyCode||27==sa.keyCode)oa(13==sa.keyCode),mxEvent.consume(sa)});mxEvent.addListener(Z,"blur",function(sa){oa(!0);mxEvent.consume(sa)})}}}}var q=
a.editor.graph,k=document.createElement("div");k.style.userSelect="none";k.style.height="100%";k.style.marginBottom="10px";k.style.overflow="auto";var u=document.createElement("div");u.style.position="absolute";u.style.overflow="auto";u.style.left="0px";u.style.right="0px";u.style.top="0px";u.style.bottom=parseInt("26px")+7+"px";k.appendChild(u);var w=null,z=null;mxEvent.addListener(k,"dragover",function(T){T.dataTransfer.dropEffect="move";z=0;T.stopPropagation();T.preventDefault()});mxEvent.addListener(k,
"drop",function(T){T.stopPropagation();T.preventDefault()});var C=null,E=null,D=document.createElement("div");D.className="geToolbarContainer";D.style.position="absolute";D.style.bottom="0px";D.style.left="0px";D.style.right="0px";D.style.height="26px";D.style.overflow="hidden";D.style.padding="3px 4px 4px 4px";D.style.borderWidth="1px 0px 0px 0px";D.style.borderStyle="solid";D.style.display="block";D.style.whiteSpace="nowrap";var G=document.createElement("a");G.className="geToolbarButton geAdaptiveAsset geToggleItem";
-G.style.width="16px";G.style.height="18px";G.style.backgroundPosition="center center";G.style.backgroundRepeat="no-repeat";G.style.backgroundSize="20px";G.style.margin="0 2px";G.style.display="inline-block";G.style.cursor="pointer";var J=G.cloneNode(!1);J.style.backgroundImage="url("+Editor.trashImage+")";J.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(J,"click",function(T){if(p.isEnabled()){p.model.beginUpdate();try{var K=p.model.root.getIndex(E);p.removeCells([E],!1);
-0==p.model.getChildCount(p.model.root)?(p.model.add(p.model.root,new mxCell),p.setDefaultParent(null)):0<K&&K<=p.model.getChildCount(p.model.root)?p.setDefaultParent(p.model.getChildAt(p.model.root,K-1)):p.setDefaultParent(null)}finally{p.model.endUpdate()}}mxEvent.consume(T)});p.isEnabled()||J.classList.add("mxDisabled");D.appendChild(J);var L=G.cloneNode();L.style.backgroundImage="url("+Editor.layersImage+")";L.setAttribute("title",mxUtils.trim(mxResources.get("moveSelectionTo",["..."])));mxEvent.addListener(L,
-"click",function(T){if(p.isEnabled()&&!p.isSelectionEmpty()){var K=mxUtils.getOffset(L);a.showPopupMenu(mxUtils.bind(this,function(V,Z){for(var ia=p.getLayerForCells(p.getSelectionCells()),oa=C-1;0<=oa;oa--)mxUtils.bind(this,function(sa){var O="1"==mxUtils.getValue(p.getCurrentCellStyle(sa),"locked","0"),X=V.addItem(p.convertValueToString(sa)||mxResources.get("background"),null,mxUtils.bind(this,function(){O||p.moveCells(p.getSelectionCells(),0,0,!1,sa)}),Z,null,null,!O);O?V.addCheckmark(X,Editor.lockedImage):
-sa==ia&&V.addCheckmark(X,Editor.checkmarkImage)})(p.model.getChildAt(p.model.root,oa))}),K.x,K.y+L.offsetHeight,T)}});D.appendChild(L);var Q=G.cloneNode(!1);Q.style.backgroundImage="url("+Editor.editImage+")";Q.setAttribute("title",mxResources.get("editData"));mxEvent.addListener(Q,"click",function(T){p.isEnabled()&&a.showDataDialog(E);mxEvent.consume(T)});p.isEnabled()||Q.classList.add("mxDisabled");D.appendChild(Q);var N=new mxDictionary,U=G.cloneNode(!1);U.style.backgroundImage="url("+Editor.duplicateImage+
-")";U.setAttribute("title",mxResources.get("duplicate"));mxEvent.addListener(U,"click",function(T){if(p.isEnabled()){T=null;p.model.beginUpdate();try{T=p.cloneCell(E),p.cellLabelChanged(T,mxResources.get("untitledLayer")),T.setVisible(!0),T=p.addCell(T,p.model.root),p.setDefaultParent(T)}finally{p.model.endUpdate()}null==T||p.isCellLocked(T)||p.selectAll(T)}});p.isEnabled()||U.classList.add("mxDisabled");D.appendChild(U);var Y=G.cloneNode(!1);Y.style.backgroundImage="url("+Editor.plusImage+")";Y.setAttribute("title",
-mxResources.get("addLayer"));mxEvent.addListener(Y,"click",function(T){if(p.isEnabled()){p.model.beginUpdate();try{var K=p.addCell(new mxCell(mxResources.get("untitledLayer")),p.model.root);p.setDefaultParent(K)}finally{p.model.endUpdate()}m(K)}mxEvent.consume(T)});p.isEnabled()||Y.classList.add("mxDisabled");D.appendChild(Y);k.appendChild(D);var P=document.createElement("span");P.setAttribute("title",mxResources.get("selectionOnly"));P.innerHTML="&#8226;";P.style.position="absolute";P.style.fontWeight=
-"bold";P.style.fontSize="16pt";P.style.right="6px";g();p.model.addListener(mxEvent.CHANGE,g);p.addListener("defaultParentChanged",g);a.addListener("lockedChanged",g);p.selectionModel.addListener(mxEvent.CHANGE,function(){p.isSelectionEmpty()?L.classList.add("mxDisabled"):L.classList.remove("mxDisabled");d()});this.window=new mxWindow(mxResources.get("layers"),k,b,e,f,h,!0,!0);this.window.minimumSize=new mxRectangle(0,0,150,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);
+G.style.width="16px";G.style.height="18px";G.style.backgroundPosition="center center";G.style.backgroundRepeat="no-repeat";G.style.backgroundSize="20px";G.style.margin="0 2px";G.style.display="inline-block";G.style.cursor="pointer";var J=G.cloneNode(!1);J.style.backgroundImage="url("+Editor.trashImage+")";J.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(J,"click",function(T){if(q.isEnabled()){q.model.beginUpdate();try{var K=q.model.root.getIndex(E);q.removeCells([E],!1);
+0==q.model.getChildCount(q.model.root)?(q.model.add(q.model.root,new mxCell),q.setDefaultParent(null)):0<K&&K<=q.model.getChildCount(q.model.root)?q.setDefaultParent(q.model.getChildAt(q.model.root,K-1)):q.setDefaultParent(null)}finally{q.model.endUpdate()}}mxEvent.consume(T)});q.isEnabled()||J.classList.add("mxDisabled");D.appendChild(J);var L=G.cloneNode();L.style.backgroundImage="url("+Editor.layersImage+")";L.setAttribute("title",mxUtils.trim(mxResources.get("moveSelectionTo",["..."])));mxEvent.addListener(L,
+"click",function(T){if(q.isEnabled()&&!q.isSelectionEmpty()){var K=mxUtils.getOffset(L);a.showPopupMenu(mxUtils.bind(this,function(V,Z){for(var ia=q.getLayerForCells(q.getSelectionCells()),oa=C-1;0<=oa;oa--)mxUtils.bind(this,function(sa){var O="1"==mxUtils.getValue(q.getCurrentCellStyle(sa),"locked","0"),X=V.addItem(q.convertValueToString(sa)||mxResources.get("background"),null,mxUtils.bind(this,function(){O||q.moveCells(q.getSelectionCells(),0,0,!1,sa)}),Z,null,null,!O);O?V.addCheckmark(X,Editor.lockedImage):
+sa==ia&&V.addCheckmark(X,Editor.checkmarkImage)})(q.model.getChildAt(q.model.root,oa))}),K.x,K.y+L.offsetHeight,T)}});D.appendChild(L);var Q=G.cloneNode(!1);Q.style.backgroundImage="url("+Editor.editImage+")";Q.setAttribute("title",mxResources.get("editData"));mxEvent.addListener(Q,"click",function(T){q.isEnabled()&&a.showDataDialog(E);mxEvent.consume(T)});q.isEnabled()||Q.classList.add("mxDisabled");D.appendChild(Q);var N=new mxDictionary,U=G.cloneNode(!1);U.style.backgroundImage="url("+Editor.duplicateImage+
+")";U.setAttribute("title",mxResources.get("duplicate"));mxEvent.addListener(U,"click",function(T){if(q.isEnabled()){T=null;q.model.beginUpdate();try{T=q.cloneCell(E),q.cellLabelChanged(T,mxResources.get("untitledLayer")),T.setVisible(!0),T=q.addCell(T,q.model.root),q.setDefaultParent(T)}finally{q.model.endUpdate()}null==T||q.isCellLocked(T)||q.selectAll(T)}});q.isEnabled()||U.classList.add("mxDisabled");D.appendChild(U);var Y=G.cloneNode(!1);Y.style.backgroundImage="url("+Editor.plusImage+")";Y.setAttribute("title",
+mxResources.get("addLayer"));mxEvent.addListener(Y,"click",function(T){if(q.isEnabled()){q.model.beginUpdate();try{var K=q.addCell(new mxCell(mxResources.get("untitledLayer")),q.model.root);q.setDefaultParent(K)}finally{q.model.endUpdate()}m(K)}mxEvent.consume(T)});q.isEnabled()||Y.classList.add("mxDisabled");D.appendChild(Y);k.appendChild(D);var P=document.createElement("span");P.setAttribute("title",mxResources.get("selectionOnly"));P.innerHTML="&#8226;";P.style.position="absolute";P.style.fontWeight=
+"bold";P.style.fontSize="16pt";P.style.right="6px";g();q.model.addListener(mxEvent.CHANGE,g);q.addListener("defaultParentChanged",g);a.addListener("lockedChanged",g);q.selectionModel.addListener(mxEvent.CHANGE,function(){q.isSelectionEmpty()?L.classList.add("mxDisabled"):L.classList.remove("mxDisabled");d()});this.window=new mxWindow(mxResources.get("layers"),k,b,e,f,h,!0,!0);this.window.minimumSize=new mxRectangle(0,0,150,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);
this.window.setClosable(!0);this.window.setVisible(!0);this.init=function(){u.scrollTop=u.scrollHeight-u.clientHeight};this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));this.refreshLayers=g;a.installResizeHandler(this,!0)};
(function(){Sidebar.prototype.tagIndex="5V1dV+M6sv01rDvngax0oLvveYQEaGaAziE0PW8sxVYSDbblI9uk6V9/VVWS7ST+kB0zL3etbmIn3ltlfZRKUqkU/rpRLN6MmFJym5yM/8QL/Xnw7yLceXQ03fA3JaOTyfjCQCKZehvu66tErCMW6J9E1M4jlJcFTJWIPP1VIKK1ixj/zML4VBRiTMaf9HOKx8G7/lwy71V/ZJEv8Vv8cKea9KW646tU41nk678/4tK7SZVu5FpC9oz/TDPVnkEPJlsn4wVma1lEnVemGByy6q+M+SXkSmaQ6Vv27gJeBDzyOQDMu1ma5FVEEVBEtuokgQhdyZ62Uv/9qWWoYPRltgx4A3U970/hc6BnIuD+kdI+KbGTcelGce6ec4evOBl/k0r8llGKtWBTvulF98xVKjzEvxWXDVS/M8VHF57Hk0TDpzpxJQGScC9TIoX3euXvVV/UcWWpDFkqsCYyfaM/1ly36vGfgVhv0oiasyfh7ypgyaaBaKHl5/nThqb5VeAvZEigXx8k0AolJJUkVjo7jGBOHFOm29Se3FZin6VsyRL42V+2U90z9crTOGAeIEK8Q1UCnMlGxk4CLWb/gsflKt0y/MLnbzyQccgjaIivAjgTT/Gtr4Quf9cXXWRLjRKxyRwvkBko75hHnjisPzUkP/kyESnHtwoAtQ7kkrehL7UyzUAtLrh6E5g7Nnn9iYo2SWW8ZVr1QYsTIW8gE+ll5kHWQlXGdr/Qug1Zl/RDe2O4FL+fWPBaiJSUZGoDT6HRYT3DN9Gdgy4agY3Q59gj+iIOdAOB/MmYYlHKqYp5PMLaFHMVirSSG2XYySnnZrGHNW19JdaZoiYxGV8LbGq+9DKsT0APT3Sk1ldzXaZszQvOpfzlkndUYodytAPDOEuxuocyEqlUmM+Jbm6HevkAq0sAW8+MB9BmQJs+8HQr1Wup3G2zL6uCetJZjXKofV7J+FLnUUWtxZyLTYa20FzpV1GxEgnVdxH4JOgyS0QECr4F3z3nEUHWUQfUjUi/ZUv7tjqTGaCkl0q6Wou0Ef9tdhslUBAn9Xq4GshZkG6gTmx0m8EqvuGoYzb4iwMYdDnVMcpbS2QM3TYB3mM0Sp71/0fuSVPf7lmki1d10DN3LE6x0/CKut+GuddVgGpRyFCtc/sZYS/Cm9FySdUj3sgIPlOZeZvWNAm1o0uTXH81UO3zZEEqQDkwD5q37t+zdAOqNe/RS/aJ6Tdi5purBt73xV930PiLapT8HTTXqz2Kh7JloQ26bIlVOtAl6dIY9uBPMhbeCdgtu/ZLJeEe1XdduTSPrpc6v9+TlIf64jakMpeQ9RumQFVr3YiV3vcb+eZyy9Viw4Ogl1p+nM2xmofSyNSdYgHjnSzA6m26fu+wTKtwYM30S1LXTkxPsYp0qp+nbu8yg271r4xnWM3/hoseBI+8qttygmLlSfLhZtmsS7CZUd1Kds295iT2m4dTh7aH0qLgF2QqGo5qVVdLtHiPvIp2mdDXinvvXtBgGhLRI4/1sJs09z5TqY6sRCNVqlU+2qxPDNuRuxm20MqLmqNOO3CqHRqxEGEclC3jNtATkMOLhFZpOynrH5FAc3UlcKRsbJHvy/9wD8iylUSFJHhrrfmRYBPaZCGDZ2Mu6QXolr3prFf16OdvsxOjqyqUVPXzVEngw+g2Qrur8WehCxWnqu71sE9gv/QWnrSalK00WglxllLFX+VXVaxv1TMae7yFcRrlV2059PNiNr2+wdxh60gmKamJ7trRDvIm4xsecYXqxI7z6sQ5pICWKDHp6jFiEyjpgtLioL1lU6MmSu3VHZm0QtcI1RVNeCPPjIeKHnuZLamxJzHnNIzdyIzsV2+DJm+Y22ZVlPINS35AxuFl1Bo4nQ5IJ7PIfxyW8xzGplLgaG9BGginPqsrUhn55RCZiLoxbRn4v4dAbkYubdBLFkWoRfXYs24CvPz8lGzpNZchT1XDzN8OSEkcF8ZBhnP+1cq2jJgddJORxMmOmMX7w5A96HXzILoS882Mr/IBWqAHTcjxejheKQPvJRo3kWNuP0g0msMlzn6upFoK36/o6A6R34t5fG0RKMGiNdXSwyFVJX4R6mwE9Y+GsodSb1gcv7cCTRUWmCEx1rI2SAbsPvY2+m9QmTl7mCeBdrAdKeMnTGC24X4ylMvU3qWtzY2Yf5/QdB+kwyKPB1i9agqkwEqZJqm+HLULWY27rx0Q72mUWoass8VjGOIQHihN0cRKenQVagMsqEtZ40YXPq4geB2yGWCXNjHdvWUBLwzZJqO0hL+TVEJ2va5urbACZWbCVYXEuLKywZep5bhnERlBRuANDHRa5c1HgwZlFJY2kWnipFFzIUE+znKy+EtINIQLcbvWDo8tdUmlOANNl1A7/85EXGmvHeBG00tYB81LS0AuLBVnVATUY8Ryv9DreSbjX5/Gw7BN6qTSVmRHniapOrKd1UqFa33dmLRcn4eiO68TzJgwXYga5OrAdj+l/P+s/3w5u4BXnkOdFpGwo5wOb+7Cf+7CX/0GtfRfzjCN8YfJX05g2BeQMAv9mxwCtgIWyOwr5L/o7pR+6SJ3Fe/5QLwwr4C6BIv1fKyzpToXHJTbLiG8/GQotrMJyTgA31zp7sYz07uavDfhI0+ET93fNFPKrlqZnmkCBaS85u7Qkeu8E9ciU7jYt/Oin4Cirkdwp8G3qlPh7jTYKupVrjsR5kytjqzkeYIFXRodnI/DcJL3VsvKmexWjgEoQCsdT/N5gLf5grrxeJ6vHTm4gO6UlxdM9fCJr5VdTooZGIdRDXwVSKniAK23gL3Xr/TsPT66RK06s+5MS1xeX2UqEqZDcGRYCDPKrMfWwKV89WhCtCt0umFC9cHJWKCO87lZ93ND0Yx1Ilesax5NH5/A6H4+Kc+ulmZcK+SoYJnx5BWnwRUNUOzoqJMouyS0VN6PSOkRm10jTnAgsGXKVzQTWkNVwXMVcD3cwHzgiccCc+0iwrV+eIB8vYYrzXPHQmiE1ZMQ1dCqZe8YRowhM391K5bkoGWFgTnpJC0cvypov69W1PHZKu61VvUKlrlgOFehv8dRqYiSVFVPrFeh9R+a6FKwUKF/2DYN5EtABZqrc/t6ZBF2b+Aky+I4EDDf0hE76YPlKyXWsFCNdaYrfEHqwDPaoVMBPZl25/OkuXfYh1AuGViPJI2HzBH4syPx50fiP/fFS0ErkVp1KFpUCxjqH1AdWqWlSspDr9t9mp8sRe05lZKcAbbwhWfvXCT5uaMGgh6KpJLW1xfoBw3LaFijA7pLbA/dLBaAHq0vExEoc+vIsCVvS8dsgKfzHs2zF5UcNegfdc9XQw7LtzEBEfnVuw5qsk9o/ZpU+TG0Qy5lmqJsZZKl/bKVR1cmoRI9kMKywhvIGYGrFIq+bi/73BQ0hZ97urenL6JXo5mqakobbtIVV66p/w8gNxay1cYALkHB9QnaBuTxx//OCudewXQalev3OcXoIopkah29PmH7C415oHVru0dODdPkGKapDAJyVt7oUe06YBVuotXIfZ+gJPdtaYfWuto0odAH8LSEDeELJ+eFgmTOYjMjHzutTu3jF0WpG5cTsOdrF/oO4OA7ZEqfB4GIEzsLWN3o6/CT3nipaAhKotcVWg06C0PjypdFnnW8zKDa16wc7zM8ads4WfHympGqW4QkbMBZ9BJqM5HWi99YkIFBog0Hzio7lkrk6FpEIqHNUzdS+rD2lUqc/dJZEPYVaHSDy8bczBP5mZ0nMo6LJDO2Kt7crnZYv2dpIkqO4Lj+UwiaZGA0N9XXHbZnPaKg7UVm+cmsVbpgLwQqTBDlK2QRjYqU9WGg36q1rR4EKSmgVoQS93g0qWbzMLnj/zKeThc2Ny9xdcxvW89tJ4FBZ+TrYS822IEJJ+OfG7MBproKdaU+lm6ha0k6VD5Wkg2Rn63EH5QRvWjn4LGOw95S7TY+lo3TH5bgr0x4r7qHlmhA5xdL8inC2+X+qnIjibHk+hEt7HPJHmiPr5FDKwqa25qJBIaLoGOvda+c0H4n10rRyKPrgymjDoVVMM5x8qynOBbcSwY9gDZTfidm4q9hNigH6Zq7EjwAgaEWn4CdRLdtSHCS1yLr+oE6voukO1CwEDCn2jNsm2CDCNlvtAe2HK3BYr8H2yZ1uJHuZl7so7STbMGZwqkd6+yc2C8a0q/ngU2T1/pvyFPmk83Tn/jK+AeZjy7QxdUCkrSe3NbTqNgL40jzsEOzt6u1D9tkTG81GT/skQ2ayLenp/lHp2H3zgzG+tdOZtsNHX1oJuNi99VAhH9Z9NF0P6/LNDBfboa6fZhgGdkTPhmqg3Eaf+zelGaa70Uruxfjpw7m7dWUBlIMPOJLqqEnlbYw7m/rCMN8W4EIq3yU28lRr/00O6EP07B7pPtJPgO3BzSObqMkNTPyh4nQVpli6C+Kh7umeGXIdYrzyrTE4a54V+7GdziaNakWdy8rutDfP+5Q6uGXHqZnFasiznRQXfSQERvNwMTfZtcLB/4N88lR1Bd6tC6Wmg+3UpO1nNAGReekn+dT/fCb2QYDbrLizeyyPyxWZ8bSBMBkfKP5KJTH8MncwhpdhJEJPjKZR2kWM4anfp4/4AqMtort1M9HJXJkDjXvCa99fDR7j1goZ+Ci5eNlH6zuA1JT24fiScpErMTelfGWWtwxQgHFjjzCtuJuPPlabFdZTK9hY7OU1LD5pjsLmKV+V7LRWsksxq1hcNHhDR5nYFYqnRg0I1Y7DGhmMD12qaM7njEng52y6I//yONAG9BDsy/0hb98H4T2Hv7Q9t5BMyMPDTB4Nn9XzMNV9SGpaZMwKq/cRu6MBdc0PRqMupDoGiLfYQUGNXqIoSzglobh11Ll0aDyYCql7wahxgrlvX5sEk9cZ8huDzRQKtakbzDk+1FCGCwTPmIQ6tuLe/08bRLHSBvMs1uV8of6M2tpff8UM/Pjklg8LY7ij2R0alrmSxLrke4KNjZKlWGvuIKL9jaT+K844epjeCsbzgtnkPNwXuM/X3fC4BwyjB44eY2kUW1gqzKElvowWzyKevTim5hHprYrSXGfbPU290OwgmbZRoHEXmVmBwR7emHQ9K589FG7k96B/hk0nQWuRNKy6Ee92NUl1NrCPFkWodFqXT7dWLX8EYuTjUw/LIFnGWQh/wD6BXjF5f1UsZTtMB/UxgsRVUy8uA9OYDJGlyEbZyNpS1HacBx90z06HU8knhzZ+GJAVIo1Vl/L92CjS6WtHnxx8r5FZ4xmPbZPYWNQQGbmEnRmuZ+BSxs5k2zBqQJpskiklWy1PIuQ4XrcZbGXdyOzpNmGIhLrhZhgucX6peINVyxIRreX0Gvda5tspRgFQCo8FlPjIwyemeTOGHtHJCIiCLF1sTgfj3fTib1jX+DJSDoQaa0feE+++5K/Z4mSnEGL3N11JS8SdE9HeEraqGfFD0fVEJwXKwldJ25PbrDKdG6T+y0F1RlOcDth5Q1LnHvED0S48Kx/2FCEsd33NxRhFplVkqLAB2obiywGV+ucayDaPEbVTg7QOnlfSrsfbDAhf+w3rmPInvWoA13OtB5XbLiyp9hIlxATesgqVVuZanqbKm6MJh1Y9lBCLL9k9Gl8cwW+HVN5dYJRLrKWiYZmurNPX2FH4z9mJNcfpaWJPKJ1YKpu6aZ3cv+m5HAb00cnVoSnzXdi39v8OjrjroXiW7JZiggXhh5ecLu4/2OIdA7Ih+C08S2Hz/Mi1Fqe56VEdMY8L6Zn4/H4j64J+gKCZEl0trLXXWAjGMsGJWQg26I8EcMmW9IrrmlhBZrg+JIlHLZJUsDSTda8UlJHNIXvj2Y5Dm0N7+NY9pee1o2LUIfB7vYSCPXf0b/4OxT2bsD8RsTjfKH/6Z9VXOcwfICpjK3rhMzX9DytZOyWPLfXrWCUPg9NPwImrq4cFDp2bgze3FOyVbYDpm9SprndbD67s+TRiPMDD27nJfk83rKrqZ7X5xQq0q9YDHNhWMhV5/fLowhZv+42gEJbG6qJssvEbZBSVOXSZTsKYuja+uiYEEIglnuoh940Z5eYnsnancUvHRghyGUuRsN2kzpsWYZVmcuVBAd9W77MgSF8cWI9JZs5sAeipm0DrrRhtrqDCGj+YStWogZxgwj9oEfBAkdsCZHMvHQ0uwCj1xdrQQeRMG1SSzqzI4JDRSpiZTWQ8TCDQIm6wsMEi66wv1qClVex6HKgZJe6zcRte5SqGO6zX6dWll1JmiVrIz2g68ZgQnab6IEXIcRmwh3ZYRxAHN5hGCfHMT5dGKlkiVuP1WAvj64TsOvFLGDWJOJAP/lY+rOPooctUXaFcG5CMCa1a0AHPB6LmSeMTZjfdEePpjmWiipzbiI1JJMhSCDb6SkZvNPUfwVnB0LYx541RzxuJ/k8hFT3ptWjI2OJC8b3RVLQnYF/CSf9GYYUlJRr45LCdn5cmnOM+J+nGctEOKfpC22h0DCFPGOcUCZPT0PubViEX01O6XyqRR4tbFvn7ONCdyczP8nnzoqrvnzzLNmUx3kP0PNFsKof4FFvGGqlYWNjR/bvu+xaITXs0W3mplMCaGSq9dDgslfw95VecO/809fRxfT0YkqMuRWRmxYdiWa1RIXZ4s43G5IMY9p07mxL6Mn4UtAY33ZVfdkuC2NpZQ2orngTjbcXfnaxl7EVNqU7WUX1OZLvoBYVfDWmbgulWK24yneHH1cVriJPvce4Kh95HZSwgX8Tx5T8neyLftHFIDycVUHfSFbhqFqHRluMTCF73Rk7urVIY0gLE+jEreOr5DkbiOfzMTy0c16rX25fTSgzM38k16QXl41tRaVVG+mqHQ9Kj2tRjO4N49KlY/vbrXN4V1f3WuAjOGZmozND0lk84L9yZ3zmzFEzTpQwu8YD2B2viUbXWWKDSOkmchQHFhbnzo2qkgRHQ8tEBty9dVYSnR8lzW0QZLBgZ46HuswCmA8R9ltgtcHh8HNJD3RKA4PMUdZbLlFOtrvUhnEyICPSHGYAsR3mR598eOA4RDUx91qTOIbeVNIBkpDJiqcJlB1dnsAJOg2hOSqwoxkt5cC8PixAfV9cX8Gqx8PJzjAM7N5oP9h+T2rYzFYabfWizslupwMJu8s4qIywhoDnZ+gK/DqkqPM94mMlfji1sFJxfTppGJD3YpwMzng2OOP54IyfB2f8cgzjvK6saydCejFOBmc8G5zxfHDGz4MzfunPCEXQt3+YDK4TahiP0Ak1jEfohBrGI3RCDeMROqGG8QidMBlcJ9QwHqETahiP0Ak1jEfohBrGI3RCDWMfnSDjVL6Y+cxIeMnoK67frkNzxEEetjrhb7XHe/VlzX35Z/NSCj73REj+FIdndDml9mfNO0Si1lGgL+nuK5gEjn+Du6vZ3iiMhyK1J7EeLjJ0IJ0MTApUp8xL0fUFY+1PIThD4lH4kcAc0ZZ7fsEUO87W7k3yOaX2XX9x6sksJg8y+L2461euSImrmyKhGTR4ZOeLfsTzjUylzdYYbqqzuZbvRY8OMSAUjkF3l2M7rL3GgfcSMN/nCg7P1gX0PUvjzEbVbDt124lo0ptoAFl6SwF7LF4S3QbMsrY0LjilL47hGt08fS+aQ3tDMPNvaYbHaMjVCm4278rUQudkb2+mtp+2Z3RgWoYf/YJS812Jv/v7mYQmH57QA7rd3d5cFu+VZMFuaksRSzpcr7Lp9ktr8l9M6+y/mNb5x6Y1f5j/18prJ60PLq+dtD64vHbS+uDyAhVlI6M799fdE5h8YAK31gsPt6BVaZt6RsUp69DTk3fr9ROx1h3yS5LHHaarfvARrtguLAODtUQzBeyZU8d6kM5KpOZkDlwuH5J18iGsZwOxPmOw7TcZpG2xuxs4cH33aI5Jd5J0A/u0wKZ8oZC56GjUdHaNAwVZp8aD2xqnlQ7dlXy5uknqlI8rfmfa4p+V00n/cZ2kaqGdDEA7r5a267C7hbLPjMiWvXFYo0Y/ZnPdiBUy+ToCJYpL0l6tk/j+06MLbE6e4m3OCmUMBlbBmIwYySAVIUXwCUXkNy1blzguKWaN4jE6VDljtma3rNJVX2ak5eHgFEcCGB0nG3TrWcrDQ+wrQdSQmIkm0+0tpXzFpGTTidwVMBCtiEwAsXob3RfLWCX4ypxyl0oZVL1mDXTKAh75Jk66e3WYbjBMgC8SL0vqzqOpBO7WH5vDDkAZ6haFYTV80TxG3EGhkULjQpwqMUeO68F4KirOKKgkwXBn/2FvzDVZc9pEc2C+SiA3Pgq6yskW3VGGFYeCeDJ2blwWhh1SQRGzpMmTZIdgizN+NtQNGoLctdpe2WPnJ+N/XIVx+o67L/O4wYoztyZe5jFhh4EpiyoZ6kje0SLH+OEmmkWxpN90tkyJ4zpgyWbHhcM19WsZkH6Ras0i8du55AloXNdaztzYgSmjVSMTb53tH+BUg7xhGZYONOBme6EMCujYxrX+rN3BeYD6xunkoQ3XlnTdTqBDlETN0hSK5ABzV3IzOXRyoYOyyjWjlS7C4Gzl2KFuctjgTfkpR62bf3bRrzgai5lv1GzlwbDVWPlKbkk35kykmnDxNfh7Eyk+b73cNsoi+HsbRY71qHcpDnlyBic7MhgeB3Q5TsmbJMsckqeTLbVSk+tI5EHclWjjK84IzRcv3ASRtGEiPyEv+h/61AUTSdPlpplatvIkMKP6LPiW06Ed6OhY1wfKmLYftpG+gY7Fc4RyhcXwxBznF3yQ2LXoERXmbJgl6LsIFIGoOEPugOC7tnWi/CywOxNXSxuzuPakZB7BoTLnqxhxGxNtsOAVRmUdSnF0fvb2MtDBzKimE2/MA2mNB7qTEI8873ZXiid0El/MsdYrniqHt38sni8oclZHCnqsvxCLcqZV5+t+fnro/r7m5ryWStYNhRnMYvM+Tnm60EOFmFThlPqfZeZcvRe6EzZntaWkS0wsOJ8spTa4HjHk+6Ibt48fQlPMCVXtlFkLkvG2iMbZYpnXMBwMWHzFas7yPYRn2FSxmTraXlU05nQ71NwNh5Uc4uTB2MANp7Sh5+EmdN03vFN026Vw7ud/xJ2r5Q8KdgOHyTIb+oN5bt1bHpGwXf/vNj8HUrMgLTPqDioiQ1eBf7KAoiFR2zLDcwecuIa+t7TluwWGYR+m9rzA4ghBJ5iZsdwJqknTOi4mHXJ0HtARirSFPaHPBXL1KyZjxYJaSwJh5izfLind6Vpr9KPN18QcHuVG8GizwuetHvkllLGJuoi6sGeG/eObVOI3NJkAhoY154U58DxDm/F6suBsH7TdDa8wy2tA3fQ6YlC9NOXTGgF0TuGI+bD1SyTEX3M0aAXOM1NHtJU7n0ZywCkYmwWjBz30PNV21NvJzuSeO0EfLBzLSaFI8HQybXkJbo+4tZ/tLMW0krl0QcGMLniY2CkXc+kC1c9lJPUyS1OcetH6+4SiDIMPmf4dGpT+0lgaIX3TQmvUXIL7tS5MjYlzg7gjwTfSQF3xN9z0aDhTy1PUXKarOmnpnCoJzWDUmgLFgLBZGF0hcDmELWGhtiVWVYyHIcbCnNNabPDKOwolTaRtHq1FxLnabcBlpslwVCMGezrNyo69hvxMhe7NKq2yCuzowiK1zpsqmSSnl5yFGAIM7kBRVJ1H68B2DYvgp5cBwwNf58z3A5yua4hje1NQxjHTqlC3Bed2VIAx6JNYZTRNUNy1A2UYw6GIJmxFftcFSGvDF8JELCgYOq0S75NO7UvgzpwS72R8qv8/ZWop8DTbmR5fknemaluT2kvj5fRFJLLje6ss2UCcubWuqSZOMX53Uj4XDH+0nxTziHBunKMpfIOWCGTtjU0KwgfbJPYIawXWuUKzqHiBn+9NQxjAUFssWiW8m2z0WSihRldm5Q/ElaZpXEz/6FMhmihnSOm+CF/mw3DTbBjZdrj6CLXi3E5041VrkdJWbsdN3SXA6E78nQk8jJVwWuBLIXHTLNl9S9Ec04PI8pHWKvfRbYEEcvuS8CixfoyRS1PbcJa+8F+wBL2m181vTnDqPM0v3FlG1+IX+QKnipndmk/ZksMe4W/ANBlflVJJs2W7StlP4oAHehqJJ3NiUn8MSXwN4xO/eAtQGNcsGjSN/bzqTf4DMn7D4rLAvbO91851AIa6CmB9wgvHx0e30ekd9TiPUo9cwMH+3uBFFLT571cSLcAO8roTkUFVIjoWj5N7XieKjDzA4dPtYd3b+jiPZCB+xaTSDirhaBFZnWFuWhNLdP3Sb/diemM6EMb2ms3QNzgeGsc+dOUKGM1ktsSZMgjAqTjuIn5idqksZYIGnp6A8MItr205EY/N+dkKcxzX0bLo3kLK9I8hiEr5BNFrh+KEfgwopR5JhgOTPkq5+gBK/QFjy4GFftODSX9ILqqJg5X/TGjj1R8yV3cYSdoPqRDXLMCAGUNSBtJGzhgsO/Y4jyg+xbxXE4/UhoiespQF77gOa0e7eWi0s/FkrD9WNG0CW882fBvwlNxvvFfyzRgorU/HptUVBG6zdODOGk83i2jQkJ/09x4uccbM/F6NH7EINuHhNEZktuOlMlO0SkxXYfnHZpoRBlaYybU5t2wpfL9lQyThV1L6NUm34kZThkF9C91FPjq0dLTEeyeea4Zle02yhLzFiaaEfORJyjLFIrtJa9XA0Uow6UZAnjseLcPmbjwh94VHlsZGJvFhyLlaFp2fuFnzDo/N8PQNxE4Sv5tiJNcw3WJ05d/Mzi2K0n03poX0KACac1zyGqKn2QyqF6wS7MV+zr3Ffc5W5pn9sNl7vLq9ZZrziinM8xgi12CwVt16W+ucAf8z04VDZ2xY+BrLXtdGBSPi9wrCaqp7RnE87+gFdANgfrM75R4c7dvjxeDKy9T7IFTkqpPoAXYQiJZlrB3kA4/TjEKfHyvEPMjQ8/9oogUz+xaPZ4rkdhWwV3hy27QQUIXFY31wI1PasqxWgZv0xJ31xJ13xv3QajQbpCI/82OJnMLpHwJG11x3p1i4shPunlAdMbY+mDQ74SadcT/xlUw/yfthJ12wCVtxPGJgw35XmVR1CLBmupkxBU53VCE5e4Jdu6a1N/jU1l1rz5B4AuZARroHljjTAMIHFadYVUBjqegcRrgofTqgIKykRANWm7VhSMLHsnbdtYLhX+yd4fYTuTUr3ZK8TFkk6wIn7BA84rk3y4CZBY38HByV/9CefZZqa1Lfl8YJ/XyCfkewgYfsgze+EV67KWnwCyZouIcpJvqubXp6Dx4JM7UHUTRkQsZPvlpZHKKVgpsUaIrDDQU11B6PcKoPHFdt7I03bXa7mAqW41X3yDo3lSmmJL/vwBFhASlaZ0jsXfm6MfThLpmtsXarWZdaWwJP3MEp9za1p9FUGY8NLHuHwdEZkWHpAMndYxfT4lC6Wk739fkD6OMCDguCJSBoA4IClZL1lcDRBKiPmgie8rc3xdFw+kwjeHIM+OwY8Pkx4M9dwLDLEephqUG/cXOaBJxi241gdIG+4kXW43VXMcosk0FYzgZhOR+E5fMgLF8GYfnan+USwwljIWfLACtK/kQvqslwVGfDUZ0PQTVlefBuPZhz8PpuYJkMwnI2CMv5kSxwXGOqMvSUXAmcQrK3XWhuFO41mYyfKrRZTYG1ki5oNfaSB2hC6bslXXbkMUtOTIXkCwSfOD/vaNHt0ykmoqEaniUbpOlZskEanyYLB3zLcLiXhOpJgh1RuSzNZBias2Fozoeh+TwMzZdhaL52pzEGUM0iQB1kRM61k/HD1QkeK5NuTjntucUb3rj/tprpZ8605QWTue7CtACZEpkVMuFND5kWP3MmIwfedJDpkq3XNBgIMnvlDFVLdMVZ0HaSDRPKa4knt0sAoRsm4wvsLhYye9Oj0RIfhHRISpdp4+kRO8y0lcR7L3nwnGCMOLdFAsNyFfA3490RiFWHF8OdweQFbLdrOSJxvmjOlJkv6jLjZBjmZqunZ7Og8kSzaixkPM4YUa53yfEfsR6TCvKKsRd7//4P";
Sidebar.prototype.searchIndexData="7Z1rU+M40Kh/zVbN+wEq98vHkHDbJUxeHGDrfFEpjkh0cKwc2R6G/fVHchKGKMwuRo7Usr21xQyBzUaPW62+qfuP9tkf3bM/Go0ofg2I+POP5kB+t8Rr8kdztPq54Hi9PMWcs5fodCD/QCP2Ev7RPFvGq0D8Sl389QfhMfVxcINnJJiwiMaUiV8ZzVgcs9W7XxgEdCF/ELO1eDWKOXsmj3QeL8VrjbdXhixgXLzyR6NZS/8RP5EfrTEUX182H7Jb23y73Hzb726+pfO3NWw+89t/F9DZBz/qjuRPsxK4IU+xdQK7JS/3gZghcEcXy5IjuF9bX7+lTXBGwjjdAyglYR2DIgZGMaQboeIgdgNMCL2mGQhDHAQsicXhmMwCAoRF245+2LH43wTPgZCwtDV2JMDsjo4iET1DHJbkB2chEAj9zh6EjiGzYUi5nwSYQ6GwvyU6fTMU/kxW6xO6FQVUt49hXxj6VjA0yoohtSJxOIejIVUQHYMgvCXma3Q+X5A5uiJQD09T+vKWxf5SkPDEOnDwtlns49iXkKYhHJU1tfG1dmIBBMW+MJgKQbzXFEBA2FES4JRD14py8AISzgkHHJUxJhBbEtMXhh7xawVDwhAfmqAppgEcdWHHB/NiTtdwINiJX3vil2gkKIA+Sk2JxJRTqIZVx1B4Zk9XoivG6T8sjHFgn4clkdjj8bBdlnUaavDOkGt6j6YJB2pfmQpgbhnI1DdMEJ2GURCA7Mzdyg07o1sQkPJ/dknAieAZ3hk+jXx2OktoMKfhIjo94zj0l+j70xP1yT6NNaNhTPj5DxLG0fa1OY6EDSa+kWt5okHwfo3NTk8s54PVP6X/fEjqi8jx9jufyI8oXmBJHNBQ/E/DkPjx9gOqsNv1fRO2fQA7xfMh6/QnZztuWszPw3lZgLf2gLcPjQAjwC9JSDj10e7dio69v2971Zu2uDOxqnAlSy7Kgr5eU9zkQ5vPCPrx6L7oqDv7/lbv0N8yQtpb4SAQ8h2JDxxFRYe+82F2Gr1lB/qUBMRnq1UiPjq6YklU+KO0Xts/S3uWFMsheTQZVvDNwL8PqViWWOtr4Yk3m/uK5rA08ojEhYCvpYBHabnHWhiP6yXhOIhOr8/GaIxp+MTxqvA6RynJ/CDk/x/PYLjj+EejJkiKr5NfLPN/LjSkaOC1Uke70A+mtb85PogagHowU/aSrq3Yz2Q/oNU9DGiBeSY3eL1ZaaEfiOIFd+pwH8gY+4I+i5aFfyb9/WeS2X0w+Eyoz9l6ycLCH/O9/0zVgXkoxXc1uj1nbK7JEA3m4igRjuAQ83nRn0xH8QFBbxN0x+SP/BI8F5d2DKfblRX6ifT382xNwKe852OxksI/EeWIz575NPhE1gQ/F/+JtPdd+D7kPZKE6JHx5yjGGyLFfjK99r6PAtiR9xLx3e7HhX8uyo45vPUH5rlM8SwgcdEfiHLMtwEbXlPCVzRUy2KL90g6yiMBfKrcF9+XVzYIZI/xgc4JE278Snxb9MfS2S/R+aAsG8xjeSQzdCaLPIt/vCsFwZBDw2UyhuFlGkNBJAh2z2XF5klAotN67fIcXQzZedGfiBqG/IL2eiP49kzGG4o5Po9mvdtC30YkehaL/R80DJIoDRS//XrRn1N3/5RpfmHnGHlOf8vndBEwxqun9FZTCu0pyf+LLKP2XmjsL9Hmf1D0Z9PraFsEJp7NBeXkRdYAe4T/oD7ZPh2xqV688f8U/SEpcczeFyLLJh7S/rMp/EOpO6HVvFdx2qxKdNqo4RmgttsD5XGCg91p8+t/ir49eEN5mbHwaq2ldFbLXH6c75OaizPGjxn/ZQmchwuxCPRtiP0lQaPtzwv/XNSivsw2wY6U3lPYvcvJMMBRhC7ojBM0XMpccvD2MIr+LNRTJnNCJq9nITjQWRKTeWnQK5FlW9vghon1zEvCXKkzameuJ86HuQw+LjhL1qURdjUGmTkhrwN+mcw2xtECx8LNe5WRxtoZjsgUXSWzoqNXjttWZu9OMPpl/1xuEebyGIby9TI8A+Wec3an4XjPYNdYYfumJXsS3cyn7vGeRLUPbNIfD7yy7IG2YgVlNvqP9xQ2nRhKsBMAn8rbG+o4KM1+0G1xdLxn8TC5LctTUPzhlrWzYSW+ntbbjeLfQe/rHsdj8eWrhDvdWk3m2ygpfMcdpd4je6hHh3O3XathHqFv3Xa9WfjgsnqTzKhID3yfRBGaSKqFB71/xSL7BTEt0MPC14hpZ0n0+HpF56vIb/bmRFp8R+PC89UNtWvx9Qao3S6+AddWenFkDqtrQY6ojyacyTOv+BkMJWjywZzXo8rzHarXSmMv9xTWmR1yLdbTQdH51mu61/70AI9Rs1d85azcUcp+YV8L8kPhLTi7FvLfk6LzVV1po3zPzrzCm8iqGt61HzREmBP8LIeFn7GfRSetNNs0q4rPOJ0vCl+v3tVNomghnnrCPi5BxF5t52tUkIcyNzvGIV6Ursy/aTSOPMTF57sfuWgajVwIvsKN5mmDPRou0OYSS9GRW02NDEeja3QhvhSdsl3felj8wHJ/35bLXr2kxVf+NQ3FFR2zcim0ZdSe22AeFj4Qp10Wrw/5PqTxKzr/ueYlGH2ktgqwwDttPFN0ztr9F7U4y1nSfowG/v9LKC++q6IOrTYap9vBHu4+cqFRd3Qv5euilteGpxyH0RPjq7R71a9bxNPzwld3KaPrDIu6dzIe3BU+raIWxpj1X7zxSeEJq+2/zAbxvHs08go/WbRe2+9FmP2ChRbk+7PCFyiqAxXNVtCNSFyKi9OKx5K9G7AWZBafzFnhS5mb+4yNxkVHk2nR8SpGW/aLPVp8vZtB4UOiSqcjs7W2I9lmaszmxc9wt22q4sfRGF3QoAROttKTKPswKB3OMkWF7mi4KDrlerNjUS1fcJY2QJuXp4BcGS5rVkmnXT6Enh6s1wHFoV94Za342Gavtu56qpRGtq1ejrjC4XxJgsIPSVTqyc2WzFxN0tnsRWes1NeZtfGuULPRLDzhusVj8HpYeF9QCWZkn2Gvx7fwwftuzSZf+UlDEiMv5kQOeio67Xptv07U7CWU6+8e8m7Oig5Z7bxjNFVyXfh7VIor0jV6y+d6Mi38jL6DklujZRmC8APa1WaU5HaE1eYO1xOBe7VKQrGaEmQA1UCd4SNwgkbeTdEZd21eJb6eFv4IVPWF0fjQn2ffR0UH3FAawRi1Mf4ihW9O2doX4LrRSyeCb+ErxpXrw9knw+sAvhncopgh8UfRMasFzEYNtxu6WMYvRH5Fg8KfeXa9khsWLjjBcvTXpPCliOpMNqPKYzwofDFtbz913TAqyeNh4fm2bd7gGZ/X68W/zqrdXVwLMZnTMoQqFCOuZ9QLGRMimzmsA1z86paWzXjFmETLyn47OmSxelQvQQ9b7ZlAWphpSNHD4O+iQ27rjpvRgsxmNCAlylkrCT+jBcxjr/DunnKhxGyR1vi+8MpCyYaYjdaP/y68/Kpd240G4W4Hw/JUgfcUx9qoCXdbDSk5Ll9hIuOwDNUWysUzs/qCxBELS9CQUrkOZdRCFpBfGH/elg+tSPHHRylnoFkb7pb8TKJSdPGzrKAl5oacW3KBZ/JC1PnPmITz4mtsu01AN9zbJRBvCJy7JeCsXNrpGE2wfvdjEhSdsJI6MesTfr/16mUYl6Z2wDaan/q+TteBBivhfD/R4h+Cyn1Vs27LjnbaLHHNeOENaqVRlNl7aZPBCNWLTliZSmc2rC8JNwpPeD/QYbZIYyI8b3Tty9UVm7JSy2zWmJucFT59ojTDMJvQngyRx57iF8wLH9xXSrrMTgkVnB/onLCiQ1ZLa43mAiejwk+A2Pkgu4slNaNW8mRc/MvBjX3Chg1jzmLms60fEpShCFQxL8yOqJv8fVF0vmr3cKNBjDsck1VS+HmhVodZ3pE1wSXo86kIstnpt3L0H0HeC439ZXn69Km6w6xcTzzxb9ERW22N4RH+gwpRLjpk5cKU2eqBLeS05wtnZctMmQ3KeSRGU7Yuw4zyet3meeh5hfcElXiR2aF0nneDpoSvaFgGH1Dtvmw0xOxNC9+xT6lrNtsK2Ct+vyI1hG9WfktyT0oZ5Gy2NtF7KH4eymYQY0oC4ssufeIDlyKrumu5ZSVRImnLAc6kBHd66k1FORutw5iKpRdelq1eUJtOUAlavih5P7ORuE1RHJYrLzblTt+iiTHlif9cdMIH2tjsuZdwTgpf2lnv7NfFmb3GOn0oOt9206II35/d9euFr7y3e1HnfnyJPMJp8RMjljlX6b2j8n3ASVD4085qWOihdONIzHoeD5NbmTeVn5hXiZBjw/YKr46tCvPjoGrwclS+117hx/X19gH3jQkwm5NVhHA4R+slC0l0OsSzgKSD3FdFh66UtDSzlyin9P5o1AQ/8XWSEsznKZAgQOn7Ff0hNLUnNB/tIVzg4lcbNTq6lsnR8F8xFq/LsAXUCujsyv9oz+B6Ug4tpBg4X4iXHO0RbNvmDnxZm45K+kB6oB5IGWyj/T4SjeylZUfjn77VyVMJDudaB+zBUAolBPhgvrsoh4+mzBz6QjX80R6BbLBQDvtUewJGTs9gTdg6IKeDcM7ZgoQsidCE8KgEVYX7BSzZL/tOUnJfRz7GPnpkK1x80vt2T72W2fDRRx2WA7Vq3tTbmQNwuqwnQ9lrufig9+2YeitzlEcX9F0ShjRclIF2bz9x3c9cRqTL2qOxnIBWDiWiXAHuZ44TaNOOhVFTEtFu7Bvj2ceL5wa7FLJtDzeXbTF4dCrMn9K1A85e93m3oaXBeTAdo827VLCNwJ7ixa7rSzm4a7eL0ud+xhme+ziKS4JcbTOeObOtj1z2JhGfGe16lZQSvA0dc0kXeEbjnY7ZqZxS8rch+NeDUTlh2xD26wlKbx4vWfhaTurZm2fnQN0bXpeEtnqdJXszUX3c+2UY5eDeV6azWVDkt8PzksAGoMhvSfwUsJeyAFcG02QOHeoD342n2TVsLAt5ZcpV5usE+uRLAtq+Ttm8A7oO0VlCAxm8LTp0pcHgW2sEC9QfabxEHg2oz8KtL1p0+kpHlex9SvXhV9EW08DXuDS468qFmezzx3LgHTMux2SVg7hSfJX9rr8+8Omoyg8Zg/3AKuVtEPcj/kECEi7isqTiAPidj5QL5qWJY6kJicw1nV8nHhE/4TR+PR3KXhcUXQjyLzgo/LiAltK+JXO+2duC02Iuv0Vv71Rw5KqUZ9YreSAvi3w3lJaSmVVKHrAvcUyeCVkXX4MrI4GzX1PPBXeC+bzwpBWLMHNsNg/S19+98pyUSm+dzLer8gB+w4rfo1bp75m9nXUeoG9J/ML4c2mMkpaiuDOHY/OAPrn+uzTqRPUurUj5Nv1QGuZKNZBZZ4f/SEs9U1/nPqRPlMzRZDsFIs0sF988VGacfMUaTynq8JdTTkKxILnOqJzcs98M1+c+EjrGjxl/LQlyJb/5FU9IF/kFDUhUCtg5RLHygF0S0VZof8VW1KV9xaLCd9ZWr4N/xUTU5Xw9mT6URKpzMMh1aY+pz9kLmZVDaUMA/v2qJNIN4ITcvMOm1q0c+Uxl2FL2+tkcoMtGlJz9LIvZrcSxvpJc00bOnuIXzAk6w5Fw8cvBXenHlD11nwN32XQC8zkqg3EIQZ9vqwvLIeBKCKWXuQJLH/h9SOOy6PG2km2zED7Z1BfKeGE57HEAQcLHx8eSyHdnvx+W0Uj4Rm9vMxFp3Oo8XNDi90fVno6zPfF0mAcsKXxpSr2nNIysZVcl2qRHNHomcVx4oW7rTpDUR30xRLs3KThsJWTVym4E6sOmM+FaDpdYfM4ASSlHXjKLXqO4+E3G9Z2eHPCL43KIZ+KzFt7HVFSLDdx3JEgT9ViIOo7xDEeF1zGKZZj9qo8+9an4IRpwjotf9mZfozySGRoGSVSCeLhdwzC9Vk82fSUvZHvDXfO383gpPKlS3Lrv6Hb08LYUdR9AOZoc6IdUcsA9DHAUoRZqlwS6cg88e6vxXKArHT23DSbr9eL3ae5D0DFv/Msh8rpztfNAvu+ZXuAZp35J+B80PrQi85ckJClz9hSXw5xRskTZ+03mgf1afOIgoJvvkRfj4l/RUrMX2bNzeXD3Rrcl0S9t5bKnFd43+JVw1EB3ZMViUhLyqmb/Qnw9N/TNkjAH4aSOL/9GvVqthsZJENNoz4wv+gPQbgyfywOQ3E92ZuSmdrQc+JVZWXasmhR/kOqdUil81ZWyJ/tbg3JEpOYpOnb1nLWj9Cdnf5dEzFWLMnuWKQ/cnInXVys8C8qiXkBEhMt8mloiTle/ztOScFc0jJWD9FcoDE0uH9H4clh47B0A5+gD5XGCA3RTInkHEYPf1KxXCVYL0MsBHEY87JHx5wVnybqifnzqL9smxKcDmVINcdFhK50V39owfB72rm2zDuxLId7hHE0JX9EQF741lzLCrL77sVnod3hOGZqyl+LX4jW7ipRnbr+QB3APp7nT4l/TUMeBtDIHdXPFLS8OFP7UVHRK9qKMPJA/0pMLKocKF5229rC4fGhv36PgsBXtnf36aJ6w0Rmn8xJc/tpvLZK9L3GuzG/YpoUlGqzXAcVh8VNEfd2O57nyn3IcRmvGC38LTG3TZQf7zeAWyZpezoKg+Mb5gb+fOa71Jegc+8+neO2fDiZD5K0wj9H9xEP1Wq120pS1MA8D1Ljfhx8oPDhdLON3Cw/Ik/w2WmOfhoub9LtRva0+IvFR5uzl4+f19lQOMHX2MTUPwyJySR9Skj8Qy8yDT3uLpg0YzQfGrwk03XZKpg6YTP3QE8ufzEadDeVXVO/X2rKgieIAydph8Wvxtk/Yb2dLuwxsuNNUOsgadSdZZdVIubBq1VPxEngqZJ9C1ujX3BQvC1ux0a+7yeqDiNvxWTmqtqywalesPsmq2W+0K1afZdWqWH2SVbdTa4Ln0jFvHwguLfBcPrgmYIBLBzyXj/L3BsD0wYNp1g8j2McHU4evYRofpFOODabXbNU2ofxNWP/ku3DgQnlgbScRilX/LtQPiZ2FU2vgDVC73Wuf/I0Gc7yO6Q/yNrbRBWQWHN6BdyejunXwW9GCg7tl0wDPxp7cNMRWq+j8jg58U9GCCb1lA99c7B32VjDDxgHDqN4/vCZoAk5fHFVwqVjSNAJKBy6UesvOPurX6jW4VBotS7LSl78OlUqnfVjsfWwqAsD8rStfs9aEJDRK2ap5OEPMhffJ0UT8gMS/Sp1QQ+1eCEmMLOjh34JqA+Zkwaf6LacOZIGyYAoOcYyD1yhGLXG8f3yJExIhK1vujVCjJ8zm/S7OIfm45SckaFb23xu0VgXtS9AqQL8H1GnXmifn8BC1lPmrFrWVQNRyAJGFJOJ7RB0HENU/aIdnklEfPKFGw3yY6B2hutBFgOH0zScX3+AoXm+jhp4YR1cTQLjUe+Dmc9S/o9VspLRGJAjg8vpgJJktXq0afF5Wgisf4qrXHMAFSLzqlfLKQqtZSdeHvK7nJIx3Y7XTutCPZuGW3NG7nnio1RYKyiNhJD8wVDYW4lHb8iw08H15LXh7RxUuIgvic0t+JpHMcNfQrjHg225zoD7LGrGG8B2mu0E65z9jEs5BVwdY49RotKYTdHlesfoEq2ZjMhGbsaL1SVrTcUXrs7Ravcn/VrQ+T6vSWp9j1azVO/DCnnDoVPmpf6PTaVV0fkunXcnO7+m0BZ1Jhef3ePqdKVwuVqIBOy738OXGGp+OvHoEnY61XdWRV0ig07FQS7Gh05XNtuq1Ey9gu6olOXM4imgEl5aNq7bvcfUcw9W1iqvlFi0bF9zf0eq7RatRM1++8/3WQ/V2s9beHyY6TKKYrQjf5Q4mAY6fGF/BhWfhTNyyExp/eIO877fn032IFbR/hTYeIG90BR1Zb39olYXC+w2xVru1kbGTQ2ic/aCRQCMbMcAjeCh05svMNgw7H89MhomtoTTabdTNFwRNlq+RbBz8q2lF6x55MeNY7akOScAsOACHoD5Ua4XqNmsQW5E6OxvE1gKMzcImvR96qC2LGcF7AhasDAmn02j17ie7pJ/sTMj9XTN4qKgsaK0NqjSO6hQqC5pKoho2GmjcRJvJznDpWBIkQadW4fkXPC0X6FjbWi0nhMcank6F51/wtNxQPdbwSOlpgMdjwZJ+HJyftOsNuEwsnFaSSadicsik24LLxIJqkUy6zVbVNe4QSreCsg/l4Rw1+oC3jxWVIqC0KyiHUDoVlEMo3XalaT+iUqnaQyq9SlYUKmT2Qbt65NW7NbicbGia33BqQuYESJ46FafT5fr0aoKEA9m+/NX67n2nBECENHtJXE2+iifl4b1GMVkhPx37ex76AYsSDrgcIWsyLyc8XUfw1FtWxCfqtN3gkzW893U81+ETDekZDufoYnQHXe00zMnNhLMbcVQJfXzTadT8bUR4I05g+RhUy+/5dCo+/8qn14bKp9m1zmd0U+/U0GUPDhRd7yIXKM1GjVRUDqh0KiofUllXVA6o9IDLSlYvMy8qsGXFEpV2ReWAShv4wWwBinfTaNYiUFR61nWtgNKGDcWcpOxaCg43lcHoIiA/T+o18e8IDh0bbhGdrU6vz8aoXq/Vag8DdD/xAAHRnF4uFqZBpF2rnTQa8Klk3UV6VLrtFrph/mYvRSwgaIxDvIBclpdV9+oBuhfKBcdogkPyi9FfNK74pHyaDuiZrPPJtYB0HACSNfKtBWT+U3jOcFkYVbdCKuTBDBhH1pyaLo62TKZdPcAFYlR5CCDddiUeWxo/m8LjQeMCFd9p4mg3KxzvcVTS8R5HR0pHEy4OoyftFgdg6TCNA/hmMY2jD/iUNcyiC3lytXEW7UqJ/sLRE1rj7zZcHEY92Z/NfoXj+ZSJrwE5vSUxx9tC2r+bJ40zePd5NQPw39OFagIaTprysvxgOhzsqo6hYVKs1nrG1qK5YepWmP4T07Rfg01J9YGyTk7OD1OtgvMhnG2RpNTZcNFktXPyIbPG3EfT1kkdvOhY5rM77NGYzZMAUK0tiDP/jVPxepzkwufvljzroaOxssX+7vxCU22ufUKbbXUuWwKuOY0IGrdcOOWz5kxyp9R2gVK9ZQNTddb/G5nqlP8PQvDP96zp67zItMCTyVp9qEsmCbcue8eZ+8OGNbJCaHdXfzdt/fznmsuRKRtlhBqtNarX0OXsHBBCy3ppn+C2Spr+Q+aolZL6DcsK4AHAKqL973hSN+Wth2clR4egRjjGQyLN8O39/5m8/78dmdXsAGKlWbaSA6udWqrXpJLaMuo21hWkDyD97+jufUeJSxyTF/wKr6uEfWK7SHfjBHDhi2kLfY8LoMtkAOxzJzIjFveR4HIDF4zpMIkEs5nYhRrycpmwhgac49eK0DtC/+fCe6PUrTcKVGiWN5wmZDiG00QCzgXlBE3roC/LmFfFKZW/G3VYVBogqLSAUYEhKy3Q94ks6ZW/W52SU1nT+Sle0BiL4yc6HWz/Jv5jcSBRztWg15pRGck4/0HCONq+tiPjp0EO8YKwEWM5PfFGQTljccxW735hsP0vY7ZW+aloejUlkHOIZr35+wEZ8fpuXVEObNC3QegvGf+fiswBmSFnUXRyRvCqonNIZ0QjHyqX5uGxZIyLbKxATjYB5QmezwMClVLLovRcpt0nINOxubeuSCA/PVQ0HziVxtBcr9YkCAjYA8smmwlnsOD0FR+q2bAHZ5rwGQ3BqhtjR9Z6jTmOkwiRgKzkqk/HOFwyNc9pDYz0d/fI1LLtqN36/mjUzrcrzAOSx/xnEktXYtueTawU3bJ//gEDrrnPLePpfixsyXrNeIzOpEdHYiCo6qqIQUJ1QxZAMDXaIHfiltMdDaGAUnVWI5syPzIo75lyODvPvnaXC+T0KVmQ6HT49nep2kfEx2ltyzfP5+QlDRyxgM6RtxR2FRTToX6gvjIx/LXkvNAJh4UulshbEzIHA0kVtGxK/hiQJoQ/MSG9BJo8AUSViM8Lxo0BuOHe9BNYoQLIjKSHh3AGIcUuAe4+YTCsVtX2+zdCAK0Ci3LEVmnhPeMROkE0YqdnAXshaeLtAodQAWUUo1+LFMbntfc9B0y/3lOiesB+kqzQJFmtK2T/jQx9e5NZOKFy4MRGVPwexwswGU3gvM7/L/FjONlx4LQmNIpZWMH6FCwZvqpQfQ4Vk0ktcT7CSd+AJxZj/lrB+hSs1JeuWH2KlcyisorVjhVP41QRWnAazoVCPx1uXgEK6IMSzH/js12dgHO5XV9+hIT1zuCqc1CgrjCoaAxkVNerNfbjCtUnUP2JwZ55oDhtjM8K1X+gSt9qiHZvi8bYF69BqY2BiG1MgyDN4CSBWBH9p7IaMsGqzsWvUauOyM9Qq/T+Zzk90BnHcoUVqh2qOafiHU5H8g+gUDJe/kiXkj0x+B6EvBmT0Hnat+sMcJ2QBTDb+KZwiH+QV8YFngCsgjbM51Xakt/FquUxtv12uMSr2Sa7LDPwT/L1aqNJXlcEx+k432QFF0i2IJ0ekE0cXAhIskIbdSyEZpqsZoEUpEpBbzF5a45fKxw7HGmQ+5e8yGqxX9+N2Q8pOzvNU3ZkT4TMJbOL9M9d5glN8QzO1c56raWjgjZL+zoaeS2PcbkOHKDNm4EBo6WbjwAGfRsTsV5AufGmwqhtH9F2jz1g4dVDwWRZlDYnGKj7eCoRQ4JD41jsnuj0TJg48/TsAsKjpXU8XWzXpQGEE/wcLzlLFksgSJo9rT2jjWQY4NVa+OMXAQ4XRHgOyTqAc6uuradR9OkwASeM0hZCMIgoW6hnHEglH+9wiF2zIrI7JongiAgsKOjbiMTCdpELOxG2DHsqir2SO6jzn+tALK3i9B+cZKu7kzsS0SjGIdwwKSxMaRij2om/RSesn/m7xh5AyDS0HIjcuIyS1epV0PkBJm7Ra9sFkwhBCaCwsOxWXbEIjMetsMjWi0sfxXW4uS4EBIdCw7RgXMul+UupQ2QweBNG//YrLAHl/LEdl/iY03fhem7+eh0ioXB8SCUWtpG9wal4bHhw+kR9giay92jFJGVyR+aJD8Zi6do15e6SdZxwAmnP2A5UeCR4OhGKRBavhQt0RwKCI7JJqgBBdJi3bBlmRAMSwtlEdVWnGJcZ8VWc0BvHCAgUu66QF3NMQzASYjlAvqMB63KbZSgPYm1ASNj2lR8oeZGHzWWAowgIE800db5M0LcbOaEEUPmHrejkUpZykp8bv5DL3Fs4J2EERtP2dJSKrFOVHTzflqeNZ8QS6TtP6JqgtAr27b2B8Orr7LL8eZ0HxI859VNYYCBpGnj5Y7qgP2VjRXmsC7WEpsmMRDDlS9VT2Y62/MldYcrXNATHqf+f8xHNYoK0/YDp9P19Jm1qGmy2IFTjAII0vSd2QcNQ6K+K2ReZ/bFpYAkVnfXj8YBdwDbRNPEDsDf8oAlcGrSvYH0OlremvDDdPg3g2rNcoWKzLWTpDkQ4nKMLLquonDDwMw6oy5/aHZkJgwwMH9Wwb9qlk/YGT2VKbj1FpFAdCLTOvkxla5VgGlqjgpYdWrOC9iG0TSZvImPOINV9H9YRubG7YKJST8Z+pulb+bOaLml4ckGDFTr/gdeMA7pApDfkNn9U9ycf6CwgrIBFCu+RJ39r7lIQ2jSzFf0pUV2HJzc0JGh7T3osX4VCqK/lMaZL0ebixVh8blhc9DxpPS5/hQQDasrQtYhC/NcyfjfBMZQ70o2ODRzrZLWOTof4B41fQU3kaTT3NWwmW0cu5MssyNuwnRQIGB9W2S6drjUiYBzUxh6Rrj0iULxPazIi23iA0h9aZQI6JC5xhLZj4WCg6DYsyYQk8W7yGwwaB2WAxg6WS4I5pC3S7u5HE+qmQFwxTv9hYbxVnkBw1NvKFPi6MSBFuk+pw2FCuLzGH4gPDASFGs3tm0KRzmqCtD1Uy6JjngQYu1N1TsztEC+ZrYSbR9MaYDjCUa/tA+lmur+lB0TIBWAS9Z6xjSK7ucKZRNLfb/mWLQ+mgwHedOF+f19bGDtEHrafFRKMutLspd4ytUHQCZrT8L3vDgWJXkx4i6Q2ur7VAvM2M7nC8h7Lue+nEuOjR8YrNvts0ts1bIUXIYFjtAOBI/39ish7Ilevc46ToBKUfSw39P8ldI7+JFCuDwPhckd8uubMT0vtKzR7aDYZ/80g+grNezRpvKBCskMiB1sLzbIJoHzbqBqo9fFfxPOVidbv8WzQvPMLKj4f8HlzDyo6H9CRxl4F5gMwlcb5LZrNmn6k3crWAfbJihSm0XPOpDhbyCyyhLWpVaowfYBpz2DeGocVqA9ApTZiReY0Imuclu1Hp5d8UwPo7V76Q46dJHEcvB9FCYOYXnX/2wqzx5Hf8dqMl36Hq0KzQ7MvQvQJbOMPu3SEy/HqB4D65wGjowSXK0r/RinaXHWYcGkC0Fj+rAKWEZhUV48EjAUOjNuE8BUOxYLRON2RFaYPMckuoAmnSJiYyUyYTBWmDzGJfVYh+ggRC+icPtG0D1jAIgImdAKNjpyNULF5xyadDLvbU6UHI16TjusK+0sakuj0/GfMk3SqMLC4SF2nYYS3WaZw/8fbheZJClaYBByoCQkC4Zn8I18ENHBCjScBACVjt+A2HlRMd0yIFRijCB6m7Xui7Tuib7/uE1XQPg1tVxtcIdsi+yE2Hwmi0zMMpdZImRyUrd3Pw2Y5OhjQt2vvOxT5sAyDcxLI+NCIJ1BqgJXb7xnTRvkiASUqeo00tMEk4fN2Mk569+IsXQkUNprJRl04AorwKWKCpjh8hoJEkZeuUdUylIZLOllKbKWUivhzKCxlwqEWdnZNi8xvAaFvZ4yBiUSrnLLNFTg2p0oLfRLVDVmA7SBdr9lRTuhbGnpNBwVsKvrSv17iCFC3bcVEzDZ6SBfVdjBTdcAdgJHmIeMI2mAvrbaXulAuGPfJ/GTE8VMsyLC0yGoKqGmQcme5n+nOsjadhIfYh3KTXclhWEHRgMnC8LmdttYSnz6AIhrN/ZZBZoMSksYVC+A09OzaDNFc4eBpMxZx29pz84ZA0BzYcd1MYxt04VyHckY86PNmv12IWRfzT+w/C5tt7ojoZGquo8vmr5D5zycsiSGFPtt1i5oGUjtppZlKr2cYhNwtdwQDal6n5gkydZfRJSJrktBZEjwjTxDBCyh2it7sa10qaV474fQfoWFBq9aGWXN2wtkaDRbb4mMYSKwqFFiapGXTnH27eQUpjmQ1vr2pbxxxCubwtcxjc8Igb70kHMpBYzc+sAvlgz5kzLo2gNSHVX0qOcDOFmbrv50Pj7dsxRmOwFxDVDtEWgJTFW/8O5o7xp6ggulb5pJOqYQmO/sxk7pZH3DHSHxyOFeaDo5mC0fSFok0WyCfTj0LaEZUfkDYisYuFik1jhxVDQukLnAQEWBgFCu4Xm9Y4BKwTYsgyFvLvJ+kgAGvks0CApQsrLf2lXCmiVa5gECPNF6iCfafAbWmtUplM3wCWji72dlnYjTrLltBoG9nBFJTPyXfYR5Hau9WPFIe8k9pzz09CRdAwBlRvCJitWBKatVkqlGV8otPau9uzDh5KHsJf8I+QdfhnMpeh3DuFCvGXc8mr/NwU6N9xtPqFjAy1bHpQf2G0aYnVOpGyeHs4kyHQsvqtcff0NoiOtnVkW3Kp8AQa8AjBulKieqANow6oL8BdAdpywEUIO+ZcjgqHKQITZeyQV0grIIoCUBZBTAEiq3AZPj6+2Xz2UYw5wXkIgmCk2kyIwfn2ZBROG0xGjajYjtWEwrmeAchOx5ZUQdkp25adiLx2aJTHFKhiKPTMznwvP7fMJ5oEAxZIING4n/UrKX/iNejmLNnsvtJyNLZpl8EdQD8QK6UeaWHR1q6uA9ppT8ZbFaty6vhCC81n/zBQOijAxsR4o6A9RQr4LCy1gwvVwRsF2z6fezp+LzYAn0PhfcmtKyj1A5rp45PLfE/UXIIgtZbO4XdCXmYHzg6rgvhxqArHPvCf3l1hJsiZR8Uhxwd218kDD9T4wuRV//wBt/ReY0Ziz5RJQ4Dl2KLWRCvW4aE9o/cBGbDtvDIZ+apg6B1UMRlwdb3AhY7Y1Ps9wLpWbApvBA/O6q9rGzGGM8+0ySj4rXhNSXz+Ss6+9TAdhDMOv/ZnudozJ4Ym8vun46Q0pauC7Her2Ia4jB6uwsQEFfMiW7LJjP29EQc1V2dzEejDqkRp6GsP0SPOHYpEGZTuhRmDUeYdTsWmV3gKEbpG7gBS9mUH1RhHROW+IKm3J0YmELrg2thR6T1V0ifnNH1+0GculFdf0eiGCcch7Ezel5tjmdUZ73j5YqOV8pE6rXMUcIvAlsSHMRLH3NyOgjEZwtxOpV+TObUp6Ez21NxiTIHDa/eMGgyDIXsLUlEsSvklPPSHrkoolEqezeyGXco7TTvVfztE33nQJDs6ZppeZE845iGjkADI35DzOdUrHnhTBpOiW1kNnRzJEeQF+OnJzTgxBm91wWyW4c4XiKxOle47YvdR11ITIGTv+BK2qmrWwCUF7URwU+uMOuDYcZXOHbqcFDQZa7Pyw0dFSuLnQl+q/EQa+bI+aujrpdVZOjRoWK9pmYWLy9uF3hFg1c04dgX63BG7HRTe7nhozyK0YA6GiC3B+6ShEQswNGjwd5+3bwPOp8nm/vvjvKzJnfifbg7gfR6TTknMgeG8+XWcISbKm6Zi7tzw8aiNY1x4IzEwdmoO3KuyFxPN+mVF7nr1SoJ6T/p8eDM+QrF278On4iwhFkSoRGNCHa1ct4mwbUQPfExXQEHJXNzLT5gGMkcmAyqu0IPjtil+evAteR1tw4E4F90HhJXQpxgqN0koTt3hRRo1pzYMV6tmPiZK8l9MEou1W1ppxvxQddyfgN3BaFyk8haoHiH8IbOOHbn2i00CbwjPuNzZzQfHHxhvGk1GDhzCVC7aj83eHfXjiADE3+6JQl3KXUNRtZuk5hTlwLsutcC8wL3PfRdEjgwJ8P3JEYTpwIn7Q4QkZssMV9h3xWRazeBiNxk+RqlxpxsoInXrvBTXQlrcndHFlSs3Kk8LJRgpydeQDc4XCSfmpUNAp7a+K5nLRvrMZ+KfesR/oP67tTXQUnyeAlfuNNy66BpjTVu09HIEWZg/Igpc6fbz8EI58z3XPOidh+IYzViSehMXZ2yRa3ZJI9LQgJ/iSlHA18cDRGdBcSZ6pPdhX2gGBuOYrSm/T7G2HQEo9p6w6w0hjhOZGE75s4cINrBlNt0zV+H9Weypu7kxHq6lwB0cY3xWmzHG3cuhfVsC9gYc2e8LeusCPcTZ7ysXdt/e5uRORNF0j4YdVndknWcOFPipW2O6eKaBEnMHIHV0Y2O68Ly5B+u7ER1pKLxneiF7OUpcKdFr/W96CWhM+64dlI5D1iuON0gYLniWls3TiWsVgXrc7CmURLiFXUFl5IfNo7rnuMwccVN7LQsq60H4hAs3Tt+X4a1JmwdkNMzPHt1xnxQ3MR6rZEV1yRdtSYuVwyIrm7yQ5fWcInDRdp5MXaqpkU316vNjYViwYnvEDM1kGpc1i7ICjszp0S7B7surbE7rNSWFW/fm6Tljovd1I1H5AHLlROyqRt31oaVrFauJDTUJuzGYU3InIgVU+zMoagbTNUl5i3Zi0PjXNR6WPPKawvMFf2lBnKM+0OeWG0QOFMgoVa+Zr81rAvsPqQR+ekILjUCbdzwesRiKcJ/vGNs5YwWU9zuL/S0zhWbK7qsp1vMr08tkOO8HMHVtm2NPbKVQ25RS7vRfD68XNmNLWviFeEnEr+enlG2xP9g7krBfr2m+JKZJ2h46cK/TmyIE4cChtrZbW1cS7JKL6s+Erx2FlvmU1IX2wUOgo1t4T+7kmXTbracBzSWxMhbksCdcnLrW/SC4wV1JlDd1a2+18V1hcN5QNAjjZdOdXzU7SKnzY0uluiBBTFeuHOzrWX7INij5oxZqxuRzZWaM8V1ugVQutT+ImSNRs5c/dC+h6XL69aV4nzrJsYtC0+uWUj/SW1aPKdOFaoo4y4zx2f16aHzMHZmXwKQNuStmENRRuvu5q+cLxpyFkUOodMtstZF55o2eyvn/PJsGl1iXkDX6MqlqGNXO6ytzSxmnKA7YdbG6H7tjPvUte0IKNxccaAsajWfktAnp2JFjGNBzxmrQxvZZuUazMZ4ERJX2oB2dS+Q5MCL+sLY8NnalRia9qUbfWa3iR8Q7E6xmX5QIzdkrip/C1L2SMP5SrBwhJg6qN0ksTXjcXQ6WK2XNCbYobSTbumBl65cAxn3l+5081RFLLse08R1hiMyw85syba2EtPlRUPmJ0GJGj9pE2PCI3/BwbMrwHSvd+UALEY3OAl9Rzv9tTNXsusiG+LV2qGrEor12jWuxba8HDVd21Z4PVF3ijJsWxWS14K71LFZ8SezR6+1iYXMnfoVNXeZvVw2F1yu6C/1FnTLvAJLuy7f0CdX4ojaLfu1iQV0NXMoYamdHdflJRO8aCh0fsxfkfdMZU2Go/rsC8nLY9BzRb2psmfe/H/1A4e2qnJ4Ghe2EeUxOqPOdOlU5csCsB8OiZd2NkmXFnsJl4KEc4eAImbGjVoVnKP637xCO/9JuE+jSp99ktcF5eSFMVec84POItnrpLSBRUuXVNnBkLjsxcU5EXNGhym1eHXj2n9HbELdSfbadtIlMzQMCA4dss/2Ja1jfGtessCVCT/q+Afjtqxk5Y5oabcV0ccVzlmAHcGlPTpaF9cVFvr+MqBzd0RMYdbpGGdGn505H7Wn1+QAyyHRUoKwxg/GK8ZlMZT/jKYcU1dKoqxH/q99grbGa4Xs88i8Zxw7hGzftPjKXSVdZsK0YBx5L3S1coibbRvjTxLLeKKjuIybF3/hV+xMpaJtNXZDnwj6UxyYzlxPOgiMGWc2ZjHjM1ni6UowUREz88Urv5A13ETWNK7GJtQPqe9ayzLbVRhbalMs59I7uj07xp3MPWqO7lDzFYx3OFwQvhuu5I602S4tVrg5I2+6s+K0uTH/GTlW1Kg9aSkfaHJIgkvjvOzv0XSsxCzALgW2bZdN3bEXaeO6gks5P+vGcSWhQ0lftWON+S354Agp1Zw1XkzsYRqgM4d2onaXAm1gIY0xf0UjKl6JcODaxFDbroAnPppwoB4oeUkhOcJNe0CaPrdkhpFbxdmKrBnPcXqERPjFTVpt4wEhjwRP6DJJCzSqpHAmck5HHo0nN2UymMxkpwx3dFnHtnfuPVP0Z7JaO8JrV9Bij1dA5g7Jl3pPzngSRfAia6n5HVNmfdvKbIWDjQvlVhsb+7cmvDANAvG5s8Jm3tAQyFZs5s6kIdUFML89BTGh0hhx5yhQu0GYl7KEO3QPQG1hZh7XtkjPnbTmvq2xa8togVjDFWJKVVDmYdw5EHNnQ+p3+tekNSVhSJ3pWWnbqKhCPRlgybi1I6x2sX1rLvijUylx7flB2rTEB4vSZhgVsk8iW+KApKkkh6DZbuos+9JHbln41uWMsTm6xPGScIeoWSuMiom/PB04VPOvuyWnYsEanBz1gvqZvSAdTkO8Ihy7KlPZ20TlwMpRucoej9BiRYIATZabFbpAq6Vr1mvRYqsVdrXRtVnFLlCtE4cSabqjM7RYceZMYtumTJ3/X+K7UjGnRpkzVxpqgZK2ujuDBNX4stHNlzZIdGjeg26bLB1WY2dDpV2j1vqEvbhz8tUtnnxy9DVzBZRSoZq5RkkLlOe5gslmOGFKArKW3owznnJrP071hXRhPrxc8ZabupWo+eBqOoJLmdH81l7ZNK+WK7zqILRX2xFcVnfjvXfmCKaWbjm4DqYHOicMbYKijvBSbIiW0TPxEW+ac4+xL/50xS/s6jad+CoyjsM0T5heAz1tocclEWrMGe9HCdNkPx731q8PcED5DLuSZFWH3fWz+0T541sH2CH7X20flj1OcSyCrngE9dq+C9XOHmo9FkJXvIS+dlLtWARd8Rv0o2jHIuiKK6HdNetoBDuuENzfxV/x9Y+FsOsIQvVaYCt74UreCFezRCD0XfFDtFtU5g4w9JeMu2MP6tYtHomfK9ag9pyqI/FzxhTUrTY+Ej9nDEHtQqKc+Z1R/9V3KCADzQzc8nPnANFtqncsgM6cINp5/iMBdPQIaWfPoR0JoDNniAIQjA50JpawfwhnbyaXO8AkcvUAAXACC3iOHh4N+4eHgOfowdHM3JPpGPBcOTR6+xHorxSS5UxviB0KuyidmqwrPQnPFaWnRk3tb1xJz1WtB0L0XNF62o0jjwHvhvnOzBVU6l+slx/IFt9zMkdXdLF8wa+OYFSb1lnfwxeEc1fgKTLYsR4vkFfCYp64s4mVE8R63veC8eeAPjlz/1A5RKwXEF1id8IFHe3a5iPAc8Vy1q/aPQI8ZwxnaFVrEp4rhjM8yeMsCedIeVs3YKoWjPWc2xXmM7lwF+llb2KfOz0SUJ+t3eleogZgOtYDMG65bx1oRRt/ErJ2xgJUs23WhS+l54oJqN/8JGd6N2LrxkuWRA7VvEDbv+8YuiKHbWgG4ZitydxVEbR/CWmDzxXpA1exMWYx42nVi5sEO9YzIRMs1oGD4BV5yWxF+EKI4yMn7kRVldSIdaCyWRIWUonSXuluUuxb39iez5hD+JRqXvv4CI7RGQlcie33oF3MFADRRF6KcwQguAtd3pK66xtbjwym9JyxCqGVok5x6Ir5osYE29bDqlP8kzoCD5zVMmUvaOBOQFXhZ78iQbyfH7t0DVhpX2vd+dgBdPTosF/YJufMhc7IXxua2bzB54r0dXSnsh4HnzOVHdDusG7weS4XJYCQwZUzClB13CBYMCtn9J96gxXABk78Z3eErw9O+CQ+R6WvBUDzSXzOnL5K9137zm+Kz5XKSnC3WDf4nLm7r9ygtp5I3+BzpQlgF1zINMXnSgNA9eiwfvLeh0RAQncMOzp20H7C6IEsqexe4tSdOAWilfjfDxKcDjinP2Q7/ItA1rRFjvA7mHvyFQ9ErF8LHHtB5zhyJVOu3oL7it2SA7Hbc1d45XDS5sFL7PGlI8h2MmUb2aMjvPKoa86Bl+fMlgTCiyXVlsyIrNqSmXg9EnfsCqW1knG74gwvFnjhTL2dYoYZN1zP3KlxUkXrK16SJis+Ixx5S3cGuO/r+6+1idNjRnASvyIPB+6kUjvWoTH2jAbhXNoWAg91S+aUM9O4SpNNue7Ep8OuTC9XujN8bZSLJrJoSV29JvGlWgc9XAzHaLh053aTWh78pcmHesgSzknov6Lzn/4Sh+4YaIqsGbdnh0kkFuBKJFa10b6STdbCNWIvYRRjyl0lZlzARpyGz2nMnyXi0KSumGk7X8neqTnaJkumLHHm6GxYPjrPA/JDXmt1hFdHNc2M+wLnkfjUDhFTL1J/paIjH2BIngWuUFNOAfP78o3avTOOpmKamd+aCWeOsOopVxSMB7LPf1JnQthKAMO4RXYlzFc/cQVXu2f7iLxiMXEl1qOW+tiBha7DJ8ZXTl1wUZquGz8hr1crKl6ukGVA9kvK3LmNYTvl+x5awxFobdvVUXIIhzPx624Od/U0aUVxml+SIR9HK437X7njrUVtnEQkWblCK4eeFlq0bhmaYC4Di64Qs51V2uJy5qTs5jAGJxdgrpyS1k2LiSSDvj8J8198QmeLyixsTYfOyTzam+vBEpIlPpwjuLq2I2OytMeZZKUiW8ZtMM+p1K7tOzZTKryiGI2xv6TOtKDsWY8nbrFNEu4vceQKN+t7c5qEoTNxWOsJkfu1W2Uqii7Tk6726P8D";
@@ -13015,7 +13015,7 @@ k}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mat
this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(k=this.ui.editor.graph.adaptiveColors,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 H=document.createElement("canvas"),T=new Image;T.onload=function(){try{H.getContext("2d").drawImage(T,
0,0);var k=H.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=k&&6<k.length}catch(v){}};T.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(g,l,d){d.ui=g.ui;return l};b.afterDecode=function(g,l,d){d.previousColor=d.color;d.previousImage=d.image;d.previousFormat=d.format;d.previousAdaptiveColors=d.adaptiveColors;null!=d.foldingEnabled&&(d.foldingEnabled=!d.foldingEnabled);null!=d.mathEnabled&&(d.mathEnabled=!d.mathEnabled);null!=d.shadowVisible&&(d.shadowVisible=!d.shadowVisible);return d};mxCodecRegistry.register(b)})();
-(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(g,l,d){d.ui=g.ui;return l};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.0.15";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(g,l,d){d.ui=g.ui;return l};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.0.16";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"}};
@@ -14340,187 +14340,187 @@ A.x,m.y-A.y)).grow(20)));u.consume()}}),mouseUp:mxUtils.bind(this,function(m,u){
mxFreehand.prototype.NO_SMOOTHING=1;mxFreehand.prototype.MILD_SMOOTHING=4;mxFreehand.prototype.NORMAL_SMOOTHING=8;mxFreehand.prototype.VERY_SMOOTH_SMOOTHING=12;mxFreehand.prototype.SUPER_SMOOTH_SMOOTHING=16;mxFreehand.prototype.HYPER_SMOOTH_SMOOTHING=20;DrawioUser=function(b,g,l,d,q){this.id=b;this.email=g;this.displayName=l;this.pictureUrl=d;this.locale=q};DrawioComment=function(b,g,l,d,q,y,x){this.file=b;this.id=g;this.content=l;this.modifiedDate=d;this.createdDate=q;this.isResolved=y;this.user=x;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,g,l,d,q){g()};DrawioComment.prototype.editComment=function(b,g,l){g()};DrawioComment.prototype.deleteComment=function(b,g){b()};Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;
Graph.prototype.defaultThemes.darkTheme=Graph.prototype.defaultThemes["default-style2"];
LucidImporter={};
-(function(){function g(w){if(w&&null!=LucidImporter.imgSrcRepl){var F=LucidImporter.imgSrcRepl.attMap;if(F[w])w=F[w];else{F=LucidImporter.imgSrcRepl.imgRepl;for(var D=0;D<F.length;D++){var u=F[D];w=w.replace(u.searchVal,u.replVal)}LucidImporter.hasExtImgs=!0}}return w}function y(w){lb="";try{if(w){var F=null;LucidImporter.advImpConfig&&LucidImporter.advImpConfig.fontMapping&&(F=LucidImporter.advImpConfig.fontMapping[w]);if(F){for(var D in F)lb+=D+"="+F[D]+";";return F.fontFamily?"font-family: "+F.fontFamily:
-""}if("Liberation Sans"!=w)return lb="fontFamily="+w+";","font-family: "+w+";"}}catch(u){}return""}function z(w){return Math.round(10*w)/10}function B(w,F,D){function u(la,Ma){var ya="",za=la.t,Pb=la.l||{v:za&&"ul"==za.v?"auto":"decimal"};if(null==za||0!=Na&&Na==za.v&&Ka==Pb.v)null==za&&(Na&&(ya+=P(!0),Na=!1),ya+='<div style="',Ca.push("div"));else{Na&&(ya+=P(!0));Na=za.v;Ka=Pb.v;"ul"==za.v?(ya+="<ul ",Ca.push("ul")):(ya+="<ol ",Ca.push("ol"));ya+='style="margin: 0px; padding-left: 10px;list-style-position: inside; list-style-type:';
-if("hl"==za.v)ya+="upper-roman";else switch(Pb.v){case "auto":ya+="disc";break;case "inv":ya+="circle";break;case "disc":ya+="circle";break;case "trib":ya+="square";break;case "square":ya+="square";break;case "dash":ya+="square";break;case "heart":ya+="disc";break;default:ya+="decimal"}ya+='">'}if(null!=za){ya+='<li style="text-align:'+(la.a?la.a.v:D.TextAlign||"center")+";";if(null!=Ma){if(Ma.c)var fa=Ma.c.v;if(Ma.s)var xb=Ma.s.v}try{var Va=aa[ka],rc=ra[Aa];Ma=ka;if(Va&&rc&&Va.s<rc.e)for(var vc=
-Va.s;null!=Va&&Va.s==vc;)"s"==Va.n?xb=Va.v:"c"==Va.n&&(fa=Va.v),Va=aa[++Ma]}catch(Fb){console.log(Fb)}fa=R(fa);null!=fa&&(fa=fa.substring(0,7),ya+="color:"+fa+";");xb&&(ya+="font-size:"+z(.75*xb)+"px;");ya+='">';Ca.push("li");ya+='<span style="';Ca.push("span")}Na||(xb=fa=la.a?la.a.v:D.TextAlign||"center","left"==fa?xb="flex-start":"right"==fa&&(xb="flex-end"),ya+="display: flex; justify-content: "+xb+"; text-align: "+fa+"; align-items: baseline; font-size: 0; line-height: 1.25;");la.il&&(ya+="margin-left: "+
-Math.max(0,z(.75*la.il.v-(Na?28:0)))+"px;");la.ir&&(ya+="margin-right: "+z(.75*la.ir.v)+"px;");la.mt&&(ya+="margin-top: "+z(.75*la.mt.v)+"px;");la.mb&&(ya+="margin-bottom: "+z(.75*la.mb.v)+"px;");ya+='margin-top: -2px;">';Na||(ya+="<span>",Ca.push("span"));return ya}function e(la){if(mxUtils.isEmptyObject(la))return"";var Ma="",ya=0;if(la.lk){var za=la.lk;null!=za.v&&0<za.v.length&&(Ma+='<a href="'+n(za.v[0])+'">',Ba.push("a"),ya++)}Ma+='<span style="';Ba.push("span");ya++;Ma+="font-size:"+(la.s&&
-la.s.v?z(.75*la.s.v):"13")+"px;";la.c&&(za=R(la.c.v),null!=za&&(za=za.substring(0,7),Ma+="color:"+za+";"));if(la.b&&la.b.v||la.fc&&la.fc.v&&0==la.fc.v.indexOf("Bold"))Ma+="font-weight: bold;";la.i&&la.i.v&&(Ma+="font-style: italic;");la.ac&&la.ac.v&&(Ma+="text-transform: uppercase;");za=null;la.f?za=la.f.v:D.Font&&(za=D.Font);Ma+=y(za);za=[];la.u&&la.u.v&&za.push("underline");la.k&&la.k.v&&za.push("line-through");0<za.length&&(Ma+="text-decoration: "+za.join(" ")+";");Ma+='">';Pa.push(ya);return Ma}
-function P(la){var Ma="";do{var ya=Ca.pop();if(!la&&Na&&("ul"==ya||"ol"==ya)){Ca.push(ya);break}Ma+="</"+ya+">"}while(0<Ca.length);return Ma}function r(la,Ma,ya,za){la=la?la.substring(Ma,ya):"";Na&&(la=la.trim());0==Ba.length&&0<la.length&&(la=e({dummy:1})+la);la=la.replace(/</g,"&lt;").replace(/>/g,"&gt;");do for(Ma=Pa.pop(),ya=0;ya<Ma;ya++){var Pb=Ba.pop();la+="</"+Pb+">"}while(za&&0<Ba.length);return la}var p={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,l:!0},Z={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!0,
-k:!0,f:!0,ac:!0};F.sort(function(la,Ma){return la.s-Ma.s});var aa=F.filter(function(la){return Z[la.n]});aa[0]&&0!=aa[0].s&&aa.unshift({s:0,n:"dummy",v:"",e:aa[0].s});F=F.filter(function(la){return p[la.n]});for(var V=[0],wa=0;0<(wa=w.indexOf("\n",wa));)wa++,V.push(wa);for(var ka=wa=0;ka<F.length;ka++){if(F[ka].s>V[wa])F.splice(ka,0,{s:V[wa],n:"a",v:D.TextAlign||"center"});else{for(var na=0;ka+na<F.length&&F[ka+na].s==V[wa];)na++;1<na&&(ka+=na-1)}wa++}null!=V[wa]&&F.push({s:V[wa],n:"a",v:D.TextAlign||
-"center"});V="";var ra=aa.slice();ra.sort(function(la,Ma){return la.e-Ma.e});var Aa=ka=0;wa=0;na={};for(var ma={},Ba=[],Pa=[],Ca=[],ua=!1,Na=!1,Ka,La=0,l=0,Ia=w.length,bb=!0;wa<F.length||bb;){bb=!1;if(wa<F.length){var Ea=F[wa],Ra=F[wa].s;ua&&(ma={},V+=r(w,La,Ia,!0),l=La=Ia,V+=P());for(;null!=Ea&&Ea.s==Ra;)ma[Ea.n]=Ea,Ea=F[++wa];Ia=null!=Ea?Ea.s:w.length;V+=u(ma,na);ua&&(V+=e(na));ua=!0}for(;ka>=Aa&&(ka<aa.length||Aa<ra.length);)if(Ea=aa[ka],Ra=ra[Aa],Ea&&Ra&&Ea.s<Ra.e){if(Ea.s>=Ia)break;La=Ea.s;0<
-La-l&&(V+=e(na)+r(w,l,La),l=La);for(;null!=Ea&&Ea.s==La;)na[Ea.n]=Ea,Ea=aa[++ka];V+=e(na)}else if(Ra){if(Ra.e>Ia)break;l=Ra.e;do delete na[Ra.n],Ra=ra[++Aa];while(null!=Ra&&Ra.e==l);V+=r(w,La,l);La=l;0!=Pa.length||null!=Ea&&Ea.s==l||(aa.splice(ka,0,{s:l,n:"dummy",v:""}),ra.splice(Aa,0,{e:Ea?Ea.s:Ia,n:"dummy",v:""}))}else break}V+=r(null,null,null,!0);ua&&(l!=Ia&&(V+=e({dummy:1})+r(w,l,Ia)),V+=P(!0));return V}function m(w,F){G=!1;var D=null!=w.Text&&w.Text.t?w.Text:null!=w.Value&&w.Value.t?w.Value:
+(function(){function g(w){if(w&&null!=LucidImporter.imgSrcRepl){var F=LucidImporter.imgSrcRepl.attMap;if(F[w])w=F[w];else{F=LucidImporter.imgSrcRepl.imgRepl;for(var D=0;D<F.length;D++){var u=F[D];w=w.replace(u.searchVal,u.replVal)}LucidImporter.hasExtImgs=!0}}return w}function y(w){mb="";try{if(w){var F=null;LucidImporter.advImpConfig&&LucidImporter.advImpConfig.fontMapping&&(F=LucidImporter.advImpConfig.fontMapping[w]);if(F){for(var D in F)mb+=D+"="+F[D]+";";return F.fontFamily?"font-family: "+F.fontFamily:
+""}if("Liberation Sans"!=w)return mb="fontFamily="+w+";","font-family: "+w+";"}}catch(u){}return""}function z(w){return Math.round(10*w)/10}function B(w,F,D){function u(ma,La){var ya="",za=ma.t,Qb=ma.l||{v:za&&"ul"==za.v?"auto":"decimal"};if(null==za||0!=Ma&&Ma==za.v&&Ja==Qb.v)null==za&&(Ma&&(ya+=O(!0),Ma=!1),ya+='<div style="',Ca.push("div"));else{Ma&&(ya+=O(!0));Ma=za.v;Ja=Qb.v;"ul"==za.v?(ya+="<ul ",Ca.push("ul")):(ya+="<ol ",Ca.push("ol"));ya+='style="margin: 0px; padding-left: 10px;list-style-position: inside; list-style-type:';
+if("hl"==za.v)ya+="upper-roman";else switch(Qb.v){case "auto":ya+="disc";break;case "inv":ya+="circle";break;case "disc":ya+="circle";break;case "trib":ya+="square";break;case "square":ya+="square";break;case "dash":ya+="square";break;case "heart":ya+="disc";break;default:ya+="decimal"}ya+='">'}if(null!=za){ya+='<li style="text-align:'+(ma.a?ma.a.v:D.TextAlign||"center")+";";if(null!=La){if(La.c)var ha=La.c.v;if(La.s)var xb=La.s.v}try{var Wa=ba[ka],rc=ra[Aa];La=ka;if(Wa&&rc&&Wa.s<rc.e)for(var wc=
+Wa.s;null!=Wa&&Wa.s==wc;)"s"==Wa.n?xb=Wa.v:"c"==Wa.n&&(ha=Wa.v),Wa=ba[++La]}catch(Gb){console.log(Gb)}ha=V(ha);null!=ha&&(ha=ha.substring(0,7),ya+="color:"+ha+";");xb&&(ya+="font-size:"+z(.75*xb)+"px;");ya+='">';Ca.push("li");ya+='<span style="';Ca.push("span")}Ma||(xb=ha=ma.a?ma.a.v:D.TextAlign||"center","left"==ha?xb="flex-start":"right"==ha&&(xb="flex-end"),ya+="display: flex; justify-content: "+xb+"; text-align: "+ha+"; align-items: baseline; font-size: 0; line-height: 1.25;");ma.il&&(ya+="margin-left: "+
+Math.max(0,z(.75*ma.il.v-(Ma?28:0)))+"px;");ma.ir&&(ya+="margin-right: "+z(.75*ma.ir.v)+"px;");ma.mt&&(ya+="margin-top: "+z(.75*ma.mt.v)+"px;");ma.mb&&(ya+="margin-bottom: "+z(.75*ma.mb.v)+"px;");ya+='margin-top: -2px;">';Ma||(ya+="<span>",Ca.push("span"));return ya}function e(ma){if(mxUtils.isEmptyObject(ma))return"";var La="",ya=0;if(ma.lk){var za=ma.lk;null!=za.v&&0<za.v.length&&(La+='<a href="'+n(za.v[0])+'">',Ba.push("a"),ya++)}La+='<span style="';Ba.push("span");ya++;La+="font-size:"+(ma.s&&
+ma.s.v?z(.75*ma.s.v):"13")+"px;";ma.c&&(za=V(ma.c.v),null!=za&&(za=za.substring(0,7),La+="color:"+za+";"));if(ma.b&&ma.b.v||ma.fc&&ma.fc.v&&0==ma.fc.v.indexOf("Bold"))La+="font-weight: bold;";ma.i&&ma.i.v&&(La+="font-style: italic;");ma.ac&&ma.ac.v&&(La+="text-transform: uppercase;");za=null;ma.f?za=ma.f.v:D.Font&&(za=D.Font);La+=y(za);za=[];ma.u&&ma.u.v&&za.push("underline");ma.k&&ma.k.v&&za.push("line-through");0<za.length&&(La+="text-decoration: "+za.join(" ")+";");La+='">';Oa.push(ya);return La}
+function O(ma){var La="";do{var ya=Ca.pop();if(!ma&&Ma&&("ul"==ya||"ol"==ya)){Ca.push(ya);break}La+="</"+ya+">"}while(0<Ca.length);return La}function r(ma,La,ya,za){ma=ma?ma.substring(La,ya):"";Ma&&(ma=ma.trim());0==Ba.length&&0<ma.length&&(ma=e({dummy:1})+ma);ma=ma.replace(/</g,"&lt;").replace(/>/g,"&gt;");do for(La=Oa.pop(),ya=0;ya<La;ya++){var Qb=Ba.pop();ma+="</"+Qb+">"}while(za&&0<Ba.length);return ma}var p={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,l:!0},aa={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!0,
+k:!0,f:!0,ac:!0};F.sort(function(ma,La){return ma.s-La.s});var ba=F.filter(function(ma){return aa[ma.n]});ba[0]&&0!=ba[0].s&&ba.unshift({s:0,n:"dummy",v:"",e:ba[0].s});F=F.filter(function(ma){return p[ma.n]});for(var W=[0],wa=0;0<(wa=w.indexOf("\n",wa));)wa++,W.push(wa);for(var ka=wa=0;ka<F.length;ka++){if(F[ka].s>W[wa])F.splice(ka,0,{s:W[wa],n:"a",v:D.TextAlign||"center"});else{for(var pa=0;ka+pa<F.length&&F[ka+pa].s==W[wa];)pa++;1<pa&&(ka+=pa-1)}wa++}null!=W[wa]&&F.push({s:W[wa],n:"a",v:D.TextAlign||
+"center"});W="";var ra=ba.slice();ra.sort(function(ma,La){return ma.e-La.e});var Aa=ka=0;wa=0;pa={};for(var na={},Ba=[],Oa=[],Ca=[],ua=!1,Ma=!1,Ja,Ka=0,l=0,Ha=w.length,cb=!0;wa<F.length||cb;){cb=!1;if(wa<F.length){var Ea=F[wa],Qa=F[wa].s;ua&&(na={},W+=r(w,Ka,Ha,!0),l=Ka=Ha,W+=O());for(;null!=Ea&&Ea.s==Qa;)na[Ea.n]=Ea,Ea=F[++wa];Ha=null!=Ea?Ea.s:w.length;W+=u(na,pa);ua&&(W+=e(pa));ua=!0}for(;ka>=Aa&&(ka<ba.length||Aa<ra.length);)if(Ea=ba[ka],Qa=ra[Aa],Ea&&Qa&&Ea.s<Qa.e){if(Ea.s>=Ha)break;Ka=Ea.s;0<
+Ka-l&&(W+=e(pa)+r(w,l,Ka),l=Ka);for(;null!=Ea&&Ea.s==Ka;)pa[Ea.n]=Ea,Ea=ba[++ka];W+=e(pa)}else if(Qa){if(Qa.e>Ha)break;l=Qa.e;do delete pa[Qa.n],Qa=ra[++Aa];while(null!=Qa&&Qa.e==l);W+=r(w,Ka,l);Ka=l;0!=Oa.length||null!=Ea&&Ea.s==l||(ba.splice(ka,0,{s:l,n:"dummy",v:""}),ra.splice(Aa,0,{e:Ea?Ea.s:Ha,n:"dummy",v:""}))}else break}W+=r(null,null,null,!0);ua&&(l!=Ha&&(W+=e({dummy:1})+r(w,l,Ha)),W+=O(!0));return W}function m(w,F){G=!1;var D=null!=w.Text&&w.Text.t?w.Text:null!=w.Value&&w.Value.t?w.Value:
null!=w.Lane_0&&w.Lane_0.t?w.Lane_0:null;null==D&&null!=w.State?w.State.t&&(D=w.State):null==D&&null!=w.Note?w.Note.t&&(D=w.Note):null==D&&null!=w.Title?w.Title.t&&(D=w.Title):w.t&&(D=w);null==D&&null!=w.TextAreas?null!=w.TextAreas.Text&&null!=w.TextAreas.Text.Value&&w.TextAreas.Text.Value.t&&(D=w.TextAreas.Text.Value):null==D&&null!=w.t0&&w.t0.t&&(D=w.t0);if(null!=D){if(null!=D.t){var u=D.t;u=u.replace(/\u2028/g,"\n");D=D.m;try{/ /.test(u)&&(LucidImporter.hasUnknownShapes=!0);for(var e=0;e<D.length;e++)if(0<
-D[e].s||null!=D[e].e&&D[e].e<u.length||"t"==D[e].n||"ac"==D[e].n||"lk"==D[e].n){G=!0;break}if(G=G||F)return B(u,D,w)}catch(P){console.log(P)}u=u.replace(/</g,"&lt;");return u=u.replace(/>/g,"&gt;")}if(null!=D.Value&&null!=D.Value.t)return D.Value.t=D.Value.t.replace(/</g,"&lt;"),D.Value.t=D.Value.t.replace(/>/g,"&gt;"),D.Value.t}return""}function h(w){return null!=w.Action?w.Action:w}function c(w){if(null!=w.Text){if(null!=w.Text.m)return w.Text.m}else if(null!=w.TextAreas){if(null!=w.TextAreas.Text&&
-null!=w.TextAreas.Text.Value&&null!=w.TextAreas.Text.Value.m)return w.TextAreas.Text.Value.m}else{if(null!=w.m)return w.m;if(null!=w.Title){if(null!=w.Title.m)return w.Title.m}else if(null!=w.State){if(null!=w.State.m)return w.State.m}else if(null!=w.Note&&null!=w.Note.m)return w.Note.m}return null}function a(w,F){w="whiteSpace=wrap;"+(F?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+lb:f(w)+k(w)+q(w)+t(w)+C(w)+I(w)+N(w)+K(w)+O(w))+S(w)+H(w)+Zb(mxConstants.STYLE_ALIGN,w.TextAlign,"center");lb=
-"";return w}function b(w,F,D,u,e,P){P=null==P?!1:P;var r="",p=!1,Z=!1;if(null!=w)if(P){P=w.split(";");w="";for(var aa=0;aa<P.length;aa++)"fillColor=none"==P[aa]?Z=!0:"strokeColor=none"==P[aa]?p=!0:""!=P[aa]&&(w+=P[aa]+";")}else""!=w&&";"!=w.charAt(w.length-1)&&(r=";");r+=(Xc(w,"whiteSpace")?"":"whiteSpace=wrap;")+(e?(Xc(w,"overflow")?"":"overflow=block;blockSpacing=1;")+(Xc(w,"html")?"":"html=1;")+"fontSize=13;"+lb:d(mxConstants.STYLE_FONTSIZE,w,F,D,u)+d(mxConstants.STYLE_FONTFAMILY,w,F,D,u)+d(mxConstants.STYLE_FONTCOLOR,
+D[e].s||null!=D[e].e&&D[e].e<u.length||"t"==D[e].n||"ac"==D[e].n||"lk"==D[e].n){G=!0;break}if(G=G||F)return B(u,D,w)}catch(O){console.log(O)}u=u.replace(/</g,"&lt;");return u=u.replace(/>/g,"&gt;")}if(null!=D.Value&&null!=D.Value.t)return D.Value.t=D.Value.t.replace(/</g,"&lt;"),D.Value.t=D.Value.t.replace(/>/g,"&gt;"),D.Value.t}return""}function h(w){return null!=w.Action?w.Action:w}function c(w){if(null!=w.Text){if(null!=w.Text.m)return w.Text.m}else if(null!=w.TextAreas){if(null!=w.TextAreas.Text&&
+null!=w.TextAreas.Text.Value&&null!=w.TextAreas.Text.Value.m)return w.TextAreas.Text.Value.m}else{if(null!=w.m)return w.m;if(null!=w.Title){if(null!=w.Title.m)return w.Title.m}else if(null!=w.State){if(null!=w.State.m)return w.State.m}else if(null!=w.Note&&null!=w.Note.m)return w.Note.m}return null}function a(w,F){w="whiteSpace=wrap;"+(F?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+mb:f(w)+k(w)+q(w)+t(w)+C(w)+I(w)+Q(w)+K(w)+L(w))+S(w)+R(w)+Zb(mxConstants.STYLE_ALIGN,w.TextAlign,"center");mb=
+"";return w}function b(w,F,D,u,e,O){O=null==O?!1:O;var r="",p=!1,aa=!1;if(null!=w)if(O){O=w.split(";");w="";for(var ba=0;ba<O.length;ba++)"fillColor=none"==O[ba]?aa=!0:"strokeColor=none"==O[ba]?p=!0:""!=O[ba]&&(w+=O[ba]+";")}else""!=w&&";"!=w.charAt(w.length-1)&&(r=";");r+=(Yc(w,"whiteSpace")?"":"whiteSpace=wrap;")+(e?(Yc(w,"overflow")?"":"overflow=block;blockSpacing=1;")+(Yc(w,"html")?"":"html=1;")+"fontSize=13;"+mb:d(mxConstants.STYLE_FONTSIZE,w,F,D,u)+d(mxConstants.STYLE_FONTFAMILY,w,F,D,u)+d(mxConstants.STYLE_FONTCOLOR,
w,F,D,u)+d(mxConstants.STYLE_FONTSTYLE,w,F,D,u)+d(mxConstants.STYLE_ALIGN,w,F,D,u)+d(mxConstants.STYLE_SPACING_LEFT,w,F,D,u)+d(mxConstants.STYLE_SPACING_RIGHT,w,F,D,u)+d(mxConstants.STYLE_SPACING_TOP,w,F,D,u)+d(mxConstants.STYLE_SPACING_BOTTOM,w,F,D,u))+d(mxConstants.STYLE_ALIGN+"Global",w,F,D,u)+d(mxConstants.STYLE_SPACING,w,F,D,u)+d(mxConstants.STYLE_VERTICAL_ALIGN,w,F,D,u)+d(mxConstants.STYLE_STROKECOLOR,w,F,D,u)+d(mxConstants.STYLE_OPACITY,w,F,D,u)+d(mxConstants.STYLE_ROUNDED,w,F,D,u)+d(mxConstants.STYLE_ROTATION,
-w,F,D,u)+d(mxConstants.STYLE_FLIPH,w,F,D,u)+d(mxConstants.STYLE_FLIPV,w,F,D,u)+d(mxConstants.STYLE_SHADOW,w,F,D,u)+d(mxConstants.STYLE_FILLCOLOR,w,F,D,u)+d(mxConstants.STYLE_DASHED,w,F,D,u)+d(mxConstants.STYLE_STROKEWIDTH,w,F,D,u)+d(mxConstants.STYLE_IMAGE,w,F,D,u)+d(mxConstants.STYLE_POINTER_EVENTS,w,F,D,u);Z&&!Xc(r,mxConstants.STYLE_FILLCOLOR)&&(r+="fillColor=none;");p&&!Xc(r,mxConstants.STYLE_STROKECOLOR)&&(r+="strokeColor=none;");lb="";return r}function d(w,F,D,u,e){if(!Xc(F,w))switch(w){case mxConstants.STYLE_FONTSIZE:return f(D);
-case mxConstants.STYLE_FONTFAMILY:return k(D);case mxConstants.STYLE_FONTCOLOR:return q(D);case mxConstants.STYLE_FONTSTYLE:return t(D);case mxConstants.STYLE_ALIGN:return C(D);case mxConstants.STYLE_ALIGN+"Global":return Zb(mxConstants.STYLE_ALIGN,D.TextAlign,"center");case mxConstants.STYLE_SPACING_LEFT:return I(D);case mxConstants.STYLE_SPACING_RIGHT:return N(D);case mxConstants.STYLE_SPACING_TOP:return K(D);case mxConstants.STYLE_SPACING_BOTTOM:return O(D);case mxConstants.STYLE_SPACING:return S(D);
-case mxConstants.STYLE_VERTICAL_ALIGN:return H(D);case mxConstants.STYLE_STROKECOLOR:return J(D,u);case mxConstants.STYLE_OPACITY:return Q(D,u,e);case mxConstants.STYLE_ROUNDED:return w=!e.edge&&!e.style.includes("rounded")&&null!=D.Rounding&&0<D.Rounding?"rounded=1;absoluteArcSize=1;arcSize="+z(.75*D.Rounding)+";":"",w;case mxConstants.STYLE_ROTATION:return ca(D,u,e);case mxConstants.STYLE_FLIPH:return w=D.FlipX?"flipH=1;":"",w;case mxConstants.STYLE_FLIPV:return w=D.FlipY?"flipV=1;":"",w;case mxConstants.STYLE_SHADOW:return W(D);
-case mxConstants.STYLE_FILLCOLOR:return ba(D,u);case mxConstants.STYLE_DASHED:return qa(D);case mxConstants.STYLE_STROKEWIDTH:return sa(D);case mxConstants.STYLE_IMAGE:return Fa(D,u);case mxConstants.STYLE_POINTER_EVENTS:return D.Magnetize?"container=1;pointerEvents=0;collapsible=0;recursiveResize=0;":""}return""}function f(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("s"==D.n&&D.v)return"fontSize="+z(.75*D.v)+";";F++}return"fontSize=13;"}function k(w){var F=c(w);if(null!=F)for(var D=
-0;D<F.length;D++)if("f"==F[D].n&&F[D].v){var u=F[D].v;break}!u&&w.Font&&(u=w.Font);y(u);return lb}function n(w){return"ext"==w.tp?w.url:"ml"==w.tp?"mailto:"+w.eml:"pg"==w.tp?"data:page/id,"+(LucidImporter.pageIdsMap[w.id]||0):"c"==w.tp?"data:confluence/id,"+w.ccid:null}function q(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("c"==D.n&&null!=D.v)return w=R(D.v).substring(0,7),"#000000"==w&&(w="default"),mxConstants.STYLE_FONTCOLOR+"="+w+";";F++}return""}function t(w){return A(c(w))}function A(w){if(null!=
+w,F,D,u)+d(mxConstants.STYLE_FLIPH,w,F,D,u)+d(mxConstants.STYLE_FLIPV,w,F,D,u)+d(mxConstants.STYLE_SHADOW,w,F,D,u)+d(mxConstants.STYLE_FILLCOLOR,w,F,D,u)+d(mxConstants.STYLE_DASHED,w,F,D,u)+d(mxConstants.STYLE_STROKEWIDTH,w,F,D,u)+d(mxConstants.STYLE_IMAGE,w,F,D,u)+d(mxConstants.STYLE_POINTER_EVENTS,w,F,D,u);aa&&!Yc(r,mxConstants.STYLE_FILLCOLOR)&&(r+="fillColor=none;");p&&!Yc(r,mxConstants.STYLE_STROKECOLOR)&&(r+="strokeColor=none;");mb="";return r}function d(w,F,D,u,e){if(!Yc(F,w))switch(w){case mxConstants.STYLE_FONTSIZE:return f(D);
+case mxConstants.STYLE_FONTFAMILY:return k(D);case mxConstants.STYLE_FONTCOLOR:return q(D);case mxConstants.STYLE_FONTSTYLE:return t(D);case mxConstants.STYLE_ALIGN:return C(D);case mxConstants.STYLE_ALIGN+"Global":return Zb(mxConstants.STYLE_ALIGN,D.TextAlign,"center");case mxConstants.STYLE_SPACING_LEFT:return I(D);case mxConstants.STYLE_SPACING_RIGHT:return Q(D);case mxConstants.STYLE_SPACING_TOP:return K(D);case mxConstants.STYLE_SPACING_BOTTOM:return L(D);case mxConstants.STYLE_SPACING:return S(D);
+case mxConstants.STYLE_VERTICAL_ALIGN:return R(D);case mxConstants.STYLE_STROKECOLOR:return H(D,u);case mxConstants.STYLE_OPACITY:return M(D,u,e);case mxConstants.STYLE_ROUNDED:return w=!e.edge&&!e.style.includes("rounded")&&null!=D.Rounding&&0<D.Rounding?"rounded=1;absoluteArcSize=1;arcSize="+z(.75*D.Rounding)+";":"",w;case mxConstants.STYLE_ROTATION:return T(D,u,e);case mxConstants.STYLE_FLIPH:return w=D.FlipX?"flipH=1;":"",w;case mxConstants.STYLE_FLIPV:return w=D.FlipY?"flipV=1;":"",w;case mxConstants.STYLE_SHADOW:return ca(D);
+case mxConstants.STYLE_FILLCOLOR:return Y(D,u);case mxConstants.STYLE_DASHED:return sa(D);case mxConstants.STYLE_STROKEWIDTH:return oa(D);case mxConstants.STYLE_IMAGE:return Ra(D,u);case mxConstants.STYLE_POINTER_EVENTS:return D.Magnetize?"container=1;pointerEvents=0;collapsible=0;recursiveResize=0;":""}return""}function f(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("s"==D.n&&D.v)return"fontSize="+z(.75*D.v)+";";F++}return"fontSize=13;"}function k(w){var F=c(w);if(null!=F)for(var D=
+0;D<F.length;D++)if("f"==F[D].n&&F[D].v){var u=F[D].v;break}!u&&w.Font&&(u=w.Font);y(u);return mb}function n(w){return"ext"==w.tp?w.url:"ml"==w.tp?"mailto:"+w.eml:"pg"==w.tp?"data:page/id,"+(LucidImporter.pageIdsMap[w.id]||0):"c"==w.tp?"data:confluence/id,"+w.ccid:null}function q(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("c"==D.n&&null!=D.v)return w=V(D.v).substring(0,7),"#000000"==w&&(w="default"),mxConstants.STYLE_FONTCOLOR+"="+w+";";F++}return""}function t(w){return A(c(w))}function A(w){if(null!=
w){var F=0,D=!1;if(null!=w)for(var u=0;!D&&u<w.length;){var e=w[u];"b"==e.n?null!=e.v&&e.v&&(D=!0,F+=1):"fc"==e.n&&"Bold"==e.v&&(D=!0,F+=1);u++}D=!1;if(null!=w)for(u=0;!D&&u<w.length;)e=w[u],"i"==e.n&&null!=e.v&&e.v&&(D=!0,F+=2),u++;D=!1;if(null!=w)for(u=0;!D&&u<w.length;)e=w[u],"u"==e.n&&null!=e.v&&e.v&&(D=!0,F+=4),u++;if(0<F)return"fontStyle="+F+";"}return""}function C(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("a"==D.n&&null!=D.v)return"align="+D.v+";";F++}return""}function I(w){w=
-c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if(null!=D.v&&"il"==D.n)return"spacingLeft="+z(.75*D.v)+";";F++}return""}function N(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("ir"==D.n&&null!=D.v)return"spacingRight="+z(.75*D.v)+";";F++}return""}function K(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("mt"==D.n&&null!=D.v)return"spacingTop="+z(.75*D.v)+";";F++}return""}function O(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("mb"==D.n&&null!=D.v)return"spacingBottom="+
-z(.75*D.v)+";";F++}return""}function S(w){return"number"===typeof w.InsetMargin?"spacing="+Math.max(0,z(.75*w.InsetMargin))+";":""}function H(w){return null!=w.Text_VAlign&&"string"===typeof w.Text_VAlign?"verticalAlign="+w.Text_VAlign+";":null!=w.Title_VAlign&&"string"===typeof w.Title_VAlign?"verticalAlign="+w.Title_VAlign+";":Zb(mxConstants.STYLE_VERTICAL_ALIGN,w.TextVAlign,"middle")}function J(w,F){return 0==w.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":Zb(mxConstants.STYLE_STROKECOLOR,U(w.LineColor),
-"#000000")}function M(w){return null!=w?mxConstants.STYLE_FILLCOLOR+"="+U(w)+";":""}function L(w){return null!=w?"swimlaneFillColor="+U(w)+";":""}function Q(w,F,D){F="";if("string"===typeof w.LineColor&&(w.LineColor=R(w.LineColor),7<w.LineColor.length)){var u="0x"+w.LineColor.substring(w.LineColor.length-2,w.LineColor.length);D.style.includes("strokeOpacity")||(F+="strokeOpacity="+Math.round(parseInt(u)/2.55)+";")}"string"===typeof w.FillColor&&(w.FillColor=R(w.FillColor),7<w.FillColor.length&&(w=
-"0x"+w.FillColor.substring(w.FillColor.length-2,w.FillColor.length),D.style.includes("fillOpacity")||(F+="fillOpacity="+Math.round(parseInt(w)/2.55)+";")));return F}function ca(w,F,D){var u="";if(null!=w.Rotation){w=mxUtils.toDegree(parseFloat(w.Rotation));var e=!0;0!=w&&F.Class&&("UMLSwimLaneBlockV2"==F.Class||(0<=F.Class.indexOf("Rotated")||-90==w||270==w)&&(0<=F.Class.indexOf("Pool")||0<=F.Class.indexOf("SwimLane")))?(w+=90,D.geometry.rotate90(),D.geometry.isRotated=!0,e=!1):0<=mxUtils.indexOf(vf,
-F.Class)?(w-=90,D.geometry.rotate90()):0<=mxUtils.indexOf(wf,F.Class)&&(w+=180);0!=w&&(u+="rotation="+w+";");e||(u+="horizontal=0;")}return u}function W(w){return null!=w.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function R(w){if(w){if("object"===typeof w)try{w=w.cs[0].c}catch(F){console.log(F),w="#ffffff"}"rgb"==w.substring(0,3)?w="#"+w.match(/\d+/g).map(function(F){F=parseInt(F).toString(16);return(1==F.length?"0":"")+F}).join(""):"#"!=w.charAt(0)&&(w="#"+w)}return w}function U(w){return(w=R(w))?
-w.substring(0,7):null}function ia(w,F){return(w=R(w))&&7<w.length?F+"="+Math.round(parseInt("0x"+w.substr(7))/2.55)+";":""}function ba(w,F){if(null!=w.FillColor)if("object"===typeof w.FillColor){if(null!=w.FillColor.cs&&1<w.FillColor.cs.length)return Zb(mxConstants.STYLE_FILLCOLOR,U(w.FillColor.cs[0].c))+Zb(mxConstants.STYLE_GRADIENTCOLOR,U(w.FillColor.cs[1].c))}else return"string"===typeof w.FillColor?Zb(mxConstants.STYLE_FILLCOLOR,U(w.FillColor),"#FFFFFF"):Zb(mxConstants.STYLE_FILLCOLOR,"none");
-return""}function qa(w){return"dotted"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 4;":"dashdot"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5;":"dashdotdot"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5 1 5;":"dotdotdot"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 2;":"longdash"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=16 6;":"dashlongdash"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 6 16 6;":"dashed24"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=3 8;":
-"dashed32"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=6 5;":"dashed44"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=8 8;":null!=w.StrokeStyle&&"dashed"==w.StrokeStyle.substring(0,6)?"dashed=1;fixDash=1;":""}function sa(w){return null!=w.LineWidth?Zb(mxConstants.STYLE_STROKEWIDTH,z(.75*parseFloat(w.LineWidth)),"1"):""}function Fa(w,F,D){var u="";w.FillColor&&w.FillColor.url?(D=w.FillColor.url,"fill"==w.FillColor.pos&&(u="imageAspect=0;")):"ImageSearchBlock2"==F.Class?D=w.URL:"UserImage2Block"==
-F.Class&&null!=w.ImageFillProps&&null!=w.ImageFillProps.url&&(D=w.ImageFillProps.url);return null!=D?"image="+g(D)+";"+u:""}function pa(w,F,D){null!=F.Link&&0<F.Link.length&&D.setAttributeForCell(w,"link",n(F.Link[0]));null!=F.NoteHint&&F.NoteHint.t&&D.setAttributeForCell(w,"Notes",F.NoteHint.t);var u=[],e=D.convertValueToString(w),P=!1;if(null!=e){for(var r=0;match=xf.exec(e);){var p=match[0];P=!0;if(2<p.length){var Z=p.substring(2,p.length-2);"documentName"==Z?Z="filename":"pageName"==Z?Z="page":
-"totalPages"==Z?Z="pagecount":"page"==Z?Z="pagenumber":"date:"==Z.substring(0,5)?Z="date{"+Z.substring(5).replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy")+"}":"lastModifiedTime"==Z.substring(0,16)?Z=Z.replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy"):"i18nDate:"==Z.substring(0,9)&&(Z="date{"+Z.substring(9).replace(/i18nShort/g,"shortDate").replace(/i18nMediumWithTime/g,"mmm d, yyyy hh:MM TT")+"}");Z="%"+Z+"%";u.push(e.substring(r,match.index)+(null!=Z?Z:p));r=
-match.index+p.length}}P&&(u.push(e.substring(r)),D.setAttributeForCell(w,"label",u.join("")),D.setAttributeForCell(w,"placeholders","1"))}for(var aa in F)if(F.hasOwnProperty(aa)&&aa.toString().startsWith("ShapeData_"))try{var V=F[aa],wa=mxUtils.trim(V.Label).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,"");Za(w,wa,V.Value,D)}catch(ka){window.console&&console.log("Ignored "+aa+":",ka)}}function Za(w,F,D,u){for(var e=F,P=0;null!=u.getAttributeForCell(w,e);)P++,e=F+"_"+P;u.setAttributeForCell(w,
-e,null!=D?D:"")}function Qb(w,F,D,u,e,P){var r=h(F);if(null!=r){var p=Od[r.Class];null!=p?(w.style+=p,";"!=w.style.charAt(w.style.length-1)&&(w.style+=";")):w.edge||(console.log("No mapping found for: "+r.Class),LucidImporter.hasUnknownShapes=!0);p=null!=r.Properties?r.Properties:r;if(null!=p&&(w.value=P?"":m(p),w.style+=b(w.style,p,r,w,G,!0),w.style.includes("strokeColor")||(w.style+=J(p,r)),pa(w,p,D),p.Title&&p.Title.t&&p.Text&&p.Text.t&&"ExtShape"!=r.Class.substr(0,8)&&(D=w.geometry,D=new mxCell(m(p.Title),
-new mxGeometry(0,D.height,D.width,10),"strokeColor=none;fillColor=none;"),D.vertex=!0,w.insert(D),D.style+=a(p.Title,G)),w.edge)){w.style=null!=p.Rounding&&"diagonal"!=p.Shape?w.style+("rounded=1;arcSize="+p.Rounding+";"):w.style+"rounded=0;";if(D="curve"==p.Shape)w.style+="curved=1;";else if("diagonal"!=p.Shape)if(null!=p.ElbowPoints&&0<p.ElbowPoints.length)for(w.geometry.points=[],r=0;r<p.ElbowPoints.length;r++)w.geometry.points.push(new mxPoint(Math.round(.75*p.ElbowPoints[r].x+wc),Math.round(.75*
-p.ElbowPoints[r].y+xc)));else if("elbow"==p.Shape||null!=p.Endpoint1.Block&&null!=p.Endpoint2.Block)w.style+="edgeStyle=orthogonalEdgeStyle;";if(p.LineJumps||LucidImporter.globalProps.LineJumps)w.style+="jumpStyle=arc;";null!=p.Endpoint1.Style&&(P=Ee[p.Endpoint1.Style],null!=P?(P=P.replace(/xyz/g,"start"),w.style+="startArrow="+P+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+p.Endpoint1.Style)));null!=p.Endpoint2.Style&&(P=Ee[p.Endpoint2.Style],null!=
-P?(P=P.replace(/xyz/g,"end"),w.style+="endArrow="+P+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+p.Endpoint2.Style)));P=null!=p.ElbowControlPoints&&0<p.ElbowControlPoints.length?p.ElbowControlPoints:p.Joints;if(D&&null!=p.BezierJoints&&0<p.BezierJoints.length){P=[];D=p.BezierJoints[p.BezierJoints.length-1];D.p.x=p.Endpoint2.x;D.p.y=p.Endpoint2.y;for(r=0;r<p.BezierJoints.length;r++)D=p.BezierJoints[r],P.push({x:D.p.x+D.nt.x*D.lcps*.75,y:D.p.y+D.nt.y*
-D.lcps*.75}),P.push({x:D.p.x+D.nt.x*D.rcps*.75,y:D.p.y+D.nt.y*D.rcps*.75});P=P.slice(1,P.length-1)}else D&&(P=[],P.push({x:p.Endpoint1.x+(.1>p.Endpoint1.LinkX?-250:.9<p.Endpoint1.LinkX?250:0),y:p.Endpoint1.y+(.1>p.Endpoint1.LinkY?-250:.9<p.Endpoint1.LinkY?250:0)}),P.push({x:p.Endpoint2.x+(.1>p.Endpoint2.LinkX?-250:.9<p.Endpoint2.LinkX?250:0),y:p.Endpoint2.y+(.1>p.Endpoint2.LinkY?-250:.9<p.Endpoint2.LinkY?250:0)}));if(null!=P)for(w.geometry.points=[],r=0;r<P.length;r++)D=P[r].p?P[r].p:P[r],w.geometry.points.push(new mxPoint(Math.round(.75*
-D.x+wc),Math.round(.75*D.y+xc)));D=!1;if((null==w.geometry.points||0==w.geometry.points.length)&&null!=p.Endpoint1.Block&&p.Endpoint1.Block==p.Endpoint2.Block&&null!=u&&null!=e){D=new mxPoint(Math.round(u.geometry.x+u.geometry.width*p.Endpoint1.LinkX),Math.round(u.geometry.y+u.geometry.height*p.Endpoint1.LinkY));P=new mxPoint(Math.round(e.geometry.x+e.geometry.width*p.Endpoint2.LinkX),Math.round(e.geometry.y+e.geometry.height*p.Endpoint2.LinkY));wc=D.x==P.x?Math.abs(D.x-u.geometry.x)<u.geometry.width/
-2?-20:20:0;xc=D.y==P.y?Math.abs(D.y-u.geometry.y)<u.geometry.height/2?-20:20:0;var Z=new mxPoint(D.x+wc,D.y+xc),aa=new mxPoint(P.x+wc,P.y+xc);Z.generated=!0;aa.generated=!0;w.geometry.points=[Z,aa];D=D.x==P.x}null!=u&&u.geometry.isRotated||(Z=Fe(w,p.Endpoint1,!0,D,null,u));null!=u&&null!=Z&&(null==u.stylePoints&&(u.stylePoints=[]),u.stylePoints.push(Z),LucidImporter.stylePointsSet.add(u));null!=e&&e.geometry.isRotated||(aa=Fe(w,p.Endpoint2,!1,D,null,e));null!=e&&null!=aa&&(null==e.stylePoints&&(e.stylePoints=
-[]),e.stylePoints.push(aa),LucidImporter.stylePointsSet.add(e))}}null!=F.id&&(w.style+=";lucidId="+F.id+";");w.lucidchartObject=F}function vb(w,F){var D=h(w).Properties,u=D.BoundingBox;null==w.Class||"AWS"!==w.Class.substring(0,3)&&"Amazon"!==w.Class.substring(0,6)||w.Class.includes("AWS19")||(u.h-=20);v=new mxCell("",new mxGeometry(Math.round(.75*u.x+wc),Math.round(.75*u.y+xc),Math.round(.75*u.w),Math.round(.75*u.h)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;Qb(v,w,F);
-v.zOrder=D.ZOrder;Ge(v,D);D.Hidden&&(v.visible=!1);return v}function yf(w,F,D,u){var e=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");e.geometry.relative=!0;e.edge=!0;Qb(e,w,F,D,u,!0);var P=h(w).Properties,r=null!=P?P.TextAreas:w.TextAreas;if(null!=r){for(var p=0;void 0!==r["t"+p];){var Z=r["t"+p];null!=Z&&(e=Pd(Z,e,w,D,u,F));p++}for(p=0;void 0!==r["m"+p]||1>p;)Z=r["m"+p],null!=Z&&(e=Pd(Z,e,w,D,u,F)),p++;null!=r.Text&&(e=Pd(r.Text,e,w,D,u,F));r=null!=P?P.TextAreas:w.TextAreas;null!=
-r.Message&&(e=Pd(r.Message,e,w,D,u,F))}w.Hidden&&(e.visible=!1);return e}function Pd(w,F,D,u,e,P){var r=2*(parseFloat(w.Location)-.5);isNaN(r)&&null!=w.Text&&null!=w.Text.Location&&(r=2*(parseFloat(w.Text.Location)-.5));P=m(w);var p=mxCell;r=new mxGeometry(isNaN(r)?0:r,0,0,0);var Z=ge;var aa=D;if(G)aa=lb;else{var V="13",wa="";if(null!=w&&null!=w.Value&&null!=w.Value.m){wa=A(w.Value.m);for(var ka=0;ka<w.Value.m.length;ka++)if("s"==w.Value.m[ka].n&&w.Value.m[ka].v)V=z(.75*parseFloat(w.Value.m[ka].v));
-else if("c"==w.Value.m[ka].n){var na=R(w.Value.m[ka].v);null!=na&&(na=na.substring(0,7));"#000000"==na&&(na="default");wa+="fontColor="+na+";"}wa+=k(aa);lb=""}aa=wa+";fontSize="+V+";"}p=new p(P,r,Z+aa);p.geometry.relative=!0;p.vertex=!0;if(w.Side)try{D.Action&&D.Action.Properties&&(D=D.Action.Properties);if(null!=u&&null!=e){var ra=u.geometry,Aa=e.geometry;var ma=Math.abs(ra.x+ra.width*D.Endpoint1.LinkX-(Aa.x+Aa.width*D.Endpoint2.LinkX));var Ba=Math.abs(ra.y+ra.height*D.Endpoint1.LinkY-(Aa.y+Aa.height*
-D.Endpoint2.LinkY))}else ma=Math.abs(D.Endpoint1.x-D.Endpoint2.x),Ba=Math.abs(D.Endpoint1.y-D.Endpoint2.y);var Pa=mxUtils.getSizeForString(P.replace(/\n/g,"<br>"));p.geometry.offset=0==ma||ma<Ba?new mxPoint(Math.sign(D.Endpoint1.y-D.Endpoint2.y)*w.Side*(Pa.width/2+5+ma),0):new mxPoint(0,Math.sign(D.Endpoint2.x-D.Endpoint1.x)*w.Side*(Pa.height/2+5+Ba))}catch(Ca){console.log(Ca)}p.lucidchartObject=w;F.insert(p);return F}function Zb(w,F,D,u){null!=F&&null!=u&&(F=u(F));return null!=F&&F!=D?w+"="+F+";":
-""}function Fe(w,F,D,u,e,P){if(null!=F&&null!=F.LinkX&&null!=F.LinkY&&(F.LinkX=Math.round(1E3*F.LinkX)/1E3,F.LinkY=Math.round(1E3*F.LinkY)/1E3,null!=P&&P.style&&-1<P.style.indexOf("flipH=1")&&(F.LinkX=1-F.LinkX),null!=P&&P.style&&-1<P.style.indexOf("flipV=1")&&(F.LinkY=1-F.LinkY),w.style+=(u?"":(D?"exitX":"entryX")+"="+F.LinkX+";")+(e?"":(D?"exitY":"entryY")+"="+F.LinkY+";")+(D?"exitPerimeter":"entryPerimeter")+"=0;",F.Inside))return"["+F.LinkX+","+F.LinkY+",0]"}function He(w,F,D,u,e){try{var P=function(ma,
-Ba){if(null!=ma)if(Array.isArray(ma))for(var Pa=0;Pa<ma.length;Pa++)P(ma[Pa].p?ma[Pa].p:ma[Pa],Ba);else Ba=Ba?.75:1,p=Math.min(p,ma.x*Ba),Z=Math.min(Z,ma.y*Ba),aa=Math.max(aa,(ma.x+(ma.width?ma.width:0))*Ba),V=Math.max(V,(ma.y+(ma.height?ma.height:0))*Ba)};null!=w.Action&&null!=w.Action.Properties&&(w=w.Action.Properties);var r=new mxCell("",new mxGeometry,"group;dropTarget=0;pointerEvents=0;");r.vertex=!0;r.zOrder=w.ZOrder;var p=Infinity,Z=Infinity,aa=-Infinity,V=-Infinity,wa=w.Members;e=[];for(var ka in wa){var na=
-F[ka];null!=na?e.push(na):null!=u[ka]&&(e.push(u[ka]),D[ka]=r)}e.sort(function(ma,Ba){ma=ma.zOrder||ma.ZOrder;Ba=Ba.zOrder||Ba.ZOrder;return null!=ma&&null!=Ba?ma>Ba?1:ma<Ba?-1:0:0});for(D=F=0;D<e.length;D++)if(na=e[D],na.vertex)P(na.geometry),na.parent=r,r.insert(na,F++);else{var ra=null!=na.Action&&na.Action.Properties?na.Action.Properties:na;P(ra.Endpoint1,!0);P(ra.Endpoint2,!0);P(ra.ElbowPoints,!0);P(ra.ElbowControlPoints,!0);P(ra.BezierJoints,!0);P(ra.Joints,!0)}r.geometry.x=p;r.geometry.y=Z;
-r.geometry.width=aa-p;r.geometry.height=V-Z;if(null!=r.children)for(D=0;D<r.children.length;D++){var Aa=r.children[D].geometry;Aa.x-=p;Aa.y-=Z}w.IsState?(r.lucidLayerInfo={name:w.Name,visible:!w.Hidden,locked:w.Restrictions.b&&w.Restrictions.p&&w.Restrictions.c},r.style+="container=1;collapsible=0;recursiveResize=0;"):w.Hidden&&(r.visible=!1);r.lucidchartObject=w;return r}catch(ma){console.log(ma)}}function zf(w,F,D){LucidImporter.hasMath=!1;LucidImporter.stylePointsSet=new Set;w.getModel().beginUpdate();
-try{var u=function(Ca,ua){function Na(Ra,la,Ma){null==Ra||Ra.generated||(Ra.x-=la,Ra.y-=Ma)}var Ka=null!=ua.Endpoint1.Block?P[ua.Endpoint1.Block]:null,La=null!=ua.Endpoint2.Block?P[ua.Endpoint2.Block]:null,l=yf(Ca,w,Ka,La);if(ua.Endpoint1&&ua.Endpoint1.Line||ua.Endpoint2&&ua.Endpoint2.Line)console.log("Edge to Edge case"),LucidImporter.hasUnknownShapes=!0;null==Ka&&null!=ua.Endpoint1&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.75*ua.Endpoint1.x),Math.round(.75*ua.Endpoint1.y)),!0);null==
-La&&null!=ua.Endpoint2&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.75*ua.Endpoint2.x),Math.round(.75*ua.Endpoint2.y)),!1);Ca=r[Ca.id];if(null!=Ca){for(var Ia=l.geometry,bb=ua=0,Ea=Ca;null!=Ea&&null!=Ea.geometry;)ua+=Ea.geometry.x,bb+=Ea.geometry.y,Ea=Ea.parent;Na(Ia.sourcePoint,ua,bb);Na(Ia.targetPoint,ua,bb);Na(Ia.offset,ua,bb);Ia=Ia.points;if(null!=Ia)for(Ea=0;Ea<Ia.length;Ea++)Na(Ia[Ea],ua,bb)}e.push(w.addCell(l,Ca,null,Ka,La))},e=[],P={},r={},p={},Z=[];null!=F.Lines&&(p=F.Lines);if(null!=
-F.Blocks){Object.assign(p,F.Blocks);for(var aa in F.Blocks){var V=F.Blocks[aa];V.id=aa;var wa=!1;null!=Od[V.Class]&&"mxCompositeShape"==Od[V.Class]&&(P[V.id]=Ie(V,e,w),Z.push(V),wa=!0);wa||(P[V.id]=vb(V,w),Z.push(V))}if(null!=F.Generators)for(aa in F.Generators)"OrgChart2018"==F.Generators[aa].ClassName?(LucidImporter.hasUnknownShapes=!0,Je(aa,F.Generators[aa],F.Data,w,P)):LucidImporter.hasUnknownShapes=!0}else{for(var ka=0;ka<F.Objects.length;ka++)V=F.Objects[ka],p[V.id]=V,null!=V.Action&&"mxCompositeShape"==
-Od[V.Action.Class]?P[V.id]=Ie(V,e,w):V.IsBlock&&null!=V.Action&&null!=V.Action.Properties?P[V.id]=vb(V,w):V.IsGenerator&&V.GeneratorData&&V.GeneratorData.p&&("OrgChart2018"==V.GeneratorData.p.ClassName?(LucidImporter.hasUnknownShapes=!0,Je(V.GeneratorData.id,V.GeneratorData.p,V.GeneratorData.gs,w,P)):LucidImporter.hasUnknownShapes=!0),Z.push(V);for(ka=0;ka<F.Objects.length;ka++)if(V=F.Objects[ka],V.IsGroup){var na=He(V,P,r,p,w);na&&(P[V.id]=na,Z.push(V))}}if(null!=F.Groups)try{for(aa in F.Groups)if(V=
-F.Groups[aa],V.id=aa,na=He(V,P,r,p,w))P[V.id]=na,Z.push(V)}catch(Ca){console.log(Ca)}if(null!=F.Lines)for(aa in F.Lines)V=F.Lines[aa],V.id=aa,Z.push(V);Z.sort(function(Ca,ua){Ca=h(Ca);ua=h(ua);Ca=null!=Ca.Properties?Ca.Properties.ZOrder:Ca.ZOrder;ua=null!=ua.Properties?ua.Properties.ZOrder:ua.ZOrder;return null!=Ca&&null!=ua?Ca>ua?1:Ca<ua?-1:0:0});for(ka=0;ka<Z.length;ka++){V=Z[ka];var ra=P[V.id];if(null!=ra){if(null==ra.parent)if(ra.lucidLayerInfo){var Aa=new mxCell;w.addCell(Aa,w.model.root);Aa.setVisible(ra.lucidLayerInfo.visible);
-ra.lucidLayerInfo.locked&&Aa.setStyle("locked=1;");Aa.setValue(ra.lucidLayerInfo.name);delete ra.lucidLayerInfo;w.addCell(ra,Aa)}else e.push(w.addCell(ra))}else V.IsLine&&null!=V.Action&&null!=V.Action.Properties?u(V,V.Action.Properties):null!=V.StrokeStyle&&u(V,V)}LucidImporter.stylePointsSet.forEach(function(Ca){Ca.style="points=["+Ca.stylePoints.join(",")+"];"+Ca.style;delete Ca.stylePoints});try{var ma=w.getModel().cells;w.view.validate();for(var Ba in ma){var Pa=ma[Ba];null!=Pa&&(Af(w,Pa),Bf(w,
-Pa),Cf(w,Pa),"1"==urlParams.lucidchartObject&&null!=Pa.lucidchartObject&&Za(Pa,"lucidchartObject",JSON.stringify(Pa.lucidchartObject,null,2),w),delete Pa.lucidchartObject,delete Pa.zOrder)}}catch(Ca){console.log(Ca)}D||w.setSelectionCells(e)}finally{w.getModel().endUpdate()}}function Cf(w,F){if(w.model.contains(F)&&F.edge){var D=w.view.getState(F);if(null!=D&&null!=F.children){var u=mxRectangle.fromRectangle(D.paintBounds);u.grow(5);for(var e=0;e<F.children.length;e++){var P=w.view.getState(F.children[e]);
-null==P||mxUtils.contains(u,P.paintBounds.x,P.paintBounds.y)||(P.cell.geometry.offset=new mxPoint(0,0))}}w=F.lucidchartObject;null!=w&&"elbow"==w.Shape&&null==w.ElbowControlPoints&&null==w.ElbowPoints&&null!=D.style.exitX&&null!=D.style.exitY&&null!=D.style.entryX&&null!=D.style.entryY&&(F.style=mxUtils.setStyle(F.style,"exitX",Math.round(20*D.style.exitX)/20),F.style=mxUtils.setStyle(F.style,"exitY",Math.round(20*D.style.exitY)/20),F.style=mxUtils.setStyle(F.style,"entryX",Math.round(20*D.style.entryX)/
-20),F.style=mxUtils.setStyle(F.style,"entryY",Math.round(20*D.style.entryY)/20))}}function Bf(w,F){if(w.model.contains(F)&&null!=F.style&&""!=F.style){w=F.style.split(";");for(var D={},u=[],e=w.length-1;0<=e;e--){var P=w[e].split("=");if(2!=P.length||null==D[P[0]])D[P[0]]=P[1],""!=w[e]&&u.push(w[e])}F.style=u.reverse().join(";")+";"}}function Af(w,F){if(w.model.contains(F)&&null!=F.children&&null!=F.geometry&&F.vertex&&"group;dropTarget=0;pointerEvents=0;"==F.style){for(var D=null,u=0;u<F.children.length;u++)if(F.children[u].vertex){var e=
-F.children[u].geometry;if(null!=e&&0==e.x&&0==e.y&&e.width==F.geometry.width&&e.height==F.geometry.height){if(null!=D)return;D=F.children[u]}}F=D;if(null!=F&&(D=F.parent,""==w.convertValueToString(D))){if(null!=F.edges)for(u=0;u<F.edges.length;u++)F.edges[u].source==F&&F.edges[u].setTerminal(F.parent,!0),F.edges[u].target==F&&F.edges[u].setTerminal(F.parent,!1);if(null!=F.children&&0<F.children.length)for(e=F.children.slice(),u=0;u<e.length;u++)D.insert(e[u]);w.cellLabelChanged(D,w.convertValueToString(F));
-D.style=mxUtils.setStyle(mxUtils.setStyle(F.style,"container","1"),"collapsible","0");F.removeFromParent()}}}function Df(){var w=new Graph;w.setExtendParents(!1);w.setExtendParentsOnAdd(!1);w.setConstrainChildren(!1);w.setHtmlLabels(!0);w.getModel().maintainEdgeParent=!1;return w}function Qd(w,F,D,u,e,P,r,p){this.nurbsValues=[1,3,0,0,100*(w+D),100-100*(1-(F+u)),0,1,100*(e+r),100-100*(1-(P+p)),0,1]}function Ke(w,F){try{for(var D=[],u=F.BoundingBox.w,e=F.BoundingBox.h,P=0;P<F.Shapes.length;P++){var r=
-F.Shapes[P],p=r.FillColor,Z=r.StrokeColor,aa=r.LineWidth,V=r.Points,wa=r.Lines,ka=['<shape strokewidth="inherit"><foreground>'];ka.push("<path>");for(var na=null,ra=0;ra<wa.length;ra++){var Aa=wa[ra];if(na!=Aa.p1){var ma=V[Aa.p1].x,Ba=V[Aa.p1].y;ma=100*ma/u;Ba=100*Ba/e;ma=Math.round(100*ma)/100;Ba=Math.round(100*Ba)/100;ka.push('<move x="'+ma+'" y="'+Ba+'"/>')}if(null!=Aa.n1){var Pa=V[Aa.p2].x,Ca=V[Aa.p2].y,ua=u,Na=e,Ka=new Qd(V[Aa.p1].x/u,V[Aa.p1].y/e,Aa.n1.x/u,Aa.n1.y/e,V[Aa.p2].x/u,V[Aa.p2].y/
-e,Aa.n2.x/u,Aa.n2.y/e);if(2<=Ka.getSize()){Ka.getX(0);Ka.getY(0);Ka.getX(1);Ka.getY(1);Pa=Math.round(100*Pa/ua*100)/100;Ca=Math.round(100*Ca/Na*100)/100;ua=[];Na=[];for(var La=[],l=Ka.getSize(),Ia=0;Ia<l-1;Ia+=3)ua.push(new mxPoint(Ka.getX(Ia),Ka.getY(Ia))),Na.push(new mxPoint(Ka.getX(Ia+1),Ka.getY(Ia+1))),Ia<l-2?La.push(new mxPoint(Ka.getX(Ia+2),Ka.getY(Ia+2))):La.push(new mxPoint(Pa,Ca));var bb="";for(Ia=0;Ia<ua.length;Ia++)bb+='<curve x1="'+ua[Ia].x+'" y1="'+ua[Ia].y+'" x2="'+Na[Ia].x+'" y2="'+
-Na[Ia].y+'" x3="'+La[Ia].x+'" y3="'+La[Ia].y+'"/>';var Ea=bb}else Ea=void 0;ka.push(Ea)}else ma=V[Aa.p2].x,Ba=V[Aa.p2].y,ma=100*ma/u,Ba=100*Ba/e,ma=Math.round(100*ma)/100,Ba=Math.round(100*Ba)/100,ka.push('<line x="'+ma+'" y="'+Ba+'"/>');na=Aa.p2}ka.push("</path>");ka.push("<fillstroke/>");ka.push("</foreground></shape>");D.push({shapeStencil:"stencil("+Graph.compress(ka.join(""))+")",FillColor:p,LineColor:Z,LineWidth:aa})}LucidImporter.stencilsMap[w]={text:F.Text,w:u,h:e,x:F.BoundingBox.x,y:F.BoundingBox.y,
-stencils:D}}catch(Ra){console.log("Stencil parsing error:",Ra)}}function sc(w,F,D,u,e,P,r,p){w=new mxCell("",new mxGeometry(w,F,0,0),"strokeColor=none;fillColor=none;");w.vertex=!0;r.insert(w);P=[w];D=D.clone();p.insertEdge(D,!1);w.insertEdge(D,!0);P.push(D);u.push(e.addCell(D,null,null,null,null))}function fb(w,F,D,u,e,P,r,p,Z){w=new mxCell("",new mxGeometry(w,F,0,0),"strokeColor=none;fillColor=none;");w.vertex=!0;Z.insert(w);D=new mxCell("",new mxGeometry(D,u,0,0),"strokeColor=none;fillColor=none;");
-D.vertex=!0;Z.insert(D);p=[D];e=e.clone();w.insertEdge(e,!0);D.insertEdge(e,!1);p.push(e);P.push(r.addCell(e,null,null,null,null))}function Sa(w,F,D,u,e,P){u.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";u.style+=b(u.style,e,P,u);F=m(e);u.vertex=!0;w=new mxCell(F,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+mxConstants.STYLE_SHAPE+"=mxgraph.gcp2."+w+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;");
-w.style+=b(w.style,e,P,w,G);w.geometry.relative=!0;w.geometry.offset=new mxPoint(5,-12);w.vertex=!0;u.insert(w)}function Wa(w,F,D,u,e,P,r,p){e="transparent"!=w?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";P.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";P.style+=b(P.style,r,p,P);P.value=m(r);P.vertex=!0;w=new mxCell(null,new mxGeometry(.5,0,.7*u*F,.7*u*D),e+w+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;");
-w.geometry.relative=!0;w.geometry.offset=new mxPoint(-F*u*.35,10+(1-D)*u*.35);w.vertex=!0;w.style+=b(w.style,r,p,w,G);P.insert(w)}function Xc(w,F){return null!=w&&null!=F&&(F==mxConstants.STYLE_ALIGN+"Global"&&(F=mxConstants.STYLE_ALIGN),w.includes(";"+F+"=")||w.substring(0,F.length+1)==F+"=")?!0:!1}function Rd(w,F){function D(u){u=Math.round(parseInt("0x"+u)*F).toString(16);return 1==u.length?"0"+u:u}return"#"+D(w.substr(1,2))+D(w.substr(3,2))+D(w.substr(5,2))}function Ie(w,F,D){var u=h(w),e=u.Properties,
-P=e.BoundingBox,r=Math.round(.75*P.w),p=Math.round(.75*P.h),Z=Math.round(.75*P.x+wc),aa=Math.round(.75*P.y+xc);null==w.Class||"GCPInputDatabase"!==w.Class&&"GCPInputRecord"!==w.Class&&"GCPInputPayment"!==w.Class&&"GCPInputGateway"!==w.Class&&"GCPInputLocalCompute"!==w.Class&&"GCPInputBeacon"!==w.Class&&"GCPInputStorage"!==w.Class&&"GCPInputList"!==w.Class&&"GCPInputStream"!==w.Class&&"GCPInputMobileDevices"!==w.Class&&"GCPInputCircuitBoard"!==w.Class&&"GCPInputLive"!==w.Class&&"GCPInputUsers"!==w.Class&&
-"GCPInputLaptop"!==w.Class&&"GCPInputApplication"!==w.Class&&"GCPInputLightbulb"!==w.Class&&"GCPInputGame"!==w.Class&&"GCPInputDesktop"!==w.Class&&"GCPInputDesktopAndMobile"!==w.Class&&"GCPInputWebcam"!==w.Class&&"GCPInputSpeaker"!==w.Class&&"GCPInputRetail"!==w.Class&&"GCPInputReport"!==w.Class&&"GCPInputPhone"!==w.Class&&"GCPInputBlank"!==w.Class||(p+=20);v=new mxCell("",new mxGeometry(Z,aa,r,p),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;v.zOrder=e.ZOrder;var V=null!=w.Class?
-w.Class:null!=u?u.Class:null;switch(V){case "BraceNoteBlock":case "UI2BraceNoteBlock":var wa=!1;null!=e.BraceDirection&&"Right"==e.BraceDirection&&(wa=!0);var ka=null,na=null,ra=m(e),Aa=e.Rotation?mxUtils.getSizeForString(ra.replace(/\n/g,"<br>"),null,null,Math.abs(r-.125*p)):{width:0,height:0};wa?(ka=new mxCell("",new mxGeometry(r-.125*p,0,.125*p,p),"shape=curlyBracket;rounded=1;"),na=new mxCell("",new mxGeometry(Aa.height,-2*Aa.width,r-.125*p,p),"strokeColor=none;fillColor=none;")):(ka=new mxCell("",
-new mxGeometry(0,0,.125*p,p),"shape=curlyBracket;rounded=1;flipH=1;"),na=new mxCell("",new mxGeometry(.125*p-Aa.height,Aa.width,r-.125*p,p),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);ka.vertex=!0;v.insert(ka);ka.style+=b(ka.style,e,u,ka);na.vertex=!0;na.value=ra;v.insert(na);na.style+=b(na.style,e,u,na,G);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var ma=
-"MainText",Ba=null,Pa="HeaderFill_",Ca="BodyFill_",ua=25,Na=25,Ka=0;if(null!=e.Lanes)Ka=e.Lanes.length;else if(null!=e.PrimaryLane){var La=function(gb){if(gb)32>gb?gb=32:208<gb&&(gb=208);else return 0;return.75*gb};Ka=e.PrimaryLane.length;for(var l=p=r=0;l<Ka;l++)r+=e.PrimaryLane[l];for(l=0;l<e.SecondaryLane.length;l++)p+=e.SecondaryLane[l];ua=La(e.PrimaryPoolTitleHeight);Na=La(e.PrimaryLaneTitleHeight);r*=.75;p=.75*p+ua+Na;v.geometry.width=r;v.geometry.height=p;ma="poolPrimaryTitleKey";Pa="PrimaryLaneHeaderFill_";
-Ca="CellFill_0,";Ba=e.PrimaryLaneTextAreaIds;if(null==Ba)for(Ba=[],l=0;l<Ka;l++)Ba.push("Primary_"+l)}if(0==e.IsPrimaryLaneVertical){e.Rotation=-1.5707963267948966;var Ia=v.geometry.x,bb=v.geometry.y}var Ea=0!=e.Rotation,Ra=0<V.indexOf("Pool"),la=0==V.indexOf("BPMN"),Ma=null!=e[ma];v.style=(Ra?"swimlane;startSize="+ua+";":"fillColor=none;strokeColor=none;pointerEvents=0;fontStyle=0;")+"html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;"+(Ea?"horizontalStack=0;":
-"");v.style+=b(v.style,e,u,v);Ma&&(v.value=m(e[ma]),v.style+=(G?"overflow=block;blockSpacing=1;fontSize=13;"+lb:f(e[ma])+q(e[ma])+k(e[ma])+t(e[ma])+C(e[ma],v)+I(e[ma])+N(e[ma])+K(e[ma])+O(e[ma]))+S(e[ma])+H(e[ma]));for(var ya=0,za=[],Pb="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;fontStyle=0;startSize="+Na+";dropTarget=0;rounded=0;"+(Ea?"horizontal=0;":"")+(la?"swimlaneLine=0;fillColor=none;":""),fa=e.Rotation=0;fa<Ka;fa++){if(null==Ba){var xb=parseFloat(e.Lanes[fa].p);
-l=parseInt(e.Lanes[fa].tid)||fa;var Va="Lane_"+l}else xb=.75*e.PrimaryLane[fa]/r,l=fa,Va=Ba[fa];var rc=r*ya,vc=Ra?ua:0;za.push(new mxCell("",Ea?new mxGeometry(vc,rc,p-vc,r*xb):new mxGeometry(rc,vc,r*xb,p-vc),Pb));za[fa].vertex=!0;v.insert(za[fa]);za[fa].value=m(e[Va]);za[fa].style+=b(za[fa].style,e,u,za[fa],G)+(G?"fontSize=13;":f(e[Va])+q(e[Va])+t(e[Va])+C(e[Va],za[fa])+I(e[Va])+N(e[Va])+K(e[Va])+O(e[Va]))+S(e[Va])+H(e[Va])+M(e[Pa+l])+L(e[Ca+l]);ya+=xb}null!=Ia&&(v.geometry.x=Ia,v.geometry.y=bb);
-break;case "UMLMultidimensionalSwimlane":var Fb=0,Rb=0,Kb=null,$b=null;if(null!=e.Rows&&null!=e.Columns){Fb=e.Rows.length;Rb=e.Columns.length;var Xa=.75*e.TitleHeight||25,pb=.75*e.TitleWidth||25}else if(null!=e.PrimaryLane&&null!=e.SecondaryLane){Fb=e.SecondaryLane.length;Rb=e.PrimaryLane.length;pb=.75*e.SecondaryLaneTitleHeight||25;Xa=.75*e.PrimaryLaneTitleHeight||25;for(l=p=r=0;l<Fb;l++)p+=e.SecondaryLane[l];for(l=0;l<Rb;l++)r+=e.PrimaryLane[l];r=.75*r+pb;p=.75*p+Xa;v.geometry.width=r;v.geometry.height=
-p;Kb=e.SecondaryLaneTextAreaIds;$b=e.PrimaryLaneTextAreaIds}v.style="group;";var Nc=new mxCell("",new mxGeometry(0,Xa,r,p-Xa),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;horizontalStack=0;");Nc.vertex=!0;var Fc=new mxCell("",new mxGeometry(pb,0,r-pb,p),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;");Fc.vertex=!0;v.insert(Nc);
-v.insert(Fc);aa=0;var Gc="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;horizontal=0;fontStyle=0;startSize="+pb+";";for(fa=0;fa<Fb;fa++){if(null==Kb){var Sd=.75*parseInt(e.Rows[fa].height);l=parseInt(e.Rows[fa].id)||fa;var Sb="Row_"+l}else Sd=.75*e.SecondaryLane[fa],Sb=Kb[fa];var Hc=new mxCell("",new mxGeometry(0,aa,r,Sd),Gc);aa+=Sd;Hc.vertex=!0;Nc.insert(Hc);Hc.value=m(e[Sb]);Hc.style+=b(Hc.style,e,u,Hc,G)+(G?"fontSize=13;":f(e[Sb])+q(e[Sb])+t(e[Sb])+C(e[Sb],
-Hc)+I(e[Sb])+N(e[Sb])+K(e[Sb])+O(e[Sb]))+S(e[Sb])+H(e[Sb])}var Ef="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;fontStyle=0;startSize="+Xa+";";for(fa=Z=0;fa<Rb;fa++){if(null==$b){var Yc=.75*parseInt(e.Columns[fa].width);l=parseInt(e.Columns[fa].id)||fa;var Tb="Column_"+l}else Yc=.75*e.PrimaryLane[fa],Tb=$b[fa];var Ic=new mxCell("",new mxGeometry(Z,0,Yc,p),Ef);Z+=Yc;Ic.vertex=!0;Fc.insert(Ic);Ic.value=m(e[Tb]);Ic.style+=b(Ic.style,e,u,Ic,G)+(G?"fontSize=13;":
-f(e[Tb])+q(e[Tb])+t(e[Tb])+C(e[Tb],Ic)+I(e[Tb])+N(e[Tb])+K(e[Tb])+O(e[Tb]))+S(e[Tb])+H(e[Tb])}break;case "UMLStateBlock":if(0==e.Composite)v.style="rounded=1;arcSize=20",v.value=m(e.State,!0),v.style+=b(v.style,e,u,v,G);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=m(e.State,!0);v.style+=b(v.style,e,u,v,G);v.style+=ba(e,u).replace("fillColor","swimlaneFillColor");var yb=
-new mxCell("",new mxGeometry(0,25,r,p-25),"rounded=1;arcSize=20;strokeColor=none;fillColor=none");yb.value=m(e.Action,!0);yb.style+=b(yb.style,e,u,yb,G);yb.vertex=!0;v.insert(yb)}break;case "GSDFDProcessBlock":var he=Math.round(.75*e.nameHeight);v.style="shape=swimlane;html=1;rounded=1;arcSize=10;collapsible=0;fontStyle=0;startSize="+he;v.value=m(e.Number,!0);v.style+=b(v.style,e,u,v,G);v.style+=ba(e,u).replace("fillColor","swimlaneFillColor");yb=new mxCell("",new mxGeometry(0,he,r,p-he),"rounded=1;arcSize=10;strokeColor=none;fillColor=none");
-yb.value=m(e.Text,!0);yb.style+=b(yb.style,e,u,yb,G);yb.vertex=!0;v.insert(yb);break;case "AndroidDevice":if(null!=e.AndroidDeviceName){var mb=ca(e,u,v);v.style="fillColor=#000000;strokeColor=#000000;";var yc=null,Zc=null,$c=null;if("Tablet"==e.AndroidDeviceName||"Mini Tablet"==e.AndroidDeviceName||"custom"==e.AndroidDeviceName&&"Tablet"==e.CustomDeviceType)v.style+="shape=mxgraph.android.tab2;",yc=new mxCell("",new mxGeometry(.112,.077,.77*r,.85*p),mb),e.KeyboardShown&&(Zc=new mxCell("",new mxGeometry(.112,
-.727,.77*r,.2*p),"shape=mxgraph.android.keyboard;"+mb)),e.FullScreen||($c=new mxCell("",new mxGeometry(.112,.077,.77*r,.03*p),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*p+";"+mb));else if("Large Phone"==e.AndroidDeviceName||"Phone"==e.AndroidDeviceName||"custom"==e.AndroidDeviceName&&"Phone"==e.CustomDeviceType)v.style+="shape=mxgraph.android.phone2;",yc=new mxCell("",new mxGeometry(.04,.092,.92*r,.816*p),mb),e.KeyboardShown&&(Zc=new mxCell("",
-new mxGeometry(.04,.708,.92*r,.2*p),"shape=mxgraph.android.keyboard;"+mb)),e.FullScreen||($c=new mxCell("",new mxGeometry(.04,.092,.92*r,.03*p),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*p+";"+mb));yc.vertex=!0;yc.geometry.relative=!0;v.insert(yc);"Dark"==e.Scheme?yc.style+="fillColor=#111111;":"Light"==e.Scheme&&(yc.style+="fillColor=#ffffff;");null!=Zc&&(Zc.vertex=!0,Zc.geometry.relative=!0,v.insert(Zc));null!=$c&&($c.vertex=!0,$c.geometry.relative=
-!0,v.insert($c))}v.style+=b(v.style,e,u,v);break;case "AndroidAlertDialog":var ac=new mxCell("",new mxGeometry(0,0,r,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ac.vertex=!0;v.insert(ac);var Qa=new mxCell("",new mxGeometry(0,25,r,10),"shape=line;strokeColor=#33B5E5;");Qa.vertex=!0;v.insert(Qa);var qd=new mxCell("",new mxGeometry(0,30,r,p-30),"strokeColor=none;fillColor=none;verticalAlign=top;");qd.vertex=!0;v.insert(qd);var ib=new mxCell("",new mxGeometry(0,p-25,.5*r,25),"fillColor=none;");
-ib.vertex=!0;v.insert(ib);var jb=new mxCell("",new mxGeometry(.5*r,p-25,.5*r,25),"fillColor=none;");jb.vertex=!0;v.insert(jb);ac.value=m(e.DialogTitle);ac.style+=a(e.DialogTitle,G);qd.value=m(e.DialogText);qd.style+=a(e.DialogText,G);ib.value=m(e.Button_0);ib.style+=a(e.Button_0,G);jb.value=m(e.Button_1);jb.style+=a(e.Button_1,G);"Dark"==e.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",ib.style+="strokeColor=#353535;",jb.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",
-ib.style+="strokeColor=#E2E2E2;",jb.style+="strokeColor=#E2E2E2;");v.style+=b(v.style,e,u,v);break;case "AndroidDateDialog":case "AndroidTimeDialog":ac=new mxCell("",new mxGeometry(0,0,r,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ac.vertex=!0;v.insert(ac);ac.value=m(e.DialogTitle);ac.style+=a(e.DialogTitle,G);Qa=new mxCell("",new mxGeometry(0,25,r,10),"shape=line;strokeColor=#33B5E5;");Qa.vertex=!0;v.insert(Qa);ib=new mxCell("",new mxGeometry(0,p-25,.5*r,25),"fillColor=none;");ib.vertex=
-!0;v.insert(ib);ib.value=m(e.Button_0);ib.style+=a(e.Button_0,G);jb=new mxCell("",new mxGeometry(.5*r,p-25,.5*r,25),"fillColor=none;");jb.vertex=!0;v.insert(jb);jb.value=m(e.Button_1);jb.style+=a(e.Button_1,G);var ad=new mxCell("",new mxGeometry(.5*r-4,41,8,4),"shape=triangle;direction=north;");ad.vertex=!0;v.insert(ad);var bd=new mxCell("",new mxGeometry(.25*r-4,41,8,4),"shape=triangle;direction=north;");bd.vertex=!0;v.insert(bd);var cd=new mxCell("",new mxGeometry(.75*r-4,41,8,4),"shape=triangle;direction=north;");
-cd.vertex=!0;v.insert(cd);var rd=new mxCell("",new mxGeometry(.375*r,50,.2*r,15),"strokeColor=none;fillColor=none;");rd.vertex=!0;v.insert(rd);rd.value=m(e.Label_1);rd.style+=a(e.Label_1,G);var sd=new mxCell("",new mxGeometry(.125*r,50,.2*r,15),"strokeColor=none;fillColor=none;");sd.vertex=!0;v.insert(sd);sd.value=m(e.Label_0);sd.style+=a(e.Label_0,G);var dd=null;"AndroidDateDialog"==w.Class&&(dd=new mxCell("",new mxGeometry(.625*r,50,.2*r,15),"strokeColor=none;fillColor=none;"),dd.vertex=!0,v.insert(dd),
-dd.value=m(e.Label_2),dd.style+=a(e.Label_2,G));var zb=new mxCell("",new mxGeometry(.43*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");zb.vertex=!0;v.insert(zb);var Ab=new mxCell("",new mxGeometry(.18*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Ab.vertex=!0;v.insert(Ab);var Le=new mxCell("",new mxGeometry(.68*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Le.vertex=!0;v.insert(Le);var td=new mxCell("",new mxGeometry(.375*r,65,.2*r,15),"strokeColor=none;fillColor=none;");td.vertex=!0;v.insert(td);
-td.value=m(e.Label_4);td.style+=a(e.Label_4,G);var ed=null;"AndroidTimeDialog"==w.Class&&(ed=new mxCell("",new mxGeometry(.3*r,65,.1*r,15),"strokeColor=none;fillColor=none;"),ed.vertex=!0,v.insert(ed),ed.value=m(e.Label_Colon),ed.style+=a(e.Label_Colon,G));var ud=new mxCell("",new mxGeometry(.125*r,65,.2*r,15),"strokeColor=none;fillColor=none;");ud.vertex=!0;v.insert(ud);ud.value=m(e.Label_3);ud.style+=a(e.Label_3,G);var vd=new mxCell("",new mxGeometry(.625*r,65,.2*r,15),"strokeColor=none;fillColor=none;");
-vd.vertex=!0;v.insert(vd);vd.value=m(e.Label_5);vd.style+=a(e.Label_5,G);var Me=new mxCell("",new mxGeometry(.43*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Me.vertex=!0;v.insert(Me);var Ne=new mxCell("",new mxGeometry(.18*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Ne.vertex=!0;v.insert(Ne);var Oe=new mxCell("",new mxGeometry(.68*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Oe.vertex=!0;v.insert(Oe);var wd=new mxCell("",new mxGeometry(.375*r,80,.2*r,15),"strokeColor=none;fillColor=none;");
-wd.vertex=!0;v.insert(wd);wd.value=m(e.Label_7);wd.style+=a(e.Label_7,G);var xd=new mxCell("",new mxGeometry(.125*r,80,.2*r,15),"strokeColor=none;fillColor=none;");xd.vertex=!0;v.insert(xd);xd.value=m(e.Label_6);xd.style+=a(e.Label_6,G);var yd=new mxCell("",new mxGeometry(.625*r,80,.2*r,15),"strokeColor=none;fillColor=none;");yd.vertex=!0;v.insert(yd);yd.value=m(e.Label_8);yd.style+=a(e.Label_8,G);var fd=new mxCell("",new mxGeometry(.5*r-4,99,8,4),"shape=triangle;direction=south;");fd.vertex=!0;v.insert(fd);
-var gd=new mxCell("",new mxGeometry(.25*r-4,99,8,4),"shape=triangle;direction=south;");gd.vertex=!0;v.insert(gd);var hd=new mxCell("",new mxGeometry(.75*r-4,99,8,4),"shape=triangle;direction=south;");hd.vertex=!0;v.insert(hd);"Dark"==e.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",ib.style+="strokeColor=#353535;",jb.style+="strokeColor=#353535;",ad.style+="strokeColor=none;fillColor=#7E7E7E;",bd.style+="strokeColor=none;fillColor=#7E7E7E;",cd.style+="strokeColor=none;fillColor=#7E7E7E;",
-fd.style+="strokeColor=none;fillColor=#7E7E7E;",gd.style+="strokeColor=none;fillColor=#7E7E7E;",hd.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",ib.style+="strokeColor=#E2E2E2;",jb.style+="strokeColor=#E2E2E2;",ad.style+="strokeColor=none;fillColor=#939393;",bd.style+="strokeColor=none;fillColor=#939393;",cd.style+="strokeColor=none;fillColor=#939393;",fd.style+="strokeColor=none;fillColor=#939393;",gd.style+="strokeColor=none;fillColor=#939393;",
-hd.style+="strokeColor=none;fillColor=#939393;");v.style+=b(v.style,e,u,v);break;case "AndroidListItems":var Bb=p,zc=0;if(e.ShowHeader){zc=8;var Oc=new mxCell("",new mxGeometry(0,0,r,zc),"strokeColor=none;fillColor=none;");Oc.vertex=!0;v.insert(Oc);Oc.value=m(e.Header);Oc.style+=a(e.Header,G);Bb-=zc;var Pe=new mxCell("",new mxGeometry(0,zc-2,r,4),"shape=line;strokeColor=#999999;");Pe.vertex=!0;v.insert(Pe)}var bc=parseInt(e.Items);0<bc&&(Bb/=bc);var X=[];Qa=[];for(l=0;l<bc;l++)X[l]=new mxCell("",
-new mxGeometry(0,zc+l*Bb,r,Bb),"strokeColor=none;fillColor=none;"),X[l].vertex=!0,v.insert(X[l]),X[l].value=m(e["Item_"+l]),X[l].style+=a(e["Item_"+l],G),0<l&&(Qa[l]=new mxCell("",new mxGeometry(0,zc+l*Bb-2,r,4),"shape=line;"),Qa[l].vertex=!0,v.insert(Qa[l]),Qa[l].style="Dark"==e.Scheme?Qa[l].style+"strokeColor=#ffffff;":Qa[l].style+"strokeColor=#D9D9D9;");v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";v.style+=b(v.style,e,u,v);
-break;case "AndroidTabs":var cc=parseInt(e.Tabs),Gb=r;0<cc&&(Gb/=cc);var Ta=[];Qa=[];for(l=0;l<cc;l++)Ta[l]=new mxCell("",new mxGeometry(l*Gb,0,Gb,p),"strokeColor=none;fillColor=none;"),Ta[l].vertex=!0,v.insert(Ta[l]),Ta[l].value=m(e["Tab_"+l]),Ta[l].style+=a(e["Tab_"+l],G),0<l&&(Qa[l]=new mxCell("",new mxGeometry(l*Gb-2,.2*p,4,.6*p),"shape=line;direction=north;"),Qa[l].vertex=!0,v.insert(Qa[l]),Qa[l].style="Dark"==e.Scheme?Qa[l].style+"strokeColor=#484848;":Qa[l].style+"strokeColor=#CCCCCC;");var Qe=
-new mxCell("",new mxGeometry(e.Selected*Gb+2,p-3,Gb-4,3),"strokeColor=none;fillColor=#33B5E5;");Qe.vertex=!0;v.insert(Qe);v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";v.style+=b(v.style,e,u,v);break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(Z),Math.round(aa+.25*p),Math.round(r),Math.round(.5*p)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;var zd=new mxCell("",new mxGeometry(0,
-0,r*e.BarPosition,Math.round(.5*p)),"strokeColor=none;fillColor=#33B5E5;");zd.vertex=!0;v.insert(zd);v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#474747;":v.style+"strokeColor=none;fillColor=#BBBBBB;";v.style+=b(v.style,e,u,v);break;case "AndroidImageBlock":v.style="Dark"==e.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+=b(v.style,e,
-u,v);break;case "AndroidTextBlock":v.style="Dark"==e.Scheme?e.ShowBorder?v.style+"fillColor=#111111;strokeColor=#ffffff;":v.style+"fillColor=#111111;strokeColor=none;":e.ShowBorder?v.style+"fillColor=#ffffff;strokeColor=#000000;":v.style+"fillColor=#ffffff;strokeColor=none;";v.value=m(e.Label);v.style+=a(e.Label,G);v.style+=b(v.style,e,u,v,G);break;case "AndroidActionBar":v.style+="strokeColor=none;";switch(e.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(e.HighlightShow){var Ac=null;Ac=e.HighlightTop?new mxCell("",new mxGeometry(0,0,r,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,p-2,r,2),"strokeColor=none;");Ac.vertex=!0;v.insert(Ac);switch(e.HighlightColor){case "Blue":Ac.style+="fillColor=#33B5E5;";break;case "Dark Gray":Ac.style+="fillColor=#B0B0B0;";break;case "White":Ac.style+="fillColor=#ffffff;"}}if(e.VlignShow){var id=new mxCell("",
-new mxGeometry(20,5,2,p-10),"shape=line;direction=north;");id.vertex=!0;v.insert(id);switch(e.VlignColor){case "Blue":id.style+="strokeColor=#244C5A;";break;case "White":id.style+="strokeColor=#ffffff;"}}v.style+=b(v.style,e,u,v);break;case "AndroidButton":v.value=m(e.Label);v.style+=a(e.Label,G)+"shape=partialRectangle;left=0;right=0;";v.style="Dark"==e.Scheme?v.style+"fillColor=#474747;strokeColor=#C6C5C6;bottom=0;":v.style+"fillColor=#DFE0DF;strokeColor=#C6C5C6;top=0;";v.style+=b(v.style,e,u,v);
-break;case "AndroidTextBox":v.value=m(e.Label);v.style+=a(e.Label,G);var Ad=new mxCell("",new mxGeometry(2,p-6,r-4,4),"shape=partialRectangle;top=0;fillColor=none;");Ad.vertex=!0;v.insert(Ad);v.style="Dark"==e.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";Ad.style=e.TextFocused?Ad.style+"strokeColor=#33B5E5;":Ad.style+"strokeColor=#A9A9A9;";v.style+=b(v.style,e,u,v);break;case "AndroidRadioButton":var Pc=null;e.Checked&&(Pc=new mxCell("",new mxGeometry(.15*
-r,.15*p,.7*r,.7*p),"ellipse;fillColor=#33B5E5;strokeWidth=1;"),Pc.vertex=!0,v.insert(Pc));"Dark"==e.Scheme?(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;strokeColor=#272727;",e.Checked?(Pc.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;fillColor=#ffffff;strokeColor=#5C5C5C;",e.Checked&&(Pc.style+="strokeColor=#999999;"));v.style+=b(v.style,e,u,v);break;case "AndroidCheckBox":var ie=
-null;e.Checked&&(ie=new mxCell("",new mxGeometry(.25*r,.05*-p,r,.8*p),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),ie.vertex=!0,v.insert(ie));v.style="Dark"==e.Scheme?v.style+"strokeWidth=1;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=1;strokeColor=#5C5C5C;fillColor=#ffffff;";v.style+=b(v.style,e,u,v);break;case "AndroidToggle":v.style="Dark"==e.Scheme?e.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#666666;":v.style+"shape=mxgraph.android.switch_off;fillColor=#666666;":
-e.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";v.style+=b(v.style,e,u,v);break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+e.BarPosition+";fillColor=#33b5e5;";v.style+=b(v.style,e,u,v);break;case "iOSSegmentedControl":cc=parseInt(e.Tabs);Gb=r;v.style+="strokeColor=none;fillColor=none;";0<cc&&(Gb/=cc);Ta=[];Qa=[];for(l=0;l<cc;l++)Ta[l]=new mxCell("",new mxGeometry(l*Gb,0,Gb,p),
-"strokeColor="+e.FillColor+";"),Ta[l].vertex=!0,v.insert(Ta[l]),Ta[l].value=m(e["Tab_"+l]),Ta[l].style+=a(e["Tab_"+l],G),Ta[l].style=e.Selected==l?Ta[l].style+ba(e,u):Ta[l].style+"fillColor=none;";v.style+=b(v.style,e,u,v);break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+e.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*e.BarPosition+";";v.style+=b(v.style,e,u,v);break;case "iOSProgressBar":v=new mxCell("",new mxGeometry(Math.round(Z),Math.round(aa+.25*p),Math.round(r),
-Math.round(.5*p)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");v.vertex=!0;zd=new mxCell("",new mxGeometry(0,0,r*e.BarPosition,Math.round(.5*p)),"strokeColor=none;"+ba(e,u));zd.vertex=!0;v.insert(zd);v.style+=b(v.style,e,u,v);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;strokeColor=#D6D6D6;";v.style+=b(v.style,e,u,v);break;case "iOSStatusBar":v.style+="shape=mxgraph.ios7ui.appBar;strokeColor=#000000;";var Da=new mxCell(m(e.Text),
-new mxGeometry(.35*r,0,.3*r,p),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.style+=a(e.Text,G);var Cb=new mxCell(m(e.Carrier),new mxGeometry(.09*r,0,.2*r,p),"strokeColor=none;fillColor=none;");Cb.vertex=!0;v.insert(Cb);Cb.style+=a(e.Carrier,G);v.style+=b(v.style,e,u,v);break;case "iOSSearchBar":v.value=m(e.Search);v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v,G)+a(e.Search,G);var Ja=new mxCell("",new mxGeometry(.3*r,.3*p,.4*p,.4*p),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");
-Ja.vertex=!0;v.insert(Ja);break;case "iOSNavBar":v.value=m(e.Title);v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+a(e.Title,G);v.style+=b(v.style,e,u,v,G);Da=new mxCell(m(e.LeftText),new mxGeometry(.03*r,0,.3*r,p),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.style+=a(e.LeftText,G);Cb=new mxCell(m(e.RightText),new mxGeometry(.65*r,0,.3*r,p),"strokeColor=none;fillColor=none;");Cb.vertex=!0;v.insert(Cb);Cb.style+=a(e.RightText,G);Ja=new mxCell("",new mxGeometry(.02*
-r,.2*p,.3*p,.5*p),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");Ja.vertex=!0;v.insert(Ja);break;case "iOSTabs":cc=parseInt(e.Tabs);Gb=r;v.style+="shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;";v.style+=b(v.style,e,u,v);0<cc&&(Gb/=cc);Ta=[];Qa=[];for(l=0;l<cc;l++)Ta[l]=new mxCell("",new mxGeometry(l*Gb,0,Gb,p),"strokeColor=none;"),Ta[l].vertex=!0,v.insert(Ta[l]),Ta[l].value=m(e["Tab_"+l]),Ta[l].style+=G?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+
-lb:f(e["Tab_"+l])+k(e["Tab_"+l])+q(e["Tab_"+l])+t(e["Tab_"+l])+C(e["Tab_"+l])+I(e["Tab_"+l])+N(e["Tab_"+l])+K(e["Tab_"+l])+O(e["Tab_"+l])+S(e["Tab_"+l]),Ta[l].style+="verticalAlign=bottom;",Ta[l].style=e.Selected==l?Ta[l].style+"fillColor=#BBBBBB;":Ta[l].style+"fillColor=none;";break;case "iOSDatePicker":var dc=new mxCell("",new mxGeometry(0,0,.5*r,.2*p),"strokeColor=none;fillColor=none;");dc.vertex=!0;v.insert(dc);dc.value=m(e.Option11);dc.style+=a(e.Option11,G);var ec=new mxCell("",new mxGeometry(.5*
-r,0,.15*r,.2*p),"strokeColor=none;fillColor=none;");ec.vertex=!0;v.insert(ec);ec.value=m(e.Option21);ec.style+=a(e.Option21,G);var fc=new mxCell("",new mxGeometry(.65*r,0,.15*r,.2*p),"strokeColor=none;fillColor=none;");fc.vertex=!0;v.insert(fc);fc.value=m(e.Option31);fc.style+=a(e.Option31,G);var gc=new mxCell("",new mxGeometry(0,.2*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");gc.vertex=!0;v.insert(gc);gc.value=m(e.Option12);gc.style+=a(e.Option12,G);var hc=new mxCell("",new mxGeometry(.5*r,.2*
-p,.15*r,.2*p),"strokeColor=none;fillColor=none;");hc.vertex=!0;v.insert(hc);hc.value=m(e.Option22);hc.style+=a(e.Option22,G);var ic=new mxCell("",new mxGeometry(.65*r,.2*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");ic.vertex=!0;v.insert(ic);ic.value=m(e.Option32);ic.style+=a(e.Option32,G);var qb=new mxCell("",new mxGeometry(0,.4*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.value=m(e.Option13);qb.style+=a(e.Option13,G);var rb=new mxCell("",new mxGeometry(.5*r,
-.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");rb.vertex=!0;v.insert(rb);rb.value=m(e.Option23);rb.style+=a(e.Option23,G);var jc=new mxCell("",new mxGeometry(.65*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");jc.vertex=!0;v.insert(jc);jc.value=m(e.Option33);jc.style+=a(e.Option33,G);var sb=new mxCell("",new mxGeometry(.8*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=m(e.Option43);sb.style+=a(e.Option43,G);var tb=new mxCell("",new mxGeometry(0,
-.6*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=m(e.Option14);tb.style+=a(e.Option14,G);var kc=new mxCell("",new mxGeometry(.5*r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");kc.vertex=!0;v.insert(kc);kc.value=m(e.Option24);kc.style+=a(e.Option24,G);var lc=new mxCell("",new mxGeometry(.65*r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");lc.vertex=!0;v.insert(lc);lc.value=m(e.Option34);lc.style+=a(e.Option34,G);var mc=new mxCell("",new mxGeometry(.8*
-r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");mc.vertex=!0;v.insert(mc);mc.value=m(e.Option44);mc.style+=a(e.Option44,G);var ub=new mxCell("",new mxGeometry(0,.8*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option15);ub.style+=a(e.Option15,G);var nc=new mxCell("",new mxGeometry(.5*r,.8*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");nc.vertex=!0;v.insert(nc);nc.value=m(e.Option25);nc.style+=a(e.Option25,G);var oc=new mxCell("",new mxGeometry(.65*
-r,.8*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");oc.vertex=!0;v.insert(oc);oc.value=m(e.Option35);oc.style+=a(e.Option35,G);zb=new mxCell("",new mxGeometry(0,.4*p-2,r,4),"shape=line;strokeColor=#888888;");zb.vertex=!0;v.insert(zb);Ab=new mxCell("",new mxGeometry(0,.6*p-2,r,4),"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v);break;case "iOSTimePicker":dc=new mxCell("",new mxGeometry(0,0,.25*r,.2*p),"strokeColor=none;fillColor=none;");
-dc.vertex=!0;v.insert(dc);dc.value=m(e.Option11);dc.style+=a(e.Option11,G);ec=new mxCell("",new mxGeometry(.25*r,0,.3*r,.2*p),"strokeColor=none;fillColor=none;");ec.vertex=!0;v.insert(ec);ec.value=m(e.Option21);ec.style+=a(e.Option21,G);gc=new mxCell("",new mxGeometry(0,.2*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");gc.vertex=!0;v.insert(gc);gc.value=m(e.Option12);gc.style+=a(e.Option12,G);hc=new mxCell("",new mxGeometry(.25*r,.2*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");hc.vertex=!0;
-v.insert(hc);hc.value=m(e.Option22);hc.style+=a(e.Option22,G);qb=new mxCell("",new mxGeometry(0,.4*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.value=m(e.Option13);qb.style+=a(e.Option13,G);rb=new mxCell("",new mxGeometry(.25*r,.4*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");rb.vertex=!0;v.insert(rb);rb.value=m(e.Option23);rb.style+=a(e.Option23,G);sb=new mxCell("",new mxGeometry(.7*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);
-sb.value=m(e.Option33);sb.style+=a(e.Option33,G);tb=new mxCell("",new mxGeometry(0,.6*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=m(e.Option14);tb.style+=a(e.Option14,G);kc=new mxCell("",new mxGeometry(.25*r,.6*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");kc.vertex=!0;v.insert(kc);kc.value=m(e.Option24);kc.style+=a(e.Option24,G);mc=new mxCell("",new mxGeometry(.7*r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");mc.vertex=!0;v.insert(mc);mc.value=
-m(e.Option34);mc.style+=a(e.Option34,G);ub=new mxCell("",new mxGeometry(0,.8*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option15);ub.style+=a(e.Option15,G);nc=new mxCell("",new mxGeometry(.25*r,.8*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");nc.vertex=!0;v.insert(nc);nc.value=m(e.Option25);nc.style+=a(e.Option25,G);zb=new mxCell("",new mxGeometry(0,.4*p-2,r,4),"shape=line;strokeColor=#888888;");zb.vertex=!0;v.insert(zb);Ab=new mxCell("",new mxGeometry(0,
-.6*p-2,r,4),"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v);break;case "iOSCountdownPicker":fc=new mxCell("",new mxGeometry(.45*r,0,.2*r,.2*p),"strokeColor=none;fillColor=none;");fc.vertex=!0;v.insert(fc);fc.value=m(e.Option31);fc.style+=a(e.Option31,G);ic=new mxCell("",new mxGeometry(.45*r,.2*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");ic.vertex=!0;v.insert(ic);ic.value=m(e.Option32);ic.style+=a(e.Option32,G);qb=new mxCell("",
-new mxGeometry(0,.4*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.value=m(e.Option13);qb.style+=a(e.Option13,G);rb=new mxCell("",new mxGeometry(.2*r,.4*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");rb.vertex=!0;v.insert(rb);rb.value=m(e.Option23);rb.style+=a(e.Option23,G);jc=new mxCell("",new mxGeometry(.45*r,.4*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");jc.vertex=!0;v.insert(jc);jc.value=m(e.Option33);jc.style+=a(e.Option33,G);sb=new mxCell("",new mxGeometry(.6*
-r,.4*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=m(e.Option43);sb.style+=a(e.Option43,G);tb=new mxCell("",new mxGeometry(0,.6*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=m(e.Option14);tb.style+=a(e.Option14,G);lc=new mxCell("",new mxGeometry(.45*r,.6*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");lc.vertex=!0;v.insert(lc);lc.value=m(e.Option34);lc.style+=a(e.Option34,G);ub=new mxCell("",new mxGeometry(0,.8*p,.25*r,
-.2*p),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option15);ub.style+=a(e.Option15,G);oc=new mxCell("",new mxGeometry(.45*r,.8*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");oc.vertex=!0;v.insert(oc);oc.value=m(e.Option35);oc.style+=a(e.Option35,G);zb=new mxCell("",new mxGeometry(0,.4*p-2,r,4),"shape=line;strokeColor=#888888;");zb.vertex=!0;v.insert(zb);Ab=new mxCell("",new mxGeometry(0,.6*p-2,r,4),"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);v.style+=
-"strokeColor=none;";v.style+=b(v.style,e,u,v);break;case "iOSBasicCell":v.value=m(e.text);v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+.75*e.SeparatorInset+";";v.style+=(G?"fontSize=13;":f(e.text)+q(e.text)+t(e.text))+H(e.text);v.style+=b(v.style,e,u,v,G);switch(e.AccessoryIndicatorType){case "Disclosure":Ja=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ja.vertex=
-!0;v.insert(Ja);break;case "DetailDisclosure":Ja=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ja.vertex=!0;v.insert(Ja);var $a=new mxCell("",new mxGeometry(.79*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");$a.vertex=!0;v.insert($a);break;case "DetailIndicator":$a=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");$a.vertex=
-!0;v.insert($a);break;case "CheckMark":Ja=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Ja.vertex=!0,v.insert(Ja)}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*e.SeparatorInset+";";v.value=m(e.subtext);v.style+=G?"fontSize=13;":f(e.subtext)+q(e.subtext)+t(e.subtext);v.style+=b(v.style,e,u,v,G);
-var cb=new mxCell("",new mxGeometry(0,.4*p,r,.6*p),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+.75*e.SeparatorInset+";");cb.vertex=!0;v.insert(cb);cb.value=m(e.text);cb.style+=G?"html=1;fontSize=13;"+lb:f(e.text)+k(e.text)+q(e.text)+t(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":Ja=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ja.vertex=!0;v.insert(Ja);break;case "DetailDisclosure":Ja=
-new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ja.vertex=!0;v.insert(Ja);$a=new mxCell("",new mxGeometry(.79*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");$a.vertex=!0;v.insert($a);break;case "DetailIndicator":$a=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");$a.vertex=!0;v.insert($a);break;case "CheckMark":Ja=new mxCell("",
-new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Ja.vertex=!0,v.insert(Ja)}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*e.SeparatorInset+";";v.value=m(e.subtext);v.style+=G?"fontSize=13;":f(e.subtext)+q(e.subtext)+t(e.subtext);v.style+=b(v.style,e,u,v,G);cb=null;switch(e.AccessoryIndicatorType){case "Disclosure":Ja=
-new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ja.vertex=!0;v.insert(Ja);cb=new mxCell("",new mxGeometry(.55*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":Ja=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ja.vertex=!0;v.insert(Ja);$a=new mxCell("",new mxGeometry(.79*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
-$a.vertex=!0;v.insert($a);cb=new mxCell("",new mxGeometry(.45*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailIndicator":$a=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");$a.vertex=!0;v.insert($a);cb=new mxCell("",new mxGeometry(.52*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "CheckMark":Ja=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;");
-Ja.vertex=!0;v.insert(Ja);cb=new mxCell("",new mxGeometry(.55*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:cb=new mxCell("",new mxGeometry(.65*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;")}cb.vertex=!0;v.insert(cb);cb.value=m(e.text);cb.style+=G?"html=1;fontSize=13;"+lb:f(e.text)+k(e.text)+q(e.text)+t(e.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";v.style+=
-b(v.style,e,u,v);var Ub=new mxCell("",new mxGeometry(0,0,.25*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");Ub.vertex=!0;v.insert(Ub);Ub.value=m(e.subtext);Ub.style+=G?"html=1;fontSize=13;"+lb:f(e.subtext)+k(e.subtext)+q(e.subtext)+t(e.subtext);cb=new mxCell("",new mxGeometry(.25*r,0,.5*r,p),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");cb.vertex=!0;v.insert(cb);cb.value=m(e.text);cb.style+=G?"html=1;fontSize=13;"+
-lb:f(e.text)+k(e.text)+q(e.text)+t(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":Ja=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ja.vertex=!0;v.insert(Ja);break;case "DetailDisclosure":Ja=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ja.vertex=!0;v.insert(Ja);$a=new mxCell("",new mxGeometry(.79*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
-$a.vertex=!0;v.insert($a);break;case "DetailIndicator":$a=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");$a.vertex=!0;v.insert($a);break;case "CheckMark":Ja=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Ja.vertex=!0,v.insert(Ja)}break;case "iOSTableGroupedSectionBreak":v.style+="shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";
-Da=new mxCell("",new mxGeometry(0,0,r,.4*p),"fillColor=none;strokeColor=none;spacing=10;align=left;");Da.vertex=!0;v.insert(Da);Da.value=m(e.text);Da.style+=G?"html=1;fontSize=13;"+lb:f(e.text)+k(e.text)+q(e.text)+t(e.text);Cb=new mxCell("",new mxGeometry(0,.6*p,r,.4*p),"fillColor=none;strokeColor=none;spacing=10;align=left;");Cb.vertex=!0;v.insert(Cb);Cb.value=m(e["bottom-text"]);Cb.style+=G?"html=1;fontSize=13;"+lb:f(e["bottom-text"])+k(e["bottom-text"])+q(e["bottom-text"])+t(e["bottom-text"]);
-break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";v.value=m(e.text);v.style+=G?"fontSize=13;":f(e.text)+q(e.text)+t(e.text);v.style+=b(v.style,e,u,v,G);break;case "SMPage":if(e.Group){v.style+="strokeColor=none;fillColor=none;";var x=new mxCell("",new mxGeometry(0,0,.9*r,.9*p),"rounded=1;arcSize=3;part=1;");x.vertex=!0;v.insert(x);x.style+=J(e,u)+ba(e,u)+Q(e,u,x)+W(e)+sa(e);var E=new mxCell("",new mxGeometry(.1*r,.1*p,.9*r,.9*
-p),"rounded=1;arcSize=3;part=1;");E.vertex=!0;v.insert(E);E.value=m(e.Text);E.style+=J(e,u)+ba(e,u)+Q(e,u,E)+W(e)+sa(e)+a(e,G);e.Future&&(x.style+="dashed=1;fixDash=1;",E.style+="dashed=1;fixDash=1;")}else v.style+="rounded=1;arcSize=3;",e.Future&&(v.style+="dashed=1;fixDash=1;"),v.value=m(e.Text),v.style+=J(e,u)+ba(e,u)+Q(e,u,v)+W(e)+sa(e)+a(e,G);v.style+=b(v.style,e,u,v,G);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":x=
+c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if(null!=D.v&&"il"==D.n)return"spacingLeft="+z(.75*D.v)+";";F++}return""}function Q(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("ir"==D.n&&null!=D.v)return"spacingRight="+z(.75*D.v)+";";F++}return""}function K(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("mt"==D.n&&null!=D.v)return"spacingTop="+z(.75*D.v)+";";F++}return""}function L(w){w=c(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("mb"==D.n&&null!=D.v)return"spacingBottom="+
+z(.75*D.v)+";";F++}return""}function S(w){return"number"===typeof w.InsetMargin?"spacing="+Math.max(0,z(.75*w.InsetMargin))+";":""}function R(w){return null!=w.Text_VAlign&&"string"===typeof w.Text_VAlign?"verticalAlign="+w.Text_VAlign+";":null!=w.Title_VAlign&&"string"===typeof w.Title_VAlign?"verticalAlign="+w.Title_VAlign+";":Zb(mxConstants.STYLE_VERTICAL_ALIGN,w.TextVAlign,"middle")}function H(w,F){return 0==w.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":Zb(mxConstants.STYLE_STROKECOLOR,P(w.LineColor),
+"#000000")}function N(w){return null!=w?mxConstants.STYLE_FILLCOLOR+"="+P(w)+";":""}function J(w){return null!=w?"swimlaneFillColor="+P(w)+";":""}function M(w,F,D){F="";if("string"===typeof w.LineColor&&(w.LineColor=V(w.LineColor),7<w.LineColor.length)){var u="0x"+w.LineColor.substring(w.LineColor.length-2,w.LineColor.length);D.style.includes("strokeOpacity")||(F+="strokeOpacity="+Math.round(parseInt(u)/2.55)+";")}"string"===typeof w.FillColor&&(w.FillColor=V(w.FillColor),7<w.FillColor.length&&(w=
+"0x"+w.FillColor.substring(w.FillColor.length-2,w.FillColor.length),D.style.includes("fillOpacity")||(F+="fillOpacity="+Math.round(parseInt(w)/2.55)+";")));return F}function T(w,F,D){var u="";if(null!=w.Rotation){w=mxUtils.toDegree(parseFloat(w.Rotation));var e=!0;0!=w&&F.Class&&("UMLSwimLaneBlockV2"==F.Class||(0<=F.Class.indexOf("Rotated")||-90==w||270==w)&&(0<=F.Class.indexOf("Pool")||0<=F.Class.indexOf("SwimLane")))?(w+=90,D.geometry.rotate90(),D.geometry.isRotated=!0,e=!1):0<=mxUtils.indexOf(wf,
+F.Class)?(w-=90,D.geometry.rotate90()):0<=mxUtils.indexOf(xf,F.Class)&&(w+=180);0!=w&&(u+="rotation="+w+";");e||(u+="horizontal=0;")}return u}function ca(w){return null!=w.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function V(w){if(w){if("object"===typeof w)try{w=w.cs[0].c}catch(F){console.log(F),w="#ffffff"}"rgb"==w.substring(0,3)?w="#"+w.match(/\d+/g).map(function(F){F=parseInt(F).toString(16);return(1==F.length?"0":"")+F}).join(""):"#"!=w.charAt(0)&&(w="#"+w)}return w}function P(w){return(w=V(w))?
+w.substring(0,7):null}function ea(w,F){return(w=V(w))&&7<w.length?F+"="+Math.round(parseInt("0x"+w.substr(7))/2.55)+";":""}function Y(w,F){if(null!=w.FillColor)if("object"===typeof w.FillColor){if(null!=w.FillColor.cs&&1<w.FillColor.cs.length)return Zb(mxConstants.STYLE_FILLCOLOR,P(w.FillColor.cs[0].c))+Zb(mxConstants.STYLE_GRADIENTCOLOR,P(w.FillColor.cs[1].c))}else return"string"===typeof w.FillColor?Zb(mxConstants.STYLE_FILLCOLOR,P(w.FillColor),"#FFFFFF"):Zb(mxConstants.STYLE_FILLCOLOR,"none");
+return""}function sa(w){return"dotted"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 4;":"dashdot"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5;":"dashdotdot"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5 1 5;":"dotdotdot"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 2;":"longdash"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=16 6;":"dashlongdash"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 6 16 6;":"dashed24"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=3 8;":
+"dashed32"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=6 5;":"dashed44"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=8 8;":null!=w.StrokeStyle&&"dashed"==w.StrokeStyle.substring(0,6)?"dashed=1;fixDash=1;":""}function oa(w){return null!=w.LineWidth?Zb(mxConstants.STYLE_STROKEWIDTH,z(.75*parseFloat(w.LineWidth)),"1"):""}function Ra(w,F,D){var u="";w.FillColor&&w.FillColor.url?(D=w.FillColor.url,"fill"==w.FillColor.pos&&(u="imageAspect=0;")):"ImageSearchBlock2"==F.Class?D=w.URL:"UserImage2Block"==
+F.Class&&null!=w.ImageFillProps&&null!=w.ImageFillProps.url&&(D=w.ImageFillProps.url);return null!=D?"image="+g(D)+";"+u:""}function la(w,F,D){null!=F.Link&&0<F.Link.length&&D.setAttributeForCell(w,"link",n(F.Link[0]));null!=F.NoteHint&&F.NoteHint.t&&D.setAttributeForCell(w,"Notes",F.NoteHint.t);var u=[],e=D.convertValueToString(w),O=!1;if(null!=e){for(var r=0;match=yf.exec(e);){var p=match[0];O=!0;if(2<p.length){var aa=p.substring(2,p.length-2);"documentName"==aa?aa="filename":"pageName"==aa?aa=
+"page":"totalPages"==aa?aa="pagecount":"page"==aa?aa="pagenumber":"date:"==aa.substring(0,5)?aa="date{"+aa.substring(5).replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy")+"}":"lastModifiedTime"==aa.substring(0,16)?aa=aa.replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy"):"i18nDate:"==aa.substring(0,9)&&(aa="date{"+aa.substring(9).replace(/i18nShort/g,"shortDate").replace(/i18nMediumWithTime/g,"mmm d, yyyy hh:MM TT")+"}");aa="%"+aa+"%";u.push(e.substring(r,match.index)+
+(null!=aa?aa:p));r=match.index+p.length}}O&&(u.push(e.substring(r)),D.setAttributeForCell(w,"label",u.join("")),D.setAttributeForCell(w,"placeholders","1"))}for(var ba in F)if(F.hasOwnProperty(ba)&&ba.toString().startsWith("ShapeData_"))try{var W=F[ba],wa=mxUtils.trim(W.Label).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,"");Sa(w,wa,W.Value,D)}catch(ka){window.console&&console.log("Ignored "+ba+":",ka)}}function Sa(w,F,D,u){for(var e=F,O=0;null!=u.getAttributeForCell(w,e);)O++,e=F+
+"_"+O;u.setAttributeForCell(w,e,null!=D?D:"")}function Xa(w,F,D,u,e,O){var r=h(F);if(null!=r){var p=Pd[r.Class];null!=p?(w.style+=p,";"!=w.style.charAt(w.style.length-1)&&(w.style+=";")):w.edge||(console.log("No mapping found for: "+r.Class),LucidImporter.hasUnknownShapes=!0);p=null!=r.Properties?r.Properties:r;if(null!=p&&(w.value=O?"":m(p),w.style+=b(w.style,p,r,w,G,!0),w.style.includes("strokeColor")||(w.style+=H(p,r)),la(w,p,D),p.Title&&p.Title.t&&p.Text&&p.Text.t&&"ExtShape"!=r.Class.substr(0,
+8)&&(D=w.geometry,D=new mxCell(m(p.Title),new mxGeometry(0,D.height,D.width,10),"strokeColor=none;fillColor=none;"),D.vertex=!0,w.insert(D),D.style+=a(p.Title,G)),w.edge)){w.style=null!=p.Rounding&&"diagonal"!=p.Shape?w.style+("rounded=1;arcSize="+p.Rounding+";"):w.style+"rounded=0;";if(D="curve"==p.Shape)w.style+="curved=1;";else if("diagonal"!=p.Shape)if(null!=p.ElbowPoints&&0<p.ElbowPoints.length)for(w.geometry.points=[],r=0;r<p.ElbowPoints.length;r++)w.geometry.points.push(new mxPoint(Math.round(.75*
+p.ElbowPoints[r].x+xc),Math.round(.75*p.ElbowPoints[r].y+yc)));else if("elbow"==p.Shape||null!=p.Endpoint1.Block&&null!=p.Endpoint2.Block)w.style+="edgeStyle=orthogonalEdgeStyle;";if(p.LineJumps||LucidImporter.globalProps.LineJumps)w.style+="jumpStyle=arc;";null!=p.Endpoint1.Style&&(O=Fe[p.Endpoint1.Style],null!=O?(O=O.replace(/xyz/g,"start"),w.style+="startArrow="+O+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+p.Endpoint1.Style)));null!=p.Endpoint2.Style&&
+(O=Fe[p.Endpoint2.Style],null!=O?(O=O.replace(/xyz/g,"end"),w.style+="endArrow="+O+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+p.Endpoint2.Style)));O=null!=p.ElbowControlPoints&&0<p.ElbowControlPoints.length?p.ElbowControlPoints:p.Joints;if(D&&null!=p.BezierJoints&&0<p.BezierJoints.length){O=[];D=p.BezierJoints[p.BezierJoints.length-1];D.p.x=p.Endpoint2.x;D.p.y=p.Endpoint2.y;for(r=0;r<p.BezierJoints.length;r++)D=p.BezierJoints[r],O.push({x:D.p.x+
+D.nt.x*D.lcps*.75,y:D.p.y+D.nt.y*D.lcps*.75}),O.push({x:D.p.x+D.nt.x*D.rcps*.75,y:D.p.y+D.nt.y*D.rcps*.75});O=O.slice(1,O.length-1)}else D&&(O=[],O.push({x:p.Endpoint1.x+(.1>p.Endpoint1.LinkX?-250:.9<p.Endpoint1.LinkX?250:0),y:p.Endpoint1.y+(.1>p.Endpoint1.LinkY?-250:.9<p.Endpoint1.LinkY?250:0)}),O.push({x:p.Endpoint2.x+(.1>p.Endpoint2.LinkX?-250:.9<p.Endpoint2.LinkX?250:0),y:p.Endpoint2.y+(.1>p.Endpoint2.LinkY?-250:.9<p.Endpoint2.LinkY?250:0)}));if(null!=O)for(w.geometry.points=[],r=0;r<O.length;r++)D=
+O[r].p?O[r].p:O[r],w.geometry.points.push(new mxPoint(Math.round(.75*D.x+xc),Math.round(.75*D.y+yc)));D=!1;if((null==w.geometry.points||0==w.geometry.points.length)&&null!=p.Endpoint1.Block&&p.Endpoint1.Block==p.Endpoint2.Block&&null!=u&&null!=e){D=new mxPoint(Math.round(u.geometry.x+u.geometry.width*p.Endpoint1.LinkX),Math.round(u.geometry.y+u.geometry.height*p.Endpoint1.LinkY));O=new mxPoint(Math.round(e.geometry.x+e.geometry.width*p.Endpoint2.LinkX),Math.round(e.geometry.y+e.geometry.height*p.Endpoint2.LinkY));
+xc=D.x==O.x?Math.abs(D.x-u.geometry.x)<u.geometry.width/2?-20:20:0;yc=D.y==O.y?Math.abs(D.y-u.geometry.y)<u.geometry.height/2?-20:20:0;var aa=new mxPoint(D.x+xc,D.y+yc),ba=new mxPoint(O.x+xc,O.y+yc);aa.generated=!0;ba.generated=!0;w.geometry.points=[aa,ba];D=D.x==O.x}null!=u&&u.geometry.isRotated||(aa=Ge(w,p.Endpoint1,!0,D,null,u));null!=u&&null!=aa&&(null==u.stylePoints&&(u.stylePoints=[]),u.stylePoints.push(aa),LucidImporter.stylePointsSet.add(u));null!=e&&e.geometry.isRotated||(ba=Ge(w,p.Endpoint2,
+!1,D,null,e));null!=e&&null!=ba&&(null==e.stylePoints&&(e.stylePoints=[]),e.stylePoints.push(ba),LucidImporter.stylePointsSet.add(e))}}null!=F.id&&(w.style+=";lucidId="+F.id+";");w.lucidchartObject=F}function sc(w,F){var D=h(w).Properties,u=D.BoundingBox;null==w.Class||"AWS"!==w.Class.substring(0,3)&&"Amazon"!==w.Class.substring(0,6)||w.Class.includes("AWS19")||(u.h-=20);v=new mxCell("",new mxGeometry(Math.round(.75*u.x+xc),Math.round(.75*u.y+yc),Math.round(.75*u.w),Math.round(.75*u.h)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");
+v.vertex=!0;Xa(v,w,F);v.zOrder=D.ZOrder;He(v,D);D.Hidden&&(v.visible=!1);return v}function yb(w,F,D,u){var e=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");e.geometry.relative=!0;e.edge=!0;Xa(e,w,F,D,u,!0);var O=h(w).Properties,r=null!=O?O.TextAreas:w.TextAreas;if(null!=r){for(var p=0;void 0!==r["t"+p];){var aa=r["t"+p];null!=aa&&(e=Qd(aa,e,w,D,u,F));p++}for(p=0;void 0!==r["m"+p]||1>p;)aa=r["m"+p],null!=aa&&(e=Qd(aa,e,w,D,u,F)),p++;null!=r.Text&&(e=Qd(r.Text,e,w,D,u,F));r=null!=
+O?O.TextAreas:w.TextAreas;null!=r.Message&&(e=Qd(r.Message,e,w,D,u,F))}w.Hidden&&(e.visible=!1);return e}function Qd(w,F,D,u,e,O){var r=2*(parseFloat(w.Location)-.5);isNaN(r)&&null!=w.Text&&null!=w.Text.Location&&(r=2*(parseFloat(w.Text.Location)-.5));O=m(w);var p=mxCell;r=new mxGeometry(isNaN(r)?0:r,0,0,0);var aa=he;var ba=D;if(G)ba=mb;else{var W="13",wa="";if(null!=w&&null!=w.Value&&null!=w.Value.m){wa=A(w.Value.m);for(var ka=0;ka<w.Value.m.length;ka++)if("s"==w.Value.m[ka].n&&w.Value.m[ka].v)W=
+z(.75*parseFloat(w.Value.m[ka].v));else if("c"==w.Value.m[ka].n){var pa=V(w.Value.m[ka].v);null!=pa&&(pa=pa.substring(0,7));"#000000"==pa&&(pa="default");wa+="fontColor="+pa+";"}wa+=k(ba);mb=""}ba=wa+";fontSize="+W+";"}p=new p(O,r,aa+ba);p.geometry.relative=!0;p.vertex=!0;if(w.Side)try{D.Action&&D.Action.Properties&&(D=D.Action.Properties);if(null!=u&&null!=e){var ra=u.geometry,Aa=e.geometry;var na=Math.abs(ra.x+ra.width*D.Endpoint1.LinkX-(Aa.x+Aa.width*D.Endpoint2.LinkX));var Ba=Math.abs(ra.y+ra.height*
+D.Endpoint1.LinkY-(Aa.y+Aa.height*D.Endpoint2.LinkY))}else na=Math.abs(D.Endpoint1.x-D.Endpoint2.x),Ba=Math.abs(D.Endpoint1.y-D.Endpoint2.y);var Oa=mxUtils.getSizeForString(O.replace(/\n/g,"<br>"));p.geometry.offset=0==na||na<Ba?new mxPoint(Math.sign(D.Endpoint1.y-D.Endpoint2.y)*w.Side*(Oa.width/2+5+na),0):new mxPoint(0,Math.sign(D.Endpoint2.x-D.Endpoint1.x)*w.Side*(Oa.height/2+5+Ba))}catch(Ca){console.log(Ca)}p.lucidchartObject=w;F.insert(p);return F}function Zb(w,F,D,u){null!=F&&null!=u&&(F=u(F));
+return null!=F&&F!=D?w+"="+F+";":""}function Ge(w,F,D,u,e,O){if(null!=F&&null!=F.LinkX&&null!=F.LinkY&&(F.LinkX=Math.round(1E3*F.LinkX)/1E3,F.LinkY=Math.round(1E3*F.LinkY)/1E3,null!=O&&O.style&&-1<O.style.indexOf("flipH=1")&&(F.LinkX=1-F.LinkX),null!=O&&O.style&&-1<O.style.indexOf("flipV=1")&&(F.LinkY=1-F.LinkY),w.style+=(u?"":(D?"exitX":"entryX")+"="+F.LinkX+";")+(e?"":(D?"exitY":"entryY")+"="+F.LinkY+";")+(D?"exitPerimeter":"entryPerimeter")+"=0;",F.Inside))return"["+F.LinkX+","+F.LinkY+",0]"}function Ie(w,
+F,D,u,e){try{var O=function(na,Ba){if(null!=na)if(Array.isArray(na))for(var Oa=0;Oa<na.length;Oa++)O(na[Oa].p?na[Oa].p:na[Oa],Ba);else Ba=Ba?.75:1,p=Math.min(p,na.x*Ba),aa=Math.min(aa,na.y*Ba),ba=Math.max(ba,(na.x+(na.width?na.width:0))*Ba),W=Math.max(W,(na.y+(na.height?na.height:0))*Ba)};null!=w.Action&&null!=w.Action.Properties&&(w=w.Action.Properties);var r=new mxCell("",new mxGeometry,"group;dropTarget=0;pointerEvents=0;");r.vertex=!0;r.zOrder=w.ZOrder;var p=Infinity,aa=Infinity,ba=-Infinity,
+W=-Infinity,wa=w.Members;e=[];for(var ka in wa){var pa=F[ka];null!=pa?e.push(pa):null!=u[ka]&&(e.push(u[ka]),D[ka]=r)}e.sort(function(na,Ba){na=na.zOrder||na.ZOrder;Ba=Ba.zOrder||Ba.ZOrder;return null!=na&&null!=Ba?na>Ba?1:na<Ba?-1:0:0});for(D=F=0;D<e.length;D++)if(pa=e[D],pa.vertex)O(pa.geometry),pa.parent=r,r.insert(pa,F++);else{var ra=null!=pa.Action&&pa.Action.Properties?pa.Action.Properties:pa;O(ra.Endpoint1,!0);O(ra.Endpoint2,!0);O(ra.ElbowPoints,!0);O(ra.ElbowControlPoints,!0);O(ra.BezierJoints,
+!0);O(ra.Joints,!0)}r.geometry.x=p;r.geometry.y=aa;r.geometry.width=ba-p;r.geometry.height=W-aa;if(null!=r.children)for(D=0;D<r.children.length;D++){var Aa=r.children[D].geometry;Aa.x-=p;Aa.y-=aa}w.IsState?(r.lucidLayerInfo={name:w.Name,visible:!w.Hidden,locked:w.Restrictions.b&&w.Restrictions.p&&w.Restrictions.c},r.style+="container=1;collapsible=0;recursiveResize=0;"):w.Hidden&&(r.visible=!1);r.lucidchartObject=w;return r}catch(na){console.log(na)}}function zf(w,F,D){LucidImporter.hasMath=!1;LucidImporter.stylePointsSet=
+new Set;w.getModel().beginUpdate();try{var u=function(Ca,ua){function Ma(Qa,ma,La){null==Qa||Qa.generated||(Qa.x-=ma,Qa.y-=La)}var Ja=null!=ua.Endpoint1.Block?O[ua.Endpoint1.Block]:null,Ka=null!=ua.Endpoint2.Block?O[ua.Endpoint2.Block]:null,l=yb(Ca,w,Ja,Ka);if(ua.Endpoint1&&ua.Endpoint1.Line||ua.Endpoint2&&ua.Endpoint2.Line)console.log("Edge to Edge case"),LucidImporter.hasUnknownShapes=!0;null==Ja&&null!=ua.Endpoint1&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.75*ua.Endpoint1.x),Math.round(.75*
+ua.Endpoint1.y)),!0);null==Ka&&null!=ua.Endpoint2&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.75*ua.Endpoint2.x),Math.round(.75*ua.Endpoint2.y)),!1);Ca=r[Ca.id];if(null!=Ca){for(var Ha=l.geometry,cb=ua=0,Ea=Ca;null!=Ea&&null!=Ea.geometry;)ua+=Ea.geometry.x,cb+=Ea.geometry.y,Ea=Ea.parent;Ma(Ha.sourcePoint,ua,cb);Ma(Ha.targetPoint,ua,cb);Ma(Ha.offset,ua,cb);Ha=Ha.points;if(null!=Ha)for(Ea=0;Ea<Ha.length;Ea++)Ma(Ha[Ea],ua,cb)}e.push(w.addCell(l,Ca,null,Ja,Ka))},e=[],O={},r={},p={},aa=[];null!=
+F.Lines&&(p=F.Lines);if(null!=F.Blocks){Object.assign(p,F.Blocks);for(var ba in F.Blocks){var W=F.Blocks[ba];W.id=ba;var wa=!1;null!=Pd[W.Class]&&"mxCompositeShape"==Pd[W.Class]&&(O[W.id]=Je(W,e,w),aa.push(W),wa=!0);wa||(O[W.id]=sc(W,w),aa.push(W))}if(null!=F.Generators)for(ba in F.Generators)"OrgChart2018"==F.Generators[ba].ClassName?(LucidImporter.hasUnknownShapes=!0,Ke(ba,F.Generators[ba],F.Data,w,O)):LucidImporter.hasUnknownShapes=!0}else{for(var ka=0;ka<F.Objects.length;ka++)W=F.Objects[ka],
+p[W.id]=W,null!=W.Action&&"mxCompositeShape"==Pd[W.Action.Class]?O[W.id]=Je(W,e,w):W.IsBlock&&null!=W.Action&&null!=W.Action.Properties?O[W.id]=sc(W,w):W.IsGenerator&&W.GeneratorData&&W.GeneratorData.p&&("OrgChart2018"==W.GeneratorData.p.ClassName?(LucidImporter.hasUnknownShapes=!0,Ke(W.GeneratorData.id,W.GeneratorData.p,W.GeneratorData.gs,w,O)):LucidImporter.hasUnknownShapes=!0),aa.push(W);for(ka=0;ka<F.Objects.length;ka++)if(W=F.Objects[ka],W.IsGroup){var pa=Ie(W,O,r,p,w);pa&&(O[W.id]=pa,aa.push(W))}}if(null!=
+F.Groups)try{for(ba in F.Groups)if(W=F.Groups[ba],W.id=ba,pa=Ie(W,O,r,p,w))O[W.id]=pa,aa.push(W)}catch(Ca){console.log(Ca)}if(null!=F.Lines)for(ba in F.Lines)W=F.Lines[ba],W.id=ba,aa.push(W);aa.sort(function(Ca,ua){Ca=h(Ca);ua=h(ua);Ca=null!=Ca.Properties?Ca.Properties.ZOrder:Ca.ZOrder;ua=null!=ua.Properties?ua.Properties.ZOrder:ua.ZOrder;return null!=Ca&&null!=ua?Ca>ua?1:Ca<ua?-1:0:0});for(ka=0;ka<aa.length;ka++){W=aa[ka];var ra=O[W.id];if(null!=ra){if(null==ra.parent)if(ra.lucidLayerInfo){var Aa=
+new mxCell;w.addCell(Aa,w.model.root);Aa.setVisible(ra.lucidLayerInfo.visible);ra.lucidLayerInfo.locked&&Aa.setStyle("locked=1;");Aa.setValue(ra.lucidLayerInfo.name);delete ra.lucidLayerInfo;w.addCell(ra,Aa)}else e.push(w.addCell(ra))}else W.IsLine&&null!=W.Action&&null!=W.Action.Properties?u(W,W.Action.Properties):null!=W.StrokeStyle&&u(W,W)}LucidImporter.stylePointsSet.forEach(function(Ca){Ca.style="points=["+Ca.stylePoints.join(",")+"];"+Ca.style;delete Ca.stylePoints});try{var na=w.getModel().cells;
+w.view.validate();for(var Ba in na){var Oa=na[Ba];null!=Oa&&(Af(w,Oa),Bf(w,Oa),Cf(w,Oa),"1"==urlParams.lucidchartObject&&null!=Oa.lucidchartObject&&Sa(Oa,"lucidchartObject",JSON.stringify(Oa.lucidchartObject,null,2),w),delete Oa.lucidchartObject,delete Oa.zOrder)}}catch(Ca){console.log(Ca)}D||w.setSelectionCells(e)}finally{w.getModel().endUpdate()}}function Cf(w,F){if(w.model.contains(F)&&F.edge){var D=w.view.getState(F);if(null!=D&&null!=F.children){var u=mxRectangle.fromRectangle(D.paintBounds);
+u.grow(5);for(var e=0;e<F.children.length;e++){var O=w.view.getState(F.children[e]);null==O||mxUtils.contains(u,O.paintBounds.x,O.paintBounds.y)||(O.cell.geometry.offset=new mxPoint(0,0))}}w=F.lucidchartObject;null!=w&&"elbow"==w.Shape&&null==w.ElbowControlPoints&&null==w.ElbowPoints&&null!=D.style.exitX&&null!=D.style.exitY&&null!=D.style.entryX&&null!=D.style.entryY&&(F.style=mxUtils.setStyle(F.style,"exitX",Math.round(20*D.style.exitX)/20),F.style=mxUtils.setStyle(F.style,"exitY",Math.round(20*
+D.style.exitY)/20),F.style=mxUtils.setStyle(F.style,"entryX",Math.round(20*D.style.entryX)/20),F.style=mxUtils.setStyle(F.style,"entryY",Math.round(20*D.style.entryY)/20))}}function Bf(w,F){if(w.model.contains(F)&&null!=F.style&&""!=F.style){w=F.style.split(";");for(var D={},u=[],e=w.length-1;0<=e;e--){var O=w[e].split("=");if(2!=O.length||null==D[O[0]])D[O[0]]=O[1],""!=w[e]&&u.push(w[e])}F.style=u.reverse().join(";")+";"}}function Af(w,F){if(w.model.contains(F)&&null!=F.children&&null!=F.geometry&&
+F.vertex&&"group;dropTarget=0;pointerEvents=0;"==F.style){for(var D=null,u=0;u<F.children.length;u++)if(F.children[u].vertex){var e=F.children[u].geometry;if(null!=e&&0==e.x&&0==e.y&&e.width==F.geometry.width&&e.height==F.geometry.height){if(null!=D)return;D=F.children[u]}}F=D;if(null!=F&&(D=F.parent,""==w.convertValueToString(D))){if(null!=F.edges)for(u=0;u<F.edges.length;u++)F.edges[u].source==F&&F.edges[u].setTerminal(F.parent,!0),F.edges[u].target==F&&F.edges[u].setTerminal(F.parent,!1);if(null!=
+F.children&&0<F.children.length)for(e=F.children.slice(),u=0;u<e.length;u++)D.insert(e[u]);w.cellLabelChanged(D,w.convertValueToString(F));D.style=mxUtils.setStyle(mxUtils.setStyle(F.style,"container","1"),"collapsible","0");F.removeFromParent()}}}function Df(){var w=new Graph;w.setExtendParents(!1);w.setExtendParentsOnAdd(!1);w.setConstrainChildren(!1);w.setHtmlLabels(!0);w.getModel().maintainEdgeParent=!1;return w}function Rd(w,F,D,u,e,O,r,p){this.nurbsValues=[1,3,0,0,100*(w+D),100-100*(1-(F+u)),
+0,1,100*(e+r),100-100*(1-(O+p)),0,1]}function Le(w,F){try{for(var D=[],u=F.BoundingBox.w,e=F.BoundingBox.h,O=0;O<F.Shapes.length;O++){var r=F.Shapes[O],p=r.FillColor,aa=r.StrokeColor,ba=r.LineWidth,W=r.Points,wa=r.Lines,ka=['<shape strokewidth="inherit"><foreground>'];ka.push("<path>");for(var pa=null,ra=0;ra<wa.length;ra++){var Aa=wa[ra];if(pa!=Aa.p1){var na=W[Aa.p1].x,Ba=W[Aa.p1].y;na=100*na/u;Ba=100*Ba/e;na=Math.round(100*na)/100;Ba=Math.round(100*Ba)/100;ka.push('<move x="'+na+'" y="'+Ba+'"/>')}if(null!=
+Aa.n1){var Oa=W[Aa.p2].x,Ca=W[Aa.p2].y,ua=u,Ma=e,Ja=new Rd(W[Aa.p1].x/u,W[Aa.p1].y/e,Aa.n1.x/u,Aa.n1.y/e,W[Aa.p2].x/u,W[Aa.p2].y/e,Aa.n2.x/u,Aa.n2.y/e);if(2<=Ja.getSize()){Ja.getX(0);Ja.getY(0);Ja.getX(1);Ja.getY(1);Oa=Math.round(100*Oa/ua*100)/100;Ca=Math.round(100*Ca/Ma*100)/100;ua=[];Ma=[];for(var Ka=[],l=Ja.getSize(),Ha=0;Ha<l-1;Ha+=3)ua.push(new mxPoint(Ja.getX(Ha),Ja.getY(Ha))),Ma.push(new mxPoint(Ja.getX(Ha+1),Ja.getY(Ha+1))),Ha<l-2?Ka.push(new mxPoint(Ja.getX(Ha+2),Ja.getY(Ha+2))):Ka.push(new mxPoint(Oa,
+Ca));var cb="";for(Ha=0;Ha<ua.length;Ha++)cb+='<curve x1="'+ua[Ha].x+'" y1="'+ua[Ha].y+'" x2="'+Ma[Ha].x+'" y2="'+Ma[Ha].y+'" x3="'+Ka[Ha].x+'" y3="'+Ka[Ha].y+'"/>';var Ea=cb}else Ea=void 0;ka.push(Ea)}else na=W[Aa.p2].x,Ba=W[Aa.p2].y,na=100*na/u,Ba=100*Ba/e,na=Math.round(100*na)/100,Ba=Math.round(100*Ba)/100,ka.push('<line x="'+na+'" y="'+Ba+'"/>');pa=Aa.p2}ka.push("</path>");ka.push("<fillstroke/>");ka.push("</foreground></shape>");D.push({shapeStencil:"stencil("+Graph.compress(ka.join(""))+")",
+FillColor:p,LineColor:aa,LineWidth:ba})}LucidImporter.stencilsMap[w]={text:F.Text,w:u,h:e,x:F.BoundingBox.x,y:F.BoundingBox.y,stencils:D}}catch(Qa){console.log("Stencil parsing error:",Qa)}}function tc(w,F,D,u,e,O,r,p){w=new mxCell("",new mxGeometry(w,F,0,0),"strokeColor=none;fillColor=none;");w.vertex=!0;r.insert(w);O=[w];D=D.clone();p.insertEdge(D,!1);w.insertEdge(D,!0);O.push(D);u.push(e.addCell(D,null,null,null,null))}function gb(w,F,D,u,e,O,r,p,aa){w=new mxCell("",new mxGeometry(w,F,0,0),"strokeColor=none;fillColor=none;");
+w.vertex=!0;aa.insert(w);D=new mxCell("",new mxGeometry(D,u,0,0),"strokeColor=none;fillColor=none;");D.vertex=!0;aa.insert(D);p=[D];e=e.clone();w.insertEdge(e,!0);D.insertEdge(e,!1);p.push(e);O.push(r.addCell(e,null,null,null,null))}function Ta(w,F,D,u,e,O){u.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";u.style+=b(u.style,e,O,u);F=m(e);u.vertex=!0;w=new mxCell(F,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+mxConstants.STYLE_SHAPE+
+"=mxgraph.gcp2."+w+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;");w.style+=b(w.style,e,O,w,G);w.geometry.relative=!0;w.geometry.offset=new mxPoint(5,-12);w.vertex=!0;u.insert(w)}function Ya(w,F,D,u,e,O,r,p){e="transparent"!=w?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";O.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";O.style+=b(O.style,
+r,p,O);O.value=m(r);O.vertex=!0;w=new mxCell(null,new mxGeometry(.5,0,.7*u*F,.7*u*D),e+w+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;");w.geometry.relative=!0;w.geometry.offset=new mxPoint(-F*u*.35,10+(1-D)*u*.35);w.vertex=!0;w.style+=b(w.style,r,p,w,G);O.insert(w)}function Yc(w,F){return null!=w&&null!=F&&(F==mxConstants.STYLE_ALIGN+"Global"&&(F=mxConstants.STYLE_ALIGN),w.includes(";"+F+"=")||w.substring(0,F.length+1)==F+"=")?!0:!1}function Sd(w,F){function D(u){u=Math.round(parseInt("0x"+
+u)*F).toString(16);return 1==u.length?"0"+u:u}return"#"+D(w.substr(1,2))+D(w.substr(3,2))+D(w.substr(5,2))}function Je(w,F,D){var u=h(w),e=u.Properties,O=e.BoundingBox,r=Math.round(.75*O.w),p=Math.round(.75*O.h),aa=Math.round(.75*O.x+xc),ba=Math.round(.75*O.y+yc);null==w.Class||"GCPInputDatabase"!==w.Class&&"GCPInputRecord"!==w.Class&&"GCPInputPayment"!==w.Class&&"GCPInputGateway"!==w.Class&&"GCPInputLocalCompute"!==w.Class&&"GCPInputBeacon"!==w.Class&&"GCPInputStorage"!==w.Class&&"GCPInputList"!==
+w.Class&&"GCPInputStream"!==w.Class&&"GCPInputMobileDevices"!==w.Class&&"GCPInputCircuitBoard"!==w.Class&&"GCPInputLive"!==w.Class&&"GCPInputUsers"!==w.Class&&"GCPInputLaptop"!==w.Class&&"GCPInputApplication"!==w.Class&&"GCPInputLightbulb"!==w.Class&&"GCPInputGame"!==w.Class&&"GCPInputDesktop"!==w.Class&&"GCPInputDesktopAndMobile"!==w.Class&&"GCPInputWebcam"!==w.Class&&"GCPInputSpeaker"!==w.Class&&"GCPInputRetail"!==w.Class&&"GCPInputReport"!==w.Class&&"GCPInputPhone"!==w.Class&&"GCPInputBlank"!==
+w.Class||(p+=20);v=new mxCell("",new mxGeometry(aa,ba,r,p),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;v.zOrder=e.ZOrder;var W=null!=w.Class?w.Class:null!=u?u.Class:null;switch(W){case "BraceNoteBlock":case "UI2BraceNoteBlock":var wa=!1;null!=e.BraceDirection&&"Right"==e.BraceDirection&&(wa=!0);var ka=null,pa=null,ra=m(e),Aa=e.Rotation?mxUtils.getSizeForString(ra.replace(/\n/g,"<br>"),null,null,Math.abs(r-.125*p)):{width:0,height:0};wa?(ka=new mxCell("",new mxGeometry(r-.125*
+p,0,.125*p,p),"shape=curlyBracket;rounded=1;"),pa=new mxCell("",new mxGeometry(Aa.height,-2*Aa.width,r-.125*p,p),"strokeColor=none;fillColor=none;")):(ka=new mxCell("",new mxGeometry(0,0,.125*p,p),"shape=curlyBracket;rounded=1;flipH=1;"),pa=new mxCell("",new mxGeometry(.125*p-Aa.height,Aa.width,r-.125*p,p),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);ka.vertex=!0;v.insert(ka);ka.style+=b(ka.style,e,u,ka);pa.vertex=!0;pa.value=ra;v.insert(pa);
+pa.style+=b(pa.style,e,u,pa,G);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var na="MainText",Ba=null,Oa="HeaderFill_",Ca="BodyFill_",ua=25,Ma=25,Ja=0;if(null!=e.Lanes)Ja=e.Lanes.length;else if(null!=e.PrimaryLane){var Ka=function(hb){if(hb)32>hb?hb=32:208<hb&&(hb=208);else return 0;return.75*hb};Ja=e.PrimaryLane.length;
+for(var l=p=r=0;l<Ja;l++)r+=e.PrimaryLane[l];for(l=0;l<e.SecondaryLane.length;l++)p+=e.SecondaryLane[l];ua=Ka(e.PrimaryPoolTitleHeight);Ma=Ka(e.PrimaryLaneTitleHeight);r*=.75;p=.75*p+ua+Ma;v.geometry.width=r;v.geometry.height=p;na="poolPrimaryTitleKey";Oa="PrimaryLaneHeaderFill_";Ca="CellFill_0,";Ba=e.PrimaryLaneTextAreaIds;if(null==Ba)for(Ba=[],l=0;l<Ja;l++)Ba.push("Primary_"+l)}if(0==e.IsPrimaryLaneVertical){e.Rotation=-1.5707963267948966;var Ha=v.geometry.x,cb=v.geometry.y}var Ea=0!=e.Rotation,
+Qa=0<W.indexOf("Pool"),ma=0==W.indexOf("BPMN"),La=null!=e[na];v.style=(Qa?"swimlane;startSize="+ua+";":"fillColor=none;strokeColor=none;pointerEvents=0;fontStyle=0;")+"html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;"+(Ea?"horizontalStack=0;":"");v.style+=b(v.style,e,u,v);La&&(v.value=m(e[na]),v.style+=(G?"overflow=block;blockSpacing=1;fontSize=13;"+mb:f(e[na])+q(e[na])+k(e[na])+t(e[na])+C(e[na],v)+I(e[na])+Q(e[na])+K(e[na])+L(e[na]))+S(e[na])+
+R(e[na]));for(var ya=0,za=[],Qb="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;fontStyle=0;startSize="+Ma+";dropTarget=0;rounded=0;"+(Ea?"horizontal=0;":"")+(ma?"swimlaneLine=0;fillColor=none;":""),ha=e.Rotation=0;ha<Ja;ha++){if(null==Ba){var xb=parseFloat(e.Lanes[ha].p);l=parseInt(e.Lanes[ha].tid)||ha;var Wa="Lane_"+l}else xb=.75*e.PrimaryLane[ha]/r,l=ha,Wa=Ba[ha];var rc=r*ya,wc=Qa?ua:0;za.push(new mxCell("",Ea?new mxGeometry(wc,rc,p-wc,r*xb):new mxGeometry(rc,wc,r*xb,p-
+wc),Qb));za[ha].vertex=!0;v.insert(za[ha]);za[ha].value=m(e[Wa]);za[ha].style+=b(za[ha].style,e,u,za[ha],G)+(G?"fontSize=13;":f(e[Wa])+q(e[Wa])+t(e[Wa])+C(e[Wa],za[ha])+I(e[Wa])+Q(e[Wa])+K(e[Wa])+L(e[Wa]))+S(e[Wa])+R(e[Wa])+N(e[Oa+l])+J(e[Ca+l]);ya+=xb}null!=Ha&&(v.geometry.x=Ha,v.geometry.y=cb);break;case "UMLMultidimensionalSwimlane":var Gb=0,Rb=0,Lb=null,$b=null;if(null!=e.Rows&&null!=e.Columns){Gb=e.Rows.length;Rb=e.Columns.length;var Za=.75*e.TitleHeight||25,qb=.75*e.TitleWidth||25}else if(null!=
+e.PrimaryLane&&null!=e.SecondaryLane){Gb=e.SecondaryLane.length;Rb=e.PrimaryLane.length;qb=.75*e.SecondaryLaneTitleHeight||25;Za=.75*e.PrimaryLaneTitleHeight||25;for(l=p=r=0;l<Gb;l++)p+=e.SecondaryLane[l];for(l=0;l<Rb;l++)r+=e.PrimaryLane[l];r=.75*r+qb;p=.75*p+Za;v.geometry.width=r;v.geometry.height=p;Lb=e.SecondaryLaneTextAreaIds;$b=e.PrimaryLaneTextAreaIds}v.style="group;";var Oc=new mxCell("",new mxGeometry(0,Za,r,p-Za),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;horizontalStack=0;");
+Oc.vertex=!0;var Gc=new mxCell("",new mxGeometry(qb,0,r-qb,p),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;");Gc.vertex=!0;v.insert(Oc);v.insert(Gc);ba=0;var Hc="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;horizontal=0;fontStyle=0;startSize="+qb+";";for(ha=0;ha<Gb;ha++){if(null==Lb){var Td=.75*parseInt(e.Rows[ha].height);l=parseInt(e.Rows[ha].id)||ha;var Sb="Row_"+l}else Td=
+.75*e.SecondaryLane[ha],Sb=Lb[ha];var Ic=new mxCell("",new mxGeometry(0,ba,r,Td),Hc);ba+=Td;Ic.vertex=!0;Oc.insert(Ic);Ic.value=m(e[Sb]);Ic.style+=b(Ic.style,e,u,Ic,G)+(G?"fontSize=13;":f(e[Sb])+q(e[Sb])+t(e[Sb])+C(e[Sb],Ic)+I(e[Sb])+Q(e[Sb])+K(e[Sb])+L(e[Sb]))+S(e[Sb])+R(e[Sb])}var Ef="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;fontStyle=0;startSize="+Za+";";for(ha=aa=0;ha<Rb;ha++){if(null==$b){var Zc=.75*parseInt(e.Columns[ha].width);l=parseInt(e.Columns[ha].id)||
+ha;var Tb="Column_"+l}else Zc=.75*e.PrimaryLane[ha],Tb=$b[ha];var Jc=new mxCell("",new mxGeometry(aa,0,Zc,p),Ef);aa+=Zc;Jc.vertex=!0;Gc.insert(Jc);Jc.value=m(e[Tb]);Jc.style+=b(Jc.style,e,u,Jc,G)+(G?"fontSize=13;":f(e[Tb])+q(e[Tb])+t(e[Tb])+C(e[Tb],Jc)+I(e[Tb])+Q(e[Tb])+K(e[Tb])+L(e[Tb]))+S(e[Tb])+R(e[Tb])}break;case "UMLStateBlock":if(0==e.Composite)v.style="rounded=1;arcSize=20",v.value=m(e.State,!0),v.style+=b(v.style,e,u,v,G);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=m(e.State,!0);v.style+=b(v.style,e,u,v,G);v.style+=Y(e,u).replace("fillColor","swimlaneFillColor");var zb=new mxCell("",new mxGeometry(0,25,r,p-25),"rounded=1;arcSize=20;strokeColor=none;fillColor=none");zb.value=m(e.Action,!0);zb.style+=b(zb.style,e,u,zb,G);zb.vertex=!0;v.insert(zb)}break;case "GSDFDProcessBlock":var ie=Math.round(.75*e.nameHeight);v.style="shape=swimlane;html=1;rounded=1;arcSize=10;collapsible=0;fontStyle=0;startSize="+ie;v.value=m(e.Number,!0);v.style+=b(v.style,e,u,v,
+G);v.style+=Y(e,u).replace("fillColor","swimlaneFillColor");zb=new mxCell("",new mxGeometry(0,ie,r,p-ie),"rounded=1;arcSize=10;strokeColor=none;fillColor=none");zb.value=m(e.Text,!0);zb.style+=b(zb.style,e,u,zb,G);zb.vertex=!0;v.insert(zb);break;case "AndroidDevice":if(null!=e.AndroidDeviceName){var nb=T(e,u,v);v.style="fillColor=#000000;strokeColor=#000000;";var zc=null,$c=null,ad=null;if("Tablet"==e.AndroidDeviceName||"Mini Tablet"==e.AndroidDeviceName||"custom"==e.AndroidDeviceName&&"Tablet"==
+e.CustomDeviceType)v.style+="shape=mxgraph.android.tab2;",zc=new mxCell("",new mxGeometry(.112,.077,.77*r,.85*p),nb),e.KeyboardShown&&($c=new mxCell("",new mxGeometry(.112,.727,.77*r,.2*p),"shape=mxgraph.android.keyboard;"+nb)),e.FullScreen||(ad=new mxCell("",new mxGeometry(.112,.077,.77*r,.03*p),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*p+";"+nb));else if("Large Phone"==e.AndroidDeviceName||"Phone"==e.AndroidDeviceName||"custom"==e.AndroidDeviceName&&
+"Phone"==e.CustomDeviceType)v.style+="shape=mxgraph.android.phone2;",zc=new mxCell("",new mxGeometry(.04,.092,.92*r,.816*p),nb),e.KeyboardShown&&($c=new mxCell("",new mxGeometry(.04,.708,.92*r,.2*p),"shape=mxgraph.android.keyboard;"+nb)),e.FullScreen||(ad=new mxCell("",new mxGeometry(.04,.092,.92*r,.03*p),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*p+";"+nb));zc.vertex=!0;zc.geometry.relative=!0;v.insert(zc);"Dark"==e.Scheme?zc.style+="fillColor=#111111;":
+"Light"==e.Scheme&&(zc.style+="fillColor=#ffffff;");null!=$c&&($c.vertex=!0,$c.geometry.relative=!0,v.insert($c));null!=ad&&(ad.vertex=!0,ad.geometry.relative=!0,v.insert(ad))}v.style+=b(v.style,e,u,v);break;case "AndroidAlertDialog":var ac=new mxCell("",new mxGeometry(0,0,r,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ac.vertex=!0;v.insert(ac);var Pa=new mxCell("",new mxGeometry(0,25,r,10),"shape=line;strokeColor=#33B5E5;");Pa.vertex=!0;v.insert(Pa);var rd=new mxCell("",new mxGeometry(0,
+30,r,p-30),"strokeColor=none;fillColor=none;verticalAlign=top;");rd.vertex=!0;v.insert(rd);var jb=new mxCell("",new mxGeometry(0,p-25,.5*r,25),"fillColor=none;");jb.vertex=!0;v.insert(jb);var kb=new mxCell("",new mxGeometry(.5*r,p-25,.5*r,25),"fillColor=none;");kb.vertex=!0;v.insert(kb);ac.value=m(e.DialogTitle);ac.style+=a(e.DialogTitle,G);rd.value=m(e.DialogText);rd.style+=a(e.DialogText,G);jb.value=m(e.Button_0);jb.style+=a(e.Button_0,G);kb.value=m(e.Button_1);kb.style+=a(e.Button_1,G);"Dark"==
+e.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",jb.style+="strokeColor=#353535;",kb.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",jb.style+="strokeColor=#E2E2E2;",kb.style+="strokeColor=#E2E2E2;");v.style+=b(v.style,e,u,v);break;case "AndroidDateDialog":case "AndroidTimeDialog":ac=new mxCell("",new mxGeometry(0,0,r,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ac.vertex=!0;v.insert(ac);ac.value=m(e.DialogTitle);ac.style+=a(e.DialogTitle,
+G);Pa=new mxCell("",new mxGeometry(0,25,r,10),"shape=line;strokeColor=#33B5E5;");Pa.vertex=!0;v.insert(Pa);jb=new mxCell("",new mxGeometry(0,p-25,.5*r,25),"fillColor=none;");jb.vertex=!0;v.insert(jb);jb.value=m(e.Button_0);jb.style+=a(e.Button_0,G);kb=new mxCell("",new mxGeometry(.5*r,p-25,.5*r,25),"fillColor=none;");kb.vertex=!0;v.insert(kb);kb.value=m(e.Button_1);kb.style+=a(e.Button_1,G);var bd=new mxCell("",new mxGeometry(.5*r-4,41,8,4),"shape=triangle;direction=north;");bd.vertex=!0;v.insert(bd);
+var cd=new mxCell("",new mxGeometry(.25*r-4,41,8,4),"shape=triangle;direction=north;");cd.vertex=!0;v.insert(cd);var dd=new mxCell("",new mxGeometry(.75*r-4,41,8,4),"shape=triangle;direction=north;");dd.vertex=!0;v.insert(dd);var sd=new mxCell("",new mxGeometry(.375*r,50,.2*r,15),"strokeColor=none;fillColor=none;");sd.vertex=!0;v.insert(sd);sd.value=m(e.Label_1);sd.style+=a(e.Label_1,G);var td=new mxCell("",new mxGeometry(.125*r,50,.2*r,15),"strokeColor=none;fillColor=none;");td.vertex=!0;v.insert(td);
+td.value=m(e.Label_0);td.style+=a(e.Label_0,G);var ed=null;"AndroidDateDialog"==w.Class&&(ed=new mxCell("",new mxGeometry(.625*r,50,.2*r,15),"strokeColor=none;fillColor=none;"),ed.vertex=!0,v.insert(ed),ed.value=m(e.Label_2),ed.style+=a(e.Label_2,G));var Ab=new mxCell("",new mxGeometry(.43*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Ab.vertex=!0;v.insert(Ab);var Bb=new mxCell("",new mxGeometry(.18*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Bb.vertex=!0;v.insert(Bb);var Me=new mxCell("",
+new mxGeometry(.68*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Me.vertex=!0;v.insert(Me);var ud=new mxCell("",new mxGeometry(.375*r,65,.2*r,15),"strokeColor=none;fillColor=none;");ud.vertex=!0;v.insert(ud);ud.value=m(e.Label_4);ud.style+=a(e.Label_4,G);var fd=null;"AndroidTimeDialog"==w.Class&&(fd=new mxCell("",new mxGeometry(.3*r,65,.1*r,15),"strokeColor=none;fillColor=none;"),fd.vertex=!0,v.insert(fd),fd.value=m(e.Label_Colon),fd.style+=a(e.Label_Colon,G));var vd=new mxCell("",new mxGeometry(.125*
+r,65,.2*r,15),"strokeColor=none;fillColor=none;");vd.vertex=!0;v.insert(vd);vd.value=m(e.Label_3);vd.style+=a(e.Label_3,G);var wd=new mxCell("",new mxGeometry(.625*r,65,.2*r,15),"strokeColor=none;fillColor=none;");wd.vertex=!0;v.insert(wd);wd.value=m(e.Label_5);wd.style+=a(e.Label_5,G);var Ne=new mxCell("",new mxGeometry(.43*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Ne.vertex=!0;v.insert(Ne);var Oe=new mxCell("",new mxGeometry(.18*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Oe.vertex=
+!0;v.insert(Oe);var Pe=new mxCell("",new mxGeometry(.68*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Pe.vertex=!0;v.insert(Pe);var xd=new mxCell("",new mxGeometry(.375*r,80,.2*r,15),"strokeColor=none;fillColor=none;");xd.vertex=!0;v.insert(xd);xd.value=m(e.Label_7);xd.style+=a(e.Label_7,G);var yd=new mxCell("",new mxGeometry(.125*r,80,.2*r,15),"strokeColor=none;fillColor=none;");yd.vertex=!0;v.insert(yd);yd.value=m(e.Label_6);yd.style+=a(e.Label_6,G);var zd=new mxCell("",new mxGeometry(.625*
+r,80,.2*r,15),"strokeColor=none;fillColor=none;");zd.vertex=!0;v.insert(zd);zd.value=m(e.Label_8);zd.style+=a(e.Label_8,G);var gd=new mxCell("",new mxGeometry(.5*r-4,99,8,4),"shape=triangle;direction=south;");gd.vertex=!0;v.insert(gd);var hd=new mxCell("",new mxGeometry(.25*r-4,99,8,4),"shape=triangle;direction=south;");hd.vertex=!0;v.insert(hd);var id=new mxCell("",new mxGeometry(.75*r-4,99,8,4),"shape=triangle;direction=south;");id.vertex=!0;v.insert(id);"Dark"==e.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",
+jb.style+="strokeColor=#353535;",kb.style+="strokeColor=#353535;",bd.style+="strokeColor=none;fillColor=#7E7E7E;",cd.style+="strokeColor=none;fillColor=#7E7E7E;",dd.style+="strokeColor=none;fillColor=#7E7E7E;",gd.style+="strokeColor=none;fillColor=#7E7E7E;",hd.style+="strokeColor=none;fillColor=#7E7E7E;",id.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",jb.style+="strokeColor=#E2E2E2;",kb.style+="strokeColor=#E2E2E2;",bd.style+="strokeColor=none;fillColor=#939393;",
+cd.style+="strokeColor=none;fillColor=#939393;",dd.style+="strokeColor=none;fillColor=#939393;",gd.style+="strokeColor=none;fillColor=#939393;",hd.style+="strokeColor=none;fillColor=#939393;",id.style+="strokeColor=none;fillColor=#939393;");v.style+=b(v.style,e,u,v);break;case "AndroidListItems":var Cb=p,Ac=0;if(e.ShowHeader){Ac=8;var Pc=new mxCell("",new mxGeometry(0,0,r,Ac),"strokeColor=none;fillColor=none;");Pc.vertex=!0;v.insert(Pc);Pc.value=m(e.Header);Pc.style+=a(e.Header,G);Cb-=Ac;var Qe=new mxCell("",
+new mxGeometry(0,Ac-2,r,4),"shape=line;strokeColor=#999999;");Qe.vertex=!0;v.insert(Qe)}var bc=parseInt(e.Items);0<bc&&(Cb/=bc);var X=[];Pa=[];for(l=0;l<bc;l++)X[l]=new mxCell("",new mxGeometry(0,Ac+l*Cb,r,Cb),"strokeColor=none;fillColor=none;"),X[l].vertex=!0,v.insert(X[l]),X[l].value=m(e["Item_"+l]),X[l].style+=a(e["Item_"+l],G),0<l&&(Pa[l]=new mxCell("",new mxGeometry(0,Ac+l*Cb-2,r,4),"shape=line;"),Pa[l].vertex=!0,v.insert(Pa[l]),Pa[l].style="Dark"==e.Scheme?Pa[l].style+"strokeColor=#ffffff;":
+Pa[l].style+"strokeColor=#D9D9D9;");v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";v.style+=b(v.style,e,u,v);break;case "AndroidTabs":var cc=parseInt(e.Tabs),Hb=r;0<cc&&(Hb/=cc);var Ua=[];Pa=[];for(l=0;l<cc;l++)Ua[l]=new mxCell("",new mxGeometry(l*Hb,0,Hb,p),"strokeColor=none;fillColor=none;"),Ua[l].vertex=!0,v.insert(Ua[l]),Ua[l].value=m(e["Tab_"+l]),Ua[l].style+=a(e["Tab_"+l],G),0<l&&(Pa[l]=new mxCell("",new mxGeometry(l*Hb-2,
+.2*p,4,.6*p),"shape=line;direction=north;"),Pa[l].vertex=!0,v.insert(Pa[l]),Pa[l].style="Dark"==e.Scheme?Pa[l].style+"strokeColor=#484848;":Pa[l].style+"strokeColor=#CCCCCC;");var Re=new mxCell("",new mxGeometry(e.Selected*Hb+2,p-3,Hb-4,3),"strokeColor=none;fillColor=#33B5E5;");Re.vertex=!0;v.insert(Re);v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";v.style+=b(v.style,e,u,v);break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(aa),
+Math.round(ba+.25*p),Math.round(r),Math.round(.5*p)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;var Ad=new mxCell("",new mxGeometry(0,0,r*e.BarPosition,Math.round(.5*p)),"strokeColor=none;fillColor=#33B5E5;");Ad.vertex=!0;v.insert(Ad);v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#474747;":v.style+"strokeColor=none;fillColor=#BBBBBB;";v.style+=b(v.style,e,u,v);break;case "AndroidImageBlock":v.style="Dark"==e.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+=b(v.style,e,u,v);break;case "AndroidTextBlock":v.style="Dark"==e.Scheme?e.ShowBorder?v.style+"fillColor=#111111;strokeColor=#ffffff;":v.style+"fillColor=#111111;strokeColor=none;":e.ShowBorder?v.style+"fillColor=#ffffff;strokeColor=#000000;":v.style+"fillColor=#ffffff;strokeColor=none;";v.value=m(e.Label);v.style+=a(e.Label,G);v.style+=b(v.style,e,u,v,G);break;case "AndroidActionBar":v.style+="strokeColor=none;";
+switch(e.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(e.HighlightShow){var Bc=null;Bc=e.HighlightTop?new mxCell("",new mxGeometry(0,0,r,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,p-2,r,2),"strokeColor=none;");Bc.vertex=!0;v.insert(Bc);switch(e.HighlightColor){case "Blue":Bc.style+="fillColor=#33B5E5;";break;case "Dark Gray":Bc.style+=
+"fillColor=#B0B0B0;";break;case "White":Bc.style+="fillColor=#ffffff;"}}if(e.VlignShow){var jd=new mxCell("",new mxGeometry(20,5,2,p-10),"shape=line;direction=north;");jd.vertex=!0;v.insert(jd);switch(e.VlignColor){case "Blue":jd.style+="strokeColor=#244C5A;";break;case "White":jd.style+="strokeColor=#ffffff;"}}v.style+=b(v.style,e,u,v);break;case "AndroidButton":v.value=m(e.Label);v.style+=a(e.Label,G)+"shape=partialRectangle;left=0;right=0;";v.style="Dark"==e.Scheme?v.style+"fillColor=#474747;strokeColor=#C6C5C6;bottom=0;":
+v.style+"fillColor=#DFE0DF;strokeColor=#C6C5C6;top=0;";v.style+=b(v.style,e,u,v);break;case "AndroidTextBox":v.value=m(e.Label);v.style+=a(e.Label,G);var Bd=new mxCell("",new mxGeometry(2,p-6,r-4,4),"shape=partialRectangle;top=0;fillColor=none;");Bd.vertex=!0;v.insert(Bd);v.style="Dark"==e.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";Bd.style=e.TextFocused?Bd.style+"strokeColor=#33B5E5;":Bd.style+"strokeColor=#A9A9A9;";v.style+=b(v.style,e,u,v);
+break;case "AndroidRadioButton":var Qc=null;e.Checked&&(Qc=new mxCell("",new mxGeometry(.15*r,.15*p,.7*r,.7*p),"ellipse;fillColor=#33B5E5;strokeWidth=1;"),Qc.vertex=!0,v.insert(Qc));"Dark"==e.Scheme?(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;strokeColor=#272727;",e.Checked?(Qc.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;fillColor=#ffffff;strokeColor=#5C5C5C;",e.Checked&&
+(Qc.style+="strokeColor=#999999;"));v.style+=b(v.style,e,u,v);break;case "AndroidCheckBox":var je=null;e.Checked&&(je=new mxCell("",new mxGeometry(.25*r,.05*-p,r,.8*p),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),je.vertex=!0,v.insert(je));v.style="Dark"==e.Scheme?v.style+"strokeWidth=1;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=1;strokeColor=#5C5C5C;fillColor=#ffffff;";v.style+=b(v.style,e,u,v);break;case "AndroidToggle":v.style="Dark"==e.Scheme?e.Checked?
+v.style+"shape=mxgraph.android.switch_on;fillColor=#666666;":v.style+"shape=mxgraph.android.switch_off;fillColor=#666666;":e.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";v.style+=b(v.style,e,u,v);break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+e.BarPosition+";fillColor=#33b5e5;";v.style+=b(v.style,e,u,v);break;case "iOSSegmentedControl":cc=parseInt(e.Tabs);Hb=r;v.style+="strokeColor=none;fillColor=none;";
+0<cc&&(Hb/=cc);Ua=[];Pa=[];for(l=0;l<cc;l++)Ua[l]=new mxCell("",new mxGeometry(l*Hb,0,Hb,p),"strokeColor="+e.FillColor+";"),Ua[l].vertex=!0,v.insert(Ua[l]),Ua[l].value=m(e["Tab_"+l]),Ua[l].style+=a(e["Tab_"+l],G),Ua[l].style=e.Selected==l?Ua[l].style+Y(e,u):Ua[l].style+"fillColor=none;";v.style+=b(v.style,e,u,v);break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+e.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*e.BarPosition+";";v.style+=b(v.style,e,u,v);break;case "iOSProgressBar":v=
+new mxCell("",new mxGeometry(Math.round(aa),Math.round(ba+.25*p),Math.round(r),Math.round(.5*p)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");v.vertex=!0;Ad=new mxCell("",new mxGeometry(0,0,r*e.BarPosition,Math.round(.5*p)),"strokeColor=none;"+Y(e,u));Ad.vertex=!0;v.insert(Ad);v.style+=b(v.style,e,u,v);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;strokeColor=#D6D6D6;";v.style+=b(v.style,e,u,v);break;case "iOSStatusBar":v.style+=
+"shape=mxgraph.ios7ui.appBar;strokeColor=#000000;";var Da=new mxCell(m(e.Text),new mxGeometry(.35*r,0,.3*r,p),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.style+=a(e.Text,G);var Db=new mxCell(m(e.Carrier),new mxGeometry(.09*r,0,.2*r,p),"strokeColor=none;fillColor=none;");Db.vertex=!0;v.insert(Db);Db.style+=a(e.Carrier,G);v.style+=b(v.style,e,u,v);break;case "iOSSearchBar":v.value=m(e.Search);v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v,G)+a(e.Search,G);var Ia=new mxCell("",
+new mxGeometry(.3*r,.3*p,.4*p,.4*p),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");Ia.vertex=!0;v.insert(Ia);break;case "iOSNavBar":v.value=m(e.Title);v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+a(e.Title,G);v.style+=b(v.style,e,u,v,G);Da=new mxCell(m(e.LeftText),new mxGeometry(.03*r,0,.3*r,p),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.style+=a(e.LeftText,G);Db=new mxCell(m(e.RightText),new mxGeometry(.65*r,0,.3*
+r,p),"strokeColor=none;fillColor=none;");Db.vertex=!0;v.insert(Db);Db.style+=a(e.RightText,G);Ia=new mxCell("",new mxGeometry(.02*r,.2*p,.3*p,.5*p),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");Ia.vertex=!0;v.insert(Ia);break;case "iOSTabs":cc=parseInt(e.Tabs);Hb=r;v.style+="shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;";v.style+=b(v.style,e,u,v);0<cc&&(Hb/=cc);Ua=[];Pa=[];for(l=0;l<cc;l++)Ua[l]=new mxCell("",new mxGeometry(l*Hb,0,Hb,p),"strokeColor=none;"),
+Ua[l].vertex=!0,v.insert(Ua[l]),Ua[l].value=m(e["Tab_"+l]),Ua[l].style+=G?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+mb:f(e["Tab_"+l])+k(e["Tab_"+l])+q(e["Tab_"+l])+t(e["Tab_"+l])+C(e["Tab_"+l])+I(e["Tab_"+l])+Q(e["Tab_"+l])+K(e["Tab_"+l])+L(e["Tab_"+l])+S(e["Tab_"+l]),Ua[l].style+="verticalAlign=bottom;",Ua[l].style=e.Selected==l?Ua[l].style+"fillColor=#BBBBBB;":Ua[l].style+"fillColor=none;";break;case "iOSDatePicker":var dc=new mxCell("",new mxGeometry(0,0,.5*r,.2*p),"strokeColor=none;fillColor=none;");
+dc.vertex=!0;v.insert(dc);dc.value=m(e.Option11);dc.style+=a(e.Option11,G);var ec=new mxCell("",new mxGeometry(.5*r,0,.15*r,.2*p),"strokeColor=none;fillColor=none;");ec.vertex=!0;v.insert(ec);ec.value=m(e.Option21);ec.style+=a(e.Option21,G);var fc=new mxCell("",new mxGeometry(.65*r,0,.15*r,.2*p),"strokeColor=none;fillColor=none;");fc.vertex=!0;v.insert(fc);fc.value=m(e.Option31);fc.style+=a(e.Option31,G);var gc=new mxCell("",new mxGeometry(0,.2*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");gc.vertex=
+!0;v.insert(gc);gc.value=m(e.Option12);gc.style+=a(e.Option12,G);var hc=new mxCell("",new mxGeometry(.5*r,.2*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");hc.vertex=!0;v.insert(hc);hc.value=m(e.Option22);hc.style+=a(e.Option22,G);var ic=new mxCell("",new mxGeometry(.65*r,.2*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");ic.vertex=!0;v.insert(ic);ic.value=m(e.Option32);ic.style+=a(e.Option32,G);var rb=new mxCell("",new mxGeometry(0,.4*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");rb.vertex=
+!0;v.insert(rb);rb.value=m(e.Option13);rb.style+=a(e.Option13,G);var sb=new mxCell("",new mxGeometry(.5*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=m(e.Option23);sb.style+=a(e.Option23,G);var jc=new mxCell("",new mxGeometry(.65*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");jc.vertex=!0;v.insert(jc);jc.value=m(e.Option33);jc.style+=a(e.Option33,G);var tb=new mxCell("",new mxGeometry(.8*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");tb.vertex=
+!0;v.insert(tb);tb.value=m(e.Option43);tb.style+=a(e.Option43,G);var ub=new mxCell("",new mxGeometry(0,.6*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option14);ub.style+=a(e.Option14,G);var kc=new mxCell("",new mxGeometry(.5*r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");kc.vertex=!0;v.insert(kc);kc.value=m(e.Option24);kc.style+=a(e.Option24,G);var lc=new mxCell("",new mxGeometry(.65*r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");lc.vertex=
+!0;v.insert(lc);lc.value=m(e.Option34);lc.style+=a(e.Option34,G);var mc=new mxCell("",new mxGeometry(.8*r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");mc.vertex=!0;v.insert(mc);mc.value=m(e.Option44);mc.style+=a(e.Option44,G);var vb=new mxCell("",new mxGeometry(0,.8*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");vb.vertex=!0;v.insert(vb);vb.value=m(e.Option15);vb.style+=a(e.Option15,G);var nc=new mxCell("",new mxGeometry(.5*r,.8*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");nc.vertex=
+!0;v.insert(nc);nc.value=m(e.Option25);nc.style+=a(e.Option25,G);var oc=new mxCell("",new mxGeometry(.65*r,.8*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");oc.vertex=!0;v.insert(oc);oc.value=m(e.Option35);oc.style+=a(e.Option35,G);Ab=new mxCell("",new mxGeometry(0,.4*p-2,r,4),"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);Bb=new mxCell("",new mxGeometry(0,.6*p-2,r,4),"shape=line;strokeColor=#888888;");Bb.vertex=!0;v.insert(Bb);v.style+="strokeColor=none;";v.style+=b(v.style,e,u,
+v);break;case "iOSTimePicker":dc=new mxCell("",new mxGeometry(0,0,.25*r,.2*p),"strokeColor=none;fillColor=none;");dc.vertex=!0;v.insert(dc);dc.value=m(e.Option11);dc.style+=a(e.Option11,G);ec=new mxCell("",new mxGeometry(.25*r,0,.3*r,.2*p),"strokeColor=none;fillColor=none;");ec.vertex=!0;v.insert(ec);ec.value=m(e.Option21);ec.style+=a(e.Option21,G);gc=new mxCell("",new mxGeometry(0,.2*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");gc.vertex=!0;v.insert(gc);gc.value=m(e.Option12);gc.style+=a(e.Option12,
+G);hc=new mxCell("",new mxGeometry(.25*r,.2*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");hc.vertex=!0;v.insert(hc);hc.value=m(e.Option22);hc.style+=a(e.Option22,G);rb=new mxCell("",new mxGeometry(0,.4*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");rb.vertex=!0;v.insert(rb);rb.value=m(e.Option13);rb.style+=a(e.Option13,G);sb=new mxCell("",new mxGeometry(.25*r,.4*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=m(e.Option23);sb.style+=a(e.Option23,G);tb=new mxCell("",
+new mxGeometry(.7*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=m(e.Option33);tb.style+=a(e.Option33,G);ub=new mxCell("",new mxGeometry(0,.6*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option14);ub.style+=a(e.Option14,G);kc=new mxCell("",new mxGeometry(.25*r,.6*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");kc.vertex=!0;v.insert(kc);kc.value=m(e.Option24);kc.style+=a(e.Option24,G);mc=new mxCell("",new mxGeometry(.7*
+r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");mc.vertex=!0;v.insert(mc);mc.value=m(e.Option34);mc.style+=a(e.Option34,G);vb=new mxCell("",new mxGeometry(0,.8*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");vb.vertex=!0;v.insert(vb);vb.value=m(e.Option15);vb.style+=a(e.Option15,G);nc=new mxCell("",new mxGeometry(.25*r,.8*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");nc.vertex=!0;v.insert(nc);nc.value=m(e.Option25);nc.style+=a(e.Option25,G);Ab=new mxCell("",new mxGeometry(0,.4*p-2,r,4),
+"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);Bb=new mxCell("",new mxGeometry(0,.6*p-2,r,4),"shape=line;strokeColor=#888888;");Bb.vertex=!0;v.insert(Bb);v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v);break;case "iOSCountdownPicker":fc=new mxCell("",new mxGeometry(.45*r,0,.2*r,.2*p),"strokeColor=none;fillColor=none;");fc.vertex=!0;v.insert(fc);fc.value=m(e.Option31);fc.style+=a(e.Option31,G);ic=new mxCell("",new mxGeometry(.45*r,.2*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");
+ic.vertex=!0;v.insert(ic);ic.value=m(e.Option32);ic.style+=a(e.Option32,G);rb=new mxCell("",new mxGeometry(0,.4*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");rb.vertex=!0;v.insert(rb);rb.value=m(e.Option13);rb.style+=a(e.Option13,G);sb=new mxCell("",new mxGeometry(.2*r,.4*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=m(e.Option23);sb.style+=a(e.Option23,G);jc=new mxCell("",new mxGeometry(.45*r,.4*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");jc.vertex=
+!0;v.insert(jc);jc.value=m(e.Option33);jc.style+=a(e.Option33,G);tb=new mxCell("",new mxGeometry(.6*r,.4*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=m(e.Option43);tb.style+=a(e.Option43,G);ub=new mxCell("",new mxGeometry(0,.6*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option14);ub.style+=a(e.Option14,G);lc=new mxCell("",new mxGeometry(.45*r,.6*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");lc.vertex=!0;v.insert(lc);
+lc.value=m(e.Option34);lc.style+=a(e.Option34,G);vb=new mxCell("",new mxGeometry(0,.8*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");vb.vertex=!0;v.insert(vb);vb.value=m(e.Option15);vb.style+=a(e.Option15,G);oc=new mxCell("",new mxGeometry(.45*r,.8*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");oc.vertex=!0;v.insert(oc);oc.value=m(e.Option35);oc.style+=a(e.Option35,G);Ab=new mxCell("",new mxGeometry(0,.4*p-2,r,4),"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);Bb=new mxCell("",new mxGeometry(0,
+.6*p-2,r,4),"shape=line;strokeColor=#888888;");Bb.vertex=!0;v.insert(Bb);v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v);break;case "iOSBasicCell":v.value=m(e.text);v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+.75*e.SeparatorInset+";";v.style+=(G?"fontSize=13;":f(e.text)+q(e.text)+t(e.text))+R(e.text);v.style+=b(v.style,e,u,v,G);switch(e.AccessoryIndicatorType){case "Disclosure":Ia=new mxCell("",new mxGeometry(.91*
+r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);break;case "DetailDisclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);var ab=new mxCell("",new mxGeometry(.79*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);break;case "DetailIndicator":ab=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,
+.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);break;case "CheckMark":Ia=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Ia.vertex=!0,v.insert(Ia)}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*e.SeparatorInset+";";v.value=m(e.subtext);v.style+=
+G?"fontSize=13;":f(e.subtext)+q(e.subtext)+t(e.subtext);v.style+=b(v.style,e,u,v,G);var db=new mxCell("",new mxGeometry(0,.4*p,r,.6*p),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+.75*e.SeparatorInset+";");db.vertex=!0;v.insert(db);db.value=m(e.text);db.style+=G?"html=1;fontSize=13;"+mb:f(e.text)+k(e.text)+q(e.text)+t(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");
+Ia.vertex=!0;v.insert(Ia);break;case "DetailDisclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);ab=new mxCell("",new mxGeometry(.79*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);break;case "DetailIndicator":ab=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
+ab.vertex=!0;v.insert(ab);break;case "CheckMark":Ia=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Ia.vertex=!0,v.insert(Ia)}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*e.SeparatorInset+";";v.value=m(e.subtext);v.style+=G?"fontSize=13;":f(e.subtext)+q(e.subtext)+t(e.subtext);v.style+=b(v.style,
+e,u,v,G);db=null;switch(e.AccessoryIndicatorType){case "Disclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);db=new mxCell("",new mxGeometry(.55*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);ab=new mxCell("",new mxGeometry(.79*
+r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);db=new mxCell("",new mxGeometry(.45*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailIndicator":ab=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);db=new mxCell("",new mxGeometry(.52*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");
+break;case "CheckMark":Ia=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;");Ia.vertex=!0;v.insert(Ia);db=new mxCell("",new mxGeometry(.55*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:db=new mxCell("",new mxGeometry(.65*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;")}db.vertex=!0;v.insert(db);db.value=m(e.text);db.style+=G?"html=1;fontSize=13;"+mb:f(e.text)+k(e.text)+
+q(e.text)+t(e.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";v.style+=b(v.style,e,u,v);var Ub=new mxCell("",new mxGeometry(0,0,.25*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");Ub.vertex=!0;v.insert(Ub);Ub.value=m(e.subtext);Ub.style+=G?"html=1;fontSize=13;"+mb:f(e.subtext)+k(e.subtext)+q(e.subtext)+t(e.subtext);db=new mxCell("",new mxGeometry(.25*r,0,.5*r,p),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");
+db.vertex=!0;v.insert(db);db.value=m(e.text);db.style+=G?"html=1;fontSize=13;"+mb:f(e.text)+k(e.text)+q(e.text)+t(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);break;case "DetailDisclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);ab=new mxCell("",new mxGeometry(.79*
+r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);break;case "DetailIndicator":ab=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);break;case "CheckMark":Ia=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Ia.vertex=!0,v.insert(Ia)}break;case "iOSTableGroupedSectionBreak":v.style+=
+"shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";Da=new mxCell("",new mxGeometry(0,0,r,.4*p),"fillColor=none;strokeColor=none;spacing=10;align=left;");Da.vertex=!0;v.insert(Da);Da.value=m(e.text);Da.style+=G?"html=1;fontSize=13;"+mb:f(e.text)+k(e.text)+q(e.text)+t(e.text);Db=new mxCell("",new mxGeometry(0,.6*p,r,.4*p),"fillColor=none;strokeColor=none;spacing=10;align=left;");Db.vertex=!0;v.insert(Db);Db.value=m(e["bottom-text"]);Db.style+=G?"html=1;fontSize=13;"+mb:f(e["bottom-text"])+
+k(e["bottom-text"])+q(e["bottom-text"])+t(e["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";v.value=m(e.text);v.style+=G?"fontSize=13;":f(e.text)+q(e.text)+t(e.text);v.style+=b(v.style,e,u,v,G);break;case "SMPage":if(e.Group){v.style+="strokeColor=none;fillColor=none;";var x=new mxCell("",new mxGeometry(0,0,.9*r,.9*p),"rounded=1;arcSize=3;part=1;");x.vertex=!0;v.insert(x);x.style+=H(e,u)+Y(e,u)+M(e,u,x)+ca(e)+
+oa(e);var E=new mxCell("",new mxGeometry(.1*r,.1*p,.9*r,.9*p),"rounded=1;arcSize=3;part=1;");E.vertex=!0;v.insert(E);E.value=m(e.Text);E.style+=H(e,u)+Y(e,u)+M(e,u,E)+ca(e)+oa(e)+a(e,G);e.Future&&(x.style+="dashed=1;fixDash=1;",E.style+="dashed=1;fixDash=1;")}else v.style+="rounded=1;arcSize=3;",e.Future&&(v.style+="dashed=1;fixDash=1;"),v.value=m(e.Text),v.style+=H(e,u)+Y(e,u)+M(e,u,v)+ca(e)+oa(e)+a(e,G);v.style+=b(v.style,e,u,v,G);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":x=
null;switch(w.Class){case "SMHome":x=new mxCell("",new mxGeometry(.5*r-.4*p,.1*p,.8*p,.8*p),"part=1;shape=mxgraph.office.concepts.home;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMPrint":x=new mxCell("",new mxGeometry(.5*r-.4*p,.19*p,.8*p,.62*p),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":x=new mxCell("",new mxGeometry(.5*r-.4*p,.1*p,.8*p,.8*p),"part=1;shape=mxgraph.office.concepts.search;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMSettings":x=new mxCell("",new mxGeometry(.5*r-.35*p,.15*p,.7*p,.7*p),"part=1;shape=mxgraph.mscae.enterprise.settings;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSitemap":x=new mxCell("",new mxGeometry(.5*r-.35*p,.2*p,.7*p,.6*p),"part=1;shape=mxgraph.office.sites.site_collection;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSuccess":x=new mxCell("",new mxGeometry(.5*r-.3*p,.25*p,.6*p,.5*p),"part=1;shape=mxgraph.mscae.general.checkmark;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMVideo":x=new mxCell("",new mxGeometry(.5*r-.4*p,.2*p,.8*p,.6*p),"part=1;shape=mxgraph.office.concepts.video_play;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMAudio":x=new mxCell("",new mxGeometry(.5*r-.3*p,.2*p,.6*p,.6*p),"part=1;shape=mxgraph.mscae.general.audio;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMCalendar":x=new mxCell("",new mxGeometry(.5*r-.4*p,.15*p,.8*p,.7*p),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
-break;case "SMChart":var Y=ba(e,u);Y=""==Y?"#ffffff;":Y.replace("fillColor=","");x=new mxCell("",new mxGeometry(.5*r-.35*p,.15*p,.7*p,.7*p),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+Y);break;case "SMCloud":x=new mxCell("",new mxGeometry(.5*r-.4*p,.27*p,.8*p,.46*p),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":x=new mxCell("",new mxGeometry(.5*r-.25*p,.15*p,.5*p,.7*p),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
+break;case "SMChart":var Z=Y(e,u);Z=""==Z?"#ffffff;":Z.replace("fillColor=","");x=new mxCell("",new mxGeometry(.5*r-.35*p,.15*p,.7*p,.7*p),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+Z);break;case "SMCloud":x=new mxCell("",new mxGeometry(.5*r-.4*p,.27*p,.8*p,.46*p),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":x=new mxCell("",new mxGeometry(.5*r-.25*p,.15*p,.5*p,.7*p),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMForm":x=new mxCell("",new mxGeometry(.5*r-.4*p,.15*p,.8*p,.7*p),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMGame":x=new mxCell("",new mxGeometry(.5*r-.4*p,.2*p,.8*p,.6*p),"part=1;shape=mxgraph.mscae.general.game_controller;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMUpload":x=new mxCell("",new mxGeometry(.5*r-.4*p,.2*p,.8*p,.6*p),"part=1;shape=mxgraph.mscae.enterprise.backup_online;fillColor=#e6e6e6;opacity=50;strokeColor=none;")}x.vertex=
-!0;v.insert(x);x.value=m(e.Text);x.style+=a(e,G);v.style+=b(v.style,e,u,v);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";x=new mxCell("",new mxGeometry(.1*r,0,.9*r,.9*p),"part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("",new mxGeometry(0,.1*p,.9*r,.9*p),"part=1;");E.vertex=!0;v.insert(E);E.value=m(e.Text);E.style+=a(e.Text,G);E.style+=b(E.style,e,u,E,G);break;case "UMLConstraintBlock":var Bc=new mxCell("",new mxGeometry(0,0,.25*p,p),"shape=curlyBracket;rounded=1;");
-Bc.vertex=!0;v.insert(Bc);var Cc=new mxCell("",new mxGeometry(r-.25*p,0,.25*p,p),"shape=curlyBracket;rounded=1;flipH=1;");Cc.vertex=!0;v.insert(Cc);na=new mxCell("",new mxGeometry(.25*p,0,r-.5*p,p),"strokeColor=none;fillColor=none;");na.vertex=!0;na.value=m(e);v.insert(na);v.style="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);Bc.style+=Q(e,u,Bc);Cc.style+=Q(e,u,Cc);na.style+=q(e,na);Bc.style+=b(Bc.style,e,u,Bc);Cc.style+=b(Cc.style,e,u,Cc);na.style+=b(na.style,e,u,na,G);break;case "UMLTextBlock":v.value=
-m(e.Text);v.style+="strokeColor=none;"+a(e.Text,G);v.style+=b(v.style,e,u,v,G);break;case "UMLProvidedInterfaceBlock":case "UMLProvidedInterfaceBlockV2":mb=ca(e,u,v);e.Rotatio=null;var Vb=b(v.style,e,u,v,G);-1==Vb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Vb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Vb);v.style="group;dropTarget=0;pointerEvents=0;"+mb;var Td=.8*r,Ff=r-Td,Qc=new mxCell("",new mxGeometry(.2,0,Td,p),"shape=ellipse;"+Vb);Qc.vertex=!0;Qc.geometry.relative=!0;v.insert(Qc);Qa=new mxCell("",new mxGeometry(0,
-.5,Ff,1),"line;"+Vb);Qa.geometry.relative=!0;Qa.vertex=!0;v.insert(Qa);break;case "UMLComponentBoxBlock":case "UMLComponentBoxBlockV2":v.value=m(e);v.style="html=1;dropTarget=0;"+b(v.style,e,u,v,G);var nb=new mxCell("",new mxGeometry(1,0,15,15),"shape=component;jettyWidth=8;jettyHeight=4;");nb.geometry.relative=!0;nb.geometry.offset=new mxPoint(-20,5);nb.vertex=!0;v.insert(nb);break;case "UMLAssemblyConnectorBlock":case "UMLAssemblyConnectorBlockV2":mb=ca(e,u,v);e.Rotatio=null;Vb=b(v.style,e,u,v,
-G);-1==Vb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Vb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Vb);v.style="group;dropTarget=0;pointerEvents=0;"+mb;var Re=.225*r,Se=.1*r;Td=r-Re-Se;Qc=new mxCell("",new mxGeometry(.225,0,Td,p),"shape=providedRequiredInterface;verticalLabelPosition=bottom;"+Vb);Qc.vertex=!0;Qc.geometry.relative=!0;v.insert(Qc);zb=new mxCell("",new mxGeometry(0,.5,Re,1),"line;"+Vb);zb.geometry.relative=!0;zb.vertex=!0;v.insert(zb);Ab=new mxCell("",new mxGeometry(.9,.5,Se,1),"line;"+Vb);Ab.geometry.relative=
-!0;Ab.vertex=!0;v.insert(Ab);break;case "BPMNActivity":v.value=m(e.Text);switch(e.bpmnActivityType){case 1:v.style+=a(e.Text,G);break;case 2:v.style+="shape=ext;double=1;"+a(e.Text,G);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 5;"+a(e.Text,G);break;case 4:v.style+="shape=ext;strokeWidth=2;"+a(e.Text,G)}if(0!=e.bpmnTaskType){switch(e.bpmnTaskType){case 1:x=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");x.geometry.offset=new mxPoint(4,7);break;case 2:x=new mxCell("",new mxGeometry(0,
+!0;v.insert(x);x.value=m(e.Text);x.style+=a(e,G);v.style+=b(v.style,e,u,v);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";x=new mxCell("",new mxGeometry(.1*r,0,.9*r,.9*p),"part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("",new mxGeometry(0,.1*p,.9*r,.9*p),"part=1;");E.vertex=!0;v.insert(E);E.value=m(e.Text);E.style+=a(e.Text,G);E.style+=b(E.style,e,u,E,G);break;case "UMLConstraintBlock":var Cc=new mxCell("",new mxGeometry(0,0,.25*p,p),"shape=curlyBracket;rounded=1;");
+Cc.vertex=!0;v.insert(Cc);var Dc=new mxCell("",new mxGeometry(r-.25*p,0,.25*p,p),"shape=curlyBracket;rounded=1;flipH=1;");Dc.vertex=!0;v.insert(Dc);pa=new mxCell("",new mxGeometry(.25*p,0,r-.5*p,p),"strokeColor=none;fillColor=none;");pa.vertex=!0;pa.value=m(e);v.insert(pa);v.style="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);Cc.style+=M(e,u,Cc);Dc.style+=M(e,u,Dc);pa.style+=q(e,pa);Cc.style+=b(Cc.style,e,u,Cc);Dc.style+=b(Dc.style,e,u,Dc);pa.style+=b(pa.style,e,u,pa,G);break;case "UMLTextBlock":v.value=
+m(e.Text);v.style+="strokeColor=none;"+a(e.Text,G);v.style+=b(v.style,e,u,v,G);break;case "UMLProvidedInterfaceBlock":case "UMLProvidedInterfaceBlockV2":nb=T(e,u,v);e.Rotatio=null;var Vb=b(v.style,e,u,v,G);-1==Vb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Vb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Vb);v.style="group;dropTarget=0;pointerEvents=0;"+nb;var Ud=.8*r,Ff=r-Ud,Rc=new mxCell("",new mxGeometry(.2,0,Ud,p),"shape=ellipse;"+Vb);Rc.vertex=!0;Rc.geometry.relative=!0;v.insert(Rc);Pa=new mxCell("",new mxGeometry(0,
+.5,Ff,1),"line;"+Vb);Pa.geometry.relative=!0;Pa.vertex=!0;v.insert(Pa);break;case "UMLComponentBoxBlock":case "UMLComponentBoxBlockV2":v.value=m(e);v.style="html=1;dropTarget=0;"+b(v.style,e,u,v,G);var ob=new mxCell("",new mxGeometry(1,0,15,15),"shape=component;jettyWidth=8;jettyHeight=4;");ob.geometry.relative=!0;ob.geometry.offset=new mxPoint(-20,5);ob.vertex=!0;v.insert(ob);break;case "UMLAssemblyConnectorBlock":case "UMLAssemblyConnectorBlockV2":nb=T(e,u,v);e.Rotatio=null;Vb=b(v.style,e,u,v,G);
+-1==Vb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Vb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Vb);v.style="group;dropTarget=0;pointerEvents=0;"+nb;var Se=.225*r,Te=.1*r;Ud=r-Se-Te;Rc=new mxCell("",new mxGeometry(.225,0,Ud,p),"shape=providedRequiredInterface;verticalLabelPosition=bottom;"+Vb);Rc.vertex=!0;Rc.geometry.relative=!0;v.insert(Rc);Ab=new mxCell("",new mxGeometry(0,.5,Se,1),"line;"+Vb);Ab.geometry.relative=!0;Ab.vertex=!0;v.insert(Ab);Bb=new mxCell("",new mxGeometry(.9,.5,Te,1),"line;"+Vb);Bb.geometry.relative=
+!0;Bb.vertex=!0;v.insert(Bb);break;case "BPMNActivity":v.value=m(e.Text);switch(e.bpmnActivityType){case 1:v.style+=a(e.Text,G);break;case 2:v.style+="shape=ext;double=1;"+a(e.Text,G);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 5;"+a(e.Text,G);break;case 4:v.style+="shape=ext;strokeWidth=2;"+a(e.Text,G)}if(0!=e.bpmnTaskType){switch(e.bpmnTaskType){case 1:x=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");x.geometry.offset=new mxPoint(4,7);break;case 2:x=new mxCell("",new mxGeometry(0,
0,19,12),"shape=message;");x.geometry.offset=new mxPoint(4,7);break;case 3:x=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");x.geometry.offset=new mxPoint(4,5);break;case 4:x=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");x.geometry.offset=new mxPoint(4,7);break;case 5:x=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");x.geometry.offset=new mxPoint(4,7);break;case 6:x=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");
-x.geometry.offset=new mxPoint(4,5);break;case 7:x=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),x.geometry.offset=new mxPoint(4,5)}if(1==e.bpmnTaskType){var Rc=ba(e,u);Y=J(e,u);Y=Y.replace("strokeColor","fillColor");Rc=Rc.replace("fillColor","strokeColor");""==Y&&(Y="fillColor=#000000;");""==Rc&&(Rc="strokeColor=#ffffff;");x.style+=Rc+Y+"part=1;"}else x.style+=ba(e,u)+J(e,u)+"part=1;";x.geometry.relative=!0;x.vertex=!0;v.insert(x)}var Bd=0;0!=e.bpmnActivityMarker1&&Bd++;
-0!=e.bpmnActivityMarker2&&Bd++;var Db=0;1==Bd?Db=-7.5:2==Bd&&(Db=-19);if(0!=e.bpmnActivityMarker1){switch(e.bpmnActivityMarker1){case 1:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");x.geometry.offset=new mxPoint(Db,-20);x.style+=ba(e,u)+J(e,u);break;case 2:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");x.geometry.offset=new mxPoint(Db,-20);x.style+=ba(e,u)+J(e,u);break;case 3:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");
-x.geometry.offset=new mxPoint(Db,-20);x.style+=ba(e,u)+J(e,u);break;case 4:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");x.geometry.offset=new mxPoint(Db,-20);x.style+=ba(e,u)+J(e,u);break;case 5:x=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");x.geometry.offset=new mxPoint(Db,-17);Y=J(e,u);Y=Y.replace("strokeColor","fillColor");""==Y&&(Y="fillColor=#000000;");x.style+=Y;break;case 6:x=new mxCell("",
-new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),x.geometry.offset=new mxPoint(Db,-18),x.style+=ba(e,u)+J(e,u)}x.geometry.relative=!0;x.vertex=!0;v.insert(x)}2==Bd&&(Db=5);if(0!=e.bpmnActivityMarker2){switch(e.bpmnActivityMarker2){case 1:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");x.geometry.offset=new mxPoint(Db,-20);x.style+=ba(e,u)+J(e,u);break;case 2:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");x.geometry.offset=new mxPoint(Db,
--20);x.style+=ba(e,u)+J(e,u);break;case 3:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");x.geometry.offset=new mxPoint(Db,-20);x.style+=ba(e,u)+J(e,u);break;case 4:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");x.geometry.offset=new mxPoint(Db,-20);x.style+=ba(e,u)+J(e,u);break;case 5:x=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");x.geometry.offset=new mxPoint(Db,-17);
-Y=J(e,u);Y=Y.replace("strokeColor","fillColor");""==Y&&(Y="fillColor=#000000;");x.style+=Y;break;case 6:x=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),x.geometry.offset=new mxPoint(Db,-18),x.style+=ba(e,u)+J(e,u)}x.geometry.relative=!0;x.vertex=!0;v.insert(x)}v.style+=b(v.style,e,u,v);break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);if(1==e.bpmnDashed)switch(e.bpmnEventGroup){case 0:v.style+=
+x.geometry.offset=new mxPoint(4,5);break;case 7:x=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),x.geometry.offset=new mxPoint(4,5)}if(1==e.bpmnTaskType){var Sc=Y(e,u);Z=H(e,u);Z=Z.replace("strokeColor","fillColor");Sc=Sc.replace("fillColor","strokeColor");""==Z&&(Z="fillColor=#000000;");""==Sc&&(Sc="strokeColor=#ffffff;");x.style+=Sc+Z+"part=1;"}else x.style+=Y(e,u)+H(e,u)+"part=1;";x.geometry.relative=!0;x.vertex=!0;v.insert(x)}var Cd=0;0!=e.bpmnActivityMarker1&&Cd++;
+0!=e.bpmnActivityMarker2&&Cd++;var Eb=0;1==Cd?Eb=-7.5:2==Cd&&(Eb=-19);if(0!=e.bpmnActivityMarker1){switch(e.bpmnActivityMarker1){case 1:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 2:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 3:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");
+x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 4:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 5:x=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");x.geometry.offset=new mxPoint(Eb,-17);Z=H(e,u);Z=Z.replace("strokeColor","fillColor");""==Z&&(Z="fillColor=#000000;");x.style+=Z;break;case 6:x=new mxCell("",
+new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),x.geometry.offset=new mxPoint(Eb,-18),x.style+=Y(e,u)+H(e,u)}x.geometry.relative=!0;x.vertex=!0;v.insert(x)}2==Cd&&(Eb=5);if(0!=e.bpmnActivityMarker2){switch(e.bpmnActivityMarker2){case 1:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 2:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");x.geometry.offset=new mxPoint(Eb,
+-20);x.style+=Y(e,u)+H(e,u);break;case 3:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 4:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 5:x=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");x.geometry.offset=new mxPoint(Eb,-17);Z=H(e,
+u);Z=Z.replace("strokeColor","fillColor");""==Z&&(Z="fillColor=#000000;");x.style+=Z;break;case 6:x=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),x.geometry.offset=new mxPoint(Eb,-18),x.style+=Y(e,u)+H(e,u)}x.geometry.relative=!0;x.vertex=!0;v.insert(x)}v.style+=b(v.style,e,u,v);break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);if(1==e.bpmnDashed)switch(e.bpmnEventGroup){case 0:v.style+=
"outline=eventNonint;";break;case 1:v.style+="outline=boundNonint;";break;case 2:v.style+="outline=end;"}else switch(e.bpmnEventGroup){case 0:v.style+="outline=standard;";break;case 1:v.style+="outline=throwing;";break;case 2:v.style+="outline=end;"}switch(e.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+=b(v.style,e,u,v,G);break;case "BPMNChoreography":try{var ja=U(e.FillColor),je=Rd(ja,.75),Jc=f(e.Name).match(/\d+/),db=Math.max(mxUtils.getSizeForString(e.Name.t,Jc?Jc[0]:"13",null,r-10).height,24);ja="swimlaneFillColor="+je+";";v.value=
-m(e.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+ja+"startSize="+db+";spacingLeft=3;spacingRight=3;fontStyle=0;"+a(e.Name,G);v.style+=b(v.style,e,u,v,G);var Wb=db;Jc=f(e.TaskName).match(/\d+/);var pc=e.TaskHeight?.75*e.TaskHeight:Math.max(mxUtils.getSizeForString(e.TaskName.t,Jc?Jc[0]:"13",null,r-10).height+15,24),Dc=new mxCell("",new mxGeometry(0,Wb,r,pc),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");
-Dc.value=m(e.TaskName);Dc.vertex=!0;v.insert(Dc);Dc.style+=a(e.TaskName,G);Dc.style+=b(Dc.style,e,u,Dc,G);Wb+=pc;X=[];for(l=0;l<e.Fields;l++){var Ud=e["Participant"+(l+1)];Jc=f(Ud).match(/\d+/);pc=Math.max(mxUtils.getSizeForString(Ud.t,Jc?Jc[0]:"13",null,r-10).height,24);X[l]=new mxCell("",new mxGeometry(0,Wb,r,pc),"part=1;html=1;resizeHeight=0;fillColor=none;spacingTop=-1;spacingLeft=3;spacingRight=3;");Wb+=pc;X[l].vertex=!0;v.insert(X[l]);X[l].style+=a(Ud,G);X[l].style+=b(X[l].style,e,u,X[l],G);
-X[l].value=m(Ud)}}catch(gb){console.log(gb)}break;case "BPMNConversation":v.style+="shape=hexagon;perimeter=hexagonPerimeter2;";v.value=m(e.Text);v.style=0==e.bpmnConversationType?v.style+sa(e):v.style+"strokeWidth=2;";e.bpmnIsSubConversation&&(x=new mxCell("",new mxGeometry(.5,1,12,12),"shape=plus;part=1;"),x.geometry.offset=new mxPoint(-6,-17),x.style+=ba(e,u)+J(e,u),x.geometry.relative=!0,x.vertex=!0,v.insert(x));v.style+=b(v.style,e,u,v,G);break;case "BPMNGateway":v.style+="shape=mxgraph.bpmn.shape;perimeter=rhombusPerimeter;background=gateway;verticalLabelPosition=bottom;verticalAlign=top;";
+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+=b(v.style,e,u,v,G);break;case "BPMNChoreography":try{var ja=P(e.FillColor),ke=Sd(ja,.75),Kc=f(e.Name).match(/\d+/),eb=Math.max(mxUtils.getSizeForString(e.Name.t,Kc?Kc[0]:"13",null,r-10).height,24);ja="swimlaneFillColor="+ke+";";v.value=
+m(e.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+ja+"startSize="+eb+";spacingLeft=3;spacingRight=3;fontStyle=0;"+a(e.Name,G);v.style+=b(v.style,e,u,v,G);var Wb=eb;Kc=f(e.TaskName).match(/\d+/);var pc=e.TaskHeight?.75*e.TaskHeight:Math.max(mxUtils.getSizeForString(e.TaskName.t,Kc?Kc[0]:"13",null,r-10).height+15,24),Ec=new mxCell("",new mxGeometry(0,Wb,r,pc),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");
+Ec.value=m(e.TaskName);Ec.vertex=!0;v.insert(Ec);Ec.style+=a(e.TaskName,G);Ec.style+=b(Ec.style,e,u,Ec,G);Wb+=pc;X=[];for(l=0;l<e.Fields;l++){var Vd=e["Participant"+(l+1)];Kc=f(Vd).match(/\d+/);pc=Math.max(mxUtils.getSizeForString(Vd.t,Kc?Kc[0]:"13",null,r-10).height,24);X[l]=new mxCell("",new mxGeometry(0,Wb,r,pc),"part=1;html=1;resizeHeight=0;fillColor=none;spacingTop=-1;spacingLeft=3;spacingRight=3;");Wb+=pc;X[l].vertex=!0;v.insert(X[l]);X[l].style+=a(Vd,G);X[l].style+=b(X[l].style,e,u,X[l],G);
+X[l].value=m(Vd)}}catch(hb){console.log(hb)}break;case "BPMNConversation":v.style+="shape=hexagon;perimeter=hexagonPerimeter2;";v.value=m(e.Text);v.style=0==e.bpmnConversationType?v.style+oa(e):v.style+"strokeWidth=2;";e.bpmnIsSubConversation&&(x=new mxCell("",new mxGeometry(.5,1,12,12),"shape=plus;part=1;"),x.geometry.offset=new mxPoint(-6,-17),x.style+=Y(e,u)+H(e,u),x.geometry.relative=!0,x.vertex=!0,v.insert(x));v.style+=b(v.style,e,u,v,G);break;case "BPMNGateway":v.style+="shape=mxgraph.bpmn.shape;perimeter=rhombusPerimeter;background=gateway;verticalLabelPosition=bottom;verticalAlign=top;";
switch(e.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+=b(v.style,e,u,v);
-v.value=m(e.Text);v.style+=a(e,G);break;case "BPMNData":v.style+="shape=note;size=14;";switch(e.bpmnDataType){case 0:v.value=m(e.Text);e.Text&&!e.Text.t&&(e.Text.t=" ");break;case 1:x=new mxCell("",new mxGeometry(.5,1,12,10),"shape=parallelMarker;part=1;");x.geometry.offset=new mxPoint(-6,-15);x.style+=ba(e,u)+J(e,u);x.geometry.relative=!0;x.vertex=!0;v.insert(x);break;case 2:x=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;");x.geometry.offset=new mxPoint(3,
-3);x.style+=ba(e,u)+J(e,u);x.geometry.relative=!0;x.vertex=!0;v.insert(x);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";Da=new mxCell("",new mxGeometry(0,0,r,20),"strokeColor=none;fillColor=none;");Da.geometry.offset=new mxPoint(0,14);Da.geometry.relative=!0;Da.vertex=!0;v.insert(Da);Da.value=m(e.Text);Da.style+=a(e,G);break;case 3:x=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),x.geometry.offset=new mxPoint(3,3),x.style+=J(e,u),x.geometry.relative=
-!0,x.vertex=!0,v.insert(x),Y=J(e,u),Y=Y.replace("strokeColor","fillColor"),""==Y&&(Y="fillColor=#000000;"),x.style+=Y,Da=new mxCell("",new mxGeometry(0,0,r,20),"strokeColor=none;fillColor=none;"),Da.geometry.offset=new mxPoint(0,14),Da.geometry.relative=!0,Da.vertex=!0,v.insert(Da),Da.value=m(e.Text),Da.style+=a(e,G)}v.style+=b(v.style,e,u,v);break;case "BPMNBlackPool":v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,r,p),"fillColor=#000000;strokeColor=none;opacity=30;");
+v.value=m(e.Text);v.style+=a(e,G);break;case "BPMNData":v.style+="shape=note;size=14;";switch(e.bpmnDataType){case 0:v.value=m(e.Text);e.Text&&!e.Text.t&&(e.Text.t=" ");break;case 1:x=new mxCell("",new mxGeometry(.5,1,12,10),"shape=parallelMarker;part=1;");x.geometry.offset=new mxPoint(-6,-15);x.style+=Y(e,u)+H(e,u);x.geometry.relative=!0;x.vertex=!0;v.insert(x);break;case 2:x=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;");x.geometry.offset=new mxPoint(3,
+3);x.style+=Y(e,u)+H(e,u);x.geometry.relative=!0;x.vertex=!0;v.insert(x);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";Da=new mxCell("",new mxGeometry(0,0,r,20),"strokeColor=none;fillColor=none;");Da.geometry.offset=new mxPoint(0,14);Da.geometry.relative=!0;Da.vertex=!0;v.insert(Da);Da.value=m(e.Text);Da.style+=a(e,G);break;case 3:x=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),x.geometry.offset=new mxPoint(3,3),x.style+=H(e,u),x.geometry.relative=
+!0,x.vertex=!0,v.insert(x),Z=H(e,u),Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),x.style+=Z,Da=new mxCell("",new mxGeometry(0,0,r,20),"strokeColor=none;fillColor=none;"),Da.geometry.offset=new mxPoint(0,14),Da.geometry.relative=!0,Da.vertex=!0,v.insert(Da),Da.value=m(e.Text),Da.style+=a(e,G)}v.style+=b(v.style,e,u,v);break;case "BPMNBlackPool":v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,r,p),"fillColor=#000000;strokeColor=none;opacity=30;");
x.vertex=!0;v.insert(x);break;case "DFDExternalEntityBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);x=new mxCell("",new mxGeometry(0,0,.95*r,.95*p),"part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("",new mxGeometry(.05*r,.05*p,.95*r,.95*p),"part=1;");E.vertex=!0;v.insert(E);E.value=m(e.Text);E.style+=a(e.Text,G);E.style+=b(E.style,e,u,E,G);break;case "GSDFDDataStoreBlock":v.value=m(e.Text);v.style+="shape=partialRectangle;right=0;"+a(e.Text,G);
-v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,.2*r,p),"part=1;");x.vertex=!0;v.insert(x);x.value=m(e.Number);x.style+=a(e.Number,G);x.style+=b(x.style,e,u,x,G);break;case "OrgBlock":var Te="";for(Ga in e.Active)"Photo"!=Ga&&e.Active[Ga]&&(Te+=m(e[Ga],!0));if(e.Active.Photo){var ke=.4*r;v.style+="spacingLeft="+ke+";imageWidth="+(ke-4)+";imageHeight="+(ke-4)+";imageAlign=left;imageVerticalAlign=top;image="+g(e.Photo)}v.value=Te;v.style+=b(v.style,e,u,v,!0);break;case "DefaultTableBlock":try{Fb=
-e.RowHeights.length;Rb=e.ColWidths.length;var Vd=[],Cd=[];for(l=0;l<Fb;l++)Vd[l]=.75*e.RowHeights[l];for(fa=0;fa<Rb;fa++)Cd[fa]=.75*e.ColWidths[fa];v.style="group;dropTarget=0;pointerEvents=0;";var le=e.BandedColor1,me=e.BandedColor2,Gf=e.BandedRows,Ue=e.BandedCols,Wd=e.HideH,Hf=e.HideV,Ve=e.TextVAlign,We=e.FillColor,Xe=e.StrokeStyle;delete e.StrokeStyle;var If=ia(We,"fillOpacity"),Ye=e.LineColor,Jf=ia(Ye,"strokeOpacity");aa=0;var Dd={};for(l=0;l<Fb;l++){Z=0;p=Vd[l];for(fa=0;fa<Rb;fa++){var Lb=l+
-","+fa;if(Dd[Lb])Z+=Cd[fa];else{var kb=e["CellFill_"+Lb],ne=e["NoBand_"+Lb],Xd=e["CellSize_"+Lb],qc=e["Cell_"+Lb],Ze=e["Cell_"+Lb+"_VAlign"],Kf=e["Cell_"+Lb+"_TRotation"],Lf=e["CellBorderWidthH_"+Lb],Mf=e["CellBorderColorH_"+Lb],Nf=e["CellBorderStrokeStyleH_"+Lb],Of=e["CellBorderWidthV_"+Lb],Pf=e["CellBorderColorV_"+Lb],Qf=e["CellBorderStrokeStyleV_"+Lb],$e=Wd?Pf:Mf,af=ia($e,"strokeOpacity"),bf=Wd?Of:Lf,Sc=Wd?Qf:Nf;kb=Gf&&!ne?0==l%2?le:Ue&&!ne?0==fa%2?le:me:me:Ue&&!ne?0==fa%2?le:me:kb;var Rf=ia(kb,
-"fillOpacity")||If;r=Cd[fa];var cf=p;Yc=r;for(var Mb=l+1;Mb<l+Xd.h;Mb++)if(null!=Vd[Mb]){cf+=Vd[Mb];Dd[Mb+","+fa]=!0;for(var Tc=fa+1;Tc<fa+Xd.w;Tc++)Dd[Mb+","+Tc]=!0}for(Mb=fa+1;Mb<fa+Xd.w;Mb++)if(null!=Cd[Mb])for(Yc+=Cd[Mb],Dd[l+","+Mb]=!0,Tc=l+1;Tc<l+Xd.h;Tc++)Dd[Tc+","+Mb]=!0;var oa=new mxCell("",new mxGeometry(Z,aa,Yc,cf),"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;"+(Hf?"left=0;right=0;":"")+(Wd?"top=0;bottom=0;":"")+ba({FillColor:kb||We})+Zb(mxConstants.STYLE_STROKECOLOR,U($e),
-U(Ye))+(null!=bf?Zb(mxConstants.STYLE_STROKEWIDTH,Math.round(.75*parseFloat(bf)),"1"):"")+(af?af:Jf)+Rf+"verticalAlign="+(Ze?Ze:Ve?Ve:"middle")+";"+qa({StrokeStyle:Sc?Sc:Xe?Xe:"solid"})+(Kf?"horizontal=0;":""));oa.vertex=!0;oa.value=m(qc);oa.style+=b(oa.style,e,u,oa,G)+(G?"fontSize=13;":f(qc)+q(qc)+t(qc)+C(qc,oa)+I(qc)+N(qc)+K(qc)+O(qc))+S(qc)+H(qc);v.insert(oa);Z+=r}}aa+=p}}catch(gb){console.log(gb)}break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";
+v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,.2*r,p),"part=1;");x.vertex=!0;v.insert(x);x.value=m(e.Number);x.style+=a(e.Number,G);x.style+=b(x.style,e,u,x,G);break;case "OrgBlock":var Ue="";for(Fa in e.Active)"Photo"!=Fa&&e.Active[Fa]&&(Ue+=m(e[Fa],!0));if(e.Active.Photo){var le=.4*r;v.style+="spacingLeft="+le+";imageWidth="+(le-4)+";imageHeight="+(le-4)+";imageAlign=left;imageVerticalAlign=top;image="+g(e.Photo)}v.value=Ue;v.style+=b(v.style,e,u,v,!0);break;case "DefaultTableBlock":try{Gb=
+e.RowHeights.length;Rb=e.ColWidths.length;var Wd=[],Dd=[];for(l=0;l<Gb;l++)Wd[l]=.75*e.RowHeights[l];for(ha=0;ha<Rb;ha++)Dd[ha]=.75*e.ColWidths[ha];v.style="group;dropTarget=0;pointerEvents=0;";var me=e.BandedColor1,ne=e.BandedColor2,Gf=e.BandedRows,Ve=e.BandedCols,Xd=e.HideH,Hf=e.HideV,We=e.TextVAlign,Xe=e.FillColor,Ye=e.StrokeStyle;delete e.StrokeStyle;var If=ea(Xe,"fillOpacity"),Ze=e.LineColor,Jf=ea(Ze,"strokeOpacity");ba=0;var Ed={};for(l=0;l<Gb;l++){aa=0;p=Wd[l];for(ha=0;ha<Rb;ha++){var Mb=l+
+","+ha;if(Ed[Mb])aa+=Dd[ha];else{var lb=e["CellFill_"+Mb],oe=e["NoBand_"+Mb],Yd=e["CellSize_"+Mb],qc=e["Cell_"+Mb],$e=e["Cell_"+Mb+"_VAlign"],Kf=e["Cell_"+Mb+"_TRotation"],Lf=e["CellBorderWidthH_"+Mb],Mf=e["CellBorderColorH_"+Mb],Nf=e["CellBorderStrokeStyleH_"+Mb],Of=e["CellBorderWidthV_"+Mb],Pf=e["CellBorderColorV_"+Mb],Qf=e["CellBorderStrokeStyleV_"+Mb],af=Xd?Pf:Mf,bf=ea(af,"strokeOpacity"),cf=Xd?Of:Lf,Tc=Xd?Qf:Nf;lb=Gf&&!oe?0==l%2?me:Ve&&!oe?0==ha%2?me:ne:ne:Ve&&!oe?0==ha%2?me:ne:lb;var Rf=ea(lb,
+"fillOpacity")||If;r=Dd[ha];var df=p;Zc=r;for(var Nb=l+1;Nb<l+Yd.h;Nb++)if(null!=Wd[Nb]){df+=Wd[Nb];Ed[Nb+","+ha]=!0;for(var Uc=ha+1;Uc<ha+Yd.w;Uc++)Ed[Nb+","+Uc]=!0}for(Nb=ha+1;Nb<ha+Yd.w;Nb++)if(null!=Dd[Nb])for(Zc+=Dd[Nb],Ed[l+","+Nb]=!0,Uc=l+1;Uc<l+Yd.h;Uc++)Ed[Uc+","+Nb]=!0;var qa=new mxCell("",new mxGeometry(aa,ba,Zc,df),"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;"+(Hf?"left=0;right=0;":"")+(Xd?"top=0;bottom=0;":"")+Y({FillColor:lb||Xe})+Zb(mxConstants.STYLE_STROKECOLOR,P(af),
+P(Ze))+(null!=cf?Zb(mxConstants.STYLE_STROKEWIDTH,Math.round(.75*parseFloat(cf)),"1"):"")+(bf?bf:Jf)+Rf+"verticalAlign="+($e?$e:We?We:"middle")+";"+sa({StrokeStyle:Tc?Tc:Ye?Ye:"solid"})+(Kf?"horizontal=0;":""));qa.vertex=!0;qa.value=m(qc);qa.style+=b(qa.style,e,u,qa,G)+(G?"fontSize=13;":f(qc)+q(qc)+t(qc)+C(qc,qa)+I(qc)+Q(qc)+K(qc)+L(qc))+S(qc)+R(qc);v.insert(qa);aa+=r}}ba+=p}}catch(hb){console.log(hb)}break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";
"VSMDedicatedProcessBlock"==w.Class?v.value=m(e.Text):"VSMProductionControlBlock"==w.Class&&(v.value=m(e.Resources));v.style+=b(v.style,e,u,v,G);"VSMDedicatedProcessBlock"==w.Class&&(x=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),x.geometry.relative=!0,x.geometry.offset=new mxPoint(4,-13),x.vertex=!0,v.insert(x),x.style+=b(x.style,e,u,x));Da=new mxCell("",new mxGeometry(0,0,r,15),"strokeColor=none;fillColor=none;part=1;");Da.vertex=!0;v.insert(Da);Da.value=
m(e.Title);Da.style+=a(e.Title,G);e.Text=null;break;case "VSMSharedProcessBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process_shared;spacingTop=-5;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);Da=new mxCell("",new mxGeometry(.1*r,.3*p,.8*r,.6*p),"part=1;");Da.vertex=!0;v.insert(Da);Da.value=m(e.Resource);Da.style+=a(e.Resource,G);Da.style+=b(Da.style,e,u,Da,G);break;case "VSMWorkcellBlock":v.style+="shape=mxgraph.lean_mapping.work_cell;verticalAlign=top;spacingTop=-2;";
-v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);Bb=p;bc=parseInt(e.Cells);ja=b("part=1;",e,u,v);0<bc&&(Bb/=bc);X=[];Qa=[];for(l=1;l<=bc;l++)X[l]=new mxCell("",new mxGeometry(0,(l-1)*Bb,r,Bb),ja),X[l].vertex=!0,v.insert(X[l]),X[l].value=m(e["cell_"+l]),X[l].style+=a(e["cell_"+l],G);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;";
-v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v);Bb=p;bc=parseInt(e.Cells);ja=b("part=1;fillColor=none;",e,u,v);0<bc&&(Bb/=bc);X=[];Ub=[];for(l=1;l<=bc;l++)X[l]=new mxCell("",new mxGeometry(.5*r,(l-1)*Bb,.5*r,Bb),"shape=partialRectangle;left=0;"+ja),X[l].vertex=!0,v.insert(X[l]),Ub[l]=new mxCell("",new mxGeometry(0,(l-1)*Bb,r,Bb),"strokeColor=none;fillColor=none;part=1;"),Ub[l].vertex=!0,v.insert(Ub[l]),Ub[l].value=
+v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);Cb=p;bc=parseInt(e.Cells);ja=b("part=1;",e,u,v);0<bc&&(Cb/=bc);X=[];Pa=[];for(l=1;l<=bc;l++)X[l]=new mxCell("",new mxGeometry(0,(l-1)*Cb,r,Cb),ja),X[l].vertex=!0,v.insert(X[l]),X[l].value=m(e["cell_"+l]),X[l].style+=a(e["cell_"+l],G);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;";
+v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v);Cb=p;bc=parseInt(e.Cells);ja=b("part=1;fillColor=none;",e,u,v);0<bc&&(Cb/=bc);X=[];Ub=[];for(l=1;l<=bc;l++)X[l]=new mxCell("",new mxGeometry(.5*r,(l-1)*Cb,.5*r,Cb),"shape=partialRectangle;left=0;"+ja),X[l].vertex=!0,v.insert(X[l]),Ub[l]=new mxCell("",new mxGeometry(0,(l-1)*Cb,r,Cb),"strokeColor=none;fillColor=none;part=1;"),Ub[l].vertex=!0,v.insert(Ub[l]),Ub[l].value=
m(e["cell_"+l]),Ub[l].style+=a(e["cell_"+l],G);break;case "VSMFIFOLaneBlock":v.style+="shape=mxgraph.lean_mapping.fifo_sequence_flow;fontStyle=0;fontSize=18";v.style+=b(v.style,e,u,v);v.value="FIFO";break;case "VSMGoSeeProductionBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.17*r,.2*p,13,6),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;");x.vertex=!0;v.insert(x);
x.style+=b(x.style,e,u,x);break;case "VSMProductionKanbanBatchBlock":v.style+="strokeColor=none;fillColor=none;";ja="shape=card;size=18;flipH=1;part=1;";x=new mxCell("",new mxGeometry(.1*r,0,.9*r,.8*p),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;"+ja);x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("",new mxGeometry(.05*r,.1*p,.9*r,.8*p),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;"+ja);E.vertex=!0;v.insert(E);E.style+=b(E.style,
-e,u,E);var T=new mxCell("",new mxGeometry(0,.2*p,.9*r,.8*p),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;spacing=2;"+ja);T.vertex=!0;v.insert(T);T.value=m(e.Text);T.style+=b(T.style,e,u,T,G);break;case "VSMElectronicInformationArrow":v.style="group;";v.value=m(e.Title);v.style+=a(e.Title,G);var va=new mxCell("",new mxGeometry(0,0,r,p),"shape=mxgraph.lean_mapping.electronic_info_flow_edge;html=1;entryX=0;entryY=1;exitX=1;exitY=0;");va.edge=!0;va.geometry.relative=
+e,u,E);var U=new mxCell("",new mxGeometry(0,.2*p,.9*r,.8*p),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;spacing=2;"+ja);U.vertex=!0;v.insert(U);U.value=m(e.Text);U.style+=b(U.style,e,u,U,G);break;case "VSMElectronicInformationArrow":v.style="group;";v.value=m(e.Title);v.style+=a(e.Title,G);var va=new mxCell("",new mxGeometry(0,0,r,p),"shape=mxgraph.lean_mapping.electronic_info_flow_edge;html=1;entryX=0;entryY=1;exitX=1;exitY=0;");va.edge=!0;va.geometry.relative=
1;D.addCell(va,v,null,v,v);break;case "AWSRoundedRectangleContainerBlock2":case "AWSRoundedRectangleContainerBlock":v.style+="strokeColor=none;fillColor=none;";e.Spotfleet?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=b(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,35,40),
"strokeColor=none;shape=mxgraph.aws3.spot_instance;fillColor=#f58536;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(30,0),E.vertex=!0,v.insert(E)):e.Beanstalk?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=b(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,30,40),"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk;fillColor=#759C3E;"),
E.geometry.relative=!0,E.geometry.offset=new mxPoint(30,0),E.vertex=!0,v.insert(E)):e.EC2?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=b(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.ec2;fillColor=#F58534;"),E.geometry.relative=
@@ -14529,150 +14529,150 @@ new mxPoint(30,0),E.vertex=!0,v.insert(E)):e.VPC?(x=new mxCell("",new mxGeometry
0),E.vertex=!0,v.insert(E)):e.AWS?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=b(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.cloud;fillColor=#F58534;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(30,0),E.vertex=!0,v.insert(E)):
e.Corporate?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=b(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,25,40),"strokeColor=none;shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(30,0),E.vertex=!0,v.insert(E)):
(v.style="resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;",v.value=m(e.Title),v.style+=b(v.style,e,u,v,G));break;case "AWSElasticComputeCloudBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.ec2;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=m(e.Title);v.style+=b(v.style,e,u,v,G);break;case "AWSRoute53Block2":v.style+="strokeColor=none;shape=mxgraph.aws3.route_53;verticalLabelPosition=bottom;align=center;verticalAlign=top;";
-v.value=m(e.Title);v.style+=b(v.style,e,u,v,G);break;case "AWSRDBSBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.rds;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=m(e.Title);v.style+=b(v.style,e,u,v,G);break;case "NET_RingNetwork":v.style+="strokeColor=none;fillColor=none;";oa=new mxCell("",new mxGeometry(.25*r,.25*p,.5*r,.5*p),"ellipse;html=1;strokeColor=#29AAE1;strokeWidth=2;");oa.vertex=!0;v.insert(oa);var Oa=[oa];oa.style+=ba(e,u);va=new mxCell("",new mxGeometry(0,
-0,0,0),"edgeStyle=none;rounded=0;endArrow=none;dashed=0;html=1;strokeColor=#29AAE1;strokeWidth=2;");va.geometry.relative=!0;va.edge=!0;sc(.5*r,0,va,F,D,Oa,v,oa);sc(.855*r,.145*p,va,F,D,Oa,v,oa);sc(r,.5*p,va,F,D,Oa,v,oa);sc(.855*r,.855*p,va,F,D,Oa,v,oa);sc(.5*r,p,va,F,D,Oa,v,oa);sc(.145*r,.855*p,va,F,D,Oa,v,oa);sc(0,.5*p,va,F,D,Oa,v,oa);sc(.145*r,.145*p,va,F,D,Oa,v,oa);break;case "NET_Ethernet":v.style+="strokeColor=none;fillColor=none;";oa=new mxCell("",new mxGeometry(0,.5*p-10,r,20),"shape=mxgraph.networks.bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;fillColor=#29AAE1;strokeColor=#29AAE1;");
-oa.vertex=!0;v.insert(oa);Oa=[oa];va=new mxCell("",new mxGeometry(0,0,0,0),"strokeColor=#29AAE1;edgeStyle=none;rounded=0;endArrow=none;html=1;strokeWidth=2;");va.geometry.relative=!0;va.edge=!0;Oa=[oa];var Ed=r/e.NumTopNodes;for(l=0;l<e.NumTopNodes;l++)sc(.5*Ed+l*Ed,0,va,F,D,Oa,v,oa);Ed=r/e.NumBottomNodes;for(l=0;l<e.NumBottomNodes;l++)sc(.5*Ed+l*Ed,p,va,F,D,Oa,v,oa);break;case "EE_OpAmp":v.style+="shape=mxgraph.electrical.abstract.operational_amp_1;";v.value=m(e.Title);v.style+=b(v.style,e,u,v,G);
+v.value=m(e.Title);v.style+=b(v.style,e,u,v,G);break;case "AWSRDBSBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.rds;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=m(e.Title);v.style+=b(v.style,e,u,v,G);break;case "NET_RingNetwork":v.style+="strokeColor=none;fillColor=none;";qa=new mxCell("",new mxGeometry(.25*r,.25*p,.5*r,.5*p),"ellipse;html=1;strokeColor=#29AAE1;strokeWidth=2;");qa.vertex=!0;v.insert(qa);var Na=[qa];qa.style+=Y(e,u);va=new mxCell("",new mxGeometry(0,
+0,0,0),"edgeStyle=none;rounded=0;endArrow=none;dashed=0;html=1;strokeColor=#29AAE1;strokeWidth=2;");va.geometry.relative=!0;va.edge=!0;tc(.5*r,0,va,F,D,Na,v,qa);tc(.855*r,.145*p,va,F,D,Na,v,qa);tc(r,.5*p,va,F,D,Na,v,qa);tc(.855*r,.855*p,va,F,D,Na,v,qa);tc(.5*r,p,va,F,D,Na,v,qa);tc(.145*r,.855*p,va,F,D,Na,v,qa);tc(0,.5*p,va,F,D,Na,v,qa);tc(.145*r,.145*p,va,F,D,Na,v,qa);break;case "NET_Ethernet":v.style+="strokeColor=none;fillColor=none;";qa=new mxCell("",new mxGeometry(0,.5*p-10,r,20),"shape=mxgraph.networks.bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;fillColor=#29AAE1;strokeColor=#29AAE1;");
+qa.vertex=!0;v.insert(qa);Na=[qa];va=new mxCell("",new mxGeometry(0,0,0,0),"strokeColor=#29AAE1;edgeStyle=none;rounded=0;endArrow=none;html=1;strokeWidth=2;");va.geometry.relative=!0;va.edge=!0;Na=[qa];var Fd=r/e.NumTopNodes;for(l=0;l<e.NumTopNodes;l++)tc(.5*Fd+l*Fd,0,va,F,D,Na,v,qa);Fd=r/e.NumBottomNodes;for(l=0;l<e.NumBottomNodes;l++)tc(.5*Fd+l*Fd,p,va,F,D,Na,v,qa);break;case "EE_OpAmp":v.style+="shape=mxgraph.electrical.abstract.operational_amp_1;";v.value=m(e.Title);v.style+=b(v.style,e,u,v,G);
e.ToggleCharge&&(v.style+="flipV=1;");break;case "EIMessageChannelBlock":case "EIDatatypeChannelBlock":case "EIInvalidMessageChannelBlock":case "EIDeadLetterChannelBlock":case "EIGuaranteedDeliveryBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);"EIMessageChannelBlock"==w.Class?(x=new mxCell("",new mxGeometry(.5,.5,.9*r,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;"),x.geometry.offset=new mxPoint(.45*-r,0)):"EIDatatypeChannelBlock"==
w.Class?(x=new mxCell("",new mxGeometry(.5,.5,.9*r,20),"shape=mxgraph.eip.dataChannel;fillColor=#818181;part=1;"),x.geometry.offset=new mxPoint(.45*-r,0)):"EIInvalidMessageChannelBlock"==w.Class?(x=new mxCell("",new mxGeometry(.5,.5,.9*r,20),"shape=mxgraph.eip.invalidMessageChannel;fillColor=#818181;part=1;"),x.geometry.offset=new mxPoint(.45*-r,0)):"EIDeadLetterChannelBlock"==w.Class?(x=new mxCell("",new mxGeometry(.5,.5,.9*r,20),"shape=mxgraph.eip.deadLetterChannel;fillColor=#818181;part=1;"),x.geometry.offset=
-new mxPoint(.45*-r,0)):"EIGuaranteedDeliveryBlock"==w.Class&&(x=new mxCell("",new mxGeometry(.5,.5,20,27),"shape=cylinder;fillColor=#818181;part=1;"),x.geometry.offset=new mxPoint(-10,-7));x.geometry.relative=!0;x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);va=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;");va.geometry.relative=!0;va.edge=!0;fb(.15*r,.25*p,.85*r,.25*p,va,F,D,Oa,v,oa);break;
-case "EIChannelAdapterBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,.07*p,.21*r,.86*p),"fillColor=#FFFF33;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("",new mxGeometry(.26*r,.09*p,.2*r,.82*p),"shape=mxgraph.eip.channel_adapter;fillColor=#4CA3D9;part=1;");E.vertex=!0;v.insert(E);E.style+=b(E.style,e,u,E);T=new mxCell("",new mxGeometry(1,.5,.35*r,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;");
-T.geometry.relative=!0;T.geometry.offset=new mxPoint(.4*-r,-10);T.vertex=!0;v.insert(T);T.style+=b(T.style,e,u,T);ea=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;");ea.geometry.relative=!0;ea.edge=!0;x.insertEdge(ea,!0);E.insertEdge(ea,!1);ea.style+=J(e,u);F.push(D.addCell(ea,null,null,null,null));da=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;");
-da.geometry.relative=!0;da.edge=!0;E.insertEdge(da,!0);T.insertEdge(da,!1);F.push(D.addCell(da,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=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);var Fd=
-e.Messages,oe=(p-17)/Fd;E=[];va=[];for(l=0;l<Fd;l++){var Gd=oe*(l+1)-3;E[l]=new mxCell("",new mxGeometry(r-20,Gd,20,20),"part=1;");E[l].vertex=!0;v.insert(E[l]);switch(w.Class){case "EIMessageBlock":E[l].value=m(e["message_"+(l+1)]);E.style+=a(e["message_"+(l+1)],G);break;case "EICommandMessageBlock":E[l].value="C";E[l].style+="fontStyle=1;fontSize=13;";break;case "EIDocumentMessageBlock":E[l].value="D";E[l].style+="fontStyle=1;fontSize=13;";break;case "EIEventMessageBlock":E[l].value="E",E[l].style+=
-"fontStyle=1;fontSize=13;"}E[l].style+=b(E[l].style,e,u,E[l]);va[l]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");va[l].geometry.relative=!0;va[l].edge=!0;x.insertEdge(va[l],!1);E[l].insertEdge(va[l],!0);va[l].style+=b(va[l].style,e,u,va[l]);var Kc=[];Kc.push(new mxPoint(Z+8.5,aa+Gd+10));va[l].geometry.points=Kc;F.push(D.addCell(va[l],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
-v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.45*r,.25*p,.3*r,.5*p),"part=1;fillColor=#ffffff");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);va=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;");va.geometry.relative=!0;va.edge=!0;fb(0,.5*p,.4*r,.5*p,va,F,D,Oa,v,oa);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
-v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);var ea=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;");ea.geometry.relative=!0;ea.edge=!0;fb(.05*r,.5*p,.85*r,.5*p,ea,F,D,Oa,v,oa);var da=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;");da.geometry.relative=!0;da.edge=!0;fb(.05*r,.5*p,.85*
-r,.15*p,da,F,D,Oa,v,oa);var xa=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;");xa.geometry.relative=!0;xa.edge=!0;fb(.05*r,.5*p,.85*r,.85*p,xa,F,D,Oa,v,oa);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);ea=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;");
-ea.geometry.relative=!0;ea.edge=!0;ea.style+=J(e,u);fb(.05*r,.5*p,.95*r,.5*p,ea,F,D,Oa,v,oa);da=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;");da.geometry.relative=!0;da.edge=!0;da.style+=J(e,u);fb(.3*r,.1*p,.3*r,.5*p,da,F,D,Oa,v,oa);xa=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;");
-xa.geometry.relative=!0;xa.edge=!0;xa.style+=J(e,u);fb(.7*r,.1*p,.7*r,.5*p,xa,F,D,Oa,v,oa);var Ya=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;");Ya.geometry.relative=!0;Ya.edge=!0;Ya.style+=J(e,u);fb(.5*r,.5*p,.5*r,.9*p,Ya,F,D,Oa,v,oa);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,
-e,u,v,G);x=new mxCell("",new mxGeometry(.2*r,.21*p,.16*r,.24*p),"part=1;fillColor=#ffffff;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);ea=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;");ea.geometry.relative=!0;ea.edge=!0;fb(.45*r,.33*p,.8*r,.33*p,ea,F,D,Oa,v,oa);E=new mxCell("",new mxGeometry(.64*r,.55*p,.16*r,.24*p),"part=1;fillColor=#ffffff;");E.vertex=!0;v.insert(E);E.style+=b(E.style,
-e,u,E);da=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;");da.geometry.relative=!0;da.edge=!0;fb(.55*r,.67*p,.2*r,.67*p,da,F,D,Oa,v,oa);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.1*r,.15*p,.8*r,.7*p),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");x.vertex=!0;v.insert(x);
-x.style+=b(x.style,e,u,x);break;case "EICorrelationIDBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.04*r,.06*p,.18*r,.28*p),"ellipse;fillColor=#808080;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("",new mxGeometry(.2*r,.56*p,.2*r,.32*p),"part=1;");E.vertex=!0;v.insert(E);E.value="A";E.style+="fontStyle=1;fontSize=13;";x.style+=b(x.style,e,u,x);ea=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;");ea.geometry.relative=!0;ea.edge=!0;x.insertEdge(ea,!1);E.insertEdge(ea,!0);ea.style+=b(ea.style,e,u,ea);Kc=[];Kc.push(new mxPoint(Z+.13*r,aa+.72*p));ea.geometry.points=Kc;F.push(D.addCell(ea,null,null,null,null));T=new mxCell("",new mxGeometry(.6*r,.06*p,.18*r,.28*p),"ellipse;fillColor=#808080;part=1;");T.vertex=!0;v.insert(T);T.style+=J(e,u)+sa(e);T.style+=b(T.style,e,u,T);ta=new mxCell("",new mxGeometry(.76*
-r,.56*p,.2*r,.32*p),"part=1;");ta.vertex=!0;v.insert(ta);ta.style+=J(e,u)+Q(e,u,ta)+sa(e)+qa(e);ta.value="B";ta.style+="fontStyle=1;fontSize=13;fillColor=#ffffff;";ta.style+=b(ta.style,e,u,ta);da=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;");da.geometry.relative=!0;da.edge=!0;T.insertEdge(da,!1);ta.insertEdge(da,!0);da.style+=b(da.style,e,u,da);var df=[];df.push(new mxPoint(Z+.69*r,aa+.72*p));da.geometry.points=
-df;F.push(D.addCell(da,null,null,null,null));xa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;endSize=6;part=1;");xa.geometry.relative=!0;xa.edge=!0;x.insertEdge(xa,!1);T.insertEdge(xa,!0);xa.style+=b(xa.style,e,u,xa);F.push(D.addCell(xa,null,null,null,null));break;case "EIMessageSequenceBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("1",new mxGeometry(.2*r,.4*p,.1*r,.19*p),
-"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("2",new mxGeometry(.45*r,.4*p,.1*r,.19*p),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");E.vertex=!0;v.insert(E);E.style+=b(E.style,e,u,E);T=new mxCell("3",new mxGeometry(.7*r,.4*p,.1*r,.19*p),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");T.vertex=!0;v.insert(T);T.style+=b(T.style,e,u,T);ea=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");
-x.insertEdge(ea,!1);E.insertEdge(ea,!0);ea.geometry.points=[new mxPoint(Z+.375*r,aa+.15*p)];ea.geometry.relative=!0;ea.edge=!0;ea.style+=b(ea.style,e,u,ea);F.push(D.addCell(ea,null,null,null,null));da=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");E.insertEdge(da,!1);T.insertEdge(da,!0);da.geometry.points=[new mxPoint(Z+.675*r,aa+.15*p)];da.geometry.relative=!0;da.edge=!0;da.style+=b(da.style,e,u,da);F.push(D.addCell(da,null,null,null,null));break;case "EIMessageExpirationBlock":v.style+=
+new mxPoint(.45*-r,0)):"EIGuaranteedDeliveryBlock"==w.Class&&(x=new mxCell("",new mxGeometry(.5,.5,20,27),"shape=cylinder;fillColor=#818181;part=1;"),x.geometry.offset=new mxPoint(-10,-7));x.geometry.relative=!0;x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);va=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;");va.geometry.relative=!0;va.edge=!0;gb(.15*r,.25*p,.85*r,.25*p,va,F,D,Na,v,qa);break;
+case "EIChannelAdapterBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,.07*p,.21*r,.86*p),"fillColor=#FFFF33;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("",new mxGeometry(.26*r,.09*p,.2*r,.82*p),"shape=mxgraph.eip.channel_adapter;fillColor=#4CA3D9;part=1;");E.vertex=!0;v.insert(E);E.style+=b(E.style,e,u,E);U=new mxCell("",new mxGeometry(1,.5,.35*r,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;");
+U.geometry.relative=!0;U.geometry.offset=new mxPoint(.4*-r,-10);U.vertex=!0;v.insert(U);U.style+=b(U.style,e,u,U);fa=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;");fa.geometry.relative=!0;fa.edge=!0;x.insertEdge(fa,!0);E.insertEdge(fa,!1);fa.style+=H(e,u);F.push(D.addCell(fa,null,null,null,null));da=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;");
+da.geometry.relative=!0;da.edge=!0;E.insertEdge(da,!0);U.insertEdge(da,!1);F.push(D.addCell(da,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=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);var Gd=
+e.Messages,pe=(p-17)/Gd;E=[];va=[];for(l=0;l<Gd;l++){var Hd=pe*(l+1)-3;E[l]=new mxCell("",new mxGeometry(r-20,Hd,20,20),"part=1;");E[l].vertex=!0;v.insert(E[l]);switch(w.Class){case "EIMessageBlock":E[l].value=m(e["message_"+(l+1)]);E.style+=a(e["message_"+(l+1)],G);break;case "EICommandMessageBlock":E[l].value="C";E[l].style+="fontStyle=1;fontSize=13;";break;case "EIDocumentMessageBlock":E[l].value="D";E[l].style+="fontStyle=1;fontSize=13;";break;case "EIEventMessageBlock":E[l].value="E",E[l].style+=
+"fontStyle=1;fontSize=13;"}E[l].style+=b(E[l].style,e,u,E[l]);va[l]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");va[l].geometry.relative=!0;va[l].edge=!0;x.insertEdge(va[l],!1);E[l].insertEdge(va[l],!0);va[l].style+=b(va[l].style,e,u,va[l]);var Lc=[];Lc.push(new mxPoint(aa+8.5,ba+Hd+10));va[l].geometry.points=Lc;F.push(D.addCell(va[l],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
+v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.45*r,.25*p,.3*r,.5*p),"part=1;fillColor=#ffffff");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);va=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;");va.geometry.relative=!0;va.edge=!0;gb(0,.5*p,.4*r,.5*p,va,F,D,Na,v,qa);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
+v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);var fa=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;");fa.geometry.relative=!0;fa.edge=!0;gb(.05*r,.5*p,.85*r,.5*p,fa,F,D,Na,v,qa);var da=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;");da.geometry.relative=!0;da.edge=!0;gb(.05*r,.5*p,.85*
+r,.15*p,da,F,D,Na,v,qa);var xa=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;");xa.geometry.relative=!0;xa.edge=!0;gb(.05*r,.5*p,.85*r,.85*p,xa,F,D,Na,v,qa);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);fa=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;");
+fa.geometry.relative=!0;fa.edge=!0;fa.style+=H(e,u);gb(.05*r,.5*p,.95*r,.5*p,fa,F,D,Na,v,qa);da=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;");da.geometry.relative=!0;da.edge=!0;da.style+=H(e,u);gb(.3*r,.1*p,.3*r,.5*p,da,F,D,Na,v,qa);xa=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;");
+xa.geometry.relative=!0;xa.edge=!0;xa.style+=H(e,u);gb(.7*r,.1*p,.7*r,.5*p,xa,F,D,Na,v,qa);var $a=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;");$a.geometry.relative=!0;$a.edge=!0;$a.style+=H(e,u);gb(.5*r,.5*p,.5*r,.9*p,$a,F,D,Na,v,qa);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,
+e,u,v,G);x=new mxCell("",new mxGeometry(.2*r,.21*p,.16*r,.24*p),"part=1;fillColor=#ffffff;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);fa=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;");fa.geometry.relative=!0;fa.edge=!0;gb(.45*r,.33*p,.8*r,.33*p,fa,F,D,Na,v,qa);E=new mxCell("",new mxGeometry(.64*r,.55*p,.16*r,.24*p),"part=1;fillColor=#ffffff;");E.vertex=!0;v.insert(E);E.style+=b(E.style,
+e,u,E);da=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;");da.geometry.relative=!0;da.edge=!0;gb(.55*r,.67*p,.2*r,.67*p,da,F,D,Na,v,qa);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.1*r,.15*p,.8*r,.7*p),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");x.vertex=!0;v.insert(x);
+x.style+=b(x.style,e,u,x);break;case "EICorrelationIDBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.04*r,.06*p,.18*r,.28*p),"ellipse;fillColor=#808080;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("",new mxGeometry(.2*r,.56*p,.2*r,.32*p),"part=1;");E.vertex=!0;v.insert(E);E.value="A";E.style+="fontStyle=1;fontSize=13;";x.style+=b(x.style,e,u,x);fa=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;");fa.geometry.relative=!0;fa.edge=!0;x.insertEdge(fa,!1);E.insertEdge(fa,!0);fa.style+=b(fa.style,e,u,fa);Lc=[];Lc.push(new mxPoint(aa+.13*r,ba+.72*p));fa.geometry.points=Lc;F.push(D.addCell(fa,null,null,null,null));U=new mxCell("",new mxGeometry(.6*r,.06*p,.18*r,.28*p),"ellipse;fillColor=#808080;part=1;");U.vertex=!0;v.insert(U);U.style+=H(e,u)+oa(e);U.style+=b(U.style,e,u,U);ta=new mxCell("",
+new mxGeometry(.76*r,.56*p,.2*r,.32*p),"part=1;");ta.vertex=!0;v.insert(ta);ta.style+=H(e,u)+M(e,u,ta)+oa(e)+sa(e);ta.value="B";ta.style+="fontStyle=1;fontSize=13;fillColor=#ffffff;";ta.style+=b(ta.style,e,u,ta);da=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;");da.geometry.relative=!0;da.edge=!0;U.insertEdge(da,!1);ta.insertEdge(da,!0);da.style+=b(da.style,e,u,da);var ef=[];ef.push(new mxPoint(aa+.69*r,ba+.72*
+p));da.geometry.points=ef;F.push(D.addCell(da,null,null,null,null));xa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;endSize=6;part=1;");xa.geometry.relative=!0;xa.edge=!0;x.insertEdge(xa,!1);U.insertEdge(xa,!0);xa.style+=b(xa.style,e,u,xa);F.push(D.addCell(xa,null,null,null,null));break;case "EIMessageSequenceBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("1",new mxGeometry(.2*
+r,.4*p,.1*r,.19*p),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("2",new mxGeometry(.45*r,.4*p,.1*r,.19*p),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");E.vertex=!0;v.insert(E);E.style+=b(E.style,e,u,E);U=new mxCell("3",new mxGeometry(.7*r,.4*p,.1*r,.19*p),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");U.vertex=!0;v.insert(U);U.style+=b(U.style,e,u,U);fa=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");
+x.insertEdge(fa,!1);E.insertEdge(fa,!0);fa.geometry.points=[new mxPoint(aa+.375*r,ba+.15*p)];fa.geometry.relative=!0;fa.edge=!0;fa.style+=b(fa.style,e,u,fa);F.push(D.addCell(fa,null,null,null,null));da=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");E.insertEdge(da,!1);U.insertEdge(da,!0);da.geometry.points=[new mxPoint(aa+.675*r,ba+.15*p)];da.geometry.relative=!0;da.edge=!0;da.style+=b(da.style,e,u,da);F.push(D.addCell(da,null,null,null,null));break;case "EIMessageExpirationBlock":v.style+=
"verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.3*r,.2*p,.4*r,.6*p),"shape=mxgraph.ios7.icons.clock;fillColor=#ffffff;flipH=1;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);break;case "EIMessageBrokerBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.38*r,.42*p,.24*r,.16*p),"part=1;fillColor=#aefe7d;");
-x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("",new mxGeometry(.38*r,0,.24*r,.16*p),"part=1;");E.vertex=!0;v.insert(E);E.style+=b(E.style,e,u,E);T=new mxCell("",new mxGeometry(.76*r,.23*p,.24*r,.16*p),"");T.vertex=!0;v.insert(T);T.style=E.style;var ta=new mxCell("",new mxGeometry(.76*r,.61*p,.24*r,.16*p),"");ta.vertex=!0;v.insert(ta);ta.style=E.style;var Yd=new mxCell("",new mxGeometry(.38*r,.84*p,.24*r,.16*p),"");Yd.vertex=!0;v.insert(Yd);Yd.style=E.style;var Zd=new mxCell("",new mxGeometry(0,
-.61*p,.24*r,.16*p),"");Zd.vertex=!0;v.insert(Zd);Zd.style=E.style;var $d=new mxCell("",new mxGeometry(0,.23*p,.24*r,.16*p),"");$d.vertex=!0;v.insert($d);$d.style=E.style;ea=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(ea,!1);E.insertEdge(ea,!0);ea.edge=!0;ea.style+=b(ea.style,e,u,ea);F.push(D.addCell(ea,null,null,null,null));da=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(da,!1);T.insertEdge(da,!0);da.edge=!0;da.style+=b(da.style,e,u,da);
-F.push(D.addCell(da,null,null,null,null));xa=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(xa,!1);ta.insertEdge(xa,!0);xa.edge=!0;xa.style+=b(xa.style,e,u,xa);F.push(D.addCell(xa,null,null,null,null));Ya=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(Ya,!1);Yd.insertEdge(Ya,!0);Ya.edge=!0;Ya.style+=b(Ya.style,e,u,Ya);F.push(D.addCell(Ya,null,null,null,null));var Lc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(Lc,
-!1);Zd.insertEdge(Lc,!0);Lc.edge=!0;Lc.style+=b(Lc.style,e,u,Lc);F.push(D.addCell(Lc,null,null,null,null));var Mc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(Mc,!1);$d.insertEdge(Mc,!0);Mc.edge=!0;Mc.style+=b(Mc.style,e,u,Mc);F.push(D.addCell(Mc,null,null,null,null));break;case "EIDurableSubscriberBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);ea=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");
-ea.geometry.relative=!0;ea.edge=!0;fb(.05*r,.5*p,.6*r,.25*p,ea,F,D,Oa,v,oa);da=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");da.geometry.relative=!0;da.edge=!0;fb(.05*r,.5*p,.6*r,.75*p,da,F,D,Oa,v,oa);x=new mxCell("",new mxGeometry(.7*r,.1*p,.15*r,.32*p),"shape=mxgraph.eip.durable_subscriber;part=1;fillColor=#818181;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);break;case "EIControlBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
-v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.25*r,.25*p,.5*r,.5*p),"shape=mxgraph.eip.control_bus;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);break;case "EIMessageHistoryBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);T=new mxCell("",
-new mxGeometry(r-45,30,30,20),"shape=mxgraph.mockup.misc.mail2;fillColor=#FFE040;part=1;");T.vertex=!0;v.insert(T);T.style+=b(T.style,e,u,T);xa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");xa.geometry.relative=!0;xa.edge=!0;x.insertEdge(xa,!1);T.insertEdge(xa,!0);xa.style+=b(xa.style,e,u,xa);xa.geometry.points=[new mxPoint(Z+8.5,aa+40)];F.push(D.addCell(xa,null,null,null,null));ta=new mxCell("",new mxGeometry(r-45,
-p-20,20,20),"part=1;");ta.vertex=!0;v.insert(ta);ta.value=m(e.message_0);ta.style+=a(e.message_0,G);ta.style+=b(ta.style,e,u,ta,G);Ya=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");Ya.geometry.relative=!0;Ya.edge=!0;x.insertEdge(Ya,!1);ta.insertEdge(Ya,!0);Ya.style+=b(Ya.style,e,u,Ya);Ya.geometry.points=[new mxPoint(Z+8.5,aa+p-10)];F.push(D.addCell(Ya,null,null,null,null));Fd=e.HistoryMessages;oe=(p-75)/Fd;E=[];va=
-[];for(l=0;l<Fd;l++)Gd=oe*(l+1)+30,E[l]=new mxCell("",new mxGeometry(r-20,Gd,20,20),"part=1;"),E[l].vertex=!0,E[l].value=m(e["message_"+(l+1)]),E.style+=a(e["message_"+(l+1)],G),v.insert(E[l]),E[l].style+=b(E[l].style,e,u,E[l],G),va[l]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;"),va[l].geometry.relative=!0,va[l].edge=!0,T.insertEdge(va[l],!1),E[l].insertEdge(va[l],!0),va[l].style+=b(va[l].style,e,u,va[l]),Kc=[],Kc.push(new mxPoint(Z+
-r-30,aa+Gd+10)),va[l].geometry.points=Kc,F.push(D.addCell(va[l],null,null,null,null));break;case "Equation":LucidImporter.hasMath=!0;v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v);v.value="$$"+e.Latex+"$$";break;case "fpDoor":v.style+="shape=mxgraph.floorplan.doorRight;";0>e.DoorAngle&&(v.style+="flipV=1;");v.style+=b(v.style,e,u,v);break;case "fpWall":v.style+="labelPosition=center;verticalAlign=bottom;verticalLabelPosition=top;";v.value=m(e);v.style+=b(v.style,e,u,v,G);v.style=v.style.replace("rotation=180;",
-"");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;";0<e.DoorAngle&&(v.style+="flipV=1;");v.style+=b(v.style,e,u,v);break;case "fpRestroomLights":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);x=new mxCell("",new mxGeometry(0,0,r,.25*p),"part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=[];var ef=.02*r,pe=(r-2*ef)/e.LightCount,ff=.8*pe;for(l=0;l<e.LightCount;l++)E[l]=new mxCell("",new mxGeometry(ef+pe*l+(pe-ff)/2,.25*p,ff,.75*p),"ellipse;part=1;"),
-E[l].vertex=!0,v.insert(E[l]),E[l].style+=b(E[l].style,e,u,E[l]);break;case "fpRestroomSinks":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);x=[];var gf=r/e.SinkCount;for(l=0;l<e.SinkCount;l++)x[l]=new mxCell("",new mxGeometry(gf*l,0,gf,p),"part=1;shape=mxgraph.floorplan.sink_2;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=b(x[l].style,e,u,x[l]);break;case "fpRestroomStalls":v.style+="strokeColor=none;fillColor=none;";var Eb=.1*r/e.StallCount;x=new mxCell("",new mxGeometry(0,
-0,Eb,p),"fillColor=#000000;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);var Nb=(r-Eb)/e.StallCount,qe=[],Hd=[],Id=[],Jd=[];Y=J(e,u);Y=""==Y?"#000000;":Y.replace("stokreColor=","");var re="part=1;fillColor="+Y;re+=b(re,e,u,v);var se=b("",e,u,v);for(l=0;l<e.StallCount;l++)qe[l]=new mxCell("",new mxGeometry((l+1)*Nb,0,Eb,p),re),qe[l].vertex=!0,v.insert(qe[l]),Id[l]=new mxCell("",new mxGeometry(Eb+l*Nb+.05*(Nb-Eb),p-.92*(Nb-Eb),.9*(Nb-Eb),.92*(Nb-Eb)),"shape=mxgraph.floorplan.doorRight;flipV=1;part=1;"),
-Id[l].vertex=!0,v.insert(Id[l]),Id[l].style+=se,Hd[l]=new mxCell("",new mxGeometry(Eb+l*Nb+.2*(Nb-Eb),0,.6*(Nb-Eb),.8*(Nb-Eb)),"shape=mxgraph.floorplan.toilet;part=1;"),Hd[l].vertex=!0,v.insert(Hd[l]),Hd[l].style+=se,Jd[l]=new mxCell("",new mxGeometry(Eb+l*Nb,.42*p,.15*(Nb-Eb),.12*(Nb-Eb)),"part=1;"),Jd[l].vertex=!0,v.insert(Jd[l]),Jd[l].style+=se;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var ae="edgeStyle=none;endArrow=none;part=1;";Y=J(e,u);Y=""==Y?"#000000;":Y.replace("strokeColor=",
-"");var Uc="shape=triangle;part=1;fillColor="+Y;Uc+=b(Uc,e,u,v);ea=new mxCell("",new mxGeometry(0,0,0,0),ae);ea.geometry.relative=!0;ea.edge=!0;fb(0,.5*p,.65*r,.5*p,ea,F,D,Oa,v,oa);var ha=p/e.numLines;da=[];var Vc=[];for(l=0;l<e.numLines;l++)da[l]=new mxCell("",new mxGeometry(0,0,0,0),ae),da[l].geometry.relative=!0,da[l].edge=!0,fb(.65*r,.5*p,.96*r,(l+.5)*ha,da[l],F,D,Oa,v,oa),Vc[l]=new mxCell("",new mxGeometry(.95*r,(l+.2)*ha,.05*r,.6*ha),Uc),Vc[l].vertex=!0,v.insert(Vc[l]);break;case "PEMultilines":v.style+=
-"strokeColor=none;fillColor=none;";ae="edgeStyle=none;endArrow=none;part=1;";Y=J(e,u);Y=""==Y?"#000000;":Y.replace("strokeColor=","");Uc="shape=triangle;part=1;fillColor="+Y;Uc+=b(Uc,e,u,v);ha=p/e.numLines;da=[];Vc=[];for(l=0;l<e.numLines;l++)da[l]=new mxCell("",new mxGeometry(0,0,0,0),ae),da[l].geometry.relative=!0,da[l].edge=!0,fb(0,(l+.5)*ha,.96*r,(l+.5)*ha,da[l],F,D,Oa,v,oa),Vc[l]=new mxCell("",new mxGeometry(.95*r,(l+.2)*ha,.05*r,.6*ha),Uc),Vc[l].vertex=!0,v.insert(Vc[l]);break;case "PEVesselBlock":v.style+=
-"verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);switch(e.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+=b(v.style,e,u,v,G);break;case "PEClosedTankBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);1==e.peakedRoof&&0==e.stumpType?v.style+="shape=mxgraph.pid.vessels.tank_(conical_roof);":1==e.stumpType&&(v.style+="shape=mxgraph.pid.vessels.tank_(boot);");
-v.style+=b(v.style,e,u,v,G);break;case "PEColumnBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style=0==e.columnType?v.style+"shape=mxgraph.pid.vessels.pressurized_vessel;":v.style+"shape=mxgraph.pid.vessels.tank;";v.style+=b(v.style,e,u,v,G);break;case "PECompressorTurbineBlock":v.style+="strokeColor=none;fillColor=none;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,.2*p,r,.6*p),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");
-x.vertex=!0;v.insert(x);x.style+=ja;x.style+=b(x.style,e,u,x);ja="endSize=4;endArrow=block;endFill=1;";0==e.compressorType?(ea=new mxCell("",new mxGeometry(0,0,0,0),""),ea.geometry.relative=!0,ea.edge=!0,ea.style+=ja,ea.style+=b(ea.style,e,u,ea),fb(0,0,0,.2*p,ea,F,D,Oa,v,oa),da=new mxCell("",new mxGeometry(0,0,0,0),""),da.geometry.relative=!0,da.edge=!0,da.style+=ja,da.style+=b(da.style,e,u,da),fb(r,.67*p,r,p,da,F,D,Oa,v,oa)):(x.style+="flipH=1;",ea=new mxCell("",new mxGeometry(0,0,0,0),""),ea.geometry.relative=
-!0,ea.edge=!0,ea.style+=ja,ea.style+=b(ea.style,e,u,ea),fb(0,0,0,.33*p,ea,F,D,Oa,v,oa),da=new mxCell("",new mxGeometry(0,0,0,0),""),da.geometry.relative=!0,da.edge=!0,da.style+=ja,da.style+=b(da.style,e,u,da),fb(r,.8*p,r,p,da,F,D,Oa,v,oa));1==e.centerLineType&&(xa=new mxCell("",new mxGeometry(0,0,0,0),""),xa.geometry.relative=!0,xa.edge=!0,xa.style+=ja,xa.style+=b(xa.style,e,u,xa),fb(.2*r,.5*p,.8*r,.5*p,xa,F,D,Oa,v,oa));break;case "PEMotorDrivenTurbineBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";
-v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.2*r,.2*p,.6*r,.6*p),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);break;case "PEIndicatorBlock":case "PEIndicator2Block":case "PESharedIndicatorBlock":case "PEComputerIndicatorBlock":case "PESharedIndicator2Block":case "PEProgrammableIndicatorBlock":switch(w.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+=b(v.style,e,u,v);"PEIndicator2Block"==w.Class||"PESharedIndicator2Block"==w.Class?(x=new mxCell("",
-new mxGeometry(0,0,r,.5*r),"part=1;strokeColor=none;fillColor=none;"),x.vertex=!0,v.insert(x),x.value=m(e.TopText),x.style+=a(e.TopText,G),x.style+=b(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,.5*r,r,.5*r),"part=1;strokeColor=none;fillColor=none;")):(x=new mxCell("",new mxGeometry(0,0,r,.5*p),"part=1;strokeColor=none;fillColor=none;"),x.vertex=!0,v.insert(x),x.value=m(e.TopText),x.style+=a(e.TopText,G),x.style+=b(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,.5*p,r,.5*p),"part=1;strokeColor=none;fillColor=none;"));
-E.vertex=!0;v.insert(E);E.value=m(e.BotText);E.style+=a(e.BotText,G);E.style+=b(E.style,e,u,E,G);switch(e.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 te=!1;"PEPoweredValveBlock"==w.Class?1!=e.poweredHandOperated&&(te=!0):1!=
-e.handOperated&&(te=!0);if(te){e=h(w).Properties;P=e.BoundingBox;var Sf=P.h;P.h="PEAngleValveBlock"==w.Class||"PEAngleGlobeValveBlock"==w.Class?.7*P.h:.6*P.h;v=new mxCell("",new mxGeometry(Math.round(.75*P.x+wc),Math.round(.75*(P.y+Sf-P.h)+xc),Math.round(.75*P.w),Math.round(.75*P.h)),"");v.vertex=!0;Qb(v,w,D)}if("PEPoweredValveBlock"==w.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;",v.style+=b(v.style,e,u,v),1==e.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",
-x=new mxCell("",new mxGeometry(.325*r,0,.35*r,.35*p),"part=1;strokeColor=none;fillColor=none;spacingTop=2;"),x.vertex=!0,v.insert(x),x.value=m(e.PoweredText),x.style+=(G?"":q(e.PoweredText)+t(e.PoweredText)+C(e.PoweredText)+I(e.PoweredText)+N(e.PoweredText)+O(e.PoweredText)+S(e.PoweredText))+"fontSize=6;"+H(e.PoweredText),x.style+=b(x.style,e,u,x,G)):v.style+="valveType=gate;";else{v.style+="verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;";v.value=m(e.Text);switch(w.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==e.handOperated&&(v.style+="actuator=man;")}v.style+=b(v.style,e,u,v,G);break;case "UI2BrowserBlock":v.style+="shape=mxgraph.mockup.containers.browserWindow;mainText=;";1==e.vScroll&&(T=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-130),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):
-new mxCell("",new mxGeometry(1,0,20,p-110),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(-20,110),T.vertex=!0,v.insert(T),v.style+="spacingRight=20;");1==e.hScroll&&(ta=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
-ta.geometry.relative=!0,ta.geometry.offset=new mxPoint(0,-20),ta.vertex=!0,v.insert(ta));v.style+=b(v.style,e,u,v);break;case "UI2WindowBlock":v.value=m(e.Title);v.style+="shape=mxgraph.mockup.containers.window;mainText=;align=center;verticalAlign=top;spacing=5;"+(G?"fontSize=13;":f(e.Title)+q(e.Title)+t(e.Title));1==e.vScroll&&(T=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,
-0,20,p-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(-20,30),T.vertex=!0,v.insert(T),v.style+="spacingRight=20;");1==e.hScroll&&(ta=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),ta.geometry.relative=
-!0,ta.geometry.offset=new mxPoint(0,-20),ta.vertex=!0,v.insert(ta));v.style+=b(v.style,e,u,v,G);break;case "UI2DialogBlock":v.value=m(e.Text);v.style+=a(e.Text,G);x=new mxCell("",new mxGeometry(0,0,r,30),"part=1;resizeHeight=0;");x.vertex=!0;v.insert(x);x.value=m(e.Title);x.style+=a(e.Title,G);x.style+=b(x.style,e,u,x,G);E=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");E.geometry.relative=!0;E.geometry.offset=new mxPoint(-25,-10);
-E.vertex=!0;x.insert(E);1==e.vScroll&&(T=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(-20,30),T.vertex=!0,v.insert(T),v.style+="spacingRight=20;");1==e.hScroll&&(ta=1==e.vScroll?new mxCell("",new mxGeometry(0,
-1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),ta.geometry.relative=!0,ta.geometry.offset=new mxPoint(0,-20),ta.vertex=!0,v.insert(ta));v.style+=b(v.style,e,u,v);e.Text=null;break;case "UI2AccordionBlock":x=[];ha=25;for(l=0;l<=e.Panels-1;l++)x[l]=l<e.Selected-1?new mxCell("",new mxGeometry(0,l*ha,r,ha),"part=1;fillColor=#000000;fillOpacity=25;"):
-l==e.Selected-1?new mxCell("",new mxGeometry(0,l*ha,r,ha),"part=1;fillColor=none;"):new mxCell("",new mxGeometry(0,p-(e.Panels-e.Selected)*ha+(l-e.Selected)*ha,r,ha),"part=1;fillColor=#000000;fillOpacity=25;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Panel_"+(l+1)]),x[l].style+=a(e["Panel_"+(l+1)],G),0>x[l].style.indexOf(";align=")&&(x[l].style+="align=left;spacingLeft=5;");var Ua=J(e,u);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?
-new mxCell("",new mxGeometry(1,0,20,p-e.Selected*ha-20-(e.Panels-e.Selected)*ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-e.Selected*ha-(e.Panels-e.Selected)*ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,e.Selected*ha),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Ua,E.style+=b(E.style,
-e,u,E));1==e.hScroll&&(T=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20-(e.Panels-e.Selected)*ha),T.vertex=!0,v.insert(T),T.style+=Ua,T.style+=b(T.style,e,u,T));ta=1==e.vScroll?new mxCell("",new mxGeometry(0,e.Selected*ha,r-20,p-e.Selected*ha-
-20-(e.Panels-e.Selected)*ha),"part=1;fillColor=none;strokeColor=none;"):new mxCell("",new mxGeometry(0,e.Selected*ha,r-20,p-e.Selected*ha-(e.Panels-e.Selected)*ha),"part=1;fillColor=none;strokeColor=none;");ta.vertex=!0;v.insert(ta);ta.value=m(e.Content_1);ta.style+=a(e.Content_1,G);!G&&0>ta.style.indexOf(";align=")&&(ta.style+="align=left;spacingLeft=5;");v.style+=b(v.style,e,u,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";x=[];E=[];ha=25;var Hb=3,Ha=(r+Hb)/
-(e.Tabs+1),hb=new mxCell("",new mxGeometry(0,ha,r,p-ha),"part=1;");hb.vertex=!0;v.insert(hb);hb.style+=b(hb.style,e,u,hb);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(10+l*Ha,0,Ha-Hb,ha),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",new mxGeometry(10+l*Ha,0,Ha-Hb,ha),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha-Hb,ha),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=
-!0,x[l].insert(E[l])),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;"),E[l].style+=b(E[l].style,e,u,E[l]);Ua=J(e,u);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),
-E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,ha),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Ua,E.style+=b(E.style,e,u,E));1==e.hScroll&&(T=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20),T.vertex=!0,v.insert(T),T.style+=
-Ua,T.style+=b(T.style,e,u,T));break;case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";x=[];E=[];ha=25;Hb=3;Ha=(r+Hb)/e.Tabs;hb=new mxCell("",new mxGeometry(0,ha,r,p-ha),"part=1;");hb.vertex=!0;v.insert(hb);hb.style+=b(hb.style,e,u,hb);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha-Hb,ha),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha-Hb,ha),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=
-b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha-Hb,ha),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),E[l].style+=b(E[l].style,e,u,E[l],G),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;");Ua=J(e,u);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):
-new mxCell("",new mxGeometry(1,0,20,p-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,ha),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Ua,E.style+=b(E.style,e,u,E));1==e.hScroll&&(T=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
-T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20),T.vertex=!0,v.insert(T),T.style+=Ua,T.style+=b(T.style,e,u,T));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";x=[];E=[];Hb=3;ha=25+Hb;Ha=80;zc=10;hb=new mxCell("",new mxGeometry(Ha,0,r-Ha,p),"part=1;");hb.vertex=!0;v.insert(hb);hb.style+=b(hb.style,e,u,hb);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(0,zc+l*ha,Ha,ha-Hb),""),E[l].vertex=!0,v.insert(E[l]),E[l].value=m(e["Tab_"+
-(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),E[l].style+=b(E[l].style,e,u,E[l],G)):(x[l]=new mxCell("",new mxGeometry(0,zc+l*ha,Ha,ha-Hb),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha,ha-Hb),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G)),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;"),E[l].style+=b(E[l].style,
-e,u,E[l]);Ua=J(e,u);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,0),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",
-E.style+=Ua,E.style+=b(E.style,e,u,E));1==e.hScroll&&(T=1==e.vScroll?new mxCell("",new mxGeometry(Ha,1,r-20-Ha,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(Ha,1,r-Ha,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20),T.vertex=!0,v.insert(T),T.style+=Ua,T.style+=b(T.style,e,u,T));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";
-ha=p/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(0,l*ha+.5*ha-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=b(x[l].style,e,u,x[l],G),null!=e.Selected[l+1]&&1==e.Selected[l+1]&&(Y=J(e,u),Y=Y.replace("strokeColor","fillColor"),""==Y&&(Y="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2,
-2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Y,E[l].style+=b(E[l].style,e,u,E[l]));break;case "UI2HorizontalCheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";Ha=r/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(l*Ha,.5*p-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=
-a(e["Option_"+(l+1)],G),x[l].style+=b(x[l].style,e,u,x[l],G),null!=e.Selected[l+1]&&1==e.Selected[l+1]&&(Y=J(e,u),Y=Y.replace("strokeColor","fillColor"),""==Y&&(Y="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Y,E[l].style+=b(E[l].style,e,u,E[l]));break;case "UI2RadioBlock":v.style+="strokeColor=none;fillColor=none;";ha=p/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(0,
-l*ha+.5*ha-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=b(x[l].style,e,u,x[l],G),null!=e.Selected&&e.Selected==l+1&&(Y=J(e,u),Y=Y.replace("strokeColor","fillColor"),""==Y&&(Y="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2.5,2.5,5,5),"ellipse;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Y,E[l].style+=
-b(E[l].style,e,u,E[l]));break;case "UI2HorizontalRadioBlock":v.style+="strokeColor=none;fillColor=none;";Ha=r/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(l*Ha,.5*p-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=b(x[l].style,e,u,x[l],G),null!=e.Selected&&e.Selected==l+1&&(Y=J(e,u),
-Y=Y.replace("strokeColor","fillColor"),""==Y&&(Y="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2,2,6,6),"ellipse;part=1;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Y,E[l].style+=b(E[l].style,e,u,E[l]));break;case "UI2SelectBlock":v.style+="shape=mxgraph.mockup.forms.comboBox;strokeColor=#999999;fillColor=#ddeeff;align=left;fillColor2=#aaddff;mainText=;fontColor=#666666";v.value=m(e.Selected);break;case "UI2HSliderBlock":case "UI2VSliderBlock":v.style+="shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;handleStyle=handle;";
-"UI2VSliderBlock"==w.Class&&(v.style+="direction=south;");v.style+="sliderPos="+100*e.ScrollVal+";";v.style+=b(v.style,e,u,v);break;case "UI2DatePickerBlock":v.style+="strokeColor=none;fillColor=none;";x=new mxCell("",new mxGeometry(0,0,.6*r,p),"part=1;");x.vertex=!0;v.insert(x);x.value=m(e.Date);x.style+=a(e.Date,G);v.style+=b(v.style,e,u,v);Y=J(e,u);Y=Y.replace("strokeColor","fillColor");""==Y&&(Y="fillColor=#000000;");E=new mxCell("",new mxGeometry(.75*r,0,.25*r,p),"part=1;shape=mxgraph.gmdl.calendar;");
-E.vertex=!0;v.insert(E);E.style+=Y;E.style+=b(E.style,e,u,E);break;case "UI2SearchBlock":v.value=m(e.Search);v.style+="shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1;align=left;spacingLeft=26;"+a(e.Search,G);v.style+=b(v.style,e,u,v,G);break;case "UI2NumericStepperBlock":Y=J(e,u);Y=Y.replace("strokeColor","fillColor");""==Y&&(Y="fillColor=#000000;");v.value=m(e.Number);v.style+="shape=mxgraph.mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;mainText=;align=left;spacingLeft=8;"+
-Y+a(e.Number,G);v.style+=b(v.style,e,u,v,G);break;case "UI2TableBlock":try{kb=U(e.FillColor);var Kd=U(e.LineColor);Sc="";var be=20;v.style="html=1;overflow=fill;verticalAlign=top;spacing=0;";var Ld='<table style="width:100%;height:100%;border-collapse: collapse;border: 1px solid '+Kd+';">',tc=e.Data.split("\n");var hf=e.AltRow&&"default"!=e.AltRow?"none"==e.AltRow?kb:U(e.AltRow):Rd(kb,.95);Oc=e.Header&&"default"!=e.Header?"none"==e.Header?hf:U(e.Header):Rd(kb,.8);if("full"==e.GridLines)Sc="border: 1px solid "+
-Kd,be=19;else if("row"==e.GridLines)Sc="border-bottom: 1px solid "+Kd,be=19;else if("default"==e.GridLines||"column"==e.GridLines)Sc="border-right: 1px solid "+Kd;tc=tc.filter(function(gb){return gb});/^\{[^}]*\}$/.test(tc[tc.length-1])&&tc.pop();Fc=tc[0].split(",").length;var jf="";for(fa=0;fa<Fc-1;fa++)jf+=" , ";for(l=tc.length;l<Math.ceil(p/20);l++)tc.push(jf);for(l=0;l<tc.length;l++){Ld+='<tr style="height: '+be+"px;background:"+(0==l?Oc:l%2?kb:hf)+'">';var kf=tc[l].split(",");for(fa=0;fa<kf.length;fa++){var Md=
-e["Cell_"+l+"_"+fa],Tf=Md&&Md.m&&Md.m[0]&&"c"==Md.m[0].n?U(Md.m[0].v):Kd;Ld+='<td style="height: '+be+"px;color:"+Tf+";"+Sc+'">'+mxUtils.htmlEntities(kf[fa])+"</td>"}Ld+="</tr>"}Ld+="</table>";v.value=Ld}catch(gb){console.log(gb)}break;case "UI2ButtonBarBlock":v.style+=b(v.style,e,u,v);x=[];E=[];Ha=r/e.Buttons;for(l=0;l<=e.Buttons-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha,p),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha,p),"strokeColor=none;"),
-x[l].vertex=!0,v.insert(x[l]),x[l].style+=x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha,p),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Button_"+(l+1)]),E[l].style+=a(e["Button_"+(l+1)],G),E[l].style+=b(E[l].style,e,u,E[l],G);break;case "UI2VerticalButtonBarBlock":v.style+=b(v.style,e,u,v);x=[];E=[];ha=p/e.Buttons;for(l=0;l<=e.Buttons-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(0,l*ha,r,ha),""),E[l].vertex=!0,v.insert(E[l])):
-(x[l]=new mxCell("",new mxGeometry(0,l*ha,r,ha),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,r,ha),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Button_"+(l+1)]),E[l].style+=a(e["Button_"+(l+1)],G),E[l].style+=b(E[l].style,e,u,E[l],G);break;case "UI2LinkBarBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);x=[];E=[];Ha=r/e.Links;for(l=0;l<e.Links;l++)0!=
-l?(E[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha,p),"shape=partialRectangle;top=0;bottom=0;right=0;fillColor=none;"),E[l].style+=b(E[l].style,e,u,E[l])):E[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha,p),"fillColor=none;strokeColor=none;"),E[l].vertex=!0,v.insert(E[l]),E[l].value=m(e["Link_"+(l+1)]),E[l].style+=a(e["Link_"+(l+1)],G);break;case "UI2BreadCrumbsBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);x=[];E=[];Ha=r/e.Links;for(l=0;l<e.Links;l++)x[l]=new mxCell("",new mxGeometry(l*
-Ha,0,Ha,p),"fillColor=none;strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Link_"+(l+1)]),x[l].style+=a(e["Link_"+(l+1)],G);for(l=1;l<e.Links;l++)E[l]=new mxCell("",new mxGeometry(l/e.Links,.5,6,10),"shape=mxgraph.ios7.misc.right;"),E[l].geometry.relative=!0,E[l].geometry.offset=new mxPoint(-3,-5),E[l].vertex=!0,v.insert(E[l]);break;case "UI2MenuBarBlock":v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v);x=[];Ha=r/(e.Buttons+1);for(l=0;l<=e.Buttons-1;l++)x[l]=l!=e.Selected-
-1?new mxCell("",new mxGeometry(0,0,Ha,p),"strokeColor=none;fillColor=none;resizeHeight=1;"):new mxCell("",new mxGeometry(0,0,Ha,p),"fillColor=#000000;fillOpacity=25;strokeColor=none;resizeHeight=1;"),x[l].geometry.relative=!0,x[l].geometry.offset=new mxPoint(l*Ha,0),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["MenuItem_"+(l+1)]),x[l].style+=a(e["MenuItem_"+(l+1)],G);break;case "UI2AtoZBlock":v.style+="fillColor=none;strokeColor=none;"+a(e.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;"+a(e.Text_prev);v.value=m(e.Text_prev)+" ";for(l=0;l<e.Links;l++)v.value+=m(e["Link_"+(l+1)])+" ";v.value+=m(e.Text_next);break;case "UI2ContextMenuBlock":v.style+=b(v.style,e,u,v);X=[];nb=[];var jd=[];ha=p/e.Lines;ja=null;for(l=0;l<e.Lines;l++)null!=e["Item_"+(l+1)]&&(null==ja&&(ja=""+f(e["Item_"+(l+1)])+q(e["Item_"+(l+1)])+t(e["Item_"+(l+1)])),X[l]=new mxCell("",new mxGeometry(0,l*p/e.Lines,r,ha),"strokeColor=none;fillColor=none;spacingLeft=20;align=left;html=1;"),
-X[l].vertex=!0,v.insert(X[l]),X[l].style+=ja,X[l].value=m(e["Item_"+(l+1)])),null!=e.Icons[l+1]&&null!=X[l]&&("dot"==e.Icons[l+1]?(nb[l]=new mxCell("",new mxGeometry(0,.5,8,8),"ellipse;strokeColor=none;"),nb[l].geometry.offset=new mxPoint(6,-4)):"check"==e.Icons[l+1]&&(nb[l]=new mxCell("",new mxGeometry(0,.5,7,8),"shape=mxgraph.mscae.general.checkmark;strokeColor=none;"),nb[l].geometry.offset=new mxPoint(6.5,-4)),null!=nb[l]&&(nb[l].geometry.relative=!0,nb[l].vertex=!0,X[l].insert(nb[l]),Y=J(e,u),
-Y=Y.replace("strokeColor","fillColor"),""==Y&&(Y="fillColor=#000000;"),nb[l].style+=Y)),null!=e["Shortcut_"+(l+1)]&&(null==ja&&(ja=""+f(e["Shortcut_"+(l+1)])+q(e["Shortcut_"+(l+1)])+t(e["Shortcut_"+(l+1)])),jd[l]=new mxCell("",new mxGeometry(.6*r,l*p/e.Lines,.4*r,ha),"strokeColor=none;fillColor=none;spacingRight=3;align=right;html=1;"),jd[l].vertex=!0,v.insert(jd[l]),jd[l].style+=ja,jd[l].value=m(e["Shortcut_"+(l+1)])),null!=e.Dividers[l+1]&&(X[l]=new mxCell("",new mxGeometry(.05*r,l*p/e.Lines,.9*
-r,ha),"shape=line;strokeWidth=1;"),X[l].vertex=!0,v.insert(X[l]),X[l].style+=J(e,u));break;case "UI2ProgressBarBlock":v.style+="shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos="+100*e.ScrollVal+";";break;case "CalloutSquareBlock":case "UI2TooltipSquareBlock":v.value=m(e.Tip||e.Text);v.style+="html=1;shape=callout;flipV=1;base=13;size=7;position=0.5;position2=0.66;rounded=1;arcSize="+e.RoundCorners+";"+a(e.Tip||e.Text,G);v.style+=b(v.style,e,u,v,G);v.geometry.height+=10;break;case "UI2CalloutBlock":v.value=
+x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=new mxCell("",new mxGeometry(.38*r,0,.24*r,.16*p),"part=1;");E.vertex=!0;v.insert(E);E.style+=b(E.style,e,u,E);U=new mxCell("",new mxGeometry(.76*r,.23*p,.24*r,.16*p),"");U.vertex=!0;v.insert(U);U.style=E.style;var ta=new mxCell("",new mxGeometry(.76*r,.61*p,.24*r,.16*p),"");ta.vertex=!0;v.insert(ta);ta.style=E.style;var Zd=new mxCell("",new mxGeometry(.38*r,.84*p,.24*r,.16*p),"");Zd.vertex=!0;v.insert(Zd);Zd.style=E.style;var $d=new mxCell("",new mxGeometry(0,
+.61*p,.24*r,.16*p),"");$d.vertex=!0;v.insert($d);$d.style=E.style;var ae=new mxCell("",new mxGeometry(0,.23*p,.24*r,.16*p),"");ae.vertex=!0;v.insert(ae);ae.style=E.style;fa=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(fa,!1);E.insertEdge(fa,!0);fa.edge=!0;fa.style+=b(fa.style,e,u,fa);F.push(D.addCell(fa,null,null,null,null));da=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(da,!1);U.insertEdge(da,!0);da.edge=!0;da.style+=b(da.style,e,u,da);
+F.push(D.addCell(da,null,null,null,null));xa=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(xa,!1);ta.insertEdge(xa,!0);xa.edge=!0;xa.style+=b(xa.style,e,u,xa);F.push(D.addCell(xa,null,null,null,null));$a=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge($a,!1);Zd.insertEdge($a,!0);$a.edge=!0;$a.style+=b($a.style,e,u,$a);F.push(D.addCell($a,null,null,null,null));var Mc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(Mc,
+!1);$d.insertEdge(Mc,!0);Mc.edge=!0;Mc.style+=b(Mc.style,e,u,Mc);F.push(D.addCell(Mc,null,null,null,null));var Nc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(Nc,!1);ae.insertEdge(Nc,!0);Nc.edge=!0;Nc.style+=b(Nc.style,e,u,Nc);F.push(D.addCell(Nc,null,null,null,null));break;case "EIDurableSubscriberBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);fa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");
+fa.geometry.relative=!0;fa.edge=!0;gb(.05*r,.5*p,.6*r,.25*p,fa,F,D,Na,v,qa);da=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");da.geometry.relative=!0;da.edge=!0;gb(.05*r,.5*p,.6*r,.75*p,da,F,D,Na,v,qa);x=new mxCell("",new mxGeometry(.7*r,.1*p,.15*r,.32*p),"shape=mxgraph.eip.durable_subscriber;part=1;fillColor=#818181;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);break;case "EIControlBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
+v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.25*r,.25*p,.5*r,.5*p),"shape=mxgraph.eip.control_bus;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);break;case "EIMessageHistoryBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);U=new mxCell("",
+new mxGeometry(r-45,30,30,20),"shape=mxgraph.mockup.misc.mail2;fillColor=#FFE040;part=1;");U.vertex=!0;v.insert(U);U.style+=b(U.style,e,u,U);xa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");xa.geometry.relative=!0;xa.edge=!0;x.insertEdge(xa,!1);U.insertEdge(xa,!0);xa.style+=b(xa.style,e,u,xa);xa.geometry.points=[new mxPoint(aa+8.5,ba+40)];F.push(D.addCell(xa,null,null,null,null));ta=new mxCell("",new mxGeometry(r-
+45,p-20,20,20),"part=1;");ta.vertex=!0;v.insert(ta);ta.value=m(e.message_0);ta.style+=a(e.message_0,G);ta.style+=b(ta.style,e,u,ta,G);$a=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");$a.geometry.relative=!0;$a.edge=!0;x.insertEdge($a,!1);ta.insertEdge($a,!0);$a.style+=b($a.style,e,u,$a);$a.geometry.points=[new mxPoint(aa+8.5,ba+p-10)];F.push(D.addCell($a,null,null,null,null));Gd=e.HistoryMessages;pe=(p-75)/Gd;E=[];
+va=[];for(l=0;l<Gd;l++)Hd=pe*(l+1)+30,E[l]=new mxCell("",new mxGeometry(r-20,Hd,20,20),"part=1;"),E[l].vertex=!0,E[l].value=m(e["message_"+(l+1)]),E.style+=a(e["message_"+(l+1)],G),v.insert(E[l]),E[l].style+=b(E[l].style,e,u,E[l],G),va[l]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;"),va[l].geometry.relative=!0,va[l].edge=!0,U.insertEdge(va[l],!1),E[l].insertEdge(va[l],!0),va[l].style+=b(va[l].style,e,u,va[l]),Lc=[],
+Lc.push(new mxPoint(aa+r-30,ba+Hd+10)),va[l].geometry.points=Lc,F.push(D.addCell(va[l],null,null,null,null));break;case "Equation":LucidImporter.hasMath=!0;v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v);v.value="$$"+e.Latex+"$$";break;case "fpDoor":v.style+="shape=mxgraph.floorplan.doorRight;";0>e.DoorAngle&&(v.style+="flipV=1;");v.style+=b(v.style,e,u,v);break;case "fpWall":v.style+="labelPosition=center;verticalAlign=bottom;verticalLabelPosition=top;";v.value=m(e);v.style+=b(v.style,e,u,
+v,G);v.style=v.style.replace("rotation=180;","");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;";0<e.DoorAngle&&(v.style+="flipV=1;");v.style+=b(v.style,e,u,v);break;case "fpRestroomLights":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);x=new mxCell("",new mxGeometry(0,0,r,.25*p),"part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);E=[];var ff=.02*r,qe=(r-2*ff)/e.LightCount,gf=.8*qe;for(l=0;l<e.LightCount;l++)E[l]=new mxCell("",new mxGeometry(ff+
+qe*l+(qe-gf)/2,.25*p,gf,.75*p),"ellipse;part=1;"),E[l].vertex=!0,v.insert(E[l]),E[l].style+=b(E[l].style,e,u,E[l]);break;case "fpRestroomSinks":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);x=[];var hf=r/e.SinkCount;for(l=0;l<e.SinkCount;l++)x[l]=new mxCell("",new mxGeometry(hf*l,0,hf,p),"part=1;shape=mxgraph.floorplan.sink_2;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=b(x[l].style,e,u,x[l]);break;case "fpRestroomStalls":v.style+="strokeColor=none;fillColor=none;";var Fb=
+.1*r/e.StallCount;x=new mxCell("",new mxGeometry(0,0,Fb,p),"fillColor=#000000;part=1;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);var Ob=(r-Fb)/e.StallCount,re=[],Id=[],Jd=[],Kd=[];Z=H(e,u);Z=""==Z?"#000000;":Z.replace("stokreColor=","");var se="part=1;fillColor="+Z;se+=b(se,e,u,v);var te=b("",e,u,v);for(l=0;l<e.StallCount;l++)re[l]=new mxCell("",new mxGeometry((l+1)*Ob,0,Fb,p),se),re[l].vertex=!0,v.insert(re[l]),Jd[l]=new mxCell("",new mxGeometry(Fb+l*Ob+.05*(Ob-Fb),p-.92*(Ob-Fb),.9*(Ob-
+Fb),.92*(Ob-Fb)),"shape=mxgraph.floorplan.doorRight;flipV=1;part=1;"),Jd[l].vertex=!0,v.insert(Jd[l]),Jd[l].style+=te,Id[l]=new mxCell("",new mxGeometry(Fb+l*Ob+.2*(Ob-Fb),0,.6*(Ob-Fb),.8*(Ob-Fb)),"shape=mxgraph.floorplan.toilet;part=1;"),Id[l].vertex=!0,v.insert(Id[l]),Id[l].style+=te,Kd[l]=new mxCell("",new mxGeometry(Fb+l*Ob,.42*p,.15*(Ob-Fb),.12*(Ob-Fb)),"part=1;"),Kd[l].vertex=!0,v.insert(Kd[l]),Kd[l].style+=te;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var be="edgeStyle=none;endArrow=none;part=1;";
+Z=H(e,u);Z=""==Z?"#000000;":Z.replace("strokeColor=","");var Vc="shape=triangle;part=1;fillColor="+Z;Vc+=b(Vc,e,u,v);fa=new mxCell("",new mxGeometry(0,0,0,0),be);fa.geometry.relative=!0;fa.edge=!0;gb(0,.5*p,.65*r,.5*p,fa,F,D,Na,v,qa);var ia=p/e.numLines;da=[];var Wc=[];for(l=0;l<e.numLines;l++)da[l]=new mxCell("",new mxGeometry(0,0,0,0),be),da[l].geometry.relative=!0,da[l].edge=!0,gb(.65*r,.5*p,.96*r,(l+.5)*ia,da[l],F,D,Na,v,qa),Wc[l]=new mxCell("",new mxGeometry(.95*r,(l+.2)*ia,.05*r,.6*ia),Vc),
+Wc[l].vertex=!0,v.insert(Wc[l]);break;case "PEMultilines":v.style+="strokeColor=none;fillColor=none;";be="edgeStyle=none;endArrow=none;part=1;";Z=H(e,u);Z=""==Z?"#000000;":Z.replace("strokeColor=","");Vc="shape=triangle;part=1;fillColor="+Z;Vc+=b(Vc,e,u,v);ia=p/e.numLines;da=[];Wc=[];for(l=0;l<e.numLines;l++)da[l]=new mxCell("",new mxGeometry(0,0,0,0),be),da[l].geometry.relative=!0,da[l].edge=!0,gb(0,(l+.5)*ia,.96*r,(l+.5)*ia,da[l],F,D,Na,v,qa),Wc[l]=new mxCell("",new mxGeometry(.95*r,(l+.2)*ia,.05*
+r,.6*ia),Vc),Wc[l].vertex=!0,v.insert(Wc[l]);break;case "PEVesselBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);switch(e.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+=b(v.style,e,u,v,G);break;case "PEClosedTankBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);1==e.peakedRoof&&0==e.stumpType?v.style+=
+"shape=mxgraph.pid.vessels.tank_(conical_roof);":1==e.stumpType&&(v.style+="shape=mxgraph.pid.vessels.tank_(boot);");v.style+=b(v.style,e,u,v,G);break;case "PEColumnBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style=0==e.columnType?v.style+"shape=mxgraph.pid.vessels.pressurized_vessel;":v.style+"shape=mxgraph.pid.vessels.tank;";v.style+=b(v.style,e,u,v,G);break;case "PECompressorTurbineBlock":v.style+="strokeColor=none;fillColor=none;";v.value=m(e.Text);v.style+=
+b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,.2*p,r,.6*p),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");x.vertex=!0;v.insert(x);x.style+=ja;x.style+=b(x.style,e,u,x);ja="endSize=4;endArrow=block;endFill=1;";0==e.compressorType?(fa=new mxCell("",new mxGeometry(0,0,0,0),""),fa.geometry.relative=!0,fa.edge=!0,fa.style+=ja,fa.style+=b(fa.style,e,u,fa),gb(0,0,0,.2*p,fa,F,D,Na,v,qa),da=new mxCell("",new mxGeometry(0,0,0,0),""),da.geometry.relative=!0,da.edge=!0,da.style+=
+ja,da.style+=b(da.style,e,u,da),gb(r,.67*p,r,p,da,F,D,Na,v,qa)):(x.style+="flipH=1;",fa=new mxCell("",new mxGeometry(0,0,0,0),""),fa.geometry.relative=!0,fa.edge=!0,fa.style+=ja,fa.style+=b(fa.style,e,u,fa),gb(0,0,0,.33*p,fa,F,D,Na,v,qa),da=new mxCell("",new mxGeometry(0,0,0,0),""),da.geometry.relative=!0,da.edge=!0,da.style+=ja,da.style+=b(da.style,e,u,da),gb(r,.8*p,r,p,da,F,D,Na,v,qa));1==e.centerLineType&&(xa=new mxCell("",new mxGeometry(0,0,0,0),""),xa.geometry.relative=!0,xa.edge=!0,xa.style+=
+ja,xa.style+=b(xa.style,e,u,xa),gb(.2*r,.5*p,.8*r,.5*p,xa,F,D,Na,v,qa));break;case "PEMotorDrivenTurbineBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";v.value=m(e.Text);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.2*r,.2*p,.6*r,.6*p),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");x.vertex=!0;v.insert(x);x.style+=b(x.style,e,u,x);break;case "PEIndicatorBlock":case "PEIndicator2Block":case "PESharedIndicatorBlock":case "PEComputerIndicatorBlock":case "PESharedIndicator2Block":case "PEProgrammableIndicatorBlock":switch(w.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+=b(v.style,e,u,v);"PEIndicator2Block"==
+w.Class||"PESharedIndicator2Block"==w.Class?(x=new mxCell("",new mxGeometry(0,0,r,.5*r),"part=1;strokeColor=none;fillColor=none;"),x.vertex=!0,v.insert(x),x.value=m(e.TopText),x.style+=a(e.TopText,G),x.style+=b(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,.5*r,r,.5*r),"part=1;strokeColor=none;fillColor=none;")):(x=new mxCell("",new mxGeometry(0,0,r,.5*p),"part=1;strokeColor=none;fillColor=none;"),x.vertex=!0,v.insert(x),x.value=m(e.TopText),x.style+=a(e.TopText,G),x.style+=b(x.style,e,u,x,G),
+E=new mxCell("",new mxGeometry(0,.5*p,r,.5*p),"part=1;strokeColor=none;fillColor=none;"));E.vertex=!0;v.insert(E);E.value=m(e.BotText);E.style+=a(e.BotText,G);E.style+=b(E.style,e,u,E,G);switch(e.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 ue=
+!1;"PEPoweredValveBlock"==w.Class?1!=e.poweredHandOperated&&(ue=!0):1!=e.handOperated&&(ue=!0);if(ue){e=h(w).Properties;O=e.BoundingBox;var Sf=O.h;O.h="PEAngleValveBlock"==w.Class||"PEAngleGlobeValveBlock"==w.Class?.7*O.h:.6*O.h;v=new mxCell("",new mxGeometry(Math.round(.75*O.x+xc),Math.round(.75*(O.y+Sf-O.h)+yc),Math.round(.75*O.w),Math.round(.75*O.h)),"");v.vertex=!0;Xa(v,w,D)}if("PEPoweredValveBlock"==w.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;",
+v.style+=b(v.style,e,u,v),1==e.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",x=new mxCell("",new mxGeometry(.325*r,0,.35*r,.35*p),"part=1;strokeColor=none;fillColor=none;spacingTop=2;"),x.vertex=!0,v.insert(x),x.value=m(e.PoweredText),x.style+=(G?"":q(e.PoweredText)+t(e.PoweredText)+C(e.PoweredText)+I(e.PoweredText)+Q(e.PoweredText)+L(e.PoweredText)+S(e.PoweredText))+"fontSize=6;"+R(e.PoweredText),x.style+=b(x.style,e,u,x,G)):v.style+="valveType=gate;";else{v.style+="verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;";
+v.value=m(e.Text);switch(w.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==e.handOperated&&(v.style+="actuator=man;")}v.style+=b(v.style,e,u,v,G);break;case "UI2BrowserBlock":v.style+="shape=mxgraph.mockup.containers.browserWindow;mainText=;";1==e.vScroll&&(U=1==e.hScroll?new mxCell("",new mxGeometry(1,
+0,20,p-130),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-110),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),U.geometry.relative=!0,U.geometry.offset=new mxPoint(-20,110),U.vertex=!0,v.insert(U),v.style+="spacingRight=20;");1==e.hScroll&&(ta=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):
+new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),ta.geometry.relative=!0,ta.geometry.offset=new mxPoint(0,-20),ta.vertex=!0,v.insert(ta));v.style+=b(v.style,e,u,v);break;case "UI2WindowBlock":v.value=m(e.Title);v.style+="shape=mxgraph.mockup.containers.window;mainText=;align=center;verticalAlign=top;spacing=5;"+(G?"fontSize=13;":f(e.Title)+q(e.Title)+t(e.Title));1==e.vScroll&&(U=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-50),
+"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),U.geometry.relative=!0,U.geometry.offset=new mxPoint(-20,30),U.vertex=!0,v.insert(U),v.style+="spacingRight=20;");1==e.hScroll&&(ta=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",
+new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),ta.geometry.relative=!0,ta.geometry.offset=new mxPoint(0,-20),ta.vertex=!0,v.insert(ta));v.style+=b(v.style,e,u,v,G);break;case "UI2DialogBlock":v.value=m(e.Text);v.style+=a(e.Text,G);x=new mxCell("",new mxGeometry(0,0,r,30),"part=1;resizeHeight=0;");x.vertex=!0;v.insert(x);x.value=m(e.Title);x.style+=a(e.Title,G);x.style+=b(x.style,e,u,x,G);E=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");
+E.geometry.relative=!0;E.geometry.offset=new mxPoint(-25,-10);E.vertex=!0;x.insert(E);1==e.vScroll&&(U=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),U.geometry.relative=!0,U.geometry.offset=new mxPoint(-20,30),U.vertex=!0,v.insert(U),v.style+="spacingRight=20;");
+1==e.hScroll&&(ta=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),ta.geometry.relative=!0,ta.geometry.offset=new mxPoint(0,-20),ta.vertex=!0,v.insert(ta));v.style+=b(v.style,e,u,v);e.Text=null;break;case "UI2AccordionBlock":x=[];ia=25;for(l=0;l<=e.Panels-1;l++)x[l]=l<e.Selected-1?new mxCell("",new mxGeometry(0,
+l*ia,r,ia),"part=1;fillColor=#000000;fillOpacity=25;"):l==e.Selected-1?new mxCell("",new mxGeometry(0,l*ia,r,ia),"part=1;fillColor=none;"):new mxCell("",new mxGeometry(0,p-(e.Panels-e.Selected)*ia+(l-e.Selected)*ia,r,ia),"part=1;fillColor=#000000;fillOpacity=25;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Panel_"+(l+1)]),x[l].style+=a(e["Panel_"+(l+1)],G),0>x[l].style.indexOf(";align=")&&(x[l].style+="align=left;spacingLeft=5;");var Va=H(e,u);Va=Va.replace("strokeColor","fillColor2");""==Va&&
+(Va="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-e.Selected*ia-20-(e.Panels-e.Selected)*ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-e.Selected*ia-(e.Panels-e.Selected)*ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,e.Selected*ia),E.vertex=!0,v.insert(E),v.style+=
+"spacingRight=20;",E.style+=Va,E.style+=b(E.style,e,u,E));1==e.hScroll&&(U=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),U.geometry.relative=!0,U.geometry.offset=new mxPoint(0,-20-(e.Panels-e.Selected)*ia),U.vertex=!0,v.insert(U),U.style+=Va,U.style+=b(U.style,e,u,U));ta=1==e.vScroll?new mxCell("",new mxGeometry(0,
+e.Selected*ia,r-20,p-e.Selected*ia-20-(e.Panels-e.Selected)*ia),"part=1;fillColor=none;strokeColor=none;"):new mxCell("",new mxGeometry(0,e.Selected*ia,r-20,p-e.Selected*ia-(e.Panels-e.Selected)*ia),"part=1;fillColor=none;strokeColor=none;");ta.vertex=!0;v.insert(ta);ta.value=m(e.Content_1);ta.style+=a(e.Content_1,G);!G&&0>ta.style.indexOf(";align=")&&(ta.style+="align=left;spacingLeft=5;");v.style+=b(v.style,e,u,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";
+x=[];E=[];ia=25;var Ib=3,Ga=(r+Ib)/(e.Tabs+1),ib=new mxCell("",new mxGeometry(0,ia,r,p-ia),"part=1;");ib.vertex=!0;v.insert(ib);ib.style+=b(ib.style,e,u,ib);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(10+l*Ga,0,Ga-Ib,ia),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",new mxGeometry(10+l*Ga,0,Ga-Ib,ia),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ga-Ib,ia),"fillColor=#000000;fillOpacity=25;"),
+E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;"),E[l].style+=b(E[l].style,e,u,E[l]);Va=H(e,u);Va=Va.replace("strokeColor","fillColor2");""==Va&&(Va="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20-ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-
+ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,ia),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Va,E.style+=b(E.style,e,u,E));1==e.hScroll&&(U=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
+U.geometry.relative=!0,U.geometry.offset=new mxPoint(0,-20),U.vertex=!0,v.insert(U),U.style+=Va,U.style+=b(U.style,e,u,U));break;case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";x=[];E=[];ia=25;Ib=3;Ga=(r+Ib)/e.Tabs;ib=new mxCell("",new mxGeometry(0,ia,r,p-ia),"part=1;");ib.vertex=!0;v.insert(ib);ib.style+=b(ib.style,e,u,ib);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(l*Ga,0,Ga-Ib,ia),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",
+new mxGeometry(l*Ga,0,Ga-Ib,ia),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ga-Ib,ia),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),E[l].style+=b(E[l].style,e,u,E[l],G),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;");Va=H(e,u);Va=Va.replace("strokeColor","fillColor2");""==Va&&(Va="fillColor2=#000000;");1==
+e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20-ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,ia),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Va,E.style+=b(E.style,e,u,E));1==e.hScroll&&(U=1==e.vScroll?new mxCell("",new mxGeometry(0,
+1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),U.geometry.relative=!0,U.geometry.offset=new mxPoint(0,-20),U.vertex=!0,v.insert(U),U.style+=Va,U.style+=b(U.style,e,u,U));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";x=[];E=[];Ib=3;ia=25+Ib;Ga=80;Ac=10;ib=new mxCell("",new mxGeometry(Ga,0,r-Ga,p),"part=1;");ib.vertex=
+!0;v.insert(ib);ib.style+=b(ib.style,e,u,ib);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(0,Ac+l*ia,Ga,ia-Ib),""),E[l].vertex=!0,v.insert(E[l]),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),E[l].style+=b(E[l].style,e,u,E[l],G)):(x[l]=new mxCell("",new mxGeometry(0,Ac+l*ia,Ga,ia-Ib),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ga,ia-Ib),"fillColor=#000000;fillOpacity=25;"),
+E[l].vertex=!0,x[l].insert(E[l]),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G)),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;"),E[l].style+=b(E[l].style,e,u,E[l]);Va=H(e,u);Va=Va.replace("strokeColor","fillColor2");""==Va&&(Va="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),
+E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,0),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Va,E.style+=b(E.style,e,u,E));1==e.hScroll&&(U=1==e.vScroll?new mxCell("",new mxGeometry(Ga,1,r-20-Ga,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(Ga,1,r-Ga,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),U.geometry.relative=!0,U.geometry.offset=new mxPoint(0,-20),U.vertex=!0,v.insert(U),
+U.style+=Va,U.style+=b(U.style,e,u,U));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";ia=p/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(0,l*ia+.5*ia-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=b(x[l].style,e,u,x[l],G),null!=e.Selected[l+1]&&1==e.Selected[l+1]&&
+(Z=H(e,u),Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Z,E[l].style+=b(E[l].style,e,u,E[l]));break;case "UI2HorizontalCheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";Ga=r/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(l*Ga,.5*p-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),
+x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=b(x[l].style,e,u,x[l],G),null!=e.Selected[l+1]&&1==e.Selected[l+1]&&(Z=H(e,u),Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Z,E[l].style+=b(E[l].style,e,u,E[l]));break;case "UI2RadioBlock":v.style+="strokeColor=none;fillColor=none;";
+ia=p/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(0,l*ia+.5*ia-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=b(x[l].style,e,u,x[l],G),null!=e.Selected&&e.Selected==l+1&&(Z=H(e,u),Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2.5,
+2.5,5,5),"ellipse;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Z,E[l].style+=b(E[l].style,e,u,E[l]));break;case "UI2HorizontalRadioBlock":v.style+="strokeColor=none;fillColor=none;";Ga=r/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(l*Ga,.5*p-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=
+b(x[l].style,e,u,x[l],G),null!=e.Selected&&e.Selected==l+1&&(Z=H(e,u),Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2,2,6,6),"ellipse;part=1;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Z,E[l].style+=b(E[l].style,e,u,E[l]));break;case "UI2SelectBlock":v.style+="shape=mxgraph.mockup.forms.comboBox;strokeColor=#999999;fillColor=#ddeeff;align=left;fillColor2=#aaddff;mainText=;fontColor=#666666";v.value=m(e.Selected);break;case "UI2HSliderBlock":case "UI2VSliderBlock":v.style+=
+"shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;handleStyle=handle;";"UI2VSliderBlock"==w.Class&&(v.style+="direction=south;");v.style+="sliderPos="+100*e.ScrollVal+";";v.style+=b(v.style,e,u,v);break;case "UI2DatePickerBlock":v.style+="strokeColor=none;fillColor=none;";x=new mxCell("",new mxGeometry(0,0,.6*r,p),"part=1;");x.vertex=!0;v.insert(x);x.value=m(e.Date);x.style+=a(e.Date,G);v.style+=b(v.style,e,u,v);Z=H(e,u);Z=Z.replace("strokeColor","fillColor");""==Z&&(Z="fillColor=#000000;");
+E=new mxCell("",new mxGeometry(.75*r,0,.25*r,p),"part=1;shape=mxgraph.gmdl.calendar;");E.vertex=!0;v.insert(E);E.style+=Z;E.style+=b(E.style,e,u,E);break;case "UI2SearchBlock":v.value=m(e.Search);v.style+="shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1;align=left;spacingLeft=26;"+a(e.Search,G);v.style+=b(v.style,e,u,v,G);break;case "UI2NumericStepperBlock":Z=H(e,u);Z=Z.replace("strokeColor","fillColor");""==Z&&(Z="fillColor=#000000;");v.value=m(e.Number);v.style+="shape=mxgraph.mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;mainText=;align=left;spacingLeft=8;"+
+Z+a(e.Number,G);v.style+=b(v.style,e,u,v,G);break;case "UI2TableBlock":try{lb=P(e.FillColor);var Ld=P(e.LineColor);Tc="";var ce=20;v.style="html=1;overflow=fill;verticalAlign=top;spacing=0;";var Md='<table style="width:100%;height:100%;border-collapse: collapse;border: 1px solid '+Ld+';">',uc=e.Data.split("\n");var jf=e.AltRow&&"default"!=e.AltRow?"none"==e.AltRow?lb:P(e.AltRow):Sd(lb,.95);Pc=e.Header&&"default"!=e.Header?"none"==e.Header?jf:P(e.Header):Sd(lb,.8);if("full"==e.GridLines)Tc="border: 1px solid "+
+Ld,ce=19;else if("row"==e.GridLines)Tc="border-bottom: 1px solid "+Ld,ce=19;else if("default"==e.GridLines||"column"==e.GridLines)Tc="border-right: 1px solid "+Ld;uc=uc.filter(function(hb){return hb});/^\{[^}]*\}$/.test(uc[uc.length-1])&&uc.pop();Gc=uc[0].split(",").length;var kf="";for(ha=0;ha<Gc-1;ha++)kf+=" , ";for(l=uc.length;l<Math.ceil(p/20);l++)uc.push(kf);for(l=0;l<uc.length;l++){Md+='<tr style="height: '+ce+"px;background:"+(0==l?Pc:l%2?lb:jf)+'">';var lf=uc[l].split(",");for(ha=0;ha<lf.length;ha++){var Nd=
+e["Cell_"+l+"_"+ha],Tf=Nd&&Nd.m&&Nd.m[0]&&"c"==Nd.m[0].n?P(Nd.m[0].v):Ld;Md+='<td style="height: '+ce+"px;color:"+Tf+";"+Tc+'">'+mxUtils.htmlEntities(lf[ha])+"</td>"}Md+="</tr>"}Md+="</table>";v.value=Md}catch(hb){console.log(hb)}break;case "UI2ButtonBarBlock":v.style+=b(v.style,e,u,v);x=[];E=[];Ga=r/e.Buttons;for(l=0;l<=e.Buttons-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(l*Ga,0,Ga,p),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",new mxGeometry(l*Ga,0,Ga,p),"strokeColor=none;"),
+x[l].vertex=!0,v.insert(x[l]),x[l].style+=x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ga,p),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Button_"+(l+1)]),E[l].style+=a(e["Button_"+(l+1)],G),E[l].style+=b(E[l].style,e,u,E[l],G);break;case "UI2VerticalButtonBarBlock":v.style+=b(v.style,e,u,v);x=[];E=[];ia=p/e.Buttons;for(l=0;l<=e.Buttons-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(0,l*ia,r,ia),""),E[l].vertex=!0,v.insert(E[l])):
+(x[l]=new mxCell("",new mxGeometry(0,l*ia,r,ia),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,r,ia),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Button_"+(l+1)]),E[l].style+=a(e["Button_"+(l+1)],G),E[l].style+=b(E[l].style,e,u,E[l],G);break;case "UI2LinkBarBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);x=[];E=[];Ga=r/e.Links;for(l=0;l<e.Links;l++)0!=
+l?(E[l]=new mxCell("",new mxGeometry(l*Ga,0,Ga,p),"shape=partialRectangle;top=0;bottom=0;right=0;fillColor=none;"),E[l].style+=b(E[l].style,e,u,E[l])):E[l]=new mxCell("",new mxGeometry(l*Ga,0,Ga,p),"fillColor=none;strokeColor=none;"),E[l].vertex=!0,v.insert(E[l]),E[l].value=m(e["Link_"+(l+1)]),E[l].style+=a(e["Link_"+(l+1)],G);break;case "UI2BreadCrumbsBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);x=[];E=[];Ga=r/e.Links;for(l=0;l<e.Links;l++)x[l]=new mxCell("",new mxGeometry(l*
+Ga,0,Ga,p),"fillColor=none;strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Link_"+(l+1)]),x[l].style+=a(e["Link_"+(l+1)],G);for(l=1;l<e.Links;l++)E[l]=new mxCell("",new mxGeometry(l/e.Links,.5,6,10),"shape=mxgraph.ios7.misc.right;"),E[l].geometry.relative=!0,E[l].geometry.offset=new mxPoint(-3,-5),E[l].vertex=!0,v.insert(E[l]);break;case "UI2MenuBarBlock":v.style+="strokeColor=none;";v.style+=b(v.style,e,u,v);x=[];Ga=r/(e.Buttons+1);for(l=0;l<=e.Buttons-1;l++)x[l]=l!=e.Selected-
+1?new mxCell("",new mxGeometry(0,0,Ga,p),"strokeColor=none;fillColor=none;resizeHeight=1;"):new mxCell("",new mxGeometry(0,0,Ga,p),"fillColor=#000000;fillOpacity=25;strokeColor=none;resizeHeight=1;"),x[l].geometry.relative=!0,x[l].geometry.offset=new mxPoint(l*Ga,0),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["MenuItem_"+(l+1)]),x[l].style+=a(e["MenuItem_"+(l+1)],G);break;case "UI2AtoZBlock":v.style+="fillColor=none;strokeColor=none;"+a(e.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;"+a(e.Text_prev);v.value=m(e.Text_prev)+" ";for(l=0;l<e.Links;l++)v.value+=m(e["Link_"+(l+1)])+" ";v.value+=m(e.Text_next);break;case "UI2ContextMenuBlock":v.style+=b(v.style,e,u,v);X=[];ob=[];var kd=[];ia=p/e.Lines;ja=null;for(l=0;l<e.Lines;l++)null!=e["Item_"+(l+1)]&&(null==ja&&(ja=""+f(e["Item_"+(l+1)])+q(e["Item_"+(l+1)])+t(e["Item_"+(l+1)])),X[l]=new mxCell("",new mxGeometry(0,l*p/e.Lines,r,ia),"strokeColor=none;fillColor=none;spacingLeft=20;align=left;html=1;"),
+X[l].vertex=!0,v.insert(X[l]),X[l].style+=ja,X[l].value=m(e["Item_"+(l+1)])),null!=e.Icons[l+1]&&null!=X[l]&&("dot"==e.Icons[l+1]?(ob[l]=new mxCell("",new mxGeometry(0,.5,8,8),"ellipse;strokeColor=none;"),ob[l].geometry.offset=new mxPoint(6,-4)):"check"==e.Icons[l+1]&&(ob[l]=new mxCell("",new mxGeometry(0,.5,7,8),"shape=mxgraph.mscae.general.checkmark;strokeColor=none;"),ob[l].geometry.offset=new mxPoint(6.5,-4)),null!=ob[l]&&(ob[l].geometry.relative=!0,ob[l].vertex=!0,X[l].insert(ob[l]),Z=H(e,u),
+Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),ob[l].style+=Z)),null!=e["Shortcut_"+(l+1)]&&(null==ja&&(ja=""+f(e["Shortcut_"+(l+1)])+q(e["Shortcut_"+(l+1)])+t(e["Shortcut_"+(l+1)])),kd[l]=new mxCell("",new mxGeometry(.6*r,l*p/e.Lines,.4*r,ia),"strokeColor=none;fillColor=none;spacingRight=3;align=right;html=1;"),kd[l].vertex=!0,v.insert(kd[l]),kd[l].style+=ja,kd[l].value=m(e["Shortcut_"+(l+1)])),null!=e.Dividers[l+1]&&(X[l]=new mxCell("",new mxGeometry(.05*r,l*p/e.Lines,.9*
+r,ia),"shape=line;strokeWidth=1;"),X[l].vertex=!0,v.insert(X[l]),X[l].style+=H(e,u));break;case "UI2ProgressBarBlock":v.style+="shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos="+100*e.ScrollVal+";";break;case "CalloutSquareBlock":case "UI2TooltipSquareBlock":v.value=m(e.Tip||e.Text);v.style+="html=1;shape=callout;flipV=1;base=13;size=7;position=0.5;position2=0.66;rounded=1;arcSize="+e.RoundCorners+";"+a(e.Tip||e.Text,G);v.style+=b(v.style,e,u,v,G);v.geometry.height+=10;break;case "UI2CalloutBlock":v.value=
m(e.Txt);v.style+="shape=ellipse;perimeter=ellipsePerimeter;"+a(e.Txt,G);v.style+=b(v.style,e,u,v,G);break;case "UI2AlertBlock":v.value=m(e.Txt);v.style+=a(e.Txt,G);v.style+=b(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,r,30),"part=1;resizeHeight=0;");x.vertex=!0;v.insert(x);x.value=m(e.Title);x.style+=a(e.Title,G);x.style+=b(x.style,e,u,x,G);E=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");E.geometry.relative=!0;E.geometry.offset=
-new mxPoint(-25,-10);E.vertex=!0;x.insert(E);var Uf=45*e.Buttons+(10*e.Buttons-1);T=[];for(l=0;l<e.Buttons;l++)T[l]=new mxCell("",new mxGeometry(.5,1,45,20),"part=1;html=1;"),T[l].geometry.relative=!0,T[l].geometry.offset=new mxPoint(.5*-Uf+55*l,-40),T[l].vertex=!0,v.insert(T[l]),T[l].value=m(e["Button_"+(l+1)]),T[l].style+=a(e["Button_"+(l+1)],G),T[l].style+=b(T[l].style,e,u,T[l],G);break;case "UMLClassBlock":if(0==e.Simple){ja=ba(e,u);db=Math.round(.75*e.TitleHeight)||25;ja=ja.replace("fillColor",
-"swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Title);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+ja+"startSize="+db+";"+a(e.Title,G);v.style+=b(v.style,e,u,v,G);X=[];var ue=[],wb=db/p;Wb=db;for(l=0;l<=e.Attributes;l++)0<l&&(ue[l]=new mxCell("",new mxGeometry(0,Wb,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),
-Wb+=8,ue[l].vertex=!0,v.insert(ue[l])),ha=0,0==e.Attributes?ha=l=1:l<e.Attributes?(ha=e["Text"+(l+1)+"Percent"],wb+=ha):ha=1-wb,pc=Math.round((p-db)*ha)+(e.ExtraHeightSet&&1==l?.75*e.ExtraHeight:0),X[l]=new mxCell("",new mxGeometry(0,Wb,r,pc),"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;"),Wb+=pc,X[l].vertex=!0,v.insert(X[l]),X[l].style+=
-ja+Q(e,u,X[l])+a(e["Text"+(l+1)],G),X[l].value=m(e["Text"+(l+1)])}else v.value=m(e.Title),v.style+="align=center;",v.style+=a(e.Title,G),v.style+=b(v.style,e,u,v,G);break;case "ERDEntityBlock":ja=ba(e,u);db=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+ja+"startSize="+
-db+";"+a(e.Name,G);v.style+=b(v.style,e,u,v,G);e.ShadedHeader?(ja=U(e.FillColor),je=Rd(ja,.85),v.style+="fillColor="+je+";"):v.style+=ba(e,u);X=[];wb=db/p;Wb=db;for(l=0;l<e.Fields;l++)ha=0,pc=.75*e["Field"+(l+1)+"_h"],X[l]=new mxCell("",new mxGeometry(0,Wb,r,pc),"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;"),Wb+=pc,X[l].vertex=!0,v.insert(X[l]),
-X[l].style+=ja+a(e["Field"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;opacity=5;":X[l].style+("fillColor=none;"+Q(e,u,X[l])),X[l].value=m(e["Field"+(l+1)]);break;case "ERDEntityBlock2":ja=ba(e,u);db=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Name);v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+ja+"startSize="+db+";"+a(e.Name,G);v.style=e.ShadedHeader?
-v.style+"fillColor=#e0e0e0;":v.style+ba(e,u);v.style+=b(v.style,e,u,v,G);X=[];var Ga=[];wb=db;var Ib=30;null!=e.Column1&&(Ib=.75*e.Column1);for(l=0;l<e.Fields;l++)ha=0,Ga[l]=new mxCell("",new mxGeometry(0,wb,Ib,.75*e["Key"+(l+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;"),Ga[l].vertex=!0,v.insert(Ga[l]),Ga[l].style+=ja+a(e["Key"+(l+1)],
-G),Ga[l].style=1==e.AltRows&&0!=l%2?Ga[l].style+"fillColor=#000000;fillOpacity=5;":Ga[l].style+("fillColor=none;"+Q(e,u,Ga[l])),Ga[l].value=m(e["Key"+(l+1)]),X[l]=new mxCell("",new mxGeometry(Ib,wb,r-Ib,.75*e["Field"+(l+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;"),X[l].vertex=!0,v.insert(X[l]),X[l].style+=
-ja+a(e["Field"+(l+1)],G),v.style+=b(v.style,e,u,v),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+Q(e,u,X[l])),X[l].value=m(e["Field"+(l+1)]),wb+=.75*e["Key"+(l+1)+"_h"];break;case "ERDEntityBlock3":ja=ba(e,u);db=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+ja+"startSize="+db+
-";"+a(e.Name);v.style=e.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+ba(e,u);v.value=m(e.Name);v.style+=b(v.style,e,u,v,G);X=[];Ga=[];wb=db;Ib=30;null!=e.Column1&&(Ib=.75*e.Column1);for(l=0;l<e.Fields;l++)ha=0,Ga[l]=new mxCell("",new mxGeometry(0,wb,Ib,.75*e["Field"+(l+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;"),Ga[l].vertex=!0,v.insert(Ga[l]),
-Ga[l].style+=ja+a(e["Field"+(l+1)],G),Ga[l].style=1==e.AltRows&&0!=l%2?Ga[l].style+"fillColor=#000000;fillOpacity=5;":Ga[l].style+("fillColor=none;"+Q(e,u,Ga[l])),Ga[l].value=m(e["Field"+(l+1)]),Ga[l].style+=b(Ga[l].style,e,u,Ga[l],G),X[l]=new mxCell("",new mxGeometry(Ib,wb,r-Ib,.75*e["Type"+(l+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;"),
-X[l].vertex=!0,v.insert(X[l]),X[l].style+=ja+a(e["Type"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+Q(e,u,X[l])),X[l].value=m(e["Type"+(l+1)]),X[l].style+=b(X[l].style,e,u,X[l],G),wb+=.75*e["Field"+(l+1)+"_h"];break;case "ERDEntityBlock4":ja=ba(e,u);db=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+
-ja+"startSize="+db+";"+a(e.Name);v.style=e.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+ba(e,u);v.value=m(e.Name);v.style+=b(v.style,e,u,v,G);X=[];Ga=[];var Jb=[];wb=db;Ib=30;var ce=40;null!=e.Column1&&(Ib=.75*e.Column1);null!=e.Column2&&(ce=.75*e.Column2);for(l=0;l<e.Fields;l++)ha=0,Ga[l]=new mxCell("",new mxGeometry(0,wb,Ib,.75*e["Key"+(l+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;"),
-Ga[l].vertex=!0,v.insert(Ga[l]),Ga[l].style+=ja+a(e["Key"+(l+1)],G),Ga[l].style=1==e.AltRows&&0!=l%2?Ga[l].style+"fillColor=#000000;fillOpacity=5;":Ga[l].style+("fillColor=none;"+Q(e,u,Ga[l])),Ga[l].value=m(e["Key"+(l+1)]),Ga[l].style+=b(Ga[l].style,e,u,Ga[l],G),X[l]=new mxCell("",new mxGeometry(Ib,wb,r-Ib-ce,.75*e["Field"+(l+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;"),
-X[l].vertex=!0,v.insert(X[l]),X[l].style+=ja+a(e["Field"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+Q(e,u,X[l])),X[l].value=m(e["Field"+(l+1)]),X[l].style+=b(X[l].style,e,u,X[l],G),Jb[l]=new mxCell("",new mxGeometry(r-ce,wb,ce,.75*e["Type"+(l+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;"),
-Jb[l].vertex=!0,v.insert(Jb[l]),Jb[l].style+=ja+a(e["Type"+(l+1)],G),Jb[l].style=1==e.AltRows&&0!=l%2?Jb[l].style+"fillColor=#000000;fillOpacity=5;":Jb[l].style+("fillColor=none;"+Q(e,u,Jb[l])),Jb[l].value=m(e["Type"+(l+1)]),Jb[l].style+=b(Jb[l].style,e,u,Jb[l],G),wb+=.75*e["Key"+(l+1)+"_h"];break;case "GCPServiceCardApplicationSystemBlock":Sa("application_system",r,p,v,e,u);break;case "GCPServiceCardAuthorizationBlock":Sa("internal_payment_authorization",r,p,v,e,u);break;case "GCPServiceCardBlankBlock":Sa("blank",
-r,p,v,e,u);break;case "GCPServiceCardReallyBlankBlock":Sa("blank",r,p,v,e,u);break;case "GCPServiceCardBucketBlock":Sa("bucket",r,p,v,e,u);break;case "GCPServiceCardCDNInterconnectBlock":Sa("google_network_edge_cache",r,p,v,e,u);break;case "GCPServiceCardCloudDNSBlock":Sa("blank",r,p,v,e,u);break;case "GCPServiceCardClusterBlock":Sa("cluster",r,p,v,e,u);break;case "GCPServiceCardDiskSnapshotBlock":Sa("persistent_disk_snapshot",r,p,v,e,u);break;case "GCPServiceCardEdgePopBlock":Sa("google_network_edge_cache",
-r,p,v,e,u);break;case "GCPServiceCardFrontEndPlatformServicesBlock":Sa("frontend_platform_services",r,p,v,e,u);break;case "GCPServiceCardGatewayBlock":Sa("gateway",r,p,v,e,u);break;case "GCPServiceCardGoogleNetworkBlock":Sa("google_network_edge_cache",r,p,v,e,u);break;case "GCPServiceCardImageServicesBlock":Sa("image_services",r,p,v,e,u);break;case "GCPServiceCardLoadBalancerBlock":Sa("network_load_balancer",r,p,v,e,u);break;case "GCPServiceCardLocalComputeBlock":Sa("dedicated_game_server",r,p,v,
-e,u);break;case "GCPServiceCardLocalStorageBlock":Sa("persistent_disk_snapshot",r,p,v,e,u);break;case "GCPServiceCardLogsAPIBlock":Sa("logs_api",r,p,v,e,u);break;case "GCPServiceCardMemcacheBlock":Sa("memcache",r,p,v,e,u);break;case "GCPServiceCardNATBlock":Sa("nat",r,p,v,e,u);break;case "GCPServiceCardPaymentFormBlock":Sa("external_payment_form",r,p,v,e,u);break;case "GCPServiceCardPushNotificationsBlock":Sa("push_notification_service",r,p,v,e,u);break;case "GCPServiceCardScheduledTasksBlock":Sa("scheduled_tasks",
-r,p,v,e,u);break;case "GCPServiceCardServiceDiscoveryBlock":Sa("service_discovery",r,p,v,e,u);break;case "GCPServiceCardSquidProxyBlock":Sa("squid_proxy",r,p,v,e,u);break;case "GCPServiceCardTaskQueuesBlock":Sa("task_queues",r,p,v,e,u);break;case "GCPServiceCardVirtualFileSystemBlock":Sa("virtual_file_system",r,p,v,e,u);break;case "GCPServiceCardVPNGatewayBlock":Sa("gateway",r,p,v,e,u);break;case "GCPInputDatabase":Wa("database",1,.9,r,p,v,e,u);break;case "GCPInputRecord":Wa("record",1,.66,r,p,v,
-e,u);break;case "GCPInputPayment":Wa("payment",1,.8,r,p,v,e,u);break;case "GCPInputGateway":Wa("gateway_icon",1,.44,r,p,v,e,u);break;case "GCPInputLocalCompute":Wa("compute_engine_icon",1,.89,r,p,v,e,u);break;case "GCPInputBeacon":Wa("beacon",.73,1,r,p,v,e,u);break;case "GCPInputStorage":Wa("storage",1,.8,r,p,v,e,u);break;case "GCPInputList":Wa("list",.89,1,r,p,v,e,u);break;case "GCPInputStream":Wa("stream",1,.82,r,p,v,e,u);break;case "GCPInputMobileDevices":Wa("mobile_devices",1,.73,r,p,v,e,u);break;
-case "GCPInputCircuitBoard":Wa("circuit_board",1,.9,r,p,v,e,u);break;case "GCPInputLive":Wa("live",.74,1,r,p,v,e,u);break;case "GCPInputUsers":Wa("users",1,.63,r,p,v,e,u);break;case "GCPInputLaptop":Wa("laptop",1,.66,r,p,v,e,u);break;case "GCPInputApplication":Wa("application",1,.8,r,p,v,e,u);break;case "GCPInputLightbulb":Wa("lightbulb",.7,1,r,p,v,e,u);break;case "GCPInputGame":Wa("game",1,.54,r,p,v,e,u);break;case "GCPInputDesktop":Wa("desktop",1,.9,r,p,v,e,u);break;case "GCPInputDesktopAndMobile":Wa("desktop_and_mobile",
-1,.66,r,p,v,e,u);break;case "GCPInputWebcam":Wa("webcam",.5,1,r,p,v,e,u);break;case "GCPInputSpeaker":Wa("speaker",.7,1,r,p,v,e,u);break;case "GCPInputRetail":Wa("retail",1,.89,r,p,v,e,u);break;case "GCPInputReport":Wa("report",1,1,r,p,v,e,u);break;case "GCPInputPhone":Wa("phone",.64,1,r,p,v,e,u);break;case "GCPInputBlank":Wa("transparent",1,1,r,p,v,e,u);break;case "PresentationFrameBlock":0==e.ZOrder?v.style+="strokeColor=none;fillColor=none;":(v.style+=a(e.Text),v.value=m(e.Text),v.style+=b(v.style,
-e,u,v,G));break;case "SVGPathBlock2":try{var Vf=e.LineWidth,Wf=e.LineColor,lf=e.FillColor,mf=e.DrawData.Data,de='<svg viewBox="0 0 1 1" xmlns="http://www.w3.org/2000/svg">',ve=null;for(l=0;l<mf.length;l++){var uc=mf[l],Xf=uc.a,Yf=("prop"==uc.w||null==uc.w?Vf:uc.w)/Math.min(r,p)*.75;Rc="prop"==uc.s||null==uc.s?Wf:uc.s;Y="prop"==uc.f||null==uc.f?lf:uc.f;"object"==typeof Y&&(null!=Y.url&&(ve="shape=image;image="+g(Y.url)+";"),Y=Array.isArray(Y.cs)?Y.cs[0].c:lf);de+='<path d="'+Xf+'" fill="'+Y+'" stroke="'+
-Rc+'" stroke-width="'+Yf+'"/>'}de+="</svg>";v.style=ve?ve:"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image=data:image/svg+xml,"+(window.btoa?btoa(de):Base64.encode(de,!0))+";"}catch(gb){}break;case "BraceBlock":case "BraceBlockRotated":case "BracketBlock":case "BracketBlockRotated":var nf=0==V.indexOf("Bracket")?"size=0;arcSize=50;":"",of=b(v.style,e,u,v,G);mb=ca(e,u,v);v.style="group;"+mb;var we=Math.min(.14*(mb?r:p),100),xe=
-new mxCell("",new mxGeometry(0,0,we,p),"shape=curlyBracket;rounded=1;"+nf+of);xe.vertex=!0;xe.geometry.relative=!0;var ye=new mxCell("",new mxGeometry(1-we/r,0,we,p),"shape=curlyBracket;rounded=1;flipH=1;"+nf+of);ye.vertex=!0;ye.geometry.relative=!0;v.insert(xe);v.insert(ye);break;case "BPMNTextAnnotation":case "NoteBlock":e.InsetMargin=null;v.value=m(e.Text);v.style="group;spacingLeft=8;align=left;spacing=0;strokeColor=none;";v.style+=b(v.style,e,u,v,G);0>v.style.indexOf("verticalAlign")&&(v.style+=
-"verticalAlign=middle;");var kd=new mxCell("",new mxGeometry(0,0,8,p),"shape=partialRectangle;right=0;fillColor=none;");kd.geometry.relative=!0;kd.vertex=!0;kd.style+=b(kd.style,e,u,v,G);v.insert(kd);break;case "VSMTimelineBlock":case "TimelineBlock":case "TimelineMilestoneBlock":case "TimelineIntervalBlock":LucidImporter.hasTimeLine=!0;LucidImporter.hasUnknownShapes=!0;break;case "FreehandBlock":try{mb=ca(e,u,v);v.style="group;"+mb;if(null!=e.Stencil){null==e.Stencil.id&&(e.Stencil.id="$$tmpId$$",
-Ke(e.Stencil.id,e.Stencil));var Ob=LucidImporter.stencilsMap[e.Stencil.id],Zf=-Ob.x/Ob.w,$f=-Ob.y/Ob.h;for(l=0;l<Ob.stencils.length;l++){var ob=Ob.stencils[l];oa=new mxCell("",new mxGeometry(Zf,$f,r,p),"shape="+ob.shapeStencil+";");var ag=ob.FillColor,bg=ob.LineColor,cg=ob.LineWidth;"prop"==ob.FillColor&&(ob.FillColor=e.FillColor);null==ob.FillColor&&(ob.FillColor="#ffffff00");"prop"==ob.LineColor&&(ob.LineColor=e.LineColor);null==ob.LineColor&&(ob.LineColor="#ffffff00");"prop"==ob.LineWidth&&(ob.LineWidth=
-e.LineWidth);oa.style+=b(oa.style,ob,u,oa,G);ob.FillColor=ag;ob.LineColor=bg;ob.LineWidth=cg;Y=e.FillColor;var dg=e.LineColor,eg=e.LineWidth;e.FillColor=null;e.LineColor=null;e.LineWidth=null;oa.style+=b(oa.style,e,u,oa,G);e.FillColor=Y;e.LineColor=dg;e.LineWidth=eg;oa.vertex=!0;oa.geometry.relative=!0;v.insert(oa)}var Xb=0;for(mb=e.Rotation;e["t"+Xb];){var pf=e["t"+Xb],qf=m(pf);if(qf){ra=new mxCell(qf,new mxGeometry(0,0,r,p),"strokeColor=none;fillColor=none;overflow=visible;");e.Rotation=0;ra.style+=
-b(ra.style,pf,u,ra,G);ra.style+=b(ra.style,e,u,ra,G);e.Rotation=mb;if(null!=Ob.text&&null!=Ob.text["t"+Xb]){var eb=Ob.text["t"+Xb];eb.Rotation=mb+(eb.rotation?eb.rotation:0)+(e["t"+Xb+"_TRotation"]?e["t"+Xb+"_TRotation"]:0)+(e["t"+Xb+"_TAngle"]?e["t"+Xb+"_TAngle"]:0);ra.style+=b(ra.style,eb,u,ra,G);var Yb=ra.geometry;eb.w&&(Yb.width*=eb.w/Ob.w);eb.h&&(Yb.height*=eb.h/Ob.h);eb.x&&(Yb.x=eb.x/Ob.w);eb.y&&(Yb.y=eb.y/Ob.h);eb.fw&&(Yb.width*=.75*eb.fw/r);eb.fh&&(Yb.height*=.75*eb.fh/p);eb.fx&&(Yb.x=(0<
-eb.fx?1:0)+.75*eb.fx/r);eb.fy&&(Yb.y=(0<eb.fy?1:0)+.75*eb.fy/p)}ra.vertex=!0;ra.geometry.relative=!0;v.insert(ra)}Xb++}}if(e.FillColor&&e.FillColor.url){var Nd=new mxCell("",new mxGeometry(0,0,r,p),"shape=image;html=1;");Nd.style+=Fa({},{},e.FillColor.url);Nd.vertex=!0;Nd.geometry.relative=!0;v.insert(Nd)}}catch(gb){console.log("Freehand error",gb)}break;case "RightArrowBlock":var ze=e.Head*p/r;v.style="shape=singleArrow;arrowWidth="+(1-2*e.Notch)+";arrowSize="+ze;v.value=m(e);v.style+=b(v.style,
-e,u,v,G);break;case "DoubleArrowBlock":ze=e.Head*p/r;v.style="shape=doubleArrow;arrowWidth="+(1-2*e.Notch)+";arrowSize="+ze;v.value=m(e);v.style+=b(v.style,e,u,v,G);break;case "VPCSubnet2017":case "VirtualPrivateCloudContainer2017":case "ElasticBeanStalkContainer2017":case "EC2InstanceContents2017":case "AWSCloudContainer2017":case "CorporateDataCenterContainer2017":switch(V){case "VPCSubnet2017":var ld="shape=mxgraph.aws3.permissions;fillColor=#D9A741;";var md=30;var nd=35;break;case "VirtualPrivateCloudContainer2017":ld=
-"shape=mxgraph.aws3.virtual_private_cloud;fillColor=#F58536;";md=52;nd=36;break;case "ElasticBeanStalkContainer2017":ld="shape=mxgraph.aws3.elastic_beanstalk;fillColor=#F58536;";md=30;nd=41;break;case "EC2InstanceContents2017":ld="shape=mxgraph.aws3.instance;fillColor=#F58536;";md=40;nd=41;break;case "AWSCloudContainer2017":ld="shape=mxgraph.aws3.cloud;fillColor=#F58536;";md=52;nd=36;break;case "CorporateDataCenterContainer2017":ld="shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;",md=
-30,nd=42}v.style="rounded=1;arcSize=10;dashed=0;verticalAlign=bottom;";v.value=m(e);v.style+=b(v.style,e,u,v,G);v.geometry.y+=20;v.geometry.height-=20;nb=new mxCell("",new mxGeometry(20,-20,md,nd),ld);nb.vertex=!0;v.insert(nb);break;case "FlexiblePolygonBlock":var Wc=['<shape strokewidth="inherit"><foreground>'];Wc.push("<path>");for(fa=0;fa<e.Vertices.length;fa++)Qa=e.Vertices[fa],0==fa?Wc.push('<move x="'+100*Qa.x+'" y="'+100*Qa.y+'"/>'):Wc.push('<line x="'+100*Qa.x+'" y="'+100*Qa.y+'"/>');Wc.push("</path>");
-Wc.push("<fillstroke/>");Wc.push("</foreground></shape>");v.style="shape=stencil("+Graph.compress(Wc.join(""))+");";v.value=m(e);v.style+=b(v.style,e,u,v,G);break;case "InfographicsBlock":var rf=e.ShapeData_1.Value,Ae=e.ShapeData_2.Value-rf,Be=e.ShapeData_3.Value-rf,ee=e.ShapeData_4.Value*r/200;Xb="ProgressBar"==e.InternalStencilId?4:5;kb=e["ShapeData_"+Xb].Value;kb="=fillColor()"==kb?e.FillColor:kb;var od=e["ShapeData_"+(Xb+1)].Value;switch(e.InternalStencilId){case "ProgressDonut":v.style="shape=mxgraph.basic.donut;dx="+
-ee+";strokeColor=none;fillColor="+U(od)+";"+ia(od,"fillOpacity");v.style+=b(v.style,e,u,v,G);var ab=new mxCell("",new mxGeometry(0,0,r,p),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+Be/Ae+";arcWidth="+ee/r*2+";strokeColor=none;fillColor="+U(kb)+";"+ia(kb,"fillOpacity"));ab.style+=b(ab.style,e,u,ab,G);ab.vertex=!0;ab.geometry.relative=1;v.insert(ab);break;case "ProgressHalfDonut":v.geometry.height*=2;v.geometry.rotate90();var sf=Be/Ae/2;v.style="shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+
-sf+";arcWidth="+2*ee/r+";strokeColor=none;fillColor="+U(kb)+";"+ia(kb,"fillOpacity");e.Rotation-=Math.PI/2;v.style+=b(v.style,e,u,v,G);ab=new mxCell("",new mxGeometry(0,0,v.geometry.width,v.geometry.height),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+(.5-sf)+";arcWidth="+2*ee/r+";strokeColor=none;flipH=1;fillColor="+U(od)+";"+ia(od,"fillOpacity"));e.Rotation+=Math.PI;ab.style+=b(ab.style,e,u,ab,G);ab.vertex=!0;ab.geometry.relative=1;v.insert(ab);break;case "ProgressBar":v.style="strokeColor=none;fillColor="+
-U(od)+";"+ia(od,"fillOpacity"),v.style+=b(v.style,e,u,v,G),ab=new mxCell("",new mxGeometry(0,0,r*Be/Ae,p),"strokeColor=none;fillColor="+U(kb)+";"+ia(kb,"fillOpacity")),ab.style+=b(ab.style,e,u,ab,G),ab.vertex=!0,ab.geometry.relative=1,v.insert(ab)}break;case "InternalStorageBlock":v.style+="shape=internalStorage;dx=10;dy=10";if(e.Text&&e.Text.m){var fe=e.Text.m,Ce=!1,De=!1;for(l=0;l<fe.length;l++){var pd=fe[l];Ce||"mt"!=pd.n?De||"il"!=pd.n||(pd.v=17+(pd.v||0),De=!0):(pd.v=17+(pd.v||0),Ce=!0)}Ce||
-fe.push({s:0,n:"mt",v:17});De||fe.push({s:0,n:"il",v:17})}v.value=m(e);v.style+=b(v.style,e,u,v,G);break;case "PersonRoleBlock":try{ja=ba(e,u);db=p/2;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Role);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+ja+"startSize="+db+";spacingLeft=3;spacingRight=3;fontStyle=0;"+a(e.Role,G);v.style+=b(v.style,
-e,u,v,G);var Ec=new mxCell("",new mxGeometry(0,p/2,r,p/2),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");Ec.value=m(e.Name);Ec.vertex=!0;v.insert(Ec);Ec.style+=a(e.Name,G);Ec.style+=b(Ec.style,e,u,Ec,G)}catch(gb){console.log(gb)}}v.style&&0>v.style.indexOf("html")&&(v.style+="html=1;");if(e.Title&&e.Title.t&&e.Text&&e.Text.t)try{var tf=v.geometry,uf=new mxCell(m(e.Title),new mxGeometry(0,tf.height+4,tf.width,10),"strokeColor=none;fillColor=none;whiteSpace=wrap;verticalAlign=top;labelPosition=center;verticalLabelPosition=top;align=center;");
-uf.vertex=!0;v.insert(uf);v.style+=a(e.Title,G)}catch(gb){console.log(gb)}Ge(v,e);pa(v,e,D);e.Hidden&&(v.visible=!1);return v}function Ge(w,F){if(F.Text_TRotation||F.TextRotation)try{var D=mxUtils.toDegree(F.Text_TRotation||0)+mxUtils.toDegree(F.TextRotation||0);if(!isNaN(D)&&0!=D&&w.value){var u=w.geometry.width,e=w.geometry.height,P=u,r=e,p=0,Z=0;if(-90==D||-270==D){P=e;r=u;var aa=(e-u)/2;p=-aa/u;Z=aa/e}D+=mxUtils.toDegree(F.Rotation);var V=w.style.split(";").filter(function(ka){return 0>ka.indexOf("fillColor=")&&
-0>ka.indexOf("strokeColor=")&&0>ka.indexOf("rotation=")}).join(";"),wa=new mxCell(w.value,new mxGeometry(p,Z,P,r),V+"fillColor=none;strokeColor=none;rotation="+D+";");w.value=null;wa.geometry.relative=!0;wa.vertex=!0;w.insert(wa)}}catch(ka){console.log(ka)}}function Je(w,F,D,u,e){function P(Kb,$b){var Xa="";try{for(var pb=0;pb<Kb.text.length;pb++){var Nc=Kb.text[pb];if(Nc[0]=="t_"+$b){for(var Fc in Nc[1]){var Gc=Nc[1][Fc];if(Gc)switch(Fc){case "font":Xa+=y(Gc);break;case "bold":Xa+="font-weight: bold;";
-break;case "italic":Xa+="font-style: italic;";break;case "underline":Xa+="text-decoration: underline;";break;case "size":Xa+="font-size:"+z(.75*Gc)+"px;";break;case "color":Xa+="color:"+R(Gc).substring(0,7)+";";break;case "fill":Xa+="background-color:"+R(Gc).substring(0,7)+";";break;case "align":Xa+="text-align:"+Gc+";"}}break}}}catch(Sd){}return Xa}try{var r=function(Kb,$b,Xa){Kb=Aa+Kb;ra[Kb]=$b;$b="";for(var pb=0;pb<V.length;pb++)$b+='<div style="'+ma[pb]+'">'+(Xa[V[pb]]||"&nbsp;")+"</div>";pb=
-mxUtils.getSizeForString($b);Xa=g(Xa.Image||Xa["018__ImageUrl__"])||"https://cdn4.iconfinder.com/data/icons/basic-user-interface-elements/700/user-account-profile-human-avatar-face-head--128.png";Xa=new mxCell($b,new mxGeometry(0,0,pb.width+Ba,pb.height+Pa),ua+(Ca?Xa:""));Xa.vertex=!0;e[Kb]=Xa;u.addCell(Xa,aa)},p=F.OrgChartBlockType,Z=F.Location,aa=new mxCell("",new mxGeometry(.75*Z.x,.75*Z.y,200,100),"group");aa.vertex=!0;u.addCell(aa);var V=F.FieldNames,wa=F.LayoutSettings,ka=F.BlockItemDefaultStyle||
-{props:{}},na=F.EdgeItemDefaultStyle,ra={},Aa=(w||Date.now())+"_";4==p&&(ka.props.LineWidth=0);var ma=[],Ba=25,Pa=40,Ca=!0,ua=b("",ka.props,{},aa,!0);0==p?(ua+="spacingTop=54;imageWidth=54;imageHeight=54;imageAlign=center;imageVerticalAlign=top;image=",Pa+=54):1==p||2==p?(ua+="spacingLeft=54;imageWidth=50;imageHeight=50;imageAlign=left;imageVerticalAlign=top;image=",Ba+=54):3<=p&&(Ca=!1);for(w=0;w<V.length;w++)ma.push(P(ka,V[w]));if(D.Items)for(var Na=D.Items.n,Ka=0;Ka<Na.length;Ka++){var La=Na[Ka];
-r(La.pk,La.ie[0]?La.ie[0].nf:null,La.f)}else{var l=F.ContractMap.derivative;if(null==l){var Ia=F.ContractMap.c.People;var bb=Ia.id;bb=bb.substr(0,bb.lastIndexOf("_"));for(w=0;w<V.length;w++)V[w]=Ia.f[V[w]]||V[w]}else for(Ka=0;Ka<l.length;Ka++)if("ForeignKeyGraph"==l[Ka].type)bb=l[Ka].c[0].id,bb=bb.substr(0,bb.lastIndexOf("_"));else if("MappedGraph"==l[Ka].type)for(w=0;w<V.length;w++)V[w]=l[Ka].nfs[V[w]]||V[w];var Ea;for(Ea in D){La=D[Ea].Collections;for(var Ra in La)if(Ra==bb)Na=La[Ra].Items;else if(La[Ra].Properties.ForeignKeys&&
-La[Ra].Properties.ForeignKeys[0]){var la=La[Ra].Properties.ForeignKeys[0].SourceFields[0];var Ma=La[Ra].Properties.Schema.PrimaryKey[0]}if(Na)break}F={};for(var ya in Na){La=Na[ya];var za=La[Ma],Pb=La[la];za==Pb?(F[za]=za+Date.now(),za=F[za],La[Ma]=za,r(za,Pb,La)):r(za,F[Pb]||Pb,La)}}for(Ea in ra){var fa=ra[Ea];if(null!=fa){var xb=e[Aa+fa],Va=e[Ea];if(null!=xb&&null!=Va){var rc=new mxCell("",new mxGeometry(0,0,100,100),"");rc.geometry.relative=!0;rc.edge=!0;null!=na&&null!=na.props&&Qb(rc,na.props,
-u,null,null,!0);u.addCell(rc,aa,null,xb,Va)}}}var vc=.75*wa.NodeSpacing.LevelSeparation;(new mxOrgChartLayout(u,0,vc,.75*wa.NodeSpacing.NeighborSeparation)).execute(aa);for(Ka=wa=r=0;aa.children&&Ka<aa.children.length;Ka++){var Fb=aa.children[Ka].geometry;r=Math.max(r,Fb.x+Fb.width);wa=Math.max(wa,Fb.y+Fb.height)}var Rb=aa.geometry;Rb.y-=vc;Rb.width=r;Rb.height=wa}catch(Kb){LucidImporter.hasUnknownShapes=!0,LucidImporter.hasOrgChart=!0,console.log(Kb)}}var wc=0,xc=0,ge="text;html=1;resizable=0;labelBackgroundColor=default;align=center;verticalAlign=middle;",
-G=!1,lb="",vf=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],wf=["fpDoor"],Ee={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 mxPoint(-25,-10);E.vertex=!0;x.insert(E);var Uf=45*e.Buttons+(10*e.Buttons-1);U=[];for(l=0;l<e.Buttons;l++)U[l]=new mxCell("",new mxGeometry(.5,1,45,20),"part=1;html=1;"),U[l].geometry.relative=!0,U[l].geometry.offset=new mxPoint(.5*-Uf+55*l,-40),U[l].vertex=!0,v.insert(U[l]),U[l].value=m(e["Button_"+(l+1)]),U[l].style+=a(e["Button_"+(l+1)],G),U[l].style+=b(U[l].style,e,u,U[l],G);break;case "UMLClassBlock":if(0==e.Simple){ja=Y(e,u);eb=Math.round(.75*e.TitleHeight)||25;ja=ja.replace("fillColor",
+"swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Title);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+ja+"startSize="+eb+";"+a(e.Title,G);v.style+=b(v.style,e,u,v,G);X=[];var ve=[],wb=eb/p;Wb=eb;for(l=0;l<=e.Attributes;l++)0<l&&(ve[l]=new mxCell("",new mxGeometry(0,Wb,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),
+Wb+=8,ve[l].vertex=!0,v.insert(ve[l])),ia=0,0==e.Attributes?ia=l=1:l<e.Attributes?(ia=e["Text"+(l+1)+"Percent"],wb+=ia):ia=1-wb,pc=Math.round((p-eb)*ia)+(e.ExtraHeightSet&&1==l?.75*e.ExtraHeight:0),X[l]=new mxCell("",new mxGeometry(0,Wb,r,pc),"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;"),Wb+=pc,X[l].vertex=!0,v.insert(X[l]),X[l].style+=
+ja+M(e,u,X[l])+a(e["Text"+(l+1)],G),X[l].value=m(e["Text"+(l+1)])}else v.value=m(e.Title),v.style+="align=center;",v.style+=a(e.Title,G),v.style+=b(v.style,e,u,v,G);break;case "ERDEntityBlock":ja=Y(e,u);eb=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+ja+"startSize="+
+eb+";"+a(e.Name,G);v.style+=b(v.style,e,u,v,G);e.ShadedHeader?(ja=P(e.FillColor),ke=Sd(ja,.85),v.style+="fillColor="+ke+";"):v.style+=Y(e,u);X=[];wb=eb/p;Wb=eb;for(l=0;l<e.Fields;l++)ia=0,pc=.75*e["Field"+(l+1)+"_h"],X[l]=new mxCell("",new mxGeometry(0,Wb,r,pc),"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;"),Wb+=pc,X[l].vertex=!0,v.insert(X[l]),X[l].style+=
+ja+a(e["Field"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;opacity=5;":X[l].style+("fillColor=none;"+M(e,u,X[l])),X[l].value=m(e["Field"+(l+1)]);break;case "ERDEntityBlock2":ja=Y(e,u);eb=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Name);v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+ja+"startSize="+eb+";"+a(e.Name,G);v.style=e.ShadedHeader?
+v.style+"fillColor=#e0e0e0;":v.style+Y(e,u);v.style+=b(v.style,e,u,v,G);X=[];var Fa=[];wb=eb;var Jb=30;null!=e.Column1&&(Jb=.75*e.Column1);for(l=0;l<e.Fields;l++)ia=0,Fa[l]=new mxCell("",new mxGeometry(0,wb,Jb,.75*e["Key"+(l+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;"),Fa[l].vertex=!0,v.insert(Fa[l]),Fa[l].style+=ja+a(e["Key"+(l+1)],
+G),Fa[l].style=1==e.AltRows&&0!=l%2?Fa[l].style+"fillColor=#000000;fillOpacity=5;":Fa[l].style+("fillColor=none;"+M(e,u,Fa[l])),Fa[l].value=m(e["Key"+(l+1)]),X[l]=new mxCell("",new mxGeometry(Jb,wb,r-Jb,.75*e["Field"+(l+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;"),X[l].vertex=!0,v.insert(X[l]),X[l].style+=
+ja+a(e["Field"+(l+1)],G),v.style+=b(v.style,e,u,v),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+M(e,u,X[l])),X[l].value=m(e["Field"+(l+1)]),wb+=.75*e["Key"+(l+1)+"_h"];break;case "ERDEntityBlock3":ja=Y(e,u);eb=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+ja+"startSize="+eb+
+";"+a(e.Name);v.style=e.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+Y(e,u);v.value=m(e.Name);v.style+=b(v.style,e,u,v,G);X=[];Fa=[];wb=eb;Jb=30;null!=e.Column1&&(Jb=.75*e.Column1);for(l=0;l<e.Fields;l++)ia=0,Fa[l]=new mxCell("",new mxGeometry(0,wb,Jb,.75*e["Field"+(l+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;"),Fa[l].vertex=!0,v.insert(Fa[l]),
+Fa[l].style+=ja+a(e["Field"+(l+1)],G),Fa[l].style=1==e.AltRows&&0!=l%2?Fa[l].style+"fillColor=#000000;fillOpacity=5;":Fa[l].style+("fillColor=none;"+M(e,u,Fa[l])),Fa[l].value=m(e["Field"+(l+1)]),Fa[l].style+=b(Fa[l].style,e,u,Fa[l],G),X[l]=new mxCell("",new mxGeometry(Jb,wb,r-Jb,.75*e["Type"+(l+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;"),
+X[l].vertex=!0,v.insert(X[l]),X[l].style+=ja+a(e["Type"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+M(e,u,X[l])),X[l].value=m(e["Type"+(l+1)]),X[l].style+=b(X[l].style,e,u,X[l],G),wb+=.75*e["Field"+(l+1)+"_h"];break;case "ERDEntityBlock4":ja=Y(e,u);eb=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+
+ja+"startSize="+eb+";"+a(e.Name);v.style=e.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+Y(e,u);v.value=m(e.Name);v.style+=b(v.style,e,u,v,G);X=[];Fa=[];var Kb=[];wb=eb;Jb=30;var de=40;null!=e.Column1&&(Jb=.75*e.Column1);null!=e.Column2&&(de=.75*e.Column2);for(l=0;l<e.Fields;l++)ia=0,Fa[l]=new mxCell("",new mxGeometry(0,wb,Jb,.75*e["Key"+(l+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;"),
+Fa[l].vertex=!0,v.insert(Fa[l]),Fa[l].style+=ja+a(e["Key"+(l+1)],G),Fa[l].style=1==e.AltRows&&0!=l%2?Fa[l].style+"fillColor=#000000;fillOpacity=5;":Fa[l].style+("fillColor=none;"+M(e,u,Fa[l])),Fa[l].value=m(e["Key"+(l+1)]),Fa[l].style+=b(Fa[l].style,e,u,Fa[l],G),X[l]=new mxCell("",new mxGeometry(Jb,wb,r-Jb-de,.75*e["Field"+(l+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;"),
+X[l].vertex=!0,v.insert(X[l]),X[l].style+=ja+a(e["Field"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+M(e,u,X[l])),X[l].value=m(e["Field"+(l+1)]),X[l].style+=b(X[l].style,e,u,X[l],G),Kb[l]=new mxCell("",new mxGeometry(r-de,wb,de,.75*e["Type"+(l+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;"),
+Kb[l].vertex=!0,v.insert(Kb[l]),Kb[l].style+=ja+a(e["Type"+(l+1)],G),Kb[l].style=1==e.AltRows&&0!=l%2?Kb[l].style+"fillColor=#000000;fillOpacity=5;":Kb[l].style+("fillColor=none;"+M(e,u,Kb[l])),Kb[l].value=m(e["Type"+(l+1)]),Kb[l].style+=b(Kb[l].style,e,u,Kb[l],G),wb+=.75*e["Key"+(l+1)+"_h"];break;case "GCPServiceCardApplicationSystemBlock":Ta("application_system",r,p,v,e,u);break;case "GCPServiceCardAuthorizationBlock":Ta("internal_payment_authorization",r,p,v,e,u);break;case "GCPServiceCardBlankBlock":Ta("blank",
+r,p,v,e,u);break;case "GCPServiceCardReallyBlankBlock":Ta("blank",r,p,v,e,u);break;case "GCPServiceCardBucketBlock":Ta("bucket",r,p,v,e,u);break;case "GCPServiceCardCDNInterconnectBlock":Ta("google_network_edge_cache",r,p,v,e,u);break;case "GCPServiceCardCloudDNSBlock":Ta("blank",r,p,v,e,u);break;case "GCPServiceCardClusterBlock":Ta("cluster",r,p,v,e,u);break;case "GCPServiceCardDiskSnapshotBlock":Ta("persistent_disk_snapshot",r,p,v,e,u);break;case "GCPServiceCardEdgePopBlock":Ta("google_network_edge_cache",
+r,p,v,e,u);break;case "GCPServiceCardFrontEndPlatformServicesBlock":Ta("frontend_platform_services",r,p,v,e,u);break;case "GCPServiceCardGatewayBlock":Ta("gateway",r,p,v,e,u);break;case "GCPServiceCardGoogleNetworkBlock":Ta("google_network_edge_cache",r,p,v,e,u);break;case "GCPServiceCardImageServicesBlock":Ta("image_services",r,p,v,e,u);break;case "GCPServiceCardLoadBalancerBlock":Ta("network_load_balancer",r,p,v,e,u);break;case "GCPServiceCardLocalComputeBlock":Ta("dedicated_game_server",r,p,v,
+e,u);break;case "GCPServiceCardLocalStorageBlock":Ta("persistent_disk_snapshot",r,p,v,e,u);break;case "GCPServiceCardLogsAPIBlock":Ta("logs_api",r,p,v,e,u);break;case "GCPServiceCardMemcacheBlock":Ta("memcache",r,p,v,e,u);break;case "GCPServiceCardNATBlock":Ta("nat",r,p,v,e,u);break;case "GCPServiceCardPaymentFormBlock":Ta("external_payment_form",r,p,v,e,u);break;case "GCPServiceCardPushNotificationsBlock":Ta("push_notification_service",r,p,v,e,u);break;case "GCPServiceCardScheduledTasksBlock":Ta("scheduled_tasks",
+r,p,v,e,u);break;case "GCPServiceCardServiceDiscoveryBlock":Ta("service_discovery",r,p,v,e,u);break;case "GCPServiceCardSquidProxyBlock":Ta("squid_proxy",r,p,v,e,u);break;case "GCPServiceCardTaskQueuesBlock":Ta("task_queues",r,p,v,e,u);break;case "GCPServiceCardVirtualFileSystemBlock":Ta("virtual_file_system",r,p,v,e,u);break;case "GCPServiceCardVPNGatewayBlock":Ta("gateway",r,p,v,e,u);break;case "GCPInputDatabase":Ya("database",1,.9,r,p,v,e,u);break;case "GCPInputRecord":Ya("record",1,.66,r,p,v,
+e,u);break;case "GCPInputPayment":Ya("payment",1,.8,r,p,v,e,u);break;case "GCPInputGateway":Ya("gateway_icon",1,.44,r,p,v,e,u);break;case "GCPInputLocalCompute":Ya("compute_engine_icon",1,.89,r,p,v,e,u);break;case "GCPInputBeacon":Ya("beacon",.73,1,r,p,v,e,u);break;case "GCPInputStorage":Ya("storage",1,.8,r,p,v,e,u);break;case "GCPInputList":Ya("list",.89,1,r,p,v,e,u);break;case "GCPInputStream":Ya("stream",1,.82,r,p,v,e,u);break;case "GCPInputMobileDevices":Ya("mobile_devices",1,.73,r,p,v,e,u);break;
+case "GCPInputCircuitBoard":Ya("circuit_board",1,.9,r,p,v,e,u);break;case "GCPInputLive":Ya("live",.74,1,r,p,v,e,u);break;case "GCPInputUsers":Ya("users",1,.63,r,p,v,e,u);break;case "GCPInputLaptop":Ya("laptop",1,.66,r,p,v,e,u);break;case "GCPInputApplication":Ya("application",1,.8,r,p,v,e,u);break;case "GCPInputLightbulb":Ya("lightbulb",.7,1,r,p,v,e,u);break;case "GCPInputGame":Ya("game",1,.54,r,p,v,e,u);break;case "GCPInputDesktop":Ya("desktop",1,.9,r,p,v,e,u);break;case "GCPInputDesktopAndMobile":Ya("desktop_and_mobile",
+1,.66,r,p,v,e,u);break;case "GCPInputWebcam":Ya("webcam",.5,1,r,p,v,e,u);break;case "GCPInputSpeaker":Ya("speaker",.7,1,r,p,v,e,u);break;case "GCPInputRetail":Ya("retail",1,.89,r,p,v,e,u);break;case "GCPInputReport":Ya("report",1,1,r,p,v,e,u);break;case "GCPInputPhone":Ya("phone",.64,1,r,p,v,e,u);break;case "GCPInputBlank":Ya("transparent",1,1,r,p,v,e,u);break;case "PresentationFrameBlock":0==e.ZOrder?v.style+="strokeColor=none;fillColor=none;":(v.style+=a(e.Text),v.value=m(e.Text),v.style+=b(v.style,
+e,u,v,G));break;case "SVGPathBlock2":try{var Vf=e.LineWidth,Wf=e.LineColor,mf=e.FillColor,nf=e.DrawData.Data,ee='<svg viewBox="0 0 1 1" xmlns="http://www.w3.org/2000/svg">',we=null;for(l=0;l<nf.length;l++){var vc=nf[l],Xf=vc.a,Yf=("prop"==vc.w||null==vc.w?Vf:vc.w)/Math.min(r,p)*.75;Sc="prop"==vc.s||null==vc.s?Wf:vc.s;Z="prop"==vc.f||null==vc.f?mf:vc.f;"object"==typeof Z&&(null!=Z.url&&(we="shape=image;image="+g(Z.url)+";"),Z=Array.isArray(Z.cs)?Z.cs[0].c:mf);ee+='<path d="'+Xf+'" fill="'+Z+'" stroke="'+
+Sc+'" stroke-width="'+Yf+'"/>'}ee+="</svg>";v.style=we?we:"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image=data:image/svg+xml,"+(window.btoa?btoa(ee):Base64.encode(ee,!0))+";"}catch(hb){}break;case "BraceBlock":case "BraceBlockRotated":case "BracketBlock":case "BracketBlockRotated":var of=0==W.indexOf("Bracket")?"size=0;arcSize=50;":"",pf=b(v.style,e,u,v,G);nb=T(e,u,v);v.style="group;"+nb;var xe=Math.min(.14*(nb?r:p),100),ye=
+new mxCell("",new mxGeometry(0,0,xe,p),"shape=curlyBracket;rounded=1;"+of+pf);ye.vertex=!0;ye.geometry.relative=!0;var ze=new mxCell("",new mxGeometry(1-xe/r,0,xe,p),"shape=curlyBracket;rounded=1;flipH=1;"+of+pf);ze.vertex=!0;ze.geometry.relative=!0;v.insert(ye);v.insert(ze);break;case "BPMNTextAnnotation":case "NoteBlock":e.InsetMargin=null;v.value=m(e.Text);v.style="group;spacingLeft=8;align=left;spacing=0;strokeColor=none;";v.style+=b(v.style,e,u,v,G);0>v.style.indexOf("verticalAlign")&&(v.style+=
+"verticalAlign=middle;");var ld=new mxCell("",new mxGeometry(0,0,8,p),"shape=partialRectangle;right=0;fillColor=none;");ld.geometry.relative=!0;ld.vertex=!0;ld.style+=b(ld.style,e,u,v,G);v.insert(ld);break;case "VSMTimelineBlock":case "TimelineBlock":case "TimelineMilestoneBlock":case "TimelineIntervalBlock":LucidImporter.hasTimeLine=!0;LucidImporter.hasUnknownShapes=!0;break;case "FreehandBlock":try{nb=T(e,u,v);v.style="group;"+nb;if(null!=e.Stencil){null==e.Stencil.id&&(e.Stencil.id="$$tmpId$$",
+Le(e.Stencil.id,e.Stencil));var Pb=LucidImporter.stencilsMap[e.Stencil.id],Zf=-Pb.x/Pb.w,$f=-Pb.y/Pb.h;for(l=0;l<Pb.stencils.length;l++){var pb=Pb.stencils[l];qa=new mxCell("",new mxGeometry(Zf,$f,r,p),"shape="+pb.shapeStencil+";");var ag=pb.FillColor,bg=pb.LineColor,cg=pb.LineWidth;"prop"==pb.FillColor&&(pb.FillColor=e.FillColor);null==pb.FillColor&&(pb.FillColor="#ffffff00");"prop"==pb.LineColor&&(pb.LineColor=e.LineColor);null==pb.LineColor&&(pb.LineColor="#ffffff00");"prop"==pb.LineWidth&&(pb.LineWidth=
+e.LineWidth);qa.style+=b(qa.style,pb,u,qa,G);pb.FillColor=ag;pb.LineColor=bg;pb.LineWidth=cg;Z=e.FillColor;var dg=e.LineColor,eg=e.LineWidth;e.FillColor=null;e.LineColor=null;e.LineWidth=null;qa.style+=b(qa.style,e,u,qa,G);e.FillColor=Z;e.LineColor=dg;e.LineWidth=eg;qa.vertex=!0;qa.geometry.relative=!0;v.insert(qa)}var Xb=0;for(nb=e.Rotation;e["t"+Xb];){var qf=e["t"+Xb],rf=m(qf);if(rf){ra=new mxCell(rf,new mxGeometry(0,0,r,p),"strokeColor=none;fillColor=none;overflow=visible;");e.Rotation=0;ra.style+=
+b(ra.style,qf,u,ra,G);ra.style+=b(ra.style,e,u,ra,G);e.Rotation=nb;if(null!=Pb.text&&null!=Pb.text["t"+Xb]){var fb=Pb.text["t"+Xb];fb.Rotation=nb+(fb.rotation?fb.rotation:0)+(e["t"+Xb+"_TRotation"]?e["t"+Xb+"_TRotation"]:0)+(e["t"+Xb+"_TAngle"]?e["t"+Xb+"_TAngle"]:0);ra.style+=b(ra.style,fb,u,ra,G);var Yb=ra.geometry;fb.w&&(Yb.width*=fb.w/Pb.w);fb.h&&(Yb.height*=fb.h/Pb.h);fb.x&&(Yb.x=fb.x/Pb.w);fb.y&&(Yb.y=fb.y/Pb.h);fb.fw&&(Yb.width*=.75*fb.fw/r);fb.fh&&(Yb.height*=.75*fb.fh/p);fb.fx&&(Yb.x=(0<
+fb.fx?1:0)+.75*fb.fx/r);fb.fy&&(Yb.y=(0<fb.fy?1:0)+.75*fb.fy/p)}ra.vertex=!0;ra.geometry.relative=!0;v.insert(ra)}Xb++}}if(e.FillColor&&e.FillColor.url){var Od=new mxCell("",new mxGeometry(0,0,r,p),"shape=image;html=1;");Od.style+=Ra({},{},e.FillColor.url);Od.vertex=!0;Od.geometry.relative=!0;v.insert(Od)}}catch(hb){console.log("Freehand error",hb)}break;case "RightArrowBlock":var Ae=e.Head*p/r;v.style="shape=singleArrow;arrowWidth="+(1-2*e.Notch)+";arrowSize="+Ae;v.value=m(e);v.style+=b(v.style,
+e,u,v,G);break;case "DoubleArrowBlock":Ae=e.Head*p/r;v.style="shape=doubleArrow;arrowWidth="+(1-2*e.Notch)+";arrowSize="+Ae;v.value=m(e);v.style+=b(v.style,e,u,v,G);break;case "VPCSubnet2017":case "VirtualPrivateCloudContainer2017":case "ElasticBeanStalkContainer2017":case "EC2InstanceContents2017":case "AWSCloudContainer2017":case "CorporateDataCenterContainer2017":switch(W){case "VPCSubnet2017":var md="shape=mxgraph.aws3.permissions;fillColor=#D9A741;";var nd=30;var od=35;break;case "VirtualPrivateCloudContainer2017":md=
+"shape=mxgraph.aws3.virtual_private_cloud;fillColor=#F58536;";nd=52;od=36;break;case "ElasticBeanStalkContainer2017":md="shape=mxgraph.aws3.elastic_beanstalk;fillColor=#F58536;";nd=30;od=41;break;case "EC2InstanceContents2017":md="shape=mxgraph.aws3.instance;fillColor=#F58536;";nd=40;od=41;break;case "AWSCloudContainer2017":md="shape=mxgraph.aws3.cloud;fillColor=#F58536;";nd=52;od=36;break;case "CorporateDataCenterContainer2017":md="shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;",nd=
+30,od=42}v.style="rounded=1;arcSize=10;dashed=0;verticalAlign=bottom;";v.value=m(e);v.style+=b(v.style,e,u,v,G);v.geometry.y+=20;v.geometry.height-=20;ob=new mxCell("",new mxGeometry(20,-20,nd,od),md);ob.vertex=!0;v.insert(ob);break;case "FlexiblePolygonBlock":var Xc=['<shape strokewidth="inherit"><foreground>'];Xc.push("<path>");for(ha=0;ha<e.Vertices.length;ha++)Pa=e.Vertices[ha],0==ha?Xc.push('<move x="'+100*Pa.x+'" y="'+100*Pa.y+'"/>'):Xc.push('<line x="'+100*Pa.x+'" y="'+100*Pa.y+'"/>');Xc.push("</path>");
+Xc.push("<fillstroke/>");Xc.push("</foreground></shape>");v.style="shape=stencil("+Graph.compress(Xc.join(""))+");";v.value=m(e);v.style+=b(v.style,e,u,v,G);break;case "InfographicsBlock":var sf=e.ShapeData_1.Value,Be=e.ShapeData_2.Value-sf,Ce=e.ShapeData_3.Value-sf,fe=e.ShapeData_4.Value*r/200;Xb="ProgressBar"==e.InternalStencilId?4:5;lb=e["ShapeData_"+Xb].Value;lb="=fillColor()"==lb?e.FillColor:lb;var pd=e["ShapeData_"+(Xb+1)].Value;switch(e.InternalStencilId){case "ProgressDonut":v.style="shape=mxgraph.basic.donut;dx="+
+fe+";strokeColor=none;fillColor="+P(pd)+";"+ea(pd,"fillOpacity");v.style+=b(v.style,e,u,v,G);var bb=new mxCell("",new mxGeometry(0,0,r,p),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+Ce/Be+";arcWidth="+fe/r*2+";strokeColor=none;fillColor="+P(lb)+";"+ea(lb,"fillOpacity"));bb.style+=b(bb.style,e,u,bb,G);bb.vertex=!0;bb.geometry.relative=1;v.insert(bb);break;case "ProgressHalfDonut":v.geometry.height*=2;v.geometry.rotate90();var tf=Ce/Be/2;v.style="shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+
+tf+";arcWidth="+2*fe/r+";strokeColor=none;fillColor="+P(lb)+";"+ea(lb,"fillOpacity");e.Rotation-=Math.PI/2;v.style+=b(v.style,e,u,v,G);bb=new mxCell("",new mxGeometry(0,0,v.geometry.width,v.geometry.height),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+(.5-tf)+";arcWidth="+2*fe/r+";strokeColor=none;flipH=1;fillColor="+P(pd)+";"+ea(pd,"fillOpacity"));e.Rotation+=Math.PI;bb.style+=b(bb.style,e,u,bb,G);bb.vertex=!0;bb.geometry.relative=1;v.insert(bb);break;case "ProgressBar":v.style="strokeColor=none;fillColor="+
+P(pd)+";"+ea(pd,"fillOpacity"),v.style+=b(v.style,e,u,v,G),bb=new mxCell("",new mxGeometry(0,0,r*Ce/Be,p),"strokeColor=none;fillColor="+P(lb)+";"+ea(lb,"fillOpacity")),bb.style+=b(bb.style,e,u,bb,G),bb.vertex=!0,bb.geometry.relative=1,v.insert(bb)}break;case "InternalStorageBlock":v.style+="shape=internalStorage;dx=10;dy=10";if(e.Text&&e.Text.m){var ge=e.Text.m,De=!1,Ee=!1;for(l=0;l<ge.length;l++){var qd=ge[l];De||"mt"!=qd.n?Ee||"il"!=qd.n||(qd.v=17+(qd.v||0),Ee=!0):(qd.v=17+(qd.v||0),De=!0)}De||
+ge.push({s:0,n:"mt",v:17});Ee||ge.push({s:0,n:"il",v:17})}v.value=m(e);v.style+=b(v.style,e,u,v,G);break;case "PersonRoleBlock":try{ja=Y(e,u);eb=p/2;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Role);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+ja+"startSize="+eb+";spacingLeft=3;spacingRight=3;fontStyle=0;"+a(e.Role,G);v.style+=b(v.style,
+e,u,v,G);var Fc=new mxCell("",new mxGeometry(0,p/2,r,p/2),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");Fc.value=m(e.Name);Fc.vertex=!0;v.insert(Fc);Fc.style+=a(e.Name,G);Fc.style+=b(Fc.style,e,u,Fc,G)}catch(hb){console.log(hb)}}v.style&&0>v.style.indexOf("html")&&(v.style+="html=1;");if(e.Title&&e.Title.t&&e.Text&&e.Text.t)try{var uf=v.geometry,vf=new mxCell(m(e.Title),new mxGeometry(0,uf.height+4,uf.width,10),"strokeColor=none;fillColor=none;whiteSpace=wrap;verticalAlign=top;labelPosition=center;verticalLabelPosition=top;align=center;");
+vf.vertex=!0;v.insert(vf);v.style+=a(e.Title,G)}catch(hb){console.log(hb)}He(v,e);la(v,e,D);e.Hidden&&(v.visible=!1);return v}function He(w,F){if(F.Text_TRotation||F.TextRotation)try{var D=mxUtils.toDegree(F.Text_TRotation||0)+mxUtils.toDegree(F.TextRotation||0);if(!isNaN(D)&&0!=D&&w.value){var u=w.geometry.width,e=w.geometry.height,O=u,r=e,p=0,aa=0;if(-90==D||-270==D){O=e;r=u;var ba=(e-u)/2;p=-ba/u;aa=ba/e}D+=mxUtils.toDegree(F.Rotation);var W=w.style.split(";").filter(function(ka){return 0>ka.indexOf("fillColor=")&&
+0>ka.indexOf("strokeColor=")&&0>ka.indexOf("rotation=")}).join(";"),wa=new mxCell(w.value,new mxGeometry(p,aa,O,r),W+"fillColor=none;strokeColor=none;rotation="+D+";");w.value=null;wa.geometry.relative=!0;wa.vertex=!0;w.insert(wa)}}catch(ka){console.log(ka)}}function Ke(w,F,D,u,e){function O(Lb,$b){var Za="";try{for(var qb=0;qb<Lb.text.length;qb++){var Oc=Lb.text[qb];if(Oc[0]=="t_"+$b){for(var Gc in Oc[1]){var Hc=Oc[1][Gc];if(Hc)switch(Gc){case "font":Za+=y(Hc);break;case "bold":Za+="font-weight: bold;";
+break;case "italic":Za+="font-style: italic;";break;case "underline":Za+="text-decoration: underline;";break;case "size":Za+="font-size:"+z(.75*Hc)+"px;";break;case "color":Za+="color:"+V(Hc).substring(0,7)+";";break;case "fill":Za+="background-color:"+V(Hc).substring(0,7)+";";break;case "align":Za+="text-align:"+Hc+";"}}break}}}catch(Td){}return Za}try{var r=function(Lb,$b,Za){Lb=Aa+Lb;ra[Lb]=$b;$b="";for(var qb=0;qb<W.length;qb++)$b+='<div style="'+na[qb]+'">'+(Za[W[qb]]||"&nbsp;")+"</div>";qb=
+mxUtils.getSizeForString($b);Za=g(Za.Image||Za["018__ImageUrl__"])||"https://cdn4.iconfinder.com/data/icons/basic-user-interface-elements/700/user-account-profile-human-avatar-face-head--128.png";Za=new mxCell($b,new mxGeometry(0,0,qb.width+Ba,qb.height+Oa),ua+(Ca?Za:""));Za.vertex=!0;e[Lb]=Za;u.addCell(Za,ba)},p=F.OrgChartBlockType,aa=F.Location,ba=new mxCell("",new mxGeometry(.75*aa.x,.75*aa.y,200,100),"group");ba.vertex=!0;u.addCell(ba);var W=F.FieldNames,wa=F.LayoutSettings,ka=F.BlockItemDefaultStyle||
+{props:{}},pa=F.EdgeItemDefaultStyle,ra={},Aa=(w||Date.now())+"_";4==p&&(ka.props.LineWidth=0);var na=[],Ba=25,Oa=40,Ca=!0,ua=b("",ka.props,{},ba,!0);0==p?(ua+="spacingTop=54;imageWidth=54;imageHeight=54;imageAlign=center;imageVerticalAlign=top;image=",Oa+=54):1==p||2==p?(ua+="spacingLeft=54;imageWidth=50;imageHeight=50;imageAlign=left;imageVerticalAlign=top;image=",Ba+=54):3<=p&&(Ca=!1);for(w=0;w<W.length;w++)na.push(O(ka,W[w]));if(D.Items)for(var Ma=D.Items.n,Ja=0;Ja<Ma.length;Ja++){var Ka=Ma[Ja];
+r(Ka.pk,Ka.ie[0]?Ka.ie[0].nf:null,Ka.f)}else{var l=F.ContractMap.derivative;if(null==l){var Ha=F.ContractMap.c.People;var cb=Ha.id;cb=cb.substr(0,cb.lastIndexOf("_"));for(w=0;w<W.length;w++)W[w]=Ha.f[W[w]]||W[w]}else for(Ja=0;Ja<l.length;Ja++)if("ForeignKeyGraph"==l[Ja].type)cb=l[Ja].c[0].id,cb=cb.substr(0,cb.lastIndexOf("_"));else if("MappedGraph"==l[Ja].type)for(w=0;w<W.length;w++)W[w]=l[Ja].nfs[W[w]]||W[w];var Ea;for(Ea in D){Ka=D[Ea].Collections;for(var Qa in Ka)if(Qa==cb)Ma=Ka[Qa].Items;else if(Ka[Qa].Properties.ForeignKeys&&
+Ka[Qa].Properties.ForeignKeys[0]){var ma=Ka[Qa].Properties.ForeignKeys[0].SourceFields[0];var La=Ka[Qa].Properties.Schema.PrimaryKey[0]}if(Ma)break}F={};for(var ya in Ma){Ka=Ma[ya];var za=Ka[La],Qb=Ka[ma];za==Qb?(F[za]=za+Date.now(),za=F[za],Ka[La]=za,r(za,Qb,Ka)):r(za,F[Qb]||Qb,Ka)}}for(Ea in ra){var ha=ra[Ea];if(null!=ha){var xb=e[Aa+ha],Wa=e[Ea];if(null!=xb&&null!=Wa){var rc=new mxCell("",new mxGeometry(0,0,100,100),"");rc.geometry.relative=!0;rc.edge=!0;null!=pa&&null!=pa.props&&Xa(rc,pa.props,
+u,null,null,!0);u.addCell(rc,ba,null,xb,Wa)}}}var wc=.75*wa.NodeSpacing.LevelSeparation;(new mxOrgChartLayout(u,0,wc,.75*wa.NodeSpacing.NeighborSeparation)).execute(ba);for(Ja=wa=r=0;ba.children&&Ja<ba.children.length;Ja++){var Gb=ba.children[Ja].geometry;r=Math.max(r,Gb.x+Gb.width);wa=Math.max(wa,Gb.y+Gb.height)}var Rb=ba.geometry;Rb.y-=wc;Rb.width=r;Rb.height=wa}catch(Lb){LucidImporter.hasUnknownShapes=!0,LucidImporter.hasOrgChart=!0,console.log(Lb)}}var xc=0,yc=0,he="text;html=1;resizable=0;labelBackgroundColor=default;align=center;verticalAlign=middle;",
+G=!1,mb="",wf=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],xf=["fpDoor"],Fe={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;"},Od={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;"},Pd={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;",
@@ -15386,43 +15386,43 @@ 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"},xf=RegExp("{{(date{.*}|[^%^{^}]+)}}","g");Qd.prototype.getSize=function(){return(this.nurbsValues.length/4|0)-1};Qd.prototype.getX=function(w){return Math.round(100*this.nurbsValues[4*(w+1)])/100};Qd.prototype.getY=function(w){return Math.round(100*this.nurbsValues[4*(w+1)+1])/100};LucidImporter.importState=function(w,F,D){function u(p){null!=p.state&&EditorUi.debug("convertLucidChart addPages",
-p);if(p.Properties){for(var Z in p.Properties)"Stencil-"==Z.substr(0,8)&&Ke(Z.substr(8),p.Properties[Z]);LucidImporter.globalProps=p.Properties}for(var aa in p.Pages)Z=p.Pages[aa],Z.id=aa,Z.Data=p.Data,e.push(Z);e.sort(function(V,wa){return V.Properties.Order<wa.Properties.Order?-1:V.Properties.Order>wa.Properties.Order?1:0});for(p=0;p<e.length;p++)LucidImporter.pageIdsMap[e[p].id]=p}xc=wc=0;LucidImporter.stencilsMap={};LucidImporter.imgSrcRepl=F;LucidImporter.advImpConfig=D;LucidImporter.globalProps=
-{};LucidImporter.pageIdsMap={};LucidImporter.hasUnknownShapes=!1;LucidImporter.hasOrgChart=!1;LucidImporter.hasTimeLine=!1;LucidImporter.hasExtImgs=!1;F=['<?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())+'">'];D&&D.transparentEdgeLabels&&(ge=ge.replace("labelBackgroundColor=default;",
-"labelBackgroundColor=none;"));var e=[];null!=w.state?u(JSON.parse(w.state)):null==w.Page&&null!=w.Pages?u(w):e.push(w);w=Df();D=new mxCodec;for(var P=0;P<e.length;P++){F.push("<diagram");null!=e[P].Properties&&null!=e[P].Properties.Title&&F.push(' name="'+mxUtils.htmlEntities(e[P].Properties.Title)+'"');F.push(' id="'+P+'"');zf(w,e[P],!0);var r=D.encode(w.getModel());null!=e[P].Properties&&(e[P].Properties.FillColor&&"#ffffff"!=e[P].Properties.FillColor&&r.setAttribute("background",U(e[P].Properties.FillColor)),
-e[P].Properties.InfiniteCanvas?r.setAttribute("page",0):null!=e[P].Properties.Size&&(r.setAttribute("page",1),r.setAttribute("pageWidth",.75*e[P].Properties.Size.w),r.setAttribute("pageHeight",.75*e[P].Properties.Size.h)),null!=e[P].Properties.GridSpacing&&(r.setAttribute("grid",1),r.setAttribute("gridSize",.75*e[P].Properties.GridSpacing)));LucidImporter.hasMath&&r.setAttribute("math",1);w.getModel().clear();F.push(">"+Graph.compress(mxUtils.getXml(r))+"</diagram>")}F.push("</mxfile>");LucidImporter.imgSrcRepl=
-null;return F.join("")}})();function VsdxExport(g){function y(H,J){var M={"[Content_Types].xml":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Types xmlns='http://schemas.openxmlformats.org/package/2006/content-types'><Default Extension='png' ContentType='image/png'/><Default Extension='jpg' ContentType='image/jpeg'/><Default Extension='jpeg' ContentType='image/jpeg'/><Default Extension='svg' ContentType='image/svg+xml'/><Default Extension='bmp' ContentType='image/bmp'/><Default Extension='gif' ContentType='image/gif'/><Default Extension='emf' ContentType='image/x-emf' /><Default Extension='rels' ContentType='application/vnd.openxmlformats-package.relationships+xml' /><Default Extension='xml' ContentType='application/xml' /><Override PartName='/docProps/app.xml' ContentType='application/vnd.openxmlformats-officedocument.extended-properties+xml' /><Override PartName='/docProps/core.xml' ContentType='application/vnd.openxmlformats-package.core-properties+xml' /><Override PartName='/docProps/custom.xml' ContentType='application/vnd.openxmlformats-officedocument.custom-properties+xml' /><Override PartName='/visio/document.xml' ContentType='application/vnd.ms-visio.drawing.main+xml' /><Override PartName='/visio/masters/masters.xml' ContentType='application/vnd.ms-visio.masters+xml' /><Override PartName='/visio/masters/master1.xml' ContentType='application/vnd.ms-visio.master+xml'/><Override PartName='/visio/pages/page1.xml' ContentType='application/vnd.ms-visio.page+xml' /><Override PartName='/visio/pages/pages.xml' ContentType='application/vnd.ms-visio.pages+xml' /><Override PartName='/visio/windows.xml' ContentType='application/vnd.ms-visio.windows+xml' /></Types>",
+InfographicsBlock:"mxCompositeShape",FlexiblePolygonBlock:"mxCompositeShape",PersonRoleBlock:"mxCompositeShape"},yf=RegExp("{{(date{.*}|[^%^{^}]+)}}","g");Rd.prototype.getSize=function(){return(this.nurbsValues.length/4|0)-1};Rd.prototype.getX=function(w){return Math.round(100*this.nurbsValues[4*(w+1)])/100};Rd.prototype.getY=function(w){return Math.round(100*this.nurbsValues[4*(w+1)+1])/100};LucidImporter.importState=function(w,F,D){function u(p){null!=p.state&&EditorUi.debug("convertLucidChart addPages",
+p);if(p.Properties){for(var aa in p.Properties)"Stencil-"==aa.substr(0,8)&&Le(aa.substr(8),p.Properties[aa]);LucidImporter.globalProps=p.Properties}for(var ba in p.Pages)aa=p.Pages[ba],aa.id=ba,aa.Data=p.Data,e.push(aa);e.sort(function(W,wa){return W.Properties.Order<wa.Properties.Order?-1:W.Properties.Order>wa.Properties.Order?1:0});for(p=0;p<e.length;p++)LucidImporter.pageIdsMap[e[p].id]=p}yc=xc=0;LucidImporter.stencilsMap={};LucidImporter.imgSrcRepl=F;LucidImporter.advImpConfig=D;LucidImporter.globalProps=
+{};LucidImporter.pageIdsMap={};LucidImporter.hasUnknownShapes=!1;LucidImporter.hasOrgChart=!1;LucidImporter.hasTimeLine=!1;LucidImporter.hasExtImgs=!1;F=['<?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())+'">'];D&&D.transparentEdgeLabels&&(he=he.replace("labelBackgroundColor=default;",
+"labelBackgroundColor=none;"));var e=[];null!=w.state?u(JSON.parse(w.state)):null==w.Page&&null!=w.Pages?u(w):e.push(w);w=Df();D=new mxCodec;for(var O=0;O<e.length;O++){F.push("<diagram");null!=e[O].Properties&&null!=e[O].Properties.Title&&F.push(' name="'+mxUtils.htmlEntities(e[O].Properties.Title)+'"');F.push(' id="'+O+'"');zf(w,e[O],!0);var r=D.encode(w.getModel());null!=e[O].Properties&&(e[O].Properties.FillColor&&"#ffffff"!=e[O].Properties.FillColor&&r.setAttribute("background",P(e[O].Properties.FillColor)),
+e[O].Properties.InfiniteCanvas?r.setAttribute("page",0):null!=e[O].Properties.Size&&(r.setAttribute("page",1),r.setAttribute("pageWidth",.75*e[O].Properties.Size.w),r.setAttribute("pageHeight",.75*e[O].Properties.Size.h)),null!=e[O].Properties.GridSpacing&&(r.setAttribute("grid",1),r.setAttribute("gridSize",.75*e[O].Properties.GridSpacing)));LucidImporter.hasMath&&r.setAttribute("math",1);w.getModel().clear();F.push(">"+Graph.compress(mxUtils.getXml(r))+"</diagram>")}F.push("</mxfile>");LucidImporter.imgSrcRepl=
+null;return F.join("")}})();function VsdxExport(g){function y(H,N){var J={"[Content_Types].xml":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Types xmlns='http://schemas.openxmlformats.org/package/2006/content-types'><Default Extension='png' ContentType='image/png'/><Default Extension='jpg' ContentType='image/jpeg'/><Default Extension='jpeg' ContentType='image/jpeg'/><Default Extension='svg' ContentType='image/svg+xml'/><Default Extension='bmp' ContentType='image/bmp'/><Default Extension='gif' ContentType='image/gif'/><Default Extension='emf' ContentType='image/x-emf' /><Default Extension='rels' ContentType='application/vnd.openxmlformats-package.relationships+xml' /><Default Extension='xml' ContentType='application/xml' /><Override PartName='/docProps/app.xml' ContentType='application/vnd.openxmlformats-officedocument.extended-properties+xml' /><Override PartName='/docProps/core.xml' ContentType='application/vnd.openxmlformats-package.core-properties+xml' /><Override PartName='/docProps/custom.xml' ContentType='application/vnd.openxmlformats-officedocument.custom-properties+xml' /><Override PartName='/visio/document.xml' ContentType='application/vnd.ms-visio.drawing.main+xml' /><Override PartName='/visio/masters/masters.xml' ContentType='application/vnd.ms-visio.masters+xml' /><Override PartName='/visio/masters/master1.xml' ContentType='application/vnd.ms-visio.master+xml'/><Override PartName='/visio/pages/page1.xml' ContentType='application/vnd.ms-visio.page+xml' /><Override PartName='/visio/pages/pages.xml' ContentType='application/vnd.ms-visio.pages+xml' /><Override PartName='/visio/windows.xml' ContentType='application/vnd.ms-visio.windows+xml' /></Types>",
"_rels/.rels":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Relationships xmlns='http://schemas.openxmlformats.org/package/2006/relationships'><Relationship Id='rId1' Type='http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties' Target='docProps/core.xml' /><Relationship Id='rId2' Type='http://schemas.microsoft.com/visio/2010/relationships/document' Target='visio/document.xml' /><Relationship Id='rId3' Type='http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties' Target='docProps/custom.xml' /><Relationship Id='rId4' Type='http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties' Target='docProps/app.xml' /></Relationships>",
"docProps/app.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Properties xmlns=\'http://schemas.openxmlformats.org/officeDocument/2006/extended-properties\' xmlns:vt=\'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes\'><Application>Microsoft Visio</Application><AppVersion>15.0000</AppVersion><Template /><Manager /><Company /><HyperlinkBase /></Properties>',"docProps/core.xml":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><cp:coreProperties xmlns:cp='http://schemas.openxmlformats.org/package/2006/metadata/core-properties' xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:dcterms='http://purl.org/dc/terms/' xmlns:dcmitype='http://purl.org/dc/dcmitype/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><dc:title /><dc:subject /><dc:creator /><cp:keywords /><dc:description /><cp:category /><dc:language>en-US</dc:language></cp:coreProperties>",
"docProps/custom.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Properties xmlns=\'http://schemas.openxmlformats.org/officeDocument/2006/custom-properties\' xmlns:vt=\'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes\' />',"visio/document.xml":"<?xml version='1.0' encoding='utf-8' ?><VisioDocument xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><DocumentSettings TopPage='0' DefaultTextStyle='3' DefaultLineStyle='3' DefaultFillStyle='3' DefaultGuideStyle='4'><GlueSettings>9</GlueSettings><SnapSettings>65847</SnapSettings><SnapExtensions>34</SnapExtensions><SnapAngles/><DynamicGridEnabled>1</DynamicGridEnabled><ProtectStyles>0</ProtectStyles><ProtectShapes>0</ProtectShapes><ProtectMasters>0</ProtectMasters><ProtectBkgnds>0</ProtectBkgnds></DocumentSettings><Colors><ColorEntry IX='24' RGB='#000000'/><ColorEntry IX='25' RGB='#FFFFFF'/><ColorEntry IX='26' RGB='#FF0000'/><ColorEntry IX='27' RGB='#00FF00'/><ColorEntry IX='28' RGB='#0000FF'/><ColorEntry IX='29' RGB='#FFFF00'/><ColorEntry IX='30' RGB='#FF00FF'/><ColorEntry IX='31' RGB='#00FFFF'/><ColorEntry IX='32' RGB='#800000'/><ColorEntry IX='33' RGB='#008000'/><ColorEntry IX='34' RGB='#000080'/><ColorEntry IX='35' RGB='#808000'/><ColorEntry IX='36' RGB='#800080'/><ColorEntry IX='37' RGB='#008080'/><ColorEntry IX='38' RGB='#C0C0C0'/><ColorEntry IX='39' RGB='#E6E6E6'/><ColorEntry IX='40' RGB='#CDCDCD'/><ColorEntry IX='41' RGB='#B3B3B3'/><ColorEntry IX='42' RGB='#9A9A9A'/><ColorEntry IX='43' RGB='#808080'/><ColorEntry IX='44' RGB='#666666'/><ColorEntry IX='45' RGB='#4D4D4D'/><ColorEntry IX='46' RGB='#333333'/><ColorEntry IX='47' RGB='#1A1A1A'/><ColorEntry IX='48' RGB='#7F7F7F'/><ColorEntry IX='49' RGB='#99004D'/><ColorEntry IX='50' RGB='#FF0080'/><ColorEntry IX='51' RGB='#CC0066'/></Colors><FaceNames><FaceName NameU='Calibri' UnicodeRanges='-536859905 -1073732485 9 0' CharSets='536871423 0' Panose='2 15 5 2 2 2 4 3 2 4' Flags='325'/></FaceNames><StyleSheets><StyleSheet ID='0' NameU='No Style' IsCustomNameU='1' Name='No Style' IsCustomName='1'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='0.01041666666666667'/><Cell N='LineColor' V='0'/><Cell N='LinePattern' V='1'/><Cell N='Rounding' V='0'/><Cell N='EndArrowSize' V='2'/><Cell N='BeginArrow' V='0'/><Cell N='EndArrow' V='0'/><Cell N='LineCap' V='0'/><Cell N='BeginArrowSize' V='2'/><Cell N='LineColorTrans' V='0'/><Cell N='CompoundType' V='0'/><Cell N='FillForegnd' V='1'/><Cell N='FillBkgnd' V='0'/><Cell N='FillPattern' V='1'/><Cell N='ShdwForegnd' V='0'/><Cell N='ShdwPattern' V='0'/><Cell N='FillForegndTrans' V='0'/><Cell N='FillBkgndTrans' V='0'/><Cell N='ShdwForegndTrans' V='0'/><Cell N='ShapeShdwType' V='0'/><Cell N='ShapeShdwOffsetX' V='0'/><Cell N='ShapeShdwOffsetY' V='0'/><Cell N='ShapeShdwObliqueAngle' V='0'/><Cell N='ShapeShdwScaleFactor' V='1'/><Cell N='ShapeShdwBlur' V='0'/><Cell N='ShapeShdwShow' V='0'/><Cell N='LeftMargin' V='0'/><Cell N='RightMargin' V='0'/><Cell N='TopMargin' V='0'/><Cell N='BottomMargin' V='0'/><Cell N='VerticalAlign' V='1'/><Cell N='TextBkgnd' V='0'/><Cell N='DefaultTabStop' V='0.5'/><Cell N='TextDirection' V='0'/><Cell N='TextBkgndTrans' V='0'/><Cell N='LockWidth' V='0'/><Cell N='LockHeight' V='0'/><Cell N='LockMoveX' V='0'/><Cell N='LockMoveY' V='0'/><Cell N='LockAspect' V='0'/><Cell N='LockDelete' V='0'/><Cell N='LockBegin' V='0'/><Cell N='LockEnd' V='0'/><Cell N='LockRotate' V='0'/><Cell N='LockCrop' V='0'/><Cell N='LockVtxEdit' V='0'/><Cell N='LockTextEdit' V='0'/><Cell N='LockFormat' V='0'/><Cell N='LockGroup' V='0'/><Cell N='LockCalcWH' V='0'/><Cell N='LockSelect' V='0'/><Cell N='LockCustProp' V='0'/><Cell N='LockFromGroupFormat' V='0'/><Cell N='LockThemeColors' V='0'/><Cell N='LockThemeEffects' V='0'/><Cell N='LockThemeConnectors' V='0'/><Cell N='LockThemeFonts' V='0'/><Cell N='LockThemeIndex' V='0'/><Cell N='LockReplace' V='0'/><Cell N='LockVariation' V='0'/><Cell N='NoObjHandles' V='0'/><Cell N='NonPrinting' V='0'/><Cell N='NoCtlHandles' V='0'/><Cell N='NoAlignBox' V='0'/><Cell N='UpdateAlignBox' V='0'/><Cell N='HideText' V='0'/><Cell N='DynFeedback' V='0'/><Cell N='GlueType' V='0'/><Cell N='WalkPreference' V='0'/><Cell N='BegTrigger' V='0' F='No Formula'/><Cell N='EndTrigger' V='0' F='No Formula'/><Cell N='ObjType' V='0'/><Cell N='Comment' V=''/><Cell N='IsDropSource' V='0'/><Cell N='NoLiveDynamics' V='0'/><Cell N='LocalizeMerge' V='0'/><Cell N='NoProofing' V='0'/><Cell N='Calendar' V='0'/><Cell N='LangID' V='en-US'/><Cell N='ShapeKeywords' V=''/><Cell N='DropOnPageScale' V='1'/><Cell N='TheData' V='0' F='No Formula'/><Cell N='TheText' V='0' F='No Formula'/><Cell N='EventDblClick' V='0' F='No Formula'/><Cell N='EventXFMod' V='0' F='No Formula'/><Cell N='EventDrop' V='0' F='No Formula'/><Cell N='EventMultiDrop' V='0' F='No Formula'/><Cell N='HelpTopic' V=''/><Cell N='Copyright' V=''/><Cell N='LayerMember' V=''/><Cell N='XRulerDensity' V='32'/><Cell N='YRulerDensity' V='32'/><Cell N='XRulerOrigin' V='0'/><Cell N='YRulerOrigin' V='0'/><Cell N='XGridDensity' V='8'/><Cell N='YGridDensity' V='8'/><Cell N='XGridSpacing' V='0'/><Cell N='YGridSpacing' V='0'/><Cell N='XGridOrigin' V='0'/><Cell N='YGridOrigin' V='0'/><Cell N='Gamma' V='1'/><Cell N='Contrast' V='0.5'/><Cell N='Brightness' V='0.5'/><Cell N='Sharpen' V='0'/><Cell N='Blur' V='0'/><Cell N='Denoise' V='0'/><Cell N='Transparency' V='0'/><Cell N='SelectMode' V='1'/><Cell N='DisplayMode' V='2'/><Cell N='IsDropTarget' V='0'/><Cell N='IsSnapTarget' V='1'/><Cell N='IsTextEditTarget' V='1'/><Cell N='DontMoveChildren' V='0'/><Cell N='ShapePermeableX' V='0'/><Cell N='ShapePermeableY' V='0'/><Cell N='ShapePermeablePlace' V='0'/><Cell N='Relationships' V='0'/><Cell N='ShapeFixedCode' V='0'/><Cell N='ShapePlowCode' V='0'/><Cell N='ShapeRouteStyle' V='0'/><Cell N='ShapePlaceStyle' V='0'/><Cell N='ConFixedCode' V='0'/><Cell N='ConLineJumpCode' V='0'/><Cell N='ConLineJumpStyle' V='0'/><Cell N='ConLineJumpDirX' V='0'/><Cell N='ConLineJumpDirY' V='0'/><Cell N='ShapePlaceFlip' V='0'/><Cell N='ConLineRouteExt' V='0'/><Cell N='ShapeSplit' V='0'/><Cell N='ShapeSplittable' V='0'/><Cell N='DisplayLevel' V='0'/><Cell N='ResizePage' V='0'/><Cell N='EnableGrid' V='0'/><Cell N='DynamicsOff' V='0'/><Cell N='CtrlAsInput' V='0'/><Cell N='AvoidPageBreaks' V='0'/><Cell N='PlaceStyle' V='0'/><Cell N='RouteStyle' V='0'/><Cell N='PlaceDepth' V='0'/><Cell N='PlowCode' V='0'/><Cell N='LineJumpCode' V='1'/><Cell N='LineJumpStyle' V='0'/><Cell N='PageLineJumpDirX' V='0'/><Cell N='PageLineJumpDirY' V='0'/><Cell N='LineToNodeX' V='0.125'/><Cell N='LineToNodeY' V='0.125'/><Cell N='BlockSizeX' V='0.25'/><Cell N='BlockSizeY' V='0.25'/><Cell N='AvenueSizeX' V='0.375'/><Cell N='AvenueSizeY' V='0.375'/><Cell N='LineToLineX' V='0.125'/><Cell N='LineToLineY' V='0.125'/><Cell N='LineJumpFactorX' V='0.66666666666667'/><Cell N='LineJumpFactorY' V='0.66666666666667'/><Cell N='LineAdjustFrom' V='0'/><Cell N='LineAdjustTo' V='0'/><Cell N='PlaceFlip' V='0'/><Cell N='LineRouteExt' V='0'/><Cell N='PageShapeSplit' V='0'/><Cell N='PageLeftMargin' V='0.25'/><Cell N='PageRightMargin' V='0.25'/><Cell N='PageTopMargin' V='0.25'/><Cell N='PageBottomMargin' V='0.25'/><Cell N='ScaleX' V='1'/><Cell N='ScaleY' V='1'/><Cell N='PagesX' V='1'/><Cell N='PagesY' V='1'/><Cell N='CenterX' V='0'/><Cell N='CenterY' V='0'/><Cell N='OnPage' V='0'/><Cell N='PrintGrid' V='0'/><Cell N='PrintPageOrientation' V='1'/><Cell N='PaperKind' V='1'/><Cell N='PaperSource' V='7'/><Cell N='QuickStyleLineColor' V='100'/><Cell N='QuickStyleFillColor' V='100'/><Cell N='QuickStyleShadowColor' V='100'/><Cell N='QuickStyleFontColor' V='100'/><Cell N='QuickStyleLineMatrix' V='100'/><Cell N='QuickStyleFillMatrix' V='100'/><Cell N='QuickStyleEffectsMatrix' V='100'/><Cell N='QuickStyleFontMatrix' V='100'/><Cell N='QuickStyleType' V='0'/><Cell N='QuickStyleVariation' V='0'/><Cell N='LineGradientDir' V='0'/><Cell N='LineGradientAngle' V='1.5707963267949'/><Cell N='FillGradientDir' V='0'/><Cell N='FillGradientAngle' V='1.5707963267949'/><Cell N='LineGradientEnabled' V='0'/><Cell N='FillGradientEnabled' V='0'/><Cell N='RotateGradientWithShape' V='1'/><Cell N='UseGroupGradient' V='0'/><Cell N='BevelTopType' V='0'/><Cell N='BevelTopWidth' V='0'/><Cell N='BevelTopHeight' V='0'/><Cell N='BevelBottomType' V='0'/><Cell N='BevelBottomWidth' V='0'/><Cell N='BevelBottomHeight' V='0'/><Cell N='BevelDepthColor' V='1'/><Cell N='BevelDepthSize' V='0'/><Cell N='BevelContourColor' V='0'/><Cell N='BevelContourSize' V='0'/><Cell N='BevelMaterialType' V='0'/><Cell N='BevelLightingType' V='0'/><Cell N='BevelLightingAngle' V='0'/><Cell N='RotationXAngle' V='0'/><Cell N='RotationYAngle' V='0'/><Cell N='RotationZAngle' V='0'/><Cell N='RotationType' V='0'/><Cell N='Perspective' V='0'/><Cell N='DistanceFromGround' V='0'/><Cell N='KeepTextFlat' V='0'/><Cell N='ReflectionTrans' V='0'/><Cell N='ReflectionSize' V='0'/><Cell N='ReflectionDist' V='0'/><Cell N='ReflectionBlur' V='0'/><Cell N='GlowColor' V='1'/><Cell N='GlowColorTrans' V='0'/><Cell N='GlowSize' V='0'/><Cell N='SoftEdgesSize' V='0'/><Cell N='SketchSeed' V='0'/><Cell N='SketchEnabled' V='0'/><Cell N='SketchAmount' V='5'/><Cell N='SketchLineWeight' V='0.04166666666666666' U='PT'/><Cell N='SketchLineChange' V='0.14'/><Cell N='SketchFillChange' V='0.1'/><Cell N='ColorSchemeIndex' V='0'/><Cell N='EffectSchemeIndex' V='0'/><Cell N='ConnectorSchemeIndex' V='0'/><Cell N='FontSchemeIndex' V='0'/><Cell N='ThemeIndex' V='0'/><Cell N='VariationColorIndex' V='0'/><Cell N='VariationStyleIndex' V='0'/><Cell N='EmbellishmentIndex' V='0'/><Cell N='ReplaceLockShapeData' V='0'/><Cell N='ReplaceLockText' V='0'/><Cell N='ReplaceLockFormat' V='0'/><Cell N='ReplaceCopyCells' V='0' U='BOOL' F='No Formula'/><Cell N='PageWidth' V='0' F='No Formula'/><Cell N='PageHeight' V='0' F='No Formula'/><Cell N='ShdwOffsetX' V='0' F='No Formula'/><Cell N='ShdwOffsetY' V='0' F='No Formula'/><Cell N='PageScale' V='0' U='IN_F' F='No Formula'/><Cell N='DrawingScale' V='0' U='IN_F' F='No Formula'/><Cell N='DrawingSizeType' V='0' F='No Formula'/><Cell N='DrawingScaleType' V='0' F='No Formula'/><Cell N='InhibitSnap' V='0' F='No Formula'/><Cell N='PageLockReplace' V='0' U='BOOL' F='No Formula'/><Cell N='PageLockDuplicate' V='0' U='BOOL' F='No Formula'/><Cell N='UIVisibility' V='0' F='No Formula'/><Cell N='ShdwType' V='0' F='No Formula'/><Cell N='ShdwObliqueAngle' V='0' F='No Formula'/><Cell N='ShdwScaleFactor' V='0' F='No Formula'/><Cell N='DrawingResizeType' V='0' F='No Formula'/><Section N='Character'><Row IX='0'><Cell N='Font' V='Calibri'/><Cell N='Color' V='0'/><Cell N='Style' V='0'/><Cell N='Case' V='0'/><Cell N='Pos' V='0'/><Cell N='FontScale' V='1'/><Cell N='Size' V='0.1666666666666667'/><Cell N='DblUnderline' V='0'/><Cell N='Overline' V='0'/><Cell N='Strikethru' V='0'/><Cell N='DoubleStrikethrough' V='0'/><Cell N='Letterspace' V='0'/><Cell N='ColorTrans' V='0'/><Cell N='AsianFont' V='0'/><Cell N='ComplexScriptFont' V='0'/><Cell N='ComplexScriptSize' V='-1'/><Cell N='LangID' V='en-US'/></Row></Section><Section N='Paragraph'><Row IX='0'><Cell N='IndFirst' V='0'/><Cell N='IndLeft' V='0'/><Cell N='IndRight' V='0'/><Cell N='SpLine' V='-1.2'/><Cell N='SpBefore' V='0'/><Cell N='SpAfter' V='0'/><Cell N='HorzAlign' V='1'/><Cell N='Bullet' V='0'/><Cell N='BulletStr' V=''/><Cell N='BulletFont' V='0'/><Cell N='BulletFontSize' V='-1'/><Cell N='TextPosAfterBullet' V='0'/><Cell N='Flags' V='0'/></Row></Section><Section N='Tabs'><Row IX='0'/></Section><Section N='LineGradient'><Row IX='0'><Cell N='GradientStopColor' V='1'/><Cell N='GradientStopColorTrans' V='0'/><Cell N='GradientStopPosition' V='0'/></Row></Section><Section N='FillGradient'><Row IX='0'><Cell N='GradientStopColor' V='1'/><Cell N='GradientStopColorTrans' V='0'/><Cell N='GradientStopPosition' V='0'/></Row></Section></StyleSheet><StyleSheet ID='1' NameU='Text Only' IsCustomNameU='1' Name='Text Only' IsCustomName='1' LineStyle='3' FillStyle='3' TextStyle='3'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='Themed' F='Inh'/><Cell N='LineColor' V='Themed' F='Inh'/><Cell N='LinePattern' V='Themed' F='Inh'/><Cell N='Rounding' V='Themed' F='Inh'/><Cell N='EndArrowSize' V='2' F='Inh'/><Cell N='BeginArrow' V='0' F='Inh'/><Cell N='EndArrow' V='0' F='Inh'/><Cell N='LineCap' V='Themed' F='Inh'/><Cell N='BeginArrowSize' V='2' F='Inh'/><Cell N='LineColorTrans' V='Themed' F='Inh'/><Cell N='CompoundType' V='Themed' F='Inh'/><Cell N='FillForegnd' V='Themed' F='Inh'/><Cell N='FillBkgnd' V='Themed' F='Inh'/><Cell N='FillPattern' V='Themed' F='Inh'/><Cell N='ShdwForegnd' V='Themed' F='Inh'/><Cell N='ShdwPattern' V='Themed' F='Inh'/><Cell N='FillForegndTrans' V='Themed' F='Inh'/><Cell N='FillBkgndTrans' V='Themed' F='Inh'/><Cell N='ShdwForegndTrans' V='Themed' F='Inh'/><Cell N='ShapeShdwType' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetX' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetY' V='Themed' F='Inh'/><Cell N='ShapeShdwObliqueAngle' V='Themed' F='Inh'/><Cell N='ShapeShdwScaleFactor' V='Themed' F='Inh'/><Cell N='ShapeShdwBlur' V='Themed' F='Inh'/><Cell N='ShapeShdwShow' V='0' F='Inh'/><Cell N='LeftMargin' V='0'/><Cell N='RightMargin' V='0'/><Cell N='TopMargin' V='0'/><Cell N='BottomMargin' V='0'/><Cell N='VerticalAlign' V='0'/><Cell N='TextBkgnd' V='0'/><Cell N='DefaultTabStop' V='0.5' F='Inh'/><Cell N='TextDirection' V='0' F='Inh'/><Cell N='TextBkgndTrans' V='0' F='Inh'/><Cell N='LineGradientDir' V='Themed' F='Inh'/><Cell N='LineGradientAngle' V='Themed' F='Inh'/><Cell N='FillGradientDir' V='Themed' F='Inh'/><Cell N='FillGradientAngle' V='Themed' F='Inh'/><Cell N='LineGradientEnabled' V='Themed' F='Inh'/><Cell N='FillGradientEnabled' V='Themed' F='Inh'/><Cell N='RotateGradientWithShape' V='Themed' F='Inh'/><Cell N='UseGroupGradient' V='Themed' F='Inh'/><Section N='Paragraph'><Row IX='0'><Cell N='IndFirst' V='0' F='Inh'/><Cell N='IndLeft' V='0' F='Inh'/><Cell N='IndRight' V='0' F='Inh'/><Cell N='SpLine' V='-1.2' F='Inh'/><Cell N='SpBefore' V='0' F='Inh'/><Cell N='SpAfter' V='0' F='Inh'/><Cell N='HorzAlign' V='0'/><Cell N='Bullet' V='0' F='Inh'/><Cell N='BulletStr' V='' F='Inh'/><Cell N='BulletFont' V='0' F='Inh'/><Cell N='BulletFontSize' V='-1' F='Inh'/><Cell N='TextPosAfterBullet' V='0' F='Inh'/><Cell N='Flags' V='0' F='Inh'/></Row></Section></StyleSheet><StyleSheet ID='2' NameU='None' IsCustomNameU='1' Name='None' IsCustomName='1' LineStyle='3' FillStyle='3' TextStyle='3'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='Themed' F='Inh'/><Cell N='LineColor' V='Themed' F='Inh'/><Cell N='LinePattern' V='0'/><Cell N='Rounding' V='Themed' F='Inh'/><Cell N='EndArrowSize' V='2' F='Inh'/><Cell N='BeginArrow' V='0' F='Inh'/><Cell N='EndArrow' V='0' F='Inh'/><Cell N='LineCap' V='Themed' F='Inh'/><Cell N='BeginArrowSize' V='2' F='Inh'/><Cell N='LineColorTrans' V='Themed' F='Inh'/><Cell N='CompoundType' V='Themed' F='Inh'/><Cell N='FillForegnd' V='Themed' F='Inh'/><Cell N='FillBkgnd' V='Themed' F='Inh'/><Cell N='FillPattern' V='0'/><Cell N='ShdwForegnd' V='Themed' F='Inh'/><Cell N='ShdwPattern' V='Themed' F='Inh'/><Cell N='FillForegndTrans' V='Themed' F='Inh'/><Cell N='FillBkgndTrans' V='Themed' F='Inh'/><Cell N='ShdwForegndTrans' V='Themed' F='Inh'/><Cell N='ShapeShdwType' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetX' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetY' V='Themed' F='Inh'/><Cell N='ShapeShdwObliqueAngle' V='Themed' F='Inh'/><Cell N='ShapeShdwScaleFactor' V='Themed' F='Inh'/><Cell N='ShapeShdwBlur' V='Themed' F='Inh'/><Cell N='ShapeShdwShow' V='0' F='Inh'/><Cell N='LineGradientDir' V='Themed' F='Inh'/><Cell N='LineGradientAngle' V='Themed' F='Inh'/><Cell N='FillGradientDir' V='Themed' F='Inh'/><Cell N='FillGradientAngle' V='Themed' F='Inh'/><Cell N='LineGradientEnabled' V='0'/><Cell N='FillGradientEnabled' V='0'/><Cell N='RotateGradientWithShape' V='Themed' F='Inh'/><Cell N='UseGroupGradient' V='Themed' F='Inh'/><Cell N='QuickStyleLineColor' V='100' F='Inh'/><Cell N='QuickStyleFillColor' V='100' F='Inh'/><Cell N='QuickStyleShadowColor' V='100' F='Inh'/><Cell N='QuickStyleFontColor' V='100' F='Inh'/><Cell N='QuickStyleLineMatrix' V='100' F='Inh'/><Cell N='QuickStyleFillMatrix' V='100' F='Inh'/><Cell N='QuickStyleEffectsMatrix' V='0' F='GUARD(0)'/><Cell N='QuickStyleFontMatrix' V='100' F='Inh'/><Cell N='QuickStyleType' V='0' F='Inh'/><Cell N='QuickStyleVariation' V='2'/></StyleSheet><StyleSheet ID='3' NameU='Normal' IsCustomNameU='1' Name='Normal' IsCustomName='1' LineStyle='6' FillStyle='6' TextStyle='6'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LeftMargin' V='0.05555555555555555' U='PT'/><Cell N='RightMargin' V='0.05555555555555555' U='PT'/><Cell N='TopMargin' V='0.05555555555555555' U='PT'/><Cell N='BottomMargin' V='0.05555555555555555' U='PT'/><Cell N='VerticalAlign' V='1' F='Inh'/><Cell N='TextBkgnd' V='0' F='Inh'/><Cell N='DefaultTabStop' V='0.5' F='Inh'/><Cell N='TextDirection' V='0' F='Inh'/><Cell N='TextBkgndTrans' V='0' F='Inh'/></StyleSheet><StyleSheet ID='4' NameU='Guide' IsCustomNameU='1' Name='Guide' IsCustomName='1' LineStyle='3' FillStyle='3' TextStyle='3'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='0' U='PT'/><Cell N='LineColor' V='#7f7f7f'/><Cell N='LinePattern' V='23'/><Cell N='Rounding' V='Themed' F='Inh'/><Cell N='EndArrowSize' V='2' F='Inh'/><Cell N='BeginArrow' V='0' F='Inh'/><Cell N='EndArrow' V='0' F='Inh'/><Cell N='LineCap' V='Themed' F='Inh'/><Cell N='BeginArrowSize' V='2' F='Inh'/><Cell N='LineColorTrans' V='Themed' F='Inh'/><Cell N='CompoundType' V='Themed' F='Inh'/><Cell N='FillForegnd' V='Themed' F='Inh'/><Cell N='FillBkgnd' V='Themed' F='Inh'/><Cell N='FillPattern' V='0'/><Cell N='ShdwForegnd' V='Themed' F='Inh'/><Cell N='ShdwPattern' V='Themed' F='Inh'/><Cell N='FillForegndTrans' V='Themed' F='Inh'/><Cell N='FillBkgndTrans' V='Themed' F='Inh'/><Cell N='ShdwForegndTrans' V='Themed' F='Inh'/><Cell N='ShapeShdwType' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetX' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetY' V='Themed' F='Inh'/><Cell N='ShapeShdwObliqueAngle' V='Themed' F='Inh'/><Cell N='ShapeShdwScaleFactor' V='Themed' F='Inh'/><Cell N='ShapeShdwBlur' V='Themed' F='Inh'/><Cell N='ShapeShdwShow' V='0' F='Inh'/><Cell N='LineGradientDir' V='Themed' F='Inh'/><Cell N='LineGradientAngle' V='Themed' F='Inh'/><Cell N='FillGradientDir' V='Themed' F='Inh'/><Cell N='FillGradientAngle' V='Themed' F='Inh'/><Cell N='LineGradientEnabled' V='0'/><Cell N='FillGradientEnabled' V='0'/><Cell N='RotateGradientWithShape' V='Themed' F='Inh'/><Cell N='UseGroupGradient' V='Themed' F='Inh'/><Cell N='LeftMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='RightMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='TopMargin' V='0'/><Cell N='BottomMargin' V='0'/><Cell N='VerticalAlign' V='2'/><Cell N='TextBkgnd' V='0' F='Inh'/><Cell N='DefaultTabStop' V='0.5' F='Inh'/><Cell N='TextDirection' V='0' F='Inh'/><Cell N='TextBkgndTrans' V='0' F='Inh'/><Cell N='NoObjHandles' V='0' F='Inh'/><Cell N='NonPrinting' V='1'/><Cell N='NoCtlHandles' V='0' F='Inh'/><Cell N='NoAlignBox' V='0' F='Inh'/><Cell N='UpdateAlignBox' V='0' F='Inh'/><Cell N='HideText' V='0' F='Inh'/><Cell N='DynFeedback' V='0' F='Inh'/><Cell N='GlueType' V='0' F='Inh'/><Cell N='WalkPreference' V='0' F='Inh'/><Cell N='BegTrigger' V='0' F='No Formula'/><Cell N='EndTrigger' V='0' F='No Formula'/><Cell N='ObjType' V='0' F='Inh'/><Cell N='Comment' V='' F='Inh'/><Cell N='IsDropSource' V='0' F='Inh'/><Cell N='NoLiveDynamics' V='0' F='Inh'/><Cell N='LocalizeMerge' V='0' F='Inh'/><Cell N='NoProofing' V='0' F='Inh'/><Cell N='Calendar' V='0' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/><Cell N='ShapeKeywords' V='' F='Inh'/><Cell N='DropOnPageScale' V='1' F='Inh'/><Cell N='ShapePermeableX' V='1'/><Cell N='ShapePermeableY' V='1'/><Cell N='ShapePermeablePlace' V='1'/><Cell N='Relationships' V='0' F='Inh'/><Cell N='ShapeFixedCode' V='0' F='Inh'/><Cell N='ShapePlowCode' V='0' F='Inh'/><Cell N='ShapeRouteStyle' V='0' F='Inh'/><Cell N='ShapePlaceStyle' V='0' F='Inh'/><Cell N='ConFixedCode' V='0' F='Inh'/><Cell N='ConLineJumpCode' V='0' F='Inh'/><Cell N='ConLineJumpStyle' V='0' F='Inh'/><Cell N='ConLineJumpDirX' V='0' F='Inh'/><Cell N='ConLineJumpDirY' V='0' F='Inh'/><Cell N='ShapePlaceFlip' V='0' F='Inh'/><Cell N='ConLineRouteExt' V='0' F='Inh'/><Cell N='ShapeSplit' V='0' F='Inh'/><Cell N='ShapeSplittable' V='0' F='Inh'/><Cell N='DisplayLevel' V='0' F='Inh'/><Section N='Character'><Row IX='0'><Cell N='Font' V='Themed' F='Inh'/><Cell N='Color' V='4'/><Cell N='Style' V='Themed' F='Inh'/><Cell N='Case' V='0' F='Inh'/><Cell N='Pos' V='0' F='Inh'/><Cell N='FontScale' V='1' F='Inh'/><Cell N='Size' V='0.125'/><Cell N='DblUnderline' V='0' F='Inh'/><Cell N='Overline' V='0' F='Inh'/><Cell N='Strikethru' V='0' F='Inh'/><Cell N='DoubleStrikethrough' V='0' F='Inh'/><Cell N='Letterspace' V='0' F='Inh'/><Cell N='ColorTrans' V='0' F='Inh'/><Cell N='AsianFont' V='Themed' F='Inh'/><Cell N='ComplexScriptFont' V='Themed' F='Inh'/><Cell N='ComplexScriptSize' V='-1' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/></Row></Section></StyleSheet><StyleSheet ID='6' NameU='Theme' IsCustomNameU='1' Name='Theme' IsCustomName='1' LineStyle='0' FillStyle='0' TextStyle='0'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='Themed' F='THEMEVAL()'/><Cell N='LineColor' V='Themed' F='THEMEVAL()'/><Cell N='LinePattern' V='Themed' F='THEMEVAL()'/><Cell N='Rounding' V='Themed' F='THEMEVAL()'/><Cell N='EndArrowSize' V='2' F='Inh'/><Cell N='BeginArrow' V='0' F='Inh'/><Cell N='EndArrow' V='0' F='Inh'/><Cell N='LineCap' V='Themed' F='THEMEVAL()'/><Cell N='BeginArrowSize' V='2' F='Inh'/><Cell N='LineColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='CompoundType' V='Themed' F='THEMEVAL()'/><Cell N='FillForegnd' V='Themed' F='THEMEVAL()'/><Cell N='FillBkgnd' V='Themed' F='THEMEVAL()'/><Cell N='FillPattern' V='Themed' F='THEMEVAL()'/><Cell N='ShdwForegnd' V='Themed' F='THEMEVAL()'/><Cell N='ShdwPattern' V='Themed' F='THEMEVAL()'/><Cell N='FillForegndTrans' V='Themed' F='THEMEVAL()'/><Cell N='FillBkgndTrans' V='Themed' F='THEMEVAL()'/><Cell N='ShdwForegndTrans' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwType' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwOffsetX' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwOffsetY' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwObliqueAngle' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwScaleFactor' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwBlur' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwShow' V='0' F='Inh'/><Cell N='LineGradientDir' V='Themed' F='THEMEVAL()'/><Cell N='LineGradientAngle' V='Themed' F='THEMEVAL()'/><Cell N='FillGradientDir' V='Themed' F='THEMEVAL()'/><Cell N='FillGradientAngle' V='Themed' F='THEMEVAL()'/><Cell N='LineGradientEnabled' V='Themed' F='THEMEVAL()'/><Cell N='FillGradientEnabled' V='Themed' F='THEMEVAL()'/><Cell N='RotateGradientWithShape' V='Themed' F='THEMEVAL()'/><Cell N='UseGroupGradient' V='Themed' F='THEMEVAL()'/><Cell N='BevelTopType' V='Themed' F='THEMEVAL()'/><Cell N='BevelTopWidth' V='Themed' F='THEMEVAL()'/><Cell N='BevelTopHeight' V='Themed' F='THEMEVAL()'/><Cell N='BevelBottomType' V='0' F='Inh'/><Cell N='BevelBottomWidth' V='0' F='Inh'/><Cell N='BevelBottomHeight' V='0' F='Inh'/><Cell N='BevelDepthColor' V='1' F='Inh'/><Cell N='BevelDepthSize' V='0' F='Inh'/><Cell N='BevelContourColor' V='Themed' F='THEMEVAL()'/><Cell N='BevelContourSize' V='Themed' F='THEMEVAL()'/><Cell N='BevelMaterialType' V='Themed' F='THEMEVAL()'/><Cell N='BevelLightingType' V='Themed' F='THEMEVAL()'/><Cell N='BevelLightingAngle' V='Themed' F='THEMEVAL()'/><Cell N='ReflectionTrans' V='Themed' F='THEMEVAL()'/><Cell N='ReflectionSize' V='Themed' F='THEMEVAL()'/><Cell N='ReflectionDist' V='Themed' F='THEMEVAL()'/><Cell N='ReflectionBlur' V='Themed' F='THEMEVAL()'/><Cell N='GlowColor' V='Themed' F='THEMEVAL()'/><Cell N='GlowColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GlowSize' V='Themed' F='THEMEVAL()'/><Cell N='SoftEdgesSize' V='Themed' F='THEMEVAL()'/><Cell N='SketchSeed' V='0' F='Inh'/><Cell N='SketchEnabled' V='Themed' F='THEMEVAL()'/><Cell N='SketchAmount' V='Themed' F='THEMEVAL()'/><Cell N='SketchLineWeight' V='Themed' F='THEMEVAL()'/><Cell N='SketchLineChange' V='Themed' F='THEMEVAL()'/><Cell N='SketchFillChange' V='Themed' F='THEMEVAL()'/><Cell N='QuickStyleLineColor' V='100'/><Cell N='QuickStyleFillColor' V='100'/><Cell N='QuickStyleShadowColor' V='100'/><Cell N='QuickStyleFontColor' V='100'/><Cell N='QuickStyleLineMatrix' V='100'/><Cell N='QuickStyleFillMatrix' V='100'/><Cell N='QuickStyleEffectsMatrix' V='100'/><Cell N='QuickStyleFontMatrix' V='100'/><Cell N='QuickStyleType' V='0' F='Inh'/><Cell N='QuickStyleVariation' V='0' F='Inh'/><Cell N='ColorSchemeIndex' V='65534'/><Cell N='EffectSchemeIndex' V='65534'/><Cell N='ConnectorSchemeIndex' V='65534'/><Cell N='FontSchemeIndex' V='65534'/><Cell N='ThemeIndex' V='65534'/><Cell N='VariationColorIndex' V='65534'/><Cell N='VariationStyleIndex' V='65534'/><Cell N='EmbellishmentIndex' V='65534'/><Section N='Character'><Row IX='0'><Cell N='Font' V='Themed' F='THEMEVAL()'/><Cell N='Color' V='Themed' F='THEMEVAL()'/><Cell N='Style' V='Themed' F='THEMEVAL()'/><Cell N='Case' V='0' F='Inh'/><Cell N='Pos' V='0' F='Inh'/><Cell N='FontScale' V='1' F='Inh'/><Cell N='Size' V='0.1666666666666667' F='Inh'/><Cell N='DblUnderline' V='0' F='Inh'/><Cell N='Overline' V='0' F='Inh'/><Cell N='Strikethru' V='0' F='Inh'/><Cell N='DoubleStrikethrough' V='0' F='Inh'/><Cell N='Letterspace' V='0' F='Inh'/><Cell N='ColorTrans' V='0' F='Inh'/><Cell N='AsianFont' V='Themed' F='THEMEVAL()'/><Cell N='ComplexScriptFont' V='Themed' F='THEMEVAL()'/><Cell N='ComplexScriptSize' V='-1' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/></Row></Section><Section N='FillGradient'><Row IX='0'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='1'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='2'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='3'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='4'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='5'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='6'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='7'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='8'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='9'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row></Section><Section N='LineGradient'><Row IX='0'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='1'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='2'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='3'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='4'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='5'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='6'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='7'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='8'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='9'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row></Section></StyleSheet><StyleSheet ID='7' NameU='Connector' IsCustomNameU='1' Name='Connector' IsCustomName='1' LineStyle='3' FillStyle='3' TextStyle='3'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LeftMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='RightMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='TopMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='BottomMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='VerticalAlign' V='1' F='Inh'/><Cell N='TextBkgnd' V='#ffffff' F='THEMEGUARD(THEMEVAL(\"BackgroundColor\")+1)'/><Cell N='DefaultTabStop' V='0.5' F='Inh'/><Cell N='TextDirection' V='0' F='Inh'/><Cell N='TextBkgndTrans' V='0' F='Inh'/><Cell N='NoObjHandles' V='0' F='Inh'/><Cell N='NonPrinting' V='0' F='Inh'/><Cell N='NoCtlHandles' V='0' F='Inh'/><Cell N='NoAlignBox' V='0' F='Inh'/><Cell N='UpdateAlignBox' V='0' F='Inh'/><Cell N='HideText' V='0' F='Inh'/><Cell N='DynFeedback' V='0' F='Inh'/><Cell N='GlueType' V='0' F='Inh'/><Cell N='WalkPreference' V='0' F='Inh'/><Cell N='BegTrigger' V='0' F='No Formula'/><Cell N='EndTrigger' V='0' F='No Formula'/><Cell N='ObjType' V='0' F='Inh'/><Cell N='Comment' V='' F='Inh'/><Cell N='IsDropSource' V='0' F='Inh'/><Cell N='NoLiveDynamics' V='0' F='Inh'/><Cell N='LocalizeMerge' V='0' F='Inh'/><Cell N='NoProofing' V='0' F='Inh'/><Cell N='Calendar' V='0' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/><Cell N='ShapeKeywords' V='' F='Inh'/><Cell N='DropOnPageScale' V='1' F='Inh'/><Cell N='QuickStyleLineColor' V='100'/><Cell N='QuickStyleFillColor' V='100'/><Cell N='QuickStyleShadowColor' V='100'/><Cell N='QuickStyleFontColor' V='100'/><Cell N='QuickStyleLineMatrix' V='1'/><Cell N='QuickStyleFillMatrix' V='1'/><Cell N='QuickStyleEffectsMatrix' V='1'/><Cell N='QuickStyleFontMatrix' V='1'/><Cell N='QuickStyleType' V='0'/><Cell N='QuickStyleVariation' V='0'/><Cell N='LineWeight' V='Themed' F='Inh'/><Cell N='LineColor' V='Themed' F='Inh'/><Cell N='LinePattern' V='Themed' F='Inh'/><Cell N='Rounding' V='Themed' F='Inh'/><Cell N='EndArrowSize' V='Themed' F='THEMEVAL()'/><Cell N='BeginArrow' V='Themed' F='THEMEVAL()'/><Cell N='EndArrow' V='Themed' F='THEMEVAL()'/><Cell N='LineCap' V='Themed' F='Inh'/><Cell N='BeginArrowSize' V='Themed' F='THEMEVAL()'/><Cell N='LineColorTrans' V='Themed' F='Inh'/><Cell N='CompoundType' V='Themed' F='Inh'/><Section N='Character'><Row IX='0'><Cell N='Font' V='Themed' F='Inh'/><Cell N='Color' V='Themed' F='Inh'/><Cell N='Style' V='Themed' F='Inh'/><Cell N='Case' V='0' F='Inh'/><Cell N='Pos' V='0' F='Inh'/><Cell N='FontScale' V='1' F='Inh'/><Cell N='Size' V='0.1111111111111111'/><Cell N='DblUnderline' V='0' F='Inh'/><Cell N='Overline' V='0' F='Inh'/><Cell N='Strikethru' V='0' F='Inh'/><Cell N='DoubleStrikethrough' V='0' F='Inh'/><Cell N='Letterspace' V='0' F='Inh'/><Cell N='ColorTrans' V='0' F='Inh'/><Cell N='AsianFont' V='Themed' F='Inh'/><Cell N='ComplexScriptFont' V='Themed' F='Inh'/><Cell N='ComplexScriptSize' V='-1' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/></Row></Section></StyleSheet></StyleSheets><DocumentSheet NameU='TheDoc' IsCustomNameU='1' Name='TheDoc' IsCustomName='1' LineStyle='0' FillStyle='0' TextStyle='0'><Cell N='OutputFormat' V='0'/><Cell N='LockPreview' V='0'/><Cell N='AddMarkup' V='0'/><Cell N='ViewMarkup' V='0'/><Cell N='DocLockReplace' V='0' U='BOOL'/><Cell N='NoCoauth' V='0' U='BOOL'/><Cell N='DocLockDuplicatePage' V='0' U='BOOL'/><Cell N='PreviewQuality' V='0'/><Cell N='PreviewScope' V='0'/><Cell N='DocLangID' V='en-US'/><Section N='User'><Row N='msvNoAutoConnect'><Cell N='Value' V='1'/><Cell N='Prompt' V='' F='No Formula'/></Row></Section></DocumentSheet></VisioDocument>",
"visio/windows.xml":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Windows ClientWidth='0' ClientHeight='0' xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve' />","visio/_rels/document.xml.rels":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Relationships xmlns='http://schemas.openxmlformats.org/package/2006/relationships'><Relationship Id='rId1' Type='http://schemas.microsoft.com/visio/2010/relationships/masters' Target='masters/masters.xml' /><Relationship Id='rId2' Type='http://schemas.microsoft.com/visio/2010/relationships/pages' Target='pages/pages.xml' /><Relationship Id='rId3' Type='http://schemas.microsoft.com/visio/2010/relationships/windows' Target='windows.xml' /></Relationships>",
"visio/masters/_rels/masters.xml.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.microsoft.com/visio/2010/relationships/master" Target="master1.xml"/></Relationships>',"visio/masters/masters.xml":"<?xml version='1.0' encoding='utf-8' ?><Masters xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><Master ID='4' NameU='Dynamic connector' IsCustomNameU='1' Name='Dynamic connector' IsCustomName='1' Prompt='This connector automatically routes between the shapes it connects.' IconSize='1' AlignName='2' MatchByName='1' IconUpdate='0' UniqueID='{002A9108-0000-0000-8E40-00608CF305B2}' BaseID='{F7290A45-E3AD-11D2-AE4F-006008C9F5A9}' PatternFlags='0' Hidden='0' MasterType='0'><PageSheet LineStyle='0' FillStyle='0' TextStyle='0'><Cell N='PageWidth' V='3'/><Cell N='PageHeight' V='3'/><Cell N='ShdwOffsetX' V='0.125'/><Cell N='ShdwOffsetY' V='-0.125'/><Cell N='PageScale' V='1' U='IN_F'/><Cell N='DrawingScale' V='1' U='IN_F'/><Cell N='DrawingSizeType' V='4'/><Cell N='DrawingScaleType' V='0'/><Cell N='InhibitSnap' V='0'/><Cell N='PageLockReplace' V='0' U='BOOL'/><Cell N='PageLockDuplicate' V='0' U='BOOL'/><Cell N='UIVisibility' V='0'/><Cell N='ShdwType' V='0'/><Cell N='ShdwObliqueAngle' V='0'/><Cell N='ShdwScaleFactor' V='1'/><Cell N='DrawingResizeType' V='0'/><Section N='Layer'><Row IX='0'><Cell N='Name' V='Connector'/><Cell N='Color' V='255'/><Cell N='Status' V='0'/><Cell N='Visible' V='1'/><Cell N='Print' V='1'/><Cell N='Active' V='0'/><Cell N='Lock' V='0'/><Cell N='Snap' V='1'/><Cell N='Glue' V='1'/><Cell N='NameUniv' V='Connector'/><Cell N='ColorTrans' V='0'/></Row></Section></PageSheet><Rel r:id='rId1'/></Master></Masters>",
"visio/masters/master1.xml":"<?xml version='1.0' encoding='utf-8' ?><MasterContents xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><Shapes><Shape ID='5' OriginalID='0' Type='Shape' LineStyle='7' FillStyle='7' TextStyle='7'><Cell N='PinX' V='1.5' F='GUARD((BeginX+EndX)/2)'/><Cell N='PinY' V='1.5' F='GUARD((BeginY+EndY)/2)'/><Cell N='Width' V='1' F='GUARD(EndX-BeginX)'/><Cell N='Height' V='-1' F='GUARD(EndY-BeginY)'/><Cell N='LocPinX' V='0.5' F='GUARD(Width*0.5)'/><Cell N='LocPinY' V='-0.5' F='GUARD(Height*0.5)'/><Cell N='Angle' V='0' F='GUARD(0DA)'/><Cell N='FlipX' V='0' F='GUARD(FALSE)'/><Cell N='FlipY' V='0' F='GUARD(FALSE)'/><Cell N='ResizeMode' V='0'/><Cell N='BeginX' V='1'/><Cell N='BeginY' V='2'/><Cell N='EndX' V='2'/><Cell N='EndY' V='1'/><Cell N='TxtPinX' V='0' F='SETATREF(Controls.TextPosition)'/><Cell N='TxtPinY' V='-1' F='SETATREF(Controls.TextPosition.Y)'/><Cell N='TxtWidth' V='0.5555555555555556' F='MAX(TEXTWIDTH(TheText),5*Char.Size)'/><Cell N='TxtHeight' V='0.2444444444444444' F='TEXTHEIGHT(TheText,TxtWidth)'/><Cell N='TxtLocPinX' V='0.2777777777777778' F='TxtWidth*0.5'/><Cell N='TxtLocPinY' V='0.1222222222222222' F='TxtHeight*0.5'/><Cell N='TxtAngle' V='0'/><Cell N='LockHeight' V='1'/><Cell N='LockCalcWH' V='1'/><Cell N='HelpTopic' V='Vis_SE.chm!#20000'/><Cell N='Copyright' V='Copyright 2001 Microsoft Corporation. All rights reserved.'/><Cell N='NoAlignBox' V='1'/><Cell N='DynFeedback' V='2'/><Cell N='GlueType' V='2'/><Cell N='ObjType' V='2'/><Cell N='NoLiveDynamics' V='1'/><Cell N='ShapeSplittable' V='1'/><Cell N='LayerMember' V='0'/><Section N='Control'><Row N='TextPosition'><Cell N='X' V='0'/><Cell N='Y' V='-1'/><Cell N='XDyn' V='0' F='Controls.TextPosition'/><Cell N='YDyn' V='-1' F='Controls.TextPosition.Y'/><Cell N='XCon' V='5' F='IF(OR(STRSAME(SHAPETEXT(TheText),\"\"),HideText),5,0)'/><Cell N='YCon' V='0'/><Cell N='CanGlue' V='0'/><Cell N='Prompt' V='Reposition Text'/></Row></Section><Section N='Geometry' IX='0'><Cell N='NoFill' V='1'/><Cell N='NoLine' V='0'/><Cell N='NoShow' V='0'/><Cell N='NoSnap' V='0'/><Cell N='NoQuickDrag' V='0'/><Row T='MoveTo' IX='1'><Cell N='X' V='0'/><Cell N='Y' V='0'/></Row><Row T='LineTo' IX='2'><Cell N='X' V='0'/><Cell N='Y' V='-1'/></Row></Section></Shape></Shapes></MasterContents>"},
-L;for(L in M)if(1<J&&L==N.CONTENT_TYPES_XML){for(var Q=mxUtils.parseXml(M[L]),ca=Q.documentElement,W=ca.children,R=null,U=0;U<W.length;U++){var ia=W[U];"/visio/pages/page1.xml"==ia.getAttribute(N.PART_NAME)&&(R=ia)}for(U=2;U<=J;U++)W=R.cloneNode(),W.setAttribute(N.PART_NAME,"/visio/pages/page"+U+".xml"),ca.appendChild(W);A(H,L,Q,!0)}else H.file(L,M[L])}function z(H,J,M){return null!=H.createElementNS?H.createElementNS(J,M):H.createElement(M)}function B(H){var J=O[H];null==J&&(J=S++,O[H]=J);return J}
-function m(H){var J={};try{var M=H.getGraphBounds().clone(),L=H.view.scale,Q=H.view.translate,ca=Math.round(M.x/L)-Q.x,W=Math.round(M.y/L)-Q.y,R=H.pageFormat.width,U=H.pageFormat.height;0>ca&&(ca+=Math.ceil((Q.x-M.x/L)/R)*R);0>W&&(W+=Math.ceil((Q.y-M.y/L)/U)*U);var ia=Math.max(1,Math.ceil((M.width/L+ca)/R)),ba=Math.max(1,Math.ceil((M.height/L+W)/U));J.gridEnabled=H.gridEnabled;J.gridSize=H.gridSize;J.guidesEnabled=H.graphHandler.guidesEnabled;J.pageVisible=H.pageVisible;J.pageScale=H.pageScale;J.pageWidth=
-H.pageFormat.width*ia;J.pageHeight=H.pageFormat.height*ba;J.backgroundClr=H.background;J.mathEnabled=H.mathEnabled;J.shadowVisible=H.shadowVisible}catch(qa){}return J}function h(H,J,M,L){return c(H,J/N.CONVERSION_FACTOR,M,L)}function c(H,J,M,L){M=z(M,N.XMLNS,"Cell");M.setAttribute("N",H);M.setAttribute("V",J);L&&M.setAttribute("F",L);return M}function a(H,J,M,L,Q){var ca=z(Q,N.XMLNS,"Row");ca.setAttribute("T",H);ca.setAttribute("IX",J);ca.appendChild(h("X",M,Q));ca.appendChild(h("Y",L,Q));return ca}
-function b(H,J,M){var L=mxUtils.rgba2hex(H.style[mxConstants.STYLE_FILLCOLOR]);if(L&&"none"!=L){if(J.appendChild(c("FillForegnd",L,M)),(L=mxUtils.rgba2hex(H.style[mxConstants.STYLE_GRADIENTCOLOR]))&&"none"!=L){J.appendChild(c("FillBkgnd",L,M));L=H.style[mxConstants.STYLE_GRADIENT_DIRECTION];var Q=28;if(L)switch(L){case mxConstants.DIRECTION_EAST:Q=25;break;case mxConstants.DIRECTION_WEST:Q=27;break;case mxConstants.DIRECTION_NORTH:Q=30}J.appendChild(c("FillPattern",Q,M))}}else J.appendChild(c("FillPattern",
-0,M));(L=mxUtils.rgba2hex(H.style[mxConstants.STYLE_STROKECOLOR]))&&"none"!=L?J.appendChild(c("LineColor",L,M)):J.appendChild(c("LinePattern",0,M));(L=H.style[mxConstants.STYLE_STROKEWIDTH])&&J.appendChild(h("LineWeight",L,M));(Q=H.style[mxConstants.STYLE_OPACITY])?L=Q:(L=H.style[mxConstants.STYLE_FILL_OPACITY],Q=H.style[mxConstants.STYLE_STROKE_OPACITY]);L&&J.appendChild(c("FillForegndTrans",1-parseInt(L)/100,M));Q&&J.appendChild(c("LineColorTrans",1-parseInt(Q)/100,M));if(1==H.style[mxConstants.STYLE_DASHED]){L=
-H.style[mxConstants.STYLE_DASH_PATTERN];Q=9;if(L)switch(L){case "1 1":Q=10;break;case "1 2":Q=3;break;case "1 4":Q=17}J.appendChild(c("LinePattern",Q,M))}1==H.style[mxConstants.STYLE_SHADOW]&&(J.appendChild(c("ShdwPattern",1,M)),J.appendChild(c("ShdwForegnd","#000000",M)),J.appendChild(c("ShdwForegndTrans",.6,M)),J.appendChild(c("ShapeShdwType",1,M)),J.appendChild(c("ShapeShdwOffsetX","0.02946278254943948",M)),J.appendChild(c("ShapeShdwOffsetY","-0.02946278254943948",M)),J.appendChild(c("ShapeShdwScaleFactor",
-"1",M)),J.appendChild(c("ShapeShdwBlur","0.05555555555555555",M)),J.appendChild(c("ShapeShdwShow",2,M)));1==H.style[mxConstants.STYLE_FLIPH]&&J.appendChild(c("FlipX",1,M));1==H.style[mxConstants.STYLE_FLIPV]&&J.appendChild(c("FlipY",1,M));1==H.style[mxConstants.STYLE_ROUNDED]&&J.appendChild(h("Rounding",.1*H.cell.geometry.width,M));(H=mxUtils.rgba2hex(H.style[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR]))&&J.appendChild(c("TextBkgnd",H,M))}function d(H,J,M,L,Q,ca){var W=z(L,N.XMLNS,"Shape");W.setAttribute("ID",
-H);W.setAttribute("NameU","Shape"+H);W.setAttribute("LineStyle","0");W.setAttribute("FillStyle","0");W.setAttribute("TextStyle","0");H=J.width/2;var R=J.height/2;W.appendChild(h("PinX",J.x+H+(ca?0:K.shiftX),L));W.appendChild(h("PinY",Q-J.y-R-(ca?0:K.shiftY),L));W.appendChild(h("Width",J.width,L));W.appendChild(h("Height",J.height,L));W.appendChild(h("LocPinX",H,L));W.appendChild(h("LocPinY",R,L));W.appendChild(c("LayerMember",M+"",L));return W}function f(H,J){H=N.ARROWS_MAP[(null==H?"none":H)+"|"+
-(null==J?"1":J)];return null!=H?H:1}function k(H){return null==H?2:2>=H?0:3>=H?1:5>=H?2:7>=H?3:9>=H?4:22>=H?5:6}function n(H,J,M,L,Q,ca){var W=M.view.getState(H,!0);if(null==W||null==W.absolutePoints||null==W.cellBounds)return null;M=z(L,N.XMLNS,"Shape");var R=B(H.id);M.setAttribute("ID",R);M.setAttribute("NameU","Dynamic connector."+R);M.setAttribute("Name","Dynamic connector."+R);M.setAttribute("Type","Shape");M.setAttribute("Master","4");var U=K.state;R=W.absolutePoints;var ia=W.cellBounds,ba=
-ia.width/2,qa=ia.height/2;M.appendChild(h("PinX",ia.x+ba+(ca?0:K.shiftX),L));M.appendChild(h("PinY",Q-ia.y-qa-(ca?0:K.shiftY),L));M.appendChild(h("Width",ia.width,L));M.appendChild(h("Height",ia.height,L));M.appendChild(h("LocPinX",ba,L));M.appendChild(h("LocPinY",qa,L));K.newEdge(M,W,L);ba=function(sa,Fa,pa){var Za=sa.x;sa=sa.y;Za=Za*U.scale-ia.x+U.dx+(pa||ca?0:K.shiftX);sa=(Fa?0:ia.height)-sa*U.scale+ia.y-U.dy-(pa||ca?0:K.shiftY);return{x:Za,y:sa}};qa=ba(R[0],!0);M.appendChild(h("BeginX",ia.x+qa.x,
-L,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));M.appendChild(h("BeginY",Q-ia.y+qa.y,L,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));qa=ba(R[R.length-1],!0);M.appendChild(h("EndX",ia.x+qa.x,L,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));M.appendChild(h("EndY",Q-ia.y+qa.y,L,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));M.appendChild(c("BegTrigger","2",L,H.source?"_XFTRIGGER(Sheet."+B(H.source.id)+"!EventXFMod)":null));M.appendChild(c("EndTrigger","2",L,H.target?"_XFTRIGGER(Sheet."+
-B(H.target.id)+"!EventXFMod)":null));M.appendChild(c("ConFixedCode","6",L));M.appendChild(c("LayerMember",J+"",L));b(W,M,L);J=W.style[mxConstants.STYLE_STARTSIZE];H=f(W.style[mxConstants.STYLE_STARTARROW],W.style[mxConstants.STYLE_STARTFILL]);M.appendChild(c("BeginArrow",H,L));M.appendChild(c("BeginArrowSize",k(J),L));J=W.style[mxConstants.STYLE_ENDSIZE];H=f(W.style[mxConstants.STYLE_ENDARROW],W.style[mxConstants.STYLE_ENDFILL]);M.appendChild(c("EndArrow",H,L));M.appendChild(c("EndArrowSize",k(J),
-L));null!=W.text&&W.text.checkBounds()&&(K.save(),W.text.paint(K),K.restore());W=z(L,N.XMLNS,"Section");W.setAttribute("N","Geometry");W.setAttribute("IX","0");for(H=0;H<R.length;H++)J=ba(R[H],!1,!0),W.appendChild(a(0==H?"MoveTo":"LineTo",H+1,J.x,J.y,L));W.appendChild(c("NoFill","1",L));W.appendChild(c("NoLine","0",L));M.appendChild(W);return M}function q(H,J,M,L,Q,ca,W){var R=H.geometry,U=R;if(null!=R)try{R.relative&&ca&&(U=R.clone(),R.x*=ca.width,R.y*=ca.height,H.vertex&&null!=R.offset&&(R.x+=R.offset.x,
-R.y+=R.offset.y),R.relative=0);var ia=B(H.id);if(!H.treatAsSingle&&0<H.getChildCount()){var ba=d(ia+"10000",R,J,L,Q,W);ba.setAttribute("Type","Group");var qa=z(L,N.XMLNS,"Shapes");K.save();K.translate(-R.x,-R.y);var sa=R.clone();sa.x=0;sa.y=0;H.setGeometry(sa);H.treatAsSingle=!0;var Fa=q(H,J,M,L,R.height,R,!0);delete H.treatAsSingle;H.setGeometry(R);null!=Fa&&qa.appendChild(Fa);for(Q=0;Q<H.getChildCount();Q++)Fa=q(H.children[Q],J,M,L,R.height,R,!0),null!=Fa&&qa.appendChild(Fa);ba.appendChild(qa);
-K.restore();return ba}if(H.vertex){ba=d(ia,R,J,L,Q,W);var pa=M.view.getState(H,!0);null!=pa&&(b(pa,ba,L),K.newShape(ba,pa,L),null!=pa.text&&pa.text.checkBounds()&&(K.save(),pa.text.paint(K),K.restore()),null!=pa.shape&&pa.shape.checkBounds()&&(K.save(),pa.shape.paint(K),K.restore()),ba.appendChild(K.getShapeGeo()),K.endShape(),ba.setAttribute("Type",K.getShapeType()));return ba}return n(H,J,M,L,Q,W)}finally{H.geometry=U}else return null}function t(H,J){var M=mxUtils.createXmlDocument(),L=z(M,N.XMLNS,
-"PageContents");L.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",N.XMLNS);L.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:r",N.XMLNS_R);var Q=z(M,N.XMLNS,"Shapes");L.appendChild(Q);var ca=H.model,W=H.view.translate,R=H.view.scale,U=H.getGraphBounds();K.shiftX=0;K.shiftY=0;if(U.x/R<W.x||U.y/R<W.y)K.shiftX=Math.ceil((W.x-U.x/R)/H.pageFormat.width)*H.pageFormat.width,K.shiftY=Math.ceil((W.y-U.y/R)/H.pageFormat.height)*H.pageFormat.height;K.save();K.translate(-W.x,-W.y);K.scale(1/R);K.newPage();
-R=H.model.getChildCells(H.model.root);W={};for(U=0;U<R.length;U++)W[R[U].id]=U;for(var ia in ca.cells)R=ca.cells[ia],U=null!=R.parent?W[R.parent.id]:null,null!=U&&(R=q(R,U,H,M,J.pageHeight),null!=R&&Q.appendChild(R));H=z(M,N.XMLNS,"Connects");L.appendChild(H);for(ia in ca.cells)R=ca.cells[ia],R.edge&&(R.source&&(J=z(M,N.XMLNS,"Connect"),J.setAttribute("FromSheet",B(R.id)),J.setAttribute("FromCell","BeginX"),J.setAttribute("ToSheet",B(R.source.id)),H.appendChild(J)),R.target&&(J=z(M,N.XMLNS,"Connect"),
-J.setAttribute("FromSheet",B(R.id)),J.setAttribute("FromCell","EndX"),J.setAttribute("ToSheet",B(R.target.id)),H.appendChild(J)));M.appendChild(L);K.restore();return M}function A(H,J,M,L){H.file(J,(L?"":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>')+mxUtils.getXml(M,"\n"))}function C(H,J,M,L){var Q=mxUtils.createXmlDocument(),ca=mxUtils.createXmlDocument(),W=z(Q,N.XMLNS,"Pages");W.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",N.XMLNS);W.setAttributeNS("http://www.w3.org/2000/xmlns/",
-"xmlns:r",N.XMLNS_R);var R=z(ca,N.RELS_XMLNS,"Relationships"),U=1,ia;for(ia in J){var ba="page"+U+".xml",qa=z(Q,N.XMLNS,"Page");qa.setAttribute("ID",U-1);qa.setAttribute("NameU",ia);qa.setAttribute("Name",ia);var sa=z(Q,N.XMLNS,"PageSheet"),Fa=L[ia];sa.appendChild(h("PageWidth",Fa.pageWidth,Q));sa.appendChild(h("PageHeight",Fa.pageHeight,Q));sa.appendChild(c("PageScale",Fa.pageScale,Q));sa.appendChild(c("DrawingScale",1,Q));Fa=z(Q,N.XMLNS,"Rel");Fa.setAttributeNS(N.XMLNS_R,"r:id","rId"+U);var pa=
-z(Q,N.XMLNS,"Section");pa.setAttribute("N","Layer");for(var Za=M[ia],Qb=0;Qb<Za.length;Qb++){var vb=z(Q,N.XMLNS,"Row");vb.setAttribute("IX",Qb+"");pa.appendChild(vb);vb.appendChild(c("Name",Za[Qb].name,Q));vb.appendChild(c("Color","255",Q));vb.appendChild(c("Status","0",Q));vb.appendChild(c("Visible",Za[Qb].visible?"1":"0",Q));vb.appendChild(c("Print","1",Q));vb.appendChild(c("Active","0",Q));vb.appendChild(c("Lock",Za[Qb].locked?"1":"0",Q));vb.appendChild(c("Snap","1",Q));vb.appendChild(c("Glue",
-"1",Q));vb.appendChild(c("NameUniv",Za[Qb].name,Q));vb.appendChild(c("ColorTrans","0",Q))}sa.appendChild(pa);qa.appendChild(sa);qa.appendChild(Fa);W.appendChild(qa);qa=z(ca,N.RELS_XMLNS,"Relationship");qa.setAttribute("Id","rId"+U);qa.setAttribute("Type",N.PAGES_TYPE);qa.setAttribute("Target",ba);R.appendChild(qa);A(H,N.VISIO_PAGES+ba,J[ia]);U++}Q.appendChild(W);ca.appendChild(R);A(H,N.VISIO_PAGES+"pages.xml",Q);A(H,N.VISIO_PAGES+"_rels/pages.xml.rels",ca)}function I(H,J){J=N.VISIO_PAGES_RELS+"page"+
-J+".xml.rels";var M=mxUtils.createXmlDocument(),L=z(M,N.RELS_XMLNS,"Relationships"),Q=z(M,N.RELS_XMLNS,"Relationship");Q.setAttribute("Type","http://schemas.microsoft.com/visio/2010/relationships/master");Q.setAttribute("Id","rId1");Q.setAttribute("Target","../masters/master1.xml");L.appendChild(Q);var ca=K.images;if(0<ca.length)for(var W=0;W<ca.length;W++)Q=z(M,N.RELS_XMLNS,"Relationship"),Q.setAttribute("Type",N.XMLNS_R+"/image"),Q.setAttribute("Id","rId"+(W+2)),Q.setAttribute("Target","../media/"+
-ca[W]),L.appendChild(Q);M.appendChild(L);A(H,J,M)}var N=this,K=new mxVsdxCanvas2D,O={},S=1;this.exportCurrentDiagrams=function(H){try{if(g.spinner.spin(document.body,mxResources.get("exporting"))){var J=function(Fa,pa){Fa=Fa.model.getChildCells(Fa.model.root);Q[pa]=[];for(var Za=0;Za<Fa.length;Za++)Fa[Za].visible&&Q[pa].push({name:Fa[Za].value||"Background",visible:Fa[Za].visible,locked:Fa[Za].style&&0<=Fa[Za].style.indexOf("locked=1")})},M=new JSZip;K.init(M);O={};S=1;var L={},Q={},ca={},W=null!=
-g.pages?g.pages.length:1;if(null!=g.pages){var R=function(Fa){Fa=Fa.getName();var pa=g.editor.graph,Za=m(pa);L[Fa]=t(pa,Za);J(pa,Fa);I(M,ba+1);ca[Fa]=Za},U=g.editor.graph.getSelectionCells(),ia=g.currentPage;if(H)R(ia);else{for(var ba=0;ba<g.pages.length;ba++){var qa=g.pages[ba];g.currentPage!=qa&&g.selectPage(qa,!0);R(qa)}ia!=g.currentPage&&g.selectPage(ia,!0);g.editor.graph.setSelectionCells(U)}}else{R=g.editor.graph;var sa=m(R);L.Page1=t(R,sa);J(R,"Page1");I(M,1);ca.Page1=sa}y(M,W);C(M,L,Q,ca);
-H=function(){M.generateAsync({type:"base64"}).then(function(Fa){g.spinner.stop();var pa=g.getBaseFilename();g.saveData(pa+".vsdx","vsdx",Fa,"application/vnd.visio2013",!0)})};0<K.filesLoading?K.onFilesLoaded=H:H()}return!0}catch(Fa){return console.log(Fa),g.spinner.stop(),!1}}}VsdxExport.prototype.CONVERSION_FACTOR=101.6;VsdxExport.prototype.PAGES_TYPE="http://schemas.microsoft.com/visio/2010/relationships/page";VsdxExport.prototype.RELS_XMLNS="http://schemas.openxmlformats.org/package/2006/relationships";
+M;for(M in J)if(1<N&&M==K.CONTENT_TYPES_XML){for(var T=mxUtils.parseXml(J[M]),ca=T.documentElement,V=ca.children,P=null,ea=0;ea<V.length;ea++){var Y=V[ea];"/visio/pages/page1.xml"==Y.getAttribute(K.PART_NAME)&&(P=Y)}for(ea=2;ea<=N;ea++)V=P.cloneNode(),V.setAttribute(K.PART_NAME,"/visio/pages/page"+ea+".xml"),ca.appendChild(V);C(H,M,T,!0)}else H.file(M,J[M])}function z(H,N,J){return null!=H.createElementNS?H.createElementNS(N,J):H.createElement(J)}function B(H){var N=S[H];null==N&&(N=R++,S[H]=N);return N}
+function m(H){var N={};try{var J=H.getGraphBounds().clone(),M=H.view.scale,T=H.view.translate,ca=Math.round(J.x/M)-T.x,V=Math.round(J.y/M)-T.y,P=H.pageFormat.width,ea=H.pageFormat.height;0>ca&&(ca+=Math.ceil((T.x-J.x/M)/P)*P);0>V&&(V+=Math.ceil((T.y-J.y/M)/ea)*ea);var Y=Math.max(1,Math.ceil((J.width/M+ca)/P)),sa=Math.max(1,Math.ceil((J.height/M+V)/ea));N.gridEnabled=H.gridEnabled;N.gridSize=H.gridSize;N.guidesEnabled=H.graphHandler.guidesEnabled;N.pageVisible=H.pageVisible;N.pageScale=H.pageScale;
+N.pageWidth=H.pageFormat.width*Y;N.pageHeight=H.pageFormat.height*sa;N.backgroundClr=H.background;N.mathEnabled=H.mathEnabled;N.shadowVisible=H.shadowVisible}catch(oa){}return N}function h(H,N,J,M){return c(H,N/K.CONVERSION_FACTOR,J,M)}function c(H,N,J,M){J=z(J,K.XMLNS,"Cell");J.setAttribute("N",H);J.setAttribute("V",N);M&&J.setAttribute("F",M);return J}function a(H,N,J,M,T){var ca=z(T,K.XMLNS,"Row");ca.setAttribute("T",H);ca.setAttribute("IX",N);ca.appendChild(h("X",J,T));ca.appendChild(h("Y",M,
+T));return ca}function b(H){mxUtils.isLightDarkColor(H)&&(H=mxUtils.parseLightDarkColor(H).light);return mxUtils.rgba2hex(H)}function d(H,N,J){var M=b(H.style[mxConstants.STYLE_FILLCOLOR]);if(M&&"none"!=M){if(N.appendChild(c("FillForegnd",M,J)),(M=b(H.style[mxConstants.STYLE_GRADIENTCOLOR]))&&"none"!=M){N.appendChild(c("FillBkgnd",M,J));M=H.style[mxConstants.STYLE_GRADIENT_DIRECTION];var T=28;if(M)switch(M){case mxConstants.DIRECTION_EAST:T=25;break;case mxConstants.DIRECTION_WEST:T=27;break;case mxConstants.DIRECTION_NORTH:T=
+30}N.appendChild(c("FillPattern",T,J))}}else N.appendChild(c("FillPattern",0,J));(M=b(H.style[mxConstants.STYLE_STROKECOLOR]))&&"none"!=M?N.appendChild(c("LineColor",M,J)):N.appendChild(c("LinePattern",0,J));(M=H.style[mxConstants.STYLE_STROKEWIDTH])&&N.appendChild(h("LineWeight",M,J));(T=H.style[mxConstants.STYLE_OPACITY])?M=T:(M=H.style[mxConstants.STYLE_FILL_OPACITY],T=H.style[mxConstants.STYLE_STROKE_OPACITY]);M&&N.appendChild(c("FillForegndTrans",1-parseInt(M)/100,J));T&&N.appendChild(c("LineColorTrans",
+1-parseInt(T)/100,J));if(1==H.style[mxConstants.STYLE_DASHED]){M=H.style[mxConstants.STYLE_DASH_PATTERN];T=9;if(M)switch(M){case "1 1":T=10;break;case "1 2":T=3;break;case "1 4":T=17}N.appendChild(c("LinePattern",T,J))}1==H.style[mxConstants.STYLE_SHADOW]&&(N.appendChild(c("ShdwPattern",1,J)),N.appendChild(c("ShdwForegnd","#000000",J)),N.appendChild(c("ShdwForegndTrans",.6,J)),N.appendChild(c("ShapeShdwType",1,J)),N.appendChild(c("ShapeShdwOffsetX","0.02946278254943948",J)),N.appendChild(c("ShapeShdwOffsetY",
+"-0.02946278254943948",J)),N.appendChild(c("ShapeShdwScaleFactor","1",J)),N.appendChild(c("ShapeShdwBlur","0.05555555555555555",J)),N.appendChild(c("ShapeShdwShow",2,J)));1==H.style[mxConstants.STYLE_FLIPH]&&N.appendChild(c("FlipX",1,J));1==H.style[mxConstants.STYLE_FLIPV]&&N.appendChild(c("FlipY",1,J));1==H.style[mxConstants.STYLE_ROUNDED]&&N.appendChild(h("Rounding",.1*H.cell.geometry.width,J));(H=b(H.style[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR]))&&N.appendChild(c("TextBkgnd",H,J))}function f(H,
+N,J,M,T,ca){var V=z(M,K.XMLNS,"Shape");V.setAttribute("ID",H);V.setAttribute("NameU","Shape"+H);V.setAttribute("LineStyle","0");V.setAttribute("FillStyle","0");V.setAttribute("TextStyle","0");H=N.width/2;var P=N.height/2;V.appendChild(h("PinX",N.x+H+(ca?0:L.shiftX),M));V.appendChild(h("PinY",T-N.y-P-(ca?0:L.shiftY),M));V.appendChild(h("Width",N.width,M));V.appendChild(h("Height",N.height,M));V.appendChild(h("LocPinX",H,M));V.appendChild(h("LocPinY",P,M));V.appendChild(c("LayerMember",J+"",M));return V}
+function k(H,N){H=K.ARROWS_MAP[(null==H?"none":H)+"|"+(null==N?"1":N)];return null!=H?H:1}function n(H){return null==H?2:2>=H?0:3>=H?1:5>=H?2:7>=H?3:9>=H?4:22>=H?5:6}function q(H,N,J,M,T,ca){var V=J.view.getState(H,!0);if(null==V||null==V.absolutePoints||null==V.cellBounds)return null;J=z(M,K.XMLNS,"Shape");var P=B(H.id);J.setAttribute("ID",P);J.setAttribute("NameU","Dynamic connector."+P);J.setAttribute("Name","Dynamic connector."+P);J.setAttribute("Type","Shape");J.setAttribute("Master","4");var ea=
+L.state;P=V.absolutePoints;var Y=V.cellBounds,sa=Y.width/2,oa=Y.height/2;J.appendChild(h("PinX",Y.x+sa+(ca?0:L.shiftX),M));J.appendChild(h("PinY",T-Y.y-oa-(ca?0:L.shiftY),M));J.appendChild(h("Width",Y.width,M));J.appendChild(h("Height",Y.height,M));J.appendChild(h("LocPinX",sa,M));J.appendChild(h("LocPinY",oa,M));L.newEdge(J,V,M);sa=function(Ra,la,Sa){var Xa=Ra.x;Ra=Ra.y;Xa=Xa*ea.scale-Y.x+ea.dx+(Sa||ca?0:L.shiftX);Ra=(la?0:Y.height)-Ra*ea.scale+Y.y-ea.dy-(Sa||ca?0:L.shiftY);return{x:Xa,y:Ra}};oa=
+sa(P[0],!0);J.appendChild(h("BeginX",Y.x+oa.x,M,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));J.appendChild(h("BeginY",T-Y.y+oa.y,M,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));oa=sa(P[P.length-1],!0);J.appendChild(h("EndX",Y.x+oa.x,M,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));J.appendChild(h("EndY",T-Y.y+oa.y,M,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));J.appendChild(c("BegTrigger","2",M,H.source?"_XFTRIGGER(Sheet."+B(H.source.id)+"!EventXFMod)":null));J.appendChild(c("EndTrigger",
+"2",M,H.target?"_XFTRIGGER(Sheet."+B(H.target.id)+"!EventXFMod)":null));J.appendChild(c("ConFixedCode","6",M));J.appendChild(c("LayerMember",N+"",M));d(V,J,M);N=V.style[mxConstants.STYLE_STARTSIZE];H=k(V.style[mxConstants.STYLE_STARTARROW],V.style[mxConstants.STYLE_STARTFILL]);J.appendChild(c("BeginArrow",H,M));J.appendChild(c("BeginArrowSize",n(N),M));N=V.style[mxConstants.STYLE_ENDSIZE];H=k(V.style[mxConstants.STYLE_ENDARROW],V.style[mxConstants.STYLE_ENDFILL]);J.appendChild(c("EndArrow",H,M));
+J.appendChild(c("EndArrowSize",n(N),M));null!=V.text&&V.text.checkBounds()&&(L.save(),V.text.paint(L),L.restore());V=z(M,K.XMLNS,"Section");V.setAttribute("N","Geometry");V.setAttribute("IX","0");for(H=0;H<P.length;H++)N=sa(P[H],!1,!0),V.appendChild(a(0==H?"MoveTo":"LineTo",H+1,N.x,N.y,M));V.appendChild(c("NoFill","1",M));V.appendChild(c("NoLine","0",M));J.appendChild(V);return J}function t(H,N,J,M,T,ca,V){var P=H.geometry,ea=P;if(null!=P)try{P.relative&&ca&&(ea=P.clone(),P.x*=ca.width,P.y*=ca.height,
+H.vertex&&null!=P.offset&&(P.x+=P.offset.x,P.y+=P.offset.y),P.relative=0);var Y=B(H.id);if(!H.treatAsSingle&&0<H.getChildCount()){var sa=f(Y+"10000",P,N,M,T,V);sa.setAttribute("Type","Group");var oa=z(M,K.XMLNS,"Shapes");L.save();L.translate(-P.x,-P.y);var Ra=P.clone();Ra.x=0;Ra.y=0;H.setGeometry(Ra);H.treatAsSingle=!0;var la=t(H,N,J,M,P.height,P,!0);delete H.treatAsSingle;H.setGeometry(P);null!=la&&oa.appendChild(la);for(T=0;T<H.getChildCount();T++)la=t(H.children[T],N,J,M,P.height,P,!0),null!=la&&
+oa.appendChild(la);sa.appendChild(oa);L.restore();return sa}if(H.vertex){sa=f(Y,P,N,M,T,V);var Sa=J.view.getState(H,!0);null!=Sa&&(d(Sa,sa,M),L.newShape(sa,Sa,M),null!=Sa.text&&Sa.text.checkBounds()&&(L.save(),Sa.text.paint(L),L.restore()),null!=Sa.shape&&Sa.shape.checkBounds()&&(L.save(),Sa.shape.paint(L),L.restore()),sa.appendChild(L.getShapeGeo()),L.endShape(),sa.setAttribute("Type",L.getShapeType()));return sa}return q(H,N,J,M,T,V)}finally{H.geometry=ea}else return null}function A(H,N){var J=
+mxUtils.createXmlDocument(),M=z(J,K.XMLNS,"PageContents");M.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",K.XMLNS);M.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:r",K.XMLNS_R);var T=z(J,K.XMLNS,"Shapes");M.appendChild(T);var ca=H.model,V=H.view.translate,P=H.view.scale,ea=H.getGraphBounds();L.shiftX=0;L.shiftY=0;if(ea.x/P<V.x||ea.y/P<V.y)L.shiftX=Math.ceil((V.x-ea.x/P)/H.pageFormat.width)*H.pageFormat.width,L.shiftY=Math.ceil((V.y-ea.y/P)/H.pageFormat.height)*H.pageFormat.height;
+L.save();L.translate(-V.x,-V.y);L.scale(1/P);L.newPage();P=H.model.getChildCells(H.model.root);V={};for(ea=0;ea<P.length;ea++)V[P[ea].id]=ea;for(var Y in ca.cells)P=ca.cells[Y],ea=null!=P.parent?V[P.parent.id]:null,null!=ea&&(P=t(P,ea,H,J,N.pageHeight),null!=P&&T.appendChild(P));H=z(J,K.XMLNS,"Connects");M.appendChild(H);for(Y in ca.cells)P=ca.cells[Y],P.edge&&(P.source&&(N=z(J,K.XMLNS,"Connect"),N.setAttribute("FromSheet",B(P.id)),N.setAttribute("FromCell","BeginX"),N.setAttribute("ToSheet",B(P.source.id)),
+H.appendChild(N)),P.target&&(N=z(J,K.XMLNS,"Connect"),N.setAttribute("FromSheet",B(P.id)),N.setAttribute("FromCell","EndX"),N.setAttribute("ToSheet",B(P.target.id)),H.appendChild(N)));J.appendChild(M);L.restore();return J}function C(H,N,J,M){H.file(N,(M?"":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>')+mxUtils.getXml(J,"\n"))}function I(H,N,J,M){var T=mxUtils.createXmlDocument(),ca=mxUtils.createXmlDocument(),V=z(T,K.XMLNS,"Pages");V.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",
+K.XMLNS);V.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:r",K.XMLNS_R);var P=z(ca,K.RELS_XMLNS,"Relationships"),ea=1,Y;for(Y in N){var sa="page"+ea+".xml",oa=z(T,K.XMLNS,"Page");oa.setAttribute("ID",ea-1);oa.setAttribute("NameU",Y);oa.setAttribute("Name",Y);var Ra=z(T,K.XMLNS,"PageSheet"),la=M[Y];Ra.appendChild(h("PageWidth",la.pageWidth,T));Ra.appendChild(h("PageHeight",la.pageHeight,T));Ra.appendChild(c("PageScale",la.pageScale,T));Ra.appendChild(c("DrawingScale",1,T));la=z(T,K.XMLNS,"Rel");
+la.setAttributeNS(K.XMLNS_R,"r:id","rId"+ea);var Sa=z(T,K.XMLNS,"Section");Sa.setAttribute("N","Layer");for(var Xa=J[Y],sc=0;sc<Xa.length;sc++){var yb=z(T,K.XMLNS,"Row");yb.setAttribute("IX",sc+"");Sa.appendChild(yb);yb.appendChild(c("Name",Xa[sc].name,T));yb.appendChild(c("Color","255",T));yb.appendChild(c("Status","0",T));yb.appendChild(c("Visible",Xa[sc].visible?"1":"0",T));yb.appendChild(c("Print","1",T));yb.appendChild(c("Active","0",T));yb.appendChild(c("Lock",Xa[sc].locked?"1":"0",T));yb.appendChild(c("Snap",
+"1",T));yb.appendChild(c("Glue","1",T));yb.appendChild(c("NameUniv",Xa[sc].name,T));yb.appendChild(c("ColorTrans","0",T))}Ra.appendChild(Sa);oa.appendChild(Ra);oa.appendChild(la);V.appendChild(oa);oa=z(ca,K.RELS_XMLNS,"Relationship");oa.setAttribute("Id","rId"+ea);oa.setAttribute("Type",K.PAGES_TYPE);oa.setAttribute("Target",sa);P.appendChild(oa);C(H,K.VISIO_PAGES+sa,N[Y]);ea++}T.appendChild(V);ca.appendChild(P);C(H,K.VISIO_PAGES+"pages.xml",T);C(H,K.VISIO_PAGES+"_rels/pages.xml.rels",ca)}function Q(H,
+N){N=K.VISIO_PAGES_RELS+"page"+N+".xml.rels";var J=mxUtils.createXmlDocument(),M=z(J,K.RELS_XMLNS,"Relationships"),T=z(J,K.RELS_XMLNS,"Relationship");T.setAttribute("Type","http://schemas.microsoft.com/visio/2010/relationships/master");T.setAttribute("Id","rId1");T.setAttribute("Target","../masters/master1.xml");M.appendChild(T);var ca=L.images;if(0<ca.length)for(var V=0;V<ca.length;V++)T=z(J,K.RELS_XMLNS,"Relationship"),T.setAttribute("Type",K.XMLNS_R+"/image"),T.setAttribute("Id","rId"+(V+2)),T.setAttribute("Target",
+"../media/"+ca[V]),M.appendChild(T);J.appendChild(M);C(H,N,J)}var K=this,L=new mxVsdxCanvas2D,S={},R=1;this.exportCurrentDiagrams=function(H){try{if(g.spinner.spin(document.body,mxResources.get("exporting"))){var N=function(la,Sa){la=la.model.getChildCells(la.model.root);T[Sa]=[];for(var Xa=0;Xa<la.length;Xa++)la[Xa].visible&&T[Sa].push({name:la[Xa].value||"Background",visible:la[Xa].visible,locked:la[Xa].style&&0<=la[Xa].style.indexOf("locked=1")})},J=new JSZip;L.init(J);S={};R=1;var M={},T={},ca=
+{},V=null!=g.pages?g.pages.length:1;if(null!=g.pages){var P=function(la){la=la.getName();var Sa=g.editor.graph,Xa=m(Sa);M[la]=A(Sa,Xa);N(Sa,la);Q(J,sa+1);ca[la]=Xa},ea=g.editor.graph.getSelectionCells(),Y=g.currentPage;if(H)P(Y);else{for(var sa=0;sa<g.pages.length;sa++){var oa=g.pages[sa];g.currentPage!=oa&&g.selectPage(oa,!0);P(oa)}Y!=g.currentPage&&g.selectPage(Y,!0);g.editor.graph.setSelectionCells(ea)}}else{P=g.editor.graph;var Ra=m(P);M.Page1=A(P,Ra);N(P,"Page1");Q(J,1);ca.Page1=Ra}y(J,V);I(J,
+M,T,ca);H=function(){J.generateAsync({type:"base64"}).then(function(la){g.spinner.stop();var Sa=g.getBaseFilename();g.saveData(Sa+".vsdx","vsdx",la,"application/vnd.visio2013",!0)})};0<L.filesLoading?L.onFilesLoaded=H:H()}return!0}catch(la){return console.log(la),g.spinner.stop(),!1}}}VsdxExport.prototype.CONVERSION_FACTOR=101.6;VsdxExport.prototype.PAGES_TYPE="http://schemas.microsoft.com/visio/2010/relationships/page";VsdxExport.prototype.RELS_XMLNS="http://schemas.openxmlformats.org/package/2006/relationships";
VsdxExport.prototype.XML_SPACE="preserve";VsdxExport.prototype.XMLNS_R="http://schemas.openxmlformats.org/officeDocument/2006/relationships";VsdxExport.prototype.XMLNS="http://schemas.microsoft.com/office/visio/2012/main";VsdxExport.prototype.VISIO_PAGES="visio/pages/";VsdxExport.prototype.PREFEX="com/mxgraph/io/vsdx/resources/export/";VsdxExport.prototype.VSDX_ENC="ISO-8859-1";VsdxExport.prototype.PART_NAME="PartName";VsdxExport.prototype.CONTENT_TYPES_XML="[Content_Types].xml";
VsdxExport.prototype.VISIO_PAGES_RELS="visio/pages/_rels/";
VsdxExport.prototype.ARROWS_MAP={"none|1":0,"none|0":0,"open|1":1,"open|0":1,"block|1":4,"block|0":14,"classic|1":5,"classic|0":17,"oval|1":10,"oval|0":20,"diamond|1":11,"diamond|0":22,"blockThin|1":2,"blockThin|0":15,"dash|1":23,"dash|0":23,"ERone|1":24,"ERone|0":24,"ERmandOne|1":25,"ERmandOne|0":25,"ERmany|1":27,"ERmany|0":27,"ERoneToMany|1":28,"ERoneToMany|0":28,"ERzeroToMany|1":29,"ERzeroToMany|0":29,"ERzeroToOne|1":30,"ERzeroToOne|0":30,"openAsync|1":9,"openAsync|0":9};function mxVsdxCanvas2D(){mxAbstractCanvas2D.call(this)}mxUtils.extend(mxVsdxCanvas2D,mxAbstractCanvas2D);mxVsdxCanvas2D.prototype.textEnabled=!0;mxVsdxCanvas2D.prototype.init=function(g){this.filesLoading=0;this.zip=g};mxVsdxCanvas2D.prototype.onFilesLoaded=function(){};mxVsdxCanvas2D.prototype.createElt=function(g){return null!=this.xmlDoc.createElementNS?this.xmlDoc.createElementNS(VsdxExport.prototype.XMLNS,g):this.xmlDoc.createElement(g)};
@@ -15446,15 +15446,15 @@ mxVsdxCanvas2D.prototype.image=function(g,y,z,B,m,h,c,a){var b=this,d="image"+(t
var k=!1;0==f.indexOf("svg")&&(f="png",k=!0);d+=f;h=new XMLHttpRequest;h.open("GET",m,!0);h.responseType="arraybuffer";h.onreadystatechange=function(n){if(4==this.readyState&&(200==this.status&&(k?b.convertSvg2Png(this.response,!1,function(q){b.zip.file("visio/media/"+d,q.substring(22),{base64:!0})}):b.zip.file("visio/media/"+d,this.response)),b.filesLoading--,0==b.filesLoading))b.onFilesLoaded()};h.send()}this.images.push(d);this.shapeImg={type:f,id:this.images.length+1};m=this.state;z*=m.scale;
B*=m.scale;f=this.xmGeo;g=(g-f.x+m.dx)*m.scale;y=(f.height-y+f.y-m.dy)*m.scale;this.shape.appendChild(this.createCellElemScaled("ImgOffsetX",g));this.shape.appendChild(this.createCellElemScaled("ImgOffsetY",y-B));this.shape.appendChild(this.createCellElemScaled("ImgWidth",z));this.shape.appendChild(this.createCellElemScaled("ImgHeight",B))};
mxVsdxCanvas2D.prototype.text=function(g,y,z,B,m,h,c,a,b,d,f,k,n){var q=this;if(this.textEnabled&&null!=m){mxUtils.isNode(m)&&(m=mxUtils.getOuterHtml(m));0==z&&0==B&&(B=mxUtils.getSizeForString(m,q.cellState.style.fontSize,q.cellState.style.fontFamily),z=2*B.width,B=2*B.height);"html"==b&&("0"!=mxUtils.getValue(this.cellState.style,"nl2Br","1")&&(m=m.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n")),null==this.html2txtDiv&&(this.html2txtDiv=document.createElement("div")),this.html2txtDiv.innerHTML=Graph.sanitizeHtml(m),
-m=mxUtils.extractTextWithWhitespace(this.html2txtDiv.childNodes));d=this.state;f=this.xmGeo;z*=d.scale;B*=d.scale;var t=this.createElt("Section");t.setAttribute("N","Character");var A=this.createElt("Section");A.setAttribute("N","Paragraph");var C=this.createElt("Text"),I=0,N=0,K=0,O=0,S=0,H=0,J=0,M=function(R,U,ia,ba,qa){var sa=R.fontSize,Fa=R.fontFamily,pa=mxUtils.getSizeForString(qa,sa,Fa);a&&pa.width>z&&(pa=mxUtils.getSizeForString(qa,sa,Fa,z));R.blockElem?(S+=pa.width,K=Math.min(Math.max(K,S),
-z),S=0,H=Math.max(H,pa.height),O+=H+J,J=H,H=0):(S+=pa.width,K=Math.min(Math.max(K,S),z),H=Math.max(H,pa.height),O=Math.max(O,H));pa=q.createElt("Row");pa.setAttribute("IX",I);R.fontColor&&pa.appendChild(q.createCellElem("Color",mxUtils.rgba2hex(R.fontColor)));sa&&pa.appendChild(q.createCellElemScaled("Size",.97*sa));Fa&&pa.appendChild(q.createCellElem("Font",Fa));sa=0;R.bold&&(sa|=17);R.italic&&(sa|=34);R.underline&&(sa|=4);pa.appendChild(q.createCellElem("Style",sa));pa.appendChild(q.createCellElem("Case",
-"0"));pa.appendChild(q.createCellElem("Pos","0"));pa.appendChild(q.createCellElem("FontScale","1"));pa.appendChild(q.createCellElem("Letterspace","0"));U.appendChild(pa);U=q.createElt("Row");U.setAttribute("IX",N);switch(R.align){case "left":sa=0;break;case "center":sa=1;break;case "right":sa=2;break;case "start":sa=0;break;case "end":sa=2;break;case "justify":sa=0;break;default:sa=1}U.appendChild(q.createCellElem("HorzAlign",sa));ia.appendChild(U);ia=q.createElt("cp");ia.setAttribute("IX",I++);ba.appendChild(ia);
-R=q.xmlDoc.createTextNode(qa+(R.blockElem?"\n":""));ba.appendChild(R)},L=function(R,U){U=U||{};for(var ia=0;ia<R.length;ia++){var ba=R[ia];if(3==ba.nodeType){var qa=q.cellState.style.fontStyle;qa={fontColor:U.fontColor||q.cellState.style.fontColor,fontSize:U.fontSize||q.cellState.style.fontSize,fontFamily:U.fontFamily||q.cellState.style.fontFamily,align:U.align||q.cellState.style.align,bold:U.bold||qa&1,italic:U.italic||qa&2,underline:U.underline||qa&4};var sa=!1;ia+1<R.length&&"BR"==R[ia+1].nodeName.toUpperCase()&&
-(sa=!0,ia++);M(qa,t,A,C,(U.OL?U.LiIndex+". ":"")+ba.textContent+(sa?"\n":""))}else if(1==ba.nodeType){sa=ba.nodeName.toUpperCase();var Fa=ba.childNodes.length;qa=window.getComputedStyle(ba,null);qa={bold:"bold"==qa.getPropertyValue("font-weight")||U.bold,italic:"italic"==qa.getPropertyValue("font-style")||U.italic,underline:0<=qa.getPropertyValue("text-decoration").indexOf("underline")||U.underline,align:qa.getPropertyValue("text-align"),fontColor:qa.getPropertyValue("color"),fontSize:parseFloat(qa.getPropertyValue("font-size")),
-fontFamily:qa.getPropertyValue("font-family").replace(/"/g,""),blockElem:"block"==qa.getPropertyValue("display")||"BR"==sa||"LI"==sa,OL:U.OL,LiIndex:U.LiIndex};if("UL"==sa){var pa=q.createElt("Row");pa.setAttribute("IX",N);pa.appendChild(q.createCellElem("HorzAlign","0"));pa.appendChild(q.createCellElem("Bullet","1"));A.appendChild(pa);pa=q.createElt("pp");pa.setAttribute("IX",N++);C.appendChild(pa)}else"OL"==sa?qa.OL=!0:"LI"==sa&&(qa.LiIndex=ia+1);0<Fa?(L(ba.childNodes,qa),"UL"==sa&&(pa=q.createElt("Row"),
-pa.setAttribute("IX",N),pa.appendChild(q.createCellElem("Bullet","0")),A.appendChild(pa),pa=q.createElt("pp"),pa.setAttribute("IX",N++),C.appendChild(pa)),M(qa,t,A,C,"")):M(qa,t,A,C,(U.OL?U.LiIndex+". ":"")+ba.textContent)}}};"html"==b&&mxClient.IS_SVG?(m=this.cellState.text.node.getElementsByTagName("div")[mxClient.NO_FO?0:1],null!=m&&L(m.childNodes,{})):M({fontColor:q.cellState.style.fontColor,fontSize:q.cellState.style.fontSize,fontFamily:q.cellState.style.fontFamily},t,A,C,m);b=m=0;B=Math.max(B,
-O);z=Math.max(z,K);n=z/2;var Q=B/2,ca=parseInt(mxUtils.getValue(this.cellState.style,"rotation","0")),W=ca*Math.PI/180;switch(h){case "right":0!=ca?(g-=n*Math.cos(W),y-=n*Math.sin(W)):m=K/2;break;case "left":0!=ca?(g+=n*Math.cos(W),y+=n*Math.sin(W)):m=-K/2}switch(c){case "top":0!=ca?(g+=Q*Math.sin(W),y+=Q*Math.cos(W)):b=O/2;break;case "bottom":0!=ca?(g-=Q*Math.sin(W),y-=Q*Math.cos(W)):b=-O/2}g=(g-f.x+d.dx)*d.scale;y=(f.height-y+f.y-d.dy)*d.scale;this.shape.appendChild(this.createCellElemScaled("TxtPinX",
-g));this.shape.appendChild(this.createCellElemScaled("TxtPinY",y));this.shape.appendChild(this.createCellElemScaled("TxtWidth",z));this.shape.appendChild(this.createCellElemScaled("TxtHeight",B));this.shape.appendChild(this.createCellElemScaled("TxtLocPinX",n+m));this.shape.appendChild(this.createCellElemScaled("TxtLocPinY",Q+b));k-=ca;0!=k&&this.shape.appendChild(this.createCellElem("TxtAngle",(360-k)*Math.PI/180));this.shape.appendChild(t);this.shape.appendChild(A);this.shape.appendChild(C)}};
+m=mxUtils.extractTextWithWhitespace(this.html2txtDiv.childNodes));d=this.state;f=this.xmGeo;z*=d.scale;B*=d.scale;var t=this.createElt("Section");t.setAttribute("N","Character");var A=this.createElt("Section");A.setAttribute("N","Paragraph");var C=this.createElt("Text"),I=0,Q=0,K=0,L=0,S=0,R=0,H=0,N=function(V,P,ea,Y,sa){var oa=V.fontSize,Ra=V.fontFamily,la=mxUtils.getSizeForString(sa,oa,Ra);a&&la.width>z&&(la=mxUtils.getSizeForString(sa,oa,Ra,z));V.blockElem?(S+=la.width,K=Math.min(Math.max(K,S),
+z),S=0,R=Math.max(R,la.height),L+=R+H,H=R,R=0):(S+=la.width,K=Math.min(Math.max(K,S),z),R=Math.max(R,la.height),L=Math.max(L,R));la=q.createElt("Row");la.setAttribute("IX",I);V.fontColor&&la.appendChild(q.createCellElem("Color",mxUtils.rgba2hex(V.fontColor)));oa&&la.appendChild(q.createCellElemScaled("Size",.97*oa));Ra&&la.appendChild(q.createCellElem("Font",Ra));oa=0;V.bold&&(oa|=17);V.italic&&(oa|=34);V.underline&&(oa|=4);la.appendChild(q.createCellElem("Style",oa));la.appendChild(q.createCellElem("Case",
+"0"));la.appendChild(q.createCellElem("Pos","0"));la.appendChild(q.createCellElem("FontScale","1"));la.appendChild(q.createCellElem("Letterspace","0"));P.appendChild(la);P=q.createElt("Row");P.setAttribute("IX",Q);switch(V.align){case "left":oa=0;break;case "center":oa=1;break;case "right":oa=2;break;case "start":oa=0;break;case "end":oa=2;break;case "justify":oa=0;break;default:oa=1}P.appendChild(q.createCellElem("HorzAlign",oa));ea.appendChild(P);ea=q.createElt("cp");ea.setAttribute("IX",I++);Y.appendChild(ea);
+V=q.xmlDoc.createTextNode(sa+(V.blockElem?"\n":""));Y.appendChild(V)},J=function(V,P){P=P||{};for(var ea=0;ea<V.length;ea++){var Y=V[ea];if(3==Y.nodeType){var sa=q.cellState.style.fontStyle;sa={fontColor:P.fontColor||q.cellState.style.fontColor,fontSize:P.fontSize||q.cellState.style.fontSize,fontFamily:P.fontFamily||q.cellState.style.fontFamily,align:P.align||q.cellState.style.align,bold:P.bold||sa&1,italic:P.italic||sa&2,underline:P.underline||sa&4};var oa=!1;ea+1<V.length&&"BR"==V[ea+1].nodeName.toUpperCase()&&
+(oa=!0,ea++);N(sa,t,A,C,(P.OL?P.LiIndex+". ":"")+Y.textContent+(oa?"\n":""))}else if(1==Y.nodeType){oa=Y.nodeName.toUpperCase();var Ra=Y.childNodes.length;sa=window.getComputedStyle(Y,null);sa={bold:"bold"==sa.getPropertyValue("font-weight")||P.bold,italic:"italic"==sa.getPropertyValue("font-style")||P.italic,underline:0<=sa.getPropertyValue("text-decoration").indexOf("underline")||P.underline,align:sa.getPropertyValue("text-align"),fontColor:sa.getPropertyValue("color"),fontSize:parseFloat(sa.getPropertyValue("font-size")),
+fontFamily:sa.getPropertyValue("font-family").replace(/"/g,""),blockElem:"block"==sa.getPropertyValue("display")||"BR"==oa||"LI"==oa,OL:P.OL,LiIndex:P.LiIndex};if("UL"==oa){var la=q.createElt("Row");la.setAttribute("IX",Q);la.appendChild(q.createCellElem("HorzAlign","0"));la.appendChild(q.createCellElem("Bullet","1"));A.appendChild(la);la=q.createElt("pp");la.setAttribute("IX",Q++);C.appendChild(la)}else"OL"==oa?sa.OL=!0:"LI"==oa&&(sa.LiIndex=ea+1);0<Ra?(J(Y.childNodes,sa),"UL"==oa&&(la=q.createElt("Row"),
+la.setAttribute("IX",Q),la.appendChild(q.createCellElem("Bullet","0")),A.appendChild(la),la=q.createElt("pp"),la.setAttribute("IX",Q++),C.appendChild(la)),N(sa,t,A,C,"")):N(sa,t,A,C,(P.OL?P.LiIndex+". ":"")+Y.textContent)}}};"html"==b&&mxClient.IS_SVG?(m=this.cellState.text.node.getElementsByTagName("div")[mxClient.NO_FO?0:1],null!=m&&J(m.childNodes,{})):N({fontColor:q.cellState.style.fontColor,fontSize:q.cellState.style.fontSize,fontFamily:q.cellState.style.fontFamily},t,A,C,m);b=m=0;B=Math.max(B,
+L);z=Math.max(z,K);n=z/2;var M=B/2,T=parseInt(mxUtils.getValue(this.cellState.style,"rotation","0")),ca=T*Math.PI/180;switch(h){case "right":0!=T?(g-=n*Math.cos(ca),y-=n*Math.sin(ca)):m=K/2;break;case "left":0!=T?(g+=n*Math.cos(ca),y+=n*Math.sin(ca)):m=-K/2}switch(c){case "top":0!=T?(g+=M*Math.sin(ca),y+=M*Math.cos(ca)):b=L/2;break;case "bottom":0!=T?(g-=M*Math.sin(ca),y-=M*Math.cos(ca)):b=-L/2}g=(g-f.x+d.dx)*d.scale;y=(f.height-y+f.y-d.dy)*d.scale;this.shape.appendChild(this.createCellElemScaled("TxtPinX",
+g));this.shape.appendChild(this.createCellElemScaled("TxtPinY",y));this.shape.appendChild(this.createCellElemScaled("TxtWidth",z));this.shape.appendChild(this.createCellElemScaled("TxtHeight",B));this.shape.appendChild(this.createCellElemScaled("TxtLocPinX",n+m));this.shape.appendChild(this.createCellElemScaled("TxtLocPinY",M+b));k-=T;0!=k&&this.shape.appendChild(this.createCellElem("TxtAngle",(360-k)*Math.PI/180));this.shape.appendChild(t);this.shape.appendChild(A);this.shape.appendChild(C)}};
mxVsdxCanvas2D.prototype.rotate=function(g,y,z,B,m){0!=g&&(y=this.state,B+=y.dx,m+=y.dy,B*=y.scale,m*=y.scale,this.shape.appendChild(this.createCellElem("Angle",(360-g)*Math.PI/180)),y.rotation+=g,y.rotationCx=B,y.rotationCy=m)};mxVsdxCanvas2D.prototype.stroke=function(){this.geoSec.appendChild(this.createCellElem("NoFill","1"));this.geoSec.appendChild(this.createCellElem("NoLine","0"))};
mxVsdxCanvas2D.prototype.fill=function(){this.geoSec.appendChild(this.createCellElem("NoFill","0"));this.geoSec.appendChild(this.createCellElem("NoLine","1"))};mxVsdxCanvas2D.prototype.fillAndStroke=function(){this.geoSec.appendChild(this.createCellElem("NoFill","0"));this.geoSec.appendChild(this.createCellElem("NoLine","0"))};function BmpDecoder(g,y){this.pos=0;this.buffer=g;this.is_with_alpha=!!y;if(66!=this.buffer[0]&&77!=this.buffer[1])throw Error("Invalid BMP File");this.pos+=2;this.parseHeader();this.parseBGR()}
BmpDecoder.prototype.parseHeader=function(){var g=this.buffer;this.fileSize=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.reserved=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.offset=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.headerSize=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.width=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];
@@ -15471,54 +15471,54 @@ BmpDecoder.prototype.bit32=function(){for(var g=this.height-1;0<=g;g--)for(var y
(function(g){(function(y){(function(z){var B=function(){function m(c){this.RESPONSE_END="</mxfile>";this.RESPONSE_DIAGRAM_START="";this.RESPONSE_DIAGRAM_END="</diagram>";this.RESPONSE_HEADER='<?xml version="1.0" encoding="UTF-8"?><mxfile>';this.vertexMap={};this.edgeShapeMap={};this.vertexShapeMap={};this.parentsMap={};this.layerNames=[];this.debugPaths=!1;this.vsdxModel=null;this.editorUi=c;this.shapeIndexShift=0}function h(c,a,b,d,f){c=b.createLabelSubShape(c,a);null!=c&&(0!==d&&(a=c.getStyle().match(/;rotation=(\d+\.*\d+)/),
null!=a&&(d+=parseFloat(a[1])),c.setStyle(c.getStyle().replace(/;rotation=(\d+\.*\d+)/,"")+";rotation="+(60<d&&240>d?(d+180)%360:d))),d=c.getGeometry(),d.x=0,d.y=0,d.relative=!0,f=f||new mxPoint(0,0),d.offset=new mxPoint(f.x-d.width/2,f.y-d.height/2))}m.vsdxPlaceholder_$LI$=function(){null==m.vsdxPlaceholder&&(m.vsdxPlaceholder=window.atob?atob("dmlzaW8="):Base64.decode("dmlzaW8=",!0));return m.vsdxPlaceholder};m.parsererrorNS_$LI$=function(){m.parsererrorNS=mxConstants.NS_XHTML;return m.parsererrorNS};
m.parseXml=function(c){try{var a=mxUtils.parseXml(c);return 0<a.getElementsByTagNameNS(m.parsererrorNS,"parsererror").length?null:a}catch(b){return null}};m.decodeUTF16LE=function(c){for(var a="",b=0;b<c.length;b+=2)a+=String.fromCharCode(c.charCodeAt(b)|c.charCodeAt(b+1)<<8);return a};m.prototype.scaleGraph=function(c,a){if(1!==a){c=c.getModel();for(var b in c.cells){var d=c.cells[b],f=c.getGeometry(d);if(null!=f&&(this.scaleRect(f,a),this.scaleRect(f.alternateBounds,a),c.isEdge(d)&&(this.scalePoint(f.sourcePoint,
-a),this.scalePoint(f.targetPoint,a),this.scalePoint(f.offset,a),d=f.points,null!=d)))for(f=0;f<d.length;f++)this.scalePoint(d[f],a)}}};m.incorrectXMLReqExp=[{regExp:/&(?!amp;|lt;|gt;|quot;|#)/g,repl:"&amp;"}];m.prototype.decodeVsdx=function(c,a,b,d){function f(K,O,S){function H(){C++;I();O++;O==J&&f(K,O,S)}for(var J=Math.min(O+N,K.length),M=O;M<J;M++)(function(L){function Q(W){var R=new FormData;R.append("img",W,L.name);R.append("inputformat","emf");R.append("outputformat","png");var U=new XMLHttpRequest;
-U.open("POST",EMF_CONVERT_URL);U.responseType="blob";k.editorUi.addRemoteServiceSecurityCheck(U);U.onreadystatechange=mxUtils.bind(this,function(){if(4==U.readyState)if(200<=U.status&&299>=U.status)try{var ia=new FileReader;ia.readAsDataURL(U.response);ia.onloadend=function(){var ba=ia.result.indexOf(",")+1;S[L.name]=ia.result.substr(ba);H()}}catch(ba){console.log(ba),H()}else ca++,3>ca?Q(W):H()});U.send(R)}var ca=0;L.async("blob").then(Q)})(K[M])}var k=this,n={},q={},t=function(){function K(){J=
-J.concat(k.RESPONSE_END);a&&a(J)}for(var O=m.vsdxPlaceholder+"/document.xml",S=n[O]?n[O]:null,H=S.firstChild;null!=H&&1!=H.nodeType;)H=H.nextSibling;if(null!=H&&1==H.nodeType)k.importNodes(S,H,O,n);else return null;k.vsdxModel=new g.mxgraph.io.vsdx.mxVsdxModel(S,n,q);O=k.vsdxModel.getPages();var J=k.RESPONSE_HEADER;var M=function(W){null==W.entries&&(W.entries=[]);return W.entries}(O);m.pageTitleMap={};m.pageIdsSet={};try{for(O=0;O<M.length;O++){var L=M[O].getValue();m.pageTitleMap[L.getPageName()]=
-L.getPageNameU();m.pageIdsSet[L.getPageNameU()]=!0}}catch(W){}var Q=function(W,R){var U=M[W].getValue(),ia=ca.createMxGraph();ia.getModel().beginUpdate();ca.importPage(U,ia,ia.getDefaultParent(),!0);ca.scaleGraph(ia,U.getPageScale()/U.getDrawingScale());ia.getModel().endUpdate();ca.postImportPage(U,ia,function(){ca.sanitiseGraph(ia);J=J.concat(k.RESPONSE_DIAGRAM_START);J=J.concat(k.processPage(ia,U));J=J.concat(k.RESPONSE_DIAGRAM_END);W<M.length-1?Q(W+1,R):R()})},ca=k;0<M.length?Q(0,K):K()},A=0,C=
-0,I=function(){if(C==A)try{t()}catch(K){console.log(K),null!=d?d(K):a("")}},N=window.EMF_CHUNK_SIZE||10;JSZip.loadAsync(c).then(function(K){if(0==Object.keys(K.files).length)null!=d&&d();else{var O=[];K.forEach(function(S,H){var J=H.name;S=J.toLowerCase();var M=S.length;S.indexOf(".xml")==M-4||S.indexOf(".rels")==M-5?(A++,H.async("string").then(function(L){if(0!==L.length){65279==L.charCodeAt(0)&&(L=L.substring(1));var Q=m.parseXml(L);if(null==Q)if(0===L.charCodeAt(1)&&0===L.charCodeAt(3)&&0===L.charCodeAt(5))Q=
-m.parseXml(m.decodeUTF16LE(L));else{for(Q=0;Q<m.incorrectXMLReqExp.length;Q++)m.incorrectXMLReqExp[Q].regExp.test(L)&&(L=L.replace(m.incorrectXMLReqExp[Q].regExp,m.incorrectXMLReqExp[Q].repl));Q=m.parseXml(L)}null!=Q&&(Q.vsdxFileName=J,n[J]=Q)}C++;I()})):0===S.indexOf(m.vsdxPlaceholder+"/media")&&(A++,function(L,Q){var ca=L.length-Q.length;L=L.indexOf(Q,ca);return-1!==L&&L===ca}(S,".emf")?JSZip.support.blob&&window.EMF_CONVERT_URL?O.push(H):(C++,I()):function(L,Q){var ca=L.length-Q.length;L=L.indexOf(Q,
-ca);return-1!==L&&L===ca}(S,".bmp")?JSZip.support.uint8array&&H.async("uint8array").then(function(L){L=new BmpDecoder(L);var Q=document.createElement("canvas");Q.width=L.width;Q.height=L.height;Q.getContext("2d").putImageData(L.imageData,0,0);L=Q.toDataURL("image/jpeg");q[J]=L.substr(23);C++;I()}):H.async("base64").then(function(L){q[J]=L;C++;I()}))});f(O,0,q)}},function(K){null!=d&&d(K)})};m.prototype.createMxGraph=function(){var c=new Graph;c.setExtendParents(!1);c.setExtendParentsOnAdd(!1);c.setConstrainChildren(!1);
-c.setHtmlLabels(!0);c.getModel().maintainEdgeParent=!1;return c};m.prototype.processPage=function(c,a){c=(new mxCodec).encode(c.getModel());c.setAttribute("style","default-style2");c=mxUtils.getXml(c);var b="";if(null!=a){var d=mxUtils.htmlEntities(a.getPageName())+(a.isBackground()?" (Background)":"");a=mxUtils.htmlEntities(a.getPageNameU());b+='<diagram name="'+d+'" id="'+a.replace(/\s/g,"_")+'">'}return b+=Graph.compress(c)};m.prototype.scalePoint=function(c,a){null!=c&&(c.x*=a,c.y*=a);return c};
-m.prototype.scaleRect=function(c,a){null!=c&&(c.x*=a,c.y*=a,c.height*=a,c.width*=a);return c};m.prototype.importNodes=function(c,a,b,d){var f=b.lastIndexOf("/"),k=b,n=b;if(-1!==f&&(k=b.substring(0,f),n=b.substring(f+1,b.length),b=function(C,I){return C[I]?C[I]:null}(d,k+"/_rels/"+n+".rels"),null!=b)){var q=b.getElementsByTagName("Relationship");b={};for(f=0;f<q.length;f++){n=q.item(f);var t=n.getAttribute("Id");n=n.getAttribute("Target");b[t]=n}a=a.getElementsByTagName("Rel");for(f=0;f<a.length;f++)if(q=
-a.item(f),n=function(C,I){return C[I]?C[I]:null}(b,q.getAttribute("r:id")),n=k+"/"+n,null!=n&&(t=d[n]?d[n]:null,null!=t)){q=q.parentNode;for(t=t.firstChild;null!=t&&1!=t.nodeType;)t=t.nextSibling;if(null!=t&&1==t.nodeType)for(t=t.firstChild;null!=t;){if(null!=t&&1==t.nodeType){var A=q.appendChild(c.importNode(t,!0));this.importNodes(c,A,n,d)}t=t.nextSibling}}}};m.prototype.layerIndexToNames=function(c){var a=[];if(c)for(var b=0;b<c.length;b++){var d=parseInt(c[b]);d<this.layerNames.length&&a.push(this.layerNames[d])}return 0<
-a.length?a:[mxResources.get("background")]};m.prototype.importPage=function(c,a,b,d){var f=c.getBackPage();if(null!=f){a.getModel().setValue(a.getDefaultParent(),c.getPageName());var k=new mxCell(f.getPageName());a.addCell(k,a.getModel().getRoot(),0,null,null);this.importPage(f,a,a.getDefaultParent())}var n=c.getLayers();k=c.getShapes();f=[];for(var q=0;q<n.length;q++){var t=n[q],A=t.Name.replace(/\s/g,"_");this.layerNames.push(A);0==t.Visible&&f.push(A)}t=function(C){var I=0;return{next:function(){return I<
-C.length?C[I++]:null},hasNext:function(){return I<C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(k));k=c.getPageDimensions().y;for(q=c.getId();t.hasNext();)n=t.next(),n=n.getValue(),A=this.addShape(a,n,b,q,k),n=this.layerIndexToNames(n.layerMember),null!=A&&null!=n&&a.addTagsForCells([A],n);for(c=function(C){var I=0;return{next:function(){return I<C.length?C[I++]:null},hasNext:function(){return I<C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(c.getConnects()));c.hasNext();)n=
-c.next(),n=this.addConnectedEdge(a,n.getValue(),q,k),null!=n&&function(C,I){null==C.entries&&(C.entries=[]);for(var N=0;N<C.entries.length;N++)if(null!=C.entries[N].key.equals&&C.entries[N].key.equals(I)||C.entries[N].key===I)return C.entries.splice(N,1)[0]}(this.edgeShapeMap,n);for(c=function(C){var I=0;return{next:function(){return I<C.length?C[I++]:null},hasNext:function(){return I<C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(this.edgeShapeMap));c.hasNext();)n=c.next(),
-n.getKey().getPageNumber()===q&&(t=this.addUnconnectedEdge(a,function(C,I){null==C.entries&&(C.entries=[]);for(var N=0;N<C.entries.length;N++)if(null!=C.entries[N].key.equals&&C.entries[N].key.equals(I)||C.entries[N].key===I)return C.entries[N].value;return null}(this.parentsMap,n.getKey()),n.getValue(),k),n=this.layerIndexToNames(n.getValue().layerMember),null!=n&&a.addTagsForCells([t],n));if(0<this.layerNames.length){c=a.getAllTags();q=!1;for(n=0;n<this.layerNames.length;n++)if(0>mxUtils.indexOf(c,
-this.layerNames[n])){q=!0;break}q&&(b=a.insertVertex(b,null,null,0,0,0,0),a.addTagsForCells([b],this.layerNames),b.setVisible(!1));a.setHiddenTags(f)}d||this.sanitiseGraph(a);return k};m.prototype.postImportPage=function(c,a,b){try{var d=function(q){if(null!=q){q=q.entries||[];for(var t=0;t<q.length;t++){var A=q[t].value||{};A.toBeCroppedImg&&k.push(A);d(A.getChildShapes())}}},f=this,k=[];d(c.getShapes());if(0<k.length){var n=function(q,t){function A(){q<k.length-1?n(q+1,t):t()}var C=k[q],I=C.toBeCroppedImg,
-N=function(O,S){null==O.entries&&(O.entries=[]);for(var H=0;H<O.entries.length;H++)if(null!=O.entries[H].key.equals&&O.entries[H].key.equals(S)||O.entries[H].key===S)return O.entries[H].value;return null}(f.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(c.Id,C.Id)),K=new Image;K.onload=function(){var O=I.iData,S=I.iType;try{var H=K.width/I.imgWidth,J=K.height/I.imgHeight,M=-I.imgOffsetX*H,L=(I.imgHeight-I.height+I.imgOffsetY)*J,Q=document.createElement("canvas");Q.width=I.width*H;Q.height=I.height*J;
-var ca=Q.getContext("2d");ca.fillStyle="#FFFFFF";ca.fillRect(0,0,Q.width,Q.height);ca.drawImage(K,M,L,Q.width,Q.height,0,0,Q.width,Q.height);O=Q.toDataURL("image/jpeg").substr(23);S="jpg"}catch(W){console.log(W)}N.style+=";image=data:image/"+S+","+O;A()};K.src="data:image/"+I.iType+";base64,"+I.iData;K.onerror=function(){N.style+=";image=data:image/"+I.iType+","+I.iData;A()}};n(0,b)}else b()}catch(q){console.log(q),b()}};m.prototype.addShape=function(c,a,b,d,f){a.parentHeight=f;var k=g.mxgraph.io.vsdx.VsdxShape.getType(a.getShape());
-if(null!=k&&(function(q,t){return q&&q.equals?q.equals(t):q===t}(k,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(q,t){return q&&q.equals?q.equals(t):q===t}(k,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(q,t){return q&&q.equals?q.equals(t):q===t}(k,g.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))){var n=a.getId();if(a.isVertex()){k=null;k=a.isGroup()?this.addGroup(c,a,b,d,f):this.addVertex(c,a,b,d,f);(function(q,t,A){null==q.entries&&(q.entries=[]);for(var C=0;C<q.entries.length;C++)if(null!=
+a),this.scalePoint(f.targetPoint,a),this.scalePoint(f.offset,a),d=f.points,null!=d)))for(f=0;f<d.length;f++)this.scalePoint(d[f],a)}}};m.incorrectXMLReqExp=[{regExp:/&(?!amp;|lt;|gt;|quot;|#)/g,repl:"&amp;"}];m.prototype.decodeVsdx=function(c,a,b,d){function f(K,L,S){function R(){C++;I();L++;L==H&&f(K,L,S)}for(var H=Math.min(L+Q,K.length),N=L;N<H;N++)(function(J){function M(ca){var V=new FormData;V.append("img",ca,J.name);V.append("inputformat","emf");V.append("outputformat","png");var P=new XMLHttpRequest;
+P.open("POST",EMF_CONVERT_URL);P.responseType="blob";k.editorUi.addRemoteServiceSecurityCheck(P);P.onreadystatechange=mxUtils.bind(this,function(){if(4==P.readyState)if(200<=P.status&&299>=P.status)try{var ea=new FileReader;ea.readAsDataURL(P.response);ea.onloadend=function(){var Y=ea.result.indexOf(",")+1;S[J.name]=ea.result.substr(Y);R()}}catch(Y){console.log(Y),R()}else T++,3>T?M(ca):R()});P.send(V)}var T=0;J.async("blob").then(M)})(K[N])}var k=this,n={},q={},t=function(){function K(){H=H.concat(k.RESPONSE_END);
+a&&a(H)}for(var L=m.vsdxPlaceholder+"/document.xml",S=n[L]?n[L]:null,R=S.firstChild;null!=R&&1!=R.nodeType;)R=R.nextSibling;if(null!=R&&1==R.nodeType)k.importNodes(S,R,L,n);else return null;k.vsdxModel=new g.mxgraph.io.vsdx.mxVsdxModel(S,n,q);L=k.vsdxModel.getPages();var H=k.RESPONSE_HEADER;var N=function(ca){null==ca.entries&&(ca.entries=[]);return ca.entries}(L);m.pageTitleMap={};m.pageIdsSet={};try{for(L=0;L<N.length;L++){var J=N[L].getValue();m.pageTitleMap[J.getPageName()]=J.getPageNameU();m.pageIdsSet[J.getPageNameU()]=
+!0}}catch(ca){}var M=function(ca,V){var P=N[ca].getValue(),ea=T.createMxGraph();ea.getModel().beginUpdate();T.importPage(P,ea,ea.getDefaultParent(),!0);T.scaleGraph(ea,P.getPageScale()/P.getDrawingScale());ea.getModel().endUpdate();T.postImportPage(P,ea,function(){T.sanitiseGraph(ea);H=H.concat(k.RESPONSE_DIAGRAM_START);H=H.concat(k.processPage(ea,P));H=H.concat(k.RESPONSE_DIAGRAM_END);ca<N.length-1?M(ca+1,V):V()})},T=k;0<N.length?M(0,K):K()},A=0,C=0,I=function(){if(C==A)try{t()}catch(K){console.log(K),
+null!=d?d(K):a("")}},Q=window.EMF_CHUNK_SIZE||10;JSZip.loadAsync(c).then(function(K){if(0==Object.keys(K.files).length)null!=d&&d();else{var L=[];K.forEach(function(S,R){var H=R.name;S=H.toLowerCase();var N=S.length;S.indexOf(".xml")==N-4||S.indexOf(".rels")==N-5?(A++,R.async("string").then(function(J){if(0!==J.length){65279==J.charCodeAt(0)&&(J=J.substring(1));var M=m.parseXml(J);if(null==M)if(0===J.charCodeAt(1)&&0===J.charCodeAt(3)&&0===J.charCodeAt(5))M=m.parseXml(m.decodeUTF16LE(J));else{for(M=
+0;M<m.incorrectXMLReqExp.length;M++)m.incorrectXMLReqExp[M].regExp.test(J)&&(J=J.replace(m.incorrectXMLReqExp[M].regExp,m.incorrectXMLReqExp[M].repl));M=m.parseXml(J)}null!=M&&(M.vsdxFileName=H,n[H]=M)}C++;I()})):0===S.indexOf(m.vsdxPlaceholder+"/media")&&(A++,function(J,M){var T=J.length-M.length;J=J.indexOf(M,T);return-1!==J&&J===T}(S,".emf")?JSZip.support.blob&&window.EMF_CONVERT_URL?L.push(R):(C++,I()):function(J,M){var T=J.length-M.length;J=J.indexOf(M,T);return-1!==J&&J===T}(S,".bmp")?JSZip.support.uint8array&&
+R.async("uint8array").then(function(J){J=new BmpDecoder(J);var M=document.createElement("canvas");M.width=J.width;M.height=J.height;M.getContext("2d").putImageData(J.imageData,0,0);J=M.toDataURL("image/jpeg");q[H]=J.substr(23);C++;I()}):R.async("base64").then(function(J){q[H]=J;C++;I()}))});f(L,0,q)}},function(K){null!=d&&d(K)})};m.prototype.createMxGraph=function(){var c=new Graph;c.setExtendParents(!1);c.setExtendParentsOnAdd(!1);c.setConstrainChildren(!1);c.setHtmlLabels(!0);c.getModel().maintainEdgeParent=
+!1;return c};m.prototype.processPage=function(c,a){c=(new mxCodec).encode(c.getModel());c.setAttribute("style","default-style2");c=mxUtils.getXml(c);var b="";if(null!=a){var d=mxUtils.htmlEntities(a.getPageName())+(a.isBackground()?" (Background)":"");a=mxUtils.htmlEntities(a.getPageNameU());b+='<diagram name="'+d+'" id="'+a.replace(/\s/g,"_")+'">'}return b+=Graph.compress(c)};m.prototype.scalePoint=function(c,a){null!=c&&(c.x*=a,c.y*=a);return c};m.prototype.scaleRect=function(c,a){null!=c&&(c.x*=
+a,c.y*=a,c.height*=a,c.width*=a);return c};m.prototype.importNodes=function(c,a,b,d){var f=b.lastIndexOf("/"),k=b,n=b;if(-1!==f&&(k=b.substring(0,f),n=b.substring(f+1,b.length),b=function(C,I){return C[I]?C[I]:null}(d,k+"/_rels/"+n+".rels"),null!=b)){var q=b.getElementsByTagName("Relationship");b={};for(f=0;f<q.length;f++){n=q.item(f);var t=n.getAttribute("Id");n=n.getAttribute("Target");b[t]=n}a=a.getElementsByTagName("Rel");for(f=0;f<a.length;f++)if(q=a.item(f),n=function(C,I){return C[I]?C[I]:
+null}(b,q.getAttribute("r:id")),n=k+"/"+n,null!=n&&(t=d[n]?d[n]:null,null!=t)){q=q.parentNode;for(t=t.firstChild;null!=t&&1!=t.nodeType;)t=t.nextSibling;if(null!=t&&1==t.nodeType)for(t=t.firstChild;null!=t;){if(null!=t&&1==t.nodeType){var A=q.appendChild(c.importNode(t,!0));this.importNodes(c,A,n,d)}t=t.nextSibling}}}};m.prototype.layerIndexToNames=function(c){var a=[];if(c)for(var b=0;b<c.length;b++){var d=parseInt(c[b]);d<this.layerNames.length&&a.push(this.layerNames[d])}return 0<a.length?a:[mxResources.get("background")]};
+m.prototype.importPage=function(c,a,b,d){var f=c.getBackPage();if(null!=f){a.getModel().setValue(a.getDefaultParent(),c.getPageName());var k=new mxCell(f.getPageName());a.addCell(k,a.getModel().getRoot(),0,null,null);this.importPage(f,a,a.getDefaultParent())}var n=c.getLayers();k=c.getShapes();f=[];for(var q=0;q<n.length;q++){var t=n[q],A=t.Name.replace(/\s/g,"_");this.layerNames.push(A);0==t.Visible&&f.push(A)}t=function(C){var I=0;return{next:function(){return I<C.length?C[I++]:null},hasNext:function(){return I<
+C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(k));k=c.getPageDimensions().y;for(q=c.getId();t.hasNext();)n=t.next(),n=n.getValue(),A=this.addShape(a,n,b,q,k),n=this.layerIndexToNames(n.layerMember),null!=A&&null!=n&&a.addTagsForCells([A],n);for(c=function(C){var I=0;return{next:function(){return I<C.length?C[I++]:null},hasNext:function(){return I<C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(c.getConnects()));c.hasNext();)n=c.next(),n=this.addConnectedEdge(a,
+n.getValue(),q,k),null!=n&&function(C,I){null==C.entries&&(C.entries=[]);for(var Q=0;Q<C.entries.length;Q++)if(null!=C.entries[Q].key.equals&&C.entries[Q].key.equals(I)||C.entries[Q].key===I)return C.entries.splice(Q,1)[0]}(this.edgeShapeMap,n);for(c=function(C){var I=0;return{next:function(){return I<C.length?C[I++]:null},hasNext:function(){return I<C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(this.edgeShapeMap));c.hasNext();)n=c.next(),n.getKey().getPageNumber()===q&&
+(t=this.addUnconnectedEdge(a,function(C,I){null==C.entries&&(C.entries=[]);for(var Q=0;Q<C.entries.length;Q++)if(null!=C.entries[Q].key.equals&&C.entries[Q].key.equals(I)||C.entries[Q].key===I)return C.entries[Q].value;return null}(this.parentsMap,n.getKey()),n.getValue(),k),n=this.layerIndexToNames(n.getValue().layerMember),null!=n&&a.addTagsForCells([t],n));if(0<this.layerNames.length){c=a.getAllTags();q=!1;for(n=0;n<this.layerNames.length;n++)if(0>mxUtils.indexOf(c,this.layerNames[n])){q=!0;break}q&&
+(b=a.insertVertex(b,null,null,0,0,0,0),a.addTagsForCells([b],this.layerNames),b.setVisible(!1));a.setHiddenTags(f)}d||this.sanitiseGraph(a);return k};m.prototype.postImportPage=function(c,a,b){try{var d=function(q){if(null!=q){q=q.entries||[];for(var t=0;t<q.length;t++){var A=q[t].value||{};A.toBeCroppedImg&&k.push(A);d(A.getChildShapes())}}},f=this,k=[];d(c.getShapes());if(0<k.length){var n=function(q,t){function A(){q<k.length-1?n(q+1,t):t()}var C=k[q],I=C.toBeCroppedImg,Q=function(L,S){null==L.entries&&
+(L.entries=[]);for(var R=0;R<L.entries.length;R++)if(null!=L.entries[R].key.equals&&L.entries[R].key.equals(S)||L.entries[R].key===S)return L.entries[R].value;return null}(f.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(c.Id,C.Id)),K=new Image;K.onload=function(){var L=I.iData,S=I.iType;try{var R=K.width/I.imgWidth,H=K.height/I.imgHeight,N=-I.imgOffsetX*R,J=(I.imgHeight-I.height+I.imgOffsetY)*H,M=document.createElement("canvas");M.width=I.width*R;M.height=I.height*H;var T=M.getContext("2d");T.fillStyle=
+"#FFFFFF";T.fillRect(0,0,M.width,M.height);T.drawImage(K,N,J,M.width,M.height,0,0,M.width,M.height);L=M.toDataURL("image/jpeg").substr(23);S="jpg"}catch(ca){console.log(ca)}Q.style+=";image=data:image/"+S+","+L;A()};K.src="data:image/"+I.iType+";base64,"+I.iData;K.onerror=function(){Q.style+=";image=data:image/"+I.iType+","+I.iData;A()}};n(0,b)}else b()}catch(q){console.log(q),b()}};m.prototype.addShape=function(c,a,b,d,f){a.parentHeight=f;var k=g.mxgraph.io.vsdx.VsdxShape.getType(a.getShape());if(null!=
+k&&(function(q,t){return q&&q.equals?q.equals(t):q===t}(k,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(q,t){return q&&q.equals?q.equals(t):q===t}(k,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(q,t){return q&&q.equals?q.equals(t):q===t}(k,g.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))){var n=a.getId();if(a.isVertex()){k=null;k=a.isGroup()?this.addGroup(c,a,b,d,f):this.addVertex(c,a,b,d,f);(function(q,t,A){null==q.entries&&(q.entries=[]);for(var C=0;C<q.entries.length;C++)if(null!=
q.entries[C].key.equals&&q.entries[C].key.equals(t)||q.entries[C].key===t){q.entries[C].value=A;return}q.entries.push({key:t,value:A,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.vertexShapeMap,new g.mxgraph.io.vsdx.ShapePageId(d,n),a);b=a.getHyperlink();b.pageLink?(d=b.pageLink,m.pageIdsSet[d]||null==m.pageTitleMap[d]||(d=m.pageTitleMap[d]+""),c.setLinkForCell(k,"data:page/id,"+d.replace(/\s/g,"_"))):b.extLink&&c.setLinkForCell(k,b.extLink);a=a.getProperties();
for(b=0;b<a.length;b++)try{c.setAttributeForCell(k,a[b].key,a[b].val)}catch(q){console.log('Attribute: "',a[b].key,'" with value "',a[b].val,'" not allowed in HTML')}return k}a.isGroup()&&this.addGroup(c,a,b,d,f,!0);a.setShapeIndex(c.getModel().getChildCount(b));(function(q,t,A){null==q.entries&&(q.entries=[]);for(var C=0;C<q.entries.length;C++)if(null!=q.entries[C].key.equals&&q.entries[C].key.equals(t)||q.entries[C].key===t){q.entries[C].value=A;return}q.entries.push({key:t,value:A,getKey:function(){return this.key},
getValue:function(){return this.value}})})(this.edgeShapeMap,new g.mxgraph.io.vsdx.ShapePageId(d,n),a);(function(q,t,A){null==q.entries&&(q.entries=[]);for(var C=0;C<q.entries.length;C++)if(null!=q.entries[C].key.equals&&q.entries[C].key.equals(t)||q.entries[C].key===t){q.entries[C].value=A;return}q.entries.push({key:t,value:A,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.parentsMap,new g.mxgraph.io.vsdx.ShapePageId(d,n),b)}return null};m.prototype.addGroup=function(c,
a,b,d,f,k){var n=a.getDimensions(),q=a.getMaster(),t=a.getStyleFromShape(),A=a.getGeomList();if(A.isNoFill()||k)t[mxConstants.STYLE_FILLCOLOR]="none",t[mxConstants.STYLE_GRADIENTCOLOR]="none";if(A.isNoLine()||k)t[mxConstants.STYLE_STROKECOLOR]="none";t.html="1";t[mxConstants.STYLE_WHITE_SPACE]="wrap";var C=g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(t,"=");k=null;A=a.getChildShapes();k=null!=A&&0<function(K){null==K.entries&&(K.entries=[]);return K.entries.length}(A);t=a.isDisplacedLabel()||a.isRotatedLabel()||
-k;k=a.getOriginPoint(f,!0);if(t)k=c.insertVertex(b,null,null,Math.floor(Math.round(100*k.x)/100),Math.floor(Math.round(100*k.y)/100),Math.floor(Math.round(100*n.x)/100),Math.floor(Math.round(100*n.y)/100),C);else{var I=a.noLabelGroup?null:a.getTextLabel();k=c.insertVertex(b,null,I,Math.floor(Math.round(100*k.x)/100),Math.floor(Math.round(100*k.y)/100),Math.floor(Math.round(100*n.x)/100),Math.floor(Math.round(100*n.y)/100),C)}b=k.geometry.height;for(A=function(K){var O=0;return{next:function(){return O<
-K.length?K[O++]:null},hasNext:function(){return O<K.length}}}(function(K){null==K.entries&&(K.entries=[]);return K.entries}(A));A.hasNext();)if(C=A.next().getValue(),I=C.getId(),C.isVertex()){var N=g.mxgraph.io.vsdx.VsdxShape.getType(C.getShape());null!=N&&(function(K,O){return K&&K.equals?K.equals(O):K===O}(N,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(K,O){return K&&K.equals?K.equals(O):K===O}(N,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(K,O){return K&&K.equals?K.equals(O):
-K===O}(N,g.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))&&C.isVertex()&&(C.propagateRotation(a.getRotation()),(N=C.isGroup()?this.addGroup(c,C,k,d,n.y):this.addVertex(c,C,k,d,n.y))&&N.geometry&&(b=Math.max(N.geometry.height,b)));null==q&&function(K,O,S){null==K.entries&&(K.entries=[]);for(var H=0;H<K.entries.length;H++)if(null!=K.entries[H].key.equals&&K.entries[H].key.equals(O)||K.entries[H].key===O){K.entries[H].value=S;return}K.entries.push({key:O,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexShapeMap,
-new g.mxgraph.io.vsdx.ShapePageId(d,I),C)}else null==q?(function(K,O,S){null==K.entries&&(K.entries=[]);for(var H=0;H<K.entries.length;H++)if(null!=K.entries[H].key.equals&&K.entries[H].key.equals(O)||K.entries[H].key===O){K.entries[H].value=S;return}K.entries.push({key:O,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.edgeShapeMap,new g.mxgraph.io.vsdx.ShapePageId(d,I),C),function(K,O,S){null==K.entries&&(K.entries=[]);for(var H=0;H<K.entries.length;H++)if(null!=
-K.entries[H].key.equals&&K.entries[H].key.equals(O)||K.entries[H].key===O){K.entries[H].value=S;return}K.entries.push({key:O,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.parentsMap,new g.mxgraph.io.vsdx.ShapePageId(d,I),k)):this.addUnconnectedEdge(c,k,C,f);if(k.children&&0==k.geometry.height&&0<b)for(k.geometry.height=b,f=0;f<k.children.length;f++)n=k.children[f],n.geometry&&(n.geometry.y+=b);t&&a.createLabelSubShape(c,k);c=a.getRotation();if(0!==c)for(f=
-k.getGeometry(),q=f.width/2,t=f.height/2,f=0;f<k.getChildCount();f++)n=k.getChildAt(f),g.mxgraph.online.Utils.rotatedGeometry(n.getGeometry(),c,q,t);(function(K,O,S){null==K.entries&&(K.entries=[]);for(var H=0;H<K.entries.length;H++)if(null!=K.entries[H].key.equals&&K.entries[H].key.equals(O)||K.entries[H].key===O){K.entries[H].value=S;return}K.entries.push({key:O,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(d,
+k;k=a.getOriginPoint(f,!0);if(t)k=c.insertVertex(b,null,null,Math.floor(Math.round(100*k.x)/100),Math.floor(Math.round(100*k.y)/100),Math.floor(Math.round(100*n.x)/100),Math.floor(Math.round(100*n.y)/100),C);else{var I=a.noLabelGroup?null:a.getTextLabel();k=c.insertVertex(b,null,I,Math.floor(Math.round(100*k.x)/100),Math.floor(Math.round(100*k.y)/100),Math.floor(Math.round(100*n.x)/100),Math.floor(Math.round(100*n.y)/100),C)}b=k.geometry.height;for(A=function(K){var L=0;return{next:function(){return L<
+K.length?K[L++]:null},hasNext:function(){return L<K.length}}}(function(K){null==K.entries&&(K.entries=[]);return K.entries}(A));A.hasNext();)if(C=A.next().getValue(),I=C.getId(),C.isVertex()){var Q=g.mxgraph.io.vsdx.VsdxShape.getType(C.getShape());null!=Q&&(function(K,L){return K&&K.equals?K.equals(L):K===L}(Q,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(K,L){return K&&K.equals?K.equals(L):K===L}(Q,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(K,L){return K&&K.equals?K.equals(L):
+K===L}(Q,g.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))&&C.isVertex()&&(C.propagateRotation(a.getRotation()),(Q=C.isGroup()?this.addGroup(c,C,k,d,n.y):this.addVertex(c,C,k,d,n.y))&&Q.geometry&&(b=Math.max(Q.geometry.height,b)));null==q&&function(K,L,S){null==K.entries&&(K.entries=[]);for(var R=0;R<K.entries.length;R++)if(null!=K.entries[R].key.equals&&K.entries[R].key.equals(L)||K.entries[R].key===L){K.entries[R].value=S;return}K.entries.push({key:L,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexShapeMap,
+new g.mxgraph.io.vsdx.ShapePageId(d,I),C)}else null==q?(function(K,L,S){null==K.entries&&(K.entries=[]);for(var R=0;R<K.entries.length;R++)if(null!=K.entries[R].key.equals&&K.entries[R].key.equals(L)||K.entries[R].key===L){K.entries[R].value=S;return}K.entries.push({key:L,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.edgeShapeMap,new g.mxgraph.io.vsdx.ShapePageId(d,I),C),function(K,L,S){null==K.entries&&(K.entries=[]);for(var R=0;R<K.entries.length;R++)if(null!=
+K.entries[R].key.equals&&K.entries[R].key.equals(L)||K.entries[R].key===L){K.entries[R].value=S;return}K.entries.push({key:L,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.parentsMap,new g.mxgraph.io.vsdx.ShapePageId(d,I),k)):this.addUnconnectedEdge(c,k,C,f);if(k.children&&0==k.geometry.height&&0<b)for(k.geometry.height=b,f=0;f<k.children.length;f++)n=k.children[f],n.geometry&&(n.geometry.y+=b);t&&a.createLabelSubShape(c,k);c=a.getRotation();if(0!==c)for(f=
+k.getGeometry(),q=f.width/2,t=f.height/2,f=0;f<k.getChildCount();f++)n=k.getChildAt(f),g.mxgraph.online.Utils.rotatedGeometry(n.getGeometry(),c,q,t);(function(K,L,S){null==K.entries&&(K.entries=[]);for(var R=0;R<K.entries.length;R++)if(null!=K.entries[R].key.equals&&K.entries[R].key.equals(L)||K.entries[R].key===L){K.entries[R].value=S;return}K.entries.push({key:L,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(d,
a.getId()),k);return k};m.rotatedEdgePoint=function(c,a,b,d){a=a*Math.PI/180;var f=Math.cos(a);a=Math.sin(a);var k=c.x-b,n=c.y-d;c.x=Math.round(k*f-n*a+b);c.y=Math.round(n*f+k*a+d)};m.prototype.addVertex=function(c,a,b,d,f){var k="",n=a.isDisplacedLabel()||a.isRotatedLabel();n||(k=a.getTextLabel());var q=a.getDimensions(),t=a.getStyleFromShape();t.html="1";var A=t.hasOwnProperty(mxConstants.STYLE_SHAPE)||t.hasOwnProperty("stencil");t.hasOwnProperty(mxConstants.STYLE_FILLCOLOR)&&A||(t[mxConstants.STYLE_FILLCOLOR]=
"none");A||(t[mxConstants.STYLE_STROKECOLOR]="none");t.hasOwnProperty(mxConstants.STYLE_GRADIENTCOLOR)&&A||(t[mxConstants.STYLE_GRADIENTCOLOR]="none");t[mxConstants.STYLE_WHITE_SPACE]="wrap";f=a.getOriginPoint(f,!0);return A||null!=k?(t=g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(t,"="),A=null,A=n?c.insertVertex(b,null,null,Math.floor(Math.round(100*f.x)/100),Math.floor(Math.round(100*f.y)/100),Math.floor(Math.round(100*q.x)/100),Math.floor(Math.round(100*q.y)/100),t):c.insertVertex(b,null,k,Math.floor(Math.round(100*
-f.x)/100),Math.floor(Math.round(100*f.y)/100),Math.floor(Math.round(100*q.x)/100),Math.floor(Math.round(100*q.y)/100),t),function(C,I,N){null==C.entries&&(C.entries=[]);for(var K=0;K<C.entries.length;K++)if(null!=C.entries[K].key.equals&&C.entries[K].key.equals(I)||C.entries[K].key===I){C.entries[K].value=N;return}C.entries.push({key:I,value:N,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(d,a.getId()),A),a.setLabelOffset(A,
+f.x)/100),Math.floor(Math.round(100*f.y)/100),Math.floor(Math.round(100*q.x)/100),Math.floor(Math.round(100*q.y)/100),t),function(C,I,Q){null==C.entries&&(C.entries=[]);for(var K=0;K<C.entries.length;K++)if(null!=C.entries[K].key.equals&&C.entries[K].key.equals(I)||C.entries[K].key===I){C.entries[K].value=Q;return}C.entries.push({key:I,value:Q,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(d,a.getId()),A),a.setLabelOffset(A,
t),n&&a.createLabelSubShape(c,A),A):null};m.calculateAbsolutePoint=function(c){for(var a=0,b=0;null!=c;){var d=c.geometry;null!=d&&(a+=d.x,b+=d.y);c=c.parent}return new mxPoint(a,b)};m.prototype.processEdgeGeo=function(c,a){try{var b=c.geomList.geomList[0].rows;for(c=0;c<b.length;c++)if(b[c]instanceof g.mxgraph.io.vsdx.geometry.ArcTo){a.style+="jumpStyle=arc;";break}for(c=0;c<b.length;c++);}catch(d){}};m.prototype.addConnectedEdge=function(c,a,b,d){var f=a.getFromSheet();f=new g.mxgraph.io.vsdx.ShapePageId(b,
-f);var k=function(J,M){null==J.entries&&(J.entries=[]);for(var L=0;L<J.entries.length;L++)if(null!=J.entries[L].key.equals&&J.entries[L].key.equals(M)||J.entries[L].key===M)return J.entries[L].value;return null}(this.edgeShapeMap,f);if(null==k)return null;var n=function(J,M){null==J.entries&&(J.entries=[]);for(var L=0;L<J.entries.length;L++)if(null!=J.entries[L].key.equals&&J.entries[L].key.equals(M)||J.entries[L].key===M)return J.entries[L].value;return null}(this.parentsMap,new g.mxgraph.io.vsdx.ShapePageId(b,
-k.getId()));if(null!=n){var q=c.getModel().getGeometry(n);null!=q&&(d=q.height)}var t=k.getStartXY(d),A=k.getEndXY(d);q=k.getRoutingPoints(d,t,k.getRotation());this.rotateChildEdge(c.getModel(),n,t,A,q);var C=null,I=a.getSourceToSheet();I=null!=I?function(J,M){null==J.entries&&(J.entries=[]);for(var L=0;L<J.entries.length;L++)if(null!=J.entries[L].key.equals&&J.entries[L].key.equals(M)||J.entries[L].key===M)return J.entries[L].value;return null}(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(b,
-I)):null;var N=!0;if(null==I||0==I.geometry.width||0==I.geometry.height)I=c.insertVertex(n,null,null,Math.floor(Math.round(100*t.x)/100),Math.floor(Math.round(100*t.y)/100),0,0);else if(I.style&&-1==I.style.indexOf(";rotation=")){C=m.calculateAbsolutePoint(I);var K=m.calculateAbsolutePoint(n),O=I.geometry;C=new mxPoint((K.x+t.x-C.x)/O.width,(K.y+t.y-C.y)/O.height)}else N=!1;t=null;a=a.getTargetToSheet();a=null!=a?function(J,M){null==J.entries&&(J.entries=[]);for(var L=0;L<J.entries.length;L++)if(null!=
-J.entries[L].key.equals&&J.entries[L].key.equals(M)||J.entries[L].key===M)return J.entries[L].value;return null}(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(b,a)):null;K=!0;null==a||0==a.geometry.width||0==a.geometry.height?a=c.insertVertex(n,null,null,Math.floor(Math.round(100*A.x)/100),Math.floor(Math.round(100*A.y)/100),0,0):a.style&&-1==a.style.indexOf(";rotation=")?(b=m.calculateAbsolutePoint(a),t=m.calculateAbsolutePoint(n),O=a.geometry,t=new mxPoint((t.x+A.x-b.x)/O.width,(t.y+A.y-b.y)/
-O.height)):K=!1;b=k.getStyleFromEdgeShape(d);O=k.getRotation();A="";var S=k.isDisplacedLabel()||k.isRotatedLabel()||0!==O,H=k.getLblEdgeOffset(c.getView(),q);S||(A=k.getTextLabel(!0));A=c.insertEdge(n,null,A,I,a,g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(b,"="));S?h(c,A,k,O,H):A.getGeometry().offset=H;null!=C&&c.setConnectionConstraint(A,I,!0,new mxConnectionConstraint(C,!1));N&&q.shift();null!=t&&c.setConnectionConstraint(A,a,!1,new mxConnectionConstraint(t,!1));K&&q.pop();N=c.getModel().getGeometry(A);
-if(I.parent!=a.parent&&null!=n&&1!=n.id&&1==I.parent.id){a=C=0;do t=n.geometry,null!=t&&(C+=t.x,a+=t.y),n=n.parent;while(null!=n);A.parent=I.parent;for(n=0;n<q.length;n++)q[n].x+=C,q[n].y+=a}N.points=q;b.hasOwnProperty("curved")&&function(J,M){return J&&J.equals?J.equals(M):J===M}(function(J,M){return J[M]?J[M]:null}(b,"curved"),"1")&&(N=c.getModel().getGeometry(A),d=k.getControlPoints(d),N.points=d);this.processEdgeGeo(k,A);k=this.layerIndexToNames(k.layerMember);null!=k&&c.addTagsForCells([A],k);
+f);var k=function(H,N){null==H.entries&&(H.entries=[]);for(var J=0;J<H.entries.length;J++)if(null!=H.entries[J].key.equals&&H.entries[J].key.equals(N)||H.entries[J].key===N)return H.entries[J].value;return null}(this.edgeShapeMap,f);if(null==k)return null;var n=function(H,N){null==H.entries&&(H.entries=[]);for(var J=0;J<H.entries.length;J++)if(null!=H.entries[J].key.equals&&H.entries[J].key.equals(N)||H.entries[J].key===N)return H.entries[J].value;return null}(this.parentsMap,new g.mxgraph.io.vsdx.ShapePageId(b,
+k.getId()));if(null!=n){var q=c.getModel().getGeometry(n);null!=q&&(d=q.height)}var t=k.getStartXY(d),A=k.getEndXY(d);q=k.getRoutingPoints(d,t,k.getRotation());this.rotateChildEdge(c.getModel(),n,t,A,q);var C=null,I=a.getSourceToSheet();I=null!=I?function(H,N){null==H.entries&&(H.entries=[]);for(var J=0;J<H.entries.length;J++)if(null!=H.entries[J].key.equals&&H.entries[J].key.equals(N)||H.entries[J].key===N)return H.entries[J].value;return null}(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(b,
+I)):null;var Q=!0;if(null==I||0==I.geometry.width||0==I.geometry.height)I=c.insertVertex(n,null,null,Math.floor(Math.round(100*t.x)/100),Math.floor(Math.round(100*t.y)/100),0,0);else if(I.style&&-1==I.style.indexOf(";rotation=")){C=m.calculateAbsolutePoint(I);var K=m.calculateAbsolutePoint(n),L=I.geometry;C=new mxPoint((K.x+t.x-C.x)/L.width,(K.y+t.y-C.y)/L.height)}else Q=!1;t=null;a=a.getTargetToSheet();a=null!=a?function(H,N){null==H.entries&&(H.entries=[]);for(var J=0;J<H.entries.length;J++)if(null!=
+H.entries[J].key.equals&&H.entries[J].key.equals(N)||H.entries[J].key===N)return H.entries[J].value;return null}(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(b,a)):null;K=!0;null==a||0==a.geometry.width||0==a.geometry.height?a=c.insertVertex(n,null,null,Math.floor(Math.round(100*A.x)/100),Math.floor(Math.round(100*A.y)/100),0,0):a.style&&-1==a.style.indexOf(";rotation=")?(b=m.calculateAbsolutePoint(a),t=m.calculateAbsolutePoint(n),L=a.geometry,t=new mxPoint((t.x+A.x-b.x)/L.width,(t.y+A.y-b.y)/
+L.height)):K=!1;b=k.getStyleFromEdgeShape(d);L=k.getRotation();A="";var S=k.isDisplacedLabel()||k.isRotatedLabel()||0!==L,R=k.getLblEdgeOffset(c.getView(),q);S||(A=k.getTextLabel(!0));A=c.insertEdge(n,null,A,I,a,g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(b,"="));S?h(c,A,k,L,R):A.getGeometry().offset=R;null!=C&&c.setConnectionConstraint(A,I,!0,new mxConnectionConstraint(C,!1));Q&&q.shift();null!=t&&c.setConnectionConstraint(A,a,!1,new mxConnectionConstraint(t,!1));K&&q.pop();Q=c.getModel().getGeometry(A);
+if(I.parent!=a.parent&&null!=n&&1!=n.id&&1==I.parent.id){a=C=0;do t=n.geometry,null!=t&&(C+=t.x,a+=t.y),n=n.parent;while(null!=n);A.parent=I.parent;for(n=0;n<q.length;n++)q[n].x+=C,q[n].y+=a}Q.points=q;b.hasOwnProperty("curved")&&function(H,N){return H&&H.equals?H.equals(N):H===N}(function(H,N){return H[N]?H[N]:null}(b,"curved"),"1")&&(Q=c.getModel().getGeometry(A),d=k.getControlPoints(d),Q.points=d);this.processEdgeGeo(k,A);k=this.layerIndexToNames(k.layerMember);null!=k&&c.addTagsForCells([A],k);
return f};m.prototype.addUnconnectedEdge=function(c,a,b,d){if(null!=a){var f=c.getModel().getGeometry(a);null!=f&&(d=f.height)}f=b.getStartXY(d);var k=b.getEndXY(d),n=b.getStyleFromEdgeShape(d),q=b.getRoutingPoints(d,f,b.getRotation()),t=b.getRotation();var A="";var C=b.isDisplacedLabel()||b.isRotatedLabel()||0!==t,I=b.getLblEdgeOffset(c.getView(),q);C||(A=b.getTextLabel(!0));0===b.getShapeIndex()?A=c.insertEdge(a,null,A,null,null,g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(n,"=")):(A=c.createEdge(a,
-null,A,null,null,g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(n,"=")),A=c.addEdge(A,a,null,null,b.getShapeIndex()+this.shapeIndexShift++));C?h(c,A,b,t,I):A.getGeometry().offset=I;this.rotateChildEdge(c.getModel(),a,f,k,q);a=c.getModel().getGeometry(A);q.pop();q.shift();a.points=q;a.setTerminalPoint(f,!0);a.setTerminalPoint(k,!1);n.hasOwnProperty("curved")&&function(N,K){return N&&N.equals?N.equals(K):N===K}(function(N,K){return N[K]?N[K]:null}(n,"curved"),"1")&&(a=c.getModel().getGeometry(A),c=b.getControlPoints(d),
+null,A,null,null,g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(n,"=")),A=c.addEdge(A,a,null,null,b.getShapeIndex()+this.shapeIndexShift++));C?h(c,A,b,t,I):A.getGeometry().offset=I;this.rotateChildEdge(c.getModel(),a,f,k,q);a=c.getModel().getGeometry(A);q.pop();q.shift();a.points=q;a.setTerminalPoint(f,!0);a.setTerminalPoint(k,!1);n.hasOwnProperty("curved")&&function(Q,K){return Q&&Q.equals?Q.equals(K):Q===K}(function(Q,K){return Q[K]?Q[K]:null}(n,"curved"),"1")&&(a=c.getModel().getGeometry(A),c=b.getControlPoints(d),
a.points=c);this.processEdgeGeo(b,A);return A};m.prototype.rotateChildEdge=function(c,a,b,d,f){if(null!=a){var k=c.getGeometry(a);c=c.getStyle(a);if(null!=k&&null!=c&&(a=c.indexOf("rotation="),-1<a))for(c=parseFloat(c.substring(a+9,c.indexOf(";",a))),a=k.width/2,k=k.height/2,m.rotatedEdgePoint(b,c,a,k),m.rotatedEdgePoint(d,c,a,k),b=0;b<f.length;b++)m.rotatedEdgePoint(f[b],c,a,k)}};m.prototype.sanitiseGraph=function(c){var a=c.getModel().getRoot();this.sanitiseCell(c,a)};m.prototype.sanitiseCell=function(c,
a){for(var b=c.getModel(),d=b.getChildCount(a),f=[],k=0;k<d;k++){var n=b.getChildAt(a,k);this.sanitiseCell(c,n)&&f.push(n)}for(c=0;c<f.length;c++)b.remove(f[c]);f=a.geometry;null!=f&&(0>f.height&&(f.height=Math.abs(f.height),f.y-=f.height,a.style+=";flipV=1;"),0>f.width&&(f.width=Math.abs(f.width),f.x-=f.width,a.style+=";flipH=1;"));0<d&&(d=b.getChildCount(a));f=(new String(b.getValue(a))).toString();c=b.getStyle(a);return 0!==d||!b.isVertex(a)||null!=b.getValue(a)&&0!==f.length||null==c||-1==c.indexOf(mxConstants.STYLE_FILLCOLOR+
"=none")||-1==c.indexOf(mxConstants.STYLE_STROKECOLOR+"=none")||-1!=c.indexOf("image=")?!1:!0};return m}();z.mxVsdxCodec=B;B.__class="com.mxgraph.io.mxVsdxCodec"})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));
-(function(g){(function(y){(function(z){var B=function(m){function h(c){var a=m.call(this)||this;a.RESPONSE_END="";a.RESPONSE_DIAGRAM_START="";a.RESPONSE_DIAGRAM_END="";a.RESPONSE_HEADER="";a.editorUi=c;return a}__extends(h,m);h.prototype.decodeVssx=function(c,a,b,d){var f=this,k="<mxlibrary>[";this.decodeVsdx(c,function(n){k=k.concat(n);var q=f.vsdxModel.getMasterShapes(),t=function(O){var S=0;return{next:function(){return S<O.length?O[S++]:null},hasNext:function(){return S<O.length}}}(function(O){var S=
-[];null==O.entries&&(O.entries=[]);for(var H=0;H<O.entries.length;H++)S.push(O.entries[H].value);return S}(f.vsdxModel.getPages())).next();if(null!=q){var A={str:"",toString:function(){return this.str}},C=0===n.length?"":",",I=function(O){return Object.keys(O).map(function(S){return O[S]})}(q);n=function(O){O=I[O];var S=N.createMxGraph(),H=1;if(null!=O.pageSheet){var J=H=1,M=O.pageSheet.DrawingScale;null!=M&&(H=parseFloat(M.getAttribute("V"))||1);M=O.pageSheet.PageScale;null!=M&&(J=parseFloat(M.getAttribute("V"))||
-1);H=J/H}J=!1;for(M=0;null!=O.firstLevelShapes&&M<O.firstLevelShapes.length;M++){var L=O.firstLevelShapes[M].getShape(),Q=new g.mxgraph.io.vsdx.VsdxShape(t,L,!t.isEdge(L),q,null,N.vsdxModel);L=null;if(Q.isVertex()){N.edgeShapeMap.entries=[];N.parentsMap.entries=[];L=N.addShape(S,Q,S.getDefaultParent(),0,1169);Q=function(U){null==U.entries&&(U.entries=[]);return U.entries}(N.edgeShapeMap);for(var ca=0;ca<Q.length;ca++){var W=Q[ca],R=function(U,ia){null==U.entries&&(U.entries=[]);for(var ba=0;ba<U.entries.length;ba++)if(null!=
-U.entries[ba].key.equals&&U.entries[ba].key.equals(ia)||U.entries[ba].key===ia)return U.entries[ba].value;return null}(N.parentsMap,W.getKey());N.addUnconnectedEdge(S,R,W.getValue(),1169)}}else L=N.addUnconnectedEdge(S,null,Q,1169);J|=null!=L}if(J){N.scaleGraph(S,H);H=N.normalizeGraph(S);N.sanitiseGraph(S);if(0===S.getModel().getChildCount(S.getDefaultParent()))return"continue";A.str=A.str.concat(C);A.str=A.str.concat('{"xml":"');S=m.prototype.processPage.call(N,S,null);A.str=A.str.concat(S);A.str=
-A.str.concat('","w":');A.str=A.str.concat(H.width);A.str=A.str.concat(',"h":');A.str=A.str.concat(H.height);A.str=A.str.concat(',"title":');O=O.getName();null==O&&(O="");O=mxUtils.htmlEntities(JSON.stringify(O));A.str=A.str.concat(O);A.str=A.str.concat("}");C=","}};for(var N=f,K=0;K<I.length;K++)n(K);k=k.concat(A)}k=k.concat("]</mxlibrary>");if(a)try{a(k)}catch(O){null!=d?d(O):a("")}},b)};h.prototype.normalizeGeo=function(c){var a=c.getGeometry();a.x=0;a.y=0;var b=a.sourcePoint;if(c.isEdge()&&null!=
+(function(g){(function(y){(function(z){var B=function(m){function h(c){var a=m.call(this)||this;a.RESPONSE_END="";a.RESPONSE_DIAGRAM_START="";a.RESPONSE_DIAGRAM_END="";a.RESPONSE_HEADER="";a.editorUi=c;return a}__extends(h,m);h.prototype.decodeVssx=function(c,a,b,d){var f=this,k="<mxlibrary>[";this.decodeVsdx(c,function(n){k=k.concat(n);var q=f.vsdxModel.getMasterShapes(),t=function(L){var S=0;return{next:function(){return S<L.length?L[S++]:null},hasNext:function(){return S<L.length}}}(function(L){var S=
+[];null==L.entries&&(L.entries=[]);for(var R=0;R<L.entries.length;R++)S.push(L.entries[R].value);return S}(f.vsdxModel.getPages())).next();if(null!=q){var A={str:"",toString:function(){return this.str}},C=0===n.length?"":",",I=function(L){return Object.keys(L).map(function(S){return L[S]})}(q);n=function(L){L=I[L];var S=Q.createMxGraph(),R=1;if(null!=L.pageSheet){var H=R=1,N=L.pageSheet.DrawingScale;null!=N&&(R=parseFloat(N.getAttribute("V"))||1);N=L.pageSheet.PageScale;null!=N&&(H=parseFloat(N.getAttribute("V"))||
+1);R=H/R}H=!1;for(N=0;null!=L.firstLevelShapes&&N<L.firstLevelShapes.length;N++){var J=L.firstLevelShapes[N].getShape(),M=new g.mxgraph.io.vsdx.VsdxShape(t,J,!t.isEdge(J),q,null,Q.vsdxModel);J=null;if(M.isVertex()){Q.edgeShapeMap.entries=[];Q.parentsMap.entries=[];J=Q.addShape(S,M,S.getDefaultParent(),0,1169);M=function(P){null==P.entries&&(P.entries=[]);return P.entries}(Q.edgeShapeMap);for(var T=0;T<M.length;T++){var ca=M[T],V=function(P,ea){null==P.entries&&(P.entries=[]);for(var Y=0;Y<P.entries.length;Y++)if(null!=
+P.entries[Y].key.equals&&P.entries[Y].key.equals(ea)||P.entries[Y].key===ea)return P.entries[Y].value;return null}(Q.parentsMap,ca.getKey());Q.addUnconnectedEdge(S,V,ca.getValue(),1169)}}else J=Q.addUnconnectedEdge(S,null,M,1169);H|=null!=J}if(H){Q.scaleGraph(S,R);R=Q.normalizeGraph(S);Q.sanitiseGraph(S);if(0===S.getModel().getChildCount(S.getDefaultParent()))return"continue";A.str=A.str.concat(C);A.str=A.str.concat('{"xml":"');S=m.prototype.processPage.call(Q,S,null);A.str=A.str.concat(S);A.str=
+A.str.concat('","w":');A.str=A.str.concat(R.width);A.str=A.str.concat(',"h":');A.str=A.str.concat(R.height);A.str=A.str.concat(',"title":');L=L.getName();null==L&&(L="");L=mxUtils.htmlEntities(JSON.stringify(L));A.str=A.str.concat(L);A.str=A.str.concat("}");C=","}};for(var Q=f,K=0;K<I.length;K++)n(K);k=k.concat(A)}k=k.concat("]</mxlibrary>");if(a)try{a(k)}catch(L){null!=d?d(L):a("")}},b)};h.prototype.normalizeGeo=function(c){var a=c.getGeometry();a.x=0;a.y=0;var b=a.sourcePoint;if(c.isEdge()&&null!=
b){this.transPoint(a.targetPoint,b);this.transPoint(a.offset,b);c=a.points;if(null!=c)for(var d=0;d<c.length;d++)this.transPoint(c[d],b);this.transPoint(b,b)}return a};h.prototype.normalizeGraph=function(c){function a(C){null!=C&&(null==b?(b=C.x,d=C.y,f=C.x+(C.width||0),k=C.y+(C.height||0)):(b=Math.min(C.x,b),d=Math.min(C.y,d),f=Math.max(C.x+(C.width||0),f),k=Math.max(C.y+(C.height||0),k)))}var b,d,f,k,n;for(n in c.model.cells){var q=c.model.cells[n],t=q.geometry;if(null!=t&&1==q.parent.id)if(q.vertex)a(t);
else for(a(t.sourcePoint),a(t.targetPoint),q=t.points,t=0;null!=q&&t<q.length;t++)a(q[t])}var A={x:b,y:d};for(n in c.model.cells)if(q=c.model.cells[n],t=q.geometry,null!=t&&1==q.parent.id&&(t.x-=b,t.y-=d,q.isEdge()))for(this.transPoint(t.sourcePoint,A),this.transPoint(t.targetPoint,A),this.transPoint(t.offset,A),q=t.points,t=0;null!=q&&t<q.length;t++)this.transPoint(q[t],A);return{width:f-b,height:k-d}};h.prototype.transPoint=function(c,a){null!=c&&(c.x-=a.x,c.y-=a.y)};h.prototype.processPage=function(c,
a){var b=c.getModel(),d="",f="";for(q in b.cells){var k=b.cells[q];if(c.getDefaultParent()===b.getParent(k)){d=d.concat(f);d=d.concat('{"xml":"');var n=this.createMxGraph();n.addCell(k);this.sanitiseGraph(n);if(0===n.getModel().getChildCount(n.getDefaultParent()))return"continue";f=this.normalizeGeo(k);n=m.prototype.processPage.call(this,n,null);d=d.concat(n);d=d.concat('","w":');d=d.concat(f.width);d=d.concat(',"h":');d=d.concat(f.height);d=d.concat(',"title":"');f=b.getStyle(k);k="";if(null!=f&&
@@ -15527,9 +15527,9 @@ a){var b=c.getModel(),d="",f="";for(q in b.cells){var k=b.cells[q];if(c.getDefau
(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function c(a,b,d){this.formulaE=this.formulaA=this.d=this.c=this.b=this.a=this.y=this.x=null;this.index=0;this.index=a;this.x=b;this.y=d}c.prototype.getX=function(){return this.x};c.prototype.getY=function(){return this.y};c.prototype.getA=function(){return this.a};c.prototype.getB=function(){return this.b};c.prototype.getC=function(){return this.c};c.prototype.getD=function(){return this.d};c.prototype.getFormulaA=
function(){return this.formulaA};c.prototype.getFormulaE=function(){return this.formulaE};c.prototype.getIndex=function(){return this.index};return c}();m.Row=h;h.__class="com.mxgraph.io.vsdx.geometry.Row"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));
(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function c(){}c.getIndex=function(a){try{return parseInt(a.getAttribute("IX"))||1}catch(b){return 1}};c.getDoubleVal=function(a){try{if(null!=a&&0!==a.length){var b=parseFloat(a);if(isFinite(b))return b}}catch(d){}return null};c.getRowObj=function(a,b){var d=a.getAttribute("T"),f=c.getIndex(a);var k=(k=a.getAttribute("Del"))&&k.equals?k.equals("1"):"1"===k;if(!k){var n=null;f<=b.length&&(n=b[f-1]);var q=k=b=null,t=null,
-A=null,C=null,I=null,N=null;null!=n&&(b=n.x,k=n.y,q=n.getA(),t=n.getB(),A=n.getC(),C=n.getD(),N=n.getFormulaA(),I=n.getFormulaE());a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a);for(n=0;n<a.length;n++){var K=a[n],O=K.getAttribute("N"),S=K.getAttribute("V");switch(O){case "X":b=c.getDoubleVal(S);break;case "Y":k=c.getDoubleVal(S);break;case "A":q=c.getDoubleVal(S);N=K.getAttribute("V");break;case "B":t=c.getDoubleVal(S);break;case "C":A=c.getDoubleVal(S);break;case "D":C=c.getDoubleVal(S);
+A=null,C=null,I=null,Q=null;null!=n&&(b=n.x,k=n.y,q=n.getA(),t=n.getB(),A=n.getC(),C=n.getD(),Q=n.getFormulaA(),I=n.getFormulaE());a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a);for(n=0;n<a.length;n++){var K=a[n],L=K.getAttribute("N"),S=K.getAttribute("V");switch(L){case "X":b=c.getDoubleVal(S);break;case "Y":k=c.getDoubleVal(S);break;case "A":q=c.getDoubleVal(S);Q=K.getAttribute("V");break;case "B":t=c.getDoubleVal(S);break;case "C":A=c.getDoubleVal(S);break;case "D":C=c.getDoubleVal(S);
break;case "E":I=S}}switch(d){case "MoveTo":return new g.mxgraph.io.vsdx.geometry.MoveTo(f,b,k);case "LineTo":return new g.mxgraph.io.vsdx.geometry.LineTo(f,b,k);case "ArcTo":return new g.mxgraph.io.vsdx.geometry.ArcTo(f,b,k,q);case "Ellipse":return new g.mxgraph.io.vsdx.geometry.Ellipse(f,b,k,q,t,A,C);case "EllipticalArcTo":return new g.mxgraph.io.vsdx.geometry.EllipticalArcTo(f,b,k,q,t,A,C);case "InfiniteLine":return new g.mxgraph.io.vsdx.geometry.InfiniteLine(f,b,k,q,t);case "NURBSTo":return new g.mxgraph.io.vsdx.geometry.NURBSTo(f,
-b,k,q,t,A,C,I);case "PolylineTo":return new g.mxgraph.io.vsdx.geometry.PolylineTo(f,b,k,N);case "RelCubBezTo":return new g.mxgraph.io.vsdx.geometry.RelCubBezTo(f,b,k,q,t,A,C);case "RelEllipticalArcTo":return new g.mxgraph.io.vsdx.geometry.RelEllipticalArcTo(f,b,k,q,t,A,C);case "RelLineTo":return new g.mxgraph.io.vsdx.geometry.RelLineTo(f,b,k);case "RelMoveTo":return new g.mxgraph.io.vsdx.geometry.RelMoveTo(f,b,k);case "RelQuadBezTo":return new g.mxgraph.io.vsdx.geometry.RelQuadBezTo(f,b,k,q,t);case "SplineKnot":return new g.mxgraph.io.vsdx.geometry.SplineKnot(f,
+b,k,q,t,A,C,I);case "PolylineTo":return new g.mxgraph.io.vsdx.geometry.PolylineTo(f,b,k,Q);case "RelCubBezTo":return new g.mxgraph.io.vsdx.geometry.RelCubBezTo(f,b,k,q,t,A,C);case "RelEllipticalArcTo":return new g.mxgraph.io.vsdx.geometry.RelEllipticalArcTo(f,b,k,q,t,A,C);case "RelLineTo":return new g.mxgraph.io.vsdx.geometry.RelLineTo(f,b,k);case "RelMoveTo":return new g.mxgraph.io.vsdx.geometry.RelMoveTo(f,b,k);case "RelQuadBezTo":return new g.mxgraph.io.vsdx.geometry.RelQuadBezTo(f,b,k,q,t);case "SplineKnot":return new g.mxgraph.io.vsdx.geometry.SplineKnot(f,
b,k,q);case "SplineStart":return new g.mxgraph.io.vsdx.geometry.SplineStart(f,b,k,q,t,A,C)}}return new g.mxgraph.io.vsdx.geometry.DelRow(f)};return c}();m.RowFactory=h;h.__class="com.mxgraph.io.vsdx.geometry.RowFactory"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));
(function(g){(function(y){(function(z){(function(B){var m=function(){function h(){this.colorElementMap={};this.fontElementMap={}}h.__static_initialize=function(){h.__static_initialized||(h.__static_initialized=!0,h.__static_initializer_0())};h.defaultColors_$LI$=function(){h.__static_initialize();null==h.defaultColors&&(h.defaultColors={});return h.defaultColors};h.__static_initializer_0=function(){h.defaultColors_$LI$()["0"]="#000000";h.defaultColors_$LI$()["1"]="#FFFFFF";h.defaultColors_$LI$()["2"]=
"#FF0000";h.defaultColors_$LI$()["3"]="#00FF00";h.defaultColors_$LI$()["4"]="#0000FF";h.defaultColors_$LI$()["5"]="#FFFF00";h.defaultColors_$LI$()["6"]="#FF00FF";h.defaultColors_$LI$()["7"]="#00FFFF";h.defaultColors_$LI$()["8"]="#800000";h.defaultColors_$LI$()["9"]="#008000";h.defaultColors_$LI$()["10"]="#000080";h.defaultColors_$LI$()["11"]="#808000";h.defaultColors_$LI$()["12"]="#800080";h.defaultColors_$LI$()["13"]="#008080";h.defaultColors_$LI$()["14"]="#C0C0C0";h.defaultColors_$LI$()["15"]="#E6E6E6";
@@ -15715,9 +15715,9 @@ q=this.b*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();q=b-q;var t=this.
'" y="'+(new String(b)).toString()+'"/><arc rx="'+(new String(f)).toString()+'" ry="'+(new String(A)).toString()+'" x="'+(new String(k)).toString()+'" y="'+(new String(b)).toString()+'" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0"/><arc rx="'+(new String(f)).toString()+'" ry="'+(new String(A)).toString()+'" x="'+(new String(t)).toString()+'" y="'+(new String(b)).toString()+'" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0"/>'}return""};return a}(g.mxgraph.io.vsdx.geometry.Row);m.Ellipse=
h;h.__class="com.mxgraph.io.vsdx.geometry.Ellipse"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));
(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(c){function a(b,d,f,k,n,q,t){b=c.call(this,b,d,f)||this;b.a=k;b.b=n;b.c=q;b.d=t;return b}__extends(a,c);a.prototype.handle=function(b,d){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var f=d.getHeight(),k=d.getWidth();b=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();var n=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();n=f-n;var q=this.a*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),
-t=this.b*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),A=this.c,C=this.d;b=100*b/k;n=100*n/f;var I=d.getLastX()*k/100,N=d.getLastY()*f/100,K=b*k/100,O=n*f/100,S=f-t,H=-A;A=Math.sqrt(I*I+N*N)*Math.cos(Math.atan2(N,I)-H);t=Math.sqrt(I*I+N*N)*Math.sin(Math.atan2(N,I)-H);var J=Math.sqrt(K*K+O*O)*Math.cos(Math.atan2(O,K)-H),M=Math.sqrt(K*K+O*O)*Math.sin(Math.atan2(O,K)-H),L=Math.sqrt(q*q+S*S)*Math.cos(Math.atan2(S,q)-H),Q=Math.sqrt(q*q+S*S)*Math.sin(Math.atan2(S,q)-H),ca=((A-J)*(A+J)*(M-Q)-(J-
-L)*(J+L)*(t-M)+C*C*(t-M)*(M-Q)*(t-Q))/(2*((A-J)*(M-Q)-(J-L)*(t-M))),W=((A-J)*(J-L)*(A-L)/(C*C)+(J-L)*(t-M)*(t+M)-(A-J)*(M-Q)*(M+Q))/(2*((J-L)*(t-M)-(A-J)*(M-Q))),R=A-ca,U=t-W;R=Math.sqrt(R*R+U*U*C*C);C=R/C;H=180*H/Math.PI;b=Math.round(100*b)/100;n=Math.round(100*n)/100;R=Math.round(100*R/k*100)/100;C=Math.round(100*C/f*100)/100;H=Math.round(100*H)/100;f=0<(K-I)*(S-N)-(O-N)*(q-I)?"0":"1";k="0";g.mxgraph.io.vsdx.mxVsdxUtils.isInsideTriangle(ca,W,A,t,J,M,L,Q)&&(k="1");d.setLastX(b);d.setLastY(n);return'<arc rx="'+
-(new String(R)).toString()+'" ry="'+(new String(C)).toString()+'" x="'+(new String(b)).toString()+'" y="'+(new String(n)).toString()+'" x-axis-rotation="'+(new String(H)).toString()+'" large-arc-flag="'+k+'" sweep-flag="'+f+'"/>'}return""};a.prototype.isReflexAngle=function(b,d,f,k,n,q,t,A){f-=b;k-=d;q-=d;n=t-b;A-=d;d=b=0;f=180*(Math.atan2(k,f)-Math.atan2(d,b))/Math.PI;n=180*(Math.atan2(q,n)-Math.atan2(d,b))/Math.PI;b=180*(Math.atan2(A,t)-Math.atan2(d,b))/Math.PI;f=(f-b)%360;n=(n-b)%360;180<f?f-=
+t=this.b*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),A=this.c,C=this.d;b=100*b/k;n=100*n/f;var I=d.getLastX()*k/100,Q=d.getLastY()*f/100,K=b*k/100,L=n*f/100,S=f-t,R=-A;A=Math.sqrt(I*I+Q*Q)*Math.cos(Math.atan2(Q,I)-R);t=Math.sqrt(I*I+Q*Q)*Math.sin(Math.atan2(Q,I)-R);var H=Math.sqrt(K*K+L*L)*Math.cos(Math.atan2(L,K)-R),N=Math.sqrt(K*K+L*L)*Math.sin(Math.atan2(L,K)-R),J=Math.sqrt(q*q+S*S)*Math.cos(Math.atan2(S,q)-R),M=Math.sqrt(q*q+S*S)*Math.sin(Math.atan2(S,q)-R),T=((A-H)*(A+H)*(N-M)-(H-J)*
+(H+J)*(t-N)+C*C*(t-N)*(N-M)*(t-M))/(2*((A-H)*(N-M)-(H-J)*(t-N))),ca=((A-H)*(H-J)*(A-J)/(C*C)+(H-J)*(t-N)*(t+N)-(A-H)*(N-M)*(N+M))/(2*((H-J)*(t-N)-(A-H)*(N-M))),V=A-T,P=t-ca;V=Math.sqrt(V*V+P*P*C*C);C=V/C;R=180*R/Math.PI;b=Math.round(100*b)/100;n=Math.round(100*n)/100;V=Math.round(100*V/k*100)/100;C=Math.round(100*C/f*100)/100;R=Math.round(100*R)/100;f=0<(K-I)*(S-Q)-(L-Q)*(q-I)?"0":"1";k="0";g.mxgraph.io.vsdx.mxVsdxUtils.isInsideTriangle(T,ca,A,t,H,N,J,M)&&(k="1");d.setLastX(b);d.setLastY(n);return'<arc rx="'+
+(new String(V)).toString()+'" ry="'+(new String(C)).toString()+'" x="'+(new String(b)).toString()+'" y="'+(new String(n)).toString()+'" x-axis-rotation="'+(new String(R)).toString()+'" large-arc-flag="'+k+'" sweep-flag="'+f+'"/>'}return""};a.prototype.isReflexAngle=function(b,d,f,k,n,q,t,A){f-=b;k-=d;q-=d;n=t-b;A-=d;d=b=0;f=180*(Math.atan2(k,f)-Math.atan2(d,b))/Math.PI;n=180*(Math.atan2(q,n)-Math.atan2(d,b))/Math.PI;b=180*(Math.atan2(A,t)-Math.atan2(d,b))/Math.PI;f=(f-b)%360;n=(n-b)%360;180<f?f-=
360:-180>f&&(f+=360);180<n?n-=360:-180>n&&(n+=360);return(0<f&&0>n||0>f&&0<n)&&180<Math.abs(f-n)?!0:!1};return a}(g.mxgraph.io.vsdx.geometry.Row);m.EllipticalArcTo=h;h.__class="com.mxgraph.io.vsdx.geometry.EllipticalArcTo"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));
(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(c){function a(b,d,f,k,n){b=c.call(this,b,d,f)||this;b.a=k;b.b=n;return b}__extends(a,c);a.prototype.handle=function(b,d){return""};return a}(g.mxgraph.io.vsdx.geometry.Row);m.InfiniteLine=h;h.__class="com.mxgraph.io.vsdx.geometry.InfiniteLine"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));
(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(c){function a(b,d,f){return c.call(this,b,d,f)||this}__extends(a,c);a.prototype.handle=function(b,d){var f=b.x,k=b.y,n=d.getHeight(),q=d.getWidth();null!=this.x&&null!=this.y&&(f=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),k=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$());f=Math.round(100*f/q*100)/100;k=Math.round(100*(100-100*k/n))/100;b.x=f;b.y=k;d.setLastX(f);d.setLastY(k);return'<line x="'+
@@ -15801,18 +15801,18 @@ b,d)};return a}(g.mxgraph.io.vsdx.geometry.EllipticalArcTo);m.RelEllipticalArcTo
(function(g){(function(y){(function(z){(function(B){var m=function(h){function c(a,b){var d=this;d.text=null;d.fields=null;d.geom=null;d.imageData=null;d.theme=null;d.quickStyleVals=null;d=h.call(this,a,b)||this;d.paragraphs=null;d.styleMap={};d.width=0;d.height=0;d.rotation=0;d.lastX=0;d.lastY=0;d.lastMoveX=0;d.lastMoveY=0;d.lastKnot=-1;d.geomList=null;d.geomListProcessed=!1;d.themeVariant=0;d.cp="0";d.pp="0";d.tp="0";d.fld="0";d.width=d.getScreenNumericalValue$org_w3c_dom_Element$double(function(f,
k){return f[k]?f[k]:null}(d.cellElements,g.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0);d.height=d.getScreenNumericalValue$org_w3c_dom_Element$double(function(f,k){return f[k]?f[k]:null}(d.cellElements,g.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),0);return d}__extends(c,h);c.UNICODE_LINE_SEP_$LI$=function(){null==c.UNICODE_LINE_SEP&&(c.ERROR_IMAGE="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8IS0tIENyZWF0ZWQgd2l0aCBJbmtzY2FwZSAoaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvKSAtLT4NCjxzdmcNCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyINCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiDQogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiDQogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIg0KICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiDQogICB3aWR0aD0iMjUwIg0KICAgaGVpZ2h0PSIyNTAiDQogICBpZD0ic3ZnMzMxOSINCiAgIHNvZGlwb2RpOnZlcnNpb249IjAuMzIiDQogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2Ig0KICAgdmVyc2lvbj0iMS4wIg0KICAgc29kaXBvZGk6ZG9jbmFtZT0ibm9waG90b19pLnN2ZyINCiAgIGlua3NjYXBlOm91dHB1dF9leHRlbnNpb249Im9yZy5pbmtzY2FwZS5vdXRwdXQuc3ZnLmlua3NjYXBlIj4NCiAgPGRlZnMNCiAgICAgaWQ9ImRlZnMzMzIxIj4NCiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUNCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIg0KICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MjYuMTgxMDkgOiAxIg0KICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCINCiAgICAgICBpbmtzY2FwZTp2cF96PSI3NDQuMDk0NDggOiA1MjYuMTgxMDkgOiAxIg0KICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzNzIuMDQ3MjQgOiAzNTAuNzg3MzkgOiAxIg0KICAgICAgIGlkPSJwZXJzcGVjdGl2ZTMzMjciIC8+DQogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlDQogICAgICAgaWQ9InBlcnNwZWN0aXZlMzM0MiINCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMzcyLjA0NzI0IDogMzUwLjc4NzM5IDogMSINCiAgICAgICBpbmtzY2FwZTp2cF96PSI3NDQuMDk0NDggOiA1MjYuMTgxMDkgOiAxIg0KICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCINCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNTI2LjE4MTA5IDogMSINCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPg0KICA8L2RlZnM+DQogIDxzb2RpcG9kaTpuYW1lZHZpZXcNCiAgICAgaWQ9ImJhc2UiDQogICAgIHBhZ2Vjb2xvcj0iI2ZmZmZmZiINCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiDQogICAgIGJvcmRlcm9wYWNpdHk9IjEuMCINCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAuMCINCiAgICAgaW5rc2NhcGU6cGFnZXNoYWRvdz0iMiINCiAgICAgaW5rc2NhcGU6em9vbT0iMi4yNDI5NDI3Ig0KICAgICBpbmtzY2FwZTpjeD0iMTIxLjk3NjQ4Ig0KICAgICBpbmtzY2FwZTpjeT0iMTIyLjQ0MTk4Ig0KICAgICBpbmtzY2FwZTpkb2N1bWVudC11bml0cz0icHgiDQogICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9ImxheWVyMSINCiAgICAgc2hvd2dyaWQ9ImZhbHNlIg0KICAgICBpbmtzY2FwZTp3aW5kb3ctd2lkdGg9IjE2NjQiDQogICAgIGlua3NjYXBlOndpbmRvdy1oZWlnaHQ9Ijg0NCINCiAgICAgaW5rc2NhcGU6d2luZG93LXg9Ii0zIg0KICAgICBpbmtzY2FwZTp3aW5kb3cteT0iLTE4IiAvPg0KICA8bWV0YWRhdGENCiAgICAgaWQ9Im1ldGFkYXRhMzMyNCI+DQogICAgPHJkZjpSREY+DQogICAgICA8Y2M6V29yaw0KICAgICAgICAgcmRmOmFib3V0PSIiPg0KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4NCiAgICAgICAgPGRjOnR5cGUNCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4NCiAgICAgICAgPGRjOnRpdGxlPkZvdG9ncmFmaWVydmVyYm90PC9kYzp0aXRsZT4NCiAgICAgICAgPGRjOmRhdGU+MjAwOC0wNi0yOTwvZGM6ZGF0ZT4NCiAgICAgICAgPGRjOmNyZWF0b3I+DQogICAgICAgICAgPGNjOkFnZW50Pg0KICAgICAgICAgICAgPGRjOnRpdGxlPlRvcnJzdGVuIFNrb21wPC9kYzp0aXRsZT4NCiAgICAgICAgICA8L2NjOkFnZW50Pg0KICAgICAgICA8L2RjOmNyZWF0b3I+DQogICAgICAgIDxkYzpyaWdodHM+DQogICAgICAgICAgPGNjOkFnZW50Pg0KICAgICAgICAgICAgPGRjOnRpdGxlPlRvcnN0ZW4gU2tvbXA8L2RjOnRpdGxlPg0KICAgICAgICAgIDwvY2M6QWdlbnQ+DQogICAgICAgIDwvZGM6cmlnaHRzPg0KICAgICAgICA8ZGM6cHVibGlzaGVyPg0KICAgICAgICAgIDxjYzpBZ2VudD4NCiAgICAgICAgICAgIDxkYzp0aXRsZT5Ub3JzdGVuIFNrb21wPC9kYzp0aXRsZT4NCiAgICAgICAgICA8L2NjOkFnZW50Pg0KICAgICAgICA8L2RjOnB1Ymxpc2hlcj4NCiAgICAgICAgPGRjOmxhbmd1YWdlPmRlX0RFPC9kYzpsYW5ndWFnZT4NCiAgICAgICAgPGRjOnN1YmplY3Q+DQogICAgICAgICAgPHJkZjpCYWc+DQogICAgICAgICAgICA8cmRmOmxpPlBpa3RvZ3JhbW07IEZvdG9ncmFmaWVydmVyYm90PC9yZGY6bGk+DQogICAgICAgICAgPC9yZGY6QmFnPg0KICAgICAgICA8L2RjOnN1YmplY3Q+DQogICAgICAgIDxkYzpkZXNjcmlwdGlvbj5Gb3RvZ3JhZmllcnZlcmJvdCBhbHMgUGlrdG9ncmFtbSA8L2RjOmRlc2NyaXB0aW9uPg0KICAgICAgICA8Y2M6bGljZW5zZQ0KICAgICAgICAgICByZGY6cmVzb3VyY2U9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL3B1YmxpY2RvbWFpbi8iIC8+DQogICAgICA8L2NjOldvcms+DQogICAgICA8Y2M6TGljZW5zZQ0KICAgICAgICAgcmRmOmFib3V0PSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9saWNlbnNlcy9wdWJsaWNkb21haW4vIj4NCiAgICAgICAgPGNjOnBlcm1pdHMNCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyNSZXByb2R1Y3Rpb24iIC8+DQogICAgICAgIDxjYzpwZXJtaXRzDQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjRGlzdHJpYnV0aW9uIiAvPg0KICAgICAgICA8Y2M6cGVybWl0cw0KICAgICAgICAgICByZGY6cmVzb3VyY2U9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zI0Rlcml2YXRpdmVXb3JrcyIgLz4NCiAgICAgIDwvY2M6TGljZW5zZT4NCiAgICA8L3JkZjpSREY+DQogIDwvbWV0YWRhdGE+DQogIDxnDQogICAgIGlua3NjYXBlOmxhYmVsPSJFYmVuZSAxIg0KICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIg0KICAgICBpZD0ibGF5ZXIxIj4NCiAgICA8cGF0aA0KICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjEiDQogICAgICAgZD0iTSAxNjQuNTMxMjUgNjIuNjg3NSBDIDE2Mi43OTExNSA2Mi42ODc1MDEgMTYxLjM3NSA2NC4wNzI0MTYgMTYxLjM3NSA2NS44MTI1IEwgMTYxLjM3NSA2OC43NSBMIDM4LjM3NSA2OC43NSBDIDM1LjA5MjI5OCA2OC43NDk5OTkgMzIuNDY4NzUgNzEuMzczNTQ4IDMyLjQ2ODc1IDc0LjY1NjI1IEwgMzIuNDY4NzUgMTgxLjM3NSBDIDMyLjQ2ODc1IDE4NC42NTc3IDM1LjA5MjMwNyAxODcuMzEyNTEgMzguMzc1IDE4Ny4zMTI1IEwgMjExLjYyNSAxODcuMzEyNSBDIDIxNC45MDc2OSAxODcuMzEyNSAyMTcuNTMxMjcgMTg0LjY1NzcgMjE3LjUzMTI1IDE4MS4zNzUgTCAyMTcuNTMxMjUgNzQuNjU2MjUgQyAyMTcuNTMxMjUgNzEuMzczNTUxIDIxNC45MDc2OCA2OC43NSAyMTEuNjI1IDY4Ljc1IEwgMjAyLjA2MjUgNjguNzUgTCAyMDIuMDYyNSA2NS44MTI1IEMgMjAyLjA2MjUgNjQuMDcyNDEgMjAwLjY0NjM1IDYyLjY4NzUgMTk4LjkwNjI1IDYyLjY4NzUgTCAxNjQuNTMxMjUgNjIuNjg3NSB6IE0gNDYuODEyNSA3OCBMIDg4LjY1NjI1IDc4IEMgOTAuMzk2MzQyIDc4IDkxLjgxMjUgNzkuMzg0OTA3IDkxLjgxMjUgODEuMTI1IEwgOTEuODEyNSA5Ni4zMTI1IEMgOTEuODEyNSA5OC4wNTI1OTIgOTAuMzk2MzQzIDk5LjQzNzUgODguNjU2MjUgOTkuNDM3NSBMIDQ2LjgxMjUgOTkuNDM3NSBDIDQ1LjA3MjQwOCA5OS40Mzc1IDQzLjY4NzUgOTguMDUyNTkzIDQzLjY4NzUgOTYuMzEyNSBMIDQzLjY4NzUgODEuMTI1IEMgNDMuNjg3NSA3OS4zODQ5MDggNDUuMDcyNDA3IDc4IDQ2LjgxMjUgNzggeiBNIDE0NiA4OC4yMTg3NSBDIDE2Ny43MzQ3NSA4OC4yMTg3NTMgMTg1LjM3NSAxMDYuMTUwNzEgMTg1LjM3NSAxMjguMjUgQyAxODUuMzc0OTkgMTUwLjM0OTI4IDE2Ny43MzQ3NCAxNjguMjgxMjUgMTQ2IDE2OC4yODEyNSBDIDEyNC4yNjUyNyAxNjguMjgxMjYgMTA2LjYyNSAxNTAuMzQ5MjkgMTA2LjYyNSAxMjguMjUgQyAxMDYuNjI1IDEwNi4xNTA3MSAxMjQuMjY1MjYgODguMjE4NzUgMTQ2IDg4LjIxODc1IHogTSAxNDYgOTEuNzE4NzUgQyAxMjYuMTY1NTcgOTEuNzE4NzUgMTEwLjA2MjUgMTA4LjA4Mjg5IDExMC4wNjI1IDEyOC4yNSBDIDExMC4wNjI1IDE0OC40MTcxMSAxMjYuMTY1NTcgMTY0Ljc4MTI2IDE0NiAxNjQuNzgxMjUgQyAxNjUuODM0NDMgMTY0Ljc4MTI1IDE4MS45Mzc1IDE0OC40MTcxIDE4MS45Mzc1IDEyOC4yNSBDIDE4MS45Mzc1IDEwOC4wODI4OSAxNjUuODM0NDMgOTEuNzE4NzUgMTQ2IDkxLjcxODc1IHogTSAxNDYgOTYuNTkzNzUgQyAxNjMuMTc3NjggOTYuNTkzNzUyIDE3Ny4xMjUgMTEwLjc4NDIgMTc3LjEyNSAxMjguMjUgQyAxNzcuMTI0OTkgMTQ1LjcxNTggMTYzLjE3NzY5IDE1OS44NzUgMTQ2IDE1OS44NzUgQyAxMjguODIyMzEgMTU5Ljg3NSAxMTQuODc1IDE0NS43MTU4IDExNC44NzUgMTI4LjI1IEMgMTE0Ljg3NSAxMTAuNzg0MTkgMTI4LjgyMjMxIDk2LjU5Mzc1IDE0NiA5Ni41OTM3NSB6IE0gMTc2LjUgMTcyLjcxODc1IEwgMjA2LjE4NzUgMTcyLjcxODc1IEMgMjA3LjQyMTM4IDE3Mi43MTg3NSAyMDguNDA2MjUgMTczLjEyNzgzIDIwOC40MDYyNSAxNzMuNjI1IEwgMjA4LjQwNjI1IDE3Ny45Njg3NSBDIDIwOC40MDYyNSAxNzguNDY1OTIgMjA3LjQyMTM4IDE3OC44NDM3NSAyMDYuMTg3NSAxNzguODQzNzUgTCAxNzYuNSAxNzguODQzNzUgQyAxNzUuMjY2MTEgMTc4Ljg0Mzc1IDE3NC4yODEyNSAxNzguNDY1OTIgMTc0LjI4MTI1IDE3Ny45Njg3NSBMIDE3NC4yODEyNSAxNzMuNjI1IEMgMTc0LjI4MTI1IDE3My4xMjc4MyAxNzUuMjY2MTIgMTcyLjcxODc1IDE3Ni41IDE3Mi43MTg3NSB6ICINCiAgICAgICBpZD0icmVjdDMyMDkiIC8+DQogICAgPHBhdGgNCiAgICAgICBzdHlsZT0iZmlsbDojYzQyNjFkO2ZpbGwtb3BhY2l0eToxIg0KICAgICAgIGQ9Ik0gMjAgMCBDIDE4LjU1OTkzOCAwIDE3LjE2NDc0NyAwLjE1MDk4NjY2IDE1LjgxMjUgMC40Mzc1IEMgMTUuMjEwMjkxIDAuNTY1MTk1NzggMTQuNjExOTEzIDAuNzI2MjExMjYgMTQuMDMxMjUgMC45MDYyNSBDIDEzLjU1NDc3MyAxLjA1Mzk4NTIgMTMuMDg1MzQ5IDEuMjI0ODUzNiAxMi42MjUgMS40MDYyNSBDIDEyLjMyODc2NiAxLjUyMzA3MzkgMTIuMDM5MDMzIDEuNjUwOTE4MiAxMS43NSAxLjc4MTI1IEMgMTEuMzQ3Mjc4IDEuOTYyMzU5OCAxMC45NTA0MDYgMi4xMzc0MTY1IDEwLjU2MjUgMi4zNDM3NSBDIDEwLjUyMTU1NSAyLjM2NTU2ODggMTAuNDc4MjczIDIuMzg0MTU1NSAxMC40Mzc1IDIuNDA2MjUgQyAxMC40MTY5MzQgMi40MTczNzU0IDEwLjM5NTUyMiAyLjQyNjMwNDkgMTAuMzc1IDIuNDM3NSBDIDkuODMyNjg2MSAyLjczMzM0NDYgOS4zMjI2NDQ4IDMuMDYzMjQ1MiA4LjgxMjUgMy40MDYyNSBDIDguMjgzMTIyMSAzLjc2MjE4NjUgNy43NzI3NzI4IDQuMTU4OTIwOSA3LjI4MTI1IDQuNTYyNSBDIDcuMjc1MDU1IDQuNTY3NTg2NiA3LjI1NjE4ODggNC41NTc0MDYxIDcuMjUgNC41NjI1IEMgNy4yMzg1NDc5IDQuNTcxOTQzNCA3LjIzMDE4MDYgNC41ODQyODE2IDcuMjE4NzUgNC41OTM3NSBDIDcuMTA0NzM1MiA0LjY4ODAxNTkgNi45ODY4NTA3IDQuNzc4MjY4NyA2Ljg3NSA0Ljg3NSBDIDYuNTE1NzAyMSA1LjE4NjQyNjQgNi4xNzk3OTA5IDUuNTA3NzA5MSA1Ljg0Mzc1IDUuODQzNzUgQyA1LjQwNDQwMjUgNi4yODE4MDc4IDQuOTkwNzQ0OSA2Ljc0MTM1NTQgNC41OTM3NSA3LjIxODc1IEMgNC41NzkwMDg2IDcuMjM2NTQ2MiA0LjU3NzE4MDYgNy4yNjM0MDE1IDQuNTYyNSA3LjI4MTI1IEMgMy43Njc0ODk4IDguMjQzOTE4MSAzLjA0MjI3MjEgOS4yNzE4NzA1IDIuNDM3NSAxMC4zNzUgQyAyLjQyNjIyMzIgMTAuMzk1NjM1IDIuNDE3NDU2MSAxMC40MTY4MiAyLjQwNjI1IDEwLjQzNzUgQyAyLjEwODM5MDggMTAuOTg1MzQ4IDEuODQwMjIzMyAxMS41NDcyMTQgMS41OTM3NSAxMi4xMjUgQyAxLjU3NTU4NjUgMTIuMTY3NjY1IDEuNTQ5MTI1NSAxMi4yMDcxODIgMS41MzEyNSAxMi4yNSBDIDEuMjg3NzEzMSAxMi44MzI0MzMgMS4wOTQ2NzU0IDEzLjQyMTgyMiAwLjkwNjI1IDE0LjAzMTI1IEMgMC43Mjk2MzAxNCAxNC42MDI0OTUgMC41NjMwOTYzNCAxNS4xODg4MjggMC40Mzc1IDE1Ljc4MTI1IEMgMC4xNDY5MTQwNCAxNy4xNDI1NzggLTQuMzkwNjEzM2UtMTggMTguNTQ5NDY2IDAgMjAgTCAwIDIzMCBDIDAgMjQxLjA4IDguOTIgMjUwIDIwIDI1MCBMIDIzMCAyNTAgQyAyMzEuNDQwMDYgMjUwIDIzMi44MzUyNSAyNDkuODQ5MDEgMjM0LjE4NzUgMjQ5LjU2MjUgQyAyMzQuNzg5MDMgMjQ5LjQzNDk3IDIzNS4zODg2NiAyNDkuMjczODEgMjM1Ljk2ODc1IDI0OS4wOTM3NSBDIDIzNi40NDQ3NiAyNDguOTQ2IDIzNi45MTUwNSAyNDguNzc1MjYgMjM3LjM3NSAyNDguNTkzNzUgQyAyMzcuNjcxMjMgMjQ4LjQ3NjkzIDIzNy45NjA5NyAyNDguMzQ5MDggMjM4LjI1IDI0OC4yMTg3NSBDIDIzOC4yNzk4MSAyNDguMjA1MzEgMjM4LjMxNDAyIDI0OC4yMDEwOSAyMzguMzQzNzUgMjQ4LjE4NzUgQyAyMzguNzU4MzYgMjQ3Ljk5ODMgMjM5LjE2Mzc0IDI0Ny44MDk4MSAyMzkuNTYyNSAyNDcuNTkzNzUgQyAyMzkuNTgzMTggMjQ3LjU4MjU0IDIzOS42MDQzNiAyNDcuNTczNzggMjM5LjYyNSAyNDcuNTYyNSBDIDI0MC4xNjkyNSAyNDcuMjY1MTIgMjQwLjY3NTU4IDI0Ni45Mzg3MyAyNDEuMTg3NSAyNDYuNTkzNzUgQyAyNDEuNjY4NzggMjQ2LjI2OTQxIDI0Mi4xNDM1OSAyNDUuOTI2MzkgMjQyLjU5Mzc1IDI0NS41NjI1IEMgMjQyLjY0NDc0IDI0NS41MjEyOCAyNDIuNjk5NDMgMjQ1LjQ3OTIxIDI0Mi43NSAyNDUuNDM3NSBDIDI0Mi44NzY1MSAyNDUuMzMzMTggMjQzLjAwMTE1IDI0NS4yMzIzNSAyNDMuMTI1IDI0NS4xMjUgQyAyNDMuNDgyNjUgMjQ0LjgxNTM4IDI0My44MjE1NSAyNDQuNDkwMTkgMjQ0LjE1NjI1IDI0NC4xNTYyNSBDIDI0NC40OTIyOSAyNDMuODIwMjEgMjQ0LjgxMzU3IDI0My40ODQzIDI0NS4xMjUgMjQzLjEyNSBDIDI0NS4yMzE2NyAyNDMuMDAyMzQgMjQ1LjMzMzgxIDI0Mi44NzUyNyAyNDUuNDM3NSAyNDIuNzUgQyAyNDUuNDQyNzYgMjQyLjc0MzYyIDI0NS40MzIyNSAyNDIuNzI1MTMgMjQ1LjQzNzUgMjQyLjcxODc1IEMgMjQ1Ljg0MjQ5IDI0Mi4yMjgzIDI0Ni4yMzY0IDI0MS43MTU3NiAyNDYuNTkzNzUgMjQxLjE4NzUgQyAyNDYuOTM4MTIgMjQwLjY3ODQzIDI0Ny4yNjUzNiAyNDAuMTY2MjIgMjQ3LjU2MjUgMjM5LjYyNSBDIDI0Ny41NzM2MyAyMzkuNjA0NzIgMjQ3LjU4MjY4IDIzOS41ODI4MiAyNDcuNTkzNzUgMjM5LjU2MjUgQyAyNDcuODkxOTcgMjM5LjAxNDggMjQ4LjE1OTMxIDIzOC40NTIzOSAyNDguNDA2MjUgMjM3Ljg3NSBDIDI0OC40MTU1NCAyMzcuODUzMjggMjQ4LjQyODI5IDIzNy44MzQyNiAyNDguNDM3NSAyMzcuODEyNSBDIDI0OC40NDY0NCAyMzcuNzkxMjkgMjQ4LjQ1OTg4IDIzNy43NzEyNSAyNDguNDY4NzUgMjM3Ljc1IEMgMjQ4LjcwOTkyIDIzNy4xNzQ3NiAyNDguOTA2MjggMjM2LjU3MDA4IDI0OS4wOTM3NSAyMzUuOTY4NzUgQyAyNDkuMjczNzUgMjM1LjM5MTM3IDI0OS40MzQ2OCAyMzQuODE3NTQgMjQ5LjU2MjUgMjM0LjIxODc1IEMgMjQ5Ljg1MzA5IDIzMi44NTc0MiAyNTAgMjMxLjQ1MDUzIDI1MCAyMzAgTCAyNTAgMjAgQyAyNTAgOC45MiAyNDEuMDggLTMuMzUzNzk4N2UtMTcgMjMwIDAgTCAyMCAwIHogTSAzNC43ODEyNSAxOS40MDYyNSBMIDIyNS40Njg3NSAxOS40MDYyNSBDIDIyOC4zMDk0NiAxOS40MDYyNSAyMzAuNTkzNzUgMjEuNjkwNTQ0IDIzMC41OTM3NSAyNC41MzEyNSBMIDIzMC41OTM3NSAyMTUuMjUgTCAzNC43ODEyNSAxOS40MDYyNSB6IE0gMTkuNDA2MjUgMzQuNzUgTCAyMTUuMjE4NzUgMjMwLjU5Mzc1IEwgMjQuNTMxMjUgMjMwLjU5Mzc1IEMgMjEuNjkwNTQ0IDIzMC41OTM3NiAxOS40MDYyNSAyMjguMzA5NDYgMTkuNDA2MjUgMjI1LjQ2ODc1IEwgMTkuNDA2MjUgMzQuNzUgeiAiDQogICAgICAgaWQ9InBhdGgzMTk2IiAvPg0KICA8L2c+DQo8L3N2Zz4NCg==",
c.UNICODE_LINE_SEP=String.fromCharCode(8232));return c.UNICODE_LINE_SEP};c.prototype.setThemeAndVariant=function(a,b){this.theme=a;this.themeVariant=b};c.prototype.getTheme=function(){null!=this.theme&&this.theme.setVariant(this.themeVariant);return this.theme};c.prototype.getQuickStyleVals=function(){return this.quickStyleVals};c.prototype.processGeomList=function(a){if(!this.geomListProcessed){this.geomList=new g.mxgraph.io.vsdx.mxVsdxGeometryList(a);if(null!=this.geom)for(a=0;a<this.geom.length;a++)this.geomList.addGeometry(this.geom[a]);
-this.geomListProcessed=!0}};c.prototype.parseShapeElem=function(a,b){h.prototype.parseShapeElem.call(this,a,b);var d=a.nodeName;if(function(A,C){return A&&A.equals?A.equals(C):A===C}(d,"ForeignData")){d=function(A,C){for(A=A.firstChild;null!=A;){if(1==A.nodeType){var I=A;if("rel"==I.nodeName.toLowerCase()&&(I=I.getAttribute("r:id"),null!=I&&0!==I.length)){A=C.lastIndexOf("/");var N="",K="";try{N=C.substring(0,A),K=C.substring(A,C.length)}catch(O){break}A=b.getRelationship(I,N+"/_rels"+K+".rels");
-if(null!=A){C=A.getAttribute("Target")||"";I=A.getAttribute("Type");A=C.lastIndexOf("/");try{C=C.substring(A+1,C.length)}catch(O){break}return{type:I,target:C}}break}}A=A.nextSibling}};var f=a.ownerDocument.vsdxFileName,k=a.getAttribute("ForeignType"),n=a.getAttribute("CompressionType")||"",q=null;if(function(A,C){return A&&A.equals?A.equals(C):A===C}(k,"Bitmap"))n=n.toLowerCase();else if(function(A,C){return A&&A.equals?A.equals(C):A===C}(k,"MetaFile"))n="png";else if(function(A,C){return A&&A.equals?
+this.geomListProcessed=!0}};c.prototype.parseShapeElem=function(a,b){h.prototype.parseShapeElem.call(this,a,b);var d=a.nodeName;if(function(A,C){return A&&A.equals?A.equals(C):A===C}(d,"ForeignData")){d=function(A,C){for(A=A.firstChild;null!=A;){if(1==A.nodeType){var I=A;if("rel"==I.nodeName.toLowerCase()&&(I=I.getAttribute("r:id"),null!=I&&0!==I.length)){A=C.lastIndexOf("/");var Q="",K="";try{Q=C.substring(0,A),K=C.substring(A,C.length)}catch(L){break}A=b.getRelationship(I,Q+"/_rels"+K+".rels");
+if(null!=A){C=A.getAttribute("Target")||"";I=A.getAttribute("Type");A=C.lastIndexOf("/");try{C=C.substring(A+1,C.length)}catch(L){break}return{type:I,target:C}}break}}A=A.nextSibling}};var f=a.ownerDocument.vsdxFileName,k=a.getAttribute("ForeignType"),n=a.getAttribute("CompressionType")||"",q=null;if(function(A,C){return A&&A.equals?A.equals(C):A===C}(k,"Bitmap"))n=n.toLowerCase();else if(function(A,C){return A&&A.equals?A.equals(C):A===C}(k,"MetaFile"))n="png";else if(function(A,C){return A&&A.equals?
A.equals(C):A===C}(k,"Enhanced Metafile")||function(A,C){return A&&A.equals?A.equals(C):A===C}(k,"EnhMetaFile"))n="png";else if("Object"==k){if(q=d(a,f),0<q.type.indexOf("/oleObject"))if(n=b.getRelationship("rId1","visio/embeddings/_rels/"+q.target+".rels"),null!=n){q=n.getAttribute("Target");k=n.getAttribute("Type");try{var t=q.lastIndexOf("/");q=q.substring(t+1,q.length)}catch(A){return}n="png";q={type:k,target:q}}else return}else return;null==q&&(q=d(a,f));k=q.type;q=q.target;null!=k&&function(A,
C){var I=A.length-C.length;A=A.indexOf(C,I);return-1!==A&&A===I}(k,"image")&&(this.imageData={},(a=b.getMedia(g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/media/"+q))?(this.imageData.iData=a,function(A,C){var I=A.length-C.length;A=A.indexOf(C,I);return-1!==A&&A===I}(q.toLowerCase(),".bmp")&&(n="jpg"),this.imageData.iType=n):(this.imageData.iData=c.ERROR_IMAGE,this.imageData.iType="svg+xml"))}else(function(A,C){return A&&A.equals?A.equals(C):A===C})(d,g.mxgraph.io.vsdx.mxVsdxConstants.TEXT)&&(this.text=
-a)};c.prototype.parseSection=function(a){var b=a.getAttribute("N");if(function(I,N){return I&&I.equals?I.equals(N):I===N}(b,"Geometry"))null==this.geom&&(this.geom=[]),this.geom.push(a);else if(function(I,N){return I&&I.equals?I.equals(N):I===N}(b,"Field")){a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a,"Row");for(var d=0;d<a.length;d++){b=a[d];var f=b.getAttribute("IX")||"";if(0!==f.length)if(null==this.fields&&(this.fields={}),function(I,N){return I&&I.equals?I.equals(N):I===N}("1",
+a)};c.prototype.parseSection=function(a){var b=a.getAttribute("N");if(function(I,Q){return I&&I.equals?I.equals(Q):I===Q}(b,"Geometry"))null==this.geom&&(this.geom=[]),this.geom.push(a);else if(function(I,Q){return I&&I.equals?I.equals(Q):I===Q}(b,"Field")){a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a,"Row");for(var d=0;d<a.length;d++){b=a[d];var f=b.getAttribute("IX")||"";if(0!==f.length)if(null==this.fields&&(this.fields={}),function(I,Q){return I&&I.equals?I.equals(Q):I===Q}("1",
b.getAttribute("Del")))this.fields[f]="";else{for(var k=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(b,"Cell"),n="",q="",t=0;t<k.length;t++){var A=k[t];b=A.getAttribute("N");A=A.getAttribute("V")||A.textContent||"";switch(b){case "Value":n=A;break;case "Format":q=A}}if("esc(0)"==q)this.fields[f]=n;else if(0!==n.length){try{var C=isNaN(n)?new Date(n):new Date(c.VSDX_START_TIME+Math.floor(864E5*parseFloat(n)));q="c"==q?0==C.getHours()+C.getMinutes()+C.getSeconds()+C.getMilliseconds()?"m/d/yyyy":
"m/d/yyyy h:MM:ss tt":"ddddd"==q?"m/d/yyyy":"dddddd"==q?"dddd, mmmm dd, yyyy":"C"==q?"dddd, mmmm dd, yyyy h:MM:ss tt":"T"==q?"h:MM:ss tt":q.replace(/am\/pm/g,"tt").replace(/m/g,"@").replace(/M/g,"m").replace(/@/g,"M");n=Graph.prototype.formatDate(C,"UTC:"+q.replace(RegExp("\\{|\\}","g"),""))}catch(I){}this.fields[f]=n}}}}else h.prototype.parseSection.call(this,a)};c.prototype.parseGeom=function(){return this.hasGeomList()?this.geomList.getShapeXML(this):""};c.prototype.getText=function(){return null!=
this.text?this.text.textContent:null};c.prototype.getTextChildren=function(){return null!=this.text?this.text.childNodes:null};c.prototype.getWidth=function(){if(1>this.width&&null!=this.childShapes)try{for(var a=0;a<this.childShapes.entries.length;a++)this.width=Math.max(this.childShapes.entries[a].value.width,this.width)}catch(b){}return 0===this.width&&0<this.height?1:this.width};c.prototype.getHeight=function(){if(1>this.height&&null!=this.childShapes)try{for(var a=0;a<this.childShapes.entries.length;a++)this.height=
Math.max(this.childShapes.entries[a].value.height,this.height)}catch(b){}return 0===this.height&&0<this.width?1:this.height};c.prototype.getRotation=function(){return this.rotation};c.prototype.getStyleMap=function(){return this.styleMap};c.prototype.hasGeom=function(){return!(null==this.geom||0==this.geom.length)};c.prototype.hasGeomList=function(){return null!=this.geomList&&this.geomList.hasGeom()};c.prototype.getPPList=function(a){var b=null;""!=a&&(a=this.getBullet(a),"0"!=a&&(b='<ul style="margin: 0;list-style-type: '+
("4"==a?"square":"disc")+'">'));return b};c.prototype.getTextParagraphFormated=function(a){var b="",d={};d["text-align"]=this.getHorizontalAlign(this.pp,!0);d["margin-left"]=this.getIndentLeft(this.pp);d["margin-right"]=this.getIndentRight(this.pp);d["margin-top"]=this.getSpBefore(this.pp)+"px";d["margin-bottom"]=this.getSpAfter(this.pp)+"px";d["text-indent"]=this.getIndentFirst(this.pp);d["vertical-align"]=this.getAlignVertical();d.direction=this.getTextDirection(this.pp);return b+=this.insertAttributes(a,
-d)};c.prototype.getTextCharFormated=function(a){var b="color:"+this.getTextColor(this.cp)+";",d="font-size:"+parseFloat(this.getTextSize(this.cp))+"px;",f="font-family:"+this.getTextFont(this.cp)+";",k="direction:"+this.getRtlText(this.cp)+";",n="letter-spacing:"+parseFloat(this.getLetterSpace(this.cp))/.71+"px;",q="line-height:"+this.getSpcLine(this.pp),t=";opacity:"+this.getTextOpacity(this.cp),A=this.getTextPos(this.cp),C=this.getTextCase(this.cp);(function(I,N){return I&&I.equals?I.equals(N):
-I===N})(C,"1")?a=a.toUpperCase():function(I,N){return I&&I.equals?I.equals(N):I===N}(C,"2")&&(a=g.mxgraph.io.vsdx.mxVsdxUtils.toInitialCapital(a));(function(I,N){return I&&I.equals?I.equals(N):I===N})(A,"1")?a=g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sup"):function(I,N){return I&&I.equals?I.equals(N):I===N}(A,"2")&&(a=g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sub"));a=this.isBold(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"b"):a;a=this.isItalic(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,
+d)};c.prototype.getTextCharFormated=function(a){var b="color:"+this.getTextColor(this.cp)+";",d="font-size:"+parseFloat(this.getTextSize(this.cp))+"px;",f="font-family:"+this.getTextFont(this.cp)+";",k="direction:"+this.getRtlText(this.cp)+";",n="letter-spacing:"+parseFloat(this.getLetterSpace(this.cp))/.71+"px;",q="line-height:"+this.getSpcLine(this.pp),t=";opacity:"+this.getTextOpacity(this.cp),A=this.getTextPos(this.cp),C=this.getTextCase(this.cp);(function(I,Q){return I&&I.equals?I.equals(Q):
+I===Q})(C,"1")?a=a.toUpperCase():function(I,Q){return I&&I.equals?I.equals(Q):I===Q}(C,"2")&&(a=g.mxgraph.io.vsdx.mxVsdxUtils.toInitialCapital(a));(function(I,Q){return I&&I.equals?I.equals(Q):I===Q})(A,"1")?a=g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sup"):function(I,Q){return I&&I.equals?I.equals(Q):I===Q}(A,"2")&&(a=g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sub"));a=this.isBold(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"b"):a;a=this.isItalic(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,
"i"):a;a=this.isUnderline(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"u"):a;a=this.getTextStrike(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"s"):a;a=this.isSmallCaps(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.toSmallCaps(a,this.getTextSize(this.cp)):a;return'<font style="'+d+f+b+k+n+q+t+'">'+a+"</font>"};c.prototype.getTextDirection=function(a){a=this.getFlags(a);(function(b,d){return b&&b.equals?b.equals(d):b===d})(a,"0")?a="ltr":function(b,d){return b&&b.equals?b.equals(d):
b===d}(a,"1")&&(a="rtl");return a};c.prototype.getSpcLine=function(a){var b=!1;a=this.getSpLine(a);0<a?a*=g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():(a=0===a?100:100*Math.abs(a),b=!0);return(new String(a)).toString()+(b?"%":"px")};c.prototype.getSpcBefore=function(a){return this.getSpBefore(a)};c.prototype.insertAttributes=function(a,b){if(-1!=a.indexOf(">")){var d=a.indexOf(">"),f=a.substring(d);a=a.substring(0,d);b=' style="'+g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(b,":")+'"';return a+
b+f}return a};c.prototype.getRtlText=function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.RTL_TEXT,a,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);a=this.getValue(a,"ltr");(function(b,d){return b&&b.equals?b.equals(d):b===d})(a,"0")?a="ltr":function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"1")&&(a="rtl");return a};c.prototype.isBold=function(a){var b=!1;a=this.getTextStyle(a);(function(d,f){return d&&d.equals?d.equals(f):d===f})(a,
@@ -15823,9 +15823,9 @@ a=this.getValue(a,"0");var b="1";null!=a&&0!==a.length&&(a=1-parseFloat(a),b=(ne
a};c.prototype.setLastMoveX=function(a){this.lastMoveX=a};c.prototype.setLastMoveY=function(a){this.lastMoveY=a};c.prototype.setLastKnot=function(a){this.lastKnot=a};c.prototype.getConnections=function(){var a=[];if(this.sections&&this.sections.Connection)for(var b=this.getHeight(),d=this.getWidth(),f=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(this.sections.Connection.elem,"Row"),k=0;k<f.length;k++){for(var n=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(f[k]),q,t,A=0;A<n.length;A++){var C=
n[A],I=C.getAttribute("N");C=this.getScreenNumericalValue$org_w3c_dom_Element$double(C,0);"X"==I?q=mxUtils.format(C/d):"Y"==I&&(t=mxUtils.format(1-C/b))}null!=q&&null!=t&&a.push({x:q,y:t})}0==a.length&&this.master&&this.master.masterShape&&(a=this.master.masterShape.getConnections());return a};return c}(g.mxgraph.io.vsdx.Style);m.VSDX_START_TIME=(new Date("1899-12-30T00:00:00Z")).getTime();B.Shape=m;m.__class="com.mxgraph.io.vsdx.Shape"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph=
{}))})(com||(com={}));
-(function(g){(function(y){(function(z){(function(B){var m=function(h){function c(a,b,d,f,k,n){function q(){var I;if(I=2!=a.connectsMap[t.Id])if(I=null!=t.childShapes)I=t.childShapes,null==I.entries&&(I.entries=[]),I=0!=I.entries.length;try{if(1==t.childShapes.entries.length){var N=t.childShapes.entries[0].value,K=t.fields?Object.values(t.fields).join(""):t.text.textContent,O=N.fields?Object.values(N.fields).join(""):N.text.textContent;K==O&&(I=!1,t.childShapes.entries=[],t.noLabelGroup=!0)}}catch(S){console.log(S)}return I}
+(function(g){(function(y){(function(z){(function(B){var m=function(h){function c(a,b,d,f,k,n){function q(){var I;if(I=2!=a.connectsMap[t.Id])if(I=null!=t.childShapes)I=t.childShapes,null==I.entries&&(I.entries=[]),I=0!=I.entries.length;try{if(1==t.childShapes.entries.length){var Q=t.childShapes.entries[0].value,K=t.fields?Object.values(t.fields).join(""):t.text.textContent,L=Q.fields?Object.values(Q.fields).join(""):Q.text.textContent;K==L&&(I=!1,t.childShapes.entries=[],t.noLabelGroup=!0)}}catch(S){console.log(S)}return I}
var t=this;t.masterShape=null;t.master=null;t.parentHeight=0;t=h.call(this,b,n)||this;t.htmlLabels=!0;t.rootShape=t;t.shapeName=null;t.shapeIndex=0;t.vertex=!0;t.childShapes={};var A=t.getMasterId(),C=t.getShapeMasterId();t.master=null!=A?f[A]?f[A]:null:k;null!=t.master&&(t.masterShape=null==A&&null!=C?t.master.getSubShape(C):t.master.getMasterShape());f=t.getNameU();k=f.lastIndexOf(".");-1!==k&&(f=f.substring(0,k));t.shapeName=f;b=b.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.SHAPES);
-null!=b&&0<b.length&&(b=b.item(0),t.childShapes=a.parseShapes(b,t.master,!1));b=t.calcRotation();t.rotation=100*b/100;t.rotation%=360;b=a.getCellIntValue("ThemeIndex",-100);-100===b&&(b=parseInt(t.getValue(t.getCellElement$java_lang_String("ThemeIndex"),"0")));n=function(I,N){null==I.entries&&(I.entries=[]);for(var K=0;K<I.entries.length;K++)if(null!=I.entries[K].key.equals&&I.entries[K].key.equals(N)||I.entries[K].key===N)return I.entries[K].value;return null}(n.getThemes(),b);null==n&&"1"==urlParams.dev&&
+null!=b&&0<b.length&&(b=b.item(0),t.childShapes=a.parseShapes(b,t.master,!1));b=t.calcRotation();t.rotation=100*b/100;t.rotation%=360;b=a.getCellIntValue("ThemeIndex",-100);-100===b&&(b=parseInt(t.getValue(t.getCellElement$java_lang_String("ThemeIndex"),"0")));n=function(I,Q){null==I.entries&&(I.entries=[]);for(var K=0;K<I.entries.length;K++)if(null!=I.entries[K].key.equals&&I.entries[K].key.equals(Q)||I.entries[K].key===Q)return I.entries[K].value;return null}(n.getThemes(),b);null==n&&"1"==urlParams.dev&&
console.log("No theme found for index "+b);b=a.getCellIntValue("VariationColorIndex",0);t.setThemeAndVariant(n,b);f=function(I){null==I.entries&&(I.entries=[]);return I.entries}(t.childShapes);for(k=0;k<f.length;k++)A=f[k].getValue(),A.setRootShape(t),null==A.theme&&A.setThemeAndVariant(n,b);t.quickStyleVals=new g.mxgraph.io.vsdx.theme.QuickStyleVals(parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleEffectsMatrix"),"0")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleFillColor"),
"1")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleFillMatrix"),"0")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleFontColor"),"1")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleFontMatrix"),"0")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleLineColor"),"1")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleLineMatrix"),"0")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleShadowColor"),
"1")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleType"),"0")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleVariation"),"0")));null!=t.masterShape?(t.masterShape.processGeomList(null),t.processGeomList(t.masterShape.getGeomList()),0===t.width&&(t.width=t.getScreenNumericalValue$org_w3c_dom_Element$double(t.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0)),0===t.height&&(t.height=t.getScreenNumericalValue$org_w3c_dom_Element$double(t.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),
@@ -15902,10 +15902,10 @@ if(function(A,C,I){void 0===I&&(I=0);return A.substr(I,C.length)===C}(d,"Organiz
f=f.hasAttribute("F")?f.getAttribute("F"):f.textContent);k=a.getGeometry();d=d.split("Width/2+").join("");d=d.split("DL").join("");f=f.split("Height*").join("");(function(A,C){return A&&A.equals?A.equals(C):A===C})(d,"Inh")&&(d="0.0");(function(A,C){return A&&A.equals?A.equals(C):A===C})(f,"Inh")&&(f="-0.4");-1!=f.indexOf("txtHeight")&&(f="-0.4");b=b.split(";");for(var n="",q=0;q<b.length;q++){var t=b[q];t=t.trim();(function(A,C,I){void 0===I&&(I=0);return A.substr(I,C.length)===C})(t,"tabHeight=")&&
(n=t.split("tabHeight=").join(""))}(function(A,C){return A&&A.equals?A.equals(C):A===C})(n,"")&&(n="20");b=parseFloat(n);d=parseFloat(d);f=parseFloat(f);n=k.height;d=.1*k.width+100*d;d=new mxPoint(d,n-n*f-b/2);a.getGeometry().offset=d}else if(function(A,C,I){void 0===I&&(I=0);return A.substr(I,C.length)===C}(d,"Domain 3D")||function(A,C,I){void 0===I&&(I=0);return A.substr(I,C.length)===C}(f,"Domain 3D")){k=this.shape.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.CONTROL).item(0);d=null;
d="0.0";f=null;f="-0.4";null!=k&&(d=k.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.X).item(0),d=d.getAttribute("F")||"",f=k.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.Y).item(0),f=f.getAttribute("F")||"");k=a.getGeometry();d=d.split("Width/2+").join("");d=d.split("DL").join("");f=f.split("Height*").join("");if(function(A,C){return A&&A.equals?A.equals(C):A===C}(d,"Inh")||function(A,C){return A&&A.equals?A.equals(C):A===C}(d,""))d="0.0";if(function(A,C){return A&&A.equals?A.equals(C):
-A===C}(f,"Inh")||function(A,C){return A&&A.equals?A.equals(C):A===C}(f,""))f="-0.4";-1!=f.indexOf("txtHeight")&&(f="-0.4");d=parseFloat(d);f=parseFloat(f);n=k.height;d=.1*k.width+100*d;d=new mxPoint(d,n-n*f);a.getGeometry().offset=d}};c.prototype.getForm=function(){var a={};if(this.isVertex())try{var b=c.getType(this.getShape());this.styleDebug("shape type = "+b);if(null!=this.imageData||function(O,S){return O&&O.equals?O.equals(S):O===S}(g.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN,b)&&null!=this.masterShape&&
-null!=this.masterShape.imageData){var d=null!=this.imageData?this.imageData:this.masterShape.imageData;a.shape="image";a.aspect="fixed";var f=function(O,S){return O[S]?O[S]:null}(d,"iType"),k=function(O,S){return O[S]?O[S]:null}(d,"iData"),n=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetX"),"0")),q=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetY"),"0")),t=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgWidth"),"0")),A=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgHeight"),
-"0")),C=parseFloat(this.getValue(this.getCellElement$java_lang_String("Width"),"0")),I=parseFloat(this.getValue(this.getCellElement$java_lang_String("Height"),"0"));0!=n||0!=q||t!=C||A!=I?this.toBeCroppedImg={imgOffsetX:n,imgOffsetY:q,imgWidth:t,imgHeight:A,width:C,height:I,iType:f,iData:k}:a.image="data:image/"+f+","+k;return a}var N=this.parseGeom();if(function(O,S){return O&&O.equals?O.equals(S):O===S}(N,""))return this.styleDebug("No geom found"),a;var K=Graph.compress(N);a[mxConstants.STYLE_SHAPE]=
-"stencil("+K+")"}catch(O){}else return this.getEdgeStyle();return a};c.prototype.isOff_page_reference=function(){var a=this.getNameU();return function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"Off-page reference")||function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"Lined/Shaded process")?!0:!1};c.prototype.isExternal_process=function(){var a=(a=this.shapeName)&&a.equals?a.equals("External process"):"External process"===a;return a};c.prototype.getDirection=function(a){a=mxResources.get("mxOffset"+
+A===C}(f,"Inh")||function(A,C){return A&&A.equals?A.equals(C):A===C}(f,""))f="-0.4";-1!=f.indexOf("txtHeight")&&(f="-0.4");d=parseFloat(d);f=parseFloat(f);n=k.height;d=.1*k.width+100*d;d=new mxPoint(d,n-n*f);a.getGeometry().offset=d}};c.prototype.getForm=function(){var a={};if(this.isVertex())try{var b=c.getType(this.getShape());this.styleDebug("shape type = "+b);if(null!=this.imageData||function(L,S){return L&&L.equals?L.equals(S):L===S}(g.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN,b)&&null!=this.masterShape&&
+null!=this.masterShape.imageData){var d=null!=this.imageData?this.imageData:this.masterShape.imageData;a.shape="image";a.aspect="fixed";var f=function(L,S){return L[S]?L[S]:null}(d,"iType"),k=function(L,S){return L[S]?L[S]:null}(d,"iData"),n=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetX"),"0")),q=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetY"),"0")),t=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgWidth"),"0")),A=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgHeight"),
+"0")),C=parseFloat(this.getValue(this.getCellElement$java_lang_String("Width"),"0")),I=parseFloat(this.getValue(this.getCellElement$java_lang_String("Height"),"0"));0!=n||0!=q||t!=C||A!=I?this.toBeCroppedImg={imgOffsetX:n,imgOffsetY:q,imgWidth:t,imgHeight:A,width:C,height:I,iType:f,iData:k}:a.image="data:image/"+f+","+k;return a}var Q=this.parseGeom();if(function(L,S){return L&&L.equals?L.equals(S):L===S}(Q,""))return this.styleDebug("No geom found"),a;var K=Graph.compress(Q);a[mxConstants.STYLE_SHAPE]=
+"stencil("+K+")"}catch(L){}else return this.getEdgeStyle();return a};c.prototype.isOff_page_reference=function(){var a=this.getNameU();return function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"Off-page reference")||function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"Lined/Shaded process")?!0:!1};c.prototype.isExternal_process=function(){var a=(a=this.shapeName)&&a.equals?a.equals("External process"):"External process"===a;return a};c.prototype.getDirection=function(a){a=mxResources.get("mxOffset"+
this.shapeName);if(null!=a&&!function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"0")&&!function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"")){if(function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"1"))return mxConstants.DIRECTION_SOUTH;if(function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"2"))return mxConstants.DIRECTION_WEST;if(function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"3"))return mxConstants.DIRECTION_NORTH}return mxConstants.DIRECTION_EAST};c.prototype.isSubproces=function(){var a=
(a=this.shapeName)&&a.equals?a.equals("Subproces"):"Subproces"===a;return a};c.prototype.getEdgeStyle$=function(){return{edgeStyle:"none"}};c.prototype.getChildShapes=function(){return this.childShapes};c.prototype.setChildShapes=function(a){this.childShapes=a};c.prototype.isDisplacedLabel=function(){var a=this.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X,"F",""),b=this.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y,"F",""),d=this.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH,
"F",""),f=this.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT,"F","");if(null!=this.masterShape){if(""===a||function(k,n){return k&&k.equals?k.equals(n):k===n}(a.toLowerCase(),"inh"))a=this.masterShape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X,"F","");if(""===b||function(k,n){return k&&k.equals?k.equals(n):k===n}(b.toLowerCase(),"inh"))b=this.masterShape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y,"F","");if(""===d||function(k,n){return k&&k.equals?k.equals(n):
@@ -15927,8 +15927,8 @@ k.entries[q].key.equals&&k.entries[q].key.equals(n)||k.entries[q].key===n)return
a,b,d);return null==f&&null!=this.masterShape?this.masterShape.getCellElement$java_lang_String$java_lang_String$java_lang_String(a,b,d):f};c.prototype.getCellElement=function(a,b,d){if("string"!==typeof a&&null!==a||"string"!==typeof b&&null!==b||"string"!==typeof d&&null!==d){if("string"!==typeof a&&null!==a||void 0!==b||void 0!==d)throw Error("invalid overload");return this.getCellElement$java_lang_String(a)}return this.getCellElement$java_lang_String$java_lang_String$java_lang_String(a,b,d)};c.prototype.createLabelSubShape=
function(a,b){var d=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),this.getWidth()),f=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT),this.getHeight()),k=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_X),d/2),n=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_Y),
f/2),q=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X),k),t=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),n),A=this.getValueAsDouble(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE),0),C=this.getTextLabel(1>d||1>f);if(null!=C&&0!==C.length){var I=mxUtils.clone(this.getStyleMap())||{};I[mxConstants.STYLE_FILLCOLOR]=mxConstants.NONE;I[mxConstants.STYLE_STROKECOLOR]=
-mxConstants.NONE;I[mxConstants.STYLE_GRADIENTCOLOR]=mxConstants.NONE;I.hasOwnProperty("align")||(I.align="center");I.hasOwnProperty("verticalAlign")||(I.verticalAlign="middle");I.hasOwnProperty("whiteSpace")||(I.whiteSpace="wrap");delete I.shape;delete I.image;this.isVerticalLabel()&&(A+=Math.PI+.01,I.horizontal="0");var N=this.getRotation();0!==A&&(A=360-180*A/Math.PI,A=Math.round((A+N)%360*100)/100,0!==A&&(I.rotation=""+A));I="text;"+g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(I,"=");n=b.getGeometry().height-
-(t+f-n);k=q-k;0<N&&(q=new mxGeometry(k,n,d,f),k=b.getGeometry(),g.mxgraph.online.Utils.rotatedGeometry(q,N,k.width/2,k.height/2),k=q.x,n=q.y);return a.insertVertex(b,null,C,Math.round(100*k)/100,Math.round(100*n)/100,Math.round(100*d)/100,Math.round(100*f)/100,I+";html=1;")}return null};c.prototype.getLblEdgeOffset=function(a,b){if(null!=b&&1<b.length){var d=new mxCellState;d.absolutePoints=b;a.updateEdgeBounds(d);a=a.getPoint(d);d=b[0];var f=b[b.length-1];b=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),
+mxConstants.NONE;I[mxConstants.STYLE_GRADIENTCOLOR]=mxConstants.NONE;I.hasOwnProperty("align")||(I.align="center");I.hasOwnProperty("verticalAlign")||(I.verticalAlign="middle");I.hasOwnProperty("whiteSpace")||(I.whiteSpace="wrap");delete I.shape;delete I.image;this.isVerticalLabel()&&(A+=Math.PI+.01,I.horizontal="0");var Q=this.getRotation();0!==A&&(A=360-180*A/Math.PI,A=Math.round((A+Q)%360*100)/100,0!==A&&(I.rotation=""+A));I="text;"+g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(I,"=");n=b.getGeometry().height-
+(t+f-n);k=q-k;0<Q&&(q=new mxGeometry(k,n,d,f),k=b.getGeometry(),g.mxgraph.online.Utils.rotatedGeometry(q,Q,k.width/2,k.height/2),k=q.x,n=q.y);return a.insertVertex(b,null,C,Math.round(100*k)/100,Math.round(100*n)/100,Math.round(100*d)/100,Math.round(100*f)/100,I+";html=1;")}return null};c.prototype.getLblEdgeOffset=function(a,b){if(null!=b&&1<b.length){var d=new mxCellState;d.absolutePoints=b;a.updateEdgeBounds(d);a=a.getPoint(d);d=b[0];var f=b[b.length-1];b=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),
this.getWidth());var k=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT),this.getHeight()),n=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_X),0),q=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_Y),0),t=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X),
0),A=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),0);f=(this.getHeight()-(d.y-f.y))/2+d.y-a.y-(A-q+k/2);a=t-n+b/2+(d.x-a.x);return 1E11<Math.abs(a)?null:new mxPoint(Math.floor(Math.round(100*a)/100),Math.floor(Math.round(100*f)/100))}return null};c.prototype.getShapeIndex=function(){return this.shapeIndex};c.prototype.setShapeIndex=function(a){this.shapeIndex=a};return c}(g.mxgraph.io.vsdx.Shape);m.__static_initialized=!1;m.ARROW_NO_FILL_MARKER=
"0";m.maxDp=2;m.USE_SHAPE_MATCH=!1;m.stencilTemplate='<shape h="htemplate" w="wtemplate" aspect="variable" strokewidth="inherit"><connections></connections><background></background><foreground></foreground></shape>';B.VsdxShape=m;m.__class="com.mxgraph.io.vsdx.VsdxShape"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));
@@ -15950,8 +15950,8 @@ com.mxgraph.io.vsdx.VsdxShape.arrowTypes_$LI$();com.mxgraph.io.vsdx.VsdxShape.ar
com.mxgraph.io.vsdx.mxVsdxTheme.colorIds_$LI$();com.mxgraph.io.vsdx.mxVsdxTheme.themesIds_$LI$();com.mxgraph.io.vsdx.mxVsdxTheme.__static_initialize();com.mxgraph.io.vsdx.mxVsdxConstants.MY_SET_$LI$();com.mxgraph.io.vsdx.mxVsdxConstants.SET_VALUES_$LI$();com.mxgraph.io.vsdx.mxPropertiesManager.defaultColors_$LI$();com.mxgraph.io.vsdx.mxPropertiesManager.__static_initialize();com.mxgraph.io.mxVsdxCodec.vsdxPlaceholder_$LI$();com.mxgraph.io.mxVsdxCodec.parsererrorNS_$LI$();
EditorUi.prototype.doImportVisio=function(g,y,z,B){B=B||g.name;null!=B&&/(\.vs(x|sx?))($|\?)/i.test(B)?(new com.mxgraph.io.mxVssxCodec(this)).decodeVssx(g,y,null,z):(new com.mxgraph.io.mxVsdxCodec(this)).decodeVsdx(g,y,null,z)};function mxGraphMlCodec(){this.cachedRefObj={}}mxGraphMlCodec.prototype.refRegexp=/^\{y:GraphMLReference\s+(\d+)\}$/;mxGraphMlCodec.prototype.staticRegexp=/^\{x:Static\s+(.+)\.(.+)\}$/;
mxGraphMlCodec.prototype.decode=function(g,y,z){try{var B=mxUtils.parseXml(g),m=this.getDirectChildNamedElements(B.documentElement,mxGraphMlConstants.GRAPH);this.initializeKeys(B.documentElement);g='<?xml version="1.0" encoding="UTF-8"?><mxfile>';for(B=0;B<m.length;B++){var h=m[B],c=this.createMxGraph(),a=c.getModel();a.beginUpdate();try{for(this.nodesMap={},this.edges=[],this.importGraph(h,c,c.getDefaultParent()),B=0;B<this.edges.length;B++)for(var b=this.edges[B],d=b.edges,f=b.parent,k=b.dx,n=b.dy,
-q=0;q<d.length;q++)this.importEdge(d[q],c,f,k,n)}catch(W){throw console.log(W),W;}finally{a.endUpdate()}a.beginUpdate();try{var t=c.getModel().cells,A;for(A in t){var C=t[A];if(C.edge&&0<C.getChildCount())for(B=0;B<C.getChildCount();B++){var I=C.children[B].geometry;if(I.adjustIt){var N=c.view.getState(C),K=N.absolutePoints,O=K[0],S=K[K.length-1],H=I.x,J=I.y;k=S.x-O.x;n=S.y-O.y;var M=O.x+H*k,L=O.y+H*n,Q=Math.sqrt(k*k+n*n);k/=Q;n/=Q;M-=J*n;L+=J*k;var ca=c.view.getRelativePoint(N,M,L);I.x=ca.x;I.y=
-ca.y}}}}catch(W){throw console.log(W),W;}finally{a.endUpdate()}g+=this.processPage(c,B+1)}y&&y(g+"</mxfile>")}catch(W){z&&z(W)}};
+q=0;q<d.length;q++)this.importEdge(d[q],c,f,k,n)}catch(ca){throw console.log(ca),ca;}finally{a.endUpdate()}a.beginUpdate();try{var t=c.getModel().cells,A;for(A in t){var C=t[A];if(C.edge&&0<C.getChildCount())for(B=0;B<C.getChildCount();B++){var I=C.children[B].geometry;if(I.adjustIt){var Q=c.view.getState(C),K=Q.absolutePoints,L=K[0],S=K[K.length-1],R=I.x,H=I.y;k=S.x-L.x;n=S.y-L.y;var N=L.x+R*k,J=L.y+R*n,M=Math.sqrt(k*k+n*n);k/=M;n/=M;N-=H*n;J+=H*k;var T=c.view.getRelativePoint(Q,N,J);I.x=T.x;I.y=
+T.y}}}}catch(ca){throw console.log(ca),ca;}finally{a.endUpdate()}g+=this.processPage(c,B+1)}y&&y(g+"</mxfile>")}catch(ca){z&&z(ca)}};
mxGraphMlCodec.prototype.initializeKeys=function(g){var y=this.getDirectChildNamedElements(g,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 z,B=0;B<y.length;B++){var m=this.dataElem2Obj(y[B]),h=m[mxGraphMlConstants.ID],c=m[mxGraphMlConstants.KEY_FOR],a=m[mxGraphMlConstants.KEY_NAME],b=m[mxGraphMlConstants.KEY_YTYPE];a==mxGraphMlConstants.SHARED_DATA&&(z=h);a=a?a:b;switch(c){case mxGraphMlConstants.NODE:this.nodesKeys[a]=
{key:h,keyObj:m};break;case mxGraphMlConstants.EDGE:this.edgesKeys[a]={key:h,keyObj:m};break;case mxGraphMlConstants.PORT:this.portsKeys[a]={key:h,keyObj:m};break;case mxGraphMlConstants.ALL:m={key:h,keyObj:m},this.nodesKeys[a]=m,this.edgesKeys[a]=m,this.portsKeys[a]=m}}g=this.getDirectChildNamedElements(g,mxGraphMlConstants.DATA);for(B=0;B<g.length;B++)if(g[B].getAttribute(mxGraphMlConstants.KEY)==z)for(c=this.getDirectChildNamedElements(g[B],mxGraphMlConstants.Y_SHARED_DATA),y=0;y<c.length;y++)for(a=
@@ -15969,16 +15969,16 @@ mxGraphMlCodec.prototype.importNode=function(g,y,z,B,m){var h=this.getDirectChil
q;else if(q.key==this.nodesKeys[mxGraphMlConstants.NODE_STYLE].key)b=q,q["yjs:StringTemplateNodeStyle"]?d=q["yjs:StringTemplateNodeStyle"]["#text"]:this.addNodeStyle(a,q,z);else if(q.key==this.nodesKeys[mxGraphMlConstants.NODE_LABELS].key)k=q;else if(q.key==this.nodesKeys[mxGraphMlConstants.NODE_GRAPHICS].key){var t=b=null;for(t in q)if("key"!=t&&"#text"!=t){if("y:ProxyAutoBoundsNode"==t){if(t=q[t]["y:Realizers"])for(var A in t)if("active"!=A&&"#text"!=A){b=t[A][t.active];q={};q[A]=b;break}}else b=
q[t];break}b&&(b[mxGraphMlConstants.GEOMETRY]&&this.addNodeGeo(a,b[mxGraphMlConstants.GEOMETRY],B,m),b[mxGraphMlConstants.NODE_LABEL]&&(k=b[mxGraphMlConstants.NODE_LABEL]));b=q;this.addNodeStyle(a,q,z)}}m=this.getDirectChildNamedElements(g,mxGraphMlConstants.PORT);B={};for(n=0;n<m.length;n++)this.importPort(m[n],B);d&&this.handleTemplates(d,f,a,z);this.handleFixedRatio(a,z);this.handleCompoundShape(a,z,b,null);0==z.strokeWidth&&(z.strokeColor="none");a.style=this.styleMap2Str(z);g=this.getDirectChildNamedElements(g,
mxGraphMlConstants.GRAPH);for(n=0;n<g.length;n++)this.importGraph(g[n],y,a,B);k&&this.addLabels(a,k,z,y);this.nodesMap[c]={node:a,ports:B}};
-mxGraphMlCodec.prototype.addNodeStyle=function(g,y,z){g=function(H,J){if("line"!=H){J.dashed=1;switch(H){case "DashDot":H="3 1 1 1";break;case "Dot":H="1 1";break;case "DashDotDot":H="3 1 1 1 1 1";break;case "Dash":H="3 1";break;case "dotted":H="1 3";break;case "dashed":H="5 2";break;default:H=H.replace(/0/g,"1")}H&&(0>H.indexOf(" ")&&(H=H+" "+H),J.dashPattern=H)}};g={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(H,J){"true"==H&&(J.fillColor="none")}},"y:BorderStyle":{color:{key:"strokeColor",mod:"color"},width:"strokeWidth",hasColor:function(H,J){"false"==H&&(J.strokeColor="none")},
+mxGraphMlCodec.prototype.addNodeStyle=function(g,y,z){g=function(R,H){if("line"!=R){H.dashed=1;switch(R){case "DashDot":R="3 1 1 1";break;case "Dot":R="1 1";break;case "DashDotDot":R="3 1 1 1 1 1";break;case "Dash":R="3 1";break;case "dotted":R="1 3";break;case "dashed":R="5 2";break;default:R=R.replace(/0/g,"1")}R&&(0>R.indexOf(" ")&&(R=R+" "+R),H.dashPattern=R)}};g={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(R,H){"true"==R&&(H.fillColor="none")}},"y:BorderStyle":{color:{key:"strokeColor",mod:"color"},width:"strokeWidth",hasColor:function(R,H){"false"==R&&(H.strokeColor="none")},
type:g},stroke:{key:"strokeColor",mod:"color"},"stroke.yjs:Stroke":{dashStyle:g,"dashStyle.yjs:DashStyle.dashes":g,fill:{key:"strokeColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"strokeColor",mod:"color"},"thickness.sys:Double":"strokeWidth",thickness:"strokeWidth"}};var B=mxUtils.clone(g);B.defaults={fillColor:"#CCCCCC",strokeColor:"#6881B3"};var m=mxUtils.clone(g);m.defaults={shape:"ext;rounded=1",fillColor:"#FFFFFF",strokeColor:"#000090"};var h=mxUtils.clone(g);h.defaults={shape:"rhombus;fillColor=#FFFFFF;strokeColor=#FFCD28"};
var c=mxUtils.clone(g);c.defaults={shape:"hexagon",strokeColor:"#007000"};var a=mxUtils.clone(g);a.defaults={shape:"mxgraph.bpmn.shape;perimeter=ellipsePerimeter;symbol=general",outline:"standard"};a.characteristic={key:"outline",mod:"bpmnOutline"};var b=mxUtils.clone(g);b.defaults={shape:"js:bpmnDataObject"};var d=mxUtils.clone(g);d.defaults={shape:"datastore"};var f=mxUtils.clone(g);f.defaults={shape:"swimlane;swimlaneLine=0;startSize=20;dashed=1;dashPattern=3 1 1 1;collapsible=0;rounded=1"};var k=
mxUtils.clone(g);k.defaults={shape:"js:BpmnChoreography"};var n=mxUtils.clone(g);n.defaults={rounded:"1",glass:"1",strokeColor:"#FFFFFF"};n.inset="strokeWidth";n.radius="arcSize";n.drawShadow={key:"shadow",mod:"bool"};n.color={key:"fillColor",mod:"color",addGradient:"north"};n["color.yjs:Color.value"]=n.color;var q=mxUtils.clone(g);q.defaults={rounded:"1",arcSize:10,glass:"1",shadow:"1",strokeColor:"none"};q.drawShadow={key:"shadow",mod:"bool"};var t=mxUtils.clone(g);t.defaults={shape:"swimlane",
startSize:20,strokeWidth:4,spacingLeft:10};t.isCollapsible={key:"collapsible",mod:"bool"};t.borderColor={key:"strokeColor",mod:"color"};t.folderFrontColor={key:"fillColor",mod:"color"};var A=mxUtils.clone(g);A.defaults={shape:"swimlane",startSize:20,spacingLeft:10};A["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 C=mxUtils.clone(g);C.defaults={shape:"js:table"};var I=mxUtils.clone(g);I.defaults={shape:"image"};I.image=function(H,J){J.image=H};var N=mxUtils.clone(g);N.defaults={shape:"image"};N["y:SVGModel.y:SVGContent.y:Resource.#text"]=function(H,J){J.image="data:image/svg+xml,"+(window.btoa?btoa(H):Base64.encode(H))};var K=mxUtils.clone(g);K.defaults={shape:"swimlane",startSize:20};K["y:Shape.type"]=function(H,J){"roundrectangle"==H&&(J.rounded=1,J.arcSize=5)};var O=mxUtils.clone(g);O.defaults={shape:"js:table2"};
+var C=mxUtils.clone(g);C.defaults={shape:"js:table"};var I=mxUtils.clone(g);I.defaults={shape:"image"};I.image=function(R,H){H.image=R};var Q=mxUtils.clone(g);Q.defaults={shape:"image"};Q["y:SVGModel.y:SVGContent.y:Resource.#text"]=function(R,H){H.image="data:image/svg+xml,"+(window.btoa?btoa(R):Base64.encode(R))};var K=mxUtils.clone(g);K.defaults={shape:"swimlane",startSize:20};K["y:Shape.type"]=function(R,H){"roundrectangle"==R&&(H.rounded=1,H.arcSize=5)};var L=mxUtils.clone(g);L.defaults={shape:"js:table2"};
var S=mxUtils.clone(g);S.defaults={gradientDirection:"east"};S["y:Fill"].color2={key:"gradientColor",mod:"color"};S["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(y,{"yjs:ShapeNodeStyle":g,"demostyle:FlowchartNodeStyle":g,"demostyle:AssetNodeStyle":B,"bpmn:ActivityNodeStyle":m,"bpmn:GatewayNodeStyle":h,"bpmn:ConversationNodeStyle":c,"bpmn:EventNodeStyle":a,"bpmn:DataObjectNodeStyle":b,"bpmn:DataStoreNodeStyle":d,"bpmn:GroupNodeStyle":f,"bpmn:ChoreographyNodeStyle":k,"yjs:BevelNodeStyle":n,"yjs:ShinyPlateNodeStyle":q,"demostyle:DemoGroupStyle":t,"yjs:CollapsibleNodeStyleDecorator":A,
-"bpmn:PoolNodeStyle":C,"yjs:TableNodeStyle":C,"demotablestyle:DemoTableStyle":C,"yjs:ImageNodeStyle":I,"y:ShapeNode":g,"y:GenericNode":S,"y:GenericGroupNode":S,"y:TableNode":O,"y:SVGNode":N,"y:GroupNode":K},z)};
+"bpmn:PoolNodeStyle":C,"yjs:TableNodeStyle":C,"demotablestyle:DemoTableStyle":C,"yjs:ImageNodeStyle":I,"y:ShapeNode":g,"y:GenericNode":S,"y:GenericGroupNode":S,"y:TableNode":L,"y:SVGNode":Q,"y:GroupNode":K},z)};
mxGraphMlCodec.prototype.handleTemplates=function(g,y,z,B){if(g){var m=z.geometry.width,h=z.geometry.height;z='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+m+" "+h+'"><g>';for(var c,a=[],b=/\{TemplateBinding\s+([^}]+)\}/g;null!=(c=b.exec(g));){var d="";switch(c[1]){case "width":d=m;break;case "height":d=h}a.push({match:c[0],repl:d})}if(y&&y["y:Json"])for(y=JSON.parse(y["y:Json"]["#text"]),m=/\{Binding\s+([^}]+)\}/g;null!=(c=m.exec(g));)if(h=c[1].split(","),
b=y[h[0]])1<h.length&&h[1].indexOf("Converter=")&&(d=mxGraphMlConverters[h[1].substr(11)])&&(b=[b],h[2]&&b.push(h[2].substr(11)),b=d.apply(null,b)),a.push({match:c[0],repl:mxUtils.htmlEntities(b)});for(c=0;c<a.length;c++)g=g.replace(a[c].match,a[c].repl);a=[];for(y=/<text.+data-content="([^"]+).+<\/text>/g;null!=(c=y.exec(g));)b=c[0].substr(0,c[0].length-7)+c[1]+"</text>",a.push({match:c[0],repl:b});for(c=0;c<a.length;c++)g=g.replace(a[c].match,a[c].repl);g=z+g+"</g></svg>";B.shape="image";B.image=
"data:image/svg+xml,"+(window.btoa?btoa(g):Base64.encode(g))}};
@@ -16021,16 +16021,16 @@ mxGraphMlCodec.prototype.addEdgeStyle=function(g,y,z){g=function(a,b){b.dashed=1
h={defaults:{rounded:0,endArrow:"none"},configuration:{key:"shape",mod:"shape"},"y:LineStyle":{color:{key:"strokeColor",mod:"color"},type:function(a,b){"line"!=a&&(b.dashed=1);var d=null;switch(a){case "dashed":d="3 1";break;case "dotted":d="1 1";break;case "dashed_dotted":d="3 2 1 2"}d&&(b.dashPattern=d)},width:"strokeWidth"},"y:Arrows":{source:function(a,b){b.startArrow=mxGraphMlArrowsMap[a]||"classic";m(a,b)},target:function(a,b){b.endArrow=mxGraphMlArrowsMap[a]||"classic";B(a,b)}},"y:BendStyle":{smoothed:{key:"rounded",
mod:"bool"}}},c=mxUtils.clone(h);c.defaults.curved="1";this.mapObject(y,{"yjs:PolylineEdgeStyle":{defaults:{endArrow:"none",rounded:0},smoothingLength:function(a,b){b.rounded=a&&0<parseFloat(a)?"1":"0"},stroke:{key:"strokeColor",mod:"color"},"stroke.yjs:Stroke":{dashStyle:g,"dashStyle.yjs:DashStyle.dashes":g,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:B,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:m,scale:{key:"startSize",mod:"scale",scale:5},type:{key:"startArrow",mod:"arrow"}}},"y:PolyLineEdge":h,"y:GenericEdge":h,"y:ArcEdge":c,"y:BezierEdge":c,"y:QuadCurveEdge":c,"y:SplineEdge":c},z)};
-mxGraphMlCodec.prototype.addLabels=function(g,y,z,B,m){z=g.getChildCount();var h=y[mxGraphMlConstants.Y_LABEL]||y;y=[];var c=[],a=[];if(h){h instanceof Array||(h=[h]);for(var b=0;b<h.length;b++){var d=h[b],f={},k=d[mxGraphMlConstants.TEXT]||d;k&&(k=k["#text"]);var n=d[mxGraphMlConstants.LAYOUTPARAMETER]||d||{},q=function(K,O){K&&(K=K.toUpperCase());var S=O.fontStyle||0;switch(K){case "ITALIC":S|=2;break;case "BOLD":S|=1;break;case "UNDERLINE":S|=4}O.fontStyle=S};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(K,O){K&&(O.whiteSpace="wrap")},"font.yjs:Font":{fontFamily:"fontFamily",
-fontSize:"fontSize",fontStyle:q,fontWeight:q,textDecoration:q}},"Style.y:VoidLabelStyle":function(K,O){O.VoidLbl=!0},alignment:"align",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:q,underlinedText:function(K,O){var S=O.fontStyle||0;"true"==K&&(S|=4);O.fontStyle=S},horizontalTextPosition:"",textColor:{key:"fontColor",mod:"color"},verticalTextPosition:"verticalAlign",hasText:{key:"hasText",mod:"bool"},rotationAngle:"rotation"},f);f.VoidLbl||"0"==f.hasText||(y.push(k),c.push(f),a.push(n))}}for(b=
+mxGraphMlCodec.prototype.addLabels=function(g,y,z,B,m){z=g.getChildCount();var h=y[mxGraphMlConstants.Y_LABEL]||y;y=[];var c=[],a=[];if(h){h instanceof Array||(h=[h]);for(var b=0;b<h.length;b++){var d=h[b],f={},k=d[mxGraphMlConstants.TEXT]||d;k&&(k=k["#text"]);var n=d[mxGraphMlConstants.LAYOUTPARAMETER]||d||{},q=function(K,L){K&&(K=K.toUpperCase());var S=L.fontStyle||0;switch(K){case "ITALIC":S|=2;break;case "BOLD":S|=1;break;case "UNDERLINE":S|=4}L.fontStyle=S};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(K,L){K&&(L.whiteSpace="wrap")},"font.yjs:Font":{fontFamily:"fontFamily",
+fontSize:"fontSize",fontStyle:q,fontWeight:q,textDecoration:q}},"Style.y:VoidLabelStyle":function(K,L){L.VoidLbl=!0},alignment:"align",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:q,underlinedText:function(K,L){var S=L.fontStyle||0;"true"==K&&(S|=4);L.fontStyle=S},horizontalTextPosition:"",textColor:{key:"fontColor",mod:"color"},verticalTextPosition:"verticalAlign",hasText:{key:"hasText",mod:"bool"},rotationAngle:"rotation"},f);f.VoidLbl||"0"==f.hasText||(y.push(k),c.push(f),a.push(n))}}for(b=
0;b<y.length;b++)if(y[b]&&(!a[b]||!a[b]["bpmn:ParticipantParameter"])){y[b]=mxUtils.htmlEntities(y[b],!1).replace(/\n/g,"<br/>");n=g.geometry;f=new mxCell(y[b],new mxGeometry(0,0,n.width,n.height),"text;html=1;spacing=0;"+this.styleMap2Str(c[b]));f.vertex=!0;g.insert(f,z);h=f.geometry;if(a[b]["y:RatioAnchoredLabelModelParameter"])n=mxUtils.getSizeForString(y[b],c[b].fontSize,c[b].fontFamily),(d=a[b]["y:RatioAnchoredLabelModelParameter"].LayoutOffset)?(d=d.split(","),h.x=parseFloat(d[0]),h.y=parseFloat(d[1]),
h.width=n.width,h.height=n.height,f.style+=";spacingTop=-4;"):f.style+=";align=center;";else if(a[b]["y:InteriorLabelModel"]){switch(a[b]["y:InteriorLabelModel"]){case "Center":f.style+=";verticalAlign=middle;";break;case "North":h.height=1;break;case "West":h.width=n.height,h.height=n.width,h.y=n.height/2-n.width/2,h.x=-h.y,f.style+=";rotation=-90"}f.style+=";align=center;"}else if(a[b]["y:StretchStripeLabelModel"]||a[b]["y:StripeLabelModelParameter"])switch(a[b]["y:StretchStripeLabelModel"]||a[b]["y:StripeLabelModelParameter"].Position){case "North":h.height=
1;break;case "West":h.width=n.height,h.height=n.width,h.y=n.height/2-n.width/2,h.x=-h.y,f.style+=";rotation=-90;"}else if(a[b]["bpmn:PoolHeaderLabelModel"]){switch(a[b]["bpmn:PoolHeaderLabelModel"]){case "NORTH":h.height=1;break;case "WEST":h.width=n.height,h.height=n.width,h.y=n.height/2-n.width/2,h.x=-h.y,f.style+=";rotation=-90;"}f.style+=";align=center;"}else if(a[b]["y:InteriorStretchLabelModelParameter"])f.style+=";align=center;";else if(a[b]["y:ExteriorLabelModel"])switch(a[b]["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(a[b]["y:FreeEdgeLabelModelParameter"]){h.relative=!0;h.adjustIt=!0;n=a[b]["y:FreeEdgeLabelModelParameter"];
d=n.Ratio;q=n.Distance;var t=n.Angle;d&&(h.x=parseFloat(d));q&&(h.y=parseFloat(q));t&&(f.style+=";rotation="+parseFloat(t)*(180/Math.PI));f.style+=";verticalAlign=middle;"}else if(a[b]["y:EdgePathLabelModelParameter"]){h.relative=!0;n=a[b]["y:EdgePathLabelModelParameter"];k=n.SideOfEdge;d=n.SegmentRatio;h.x=d?2*parseFloat(d)-1:0;if(k)switch(k){case "RightOfEdge":h.y=-15;break;case "LeftOfEdge":h.y=15}f.style+=";verticalAlign=middle;"}else if(n=parseFloat(a[b].x),d=parseFloat(a[b].y),a[b].width&&(h.width=
parseFloat(a[b].width)),a[b].height&&(h.height=parseFloat(a[b].height)),g.edge)if(h.relative=!0,h.x=0,h.y=0,f=g.source.geometry.getCenterX()-g.target.geometry.getCenterX(),k=g.source.geometry.getCenterY()-g.target.geometry.getCenterY(),B&&m&&a[b]["y:ModelParameter"]&&a[b]["y:ModelParameter"]["y:SmartEdgeLabelModelParameter"]){n=a[b]["y:ModelParameter"]["y:SmartEdgeLabelModelParameter"];t=parseFloat(n.angle);q=parseFloat(n.distance);var A=n.position;d=parseFloat(n.ratio);n=parseFloat(n.segment);var C=
-new mxCellState;C.absolutePoints=m;B.view.updateEdgeBounds(C);var I="left"==A?1:-1;if(-1==n&&6.283185307179586==t)h.offset=new mxPoint(1>Math.abs(d)?C.segments[0]*d:d,I*q);else{-1==n&&(n=0);for(var N=t=0;N<n;N++)t+=C.segments[N];t+=C.segments[n]*d;h.x=t/C.length*2-1;h.y=(("center"==A?0:q)+h.height/2*I*(Math.abs(f)>Math.abs(k)?1:-1))*I}}else isNaN(n)||isNaN(d)||(h.offset=new mxPoint(n+f/2+(0<f?-h.width:h.width),d));else h.x=n||0,h.y=d||0;c[b].rotation&&270==c[b].rotation&&(h.x-=h.height/2)}return{lblTxts:y,
+new mxCellState;C.absolutePoints=m;B.view.updateEdgeBounds(C);var I="left"==A?1:-1;if(-1==n&&6.283185307179586==t)h.offset=new mxPoint(1>Math.abs(d)?C.segments[0]*d:d,I*q);else{-1==n&&(n=0);for(var Q=t=0;Q<n;Q++)t+=C.segments[Q];t+=C.segments[n]*d;h.x=t/C.length*2-1;h.y=(("center"==A?0:q)+h.height/2*I*(Math.abs(f)>Math.abs(k)?1:-1))*I}}else isNaN(n)||isNaN(d)||(h.offset=new mxPoint(n+f/2+(0<f?-h.width:h.width),d));else h.x=n||0,h.y=d||0;c[b].rotation&&270==c[b].rotation&&(h.x-=h.height/2)}return{lblTxts:y,
lblStyles:c}};mxGraphMlCodec.prototype.processPage=function(g,y){g=(new mxCodec).encode(g.getModel());g.setAttribute("style","default-style2");g=mxUtils.getXml(g);y='<diagram name="Page '+y+'">'+Graph.compress(g);return y+"</diagram>"};mxGraphMlCodec.prototype.getDirectChildNamedElements=function(g,y){var z=[];for(g=g.firstChild;null!=g;g=g.nextSibling)null!=g&&1==g.nodeType&&y==g.nodeName&&z.push(g);return z};
mxGraphMlCodec.prototype.getDirectFirstChildNamedElements=function(g,y){for(g=g.firstChild;null!=g;g=g.nextSibling)if(null!=g&&1==g.nodeType&&y==g.nodeName)return g;return null};mxGraphMlCodec.prototype.getDirectChildElements=function(g){var y=[];for(g=g.firstChild;null!=g;g=g.nextSibling)null!=g&&1==g.nodeType&&y.push(g);return y};mxGraphMlCodec.prototype.getDirectFirstChildElement=function(g){for(g=g.firstChild;null!=g;g=g.nextSibling)if(null!=g&&1==g.nodeType)return g;return null};
var mxGraphMlConverters={"orgchartconverters.linebreakconverter":function(g,y){if("string"===typeof g){for(var z=g;20<z.length&&-1<z.indexOf(" ");)z=z.substring(0,z.lastIndexOf(" "));return"true"===y?z:g.substring(z.length)}return""},"orgchartconverters.borderconverter":function(g,y){return"boolean"===typeof g?g?"#FFBB33":"rgba(0,0,0,0)":"#FFF"},"orgchartconverters.addhashconverter":function(g,y){return"string"===typeof g?"string"===typeof y?"#"+g+y:"#"+g:g},"orgchartconverters.intermediateconverter":function(g,
diff --git a/src/main/webapp/js/viewer-static.min.js b/src/main/webapp/js/viewer-static.min.js
index 21d03258e..cdd0992f8 100644
--- a/src/main/webapp/js/viewer-static.min.js
+++ b/src/main/webapp/js/viewer-static.min.js
@@ -30,7 +30,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.0.15",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.0.16",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||
@@ -1970,9 +1970,9 @@ Editor.prototype.setModified=function(b){this.modified=b};Editor.prototype.setFi
Editor.prototype.createUndoManager=function(){var b=this.graph,e=new mxUndoManager;this.undoListener=function(m,u){e.undoableEditHappened(u.getProperty("edit"))};var g=mxUtils.bind(this,function(m,u){this.undoListener.apply(this,arguments)});b.getModel().addListener(mxEvent.UNDO,g);b.getView().addListener(mxEvent.UNDO,g);g=function(m,u){m=u.getProperty("edit").changes;m=b.getSelectionCellsForChanges(m);u=!1;if(0<m.length){for(var p=[],B=0;B<m.length;B++)null!=b.view.getState(m[B])&&(p.push(m[B]),
u||(b.scrollCellToVisible(m[B]),u=!0));b.setSelectionCells(p)}};e.addListener(mxEvent.UNDO,g);e.addListener(mxEvent.REDO,g);return e};Editor.prototype.initStencilRegistry=function(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=null)};OpenFile=function(b){this.consumer=this.producer=null;this.done=b;this.args=null};OpenFile.prototype.setConsumer=function(b){this.consumer=b;this.execute()};OpenFile.prototype.setData=function(){this.args=arguments;this.execute()};
OpenFile.prototype.error=function(b){this.cancel(!0);mxUtils.alert(b)};OpenFile.prototype.execute=function(){null!=this.consumer&&null!=this.args&&(this.cancel(!1),this.consumer.apply(this,this.args))};OpenFile.prototype.cancel=function(b){null!=this.done&&this.done(null!=b?b:!0)};
-function Dialog(b,e,g,m,u,p,B,H,S,G,P){this.editorUi=b;var R=S?57:0,c=g,f=m,l=S?0:64,t=Editor.inlineFullscreen||null==b.embedViewport?this.getDocumentSize():mxUtils.clone(b.embedViewport);null==b.embedViewport&&null!=window.innerHeight&&(t.height=window.innerHeight);var z=t.height;t=Math.max(1,Math.round((t.width-g-l)/2));var C=Math.max(1,Math.round((z-m-b.footerHeight)/3));e.style.maxHeight="100%";g=null!=document.body?Math.min(g,document.body.scrollWidth-l):g;m=Math.min(m,z-l);0<b.dialogs.length&&
+function Dialog(b,e,g,m,u,p,B,H,T,G,P){this.editorUi=b;var R=T?57:0,c=g,f=m,l=T?0:64,t=Editor.inlineFullscreen||null==b.embedViewport?this.getDocumentSize():mxUtils.clone(b.embedViewport);null==b.embedViewport&&null!=window.innerHeight&&(t.height=window.innerHeight);var z=t.height;t=Math.max(1,Math.round((t.width-g-l)/2));var C=Math.max(1,Math.round((z-m-b.footerHeight)/3));e.style.maxHeight="100%";g=null!=document.body?Math.min(g,document.body.scrollWidth-l):g;m=Math.min(m,z-l);0<b.dialogs.length&&
(this.zIndex+=2*b.dialogs.length);null==this.bg&&(this.bg=b.createDiv("geBackground"),this.bg.style.position="absolute",this.bg.style.height=z+"px",this.bg.style.right="0px",this.bg.style.zIndex=this.zIndex-2,mxUtils.setOpacity(this.bg,this.bgOpacity));var F=mxUtils.getDocumentScrollOrigin(document);this.bg.style.left=F.x+"px";this.bg.style.top=F.y+"px";t+=F.x;C+=F.y;Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px",C+=b.embedViewport.y,t+=b.embedViewport.x);
-u&&document.body.appendChild(this.bg);var N=b.createDiv(S?"geTransDialog":"geDialog");u=this.getPosition(t,C,g,m);t=u.x;C=u.y;N.style.width=g+"px";N.style.height=m+"px";N.style.left=t+"px";N.style.top=C+"px";N.style.zIndex=this.zIndex;N.appendChild(e);document.body.appendChild(N);!H&&e.clientHeight>N.clientHeight-l&&(e.style.overflowY="auto");e.style.overflowX="hidden";if(p&&(p=document.createElement("img"),p.setAttribute("src",Dialog.prototype.closeImage),p.setAttribute("title",mxResources.get("close")),
+u&&document.body.appendChild(this.bg);var N=b.createDiv(T?"geTransDialog":"geDialog");u=this.getPosition(t,C,g,m);t=u.x;C=u.y;N.style.width=g+"px";N.style.height=m+"px";N.style.left=t+"px";N.style.top=C+"px";N.style.zIndex=this.zIndex;N.appendChild(e);document.body.appendChild(N);!H&&e.clientHeight>N.clientHeight-l&&(e.style.overflowY="auto");e.style.overflowX="hidden";if(p&&(p=document.createElement("img"),p.setAttribute("src",Dialog.prototype.closeImage),p.setAttribute("title",mxResources.get("close")),
p.className="geDialogClose",p.style.top=C+14+"px",p.style.left=t+g+38-R+"px",p.style.zIndex=this.zIndex,mxEvent.addListener(p,"click",mxUtils.bind(this,function(){b.hideDialog(!0)})),document.body.appendChild(p),this.dialogImg=p,!P)){var K=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(J){K=!0}),null,mxUtils.bind(this,function(J){K&&(b.hideDialog(!0),K=!1)}))}this.resizeListener=mxUtils.bind(this,function(){if(null!=G){var J=G();null!=J&&(c=g=J.w,f=m=J.h)}J=Editor.inlineFullscreen||
null==b.embedViewport?this.getDocumentSize():mxUtils.clone(b.embedViewport);z=J.height;this.bg.style.height=z+"px";Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px");g=null!=document.body?Math.min(c,document.body.scrollWidth-l):c;m=Math.min(f,z-l);J=Math.max(1,Math.round((J.width-g-l)/2));var da=Math.max(1,Math.round((z-m-b.footerHeight)/3));da=this.getPosition(J,da,g,m);J=da.x;da=da.y;var ea=mxUtils.getDocumentScrollOrigin(document);J+=ea.x;
da+=ea.y;Editor.inlineFullscreen||null==b.embedViewport||(da+=b.embedViewport.y,J+=b.embedViewport.x);N.style.left=J+"px";N.style.top=da+"px";N.style.width=g+"px";N.style.height=m+"px";!H&&e.clientHeight>N.clientHeight-l&&(e.style.overflowY="auto");null!=this.dialogImg&&(this.dialogImg.style.top=da+14+"px",this.dialogImg.style.left=J+g+38-R+"px")});null!=b.embedViewport?b.addListener("embedViewportChanged",this.resizeListener):mxEvent.addListener(window,"resize",this.resizeListener);this.onDialogClose=
@@ -1983,70 +1983,70 @@ Dialog.prototype.clearImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhDQAKA
"/clear.gif";Dialog.prototype.bgOpacity=80;Dialog.prototype.getDocumentSize=function(){return mxUtils.getDocumentSize()};Dialog.prototype.getPosition=function(b,e){return new mxPoint(b,e)};
Dialog.prototype.close=function(b,e){if(null!=this.onDialogClose){if(0==this.onDialogClose(b,e))return!1;this.onDialogClose=null}null!=this.dialogImg&&null!=this.dialogImg.parentNode&&(this.dialogImg.parentNode.removeChild(this.dialogImg),this.dialogImg=null);null!=this.bg&&null!=this.bg.parentNode&&this.bg.parentNode.removeChild(this.bg);null!=this.editorUi.embedViewport?this.editorUi.removeListener(this.resizeListener):mxEvent.removeListener(window,"resize",this.resizeListener);null!=this.container.parentNode&&
this.container.parentNode.removeChild(this.container)};
-var ErrorDialog=function(b,e,g,m,u,p,B,H,S,G,P){S=null!=S?S:!0;var R=document.createElement("div");R.style.textAlign="center";if(null!=e){var c=document.createElement("div");c.style.padding="0px";c.style.margin="0px";c.style.fontSize="18px";c.style.paddingBottom="16px";c.style.marginBottom="10px";c.style.borderBottom="1px solid #c0c0c0";c.style.color="gray";c.style.whiteSpace="nowrap";c.style.textOverflow="ellipsis";c.style.overflow="hidden";mxUtils.write(c,e);c.setAttribute("title",e);R.appendChild(c)}e=
+var ErrorDialog=function(b,e,g,m,u,p,B,H,T,G,P){T=null!=T?T:!0;var R=document.createElement("div");R.style.textAlign="center";if(null!=e){var c=document.createElement("div");c.style.padding="0px";c.style.margin="0px";c.style.fontSize="18px";c.style.paddingBottom="16px";c.style.marginBottom="10px";c.style.borderBottom="1px solid #c0c0c0";c.style.color="gray";c.style.whiteSpace="nowrap";c.style.textOverflow="ellipsis";c.style.overflow="hidden";mxUtils.write(c,e);c.setAttribute("title",e);R.appendChild(c)}e=
document.createElement("div");e.style.lineHeight="1.2em";e.style.padding="6px";"string"===typeof g&&(g=g.replace(/\n/g,"<br/>"));e.innerHTML=Graph.sanitizeHtml(g);R.appendChild(e);g=document.createElement("div");g.style.marginTop="12px";g.style.textAlign="center";null!=p&&(e=mxUtils.button(mxResources.get("tryAgain"),function(){b.hideDialog();p()}),e.className="geBtn",g.appendChild(e),g.style.textAlign="center");null!=G&&(G=mxUtils.button(G,function(){null!=P&&P()}),G.className="geBtn",g.appendChild(G));
-var f=mxUtils.button(m,function(){S&&b.hideDialog();null!=u&&u()});f.className="geBtn";g.appendChild(f);null!=B&&(m=mxUtils.button(B,function(){S&&b.hideDialog();null!=H&&H()}),m.className="geBtn gePrimaryBtn",g.appendChild(m));this.init=function(){f.focus()};R.appendChild(g);this.container=R},PrintDialog=function(b,e,g){this.create(b,e,g)};
+var f=mxUtils.button(m,function(){T&&b.hideDialog();null!=u&&u()});f.className="geBtn";g.appendChild(f);null!=B&&(m=mxUtils.button(B,function(){T&&b.hideDialog();null!=H&&H()}),m.className="geBtn gePrimaryBtn",g.appendChild(m));this.init=function(){f.focus()};R.appendChild(g);this.container=R},PrintDialog=function(b,e,g){this.create(b,e,g)};
PrintDialog.prototype.create=function(b){function e(f){var l=B.checked||G.checked,t=parseInt(R.value)/100;isNaN(t)&&(t=1,R.value="100%");mxClient.IS_SF&&(t*=.75);var z=g.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,C=1/g.pageScale;if(l){var F=B.checked?1:parseInt(P.value);isNaN(F)||(C=mxUtils.getScaleForPageCount(F,g,z))}var N=F=0;z=mxRectangle.fromRectangle(z);z.width=Math.ceil(z.width*t);z.height=Math.ceil(z.height*t);C*=t;!l&&g.pageVisible?(t=g.getPageLayout(),F-=t.x*z.width,N-=t.y*z.height):
-l=!0;l=PrintDialog.createPrintPreview(g,C,z,0,F,N,l);l.open();f&&PrintDialog.printPreview(l)}var g=b.editor.graph,m=document.createElement("table");m.style.width="100%";m.style.height="100%";var u=document.createElement("tbody");var p=document.createElement("tr");var B=document.createElement("input");B.setAttribute("type","checkbox");var H=document.createElement("td");H.setAttribute("colspan","2");H.style.fontSize="10pt";H.appendChild(B);var S=document.createElement("span");mxUtils.write(S," "+mxResources.get("fitPage"));
-H.appendChild(S);mxEvent.addListener(S,"click",function(f){B.checked=!B.checked;G.checked=!B.checked;mxEvent.consume(f)});mxEvent.addListener(B,"change",function(){G.checked=!B.checked});p.appendChild(H);u.appendChild(p);p=p.cloneNode(!1);var G=document.createElement("input");G.setAttribute("type","checkbox");H=document.createElement("td");H.style.fontSize="10pt";H.appendChild(G);S=document.createElement("span");mxUtils.write(S," "+mxResources.get("posterPrint")+":");H.appendChild(S);mxEvent.addListener(S,
+l=!0;l=PrintDialog.createPrintPreview(g,C,z,0,F,N,l);l.open();f&&PrintDialog.printPreview(l)}var g=b.editor.graph,m=document.createElement("table");m.style.width="100%";m.style.height="100%";var u=document.createElement("tbody");var p=document.createElement("tr");var B=document.createElement("input");B.setAttribute("type","checkbox");var H=document.createElement("td");H.setAttribute("colspan","2");H.style.fontSize="10pt";H.appendChild(B);var T=document.createElement("span");mxUtils.write(T," "+mxResources.get("fitPage"));
+H.appendChild(T);mxEvent.addListener(T,"click",function(f){B.checked=!B.checked;G.checked=!B.checked;mxEvent.consume(f)});mxEvent.addListener(B,"change",function(){G.checked=!B.checked});p.appendChild(H);u.appendChild(p);p=p.cloneNode(!1);var G=document.createElement("input");G.setAttribute("type","checkbox");H=document.createElement("td");H.style.fontSize="10pt";H.appendChild(G);T=document.createElement("span");mxUtils.write(T," "+mxResources.get("posterPrint")+":");H.appendChild(T);mxEvent.addListener(T,
"click",function(f){G.checked=!G.checked;B.checked=!G.checked;mxEvent.consume(f)});p.appendChild(H);var P=document.createElement("input");P.setAttribute("value","1");P.setAttribute("type","number");P.setAttribute("min","1");P.setAttribute("size","4");P.setAttribute("disabled","disabled");P.style.width="50px";H=document.createElement("td");H.style.fontSize="10pt";H.appendChild(P);mxUtils.write(H," "+mxResources.get("pages")+" (max)");p.appendChild(H);u.appendChild(p);mxEvent.addListener(G,"change",
function(){G.checked?P.removeAttribute("disabled"):P.setAttribute("disabled","disabled");B.checked=!G.checked});p=p.cloneNode(!1);H=document.createElement("td");mxUtils.write(H,mxResources.get("pageScale")+":");p.appendChild(H);H=document.createElement("td");var R=document.createElement("input");R.setAttribute("value","100 %");R.setAttribute("size","5");R.style.width="50px";H.appendChild(R);p.appendChild(H);u.appendChild(p);p=document.createElement("tr");H=document.createElement("td");H.colSpan=2;
-H.style.paddingTop="20px";H.setAttribute("align","right");S=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});S.className="geBtn";b.editor.cancelFirst&&H.appendChild(S);if(PrintDialog.previewEnabled){var c=mxUtils.button(mxResources.get("preview"),function(){b.hideDialog();e(!1)});c.className="geBtn";H.appendChild(c)}c=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){b.hideDialog();e(!0)});c.className="geBtn gePrimaryBtn";H.appendChild(c);b.editor.cancelFirst||
-H.appendChild(S);p.appendChild(H);u.appendChild(p);m.appendChild(u);this.container=m};PrintDialog.printPreview=function(b){try{null!=b.wnd&&window.setTimeout(function(){b.wnd.focus();b.wnd.print();b.wnd.close()},500)}catch(e){}};
-PrintDialog.createPrintPreview=function(b,e,g,m,u,p,B){e=new mxPrintPreview(b,e,g,m,u,p);e.title=mxResources.get("preview");e.addPageCss=!mxClient.IS_SF;e.printBackgroundImage=!0;e.autoOrigin=B;B=b.background;if(null==B||""==B||B==mxConstants.NONE)B="#ffffff";e.backgroundColor=B;var H=e.isTextLabel;e.isTextLabel=function(G){return"geHint"==!G.className&&H.apply(this,arguments)};var S=e.getLinkForCellState;e.getLinkForCellState=function(G){return b.getAbsoluteUrl(S.apply(this,arguments))};return e};
+H.style.paddingTop="20px";H.setAttribute("align","right");T=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});T.className="geBtn";b.editor.cancelFirst&&H.appendChild(T);if(PrintDialog.previewEnabled){var c=mxUtils.button(mxResources.get("preview"),function(){b.hideDialog();e(!1)});c.className="geBtn";H.appendChild(c)}c=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){b.hideDialog();e(!0)});c.className="geBtn gePrimaryBtn";H.appendChild(c);b.editor.cancelFirst||
+H.appendChild(T);p.appendChild(H);u.appendChild(p);m.appendChild(u);this.container=m};PrintDialog.printPreview=function(b){try{null!=b.wnd&&window.setTimeout(function(){b.wnd.focus();b.wnd.print();b.wnd.close()},500)}catch(e){}};
+PrintDialog.createPrintPreview=function(b,e,g,m,u,p,B){e=new mxPrintPreview(b,e,g,m,u,p);e.title=mxResources.get("preview");e.addPageCss=!mxClient.IS_SF;e.printBackgroundImage=!0;e.autoOrigin=B;B=b.background;if(null==B||""==B||B==mxConstants.NONE)B="#ffffff";e.backgroundColor=B;var H=e.isTextLabel;e.isTextLabel=function(G){return"geHint"==!G.className&&H.apply(this,arguments)};var T=e.getLinkForCellState;e.getLinkForCellState=function(G){return b.getAbsoluteUrl(T.apply(this,arguments))};return e};
PrintDialog.previewEnabled=!0;
var PageSetupDialog=function(b){function e(){var t=R;null!=t&&null!=t.originalSrc&&(t=b.createImageForPageLink(t.originalSrc,null));null!=t&&null!=t.src?(P.style.backgroundImage="url("+t.src+")",P.style.display="inline-block"):(P.style.backgroundImage="",P.style.display="none");P.style.backgroundColor="";null!=c&&c!=mxConstants.NONE&&(P.style.backgroundColor=c,P.style.display="inline-block")}var g=b.editor.graph,m=document.createElement("table");m.style.width="100%";m.style.height="100%";var u=document.createElement("tbody");
var p=document.createElement("tr");var B=document.createElement("td");B.style.verticalAlign="top";B.style.fontSize="10pt";mxUtils.write(B,mxResources.get("paperSize")+":");p.appendChild(B);B=document.createElement("td");B.style.verticalAlign="top";B.style.fontSize="10pt";var H=PageSetupDialog.addPageFormatPanel(B,"pagesetupdialog",g.pageFormat);p.appendChild(B);u.appendChild(p);p=document.createElement("tr");B=document.createElement("td");mxUtils.write(B,mxResources.get("gridSize")+":");p.appendChild(B);
-B=document.createElement("td");B.style.whiteSpace="nowrap";var S=document.createElement("input");S.setAttribute("type","number");S.setAttribute("min","0");S.style.width="40px";S.style.marginLeft="6px";S.value=g.getGridSize();B.appendChild(S);mxEvent.addListener(S,"change",function(){var t=parseInt(S.value);S.value=Math.max(1,isNaN(t)?g.getGridSize():t)});p.appendChild(B);u.appendChild(p);p=document.createElement("tr");B=document.createElement("td");mxUtils.write(B,mxResources.get("background")+":");
+B=document.createElement("td");B.style.whiteSpace="nowrap";var T=document.createElement("input");T.setAttribute("type","number");T.setAttribute("min","0");T.style.width="40px";T.style.marginLeft="6px";T.value=g.getGridSize();B.appendChild(T);mxEvent.addListener(T,"change",function(){var t=parseInt(T.value);T.value=Math.max(1,isNaN(t)?g.getGridSize():t)});p.appendChild(B);u.appendChild(p);p=document.createElement("tr");B=document.createElement("td");mxUtils.write(B,mxResources.get("background")+":");
p.appendChild(B);B=document.createElement("td");var G=document.createElement("button");G.className="geBtn";G.style.margin="0px";mxUtils.write(G,mxResources.get("change")+"...");var P=document.createElement("div");P.style.display="inline-block";P.style.verticalAlign="middle";P.style.backgroundPosition="center center";P.style.backgroundRepeat="no-repeat";P.style.backgroundSize="contain";P.style.border="1px solid lightGray";P.style.borderRadius="4px";P.style.marginRight="14px";P.style.height="32px";
P.style.width="64px";P.style.cursor="pointer";P.style.padding="4px";var R=g.backgroundImage,c=g.background,f=g.shadowVisible,l=function(t){b.showBackgroundImageDialog(function(z,C,F,N){C||(null!=z&&null!=z.src&&Graph.isPageLink(z.src)&&(z={originalSrc:z.src}),R=z,f=N);c=F;e()},R,c,!0);mxEvent.consume(t)};mxEvent.addListener(G,"click",l);mxEvent.addListener(P,"click",l);e();B.appendChild(P);B.appendChild(G);p.appendChild(B);u.appendChild(p);p=document.createElement("tr");B=document.createElement("td");
-B.colSpan=2;B.style.paddingTop="16px";B.setAttribute("align","right");G=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});G.className="geBtn";b.editor.cancelFirst&&B.appendChild(G);l=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();var t=parseInt(S.value);isNaN(t)||g.gridSize===t||g.setGridSize(t);t=new ChangePageSetup(b,c,R,H.get());t.ignoreColor=g.background==c;t.ignoreImage=(null!=g.backgroundImage?g.backgroundImage.src:null)===(null!=R?R.src:null);null!=f&&
+B.colSpan=2;B.style.paddingTop="16px";B.setAttribute("align","right");G=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});G.className="geBtn";b.editor.cancelFirst&&B.appendChild(G);l=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();var t=parseInt(T.value);isNaN(t)||g.gridSize===t||g.setGridSize(t);t=new ChangePageSetup(b,c,R,H.get());t.ignoreColor=g.background==c;t.ignoreImage=(null!=g.backgroundImage?g.backgroundImage.src:null)===(null!=R?R.src:null);null!=f&&
(t.shadowVisible=f);g.pageFormat.width==t.previousFormat.width&&g.pageFormat.height==t.previousFormat.height&&t.ignoreColor&&t.ignoreImage&&t.shadowVisible==g.shadowVisible||g.model.execute(t)});l.className="geBtn gePrimaryBtn";B.appendChild(l);b.editor.cancelFirst||B.appendChild(G);p.appendChild(B);u.appendChild(p);m.appendChild(u);this.container=m};
PageSetupDialog.addPageFormatPanel=function(b,e,g,m){e="format-"+e;var u=document.createElement("input");u.setAttribute("name",e);u.setAttribute("type","radio");u.setAttribute("value","portrait");var p=document.createElement("input");p.setAttribute("name",e);p.setAttribute("type","radio");p.setAttribute("value","landscape");var B=document.createElement("select");B.style.marginBottom="4px";B.style.borderRadius="4px";B.style.borderWidth="1px";B.style.borderStyle="solid";B.style.boxSizing="border-box";
-B.style.padding="2px";B.style.width="210px";var H=document.createElement("div");H.style.whiteSpace="nowrap";H.style.marginLeft="4px";H.style.width="210px";H.style.height="24px";u.style.marginRight="6px";H.appendChild(u);e=document.createElement("span");e.style.maxWidth="100px";mxUtils.write(e,mxResources.get("portrait"));H.appendChild(e);p.style.marginLeft="10px";p.style.marginRight="6px";H.appendChild(p);var S=document.createElement("span");S.style.width="100px";mxUtils.write(S,mxResources.get("landscape"));
-H.appendChild(S);var G=document.createElement("div");G.style.whiteSpace="nowrap";G.style.marginLeft="4px";G.style.fontSize="12px";G.style.width="210px";G.style.height="24px";var P=document.createElement("input");P.setAttribute("size","7");P.setAttribute("title",mxResources.get("width"));P.style.textAlign="right";G.appendChild(P);mxUtils.write(G," x ");var R=document.createElement("input");R.setAttribute("size","7");R.setAttribute("title",mxResources.get("height"));R.style.textAlign="right";G.appendChild(R);
+B.style.padding="2px";B.style.width="210px";var H=document.createElement("div");H.style.whiteSpace="nowrap";H.style.marginLeft="4px";H.style.width="210px";H.style.height="24px";u.style.marginRight="6px";H.appendChild(u);e=document.createElement("span");e.style.maxWidth="100px";mxUtils.write(e,mxResources.get("portrait"));H.appendChild(e);p.style.marginLeft="10px";p.style.marginRight="6px";H.appendChild(p);var T=document.createElement("span");T.style.width="100px";mxUtils.write(T,mxResources.get("landscape"));
+H.appendChild(T);var G=document.createElement("div");G.style.whiteSpace="nowrap";G.style.marginLeft="4px";G.style.fontSize="12px";G.style.width="210px";G.style.height="24px";var P=document.createElement("input");P.setAttribute("size","7");P.setAttribute("title",mxResources.get("width"));P.style.textAlign="right";G.appendChild(P);mxUtils.write(G," x ");var R=document.createElement("input");R.setAttribute("size","7");R.setAttribute("title",mxResources.get("height"));R.style.textAlign="right";G.appendChild(R);
var c=document.createElement("select");c.style.marginLeft="4px";c.style.maxWidth="78px";c.style.width="78px";for(var f=[{label:mxResources.get("points"),unit:mxConstants.POINTS},{label:mxResources.get("inches"),unit:mxConstants.INCHES},{label:mxResources.get("millimeters"),unit:mxConstants.MILLIMETERS}],l=0;l<f.length;l++){var t=document.createElement("option");t.setAttribute("value",f[l].unit);mxUtils.write(t,f[l].label);c.appendChild(t)}c.value=Editor.pageSizeUnit;G.appendChild(c);H.style.display=
"none";G.style.display="none";var z={},C=PageSetupDialog.getFormats();for(l=0;l<C.length;l++)f=C[l],z[f.key]=f,t=document.createElement("option"),t.setAttribute("value",f.key),mxUtils.write(t,f.title),B.appendChild(t);var F=function(){B.value="custom";for(var K=0;K<C.length;K++){var J=C[K];null!=J.format&&("a4"==J.key?826==g.width?(g=mxRectangle.fromRectangle(g),g.width=827):826==g.height&&(g=mxRectangle.fromRectangle(g),g.height=827):"a5"==J.key&&(584==g.width?(g=mxRectangle.fromRectangle(g),g.width=
583):584==g.height&&(g=mxRectangle.fromRectangle(g),g.height=583)),g.width==J.format.width&&g.height==J.format.height?(B.value=J.key,u.setAttribute("checked","checked"),u.defaultChecked=!0,u.checked=!0,p.removeAttribute("checked"),p.defaultChecked=!1,p.checked=!1,detected=!0):g.width==J.format.height&&g.height==J.format.width&&(B.value=J.key,u.removeAttribute("checked"),u.defaultChecked=!1,u.checked=!1,p.setAttribute("checked","checked"),p.defaultChecked=!0,detected=p.checked=!0))}"custom"==B.value?
(P.value=Editor.toUnit(g.width,c.value),R.value=Editor.toUnit(g.height,c.value),u.setAttribute("checked","checked"),B.value="custom",H.style.display="none",G.style.display=""):(H.style.display="",G.style.display="none")};F();b.appendChild(B);mxUtils.br(b);b.appendChild(H);b.appendChild(G);var N=function(K,J){K=z[B.value];null!=K.format?(P.value=Editor.toUnit(p.checked?K.format.height:K.format.width,c.value),R.value=Editor.toUnit(p.checked?K.format.width:K.format.height,c.value),G.style.display="none",
H.style.display=""):(H.style.display="none",G.style.display="");K=parseFloat(P.value);if(isNaN(K)||0>=K)P.value=Editor.toUnit(g.width,c.value);K=parseFloat(R.value);if(isNaN(K)||0>=K)R.value=Editor.toUnit(g.height,c.value);K=new mxRectangle(0,0,Math.floor(Editor.fromUnit(parseFloat(P.value),c.value)),Math.floor(Editor.fromUnit(parseFloat(R.value),c.value)));J||K.width==g.width&&K.height==g.height||(g=K,null!=m&&m(g))};mxEvent.addListener(e,"click",function(K){u.checked=!0;N(K);mxEvent.consume(K)});
-mxEvent.addListener(S,"click",function(K){p.checked=!0;N(K);mxEvent.consume(K)});mxEvent.addListener(P,"blur",N);mxEvent.addListener(P,"click",N);mxEvent.addListener(R,"blur",N);mxEvent.addListener(R,"click",N);mxEvent.addListener(p,"change",N);mxEvent.addListener(u,"change",N);mxEvent.addListener(B,"change",function(K){N(K,"custom"==B.value);mxEvent.consume(K)});mxEvent.addListener(c,"change",function(K){P.value=Editor.toUnit(Editor.fromUnit(P.value,Editor.pageSizeUnit),c.value);R.value=Editor.toUnit(Editor.fromUnit(R.value,
+mxEvent.addListener(T,"click",function(K){p.checked=!0;N(K);mxEvent.consume(K)});mxEvent.addListener(P,"blur",N);mxEvent.addListener(P,"click",N);mxEvent.addListener(R,"blur",N);mxEvent.addListener(R,"click",N);mxEvent.addListener(p,"change",N);mxEvent.addListener(u,"change",N);mxEvent.addListener(B,"change",function(K){N(K,"custom"==B.value);mxEvent.consume(K)});mxEvent.addListener(c,"change",function(K){P.value=Editor.toUnit(Editor.fromUnit(P.value,Editor.pageSizeUnit),c.value);R.value=Editor.toUnit(Editor.fromUnit(R.value,
Editor.pageSizeUnit),c.value);Editor.pageSizeUnit=c.value;N(K,!0);mxEvent.consume(K)});N(null,!0);return{set:function(K){g=K;F(null,null,!0)},get:function(){return g},widthInput:P,heightInput:R}};
PageSetupDialog.getFormats=function(){return[{key:"letter",title:'US-Letter (8,5" x 11")',format:mxConstants.PAGE_FORMAT_LETTER_PORTRAIT},{key:"legal",title:'US-Legal (8,5" x 14")',format:new mxRectangle(0,0,850,1400)},{key:"tabloid",title:'US-Tabloid (11" x 17")',format:new mxRectangle(0,0,1100,1700)},{key:"executive",title:'US-Executive (7" x 10")',format:new mxRectangle(0,0,700,1E3)},{key:"a0",title:"A0 (841 mm x 1189 mm)",format:new mxRectangle(0,0,3300,4681)},{key:"a1",title:"A1 (594 mm x 841 mm)",
format:new mxRectangle(0,0,2339,3300)},{key:"a2",title:"A2 (420 mm x 594 mm)",format:new mxRectangle(0,0,1654,2336)},{key:"a3",title:"A3 (297 mm x 420 mm)",format:new mxRectangle(0,0,1169,1654)},{key:"a4",title:"A4 (210 mm x 297 mm)",format:mxConstants.PAGE_FORMAT_A4_PORTRAIT},{key:"a5",title:"A5 (148 mm x 210 mm)",format:new mxRectangle(0,0,583,827)},{key:"a6",title:"A6 (105 mm x 148 mm)",format:new mxRectangle(0,0,413,583)},{key:"a7",title:"A7 (74 mm x 105 mm)",format:new mxRectangle(0,0,291,413)},
{key:"b4",title:"B4 (250 mm x 353 mm)",format:new mxRectangle(0,0,980,1390)},{key:"b5",title:"B5 (176 mm x 250 mm)",format:new mxRectangle(0,0,690,980)},{key:"16-9",title:"16:9 (1600 x 900)",format:new mxRectangle(0,0,900,1600)},{key:"16-10",title:"16:10 (1920 x 1200)",format:new mxRectangle(0,0,1200,1920)},{key:"4-3",title:"4:3 (1600 x 1200)",format:new mxRectangle(0,0,1200,1600)},{key:"custom",title:mxResources.get("custom"),format:null}]};
-var FilenameDialog=function(b,e,g,m,u,p,B,H,S,G,P){S=null!=S?S:!0;var R=document.createElement("div"),c=document.createElement("div");c.style.width="100%";c.style.display="grid";c.style.gap="5px 8px";c.style.gridAutoColumns="auto 1fr";c.style.boxSizing="border-box";c.style.padding="3px";var f=document.createElement("div");f.style.display="inline-flex";f.style.alignItems="center";f.style.justifyContent="flex-end";f.style.minWidth="0";var l=document.createElement("div");l.style.display="inline-block";
-l.style.textOverflow="ellipsis";l.style.whiteSpace="nowrap";l.style.overflow="hidden";l.style.fontSize="10pt";l.style.padding="2px 0";l.setAttribute("title",u||mxResources.get("filename"));mxUtils.write(l,(u||mxResources.get("filename"))+":");f.appendChild(l);c.appendChild(f);var t=document.createElement("input");t.setAttribute("value",e||"");t.style.flexGrow="1";var z=mxUtils.button(g,function(){if(null==p||p(t.value))S&&b.hideDialog(),m(t.value)});z.className="geBtn gePrimaryBtn";this.init=function(){if(null!=
+var FilenameDialog=function(b,e,g,m,u,p,B,H,T,G,P){T=null!=T?T:!0;var R=document.createElement("div"),c=document.createElement("div");c.style.width="100%";c.style.display="grid";c.style.gap="5px 8px";c.style.gridAutoColumns="auto 1fr";c.style.boxSizing="border-box";c.style.padding="3px";var f=document.createElement("div");f.style.display="inline-flex";f.style.alignItems="center";f.style.justifyContent="flex-end";f.style.minWidth="0";var l=document.createElement("div");l.style.display="inline-block";
+l.style.textOverflow="ellipsis";l.style.whiteSpace="nowrap";l.style.overflow="hidden";l.style.fontSize="10pt";l.style.padding="2px 0";l.setAttribute("title",u||mxResources.get("filename"));mxUtils.write(l,(u||mxResources.get("filename"))+":");f.appendChild(l);c.appendChild(f);var t=document.createElement("input");t.setAttribute("value",e||"");t.style.flexGrow="1";var z=mxUtils.button(g,function(){if(null==p||p(t.value))T&&b.hideDialog(),m(t.value)});z.className="geBtn gePrimaryBtn";this.init=function(){if(null!=
u||null==B)if(null!=P?Editor.selectFilename(t):(t.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?t.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var C=c.parentNode;if(null!=C){var F=null;mxEvent.addListener(C,"dragleave",function(N){null!=F&&(F.style.backgroundColor="",F=null);N.stopPropagation();N.preventDefault()});mxEvent.addListener(C,"dragover",mxUtils.bind(this,function(N){null==F&&(!mxClient.IS_IE||10<document.documentMode)&&(F=t,F.style.backgroundColor=
"#ebf2f9");N.stopPropagation();N.preventDefault()}));mxEvent.addListener(C,"drop",mxUtils.bind(this,function(N){null!=F&&(F.style.backgroundColor="",F=null);0<=mxUtils.indexOf(N.dataTransfer.types,"text/uri-list")&&(t.value=decodeURIComponent(N.dataTransfer.getData("text/uri-list")),z.click());N.stopPropagation();N.preventDefault()}))}}};f=document.createElement("div");f.style.display="inline-flex";f.style.alignItems="center";f.style.gap="4px";f.style.whiteSpace="nowrap";f.appendChild(t);c.appendChild(f);
null==u&&null!=B||null==P||null==b.editor.diagramFileTypes||(f=document.createElement("div"),f.style.display="inline-flex",f.style.alignItems="center",f.style.textOverflow="ellipsis",f.style.justifyContent="flex-end",f.style.fontSize="10pt",mxUtils.write(f,mxResources.get("type")+":"),c.appendChild(f),f=document.createElement("div"),f.style.display="inline-flex",f.style.alignItems="center",f.style.whiteSpace="nowrap",c.appendChild(f),e=FilenameDialog.createFileTypes(b,t,b.editor.diagramFileTypes),
e.style.width="100%",f.appendChild(e));null!=B&&c.appendChild(B);row=document.createElement("div");row.style.gridColumn="1 / span 2";row.style.paddingTop=null!=P?"6px":"14px";row.style.whiteSpace="nowrap";row.style.display="inline-flex";row.style.alignItems="center";row.style.justifyContent="flex-end";row.setAttribute("align","right");f=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();null!=G&&G()});f.className="geBtn";null==H||b.isOffline()||row.appendChild(b.createHelpIcon(H));
b.editor.cancelFirst&&row.appendChild(f);mxEvent.addListener(t,"keypress",function(C){13==C.keyCode&&z.click()});row.appendChild(z);b.editor.cancelFirst||row.appendChild(f);c.appendChild(row);R.appendChild(c);this.container=R};FilenameDialog.filenameHelpLink=null;
FilenameDialog.createFileTypes=function(b,e,g){var m=document.createElement("select");for(b=0;b<g.length;b++){var u=document.createElement("option");u.setAttribute("value",b);mxUtils.write(u,mxResources.get(g[b].description)+" (."+g[b].extension+")");m.appendChild(u)}mxEvent.addListener(m,"change",function(p){p=g[m.value].extension;var B=e.value.lastIndexOf(".drawio.");B=0<B?B:e.value.lastIndexOf(".");"drawio"!=p&&(p="drawio."+p);e.value=0<B?e.value.substring(0,B+1)+p:e.value+"."+p;"createEvent"in
-document?(p=document.createEvent("HTMLEvents"),p.initEvent("change",!1,!0),e.dispatchEvent(p)):e.fireEvent("onchange")});b=function(p){p=e.value.toLowerCase();for(var B=0,H=0;H<g.length;H++){var S=g[H].extension,G=null;"drawio"!=S&&(G=S,S=".drawio."+S);if(p.substring(p.length-S.length-1)=="."+S||null!=G&&p.substring(p.length-G.length-1)=="."+G){B=H;break}}m.value=B};mxEvent.addListener(e,"change",b);mxEvent.addListener(e,"keyup",b);b();return m};
-var WrapperWindow=function(b,e,g,m,u,p,B){var H=b.createSidebarContainer();B(H);this.window=new mxWindow(e,H,g,m,u,p,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);b.installResizeHandler(this,!0);mxClient.IS_SF&&(this.window.div.onselectstart=mxUtils.bind(this,function(S){null==S&&(S=window.event);return null!=S&&b.isSelectionAllowed(S)}))};
-(function(){mxGraphView.prototype.validateBackgroundPage=function(){var B=this.graph;if(null!=B.container&&!B.transparentBackground){if(B.pageVisible){var H=this.getBackgroundPageBounds();if(null==this.backgroundPageShape){for(var S=B.container.firstChild;null!=S&&S.nodeType!=mxConstants.NODETYPE_ELEMENT;)S=S.nextSibling;null!=S&&(this.backgroundPageShape=this.createBackgroundPageShape(H),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,
-this.backgroundPageShape.init(B.container),S.style.position="absolute",B.container.insertBefore(this.backgroundPageShape.node,S),this.backgroundPageShape.redraw(),this.backgroundPageShape.node.className="geBackgroundPage",mxEvent.addListener(this.backgroundPageShape.node,"dblclick",mxUtils.bind(this,function(G){B.dblClick(G)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(G){B.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(G))}),mxUtils.bind(this,function(G){null!=
+document?(p=document.createEvent("HTMLEvents"),p.initEvent("change",!1,!0),e.dispatchEvent(p)):e.fireEvent("onchange")});b=function(p){p=e.value.toLowerCase();for(var B=0,H=0;H<g.length;H++){var T=g[H].extension,G=null;"drawio"!=T&&(G=T,T=".drawio."+T);if(p.substring(p.length-T.length-1)=="."+T||null!=G&&p.substring(p.length-G.length-1)=="."+G){B=H;break}}m.value=B};mxEvent.addListener(e,"change",b);mxEvent.addListener(e,"keyup",b);b();return m};
+var WrapperWindow=function(b,e,g,m,u,p,B){var H=b.createSidebarContainer();B(H);this.window=new mxWindow(e,H,g,m,u,p,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);b.installResizeHandler(this,!0);mxClient.IS_SF&&(this.window.div.onselectstart=mxUtils.bind(this,function(T){null==T&&(T=window.event);return null!=T&&b.isSelectionAllowed(T)}))};
+(function(){mxGraphView.prototype.validateBackgroundPage=function(){var B=this.graph;if(null!=B.container&&!B.transparentBackground){if(B.pageVisible){var H=this.getBackgroundPageBounds();if(null==this.backgroundPageShape){for(var T=B.container.firstChild;null!=T&&T.nodeType!=mxConstants.NODETYPE_ELEMENT;)T=T.nextSibling;null!=T&&(this.backgroundPageShape=this.createBackgroundPageShape(H),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,
+this.backgroundPageShape.init(B.container),T.style.position="absolute",B.container.insertBefore(this.backgroundPageShape.node,T),this.backgroundPageShape.redraw(),this.backgroundPageShape.node.className="geBackgroundPage",mxEvent.addListener(this.backgroundPageShape.node,"dblclick",mxUtils.bind(this,function(G){B.dblClick(G)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(G){B.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(G))}),mxUtils.bind(this,function(G){null!=
B.tooltipHandler&&B.tooltipHandler.isHideOnHover()&&B.tooltipHandler.hide();B.isMouseDown&&!mxEvent.isConsumed(G)&&B.fireMouseEvent(mxEvent.MOUSE_MOVE,new mxMouseEvent(G))}),mxUtils.bind(this,function(G){B.fireMouseEvent(mxEvent.MOUSE_UP,new mxMouseEvent(G))})))}else this.backgroundPageShape.scale=1,this.backgroundPageShape.bounds=H,this.backgroundPageShape.redraw()}else null!=this.backgroundPageShape&&(this.backgroundPageShape.destroy(),this.backgroundPageShape=null);this.validateBackgroundStyles()}};
-mxGraphView.prototype.validateBackgroundStyles=function(B,H,S){var G=this.graph;B=null!=B?B:1;var P=mxUtils.getLightDarkColor(null==G.background||G.background==mxConstants.NONE?G.defaultPageBackgroundColor:G.background).cssText,R=mxUtils.getLightDarkColor(G.defaultPageBorderColor).cssText,c=null!=P&&this.gridColor!=P.toLowerCase()?this.gridColor:"#ffffff",f="none",l="";"simple"==G.getAdaptiveColors()&&G.background!=mxConstants.NONE&&null!=G.background&&(P=G.background);if(G.isGridEnabled()||G.gridVisible){l=
-10;mxClient.IS_SVG?(f=unescape(encodeURIComponent(this.createSvgGrid(c,B))),f=window.btoa?btoa(f):Base64.encode(f,!0),f="url(data:image/svg+xml;base64,"+f+")",l=G.gridSize*this.scale*this.gridSteps*B):f="url("+this.gridImage+")";var t=c=0;H=null!=H?H-this.translate.x*this.scale:0;S=null!=S?S-this.translate.y*this.scale:0;var z=G.gridSize*this.scale*this.gridSteps,C=H%z;z=S%z;null!=G.view.backgroundPageShape&&(t=this.getBackgroundPageBounds(),c=1+t.x,t=1+t.y);l=-Math.round(l-mxUtils.mod(this.translate.x*
-this.scale-c+H,l)+C*B)+"px "+-Math.round(l-mxUtils.mod(this.translate.y*this.scale-t+S,l)+z*B)+"px"}B=G.view.canvas;null!=B.ownerSVGElement&&(B=B.ownerSVGElement);c=!Editor.isDarkMode()&&G.enableDiagramBackground;null!=G.view.backgroundPageShape?(G.view.backgroundPageShape.node.style.backgroundPosition=l,G.view.backgroundPageShape.node.style.backgroundImage=f,G.view.backgroundPageShape.node.style.backgroundColor=P,G.view.backgroundPageShape.node.style.borderColor=R,G.view.backgroundPageShape.node.style.colorScheme=
+mxGraphView.prototype.validateBackgroundStyles=function(B,H,T){var G=this.graph;B=null!=B?B:1;var P=mxUtils.getLightDarkColor(null==G.background||G.background==mxConstants.NONE?G.defaultPageBackgroundColor:G.background).cssText,R=mxUtils.getLightDarkColor(G.defaultPageBorderColor).cssText,c=null!=P&&this.gridColor!=P.toLowerCase()?this.gridColor:"#ffffff",f="none",l="";"simple"==G.getAdaptiveColors()&&G.background!=mxConstants.NONE&&null!=G.background&&(P=G.background);if(G.isGridEnabled()||G.gridVisible){l=
+10;mxClient.IS_SVG?(f=unescape(encodeURIComponent(this.createSvgGrid(c,B))),f=window.btoa?btoa(f):Base64.encode(f,!0),f="url(data:image/svg+xml;base64,"+f+")",l=G.gridSize*this.scale*this.gridSteps*B):f="url("+this.gridImage+")";var t=c=0;H=null!=H?H-this.translate.x*this.scale:0;T=null!=T?T-this.translate.y*this.scale:0;var z=G.gridSize*this.scale*this.gridSteps,C=H%z;z=T%z;null!=G.view.backgroundPageShape&&(t=this.getBackgroundPageBounds(),c=1+t.x,t=1+t.y);l=-Math.round(l-mxUtils.mod(this.translate.x*
+this.scale-c+H,l)+C*B)+"px "+-Math.round(l-mxUtils.mod(this.translate.y*this.scale-t+T,l)+z*B)+"px"}B=G.view.canvas;null!=B.ownerSVGElement&&(B=B.ownerSVGElement);c=!Editor.isDarkMode()&&G.enableDiagramBackground;null!=G.view.backgroundPageShape?(G.view.backgroundPageShape.node.style.backgroundPosition=l,G.view.backgroundPageShape.node.style.backgroundImage=f,G.view.backgroundPageShape.node.style.backgroundColor=P,G.view.backgroundPageShape.node.style.borderColor=R,G.view.backgroundPageShape.node.style.colorScheme=
"none"==G.getAdaptiveColors()?"light":"",G.container.classList.add("geDiagramBackdrop"),B.style.backgroundImage="none",B.style.backgroundColor="",G.container.style.backgroundColor=c?G.diagramBackgroundColor:""):(G.container.classList.remove("geDiagramBackdrop"),B.style.backgroundPosition=l,B.style.backgroundImage=f,"1"==urlParams.transparent?G.container.style.background="transparent":!c||null!=G.background&&G.background!=mxConstants.NONE?B.style.backgroundColor=P:(B.style.backgroundColor=G.diagramBackgroundColor,
-G.container.style.backgroundColor=""))};mxGraphView.prototype.createSvgGrid=function(B,H){for(var S=this.graph.gridSize*this.scale*(null!=H?H:1);S<this.minGridSize;)S*=2;H=this.gridSteps*S;for(var G=[],P=1;P<this.gridSteps;P++){var R=P*S;G.push("M 0 "+R+" L "+H+" "+R+" M "+R+" 0 L "+R+" "+H)}B=mxUtils.getLightDarkColor(B);S="color-scheme: light dark;";mxClient.IS_SF&&(S="color-scheme: "+("none"!=this.graph.getAdaptiveColors()&&Editor.isDarkMode()?"dark":"light"));return'<svg style="'+S+'" width="'+
+G.container.style.backgroundColor=""))};mxGraphView.prototype.createSvgGrid=function(B,H){for(var T=this.graph.gridSize*this.scale*(null!=H?H:1);T<this.minGridSize;)T*=2;H=this.gridSteps*T;for(var G=[],P=1;P<this.gridSteps;P++){var R=P*T;G.push("M 0 "+R+" L "+H+" "+R+" M "+R+" 0 L "+R+" "+H)}B=mxUtils.getLightDarkColor(B);T="color-scheme: light dark;";mxClient.IS_SF&&(T="color-scheme: "+("none"!=this.graph.getAdaptiveColors()&&Editor.isDarkMode()?"dark":"light"));return'<svg style="'+T+'" width="'+
H+'" height="'+H+'" xmlns="'+mxConstants.NS_SVG+'"><defs><pattern id="grid" width="'+H+'" height="'+H+'" patternUnits="userSpaceOnUse"><path d="'+G.join(" ")+'" fill="none" style="stroke:'+mxUtils.htmlEntities(B.cssText)+';" stroke="'+B.light+'" opacity="0.2" stroke-width="1"/><path d="M '+H+" 0 L 0 0 0 "+H+'" fill="none" style="stroke:'+mxUtils.htmlEntities(B.cssText)+';" stroke="'+B.light+'" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(#grid)"/></svg>'};var b=mxGraph.prototype.panGraph;
-mxGraph.prototype.panGraph=function(B,H){b.apply(this,arguments);if(null!=this.shiftPreview1){var S=this.view.canvas;null!=S.ownerSVGElement&&(S=S.ownerSVGElement);var G=this.gridSize*this.view.scale*this.view.gridSteps;G=-Math.round(G-mxUtils.mod(this.view.translate.x*this.view.scale+B,G))+"px "+-Math.round(G-mxUtils.mod(this.view.translate.y*this.view.scale+H,G))+"px";S.style.backgroundPosition=G}};mxGraph.prototype.updatePageBreaks=function(B,H,S){var G=this.view.scale,P=this.view.translate,R=
-this.pageFormat,c=G*this.pageScale,f=this.view.getBackgroundPageBounds();H=f.width;S=f.height;var l=new mxRectangle(G*P.x,G*P.y,R.width*c,R.height*c),t=(B=B&&Math.min(l.width,l.height)>this.minPageBreakDist)?Math.ceil(S/l.height)-1:0,z=B?Math.ceil(H/l.width)-1:0,C=f.x+H,F=f.y+S;null==this.horizontalPageBreaks&&0<t&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<z&&(this.verticalPageBreaks=[]);B=mxUtils.bind(this,function(N){if(null!=N){for(var K=N==this.horizontalPageBreaks?t:z,J=
+mxGraph.prototype.panGraph=function(B,H){b.apply(this,arguments);if(null!=this.shiftPreview1){var T=this.view.canvas;null!=T.ownerSVGElement&&(T=T.ownerSVGElement);var G=this.gridSize*this.view.scale*this.view.gridSteps;G=-Math.round(G-mxUtils.mod(this.view.translate.x*this.view.scale+B,G))+"px "+-Math.round(G-mxUtils.mod(this.view.translate.y*this.view.scale+H,G))+"px";T.style.backgroundPosition=G}};mxGraph.prototype.updatePageBreaks=function(B,H,T){var G=this.view.scale,P=this.view.translate,R=
+this.pageFormat,c=G*this.pageScale,f=this.view.getBackgroundPageBounds();H=f.width;T=f.height;var l=new mxRectangle(G*P.x,G*P.y,R.width*c,R.height*c),t=(B=B&&Math.min(l.width,l.height)>this.minPageBreakDist)?Math.ceil(T/l.height)-1:0,z=B?Math.ceil(H/l.width)-1:0,C=f.x+H,F=f.y+T;null==this.horizontalPageBreaks&&0<t&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<z&&(this.verticalPageBreaks=[]);B=mxUtils.bind(this,function(N){if(null!=N){for(var K=N==this.horizontalPageBreaks?t:z,J=
0;J<=K;J++){var da=N==this.horizontalPageBreaks?[new mxPoint(Math.round(f.x),Math.round(f.y+(J+1)*l.height)),new mxPoint(Math.round(C),Math.round(f.y+(J+1)*l.height))]:[new mxPoint(Math.round(f.x+(J+1)*l.width),Math.round(f.y)),new mxPoint(Math.round(f.x+(J+1)*l.width),Math.round(F))];null!=N[J]?(N[J].points=da,N[J].redraw()):(da=new mxPolyline(da,this.pageBreakColor),da.dialect=this.dialect,da.isDashed=this.pageBreakDashed,da.pointerEvents=!1,da.init(this.view.backgroundPane),da.redraw(),N[J]=da)}for(J=
-K;J<N.length;J++)null!=N[J]&&N[J].destroy();N.splice(K,N.length-K)}});B(this.horizontalPageBreaks);B(this.verticalPageBreaks)};var e=mxGraphHandler.prototype.shouldRemoveCellsFromParent;mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(B,H,S){for(var G=0;G<H.length;G++){if(this.graph.isTableCell(H[G])||this.graph.isTableRow(H[G]))return!1;if(this.graph.getModel().isVertex(H[G])){var P=this.graph.getCellGeometry(H[G]);if(null!=P&&P.relative)return!1}}return e.apply(this,arguments)};var g=
-mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var B=g.apply(this,arguments);B.intersects=mxUtils.bind(this,function(H,S){return this.isConnecting()?!0:mxCellMarker.prototype.intersects.apply(B,arguments)});return B};mxGraphView.prototype.createBackgroundPageShape=function(B){return new mxRectangleShape(B,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var B=this.getGraphBounds(),H=0<B.width?B.x/
-this.scale-this.translate.x:0,S=0<B.height?B.y/this.scale-this.translate.y:0,G=this.graph.pageFormat,P=this.graph.pageScale,R=G.width*P;G=G.height*P;P=Math.floor(Math.min(0,H)/R);var c=Math.floor(Math.min(0,S)/G);return new mxRectangle(this.scale*(this.translate.x+P*R),this.scale*(this.translate.y+c*G),this.scale*(Math.ceil(Math.max(1,H+B.width/this.scale)/R)-P)*R,this.scale*(Math.ceil(Math.max(1,S+B.height/this.scale)/G)-c)*G)};var m=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(B,
-H){m.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=B+"px",this.view.backgroundPageShape.node.style.marginTop=H+"px")};var u=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(B,H,S,G,P,R){var c=u.apply(this,arguments);null==R||R||mxEvent.addListener(c,"mousedown",function(f){mxEvent.consume(f)});return c};var p=
-mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=function(B,H,S){var G=this.graph.model.getParent(B);if(H){var P=this.graph.model.isEdge(B)?null:this.graph.getCellGeometry(B);P=!this.graph.model.isEdge(G)&&!this.graph.isSiblingSelected(B)&&(null!=P&&P.relative||!this.graph.isContainer(G)||this.graph.isPart(B))}else if(P=p.apply(this,arguments),this.graph.isTableCell(B)||this.graph.isTableRow(B))P=G,this.graph.isTable(P)||(P=this.graph.model.getParent(P)),
-P=!this.graph.selectionCellsHandler.isHandled(P)||this.graph.isCellSelected(P)&&this.graph.isToggleEvent(S.getEvent())||this.graph.isCellSelected(B)&&!this.graph.isToggleEvent(S.getEvent())||this.graph.isTableCell(B)&&this.graph.isCellSelected(G);return P};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(B){B=B.getCell();for(var H=this.graph.getModel(),S=H.getParent(B),G=this.graph.view.getState(S),P=this.graph.isCellSelected(B);null!=G&&(H.isVertex(S)||H.isEdge(S));){var R=this.graph.isCellSelected(S);
-P=P||R;if(R||!P&&(this.graph.isTableCell(B)||this.graph.isTableRow(B)))B=S;S=H.getParent(S)}return B}})();EditorUi=function(b,e,g){mxEventSource.call(this);this.destroyFunctions=[];this.editor=b||new Editor;this.container=e||document.body;var m=this,u=this.editor.graph;u.lightbox=g;var p=u.getGraphBounds;u.getGraphBounds=function(){var W=p.apply(this,arguments),ba=this.backgroundImage;if(null!=ba&&null!=ba.width&&null!=ba.height){var ha=this.view.translate,la=this.view.scale;W=mxRectangle.fromRectangle(W);W.add(new mxRectangle((ha.x+ba.x)*la,(ha.y+ba.y)*la,ba.width*la,ba.height*la))}return W};u.useCssTransforms&&
+K;J<N.length;J++)null!=N[J]&&N[J].destroy();N.splice(K,N.length-K)}});B(this.horizontalPageBreaks);B(this.verticalPageBreaks)};var e=mxGraphHandler.prototype.shouldRemoveCellsFromParent;mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(B,H,T){for(var G=0;G<H.length;G++){if(this.graph.isTableCell(H[G])||this.graph.isTableRow(H[G]))return!1;if(this.graph.getModel().isVertex(H[G])){var P=this.graph.getCellGeometry(H[G]);if(null!=P&&P.relative)return!1}}return e.apply(this,arguments)};var g=
+mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var B=g.apply(this,arguments);B.intersects=mxUtils.bind(this,function(H,T){return this.isConnecting()?!0:mxCellMarker.prototype.intersects.apply(B,arguments)});return B};mxGraphView.prototype.createBackgroundPageShape=function(B){return new mxRectangleShape(B,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var B=this.getGraphBounds(),H=0<B.width?B.x/
+this.scale-this.translate.x:0,T=0<B.height?B.y/this.scale-this.translate.y:0,G=this.graph.pageFormat,P=this.graph.pageScale,R=G.width*P;G=G.height*P;P=Math.floor(Math.min(0,H)/R);var c=Math.floor(Math.min(0,T)/G);return new mxRectangle(this.scale*(this.translate.x+P*R),this.scale*(this.translate.y+c*G),this.scale*(Math.ceil(Math.max(1,H+B.width/this.scale)/R)-P)*R,this.scale*(Math.ceil(Math.max(1,T+B.height/this.scale)/G)-c)*G)};var m=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(B,
+H){m.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=B+"px",this.view.backgroundPageShape.node.style.marginTop=H+"px")};var u=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(B,H,T,G,P,R){var c=u.apply(this,arguments);null==R||R||mxEvent.addListener(c,"mousedown",function(f){mxEvent.consume(f)});return c};var p=
+mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=function(B,H,T){var G=this.graph.model.getParent(B);if(H){var P=this.graph.model.isEdge(B)?null:this.graph.getCellGeometry(B);P=!this.graph.model.isEdge(G)&&!this.graph.isSiblingSelected(B)&&(null!=P&&P.relative||!this.graph.isContainer(G)||this.graph.isPart(B))}else if(P=p.apply(this,arguments),this.graph.isTableCell(B)||this.graph.isTableRow(B))P=G,this.graph.isTable(P)||(P=this.graph.model.getParent(P)),
+P=!this.graph.selectionCellsHandler.isHandled(P)||this.graph.isCellSelected(P)&&this.graph.isToggleEvent(T.getEvent())||this.graph.isCellSelected(B)&&!this.graph.isToggleEvent(T.getEvent())||this.graph.isTableCell(B)&&this.graph.isCellSelected(G);return P};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(B){B=B.getCell();for(var H=this.graph.getModel(),T=H.getParent(B),G=this.graph.view.getState(T),P=this.graph.isCellSelected(B);null!=G&&(H.isVertex(T)||H.isEdge(T));){var R=this.graph.isCellSelected(T);
+P=P||R;if(R||!P&&(this.graph.isTableCell(B)||this.graph.isTableRow(B)))B=T;T=H.getParent(T)}return B}})();EditorUi=function(b,e,g){mxEventSource.call(this);this.destroyFunctions=[];this.editor=b||new Editor;this.container=e||document.body;var m=this,u=this.editor.graph;u.lightbox=g;var p=u.getGraphBounds;u.getGraphBounds=function(){var W=p.apply(this,arguments),ba=this.backgroundImage;if(null!=ba&&null!=ba.width&&null!=ba.height){var ha=this.view.translate,la=this.view.scale;W=mxRectangle.fromRectangle(W);W.add(new mxRectangle((ha.x+ba.x)*la,(ha.y+ba.y)*la,ba.width*la,ba.height*la))}return W};u.useCssTransforms&&
(this.lazyZoomDelay=0);this.selectionStateListener=mxUtils.bind(this,function(W,ba){this.clearSelectionState()});u.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionStateListener);u.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);u.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);u.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);u.getView().addListener("unitChanged",this.selectionStateListener);if(this.editor.chromeless&&!this.editor.editable){this.footerHeight=
-0;u.isEnabled=function(){return!1};u.panningHandler.isForcePanningEvent=function(W){for(var ba=W.getSource();null!=ba&&ba!=u.container;){if("foreignObject"===ba.nodeName||"text"===ba.nodeName)return!1;ba=ba.parentNode}return!mxEvent.isPopupTrigger(W.getEvent())};var B=u.panningHandler.start;u.panningHandler.start=function(){B.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!u.standalone){var H=!1,S=!1;this.setDefaultStyle=function(W){try{u.getModel().isEdge(W)?
-S=u.pasteEdgeStyle=!1:H=!1;var ba=u.getCellStyle(W,!1),ha=[],la=[],Y;for(Y in ba)ha.push(ba[Y]),la.push(Y);u.getModel().isEdge(W)?u.currentEdgeStyle={}:u.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",la,"values",ha,"cells",[W],"force",!0));u.getModel().isEdge(W)?S=u.pasteEdgeStyle=!0:H=!0}catch(ma){this.handleError(ma)}};this.clearDefaultStyle=function(){u.currentEdgeStyle=mxUtils.clone(u.defaultEdgeStyle);u.currentVertexStyle=mxUtils.clone(u.defaultVertexStyle);H=S=
+0;u.isEnabled=function(){return!1};u.panningHandler.isForcePanningEvent=function(W){for(var ba=W.getSource();null!=ba&&ba!=u.container;){if("foreignObject"===ba.nodeName||"text"===ba.nodeName)return!1;ba=ba.parentNode}return!mxEvent.isPopupTrigger(W.getEvent())};var B=u.panningHandler.start;u.panningHandler.start=function(){B.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!u.standalone){var H=!1,T=!1;this.setDefaultStyle=function(W){try{u.getModel().isEdge(W)?
+T=u.pasteEdgeStyle=!1:H=!1;var ba=u.getCellStyle(W,!1),ha=[],la=[],Y;for(Y in ba)ha.push(ba[Y]),la.push(Y);u.getModel().isEdge(W)?u.currentEdgeStyle={}:u.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",la,"values",ha,"cells",[W],"force",!0));u.getModel().isEdge(W)?T=u.pasteEdgeStyle=!0:H=!0}catch(ma){this.handleError(ma)}};this.clearDefaultStyle=function(){u.currentEdgeStyle=mxUtils.clone(u.defaultEdgeStyle);u.currentVertexStyle=mxUtils.clone(u.defaultVertexStyle);H=T=
u.pasteEdgeStyle=!1;this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))};u.addListener("cellsInserted",function(W,ba){u.pasteCellStyles(u.includeDescendants(ba.getProperty("cells")))});u.addListener("textInserted",function(W,ba){u.pasteCellStyles(ba.getProperty("cells"))});this.createDivs();this.createUi();this.refresh();var G=mxUtils.bind(this,function(W){null==W&&(W=window.event);return u.isEditing()||null!=W&&this.isSelectionAllowed(W)});this.container!=document.body||
this.editor.chromeless&&!this.editor.editable||(this.menubarContainer.onselectstart=G,this.menubarContainer.onmousedown=G,this.toolbarContainer.onselectstart=G,this.toolbarContainer.onmousedown=G,this.diagramContainer.onselectstart=G,this.diagramContainer.onmousedown=G,this.sidebarContainer.onselectstart=G,this.sidebarContainer.onmousedown=G,this.formatContainer.onselectstart=G,this.formatContainer.onmousedown=G,this.footerContainer.onselectstart=G,this.footerContainer.onmousedown=G,null!=this.tabContainer&&
(this.tabContainer.onselectstart=G),mxClient.IS_IOS&&(e=function(){var W=null;if(/iP(hone|od|ad)/.test(navigator.platform)){var ba=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);try{W=[parseInt(ba[1],10),parseInt(ba[2],10),parseInt(ba[3]||0,10)]}catch(ha){}}return W}(),null!=e&&16<=e[0]&&(mxUtils.setPrefixedStyle(this.menubarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.diagramContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.sidebarContainer.style,"userSelect",
@@ -2060,7 +2060,7 @@ W=ha}W=this.toolbar.fontMenu;ha=this.toolbar.sizeMenu;if(null==F)this.toolbar.cr
null!=ha&&(ha=mxUtils.getCurrentStyle(ha),null!=ha&&null!=m.toolbar&&(m.toolbar.setFontName(mxUtils.getCssFontFamily(ha.fontFamily)),m.toolbar.setFontSize(parseInt(ha.fontSize))));W=!1},0))};mxEvent.addListener(u.cellEditor.textarea,"input",ba);mxEvent.addListener(u.cellEditor.textarea,"touchend",ba);mxEvent.addListener(u.cellEditor.textarea,"mouseup",ba);mxEvent.addListener(u.cellEditor.textarea,"keyup",ba);ba()}};var J=u.cellEditor.stopEditing;u.cellEditor.stopEditing=function(W,ba){try{J.apply(this,
arguments),N()}catch(ha){m.handleError(ha)}};u.container.setAttribute("tabindex","0");u.container.style.cursor="default";if(window.self===window.top&&null!=u.container.parentNode)try{u.container.focus()}catch(W){}var da=u.fireMouseEvent;u.fireMouseEvent=function(W,ba,ha){try{W==mxEvent.MOUSE_DOWN&&this.container.focus(),da.apply(this,arguments)}catch(la){m.handleError(la)}};var ea=u.foldCells;u.foldCells=function(W,ba,ha,la,Y){try{ea.apply(this,arguments)}catch(ma){m.handleError(ma)}};u.popupMenuHandler.autoExpand=
!0;null!=this.menus&&(u.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(W,ba,ha){this.menus.createPopupMenu(W,ba,ha)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(W){u.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(b);this.getKeyHandler=function(){return keyHandler};u.connectionHandler.addListener(mxEvent.CONNECT,function(W,ba){var ha=[ba.getProperty("cell")];ba.getProperty("terminalInserted")&&(ha.push(ba.getProperty("terminal")),window.setTimeout(function(){null!=
-m.hoverIcons&&m.hoverIcons.update(u.view.getState(ha[ha.length-1]))},0));u.pasteCellStyles(ha)});this.addListener("styleChanged",mxUtils.bind(this,function(W,ba){W=ba.getProperty("force");(this.updateDefaultStyle||W)&&u.copyCellStyles(ba.getProperty("cells"),ba.getProperty("keys"),ba.getProperty("values"),u.currentVertexStyle,u.currentEdgeStyle,H,S);null!=this.toolbar&&(this.toolbar.setFontName(u.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(u.currentVertexStyle.fontSize||
+m.hoverIcons&&m.hoverIcons.update(u.view.getState(ha[ha.length-1]))},0));u.pasteCellStyles(ha)});this.addListener("styleChanged",mxUtils.bind(this,function(W,ba){W=ba.getProperty("force");(this.updateDefaultStyle||W)&&u.copyCellStyles(ba.getProperty("cells"),ba.getProperty("keys"),ba.getProperty("values"),u.currentVertexStyle,u.currentEdgeStyle,H,T);null!=this.toolbar&&(this.toolbar.setFontName(u.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(u.currentVertexStyle.fontSize||
Menus.prototype.defaultFontSize),null!=this.toolbar.edgeStyleMenu&&(ba=this.toolbar.edgeStyleMenu.getElementsByTagName("div")[0],ba.style.backgroundPosition="left center",ba.style.backgroundRepeat="no-repeat",ba.className="geAdaptiveAsset",ba.style.height="100%",ba.style.width="100%",ba.style.backgroundImage="orthogonalEdgeStyle"==u.currentEdgeStyle.edgeStyle&&"1"==u.currentEdgeStyle.curved?"url("+Format.curvedImage.src+")":"straight"==u.currentEdgeStyle.edgeStyle||"none"==u.currentEdgeStyle.edgeStyle||
null==u.currentEdgeStyle.edgeStyle?"url("+Format.straightImage.src+")":"entityRelationEdgeStyle"==u.currentEdgeStyle.edgeStyle?"url("+Format.entityImage.src+")":"elbowEdgeStyle"==u.currentEdgeStyle.edgeStyle?"vertical"==u.currentEdgeStyle.elbow?"url("+Format.verticalElbowImage.src+")":"url("+Format.horizontalElbowImage.src+")":"isometricEdgeStyle"==u.currentEdgeStyle.edgeStyle?"vertical"==u.currentEdgeStyle.elbow?"url("+Format.verticalIsometricImage.src+")":"url("+Format.horizontalIsometricImage.src+
")":"url("+Format.orthogonalImage.src+")"),null!=this.toolbar.edgeShapeMenu&&(ba=this.toolbar.edgeShapeMenu.getElementsByTagName("div")[0],ba.style.backgroundPosition="left center",ba.style.backgroundRepeat="no-repeat",ba.className="geAdaptiveAsset",ba.style.height="100%",ba.style.width="100%",ba.style.backgroundImage="link"==u.currentEdgeStyle.shape?"url("+Format.linkEdgeImage.src+")":"flexArrow"==u.currentEdgeStyle.shape?"url("+Format.arrowImage.src+")":"arrow"==u.currentEdgeStyle.shape?"url("+
@@ -2069,7 +2069,7 @@ b),u.getModel().addListener(mxEvent.CHANGE,b));u.addListener(mxEvent.CELLS_ADDED
function(W){null!=this.currentMenu&&mxEvent.getSource(W)!=this.currentMenu.div&&this.hideCurrentMenu()});mxEvent.addGestureListeners(document,this.gestureHandler);var ca=null;this.resizeHandler=mxUtils.bind(this,function(){null!=ca&&window.clearTimeout(ca);ca=window.setTimeout(mxUtils.bind(this,function(){ca=null;this.windowResized()}),100)});mxEvent.addListener(window,"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});mxEvent.addListener(window,
"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&!window.navigator.standalone&&"undefined"!==typeof Menus&&(this.scrollHandler=mxUtils.bind(this,function(){window.scrollTo(0,0)}),mxEvent.addListener(window,"scroll",this.scrollHandler));this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.resetScrollbars()}));this.addListener("gridEnabledChanged",mxUtils.bind(this,function(){u.view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,
function(){u.view.validateBackground()}));u.addListener("gridSizeChanged",mxUtils.bind(this,function(){u.isGridEnabled()&&u.view.validateBackground()}));this.editor.resetGraph()}this.init();u.standalone||this.open()};EditorUi.compactUi=!0;
-EditorUi.parsePng=function(b,e,g){function m(H,S){var G=p;p+=S;return H.substring(G,p)}function u(H){H=m(H,4);return H.charCodeAt(3)+(H.charCodeAt(2)<<8)+(H.charCodeAt(1)<<16)+(H.charCodeAt(0)<<24)}var p=0;if(m(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=g&&g();else if(m(b,4),"IHDR"!=m(b,4))null!=g&&g();else{m(b,17);do{g=u(b);var B=m(b,4);if(null!=e&&e(p-8,B,g))break;value=m(b,g);m(b,4);if("IEND"==B)break}while(g)}};mxUtils.extend(EditorUi,mxEventSource);
+EditorUi.parsePng=function(b,e,g){function m(H,T){var G=p;p+=T;return H.substring(G,p)}function u(H){H=m(H,4);return H.charCodeAt(3)+(H.charCodeAt(2)<<8)+(H.charCodeAt(1)<<16)+(H.charCodeAt(0)<<24)}var p=0;if(m(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=g&&g();else if(m(b,4),"IHDR"!=m(b,4))null!=g&&g();else{m(b,17);do{g=u(b);var B=m(b,4);if(null!=e&&e(p-8,B,g))break;value=m(b,g);m(b,4);if("IEND"==B)break}while(g)}};mxUtils.extend(EditorUi,mxEventSource);
EditorUi.prototype.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.menubarHeight=30;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.toolbarHeight=38;EditorUi.prototype.footerHeight=28;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?212:240);EditorUi.prototype.hsplitPosition=screen.width<=Editor.smallScreenWidth?0:EditorUi.prototype.defaultSidebarWidth;
EditorUi.prototype.allowAnimation=!0;EditorUi.prototype.lightboxMaxFitScale=2;EditorUi.prototype.lightboxVerticalDivider=4;EditorUi.prototype.hsplitClickEnabled=!1;EditorUi.prototype.updateDefaultStyle=!1;EditorUi.prototype.spaceDown=!1;EditorUi.prototype.shiftDown=!1;
EditorUi.prototype.init=function(){var b=this.editor.graph;if(!b.standalone){"0"!=urlParams["shape-picker"]&&this.installShapePicker();mxEvent.addListener(b.container,"scroll",mxUtils.bind(this,function(){b.tooltipHandler.hide();null!=b.connectionHandler&&null!=b.connectionHandler.constraintHandler&&b.connectionHandler.constraintHandler.reset()}));b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){b.tooltipHandler.hide();var m=b.getRubberband();null!=m&&m.cancel()}));mxEvent.addListener(b.container,
@@ -2077,31 +2077,31 @@ EditorUi.prototype.init=function(){var b=this.editor.graph;if(!b.standalone){"0"
arguments);g.updateActionStates()};b.showLinkDialog=mxUtils.bind(g,g.showLinkDialog);b.editLink=g.actions.get("editLink").funct;this.updateActionStates();this.initClipboard();this.initCanvas();null!=this.format&&this.format.init()}};EditorUi.prototype.clearSelectionState=function(){this.selectionState=null};EditorUi.prototype.getSelectionState=function(){null==this.selectionState&&(this.selectionState=this.createSelectionState());return this.selectionState};
EditorUi.prototype.createSelectionState=function(){for(var b=this.editor.graph,e=b.getSelectionCells(),g=this.initSelectionState(),m=!0,u=0;u<e.length;u++){var p=b.getCurrentCellStyle(e[u]);"0"!=mxUtils.getValue(p,mxConstants.STYLE_EDITABLE,"1")&&(this.updateSelectionStateForCell(g,e[u],e,m),m=!1)}this.updateSelectionStateForTableCells(g);return g};
EditorUi.prototype.initSelectionState=function(){return{vertices:[],edges:[],cells:[],x:null,y:null,width:null,height:null,style:{},containsImage:!1,containsLabel:!1,fill:!0,glass:!0,html:!0,rounded:!0,autoSize:!1,image:!1,shadow:!0,lineJumps:!0,resizable:!0,table:!1,cell:!1,row:!1,movable:!0,rotatable:!0,stroke:!0,swimlane:!1,unlocked:this.editor.graph.isEnabled(),connections:!1}};
-EditorUi.prototype.updateSelectionStateForTableCells=function(b){if(1<b.cells.length&&b.cell){var e=mxUtils.sortCells(b.cells),g=this.editor.graph.model,m=g.getParent(e[0]),u=g.getParent(m);if(null!=m&&null!=u){for(var p=m.getIndex(e[0]),B=u.getIndex(m),H=null,S=1,G=1,P=0,R=B<u.getChildCount()-1?g.getChildAt(g.getChildAt(u,B+1),p):null;P<e.length-1;){var c=e[++P];null==R||R!=c||null!=H&&S!=H||(H=S,S=0,G++,m=g.getParent(R),R=B+G<u.getChildCount()?g.getChildAt(g.getChildAt(u,B+G),p):null);var f=this.editor.graph.view.getState(c);
-if(c==g.getChildAt(m,p+S)&&null!=f&&1==mxUtils.getValue(f.style,"colspan",1)&&1==mxUtils.getValue(f.style,"rowspan",1))S++;else break}P==G*S-1&&(b.mergeCell=e[0],b.colspan=S,b.rowspan=G)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),0)};
+EditorUi.prototype.updateSelectionStateForTableCells=function(b){if(1<b.cells.length&&b.cell){var e=mxUtils.sortCells(b.cells),g=this.editor.graph.model,m=g.getParent(e[0]),u=g.getParent(m);if(null!=m&&null!=u){for(var p=m.getIndex(e[0]),B=u.getIndex(m),H=null,T=1,G=1,P=0,R=B<u.getChildCount()-1?g.getChildAt(g.getChildAt(u,B+1),p):null;P<e.length-1;){var c=e[++P];null==R||R!=c||null!=H&&T!=H||(H=T,T=0,G++,m=g.getParent(R),R=B+G<u.getChildCount()?g.getChildAt(g.getChildAt(u,B+G),p):null);var f=this.editor.graph.view.getState(c);
+if(c==g.getChildAt(m,p+T)&&null!=f&&1==mxUtils.getValue(f.style,"colspan",1)&&1==mxUtils.getValue(f.style,"rowspan",1))T++;else break}P==G*T-1&&(b.mergeCell=e[0],b.colspan=T,b.rowspan=G)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),0)};
EditorUi.prototype.createTimeout=function(b,e,g){var m=!0,u=null,p=mxUtils.bind(this,function(H){u.clear()&&(m=!1,H=null!=H?H:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(b,e,g)})},null!=g?g(H):this.handleError(H))}),B=window.setTimeout(p,null!=b?b:this.timeout);u={clear:function(){window.clearTimeout(B);return m},isAlive:function(){return m}};null!=e&&this.tryAndHandle(mxUtils.bind(this,function(){e(u)}),p);return u};
EditorUi.prototype.tryAndHandle=function(b,e){try{b()}catch(g){null!=e?e(g):this.handleError(g)}};
-EditorUi.prototype.removeUserDefinedDarkColors=function(b,e,g){var m=this.editor.graph;b=null!=b?b:m.getSelectionCells();var u=Graph.colorStyles,p=document.createElement("div");m.model.beginUpdate();try{for(var B=0;B<b.length;B++)if(m.model.isEdge(b[B])||m.model.isVertex(b[B])){var H=m.getCellStyle(b[B],!1);if(null!=H)for(var S=0;S<u.length;S++)try{var G=H[u[S]];if(mxUtils.isLightDarkColor(G)){var P=mxUtils.getLightDarkColor(G);m.setCellStyles(u[S],P.light,[b[B]])}}catch(c){}e&&m.isHtmlLabel(b[B])&&
+EditorUi.prototype.removeUserDefinedDarkColors=function(b,e,g){var m=this.editor.graph;b=null!=b?b:m.getSelectionCells();var u=Graph.colorStyles,p=document.createElement("div");m.model.beginUpdate();try{for(var B=0;B<b.length;B++)if(m.model.isEdge(b[B])||m.model.isVertex(b[B])){var H=m.getCellStyle(b[B],!1);if(null!=H)for(var T=0;T<u.length;T++)try{var G=H[u[T]];if(mxUtils.isLightDarkColor(G)){var P=mxUtils.getLightDarkColor(G);m.setCellStyles(u[T],P.light,[b[B]])}}catch(c){}e&&m.isHtmlLabel(b[B])&&
"0"!=mxUtils.getValue(H,"html","0")&&(p.innerHTML=Graph.sanitizeHtml(m.getLabel(b[B])),Graph.addLightDarkColors(p,null,null,function(c,f,l){return mxUtils.isLightDarkColor(l)?(l=mxUtils.getLightDarkColor(l),c.style.setProperty(f,l.light),!0):!1})&&m.cellLabelChanged(b[B],p.innerHTML))}if(g&&mxUtils.isLightDarkColor(m.background)){P=mxUtils.getLightDarkColor(m.background);var R=new ChangePageSetup(this,P.light);R.ignoreImage=!0;m.model.execute(R)}}finally{m.model.endUpdate()}return b};
EditorUi.prototype.updateSelectionStateForCell=function(b,e,g,m){g=this.editor.graph;b.cells.push(e);if(g.getModel().isVertex(e)){b.connections=0<g.model.getEdgeCount(e);b.unlocked=b.unlocked&&!g.isCellLocked(e);b.resizable=b.resizable&&g.isCellResizable(e);b.rotatable=b.rotatable&&g.isCellRotatable(e);b.movable=b.movable&&g.isCellMovable(e)&&!g.isTableRow(e)&&!g.isTableCell(e);b.swimlane=b.swimlane||g.isSwimlane(e);b.table=b.table||g.isTable(e);b.cell=b.cell||g.isTableCell(e);b.row=b.row||g.isTableRow(e);
b.vertices.push(e);var u=g.getCellGeometry(e);if(null!=u&&(0<u.width?null==b.width?b.width=u.width:b.width!=u.width&&(b.width=""):b.containsLabel=!0,0<u.height?null==b.height?b.height=u.height:b.height!=u.height&&(b.height=""):b.containsLabel=!0,!u.relative||null!=u.offset)){var p=u.relative?u.offset.x:u.x;u=u.relative?u.offset.y:u.y;null==b.x?b.x=p:b.x!=p&&(b.x="");null==b.y?b.y=u:b.y!=u&&(b.y="")}}else g.getModel().isEdge(e)&&(b.edges.push(e),b.connections=!0,b.resizable=!1,b.rotatable=!1,b.movable=
!1);p=g.view.getState(e);null!=p&&(b.html=b.html&&g.isHtmlLabel(e),b.autoSize=b.autoSize||g.isAutoSizeState(p),b.glass=b.glass&&g.isGlassState(p),b.rounded=b.rounded&&g.isRoundedState(p),b.lineJumps=b.lineJumps&&g.isLineJumpState(p),b.image=b.image||g.isImageState(p),b.shadow=b.shadow&&g.isShadowState(p),b.fill=b.fill&&g.isFillState(p),b.gradient=b.fill&&g.isGradientState(p),b.stroke=b.stroke&&g.isStrokeState(p),e=mxUtils.getValue(p.style,mxConstants.STYLE_SHAPE,null),b.containsImage=b.containsImage||
"image"==e,g.mergeStyle(p.style,b.style,m))};
-EditorUi.prototype.installShapePicker=function(){var b=this.editor.graph,e=this;b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(S,G){"mouseDown"==G.getProperty("eventName")&&e.hideShapePicker()}));var g=mxUtils.bind(this,function(){e.hideShapePicker(!0)});b.addListener("wheel",g);b.addListener(mxEvent.ESCAPE,g);b.view.addListener(mxEvent.SCALE,g);b.view.addListener(mxEvent.SCALE_AND_TRANSLATE,g);b.getSelectionModel().addListener(mxEvent.CHANGE,g);var m=b.popupMenuHandler.isMenuShowing;
-b.popupMenuHandler.isMenuShowing=function(){return m.apply(this,arguments)||null!=e.shapePicker||null!=e.currentMenu};var u=b.dblClick;b.dblClick=function(S,G){if(this.isEnabled())if(null!=G||null==e.sidebar||mxEvent.isShiftDown(S)||b.isCellLocked(b.getDefaultParent()))u.apply(this,arguments);else{var P=mxUtils.convertPoint(this.container,mxEvent.getClientX(S),mxEvent.getClientY(S));mxEvent.consume(S);window.setTimeout(mxUtils.bind(this,function(){e.showShapePicker(P.x,P.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",
-g);var p=this.hoverIcons.drag;this.hoverIcons.drag=function(){e.hideShapePicker();p.apply(this,arguments)};var B=this.hoverIcons.execute;this.hoverIcons.execute=function(S,G,P){var R=P.getEvent();this.graph.isCloneEvent(R)||mxEvent.isShiftDown(R)?B.apply(this,arguments):this.graph.connectVertex(S.cell,G,this.graph.defaultEdgeLength,R,null,null,mxUtils.bind(this,function(c,f,l){var t=b.getCompositeParent(S.cell);c=b.getCellGeometry(t);for(P.consume();null!=t&&b.model.isVertex(t)&&null!=c&&c.relative;)cell=
-t,t=b.model.getParent(cell),c=b.getCellGeometry(t);window.setTimeout(mxUtils.bind(this,function(){e.showShapePicker(P.getGraphX(),P.getGraphY(),t,mxUtils.bind(this,function(z){l(z);null!=e.hoverIcons&&e.hoverIcons.update(b.view.getState(z))}),G)}),30)}),mxUtils.bind(this,function(c){this.graph.selectCellsForConnectVertex(c,R,this)}))};var H=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(S,G){null!=H&&window.clearTimeout(H);H=window.setTimeout(mxUtils.bind(this,function(){var P=
+EditorUi.prototype.installShapePicker=function(){var b=this.editor.graph,e=this;b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(T,G){"mouseDown"==G.getProperty("eventName")&&e.hideShapePicker()}));var g=mxUtils.bind(this,function(){e.hideShapePicker(!0)});b.addListener("wheel",g);b.addListener(mxEvent.ESCAPE,g);b.view.addListener(mxEvent.SCALE,g);b.view.addListener(mxEvent.SCALE_AND_TRANSLATE,g);b.getSelectionModel().addListener(mxEvent.CHANGE,g);var m=b.popupMenuHandler.isMenuShowing;
+b.popupMenuHandler.isMenuShowing=function(){return m.apply(this,arguments)||null!=e.shapePicker||null!=e.currentMenu};var u=b.dblClick;b.dblClick=function(T,G){if(this.isEnabled())if(null!=G||null==e.sidebar||mxEvent.isShiftDown(T)||b.isCellLocked(b.getDefaultParent()))u.apply(this,arguments);else{var P=mxUtils.convertPoint(this.container,mxEvent.getClientX(T),mxEvent.getClientY(T));mxEvent.consume(T);window.setTimeout(mxUtils.bind(this,function(){e.showShapePicker(P.x,P.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",
+g);var p=this.hoverIcons.drag;this.hoverIcons.drag=function(){e.hideShapePicker();p.apply(this,arguments)};var B=this.hoverIcons.execute;this.hoverIcons.execute=function(T,G,P){var R=P.getEvent();this.graph.isCloneEvent(R)||mxEvent.isShiftDown(R)?B.apply(this,arguments):this.graph.connectVertex(T.cell,G,this.graph.defaultEdgeLength,R,null,null,mxUtils.bind(this,function(c,f,l){var t=b.getCompositeParent(T.cell);c=b.getCellGeometry(t);for(P.consume();null!=t&&b.model.isVertex(t)&&null!=c&&c.relative;)cell=
+t,t=b.model.getParent(cell),c=b.getCellGeometry(t);window.setTimeout(mxUtils.bind(this,function(){e.showShapePicker(P.getGraphX(),P.getGraphY(),t,mxUtils.bind(this,function(z){l(z);null!=e.hoverIcons&&e.hoverIcons.update(b.view.getState(z))}),G)}),30)}),mxUtils.bind(this,function(c){this.graph.selectCellsForConnectVertex(c,R,this)}))};var H=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(T,G){null!=H&&window.clearTimeout(H);H=window.setTimeout(mxUtils.bind(this,function(){var P=
G.getProperty("arrow"),R=G.getProperty("direction"),c=G.getProperty("event");P=P.getBoundingClientRect();var f=mxUtils.getOffset(b.container),l=b.container.scrollLeft+P.x-f.x;f=b.container.scrollTop+P.y-f.y;var t=b.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),z=e.showShapePicker(l,f,t,mxUtils.bind(this,function(C){null!=C&&b.connectVertex(t,R,b.defaultEdgeLength,c,!0,!1,function(F,N,K){K(C);null!=e.hoverIcons&&e.hoverIcons.update(b.view.getState(C))},
-function(F){b.selectCellsForConnectVertex(F)},c,this.hoverIcons)}),R,!0);null!=z&&(this.centerShapePicker(z,P,l,f,R),mxUtils.setOpacity(z,30),mxEvent.addListener(z,"mouseenter",function(){mxUtils.setOpacity(z,100)}),mxEvent.addListener(z,"mouseleave",function(){e.hideShapePicker()}))}),Editor.shapePickerHoverDelay)}));this.hoverIcons.addListener("blur",mxUtils.bind(this,function(S,G){null!=H&&window.clearTimeout(H)}))}};
+function(F){b.selectCellsForConnectVertex(F)},c,this.hoverIcons)}),R,!0);null!=z&&(this.centerShapePicker(z,P,l,f,R),mxUtils.setOpacity(z,30),mxEvent.addListener(z,"mouseenter",function(){mxUtils.setOpacity(z,100)}),mxEvent.addListener(z,"mouseleave",function(){e.hideShapePicker()}))}),Editor.shapePickerHoverDelay)}));this.hoverIcons.addListener("blur",mxUtils.bind(this,function(T,G){null!=H&&window.clearTimeout(H)}))}};
EditorUi.prototype.centerShapePicker=function(b,e,g,m,u){if(u==mxConstants.DIRECTION_EAST||u==mxConstants.DIRECTION_WEST)b.style.width="40px";var p=b.getBoundingClientRect();u==mxConstants.DIRECTION_NORTH?(g-=p.width/2-10,m-=p.height+6):u==mxConstants.DIRECTION_SOUTH?(g-=p.width/2-10,m+=e.height+6):u==mxConstants.DIRECTION_WEST?(g-=p.width+6,m-=p.height/2-10):u==mxConstants.DIRECTION_EAST&&(g+=e.width+6,m-=p.height/2-10);b.style.left=g+"px";b.style.top=m+"px"};
-EditorUi.prototype.showShapePicker=function(b,e,g,m,u,p,B,H,S){var G=null;this.editor.graph.freehand.isDrawing()||(H=H||null==g,G=this.createShapePicker(b,e,g,m,u,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(g,p,H),p,B,H,S),null!=G&&(null==this.hoverIcons||p||this.hoverIcons.reset(),b=this.editor.graph,b.popupMenuHandler.hideMenu(),b.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=m,this.shapePicker=G));return G};
-EditorUi.prototype.createShapePicker=function(b,e,g,m,u,p,B,H,S,G,P){P=null!=P?P:!0;var R=this.editor.graph,c=null;S=null!=S?S:function(t){t=t[0];var z=0,C=0,F=t.geometry;null!=F&&(R.model.isEdge(t)&&(t=F.getTerminalPoint(!1),F=new mxRectangle(0,0,t.x,t.y)),z=F.width/2,C=F.height/2);return new mxPoint(R.snap(Math.round(b/R.view.scale)-R.view.translate.x-z),R.snap(Math.round(e/R.view.scale)-R.view.translate.y-C))};if(null!=B&&0<B.length){var f=this;R=this.editor.graph;c=document.createElement("div");
+EditorUi.prototype.showShapePicker=function(b,e,g,m,u,p,B,H,T){var G=null;this.editor.graph.freehand.isDrawing()||(H=H||null==g,G=this.createShapePicker(b,e,g,m,u,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(g,p,H),p,B,H,T),null!=G&&(null==this.hoverIcons||p||this.hoverIcons.reset(),b=this.editor.graph,b.popupMenuHandler.hideMenu(),b.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=m,this.shapePicker=G));return G};
+EditorUi.prototype.createShapePicker=function(b,e,g,m,u,p,B,H,T,G,P){P=null!=P?P:!0;var R=this.editor.graph,c=null;T=null!=T?T:function(t){t=t[0];var z=0,C=0,F=t.geometry;null!=F&&(R.model.isEdge(t)&&(t=F.getTerminalPoint(!1),F=new mxRectangle(0,0,t.x,t.y)),z=F.width/2,C=F.height/2);return new mxPoint(R.snap(Math.round(b/R.view.scale)-R.view.translate.x-z),R.snap(Math.round(e/R.view.scale)-R.view.translate.y-C))};if(null!=B&&0<B.length){var f=this;R=this.editor.graph;c=document.createElement("div");
u=R.view.getState(g);var l=null==g||null!=u&&R.isTransparentState(u)?null:R.copyStyle(g);u=6>B.length?35*B.length:140;c.className="geToolbarContainer geSidebarContainer geShapePicker";c.setAttribute("title",mxResources.get("sidebarTooltip"));c.style.left=Math.round(b)+"px";c.style.top=Math.round(e)+"px";c.style.width=u+"px";mxClient.IS_POINTER&&(c.style.touchAction="none");H||mxUtils.setPrefixedStyle(c.style,"transform","translate(-22px,-22px)");R.container.appendChild(c);u=mxUtils.bind(this,function(t){var z=
document.createElement("a");z.className="geToolbarButton";z.style.display="inline-block";z.style.position="relative";z.style.overflow="hidden";z.style.cursor="pointer";z.style.width="30px";z.style.height="30px";z.style.padding="1px";c.appendChild(z);null!=l&&"1"!=urlParams.sketch?this.sidebar.graph.pasteStyle(l,[t]):this.sidebar.graph.pasteCellStyles([t],R.currentVertexStyle,R.currentEdgeStyle);var C=t.geometry;R.model.isEdge(t)&&(C=C.getTerminalPoint(!1),C=new mxRectangle(0,0,C.x,C.y));null!=C&&
-z.appendChild(this.sidebar.createVertexTemplateFromCells([t],C.width,C.height,"",!0,!1,null,!1,mxUtils.bind(this,function(F){if(!mxEvent.isShiftDown(F)||null==g&&R.isSelectionEmpty()){var N=R.cloneCell(t);if(null!=m)m(N);else{var K=S([N]);R.model.isEdge(N)?N.geometry.translate(K.x,K.y):(N.geometry.x=K.x,N.geometry.y=K.y);R.model.beginUpdate();try{R.addCell(N),R.model.isVertex(N)&&R.isAutoSizeCell(N)&&R.updateCellSize(N)}finally{R.model.endUpdate()}R.setSelectionCell(N);R.scrollCellToVisible(N);P&&
+z.appendChild(this.sidebar.createVertexTemplateFromCells([t],C.width,C.height,"",!0,!1,null,!1,mxUtils.bind(this,function(F){if(!mxEvent.isShiftDown(F)||null==g&&R.isSelectionEmpty()){var N=R.cloneCell(t);if(null!=m)m(N);else{var K=T([N]);R.model.isEdge(N)?N.geometry.translate(K.x,K.y):(N.geometry.x=K.x,N.geometry.y=K.y);R.model.beginUpdate();try{R.addCell(N),R.model.isVertex(N)&&R.isAutoSizeCell(N)&&R.updateCellSize(N)}finally{R.model.endUpdate()}R.setSelectionCell(N);R.scrollCellToVisible(N);P&&
R.startEditing(N);null!=f.hoverIcons&&f.hoverIcons.update(R.view.getState(N))}}else N=R.getEditableCells(null!=g?[g]:R.getSelectionCells()),R.updateShapes(t,N);null!=p&&p(F);mxEvent.consume(F)}),25,25,null,null,g))});for(G=0;G<(H?Math.min(B.length,4):B.length);G++)u(B[G]);B=c.offsetTop+c.clientHeight-(R.container.scrollTop+R.container.offsetHeight);0<B&&(c.style.top=Math.max(R.container.scrollTop+22,e-B)+"px");B=c.offsetLeft+c.clientWidth-(R.container.scrollLeft+R.container.offsetWidth);0<B&&(c.style.left=
Math.max(R.container.scrollLeft+22,b-B)+"px")}return c};
-EditorUi.prototype.getCellsForShapePicker=function(b,e,g){var m=this.editor.graph,u=mxUtils.bind(this,function(p,B,H,S){return m.createVertex(null,null,S||"",0,0,B||120,H||60,p,!1)});e=mxUtils.bind(this,function(p,B,H){p=new mxCell(H||"",new mxGeometry(0,0,m.defaultEdgeLength+20,0),p);p.geometry.setTerminalPoint(new mxPoint(0,0),!0);p.geometry.setTerminalPoint(new mxPoint(p.geometry.width,null!=B?B:0),!1);p.geometry.points=null!=B?[new mxPoint(p.geometry.width/2,B)]:[];p.geometry.relative=!0;p.edge=
+EditorUi.prototype.getCellsForShapePicker=function(b,e,g){var m=this.editor.graph,u=mxUtils.bind(this,function(p,B,H,T){return m.createVertex(null,null,T||"",0,0,B||120,H||60,p,!1)});e=mxUtils.bind(this,function(p,B,H){p=new mxCell(H||"",new mxGeometry(0,0,m.defaultEdgeLength+20,0),p);p.geometry.setTerminalPoint(new mxPoint(0,0),!0);p.geometry.setTerminalPoint(new mxPoint(p.geometry.width,null!=B?B:0),!1);p.geometry.points=null!=B?[new mxPoint(p.geometry.width/2,B)]:[];p.geometry.relative=!0;p.edge=
!0;return p});if(null!=b)try{b=m.cloneCell(b),m.model.isVertex(b)&&null!=b.geometry&&(b.geometry.x=0,b.geometry.y=0)}catch(p){b=null}null==b&&(b=u(m.appendFontSize("text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;",m.vertexFontSize),40,20,"Text"),m.model.isVertex(b)&&m.isAutoSizeCell(b)&&Graph.createOffscreenGraph(m.getStylesheet()).updateCellSize(b));b=[b,u("whiteSpace=wrap;html=1;"),u("ellipse;whiteSpace=wrap;html=1;",80,80),u("rhombus;whiteSpace=wrap;html=1;",
80,80),u("rounded=1;whiteSpace=wrap;html=1;"),u("shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;"),u("shape=trapezoid;perimeter=trapezoidPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,60),u("shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;",120,80),u("shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,80),u("shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;"),u("triangle;whiteSpace=wrap;html=1;",
60,80),u("shape=document;whiteSpace=wrap;html=1;boundedLbl=1;",120,80),u("shape=tape;whiteSpace=wrap;html=1;",120,100),u("ellipse;shape=cloud;whiteSpace=wrap;html=1;",120,80),u("shape=singleArrow;whiteSpace=wrap;html=1;arrowWidth=0.4;arrowSize=0.4;",80,60),u("shape=waypoint;sketch=0;size=6;pointerEvents=1;points=[];fillColor=none;resizable=0;rotatable=0;perimeter=centerPerimeter;snapToPoint=1;",20,20)];g&&(b=b.concat([e("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;"),e("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;endArrow=classic;startArrow=classic;endSize=8;startSize=8;"),
@@ -2117,46 +2117,46 @@ e?Format.blockMarkerImage.src:Format.blockFilledMarkerImage.src:b==mxConstants.A
e?Format.doubleBlockMarkerImage.src:Format.doubleBlockFilledMarkerImage.src:"box"==b?Format.boxMarkerImage.src:"halfCircle"==b?Format.halfCircleMarkerImage.src:"openAsync"==b?Format.openAsyncFilledMarkerImage.src:"async"==b?"1"!=e?Format.asyncMarkerImage.src:Format.asyncFilledMarkerImage.src:"dash"==b?Format.dashMarkerImage.src:"baseDash"==b?Format.baseDashMarkerImage.src:"cross"==b?Format.crossMarkerImage.src:"circle"==b?Format.circleMarkerImage.src:"circlePlus"==b?Format.circlePlusMarkerImage.src:
"ERone"==b?Format.EROneMarkerImage.src:"ERmandOne"==b?Format.ERmandOneMarkerImage.src:"ERmany"==b?Format.ERmanyMarkerImage.src:"ERoneToMany"==b?Format.ERoneToManyMarkerImage.src:"ERzeroToOne"==b?Format.ERzeroToOneMarkerImage.src:"ERzeroToMany"==b?Format.ERzeroToManyMarkerImage.src:null};EditorUi.prototype.createMenus=function(){return null};
EditorUi.prototype.updatePasteActionStates=function(){var b=this.editor.graph,e=this.actions.get("paste"),g=this.actions.get("pasteHere");e.setEnabled(this.editor.graph.cellEditor.isContentEditing()||(!mxClient.IS_FF&&null!=navigator.clipboard||!mxClipboard.isEmpty())&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent()));g.setEnabled(e.isEnabled())};
-EditorUi.prototype.initClipboard=function(){var b=this,e=mxClipboard.cut;mxClipboard.cut=function(p){p.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):e.apply(this,arguments);b.updatePasteActionStates()};mxClipboard.copy=function(p){var B=null;if(p.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{B=B||p.getSelectionCells();B=p.getExportableCells(p.model.getTopmostCells(B));for(var H={},S=p.createCellLookup(B),G=p.cloneCells(B,null,H),P=new mxGraphModel,R=P.getChildAt(P.getRoot(),
-0),c=0;c<G.length;c++){P.add(R,G[c]);var f=p.view.getState(B[c]);if(null!=f){var l=p.getCellGeometry(G[c]);null!=l&&l.relative&&!P.isEdge(B[c])&&null==S[mxObjectIdentity.get(P.getParent(B[c]))]&&(l.offset=null,l.relative=!1,l.x=f.x/f.view.scale-f.view.translate.x,l.y=f.y/f.view.scale-f.view.translate.y)}}p.updateCustomLinks(p.createCellMapping(H,S),G);mxClipboard.insertCount=1;mxClipboard.setCells(G)}b.updatePasteActionStates();return B};var g=mxClipboard.paste;mxClipboard.paste=function(p){var B=
+EditorUi.prototype.initClipboard=function(){var b=this,e=mxClipboard.cut;mxClipboard.cut=function(p){p.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):e.apply(this,arguments);b.updatePasteActionStates()};mxClipboard.copy=function(p){var B=null;if(p.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{B=B||p.getSelectionCells();B=p.getExportableCells(p.model.getTopmostCells(B));for(var H={},T=p.createCellLookup(B),G=p.cloneCells(B,null,H),P=new mxGraphModel,R=P.getChildAt(P.getRoot(),
+0),c=0;c<G.length;c++){P.add(R,G[c]);var f=p.view.getState(B[c]);if(null!=f){var l=p.getCellGeometry(G[c]);null!=l&&l.relative&&!P.isEdge(B[c])&&null==T[mxObjectIdentity.get(P.getParent(B[c]))]&&(l.offset=null,l.relative=!1,l.x=f.x/f.view.scale-f.view.translate.x,l.y=f.y/f.view.scale-f.view.translate.y)}}p.updateCustomLinks(p.createCellMapping(H,T),G);mxClipboard.insertCount=1;mxClipboard.setCells(G)}b.updatePasteActionStates();return B};var g=mxClipboard.paste;mxClipboard.paste=function(p){var B=
null;p.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):B=g.apply(this,arguments);b.updatePasteActionStates();return B};var m=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){m.apply(this,arguments);b.updatePasteActionStates()};var u=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(p,B){u.apply(this,arguments);b.updatePasteActionStates()};this.updatePasteActionStates()};
EditorUi.prototype.lazyZoomDelay=20;EditorUi.prototype.wheelZoomDelay=500;EditorUi.prototype.buttonZoomDelay=600;
-EditorUi.prototype.initCanvas=function(){var b=this.editor.graph;b.timerAutoScroll=!0;b.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((b.container.offsetWidth-34)/b.view.scale)),Math.max(0,Math.round((b.container.offsetHeight-34)/b.view.scale)))};b.view.getBackgroundPageBounds=function(){var O=this.graph.getPageLayout(),T=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+O.x*T.width),this.scale*(this.translate.y+O.y*T.height),this.scale*O.width*T.width,
-this.scale*O.height*T.height)};b.getPreferredPageSize=function(O,T,X){O=this.getPageLayout();T=this.getPageSize();return new mxRectangle(0,0,O.width*T.width,O.height*T.height)};var e=null,g=this;if(this.editor.isChromelessView()){this.chromelessResize=e=mxUtils.bind(this,function(O,T,X,aa){if(null!=b.container&&!b.isViewer()){X=null!=X?X:0;aa=null!=aa?aa:0;var ja=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),pa=mxUtils.hasScrollbars(b.container),sa=b.view.translate,qa=b.view.scale,
-wa=mxRectangle.fromRectangle(ja);wa.x=wa.x/qa-sa.x;wa.y=wa.y/qa-sa.y;wa.width/=qa;wa.height/=qa;sa=b.container.scrollTop;var Ba=b.container.scrollLeft,za=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)za+=3;var Ea=b.container.offsetWidth-za;za=b.container.offsetHeight-za;O=O?Math.max(.3,Math.min(T||1,Ea/wa.width)):qa;T=(Ea-O*wa.width)/2/O;var ra=0==this.lightboxVerticalDivider?0:(za-O*wa.height)/this.lightboxVerticalDivider/O;pa&&(T=Math.max(T,0),ra=Math.max(ra,
-0));if(pa||ja.width<Ea||ja.height<za)b.view.scaleAndTranslate(O,Math.floor(T-wa.x),Math.floor(ra-wa.y)),b.container.scrollTop=sa*O/qa,b.container.scrollLeft=Ba*O/qa;else if(0!=X||0!=aa)ja=b.view.translate,b.view.setTranslate(Math.floor(ja.x+X/qa),Math.floor(ja.y+aa/qa))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var m=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",m);this.destroyFunctions.push(function(){mxEvent.removeListener(window,
+EditorUi.prototype.initCanvas=function(){var b=this.editor.graph;b.timerAutoScroll=!0;b.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((b.container.offsetWidth-34)/b.view.scale)),Math.max(0,Math.round((b.container.offsetHeight-34)/b.view.scale)))};b.view.getBackgroundPageBounds=function(){var O=this.graph.getPageLayout(),S=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+O.x*S.width),this.scale*(this.translate.y+O.y*S.height),this.scale*O.width*S.width,
+this.scale*O.height*S.height)};b.getPreferredPageSize=function(O,S,X){O=this.getPageLayout();S=this.getPageSize();return new mxRectangle(0,0,O.width*S.width,O.height*S.height)};var e=null,g=this;if(this.editor.isChromelessView()){this.chromelessResize=e=mxUtils.bind(this,function(O,S,X,aa){if(null!=b.container&&!b.isViewer()){X=null!=X?X:0;aa=null!=aa?aa:0;var ja=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),pa=mxUtils.hasScrollbars(b.container),sa=b.view.translate,qa=b.view.scale,
+wa=mxRectangle.fromRectangle(ja);wa.x=wa.x/qa-sa.x;wa.y=wa.y/qa-sa.y;wa.width/=qa;wa.height/=qa;sa=b.container.scrollTop;var Ba=b.container.scrollLeft,za=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)za+=3;var Ea=b.container.offsetWidth-za;za=b.container.offsetHeight-za;O=O?Math.max(.3,Math.min(S||1,Ea/wa.width)):qa;S=(Ea-O*wa.width)/2/O;var ra=0==this.lightboxVerticalDivider?0:(za-O*wa.height)/this.lightboxVerticalDivider/O;pa&&(S=Math.max(S,0),ra=Math.max(ra,
+0));if(pa||ja.width<Ea||ja.height<za)b.view.scaleAndTranslate(O,Math.floor(S-wa.x),Math.floor(ra-wa.y)),b.container.scrollTop=sa*O/qa,b.container.scrollLeft=Ba*O/qa;else if(0!=X||0!=aa)ja=b.view.translate,b.view.setTranslate(Math.floor(ja.x+X/qa),Math.floor(ja.y+aa/qa))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var m=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",m);this.destroyFunctions.push(function(){mxEvent.removeListener(window,
"resize",m)});this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.chromelessResize(!0)}));this.actions.get("zoomIn").funct=mxUtils.bind(this,function(O){b.zoomIn();this.chromelessResize(!1)});this.actions.get("zoomOut").funct=mxUtils.bind(this,function(O){b.zoomOut();this.chromelessResize(!1)});if("0"!=urlParams.toolbar){var u=JSON.parse(decodeURIComponent(urlParams["toolbar-config"]||"{}"));this.chromelessToolbar=document.createElement("div");this.chromelessToolbar.style.position=
"fixed";this.chromelessToolbar.style.overflow="hidden";this.chromelessToolbar.style.boxSizing="border-box";this.chromelessToolbar.style.whiteSpace="nowrap";this.chromelessToolbar.style.padding="10px 10px 8px 10px";this.chromelessToolbar.style.left=b.isViewer()?"0":"50%";mxClient.IS_IE||mxClient.IS_IE11?(this.chromelessToolbar.style.backgroundColor="#ffffff",this.chromelessToolbar.style.border="3px solid black"):this.chromelessToolbar.style.backgroundColor="#000000";mxUtils.setPrefixedStyle(this.chromelessToolbar.style,
-"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transition","opacity 600ms ease-in-out");var p=mxUtils.bind(this,function(){var O=mxUtils.getCurrentStyle(b.container);b.isViewer()?this.chromelessToolbar.style.top="0":this.chromelessToolbar.style.bottom=(null!=O?parseInt(O["margin-bottom"]||0):0)+(null!=this.tabContainer?20+parseInt(this.tabContainer.style.height):20)+"px"});this.editor.addListener("resetGraphView",p);p();var B=0;p=mxUtils.bind(this,function(O,T,X){B++;
-var aa=document.createElement("span");aa.style.paddingLeft="8px";aa.style.paddingRight="8px";aa.style.cursor="pointer";mxEvent.addListener(aa,"click",O);null!=X&&aa.setAttribute("title",X);O=document.createElement("img");O.setAttribute("border","0");O.setAttribute("src",T);O.style.width="36px";O.style.filter="invert(100%)";aa.appendChild(O);this.chromelessToolbar.appendChild(aa);return aa});if(null!=u.backBtn){var H=Graph.sanitizeLink(u.backBtn.url);null!=H&&p(mxUtils.bind(this,function(O){window.location.href=
-H;mxEvent.consume(O)}),Editor.backImage,mxResources.get("back",null,"Back"))}if(this.isPagesEnabled()){var S=p(mxUtils.bind(this,function(O){this.actions.get("previousPage").funct();mxEvent.consume(O)}),Editor.previousImage,mxResources.get("previousPage")),G=document.createElement("div");G.style.fontFamily=Editor.defaultHtmlFont;G.style.display="inline-block";G.style.verticalAlign="top";G.style.fontWeight="bold";G.style.marginTop="8px";G.style.fontSize="14px";G.style.cursor="default";G.style.color=
+"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transition","opacity 600ms ease-in-out");var p=mxUtils.bind(this,function(){var O=mxUtils.getCurrentStyle(b.container);b.isViewer()?this.chromelessToolbar.style.top="0":this.chromelessToolbar.style.bottom=(null!=O?parseInt(O["margin-bottom"]||0):0)+(null!=this.tabContainer?20+parseInt(this.tabContainer.style.height):20)+"px"});this.editor.addListener("resetGraphView",p);p();var B=0;p=mxUtils.bind(this,function(O,S,X){B++;
+var aa=document.createElement("span");aa.style.paddingLeft="8px";aa.style.paddingRight="8px";aa.style.cursor="pointer";mxEvent.addListener(aa,"click",O);null!=X&&aa.setAttribute("title",X);O=document.createElement("img");O.setAttribute("border","0");O.setAttribute("src",S);O.style.width="36px";O.style.filter="invert(100%)";aa.appendChild(O);this.chromelessToolbar.appendChild(aa);return aa});if(null!=u.backBtn){var H=Graph.sanitizeLink(u.backBtn.url);null!=H&&p(mxUtils.bind(this,function(O){window.location.href=
+H;mxEvent.consume(O)}),Editor.backImage,mxResources.get("back",null,"Back"))}if(this.isPagesEnabled()){var T=p(mxUtils.bind(this,function(O){this.actions.get("previousPage").funct();mxEvent.consume(O)}),Editor.previousImage,mxResources.get("previousPage")),G=document.createElement("div");G.style.fontFamily=Editor.defaultHtmlFont;G.style.display="inline-block";G.style.verticalAlign="top";G.style.fontWeight="bold";G.style.marginTop="8px";G.style.fontSize="14px";G.style.cursor="default";G.style.color=
mxClient.IS_IE||mxClient.IS_IE11?"#000000":"#ffffff";this.chromelessToolbar.appendChild(G);var P=p(mxUtils.bind(this,function(O){this.actions.get("nextPage").funct();mxEvent.consume(O)}),Editor.nextImage,mxResources.get("nextPage")),R=mxUtils.bind(this,function(){if(null!=this.pages&&1<this.pages.length&&null!=this.currentPage){G.innerText="";var O=mxUtils.indexOf(this.pages,this.currentPage);mxUtils.write(G,O+1+" / "+this.pages.length);G.setAttribute("title",mxResources.get("currentPage")+": "+this.currentPage.getName());
-S.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.mod(O-1,this.pages.length)].getName());P.setAttribute("title",mxResources.get("nextPage")+": "+this.pages[mxUtils.mod(O+1,this.pages.length)].getName())}});S.style.paddingLeft="0px";S.style.paddingRight="4px";P.style.paddingLeft="4px";P.style.paddingRight="0px";var c=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(P.style.display="",S.style.display="",G.style.display="inline-block"):
-(P.style.display="none",S.style.display="none",G.style.display="none");R()});if(null!=this.menus){var f=this.menus.get("pages");null!=f&&mxEvent.addListener(G,"click",mxUtils.bind(this,function(O){var T=new mxPopupMenu(f.funct);T.div.className+=" geMenubarMenu";T.smartSeparators=!0;T.showDisabled=!0;T.autoExpand=!0;T.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(T,arguments);T.destroy()});var X=mxUtils.getOffset(G);T.popup(X.x,X.y+G.offsetHeight,null,O);mxEvent.addListener(T.div,
-"mouseleave",mxUtils.bind(this,function(){T.hideMenu()}))}))}this.editor.addListener("resetGraphView",c);this.editor.addListener("pageSelected",R)}p(mxUtils.bind(this,function(O){this.actions.get("zoomOut").funct();mxEvent.consume(O)}),Editor.zoomOutImage,mxResources.get("zoomOut")+" (Alt+Mousewheel)");p(mxUtils.bind(this,function(O){this.actions.get("zoomIn").funct();mxEvent.consume(O)}),Editor.zoomInImage,mxResources.get("zoomIn")+" (Alt+Mousewheel)");p(mxUtils.bind(this,function(O){b.isLightboxView()?
+T.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.mod(O-1,this.pages.length)].getName());P.setAttribute("title",mxResources.get("nextPage")+": "+this.pages[mxUtils.mod(O+1,this.pages.length)].getName())}});T.style.paddingLeft="0px";T.style.paddingRight="4px";P.style.paddingLeft="4px";P.style.paddingRight="0px";var c=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(P.style.display="",T.style.display="",G.style.display="inline-block"):
+(P.style.display="none",T.style.display="none",G.style.display="none");R()});if(null!=this.menus){var f=this.menus.get("pages");null!=f&&mxEvent.addListener(G,"click",mxUtils.bind(this,function(O){var S=new mxPopupMenu(f.funct);S.div.className+=" geMenubarMenu";S.smartSeparators=!0;S.showDisabled=!0;S.autoExpand=!0;S.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(S,arguments);S.destroy()});var X=mxUtils.getOffset(G);S.popup(X.x,X.y+G.offsetHeight,null,O);mxEvent.addListener(S.div,
+"mouseleave",mxUtils.bind(this,function(){S.hideMenu()}))}))}this.editor.addListener("resetGraphView",c);this.editor.addListener("pageSelected",R)}p(mxUtils.bind(this,function(O){this.actions.get("zoomOut").funct();mxEvent.consume(O)}),Editor.zoomOutImage,mxResources.get("zoomOut")+" (Alt+Mousewheel)");p(mxUtils.bind(this,function(O){this.actions.get("zoomIn").funct();mxEvent.consume(O)}),Editor.zoomInImage,mxResources.get("zoomIn")+" (Alt+Mousewheel)");p(mxUtils.bind(this,function(O){b.isLightboxView()?
(1==b.view.scale?this.lightboxFit():b.zoomTo(1),this.chromelessResize(!1)):this.chromelessResize(!0);mxEvent.consume(O)}),Editor.zoomFitImage,mxResources.get("fit"));var l=null,t=null,z=mxUtils.bind(this,function(O){null!=l&&(window.clearTimeout(l),l=null);null!=t&&(window.clearTimeout(t),t=null);l=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(this.chromelessToolbar,0);l=null;t=window.setTimeout(mxUtils.bind(this,function(){this.chromelessToolbar.style.display="none";t=null}),
600)}),O||200)}),C=mxUtils.bind(this,function(O){null!=l&&(window.clearTimeout(l),l=null);null!=t&&(window.clearTimeout(t),t=null);this.chromelessToolbar.style.display="";mxUtils.setOpacity(this.chromelessToolbar,O||30)});if("1"==urlParams.layers){this.layersDialog=null;var F=p(mxUtils.bind(this,function(O){if(null!=this.layersDialog)this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null;else{this.layersDialog=b.createLayersDialog(mxUtils.bind(this,function(){this.chromelessResize&&
-this.chromelessResize()}),!0);mxEvent.addListener(this.layersDialog,"mouseleave",mxUtils.bind(this,function(){this.layersDialog.parentNode.removeChild(this.layersDialog);this.layersDialog=null}));var T=F.getBoundingClientRect();mxUtils.setPrefixedStyle(this.layersDialog.style,"borderRadius","5px");this.layersDialog.style.position="fixed";this.layersDialog.style.fontFamily=Editor.defaultHtmlFont;this.layersDialog.style.width="160px";this.layersDialog.style.padding="4px 2px 4px 2px";this.layersDialog.style.left=
-T.left+"px";this.layersDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";mxClient.IS_IE||mxClient.IS_IE11?(this.layersDialog.style.backgroundColor="#ffffff",this.layersDialog.style.border="2px solid black",this.layersDialog.style.color="#000000"):(this.layersDialog.style.backgroundColor="#000000",this.layersDialog.style.color="#ffffff",mxUtils.setOpacity(this.layersDialog,80));T=mxUtils.getCurrentStyle(this.editor.graph.container);this.layersDialog.style.zIndex=
-T.zIndex;document.body.appendChild(this.layersDialog);this.editor.fireEvent(new mxEventObject("layersDialogShown"))}mxEvent.consume(O)}),Editor.layersImage,mxResources.get("layers")),N=b.getModel();N.addListener(mxEvent.CHANGE,function(){F.style.display=1<N.getChildCount(N.root)?"":"none"})}("1"!=urlParams.openInSameWin||navigator.standalone)&&this.addChromelessToolbarItems(p);null==this.editor.editButtonLink&&null==this.editor.editButtonFunc||p(mxUtils.bind(this,function(O){null!=this.editor.editButtonFunc?
+this.chromelessResize()}),!0);mxEvent.addListener(this.layersDialog,"mouseleave",mxUtils.bind(this,function(){this.layersDialog.parentNode.removeChild(this.layersDialog);this.layersDialog=null}));var S=F.getBoundingClientRect();mxUtils.setPrefixedStyle(this.layersDialog.style,"borderRadius","5px");this.layersDialog.style.position="fixed";this.layersDialog.style.fontFamily=Editor.defaultHtmlFont;this.layersDialog.style.width="160px";this.layersDialog.style.padding="4px 2px 4px 2px";this.layersDialog.style.left=
+S.left+"px";this.layersDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";mxClient.IS_IE||mxClient.IS_IE11?(this.layersDialog.style.backgroundColor="#ffffff",this.layersDialog.style.border="2px solid black",this.layersDialog.style.color="#000000"):(this.layersDialog.style.backgroundColor="#000000",this.layersDialog.style.color="#ffffff",mxUtils.setOpacity(this.layersDialog,80));S=mxUtils.getCurrentStyle(this.editor.graph.container);this.layersDialog.style.zIndex=
+S.zIndex;document.body.appendChild(this.layersDialog);this.editor.fireEvent(new mxEventObject("layersDialogShown"))}mxEvent.consume(O)}),Editor.layersImage,mxResources.get("layers")),N=b.getModel();N.addListener(mxEvent.CHANGE,function(){F.style.display=1<N.getChildCount(N.root)?"":"none"})}("1"!=urlParams.openInSameWin||navigator.standalone)&&this.addChromelessToolbarItems(p);null==this.editor.editButtonLink&&null==this.editor.editButtonFunc||p(mxUtils.bind(this,function(O){null!=this.editor.editButtonFunc?
this.editor.editButtonFunc():"_blank"==this.editor.editButtonLink?this.editor.editAsNew(this.getEditBlankXml()):b.openLink(this.editor.editButtonLink,"editWindow");mxEvent.consume(O)}),Editor.editImage,mxResources.get("edit"));if(null!=this.lightboxToolbarActions)for(c=0;c<this.lightboxToolbarActions.length;c++){var K=this.lightboxToolbarActions[c];K.elem=p(K.fn,K.icon,K.tooltip)}if(null!=u.refreshBtn){var J=null==u.refreshBtn.url?null:Graph.sanitizeLink(u.refreshBtn.url);p(mxUtils.bind(this,function(O){null!=
J?window.location.href=J:window.location.reload();mxEvent.consume(O)}),Editor.refreshImage,mxResources.get("refresh",null,"Refresh"))}null!=u.fullscreenBtn&&window.self!==window.top&&p(mxUtils.bind(this,function(O){u.fullscreenBtn.url?b.openLink(u.fullscreenBtn.url):b.openLink(window.location.href);mxEvent.consume(O)}),Editor.fullscreenImage,mxResources.get("openInNewWindow",null,"Open in New Window"));!u.noCloseBtn&&(u.closeBtn&&window.self===window.top||b.lightbox&&("1"==urlParams.close||this.container!=
document.body))&&p(mxUtils.bind(this,function(O){"1"==urlParams.close||u.closeBtn?window.close():(this.destroy(),mxEvent.consume(O))}),Editor.closeImage,mxResources.get("close")+" (Escape)");this.chromelessToolbar.style.display="none";b.isViewer()||mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transform","translate(-50%,0)");b.container.appendChild(this.chromelessToolbar);mxEvent.addListener(b.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(O){mxEvent.isTouchEvent(O)||
(mxEvent.isShiftDown(O)||C(30),z())}));mxEvent.addListener(this.chromelessToolbar,mxClient.IS_POINTER?"pointermove":"mousemove",function(O){mxEvent.consume(O)});mxEvent.addListener(this.chromelessToolbar,"mouseenter",mxUtils.bind(this,function(O){b.tooltipHandler.resetTimer();b.tooltipHandler.hideTooltip();mxEvent.isShiftDown(O)?z():C(100)}));mxEvent.addListener(this.chromelessToolbar,"mousemove",mxUtils.bind(this,function(O){mxEvent.isShiftDown(O)?z():C(100);mxEvent.consume(O)}));mxEvent.addListener(this.chromelessToolbar,
-"mouseleave",mxUtils.bind(this,function(O){mxEvent.isTouchEvent(O)||C(30)}));var da=b.getTolerance();b.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(O,T){this.startX=T.getGraphX();this.startY=T.getGraphY();this.scrollLeft=b.container.scrollLeft;this.scrollTop=b.container.scrollTop},mouseMove:function(O,T){},mouseUp:function(O,T){mxEvent.isTouchEvent(T.getEvent())&&Math.abs(this.scrollLeft-b.container.scrollLeft)<da&&Math.abs(this.scrollTop-b.container.scrollTop)<
-da&&Math.abs(this.startX-T.getGraphX())<da&&Math.abs(this.startY-T.getGraphY())<da&&(0<parseFloat(g.chromelessToolbar.style.opacity||0)?z():C(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var ea=b.view.validate,ca=new mxPoint,W=!1,ba=null;b.view.validate=function(){if(null!=b.container&&mxUtils.hasScrollbars(b.container)){if(null!=g.currentPage&&ba!=g.currentPage){ba=g.currentPage;W=!0;var O=b.getBoundingBoxFromGeometry(b.model.getCells(),!0,null,
-!0);null==O&&(O=new mxRectangle(b.view.translate.x*b.view.scale,b.view.translate.y*b.view.scale));O=b.getPageLayout(O,ca,1);var T=b.getDefaultTranslate(O);this.x0=O.x;this.y0=O.y;if(T.x!=this.translate.x||T.y!=this.translate.y)this.invalidate(),this.translate.x=T.x,this.translate.y=T.y}T=b.getPagePadding();var X=b.getPageSize();O=T.x-(this.x0||0)*X.width;T=T.y-(this.y0||0)*X.height;if(this.translate.x!=O||this.translate.y!=T)this.invalidate(),this.translate.x=O,this.translate.y=T}ea.apply(this,arguments)};
-if(!b.isViewer()){var ha=b.sizeDidChange;b.sizeDidChange=function(){var O=W;W=!1;if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var T=this.getPageLayout(),X=this.getDefaultTranslate(T),aa=this.view.translate.x,ja=this.view.translate.y;if(X.x!=aa||X.y!=ja){this.view.x0=T.x;this.view.y0=T.y;this.autoTranslate=!0;this.view.setTranslate(X.x,X.y);this.autoTranslate=!1;O||(this.container.scrollLeft+=Math.round((X.x-aa)*this.view.scale),this.container.scrollTop+=
+"mouseleave",mxUtils.bind(this,function(O){mxEvent.isTouchEvent(O)||C(30)}));var da=b.getTolerance();b.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(O,S){this.startX=S.getGraphX();this.startY=S.getGraphY();this.scrollLeft=b.container.scrollLeft;this.scrollTop=b.container.scrollTop},mouseMove:function(O,S){},mouseUp:function(O,S){mxEvent.isTouchEvent(S.getEvent())&&Math.abs(this.scrollLeft-b.container.scrollLeft)<da&&Math.abs(this.scrollTop-b.container.scrollTop)<
+da&&Math.abs(this.startX-S.getGraphX())<da&&Math.abs(this.startY-S.getGraphY())<da&&(0<parseFloat(g.chromelessToolbar.style.opacity||0)?z():C(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var ea=b.view.validate,ca=new mxPoint,W=!1,ba=null;b.view.validate=function(){if(null!=b.container&&mxUtils.hasScrollbars(b.container)){if(null!=g.currentPage&&ba!=g.currentPage){ba=g.currentPage;W=!0;var O=b.getBoundingBoxFromGeometry(b.model.getCells(),!0,null,
+!0);null==O&&(O=new mxRectangle(b.view.translate.x*b.view.scale,b.view.translate.y*b.view.scale));O=b.getPageLayout(O,ca,1);var S=b.getDefaultTranslate(O);this.x0=O.x;this.y0=O.y;if(S.x!=this.translate.x||S.y!=this.translate.y)this.invalidate(),this.translate.x=S.x,this.translate.y=S.y}S=b.getPagePadding();var X=b.getPageSize();O=S.x-(this.x0||0)*X.width;S=S.y-(this.y0||0)*X.height;if(this.translate.x!=O||this.translate.y!=S)this.invalidate(),this.translate.x=O,this.translate.y=S}ea.apply(this,arguments)};
+if(!b.isViewer()){var ha=b.sizeDidChange;b.sizeDidChange=function(){var O=W;W=!1;if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var S=this.getPageLayout(),X=this.getDefaultTranslate(S),aa=this.view.translate.x,ja=this.view.translate.y;if(X.x!=aa||X.y!=ja){this.view.x0=S.x;this.view.y0=S.y;this.autoTranslate=!0;this.view.setTranslate(X.x,X.y);this.autoTranslate=!1;O||(this.container.scrollLeft+=Math.round((X.x-aa)*this.view.scale),this.container.scrollTop+=
Math.round((X.y-ja)*this.view.scale));return}}ha.apply(this,arguments)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var la=b.view.getBackgroundPane(),Y=b.view.getDrawPane();b.cumulativeZoomFactor=1;var ma=null,Z=null,k=null,A=null,I=null,U=function(O){null!=ma&&window.clearTimeout(ma);0<=O&&window.setTimeout(function(){if(!b.isMouseDown||A)ma=window.setTimeout(mxUtils.bind(this,function(){b.isFastZoomEnabled()&&(null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node&&
(mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,"transform-origin",null),mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,"transform",null)),Y.style.transformOrigin="",la.style.transformOrigin="",mxClient.IS_SF?(Y.style.transform="scale(1)",la.style.transform="scale(1)",window.setTimeout(function(){Y.style.transform="";la.style.transform=""},0)):(Y.style.transform="",la.style.transform=""),b.view.getDecoratorPane().style.opacity="",b.view.getOverlayPane().style.opacity=
-"");var T=new mxPoint(b.container.scrollLeft,b.container.scrollTop),X=mxUtils.getOffset(b.container),aa=b.view.scale,ja=0,pa=0;null!=Z&&(ja=b.container.offsetWidth/2-Z.x+X.x,pa=b.container.offsetHeight/2-Z.y+X.y);b.zoom(b.cumulativeZoomFactor,null,b.isFastZoomEnabled()?20:null);b.view.scale!=aa&&(null!=k&&(ja+=T.x-k.x,pa+=T.y-k.y),null!=e&&g.chromelessResize(!1,null,ja*(b.cumulativeZoomFactor-1),pa*(b.cumulativeZoomFactor-1)),!mxUtils.hasScrollbars(b.container)||0==ja&&0==pa||(b.container.scrollLeft-=
-ja*(b.cumulativeZoomFactor-1),b.container.scrollTop-=pa*(b.cumulativeZoomFactor-1)));null!=I&&Y.setAttribute("filter",I);b.cumulativeZoomFactor=1;I=A=Z=k=ma=null}),null!=O?O:b.isFastZoomEnabled()?g.wheelZoomDelay:g.lazyZoomDelay)},0)};b.lazyZoom=function(O,T,X,aa){aa=null!=aa?aa:this.zoomFactor;(T=T||!b.scrollbars)&&(Z=new mxPoint(b.container.offsetLeft+b.container.clientWidth/2,b.container.offsetTop+b.container.clientHeight/2));O?.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=
+"");var S=new mxPoint(b.container.scrollLeft,b.container.scrollTop),X=mxUtils.getOffset(b.container),aa=b.view.scale,ja=0,pa=0;null!=Z&&(ja=b.container.offsetWidth/2-Z.x+X.x,pa=b.container.offsetHeight/2-Z.y+X.y);b.zoom(b.cumulativeZoomFactor,null,b.isFastZoomEnabled()?20:null);b.view.scale!=aa&&(null!=k&&(ja+=S.x-k.x,pa+=S.y-k.y),null!=e&&g.chromelessResize(!1,null,ja*(b.cumulativeZoomFactor-1),pa*(b.cumulativeZoomFactor-1)),!mxUtils.hasScrollbars(b.container)||0==ja&&0==pa||(b.container.scrollLeft-=
+ja*(b.cumulativeZoomFactor-1),b.container.scrollTop-=pa*(b.cumulativeZoomFactor-1)));null!=I&&Y.setAttribute("filter",I);b.cumulativeZoomFactor=1;I=A=Z=k=ma=null}),null!=O?O:b.isFastZoomEnabled()?g.wheelZoomDelay:g.lazyZoomDelay)},0)};b.lazyZoom=function(O,S,X,aa){aa=null!=aa?aa:this.zoomFactor;(S=S||!b.scrollbars)&&(Z=new mxPoint(b.container.offsetLeft+b.container.clientWidth/2,b.container.offsetTop+b.container.clientHeight/2));O?.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=
(this.view.scale+.05)/this.view.scale:(this.cumulativeZoomFactor*=aa,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale):.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale-.05)/this.view.scale:(this.cumulativeZoomFactor/=aa,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale);this.cumulativeZoomFactor=Math.max(.05,Math.min(this.view.scale*this.cumulativeZoomFactor,
-160))/this.view.scale;if(b.isFastZoomEnabled()){null==I&&""!=Y.getAttribute("filter")&&(I=Y.getAttribute("filter"),Y.removeAttribute("filter"));k=new mxPoint(b.container.scrollLeft,b.container.scrollTop);O=Math.round(Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100*20)/(20*this.view.scale);aa=T||null==Z?b.container.scrollLeft+b.container.clientWidth/2:Z.x+b.container.scrollLeft-b.container.offsetLeft;var ja=T||null==Z?b.container.scrollTop+b.container.clientHeight/2:Z.y+b.container.scrollTop-
-b.container.offsetTop;Y.style.transformOrigin=aa+"px "+ja+"px";Y.style.transform="scale("+O+")";la.style.transformOrigin=aa+"px "+ja+"px";la.style.transform="scale("+O+")";null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node?(aa=b.view.backgroundPageShape.node,mxUtils.setPrefixedStyle(aa.style,"transform-origin",(T||null==Z?b.container.clientWidth/2+b.container.scrollLeft-aa.offsetLeft+"px":Z.x+b.container.scrollLeft-aa.offsetLeft-b.container.offsetLeft+"px")+" "+(T||null==Z?b.container.clientHeight/
+160))/this.view.scale;if(b.isFastZoomEnabled()){null==I&&""!=Y.getAttribute("filter")&&(I=Y.getAttribute("filter"),Y.removeAttribute("filter"));k=new mxPoint(b.container.scrollLeft,b.container.scrollTop);O=Math.round(Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100*20)/(20*this.view.scale);aa=S||null==Z?b.container.scrollLeft+b.container.clientWidth/2:Z.x+b.container.scrollLeft-b.container.offsetLeft;var ja=S||null==Z?b.container.scrollTop+b.container.clientHeight/2:Z.y+b.container.scrollTop-
+b.container.offsetTop;Y.style.transformOrigin=aa+"px "+ja+"px";Y.style.transform="scale("+O+")";la.style.transformOrigin=aa+"px "+ja+"px";la.style.transform="scale("+O+")";null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node?(aa=b.view.backgroundPageShape.node,mxUtils.setPrefixedStyle(aa.style,"transform-origin",(S||null==Z?b.container.clientWidth/2+b.container.scrollLeft-aa.offsetLeft+"px":Z.x+b.container.scrollLeft-aa.offsetLeft-b.container.offsetLeft+"px")+" "+(S||null==Z?b.container.clientHeight/
2+b.container.scrollTop-aa.offsetTop+"px":Z.y+b.container.scrollTop-aa.offsetTop-b.container.offsetTop+"px")),mxUtils.setPrefixedStyle(aa.style,"transform","scale("+O+")")):b.view.validateBackgroundStyles(O,aa,ja);b.view.getDecoratorPane().style.opacity="0";b.view.getOverlayPane().style.opacity="0";null!=g.hoverIcons&&g.hoverIcons.reset();b.fireEvent(new mxEventObject("zoomPreview","factor",O))}U(b.isFastZoomEnabled()?X:0)};mxEvent.addGestureListeners(b.container,function(O){null!=ma&&window.clearTimeout(ma)},
-null,function(O){1!=b.cumulativeZoomFactor&&U(0)});mxEvent.addListener(b.container,"scroll",function(O){null==ma||b.isMouseDown||1==b.cumulativeZoomFactor||U(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(O,T,X,aa,ja){b.fireEvent(new mxEventObject("wheel"));if(null==this.dialogs||0==this.dialogs.length)if(!b.scrollbars&&!X&&b.isScrollWheelEvent(O))X=b.view.getTranslate(),aa=40/b.view.scale,mxEvent.isShiftDown(O)?b.view.setTranslate(X.x+(T?-aa:aa),X.y):b.view.setTranslate(X.x,X.y+(T?
-aa:-aa));else if(X||b.isZoomWheelEvent(O))for(var pa=mxEvent.getSource(O);null!=pa;){if(pa==b.container)return b.tooltipHandler.hideTooltip(),Z=null!=aa&&null!=ja?new mxPoint(aa,ja):new mxPoint(mxEvent.getClientX(O),mxEvent.getClientY(O)),A=X,X=b.zoomFactor,aa=null,O.ctrlKey&&null!=O.deltaY&&40>Math.abs(O.deltaY)&&Math.round(O.deltaY)!=O.deltaY?X=1+Math.abs(O.deltaY)/20*(X-1):null!=O.movementY&&"pointermove"==O.type&&(X=1+Math.max(1,Math.abs(O.movementY))/20*(X-1),aa=-1),b.lazyZoom(T,null,aa,X),mxEvent.consume(O),
+null,function(O){1!=b.cumulativeZoomFactor&&U(0)});mxEvent.addListener(b.container,"scroll",function(O){null==ma||b.isMouseDown||1==b.cumulativeZoomFactor||U(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(O,S,X,aa,ja){b.fireEvent(new mxEventObject("wheel"));if(null==this.dialogs||0==this.dialogs.length)if(!b.scrollbars&&!X&&b.isScrollWheelEvent(O))X=b.view.getTranslate(),aa=40/b.view.scale,mxEvent.isShiftDown(O)?b.view.setTranslate(X.x+(S?-aa:aa),X.y):b.view.setTranslate(X.x,X.y+(S?
+aa:-aa));else if(X||b.isZoomWheelEvent(O))for(var pa=mxEvent.getSource(O);null!=pa;){if(pa==b.container)return b.tooltipHandler.hideTooltip(),Z=null!=aa&&null!=ja?new mxPoint(aa,ja):new mxPoint(mxEvent.getClientX(O),mxEvent.getClientY(O)),A=X,X=b.zoomFactor,aa=null,O.ctrlKey&&null!=O.deltaY&&40>Math.abs(O.deltaY)&&Math.round(O.deltaY)!=O.deltaY?X=1+Math.abs(O.deltaY)/20*(X-1):null!=O.movementY&&"pointermove"==O.type&&(X=1+Math.max(1,Math.abs(O.movementY))/20*(X-1),aa=-1),b.lazyZoom(S,null,aa,X),mxEvent.consume(O),
!1;pa=pa.parentNode}}),b.container);b.panningHandler.zoomGraph=function(O){b.cumulativeZoomFactor=O.scale;b.lazyZoom(0<O.scale,!0);mxEvent.consume(O)}};EditorUi.prototype.addChromelessToolbarItems=function(b){b(mxUtils.bind(this,function(e){this.actions.get("print").funct();mxEvent.consume(e)}),Editor.printImage,mxResources.get("print"))};EditorUi.prototype.isPagesEnabled=function(){return this.editor.editable||"1"!=urlParams["hide-pages"]};EditorUi.prototype.createTemporaryGraph=function(b){return Graph.createOffscreenGraph(b)};
EditorUi.prototype.addChromelessClickHandler=function(){var b=urlParams.highlight;null!=b&&0<b.length&&(b="#"+b);this.editor.graph.addClickHandler(b)};EditorUi.prototype.toggleFormatPanel=function(b){b=null!=b?b:0==this.formatWidth;null!=this.format&&(this.formatWidth=b?240:0,this.formatContainer.style.width=this.formatWidth+"px",this.refresh(),this.format.refresh(),this.fireEvent(new mxEventObject("formatWidthChanged")))};EditorUi.prototype.isFormatPanelVisible=function(){return 0<this.formatWidth};
EditorUi.prototype.lightboxFit=function(b){if(this.isDiagramEmpty())this.editor.graph.view.setScale(1);else{var e=urlParams.border,g=60;null!=e&&(g=parseInt(e));this.editor.graph.maxFitScale=this.lightboxMaxFitScale;this.editor.graph.fit(g,null,null,null,null,null,b);this.editor.graph.maxFitScale=null}};EditorUi.prototype.isDiagramEmpty=function(){var b=this.editor.graph.getModel();return 1==b.getChildCount(b.root)&&0==b.getChildCount(b.getChildAt(b.root,0))};
@@ -2177,7 +2177,7 @@ e.scrollTop=Math.floor(Math.max(0,g.y-Math.max(20,(e.clientHeight-m)/4)))}else{g
EditorUi.prototype.setPageVisible=function(b){var e=this.editor.graph,g=mxUtils.hasScrollbars(e.container),m=0,u=0;g&&(m=e.view.translate.x*e.view.scale-e.container.scrollLeft,u=e.view.translate.y*e.view.scale-e.container.scrollTop);e.pageVisible=b;e.pageBreaksVisible=b;e.preferPageSize=b;e.view.validateBackground();if(g){var p=e.getSelectionCells();e.clearSelection();e.setSelectionCells(p)}e.sizeDidChange();g&&(e.container.scrollLeft=e.view.translate.x*e.view.scale-m,e.container.scrollTop=e.view.translate.y*
e.view.scale-u);e.defaultPageVisible=b;this.fireEvent(new mxEventObject("pageViewChanged"))};
EditorUi.prototype.installResizeHandler=function(b,e,g){e&&(b.window.setSize=function(u,p){if(!this.minimized){var B=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;u=Math.min(u,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.getX());p=Math.min(p,B-this.getY())}mxWindow.prototype.setSize.apply(this,arguments)});b.window.setLocation=function(u,p){var B=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth,
-H=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,S=parseInt(this.div.style.width),G=parseInt(this.div.style.height);u=Math.max(0,Math.min(u,B-S));p=Math.max(0,Math.min(p,H-G));this.getX()==u&&this.getY()==p||mxWindow.prototype.setLocation.apply(this,arguments);e&&!this.minimized&&this.setSize(S,G)};var m=mxUtils.bind(this,function(){var u=b.window.getX(),p=b.window.getY();b.window.setLocation(u,p)});mxEvent.addListener(window,"resize",m);b.destroy=function(){mxEvent.removeListener(window,
+H=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,T=parseInt(this.div.style.width),G=parseInt(this.div.style.height);u=Math.max(0,Math.min(u,B-T));p=Math.max(0,Math.min(p,H-G));this.getX()==u&&this.getY()==p||mxWindow.prototype.setLocation.apply(this,arguments);e&&!this.minimized&&this.setSize(T,G)};var m=mxUtils.bind(this,function(){var u=b.window.getX(),p=b.window.getY();b.window.setLocation(u,p)});mxEvent.addListener(window,"resize",m);b.destroy=function(){mxEvent.removeListener(window,
"resize",m);b.window.destroy();null!=g&&g()}};function ChangeGridColor(b,e){this.ui=b;this.color=e}ChangeGridColor.prototype.execute=function(){var b=this.ui.editor.graph.view.gridColor;this.ui.setGridColor(this.color);this.color=b};(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);mxCodecRegistry.register(b)})();
function ChangePageSetup(b,e,g,m,u){this.ui=b;this.previousColor=this.color=e;this.previousImage=this.image=g;this.previousFormat=this.format=m;this.previousPageScale=this.pageScale=u;this.ignoreImage=this.ignoreColor=!1}
ChangePageSetup.prototype.execute=function(){var b=this.ui.editor.graph;if(!this.ignoreColor){this.color=this.previousColor;var e=b.background;this.ui.setBackgroundColor(this.previousColor);this.previousColor=e}if(!this.ignoreImage){this.image=this.previousImage;e=b.backgroundImage;var g=this.previousImage;null!=g&&Graph.isPageLink(g.src)&&(g=this.ui.createImageForPageLink(g.src,this.ui.currentPage));this.ui.setBackgroundImage(g);this.previousImage=e}null!=this.previousFormat&&(this.format=this.previousFormat,
@@ -2213,22 +2213,22 @@ EditorUi.prototype.setStatusText=function(b){this.statusContainer.innerHTML=Grap
"transition","all 0.2s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(g,100);mxUtils.setPrefixedStyle(g.style,"transform","scaleX(1)");mxUtils.setPrefixedStyle(g.style,"transition","all 1s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(g.style,"transform","scaleX(0)");mxUtils.setOpacity(g,0);window.setTimeout(mxUtils.bind(this,function(){null!=g.parentNode&&g.parentNode.removeChild(g)}),1E3)}),Editor.updateStatusInterval/2)}),0)})(b[e])};
EditorUi.prototype.createStatusDiv=function(b){var e=document.createElement("div");e.style.textOverflow="ellipsis";e.style.display="inline-block";e.style.whiteSpace="nowrap";e.style.overflow="hidden";e.style.minWidth="0";e.setAttribute("title",b);e.innerHTML=Graph.sanitizeHtml(b);return e};EditorUi.prototype.createToolbar=function(b){return new Toolbar(this,b)};EditorUi.prototype.createSidebar=function(b){return new Sidebar(this,b)};
EditorUi.prototype.createFormat=function(b){return new Format(this,b)};EditorUi.prototype.createFooter=function(){return this.createDiv("geFooter")};EditorUi.prototype.createDiv=function(b){var e=document.createElement("div");e.className=b;return e};
-EditorUi.prototype.addSplitHandler=function(b,e,g,m){function u(R){if(null!=B){var c=new mxPoint(mxEvent.getClientX(R),mxEvent.getClientY(R));m(Math.max(0,H+(e?c.x-B.x:B.y-c.y)-g));mxEvent.consume(R);H!=P()&&(S=!0,G=null)}}function p(R){u(R);B=H=null}var B=null,H=null,S=!0,G=null;mxClient.IS_POINTER&&(b.style.touchAction="none");var P=mxUtils.bind(this,function(){var R=parseInt(e?b.style.left:b.style.bottom);e||(R=R+g-this.footerHeight);return R});mxEvent.addGestureListeners(b,function(R){B=new mxPoint(mxEvent.getClientX(R),
-mxEvent.getClientY(R));H=P();S=!1;mxEvent.consume(R)});mxEvent.addListener(b,"click",mxUtils.bind(this,function(R){if(!S&&this.hsplitClickEnabled){var c=null!=G?G-g:0;G=P();m(c);mxEvent.consume(R)}}));mxEvent.addGestureListeners(document,null,u,p);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,u,p)})};
+EditorUi.prototype.addSplitHandler=function(b,e,g,m){function u(R){if(null!=B){var c=new mxPoint(mxEvent.getClientX(R),mxEvent.getClientY(R));m(Math.max(0,H+(e?c.x-B.x:B.y-c.y)-g));mxEvent.consume(R);H!=P()&&(T=!0,G=null)}}function p(R){u(R);B=H=null}var B=null,H=null,T=!0,G=null;mxClient.IS_POINTER&&(b.style.touchAction="none");var P=mxUtils.bind(this,function(){var R=parseInt(e?b.style.left:b.style.bottom);e||(R=R+g-this.footerHeight);return R});mxEvent.addGestureListeners(b,function(R){B=new mxPoint(mxEvent.getClientX(R),
+mxEvent.getClientY(R));H=P();T=!1;mxEvent.consume(R)});mxEvent.addListener(b,"click",mxUtils.bind(this,function(R){if(!T&&this.hsplitClickEnabled){var c=null!=G?G-g:0;G=P();m(c);mxEvent.consume(R)}}));mxEvent.addGestureListeners(document,null,u,p);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,u,p)})};
EditorUi.prototype.prompt=function(b,e,g){b=new FilenameDialog(this,e,mxResources.get("apply"),function(m){g(parseFloat(m))},b);this.showDialog(b.container,300,80,!0,!0);b.init()};
EditorUi.prototype.handleError=function(b,e,g,m,u){b=null!=b&&null!=b.error?b.error:b;if(null!=b||null!=e){u=mxUtils.htmlEntities(mxResources.get("unknownError"));var p=mxResources.get("ok");e=null!=e?e:mxResources.get("error");null!=b&&null!=b.message&&(u=mxUtils.htmlEntities(b.message));this.showError(e,u,p,g,null,null,null,null,null,null,null,null,m?g:null)}else null!=g&&g()};
-EditorUi.prototype.showError=function(b,e,g,m,u,p,B,H,S,G,P,R,c){b=new ErrorDialog(this,b,e,g||mxResources.get("ok"),m,u,p,B,R,H,S);e=Math.ceil(null!=e?e.length/50:1);this.showDialog(b.container,G||340,P||100+20*e,!0,!1,c);b.init()};EditorUi.prototype.showDialog=function(b,e,g,m,u,p,B,H,S,G){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,b,e,g,m,u,p,B,H,S,G);this.dialogs.push(this.dialog)};
+EditorUi.prototype.showError=function(b,e,g,m,u,p,B,H,T,G,P,R,c){b=new ErrorDialog(this,b,e,g||mxResources.get("ok"),m,u,p,B,R,H,T);e=Math.ceil(null!=e?e.length/50:1);this.showDialog(b.container,G||340,P||100+20*e,!0,!1,c);b.init()};EditorUi.prototype.showDialog=function(b,e,g,m,u,p,B,H,T,G){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,b,e,g,m,u,p,B,H,T,G);this.dialogs.push(this.dialog)};
EditorUi.prototype.hideDialog=function(b,e,g){var m=null;if(null!=this.dialogs&&0<this.dialogs.length)for(var u=this.dialogs.length-1;0<=u;u--)if(!this.dialogs[u].closing){m=this.dialogs[u];break}null==m||null!=g&&g!=this.dialog.container.firstChild||(m.closing=!0,0==m.close(b,e)?delete m.closing:(delete m.closing,b=mxUtils.lastIndexOf(this.dialogs,m),0<=b&&this.dialogs.splice(b,1),this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog",
"dialog",m)),null==this.dialog&&null!=this.editor.graph.container&&"hidden"!=this.editor.graph.container.style.visibility&&window.setTimeout(mxUtils.bind(this,function(){null==this.editor||null!=this.dialogs&&0!=this.dialogs.length||(this.editor.graph.isEditing()&&null!=this.editor.graph.cellEditor.textarea?this.editor.graph.cellEditor.textarea.focus():(mxUtils.clearSelection(),this.editor.graph.container.focus()))}),0)))};
EditorUi.prototype.ctrlEnter=function(){var b=this.editor.graph;if(b.isEnabled())try{for(var e=b.getSelectionCells(),g=new mxDictionary,m=[],u=0;u<e.length;u++){var p=b.isTableCell(e[u])?b.model.getParent(e[u]):e[u];null==p||g.get(p)||(g.put(p,!0),m.push(p))}b.setSelectionCells(b.duplicateCells(m,!1))}catch(B){this.handleError(B)}};
-EditorUi.prototype.pickColor=function(b,e,g,m,u){var p=this.editor.graph,B=p.cellEditor.saveSelection(),H=(u?240:290)+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));b=new ColorDialog(this,b,function(S){p.cellEditor.restoreSelection(B);e(S)},function(){p.cellEditor.restoreSelection(B)},g,m,u);this.showDialog(b.container,230,H,!0,!1);b.init()};
+EditorUi.prototype.pickColor=function(b,e,g,m,u){var p=this.editor.graph,B=p.cellEditor.saveSelection(),H=(u?240:290)+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));b=new ColorDialog(this,b,function(T){p.cellEditor.restoreSelection(B);e(T)},function(){p.cellEditor.restoreSelection(B)},g,m,u);this.showDialog(b.container,230,H,!0,!1);b.init()};
EditorUi.prototype.openFile=function(){window.openFile=new OpenFile(mxUtils.bind(this,function(b){this.hideDialog(b)}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:320,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null})};
-EditorUi.prototype.base64ToBlob=function(b,e){e=e||"";b=atob(b);for(var g=b.length,m=Math.ceil(g/1024),u=Array(m),p=0;p<m;++p){for(var B=1024*p,H=Math.min(B+1024,g),S=Array(H-B),G=0;B<H;++G,++B)S[G]=b[B].charCodeAt(0);u[p]=new Uint8Array(S)}return new Blob(u,{type:e})};
+EditorUi.prototype.base64ToBlob=function(b,e){e=e||"";b=atob(b);for(var g=b.length,m=Math.ceil(g/1024),u=Array(m),p=0;p<m;++p){for(var B=1024*p,H=Math.min(B+1024,g),T=Array(H-B),G=0;B<H;++G,++B)T[G]=b[B].charCodeAt(0);u[p]=new Uint8Array(T)}return new Blob(u,{type:e})};
EditorUi.prototype.writeImageToClipboard=function(b,e,g,m){var u=this.base64ToBlob(b.substring(b.indexOf(",")+1),"image/png");b=new ClipboardItem({"image/png":u,"text/html":new Blob(['<img src="'+b+'" width="'+e+'" height="'+g+'">'],{type:"text/html"})});navigator.clipboard.write([b])["catch"](m)};EditorUi.prototype.writeHtmlToClipboard=function(b,e){b=new ClipboardItem({"text/plain":new Blob([Editor.convertHtmlToText(b)],{type:"text/plain"}),"text/html":new Blob([b],{type:"text/html"})});navigator.clipboard.write([b])["catch"](e)};
EditorUi.prototype.writeTextToClipboard=function(b,e){navigator.clipboard.writeText(b)["catch"](e)};EditorUi.prototype.extractGraphModelFromHtml=function(b){var e=null;try{var g=b.indexOf("&lt;mxGraphModel ");if(0<=g){var m=b.lastIndexOf("&lt;/mxGraphModel&gt;");m>g&&(e=b.substring(g,m+21).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}}catch(u){}return e};
EditorUi.prototype.readGraphModelFromClipboard=function(b){this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(e){null!=e?b(e):this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(g){if(null!=g){var m=decodeURIComponent(g);this.isCompatibleString(m)&&(g=m)}b(g)}),"text")}),"html")};
EditorUi.prototype.readGraphModelFromClipboardWithType=function(b,e){navigator.clipboard.read().then(mxUtils.bind(this,function(g){if(null!=g&&0<g.length&&"html"==e&&0<=mxUtils.indexOf(g[0].types,"text/html"))g[0].getType("text/html").then(mxUtils.bind(this,function(m){m.text().then(mxUtils.bind(this,function(u){try{var p=this.parseHtmlData(u),B="text/plain"!=p.getAttribute("data-type")?p.innerHTML:mxUtils.trim(null==p.innerText?mxUtils.getTextContent(p):p.innerText);try{var H=B.lastIndexOf("%3E");
-0<=H&&H<B.length-3&&(B=B.substring(0,H+3))}catch(P){}try{var S=p.getElementsByTagName("span"),G=null!=S&&0<S.length?mxUtils.trim(decodeURIComponent(S[0].textContent)):decodeURIComponent(B);this.isCompatibleString(G)&&(B=G)}catch(P){}}catch(P){}b(this.isCompatibleString(B)?B:null)}))["catch"](function(u){b(null)})}))["catch"](function(m){b(null)});else if(null!=g&&0<g.length&&"text"==e&&0<=mxUtils.indexOf(g[0].types,"text/plain"))g[0].getType("text/plain").then(function(m){m.text().then(function(u){b(u)})["catch"](function(){b(null)})})["catch"](function(){b(null)});
+0<=H&&H<B.length-3&&(B=B.substring(0,H+3))}catch(P){}try{var T=p.getElementsByTagName("span"),G=null!=T&&0<T.length?mxUtils.trim(decodeURIComponent(T[0].textContent)):decodeURIComponent(B);this.isCompatibleString(G)&&(B=G)}catch(P){}}catch(P){}b(this.isCompatibleString(B)?B:null)}))["catch"](function(u){b(null)})}))["catch"](function(m){b(null)});else if(null!=g&&0<g.length&&"text"==e&&0<=mxUtils.indexOf(g[0].types,"text/plain"))g[0].getType("text/plain").then(function(m){m.text().then(function(u){b(u)})["catch"](function(){b(null)})})["catch"](function(){b(null)});
else b(null)}))["catch"](function(g){b(null)})};
EditorUi.prototype.parseHtmlData=function(b){var e=null;if(null!=b&&0<b.length){var g="<meta "==b.substring(0,6);e=document.createElement("div");e.innerHTML=(g?'<meta charset="utf-8">':"")+Graph.sanitizeHtml(b);asHtml=!0;b=e.getElementsByTagName("style");if(null!=b)for(;0<b.length;)b[0].parentNode.removeChild(b[0]);null!=e.firstChild&&e.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=e.firstChild.nextSibling&&e.firstChild.nextSibling.nodeType==mxConstants.NODETYPE_ELEMENT&&"META"==e.firstChild.nodeName&&
"A"==e.firstChild.nextSibling.nodeName&&null==e.firstChild.nextSibling.nextSibling&&(b=null==e.firstChild.nextSibling.innerText?mxUtils.getTextContent(e.firstChild.nextSibling):e.firstChild.nextSibling.innerText,b==e.firstChild.nextSibling.getAttribute("href")&&(mxUtils.setTextContent(e,b),asHtml=!1));g=g&&null!=e.firstChild?e.firstChild.nextSibling:e.firstChild;null!=g&&null==g.nextSibling&&g.nodeType==mxConstants.NODETYPE_ELEMENT&&"IMG"==g.nodeName?(b=g.getAttribute("src"),null!=b&&(Editor.isPngDataUrl(b)&&
@@ -2248,9 +2248,9 @@ EditorUi.prototype.createKeyHandler=function(b){function e(R,c,f){if(!m.isSelect
z))}}finally{m.getModel().endUpdate()}}else{z=m.model.getParent(t);var C=m.getView().scale;f=null;1==m.getSelectionCount()&&m.model.isVertex(t)&&null!=m.layoutManager&&!m.isCellLocked(t)&&(f=m.layoutManager.getLayout(z));if(null!=f&&f.constructor==mxStackLayout)c=z.getIndex(t),37==R||38==R?m.model.add(z,t,Math.max(0,c-1)):(39==R||40==R)&&m.model.add(z,t,Math.min(m.model.getChildCount(z),c+1));else{var F=m.graphHandler;null!=F&&(null==F.first&&F.start(t,0,0,m.getMovableCells(l)),null!=F.first&&(t=
l=0,37==R?l=-c:38==R?t=-c:39==R?l=c:40==R&&(t=c),F.currentDx+=l*C,F.currentDy+=t*C,F.checkPreview(),F.updatePreview()),null!=B&&window.clearTimeout(B),B=window.setTimeout(function(){if(null!=F.first){var N=F.roundLength(F.currentDx/C),K=F.roundLength(F.currentDy/C);F.moveCells(F.cells,N,K);F.reset()}},400))}}}}var g=this,m=this.editor.graph,u=new mxKeyHandler(m),p=u.isEventIgnored;u.isEventIgnored=function(R){return!(mxEvent.isShiftDown(R)&&9==R.keyCode)&&(!this.isControlDown(R)||mxEvent.isShiftDown(R)||
90!=R.keyCode&&89!=R.keyCode&&188!=R.keyCode&&190!=R.keyCode&&85!=R.keyCode&&83!=R.keyCode)&&(66!=R.keyCode&&73!=R.keyCode||!this.isControlDown(R)||this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&(109!=R.keyCode&&107!=R.keyCode||!this.isControlDown(R)&&!mxEvent.isShiftDown(R)||!this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&p.apply(this,arguments)};u.isEnabledForEvent=function(R){return!mxEvent.isConsumed(R)&&this.isGraphEvent(R)&&this.isEnabled()&&
-(null==g.dialogs||0==g.dialogs.length)};u.isControlDown=function(R){return mxEvent.isControlDown(R)||mxClient.IS_MAC&&R.metaKey};var B=null,H={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},S=u.getFunction;mxKeyHandler.prototype.getFunction=function(R){if(m.isEnabled()){var c=null;mxEvent.isShiftDown(R)&&this.isControlDown(R)&&mxEvent.isAltDown(R)?c=g.actions.get(g.ctrlAltShiftActions[R.keyCode]):mxEvent.isShiftDown(R)&&mxEvent.isAltDown(R)?
+(null==g.dialogs||0==g.dialogs.length)};u.isControlDown=function(R){return mxEvent.isControlDown(R)||mxClient.IS_MAC&&R.metaKey};var B=null,H={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},T=u.getFunction;mxKeyHandler.prototype.getFunction=function(R){if(m.isEnabled()){var c=null;mxEvent.isShiftDown(R)&&this.isControlDown(R)&&mxEvent.isAltDown(R)?c=g.actions.get(g.ctrlAltShiftActions[R.keyCode]):mxEvent.isShiftDown(R)&&mxEvent.isAltDown(R)?
c=g.actions.get(g.altShiftActions[R.keyCode]):this.isControlDown(R)&&mxEvent.isAltDown(R)&&(c=g.actions.get(g.ctrlAltActions[R.keyCode]));if(null!=c)return c.funct;if(null!=H[R.keyCode]&&!m.isSelectionEmpty())if(!this.isControlDown(R)&&mxEvent.isShiftDown(R)&&mxEvent.isAltDown(R)){if(m.model.isVertex(m.getSelectionCell()))return function(){var f=m.connectVertex(m.getSelectionCell(),H[R.keyCode],m.defaultEdgeLength,R,!0);null!=f&&0<f.length&&(1==f.length&&m.model.isEdge(f[0])?m.setSelectionCell(m.model.getTerminal(f[0],
-!1)):m.setSelectionCell(f[f.length-1]),m.scrollCellToVisible(m.getSelectionCell()),null!=g.hoverIcons&&g.hoverIcons.update(m.view.getState(m.getSelectionCell())))}}else return this.isControlDown(R)?function(){e(R.keyCode,mxEvent.isShiftDown(R)?m.gridSize:null,!0)}:function(){e(R.keyCode,mxEvent.isShiftDown(R)?m.gridSize:null)}}return S.apply(this,arguments)};u.bindAction=mxUtils.bind(this,function(R,c,f,l){var t=this.actions.get(f);null!=t&&(f=function(){t.isEnabled()&&t.funct.apply(this,arguments)},
+!1)):m.setSelectionCell(f[f.length-1]),m.scrollCellToVisible(m.getSelectionCell()),null!=g.hoverIcons&&g.hoverIcons.update(m.view.getState(m.getSelectionCell())))}}else return this.isControlDown(R)?function(){e(R.keyCode,mxEvent.isShiftDown(R)?m.gridSize:null,!0)}:function(){e(R.keyCode,mxEvent.isShiftDown(R)?m.gridSize:null)}}return T.apply(this,arguments)};u.bindAction=mxUtils.bind(this,function(R,c,f,l){var t=this.actions.get(f);null!=t&&(f=function(){t.isEnabled()&&t.funct.apply(this,arguments)},
c?l?u.bindControlShiftKey(R,f):u.bindControlKey(R,f):l?u.bindShiftKey(R,f):u.bindKey(R,f))});var G=this,P=u.escape;u.escape=function(R){P.apply(this,arguments)};u.enter=function(){};u.bindControlShiftKey(36,function(){m.exitGroup()});u.bindControlShiftKey(35,function(){m.enterGroup()});u.bindShiftKey(36,function(){m.home()});u.bindKey(35,function(){m.refresh()});u.bindAction(80,!0,"print");u.bindAction(107,!0,"zoomIn");u.bindAction(109,!0,"zoomOut");u.bindAction(61,!0,"zoomIn");u.bindAction(187,!0,
"zoomIn");u.bindAction(222,!0,"zoomIn");u.bindAction(173,!0,"zoomOut");u.bindAction(189,!0,"zoomOut");if(!this.editor.chromeless||this.editor.editable)u.bindAction(79,!0,"outline",!0),u.bindControlKey(36,function(){m.isEnabled()&&m.foldCells(!0)}),u.bindControlKey(35,function(){m.isEnabled()&&m.foldCells(!1)}),u.bindControlKey(13,function(){G.ctrlEnter()}),u.bindAction(8,!1,"delete"),u.bindAction(8,!0,"deleteAll"),u.bindAction(8,!1,"deleteLabels",!0),u.bindAction(46,!1,"delete"),u.bindAction(46,!0,
"deleteAll"),u.bindAction(46,!1,"deleteLabels",!0),u.bindAction(36,!1,"resetView"),u.bindAction(72,!0,"fitWindow",!0),u.bindAction(74,!0,"fitPage"),u.bindAction(74,!0,"fitTwoPages",!0),u.bindAction(48,!0,"customZoom"),u.bindAction(82,!0,"turn"),u.bindAction(82,!0,"clearDefaultStyle",!0),u.bindAction(83,!0,"save"),u.bindAction(83,!0,"saveAs",!0),u.bindAction(65,!0,"selectAll"),u.bindAction(65,!0,"selectNone",!0),u.bindAction(73,!0,"selectVertices",!0),u.bindAction(69,!0,"selectEdges",!0),u.bindAction(69,
@@ -2264,34 +2264,34 @@ null);null!=this.gestureHandler&&(mxEvent.removeGestureListeners(document,this.g
null}var e=[this.menubarContainer,this.toolbarContainer,this.sidebarContainer,this.formatContainer,this.diagramContainer,this.footerContainer,this.chromelessToolbar,this.hsplit,this.layersDialog];for(b=0;b<e.length;b++)null!=e[b]&&null!=e[b].parentNode&&e[b].parentNode.removeChild(e[b])};(function(){var b=[["nbsp","160"],["shy","173"]],e=mxUtils.parseXml;mxUtils.parseXml=function(m){for(var u=0;u<b.length;u++)m=m.replace(new RegExp("&"+b[u][0]+";","g"),"&#"+b[u][1]+";");return e(m)};var g=mxUtils.getSizeForString;mxUtils.getSizeForString=function(m,u,p,B){return g(Graph.sanitizeHtml(m),u,p,B)}})();
Date.prototype.toISOString||function(){function b(e){e=String(e);1===e.length&&(e="0"+e);return e}Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+b(this.getUTCMonth()+1)+"-"+b(this.getUTCDate())+"T"+b(this.getUTCHours())+":"+b(this.getUTCMinutes())+":"+b(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1E3).toFixed(3)).slice(2,5)+"Z"}}();Date.now||(Date.now=function(){return(new Date).getTime()});
Uint8Array.from||(Uint8Array.from=function(){var b=Object.prototype.toString,e=function(m){return"function"===typeof m||"[object Function]"===b.call(m)},g=Math.pow(2,53)-1;return function(m){var u=Object(m);if(null==m)throw new TypeError("Array.from requires an array-like object - not null or undefined");var p=1<arguments.length?arguments[1]:void 0,B;if("undefined"!==typeof p){if(!e(p))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(B=
-arguments[2])}var H=Number(u.length);H=isNaN(H)?0:0!==H&&isFinite(H)?(0<H?1:-1)*Math.floor(Math.abs(H)):H;H=Math.min(Math.max(H,0),g);for(var S=e(this)?Object(new this(H)):Array(H),G=0,P;G<H;)P=u[G],S[G]=p?"undefined"===typeof B?p(P,G):p.call(B,P,G):P,G+=1;S.length=H;return S}}());mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";mxConstants.VML_SHADOWCOLOR="#d0d0d0";mxCodec.allowlist="mxStylesheet Array mxGraphModel mxCell mxGeometry mxRectangle mxPoint mxChildChange mxRootChange mxTerminalChange mxValueChange mxStyleChange mxGeometryChange mxCollapseChange mxVisibleChange mxCellAttributeChange".split(" ");
+arguments[2])}var H=Number(u.length);H=isNaN(H)?0:0!==H&&isFinite(H)?(0<H?1:-1)*Math.floor(Math.abs(H)):H;H=Math.min(Math.max(H,0),g);for(var T=e(this)?Object(new this(H)):Array(H),G=0,P;G<H;)P=u[G],T[G]=p?"undefined"===typeof B?p(P,G):p.call(B,P,G):P,G+=1;T.length=H;return T}}());mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";mxConstants.VML_SHADOWCOLOR="#d0d0d0";mxCodec.allowlist="mxStylesheet Array mxGraphModel mxCell mxGeometry mxRectangle mxPoint mxChildChange mxRootChange mxTerminalChange mxValueChange mxStyleChange mxGeometryChange mxCollapseChange mxVisibleChange mxCellAttributeChange".split(" ");
mxGraph.prototype.pageBreakColor="#c0c0c0";mxGraph.prototype.pageScale=1;(function(){try{if(null!=navigator&&null!=navigator.language){var b=navigator.language.toLowerCase();mxGraph.prototype.pageFormat="en-us"===b||"en-ca"===b||"es-mx"===b?mxConstants.PAGE_FORMAT_LETTER_PORTRAIT:mxConstants.PAGE_FORMAT_A4_PORTRAIT}}catch(e){}})();mxText.prototype.baseSpacingTop=5;mxText.prototype.baseSpacingBottom=1;mxGraphModel.prototype.ignoreRelativeEdgeParent=!1;
mxGraphView.prototype.gridImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhCgAKAJEAAAAAAP///8zMzP///yH5BAEAAAMALAAAAAAKAAoAAAIJ1I6py+0Po2wFADs=":IMAGE_PATH+"/grid.gif";mxGraphView.prototype.gridSteps=4;mxGraphView.prototype.minGridSize=4;mxGraphView.prototype.defaultGridColor="#d0d0d0";mxGraphView.prototype.defaultDarkGridColor="#424242";mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultGridColor;mxGraphView.prototype.unit=mxConstants.POINTS;
mxGraphView.prototype.setUnit=function(b){this.unit!=b&&(this.unit=b,this.graph.refresh(),this.fireEvent(new mxEventObject("unitChanged","unit",b)))};mxSvgCanvas2D.prototype.foAltText="[Not supported by viewer]";mxShape.prototype.getConstraints=function(b,e,g){return null};
mxImageShape.prototype.getImageDataUri=function(){var b=String(this.image);if("data:image/svg+xml;base64,"==b.substring(0,26)&&null!=this.style&&"1"==mxUtils.getValue(this.style,"clipSvg","0")){if(null==this.clippedSvg||this.clippedImage!=b)this.clippedSvg=Graph.clipSvgDataUri(b),this.clippedImage=b;b=this.clippedSvg}return b};
(function(){var b=mxStencil.prototype.parseColor;mxStencil.prototype.parseColor=function(e,g,m,u,p){return"default"==u&&null!=p?"fillcolor"==m.nodeName?p.shapeBackgroundColor:p.shapeForegroundColor:b.apply(this,arguments)}})();(function(){var b=mxResources.get;mxResources.get=function(e,g,m){null==m&&(m=e);return b.apply(this,[e,g,m])}})();
-(function(){var b=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(e,g,m,u,p,B,H,S){var G=b.apply(this,arguments);if(null!=g){var P=G.getElementsByTagName("img");0<P.length&&(P[0].className="geToolbarButton geAdaptiveAsset",P[0].style.margin="4px",P[0].style.width="18px")}return G}})();
+(function(){var b=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(e,g,m,u,p,B,H,T){var G=b.apply(this,arguments);if(null!=g){var P=G.getElementsByTagName("img");0<P.length&&(P[0].className="geToolbarButton geAdaptiveAsset",P[0].style.margin="4px",P[0].style.width="18px")}return G}})();
Graph=function(b,e,g,m,u,p){mxGraph.call(this,b,e,g,m);this.themes=u||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=p?p:!1;b=this.baseUrl;e=b.indexOf("//");this.domainPathUrl=this.domainUrl="";0<e&&(e=b.indexOf("/",e+2),0<e&&(this.domainUrl=b.substring(0,e)),e=b.lastIndexOf("/"),0<e&&(this.domainPathUrl=b.substring(0,e+1)));this.isHtmlLabel=function(Z){Z=this.getCurrentCellStyle(Z);
-return null!=Z?"1"==Z.html||"wrap"==Z[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var B=null,H=null,S=null,G=null,P=!1,R=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(Z,k){if("mouseDown"==k.getProperty("eventName")&&this.isEnabled()){Z=k.getProperty("event");var A=Z.getState();k=this.view.scale;if(!mxEvent.isAltDown(Z.getEvent())&&null!=A&&(R=this.isCellSelected(A.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(Z.getEvent()))){var I=this.selectionCellsHandler.getHandler(A.cell);
+return null!=Z?"1"==Z.html||"wrap"==Z[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var B=null,H=null,T=null,G=null,P=!1,R=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(Z,k){if("mouseDown"==k.getProperty("eventName")&&this.isEnabled()){Z=k.getProperty("event");var A=Z.getState();k=this.view.scale;if(!mxEvent.isAltDown(Z.getEvent())&&null!=A&&(R=this.isCellSelected(A.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(Z.getEvent()))){var I=this.selectionCellsHandler.getHandler(A.cell);
if(null==I||null==I.getHandleForEvent(Z)){var U=new mxRectangle(Z.getGraphX()-1,Z.getGraphY()-1),O=mxEvent.isTouchEvent(Z.getEvent())?mxShape.prototype.svgStrokeTolerance-1:(mxShape.prototype.svgStrokeTolerance+2)/2;I=O+2;U.grow(O);if(this.isTableCell(A.cell)&&this.isCellMovable(A.cell)&&!this.isCellSelected(A.cell)&&!(mxUtils.contains(A,Z.getGraphX()-I,Z.getGraphY()-I)&&mxUtils.contains(A,Z.getGraphX()-I,Z.getGraphY()+I)&&mxUtils.contains(A,Z.getGraphX()+I,Z.getGraphY()+I)&&mxUtils.contains(A,Z.getGraphX()+
-I,Z.getGraphY()-I))){var T=this.model.getParent(A.cell);I=this.model.getParent(T);if(!this.isCellSelected(I)){O*=k;var X=2*O;if(this.model.getChildAt(I,0)!=T&&mxUtils.intersects(U,new mxRectangle(A.x,A.y-O,A.width,X))||this.model.getChildAt(T,0)!=A.cell&&mxUtils.intersects(U,new mxRectangle(A.x-O,A.y,X,A.height))||mxUtils.intersects(U,new mxRectangle(A.x,A.y+A.height-O,A.width,X))||mxUtils.intersects(U,new mxRectangle(A.x+A.width-O,A.y,X,A.height)))T=this.selectionCellsHandler.isHandled(I),this.selectCellForEvent(I,
-Z.getEvent()),I=this.selectionCellsHandler.getHandler(I),null!=I&&(O=I.getHandleForEvent(Z),null!=O&&(I.start(Z.getGraphX(),Z.getGraphY(),O),I.blockDelayedSelection=!T,Z.consume()))}}for(;!Z.isConsumed()&&null!=A&&(this.isTableCell(A.cell)||this.isTableRow(A.cell)||this.isTable(A.cell));)this.isSwimlane(A.cell)&&this.isCellMovable(A.cell)&&(I=this.getActualStartSize(A.cell),(0<I.x||0<I.width)&&mxUtils.intersects(U,new mxRectangle(A.x+(I.x-I.width-1)*k+(0==I.x?A.width:0),A.y,1,A.height))||(0<I.y||
+I,Z.getGraphY()-I))){var S=this.model.getParent(A.cell);I=this.model.getParent(S);if(!this.isCellSelected(I)){O*=k;var X=2*O;if(this.model.getChildAt(I,0)!=S&&mxUtils.intersects(U,new mxRectangle(A.x,A.y-O,A.width,X))||this.model.getChildAt(S,0)!=A.cell&&mxUtils.intersects(U,new mxRectangle(A.x-O,A.y,X,A.height))||mxUtils.intersects(U,new mxRectangle(A.x,A.y+A.height-O,A.width,X))||mxUtils.intersects(U,new mxRectangle(A.x+A.width-O,A.y,X,A.height)))S=this.selectionCellsHandler.isHandled(I),this.selectCellForEvent(I,
+Z.getEvent()),I=this.selectionCellsHandler.getHandler(I),null!=I&&(O=I.getHandleForEvent(Z),null!=O&&(I.start(Z.getGraphX(),Z.getGraphY(),O),I.blockDelayedSelection=!S,Z.consume()))}}for(;!Z.isConsumed()&&null!=A&&(this.isTableCell(A.cell)||this.isTableRow(A.cell)||this.isTable(A.cell));)this.isSwimlane(A.cell)&&this.isCellMovable(A.cell)&&(I=this.getActualStartSize(A.cell),(0<I.x||0<I.width)&&mxUtils.intersects(U,new mxRectangle(A.x+(I.x-I.width-1)*k+(0==I.x?A.width:0),A.y,1,A.height))||(0<I.y||
0<I.height)&&mxUtils.intersects(U,new mxRectangle(A.x,A.y+(I.y-I.height-1)*k+(0==I.y?A.height:0),A.width,1)))&&(this.selectCellForEvent(A.cell,Z.getEvent()),I=this.selectionCellsHandler.getHandler(A.cell),null!=I&&null!=I.customHandles&&(O=mxEvent.CUSTOM_HANDLE-I.customHandles.length+1,I.start(Z.getGraphX(),Z.getGraphY(),O),Z.consume())),A=this.view.getState(this.model.getParent(A.cell))}}}}));this.addListener(mxEvent.CONSUME_MOUSE_EVENT,mxUtils.bind(this,function(Z,k){if("mouseDown"==k.getProperty("eventName")&&
-this.isEnabled()){Z=k.getProperty("event");var A=Z.getState();mxEvent.isAltDown(Z.getEvent())||mxEvent.isControlDown(k)||mxEvent.isShiftDown(k)||R||null==A||!this.model.isEdge(A.cell)||(B=new mxPoint(Z.getGraphX(),Z.getGraphY()),P=this.isCellSelected(A.cell),S=A,H=Z,null!=A.text&&null!=A.text.boundingBox&&mxUtils.contains(A.text.boundingBox,Z.getGraphX(),Z.getGraphY())?G=mxEvent.LABEL_HANDLE:(k=this.selectionCellsHandler.getHandler(A.cell),null!=k&&null!=k.bends&&0<k.bends.length&&(G=k.getHandleForEvent(Z))))}}));
-this.addMouseListener({mouseDown:function(Z,k){},mouseMove:mxUtils.bind(this,function(Z,k){Z=this.selectionCellsHandler.handlers.map;for(var A in Z)if(null!=Z[A].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(k.getEvent())){var I=this.tolerance;if(null!=B&&null!=S&&null!=H){if(A=S,null!=G||Math.abs(B.x-k.getGraphX())>I||Math.abs(B.y-k.getGraphY())>I){var U=null;mxEvent.isShiftDown(k.getEvent())||(U=this.selectionCellsHandler.getHandler(A.cell));if(null!=U&&null!=
-U.bends&&0<U.bends.length){U.redrawHandles();var O=null!=G?G:U.getHandleForEvent(H),T=this.view.getEdgeStyle(A),X=T==mxEdgeStyle.EntityRelation;I=A.absolutePoints;P||(O=G);O!=mxEvent.LABEL_HANDLE&&null!=I&&(O=G,null==O&&(Z=new mxRectangle(B.x,B.y),Z.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(Z,I[0].x,I[0].y)?O=0:mxUtils.contains(Z,I[I.length-1].x,I[I.length-1].y)?O=U.bends.length-1:null!=I&&(null==T&&null==O||T==mxEdgeStyle.SegmentConnector||T==mxEdgeStyle.OrthConnector)&&
-(null!=T&&(2==I.length||3==I.length&&(0==Math.round(I[0].x-I[1].x)&&0==Math.round(I[1].x-I[2].x)||0==Math.round(I[0].y-I[1].y)&&0==Math.round(I[1].y-I[2].y)))?O=2:(O=mxUtils.findNearestSegment(A,B.x,B.y),O=null==T?mxEvent.VIRTUAL_HANDLE-O:O+1))),null==O&&(O=mxEvent.VIRTUAL_HANDLE));Z=O==mxEvent.LABEL_HANDLE||0==O||O==U.bends.length-1;if(!X&&(null!=A.visibleSourceState||null!=A.visibleTargetState)||Z)U.start(k.getGraphX(),k.getGraphX(),O),k.consume(),this.graphHandler.reset()}null!=U&&(this.selectionCellsHandler.isHandlerActive(U)?
-this.isCellSelected(A.cell)||(this.selectionCellsHandler.handlers.put(A.cell,U),this.selectCellForEvent(A.cell,k.getEvent())):this.isCellSelected(A.cell)||U.destroy());P=!1;B=H=S=G=null}}else if(A=k.getState(),null!=A&&this.isCellEditable(A.cell)){Z=this.model.getParent(A.cell);U=null;if(this.model.isEdge(A.cell)&&!this.isCellSelected(A.cell)&&!mxEvent.isAltDown(k.getEvent())&&!mxEvent.isShiftDown(k.getEvent())&&!this.isAncestorSelected(A.cell)&&(this.isSwimlane(Z)||this.model.isLayer(Z)||this.getCurrentRoot()==
-Z)){if(Z=new mxRectangle(k.getGraphX(),k.getGraphY()),Z.grow(mxEdgeHandler.prototype.handleImage.width/2),I=A.absolutePoints,null!=I)null!=A.text&&null!=A.text.boundingBox&&mxUtils.contains(A.text.boundingBox,k.getGraphX(),k.getGraphY())?U="move":mxUtils.contains(Z,I[0].x,I[0].y)||mxUtils.contains(Z,I[I.length-1].x,I[I.length-1].y)?U="pointer":(T=this.view.getEdgeStyle(A),T==mxEdgeStyle.EntityRelation||null==A.visibleSourceState&&null==A.visibleTargetState||(U="crosshair",T!=mxEdgeStyle.SegmentConnector&&
-T!=mxEdgeStyle.OrthConnector))||(k=mxUtils.findNearestSegment(A,k.getGraphX(),k.getGraphY()),k<I.length-1&&0<=k&&(U=0==Math.round(I[k].x-I[k+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(k.getEvent())){I=mxShape.prototype.svgStrokeTolerance/2;Z=new mxRectangle(k.getGraphX(),k.getGraphY());Z.grow(I);if(this.isTableCell(A.cell)&&this.isCellMovable(A.cell)&&(k=this.model.getParent(A.cell),I=this.model.getParent(k),!this.isCellSelected(I)))if(mxUtils.intersects(Z,new mxRectangle(A.x,
+this.isEnabled()){Z=k.getProperty("event");var A=Z.getState();mxEvent.isAltDown(Z.getEvent())||mxEvent.isControlDown(k)||mxEvent.isShiftDown(k)||R||null==A||!this.model.isEdge(A.cell)||(B=new mxPoint(Z.getGraphX(),Z.getGraphY()),P=this.isCellSelected(A.cell),T=A,H=Z,null!=A.text&&null!=A.text.boundingBox&&mxUtils.contains(A.text.boundingBox,Z.getGraphX(),Z.getGraphY())?G=mxEvent.LABEL_HANDLE:(k=this.selectionCellsHandler.getHandler(A.cell),null!=k&&null!=k.bends&&0<k.bends.length&&(G=k.getHandleForEvent(Z))))}}));
+this.addMouseListener({mouseDown:function(Z,k){},mouseMove:mxUtils.bind(this,function(Z,k){Z=this.selectionCellsHandler.handlers.map;for(var A in Z)if(null!=Z[A].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(k.getEvent())){var I=this.tolerance;if(null!=B&&null!=T&&null!=H){if(A=T,null!=G||Math.abs(B.x-k.getGraphX())>I||Math.abs(B.y-k.getGraphY())>I){var U=null;mxEvent.isShiftDown(k.getEvent())||(U=this.selectionCellsHandler.getHandler(A.cell));if(null!=U&&null!=
+U.bends&&0<U.bends.length){U.redrawHandles();var O=null!=G?G:U.getHandleForEvent(H),S=this.view.getEdgeStyle(A),X=S==mxEdgeStyle.EntityRelation;I=A.absolutePoints;P||(O=G);O!=mxEvent.LABEL_HANDLE&&null!=I&&(O=G,null==O&&(Z=new mxRectangle(B.x,B.y),Z.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(Z,I[0].x,I[0].y)?O=0:mxUtils.contains(Z,I[I.length-1].x,I[I.length-1].y)?O=U.bends.length-1:null!=I&&(null==S&&null==O||S==mxEdgeStyle.SegmentConnector||S==mxEdgeStyle.OrthConnector)&&
+(null!=S&&(2==I.length||3==I.length&&(0==Math.round(I[0].x-I[1].x)&&0==Math.round(I[1].x-I[2].x)||0==Math.round(I[0].y-I[1].y)&&0==Math.round(I[1].y-I[2].y)))?O=2:(O=mxUtils.findNearestSegment(A,B.x,B.y),O=null==S?mxEvent.VIRTUAL_HANDLE-O:O+1))),null==O&&(O=mxEvent.VIRTUAL_HANDLE));Z=O==mxEvent.LABEL_HANDLE||0==O||O==U.bends.length-1;if(!X&&(null!=A.visibleSourceState||null!=A.visibleTargetState)||Z)U.start(k.getGraphX(),k.getGraphX(),O),k.consume(),this.graphHandler.reset()}null!=U&&(this.selectionCellsHandler.isHandlerActive(U)?
+this.isCellSelected(A.cell)||(this.selectionCellsHandler.handlers.put(A.cell,U),this.selectCellForEvent(A.cell,k.getEvent())):this.isCellSelected(A.cell)||U.destroy());P=!1;B=H=T=G=null}}else if(A=k.getState(),null!=A&&this.isCellEditable(A.cell)){Z=this.model.getParent(A.cell);U=null;if(this.model.isEdge(A.cell)&&!this.isCellSelected(A.cell)&&!mxEvent.isAltDown(k.getEvent())&&!mxEvent.isShiftDown(k.getEvent())&&!this.isAncestorSelected(A.cell)&&(this.isSwimlane(Z)||this.model.isLayer(Z)||this.getCurrentRoot()==
+Z)){if(Z=new mxRectangle(k.getGraphX(),k.getGraphY()),Z.grow(mxEdgeHandler.prototype.handleImage.width/2),I=A.absolutePoints,null!=I)null!=A.text&&null!=A.text.boundingBox&&mxUtils.contains(A.text.boundingBox,k.getGraphX(),k.getGraphY())?U="move":mxUtils.contains(Z,I[0].x,I[0].y)||mxUtils.contains(Z,I[I.length-1].x,I[I.length-1].y)?U="pointer":(S=this.view.getEdgeStyle(A),S==mxEdgeStyle.EntityRelation||null==A.visibleSourceState&&null==A.visibleTargetState||(U="crosshair",S!=mxEdgeStyle.SegmentConnector&&
+S!=mxEdgeStyle.OrthConnector))||(k=mxUtils.findNearestSegment(A,k.getGraphX(),k.getGraphY()),k<I.length-1&&0<=k&&(U=0==Math.round(I[k].x-I[k+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(k.getEvent())){I=mxShape.prototype.svgStrokeTolerance/2;Z=new mxRectangle(k.getGraphX(),k.getGraphY());Z.grow(I);if(this.isTableCell(A.cell)&&this.isCellMovable(A.cell)&&(k=this.model.getParent(A.cell),I=this.model.getParent(k),!this.isCellSelected(I)))if(mxUtils.intersects(Z,new mxRectangle(A.x,
A.y-2,A.width,4))&&this.model.getChildAt(I,0)!=k||mxUtils.intersects(Z,new mxRectangle(A.x,A.y+A.height-2,A.width,4)))U="row-resize";else if(mxUtils.intersects(Z,new mxRectangle(A.x-2,A.y,4,A.height))&&this.model.getChildAt(k,0)!=A.cell||mxUtils.intersects(Z,new mxRectangle(A.x+A.width-2,A.y,4,A.height)))U="col-resize";for(k=A;null==U&&null!=k&&(this.isTableCell(k.cell)||this.isTableRow(k.cell)||this.isTable(k.cell));)this.isSwimlane(k.cell)&&this.isCellMovable(k.cell)&&(I=this.getActualStartSize(k.cell),
-O=this.view.scale,(0<I.x||0<I.width)&&mxUtils.intersects(Z,new mxRectangle(k.x+(I.x-I.width-1)*O+(0==I.x?k.width*O:0),k.y,1,k.height))?U="col-resize":(0<I.y||0<I.height)&&mxUtils.intersects(Z,new mxRectangle(k.x,k.y+(I.y-I.height-1)*O+(0==I.y?k.height:0),k.width,1))&&(U="row-resize")),k=this.view.getState(this.model.getParent(k.cell))}null!=U&&A.setCursor(U)}}}),mouseUp:mxUtils.bind(this,function(Z,k){G=B=H=S=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var c=document.createElement("div");this.cellRenderer.getLabelValue=
+O=this.view.scale,(0<I.x||0<I.width)&&mxUtils.intersects(Z,new mxRectangle(k.x+(I.x-I.width-1)*O+(0==I.x?k.width*O:0),k.y,1,k.height))?U="col-resize":(0<I.y||0<I.height)&&mxUtils.intersects(Z,new mxRectangle(k.x,k.y+(I.y-I.height-1)*O+(0==I.y?k.height:0),k.width,1))&&(U="row-resize")),k=this.view.getState(this.model.getParent(k.cell))}null!=U&&A.setCursor(U)}}}),mouseUp:mxUtils.bind(this,function(Z,k){G=B=H=T=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var c=document.createElement("div");this.cellRenderer.getLabelValue=
function(Z){var k=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);Z.view.graph.isHtmlLabel(Z.cell)&&("0"==mxUtils.getValue(Z.style,"html","0")?k=mxUtils.htmlEntities(k,!1):(Z.lastLabelValue!=k&&(Z.lastLabelValue=k,Z.lastSanitizedLabelValue=Graph.sanitizeHtml(k),c.innerHTML=Z.lastSanitizedLabelValue,Graph.addLightDarkColors(c,null,"simple"==Z.view.graph.getAdaptiveColors())&&(Z.lastSanitizedLabelValue=c.innerHTML)),k=Z.lastSanitizedLabelValue));return k};if("undefined"!==typeof mxVertexHandler){this.setConnectable(!0);
this.setDropEnabled(!0);this.setPanning(!0);this.setTooltips(!0);this.setAllowLoops(!0);this.allowAutoPanning=!0;this.constrainChildren=this.resetEdgesOnConnect=!1;this.constrainRelativeChildren=!0;this.graphHandler.scrollOnMove=!1;this.graphHandler.scaleGrid=!0;this.connectionHandler.setCreateTarget(!1);this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(Z,k){return!1};this.alternateEdgeStyle="vertical";null==m&&this.loadStylesheet();var f=this.graphHandler.getGuideStates;
-this.graphHandler.getGuideStates=function(){var Z=f.apply(this,arguments);if(this.graph.pageVisible){var k=[],A=this.graph.pageFormat,I=this.graph.pageScale,U=A.width*I;A=A.height*I;I=this.graph.view.translate;for(var O=this.graph.view.scale,T=this.graph.getPageLayout(),X=0;X<T.width;X++)k.push(new mxRectangle(((T.x+X)*U+I.x)*O,(T.y*A+I.y)*O,U*O,A*O));for(X=1;X<T.height;X++)k.push(new mxRectangle((T.x*U+I.x)*O,((T.y+X)*A+I.y)*O,U*O,A*O));Z=k.concat(Z)}return Z};mxDragSource.prototype.dragElementZIndex=
+this.graphHandler.getGuideStates=function(){var Z=f.apply(this,arguments);if(this.graph.pageVisible){var k=[],A=this.graph.pageFormat,I=this.graph.pageScale,U=A.width*I;A=A.height*I;I=this.graph.view.translate;for(var O=this.graph.view.scale,S=this.graph.getPageLayout(),X=0;X<S.width;X++)k.push(new mxRectangle(((S.x+X)*U+I.x)*O,(S.y*A+I.y)*O,U*O,A*O));for(X=1;X<S.height;X++)k.push(new mxRectangle((S.x*U+I.x)*O,((S.y+X)*A+I.y)*O,U*O,A*O));Z=k.concat(Z)}return Z};mxDragSource.prototype.dragElementZIndex=
mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(Z,k){return null==Z.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(Z){this.previewColor="#000000"==this.graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.createPreviewShape.apply(this,arguments)};var l=this.graphHandler.getCells;this.graphHandler.getCells=function(Z){for(var k=l.apply(this,arguments),A=new mxDictionary,I=[],U=0;U<k.length;U++){var O=
this.graph.isTableCell(Z)&&this.graph.isTableCell(k[U])&&this.graph.isCellSelected(k[U])?this.graph.model.getParent(k[U]):this.graph.isTableRow(Z)&&this.graph.isTableRow(k[U])&&this.graph.isCellSelected(k[U])?k[U]:this.graph.getCompositeParent(k[U]);null==O||A.get(O)||(A.put(O,!0),I.push(O))}return I};var t=this.graphHandler.start;this.graphHandler.start=function(Z,k,A,I){var U=!1;this.graph.isTableCell(Z)&&(this.graph.isCellSelected(Z)?U=!0:Z=this.graph.model.getParent(Z));U||this.graph.isTableRow(Z)&&
-this.graph.isCellSelected(Z)||(Z=this.graph.getCompositeParent(Z));t.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(Z,k){k=this.graph.getCompositeParent(k);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(Z,k,A,I,U,O){var T=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=I&&this.graph.applyNewEdgeStyle(I,[T]);return T};var z=new mxRubberband(this);this.getRubberband=function(){return z};
+this.graph.isCellSelected(Z)||(Z=this.graph.getCompositeParent(Z));t.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(Z,k){k=this.graph.getCompositeParent(k);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(Z,k,A,I,U,O){var S=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=I&&this.graph.applyNewEdgeStyle(I,[S]);return S};var z=new mxRubberband(this);this.getRubberband=function(){return z};
var C=(new Date).getTime(),F=0,N=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var Z=this.currentState;N.apply(this,arguments);Z!=this.currentState?(C=(new Date).getTime(),F=0):F=(new Date).getTime()-C};var K=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(Z){return mxEvent.isShiftDown(Z.getEvent())&&mxEvent.isAltDown(Z.getEvent())?!1:null!=this.currentState&&Z.getState()==this.currentState&&2E3<F||(null==this.currentState||
"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&K.apply(this,arguments)};var J=this.isToggleEvent;this.isToggleEvent=function(Z){return J.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(Z)};var da=z.isForceRubberbandEvent;z.isForceRubberbandEvent=function(Z){return da.apply(this,arguments)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(Z.getEvent())||mxUtils.hasScrollbars(this.graph.container)&&mxClient.IS_FF&&mxClient.IS_WIN&&null==Z.getState()&&mxEvent.isTouchEvent(Z.getEvent())};
var ea=null;this.panningHandler.addListener(mxEvent.PAN_START,mxUtils.bind(this,function(){this.isEnabled()&&(ea=this.container.style.cursor,this.container.style.cursor="move")}));this.panningHandler.addListener(mxEvent.PAN_END,mxUtils.bind(this,function(){this.isEnabled()&&(this.container.style.cursor=ea)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(Z){return mxEvent.isMouseEvent(Z.getEvent())};var ca=this.click;this.click=function(Z){var k=null==Z.state&&
@@ -2314,13 +2314,13 @@ Graph.createSvgImage=function(b,e,g,m,u){g=unescape(encodeURIComponent(Graph.svg
Graph.getSvgFromDataUri=function(b){return null!=b&&"data:image/svg"==b.substring(0,14)?Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+decodeURIComponent(escape(atob(b.substring(b.indexOf(",")+1)))):null};
Graph.createSvgNode=function(b,e,g,m,u){var p=mxUtils.createXmlDocument(),B=null!=p.createElementNS?p.createElementNS(mxConstants.NS_SVG,"svg"):p.createElement("svg");null!=u&&B.setAttribute("style","background: "+u.light+"; background-color: "+u.cssText+";");null==p.createElementNS?(B.setAttribute("xmlns",mxConstants.NS_SVG),B.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):B.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);B.setAttribute("version","1.1");B.setAttribute("width",
g+"px");B.setAttribute("height",m+"px");B.setAttribute("viewBox",b+" "+e+" "+g+" "+m);p.appendChild(B);return B};
-Graph.htmlToPng=function(b,e,g,m,u,p){u=null!=u?u:"";p=null!=p?p:Editor.htmlRasterScale;var B=document.createElement("canvas");B.width=e*p;B.height=g*p;var H=document.createElement("img");H.onload=mxUtils.bind(this,function(){try{var G=B.getContext("2d");G.scale(p,p);G.drawImage(H,0,0);m(B.toDataURL())}catch(P){m(null)}});var S=mxUtils.createXmlDocument();S=null!=S.createElementNS?S.createElementNS(mxConstants.NS_SVG,"svg"):S.createElement("svg");b=(new mxSvgCanvas2D(S)).convertHtml(b);H.onerror=
+Graph.htmlToPng=function(b,e,g,m,u,p){u=null!=u?u:"";p=null!=p?p:Editor.htmlRasterScale;var B=document.createElement("canvas");B.width=e*p;B.height=g*p;var H=document.createElement("img");H.onload=mxUtils.bind(this,function(){try{var G=B.getContext("2d");G.scale(p,p);G.drawImage(H,0,0);m(B.toDataURL())}catch(P){m(null)}});var T=mxUtils.createXmlDocument();T=null!=T.createElementNS?T.createElementNS(mxConstants.NS_SVG,"svg"):T.createElement("svg");b=(new mxSvgCanvas2D(T)).convertHtml(b);H.onerror=
function(G){m(null)};H.src="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+g+'">'+(""!=u?'<defs xmlns="http://www.w3.org/2000/svg"><style type="text/css">'+u+"</style></defs>":"")+'<foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml">'+b+"</div></foreignObject></svg>")};
-Graph.addLightDarkColors=function(b,e,g,m){function u(c,f,l){return null!=m?m(c,f,l):mxUtils.isValidColor(l)?(null==B&&null!=e&&(B={}),null!=B&&(B[f]=c.style.getPropertyValue(f)),l=mxUtils.getLightDarkColor(l,null,null,g),c.style.setProperty(f,l.cssText),!0):!1}for(var p=b.getElementsByTagName("*"),B=null,H=!1,S=0;S<p.length;S++)if(p[S]!=b&&null!=p[S].style){B=null;for(var G=0;G<p[S].style.length;G++){var P=p[S].style.item(G),R=p[S].style.getPropertyValue(P);H=u(p[S],P,R)||H}"FONT"==p[S].nodeName&&
-""==p[S].style.getPropertyValue("color")&&(R=p[S].getAttribute("color"),H=u(p[S],"color",R)||H);null!=e&&null!=B&&p[S].setAttribute(e,JSON.stringify(B))}return H};Graph.removeLightDarkColors=function(b,e){b=b.getElementsByTagName("*");for(var g=!1,m=0;m<b.length;m++)try{var u=b[m].getAttribute(e);if(null!=u){b[m].removeAttribute(e);var p=JSON.parse(u),B;for(B in p){var H=p[B];""==H?(b[m].style[B]=null,""==b[m].getAttribute("style")&&b[m].removeAttribute("style")):b[m].style[B]=H;g=!0}}}catch(S){}return g};
+Graph.addLightDarkColors=function(b,e,g,m){function u(c,f,l){return null!=m?m(c,f,l):mxUtils.isValidColor(l)?(null==B&&null!=e&&(B={}),null!=B&&(B[f]=c.style.getPropertyValue(f)),l=mxUtils.getLightDarkColor(l,null,null,g),c.style.setProperty(f,l.cssText),!0):!1}for(var p=b.getElementsByTagName("*"),B=null,H=!1,T=0;T<p.length;T++)if(p[T]!=b&&null!=p[T].style){B=null;for(var G=0;G<p[T].style.length;G++){var P=p[T].style.item(G),R=p[T].style.getPropertyValue(P);H=u(p[T],P,R)||H}"FONT"==p[T].nodeName&&
+""==p[T].style.getPropertyValue("color")&&(R=p[T].getAttribute("color"),H=u(p[T],"color",R)||H);null!=e&&null!=B&&p[T].setAttribute(e,JSON.stringify(B))}return H};Graph.removeLightDarkColors=function(b,e){b=b.getElementsByTagName("*");for(var g=!1,m=0;m<b.length;m++)try{var u=b[m].getAttribute(e);if(null!=u){b[m].removeAttribute(e);var p=JSON.parse(u),B;for(B in p){var H=p[B];""==H?(b[m].style[B]=null,""==b[m].getAttribute("style")&&b[m].removeAttribute("style")):b[m].style[B]=H;g=!0}}}catch(T){}return g};
Graph.getGivenColor=function(b,e){var g=null;if(b.nodeType==mxConstants.NODETYPE_ELEMENT){try{var m=b.getAttribute(Graph.backupStyleAttribute);if(null!=m){var u=JSON.parse(m);null!=u&&null!=u[e]&&("color"==e&&"FONT"==b.nodeName&&""==u[e]&&null!=b.getAttribute("color")?g=b.getAttribute("color"):""!=u[e]&&(g=u[e]))}}catch(p){}null==g&&""!=b.style[e]&&(g=b.style[e])}return g};
-Graph.setTextColor=function(b,e,g){for(var m=g?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,u=g?"color":"background-color",p=b.getElementsByTagName("*"),B=[],H=0;H<p.length;H++)B.push({node:p[H],value:p[H].style[u]});document.execCommand(g?"forecolor":"backcolor",!1,m);b=b.getElementsByTagName("*");for(H=0;H<b.length;H++){if(H<B.length&&B[H].node==b[H]&&B[H].value!=b[H].style[u]&&""==b[H].style[u])try{if(p=b[H].getAttribute(Graph.backupStyleAttribute),null!=p){var S=JSON.parse(p);S[u]=
-"";b[H].setAttribute(Graph.backupStyleAttribute,JSON.stringify(S))}}catch(G){}if(g&&b[H].getAttribute("color")==m||b[H].style[u]==m){g&&b[H].getAttribute("color")==m&&b[H].removeAttribute("color");b[H].style[u]=e!=mxConstants.NONE?mxUtils.getLightDarkColor(e).cssText:null;try{p=b[H].getAttribute(Graph.backupStyleAttribute),S=null!=p?JSON.parse(p):{},S[u]=e!=mxConstants.NONE?e:"",b[H].setAttribute(Graph.backupStyleAttribute,JSON.stringify(S))}catch(G){}if(g&&mxClient.IS_FF){e=b[H];g=e.firstChild;if(null!=
+Graph.setTextColor=function(b,e,g){for(var m=g?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,u=g?"color":"background-color",p=b.getElementsByTagName("*"),B=[],H=0;H<p.length;H++)B.push({node:p[H],value:p[H].style[u]});document.execCommand(g?"forecolor":"backcolor",!1,m);b=b.getElementsByTagName("*");for(H=0;H<b.length;H++){if(H<B.length&&B[H].node==b[H]&&B[H].value!=b[H].style[u]&&""==b[H].style[u])try{if(p=b[H].getAttribute(Graph.backupStyleAttribute),null!=p){var T=JSON.parse(p);T[u]=
+"";b[H].setAttribute(Graph.backupStyleAttribute,JSON.stringify(T))}}catch(G){}if(g&&b[H].getAttribute("color")==m||b[H].style[u]==m){g&&b[H].getAttribute("color")==m&&b[H].removeAttribute("color");b[H].style[u]=e!=mxConstants.NONE?mxUtils.getLightDarkColor(e).cssText:null;try{p=b[H].getAttribute(Graph.backupStyleAttribute),T=null!=p?JSON.parse(p):{},T[u]=e!=mxConstants.NONE?e:"",b[H].setAttribute(Graph.backupStyleAttribute,JSON.stringify(T))}catch(G){}if(g&&mxClient.IS_FF){e=b[H];g=e.firstChild;if(null!=
g&&"A"==g.nodeName&&null==g.nextSibling&&null!=g.firstChild){e.parentNode.insertBefore(g,e);for(m=g.firstChild;null!=m;)u=m.nextSibling,e.appendChild(m),m=u;g.appendChild(e)}break}}}};Graph.zapGremlins=function(b){return mxUtils.zapGremlins(b)};Graph.stringToBytes=function(b){for(var e=Array(b.length),g=0;g<b.length;g++)e[g]=b.charCodeAt(g);return e};Graph.bytesToString=function(b){for(var e=Array(b.length),g=0;g<b.length;g++)e[g]=String.fromCharCode(b[g]);return e.join("")};
Graph.base64EncodeUnicode=function(b){return btoa(encodeURIComponent(b).replace(/%([0-9A-F]{2})/g,function(e,g){return String.fromCharCode(parseInt(g,16))}))};Graph.base64DecodeUnicode=function(b){return decodeURIComponent(Array.prototype.map.call(atob(b),function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))};Graph.compressNode=function(b,e){b=mxUtils.getXml(b);return Graph.compress(e?b:Graph.zapGremlins(b))};
Graph.arrayBufferToString=function(b){var e="";b=new Uint8Array(b);for(var g=b.byteLength,m=0;m<g;m++)e+=String.fromCharCode(b[m]);return e};Graph.stringToArrayBuffer=function(b){return Uint8Array.from(b,function(e){return e.charCodeAt(0)})};
@@ -2333,9 +2333,9 @@ Graph.exploreFromCell=function(b,e,g){pageSize=null!=g&&null!=g.pageSize?g.pageS
" ("+Math.ceil((R.startIndex||0)/pageSize)+"/"+Math.ceil(z.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");da.referenceCell=l;da.startIndex=Math.max(0,(R.startIndex||0)-pageSize);K.splice(0,0,da)}if(z.length>(R.startIndex||0)+pageSize){var ea=P.createVertex(null,null,mxResources.get("nextPage")+" ("+(Math.ceil((R.startIndex||0)/pageSize)+2)+"/"+Math.ceil(z.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");
ea.referenceCell=l;ea.startIndex=(R.startIndex||0)+pageSize;K.splice(0,0,ea)}for(var ca in P.getModel().cells){var W=P.getModel().getCell(ca);W!=P.rootCell&&!P.getModel().isAncestor(P.rootCell,W)&&P.getModel().isVertex(W)&&P.removeCells([W])}P.addCells(K);var ba=P.getModel().getGeometry(P.rootCell);null!=ba&&(ba=ba.clone(),ba.x=c-ba.width/2,ba.y=f-ba.height/3,P.getModel().setGeometry(P.rootCell,ba));R=[];for(ca in P.getModel().cells)W=P.getModel().getCell(ca),W!=P.rootCell&&P.getModel().isVertex(W)&&
P.getModel().getParent(W)==P.getDefaultParent()&&(R.push(W),ba=P.getModel().getGeometry(W),null!=ba&&(ba.x=c-ba.width/2,ba.y=f-ba.height/2));var ha=R.length,la=2*Math.PI/ha,Y=Math.max(minSize,Math.min(P.container.scrollWidth/2.5-80,P.container.scrollHeight/2.5-80));for(c=0;c<ha;c++)ba=P.getModel().getGeometry(R[c]),null!=ba&&(ba=ba.clone(),ba.x+=Y*Math.sin(c*la),ba.y+=Y*Math.cos(c*la),P.getModel().setGeometry(R[c],ba))}finally{P.getModel().endUpdate()}}}var B=document.createElement("div");B.style.position=
-"absolute";B.style.display="block";B.style.background=Editor.isDarkMode()?Editor.darkColor:"#ffffff";B.style.width="100%";B.style.height="100%";B.style.left="0px";B.style.top="0px";B.style.zIndex=2;var H=document.createElement("img");H.setAttribute("src",Editor.closeBlackImage);H.style.position="absolute";H.style.cursor="pointer";H.style.right="10px";H.style.top="10px";B.appendChild(H);var S=document.createElement("div");S.style.position="absolute";S.style.cursor="pointer";S.style.right="38px";S.style.top=
-"14px";S.style.textAlign="right";S.style.verticalAlign="top";mxUtils.write(S,mxResources.get("close"));B.appendChild(S);document.body.appendChild(B);var G=function(P){27==P.keyCode&&H.click()};mxEvent.addListener(document,"keydown",G);(function(P){if(mxClient.isBrowserSupported()){var R=new Graph(P);R.keepEdgesInBackground=!0;R.isCellResizable=function(){return!1};R.isCellRotatable=function(){return!1};R.getCursorForCell=function(C){return this.model.isVertex(C)?"pointer":null};R.getFoldingImage=
-function(){return null};var c=function(){mxEvent.removeListener(document,"keydown",G);P.parentNode.removeChild(P);m.scrollCellToVisible(u)};mxEvent.addListener(H,"click",c);mxEvent.addListener(S,"click",c);R.setEnabled(!1);var f=R.click;R.click=function(C){var F=C.getCell(),N=null!=F?null!=F.referenceCell?F.referenceCell:F:null;null!=F&&R.rootCell!=F&&0<R.getEdges(N).length?p(R,F):f.apply(this,arguments)};c=R.container.scrollWidth/2;var l=R.container.scrollHeight/3;R.model.beginUpdate();var t=R.importCells([u])[0];
+"absolute";B.style.display="block";B.style.background=Editor.isDarkMode()?Editor.darkColor:"#ffffff";B.style.width="100%";B.style.height="100%";B.style.left="0px";B.style.top="0px";B.style.zIndex=2;var H=document.createElement("img");H.setAttribute("src",Editor.closeBlackImage);H.style.position="absolute";H.style.cursor="pointer";H.style.right="10px";H.style.top="10px";B.appendChild(H);var T=document.createElement("div");T.style.position="absolute";T.style.cursor="pointer";T.style.right="38px";T.style.top=
+"14px";T.style.textAlign="right";T.style.verticalAlign="top";mxUtils.write(T,mxResources.get("close"));B.appendChild(T);document.body.appendChild(B);var G=function(P){27==P.keyCode&&H.click()};mxEvent.addListener(document,"keydown",G);(function(P){if(mxClient.isBrowserSupported()){var R=new Graph(P);R.keepEdgesInBackground=!0;R.isCellResizable=function(){return!1};R.isCellRotatable=function(){return!1};R.getCursorForCell=function(C){return this.model.isVertex(C)?"pointer":null};R.getFoldingImage=
+function(){return null};var c=function(){mxEvent.removeListener(document,"keydown",G);P.parentNode.removeChild(P);m.scrollCellToVisible(u)};mxEvent.addListener(H,"click",c);mxEvent.addListener(T,"click",c);R.setEnabled(!1);var f=R.click;R.click=function(C){var F=C.getCell(),N=null!=F?null!=F.referenceCell?F.referenceCell:F:null;null!=F&&R.rootCell!=F&&0<R.getEdges(N).length?p(R,F):f.apply(this,arguments)};c=R.container.scrollWidth/2;var l=R.container.scrollHeight/3;R.model.beginUpdate();var t=R.importCells([u])[0];
t.sourceCellId=u.id;t.geometry.x=c-t.geometry.width/2;t.geometry.y=l-t.geometry.height/2;R.model.endUpdate();var z=!1;R.getModel().addListener(mxEvent.CHANGE,function(C,F){z||(C=F.getProperty("edit").changes,mxText.prototype.enableBoundingBox=!1,R.labelsVisible=!1,z=!0,mxEffects.animateChanges(R,C,function(){var N=new mxParallelEdgeLayout(R);N.spacing=60;var K=N.layout;N.layout=function(J){N.spacing=Math.min(60,Math.max(30,60-5*J.length));K.apply(this,arguments)};N.execute(R.getDefaultParent());mxText.prototype.enableBoundingBox=
!0;R.labelsVisible=!0;R.tooltipHandler.hide();R.refresh();z=!1}))});p(R,t)}else mxUtils.error("Browser is not supported!",200,!1)})(B)})(b,e)};Graph.removeKeys=function(b,e){for(var g in b)e(g)&&delete b[g]};Graph.setTransitionForNodes=function(b,e){for(var g=0;g<b.length;g++)mxUtils.setPrefixedStyle(b[g].style,"transition",e)};Graph.setOpacityForNodes=function(b,e){for(var g=0;g<b.length;g++)b[g].style.opacity=e};
Graph.removePasteFormatting=function(b,e){for(;null!=b;){null!=b.firstChild&&Graph.removePasteFormatting(b.firstChild,!0);var g=b.nextSibling;if(b.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=b.style){"#000000"==b.style.color&&(b.style.color="");if("SPAN"==b.nodeName&&"Apple-tab-span"==b.className){var m=Graph.createTabNode(4);b.parentNode.replaceChild(m,b);b=m}if("P"==b.nodeName&&"p1"==b.className){for(;null!=b.firstChild;)b.parentNode.insertBefore(b.firstChild,b);null!=g&&"P"==g.nodeName&&"p1"==
@@ -2343,7 +2343,7 @@ g.className&&b.parentNode.insertBefore(b.ownerDocument.createElement("br"),b);b.
Graph.sanitizeLink=function(b){if(null==b)return null;var e=document.createElement("a");e.setAttribute("href",b);Graph.sanitizeNode(e);return e.getAttribute("href")};Graph.sanitizeNode=function(b){return Graph.domPurify(b,!0)};DOMPurify.addHook("afterSanitizeAttributes",function(b){"use"==b.nodeName&&(null!=b.getAttribute("xlink:href")&&!b.getAttribute("xlink:href").startsWith("#")||null!=b.getAttribute("href")&&!b.getAttribute("href").startsWith("#"))&&b.remove()});
Graph.domPurify=function(b,e){window.DOM_PURIFY_CONFIG.IN_PLACE=e;return DOMPurify.sanitize(b,window.DOM_PURIFY_CONFIG)};
Graph.clipSvgDataUri=function(b){if(null!=b&&"data:image/svg+xml;base64,"==b.substring(0,26))try{var e=document.createElement("div");e.style.position="absolute";e.style.visibility="hidden";var g=decodeURIComponent(escape(atob(b.substring(26)))),m=g.indexOf("<svg");if(0<=m){e.innerHTML=Graph.sanitizeHtml(g.substring(m));var u=e.getElementsByTagName("svg");if(0<u.length){document.body.appendChild(e);try{m=g=1;var p=u[0].getAttribute("width"),B=u[0].getAttribute("height");p=null!=p&&"%"!=p.charAt(p.length-
-1)?parseFloat(p):NaN;B=null!=B&&"%"!=B.charAt(B.length-1)?parseFloat(B):NaN;var H=u[0].getAttribute("viewBox");if(null!=H&&!isNaN(p)&&!isNaN(B)){var S=H.split(" ");4<=H.length&&(g=parseFloat(S[2])/p,m=parseFloat(S[3])/B,new mxRectangle(parseFloat(S[0]),parseFloat(S[1]),parseFloat(S[2]),parseFloat(S[3])))}var G=u[0].getBBox();if(0<G.width&&0<G.height){p=0;var P=u[0].querySelectorAll("[stroke-width]");for(B=0;B<P.length;B++)p=Math.max(p,parseFloat(P[B].getAttribute("stroke-width")));G=new mxRectangle(G.x,
+1)?parseFloat(p):NaN;B=null!=B&&"%"!=B.charAt(B.length-1)?parseFloat(B):NaN;var H=u[0].getAttribute("viewBox");if(null!=H&&!isNaN(p)&&!isNaN(B)){var T=H.split(" ");4<=H.length&&(g=parseFloat(T[2])/p,m=parseFloat(T[3])/B,new mxRectangle(parseFloat(T[0]),parseFloat(T[1]),parseFloat(T[2]),parseFloat(T[3])))}var G=u[0].getBBox();if(0<G.width&&0<G.height){p=0;var P=u[0].querySelectorAll("[stroke-width]");for(B=0;B<P.length;B++)p=Math.max(p,parseFloat(P[B].getAttribute("stroke-width")));G=new mxRectangle(G.x,
G.y,G.width,G.height);G.grow(p/2);e.getElementsByTagName("svg")[0].setAttribute("viewBox",G.x+" "+G.y+" "+G.width+" "+G.height);e.getElementsByTagName("svg")[0].setAttribute("width",G.width/g);e.getElementsByTagName("svg")[0].setAttribute("height",G.height/m)}}catch(R){}finally{document.body.removeChild(e)}b=Editor.createSvgDataUri(mxUtils.getXml(u[0]))}}}catch(R){}return b};
Graph.createRemoveIcon=function(b,e){var g=document.createElement("img");g.setAttribute("src",Dialog.prototype.clearImage);g.setAttribute("title",b);g.setAttribute("width","13");g.setAttribute("height","10");g.style.marginLeft="4px";g.style.marginBottom="-1px";g.style.cursor="pointer";mxEvent.addListener(g,"click",e);return g};Graph.isPageLink=function(b){return null!=b&&"data:page/id,"==b.substring(0,13)};
Graph.rewritePageLinks=function(b,e){function g(u,p){var B=u.getAttribute(p);if(null!=B){Graph.isPageLink(B)&&(B="#"+B.substring(B.indexOf(":")+1));var H=p;e&&"xlink:href"==p&&(u.removeAttribute(p),H="href");u.setAttribute(H,B)}}b=b.getElementsByTagName("a");if(null!=b)for(var m=0;m<b.length;m++)g(b[m],"href"),g(b[m],"xlink:href")};Graph.isLink=function(b){return null!=b&&b.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g)};
@@ -2352,32 +2352,32 @@ Graph.prototype.diagramBackgroundColor="#f0f0f0";Graph.prototype.enableDiagramBa
Graph.prototype.scrollTileSize=new mxRectangle(0,0,400,400);Graph.prototype.transparentBackground=!0;Graph.prototype.selectParentAfterDelete=!1;Graph.prototype.defaultEdgeLength=80;Graph.prototype.immediateHandling=!0;Graph.prototype.connectionArrowsEnabled=!0;Graph.prototype.placeholderPattern=RegExp("%(date{.*}|[^%^{^}^ ^\"^ '^=^;]+)%","g");Graph.prototype.absoluteUrlPattern=RegExp("^(?:[a-z]+:)?//","i");Graph.prototype.defaultThemeName="default";Graph.prototype.defaultThemes={};
Graph.prototype.baseUrl=null!=urlParams.base?mxUtils.removeJavascriptProtocol(decodeURIComponent(urlParams.base)):(window!=window.top?document.referrer:document.location.toString()).split("#")[0];Graph.prototype.editAfterInsert=!1;Graph.prototype.builtInProperties=["label","tooltip","placeholders","placeholder"];Graph.prototype.standalone=!1;Graph.prototype.enableFlowAnimation=!1;Graph.prototype.roundableShapes="label rectangle internalStorage corner parallelogram swimlane triangle trapezoid ext step tee process link rhombus offPageConnector loopLimit hexagon manualInput card curlyBracket singleArrow callout doubleArrow flexArrow umlLifeline".split(" ");
Graph.prototype.vertexFontSize=null;Graph.prototype.edgeFontSize=null;Graph.prototype.adaptiveColors="auto";
-Graph.prototype.init=function(b){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(g,m){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var u=g.view.graph.tolerance,p=!0,B=null,H=mxUtils.bind(this,function(P){p=!0;B=new mxPoint(mxEvent.getClientX(P),mxEvent.getClientY(P))}),S=mxUtils.bind(this,function(P){p=p&&null!=B&&Math.abs(B.x-mxEvent.getClientX(P))<u&&Math.abs(B.y-mxEvent.getClientY(P))<u}),G=mxUtils.bind(this,function(P){if(p)for(var R=mxEvent.getSource(P);null!=
-R&&R!=m.node;){if("a"==R.nodeName.toLowerCase()){g.view.graph.labelLinkClicked(g,R,P);break}R=R.parentNode}});mxEvent.addGestureListeners(m.node,H,S,G);mxEvent.addListener(m.node,"click",function(P){mxEvent.consume(P)})};if(null!=this.tooltipHandler){var e=this.tooltipHandler.init;this.tooltipHandler.init=function(){e.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(g){var m=mxEvent.getSource(g);"A"==m.nodeName&&(m=m.getAttribute("href"),null!=
+Graph.prototype.init=function(b){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(g,m){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var u=g.view.graph.tolerance,p=!0,B=null,H=mxUtils.bind(this,function(P){p=!0;B=new mxPoint(mxEvent.getClientX(P),mxEvent.getClientY(P))}),T=mxUtils.bind(this,function(P){p=p&&null!=B&&Math.abs(B.x-mxEvent.getClientX(P))<u&&Math.abs(B.y-mxEvent.getClientY(P))<u}),G=mxUtils.bind(this,function(P){if(p)for(var R=mxEvent.getSource(P);null!=
+R&&R!=m.node;){if("a"==R.nodeName.toLowerCase()){g.view.graph.labelLinkClicked(g,R,P);break}R=R.parentNode}});mxEvent.addGestureListeners(m.node,H,T,G);mxEvent.addListener(m.node,"click",function(P){mxEvent.consume(P)})};if(null!=this.tooltipHandler){var e=this.tooltipHandler.init;this.tooltipHandler.init=function(){e.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(g){var m=mxEvent.getSource(g);"A"==m.nodeName&&(m=m.getAttribute("href"),null!=
m&&this.graph.isCustomLink(m)&&(mxEvent.isTouchEvent(g)||!mxEvent.isPopupTrigger(g))&&this.graph.customLinkClicked(m)&&mxEvent.consume(g))}))}}this.initLayoutManager()};
(function(){Graph.prototype.useCssTransforms=!1;Graph.prototype.currentScale=1;Graph.prototype.currentTranslate=new mxPoint(0,0);Graph.prototype.pasteEdgeStyle=!1;Graph.prototype.isFillState=function(B){return!this.isSpecialColor(B.style[mxConstants.STYLE_FILLCOLOR])&&"1"!=mxUtils.getValue(B.style,"lineShape",null)&&(this.model.isVertex(B.cell)||"arrow"==mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null)||"wire"==mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null)||"filledEdge"==mxUtils.getValue(B.style,
-mxConstants.STYLE_SHAPE,null)||"flexArrow"==mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null)||"mxgraph.arrows2.wedgeArrow"==mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isGradientState=function(B){return this.isFillState(B)&&"wire"!=mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null)};Graph.prototype.isStrokeState=function(B){return!0};Graph.prototype.getTextColor=function(B,H){for(var S=B==this.cellEditor.textarea&&H?"default":Graph.getGivenColor(B,H?"color":
-"background-color");null==S&&null!=B&&B!=this.cellEditor.textarea.parentNode;)S=B==this.cellEditor.textarea&&H?"default":Graph.getGivenColor(B,"color"),B=B.parentNode;if("rgba(0, 0, 0, 0)"==S||"transparent"==S)S=mxConstants.NONE;return S};Graph.prototype.isSpecialColor=function(B){return 0<=mxUtils.indexOf([mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_FILLCOLOR,"inherit","swimlane","indicated"],B)};Graph.prototype.isGlassState=function(B){B=mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null);
-return"label"==B||"rectangle"==B||"internalStorage"==B||"ext"==B||"umlLifeline"==B||"swimlane"==B||"process"==B};Graph.prototype.isRoundedState=function(B){return null!=B.shape?B.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isLineJumpState=function(B){var H=mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null);return!mxUtils.getValue(B.style,mxConstants.STYLE_CURVED,!1)&&("connector"==H||"filledEdge"==H||"wire"==
-H)};Graph.prototype.isAutoSizeState=function(B){return"1"==mxUtils.getValue(B.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(B){return null!=mxUtils.getValue(B.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(B){return!0};Graph.prototype.getVerticesAndEdges=function(B,H){B=null!=B?B:!0;H=null!=H?H:!0;var S=this.model;return S.filterDescendants(function(G){return B&&S.isVertex(G)||H&&S.isEdge(G)},S.getRoot())};Graph.prototype.applyNewEdgeStyle=
-function(B,H,S){B=this.getCellStyle(B).newEdgeStyle;if(null!=B){this.model.beginUpdate();try{var G=JSON.parse(B),P;for(P in G)this.setCellStyles(P,G[P],H),"edgeStyle"==P&&"elbowEdgeStyle"==G[P]&&null!=S&&this.setCellStyles("elbow",S==mxConstants.DIRECTION_SOUTH||S==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",H)}finally{this.model.endUpdate()}}};Graph.prototype.getCommonStyle=function(B){for(var H={},S=0;S<B.length;S++){var G=this.view.getState(B[S]);null!=G&&this.mergeStyle(G.style,H,0==S)}return H};
-Graph.prototype.mergeStyle=function(B,H,S){if(null!=B){var G={},P;for(P in B){var R=B[P];null!=R&&(G[P]=!0,null==H[P]&&S?H[P]=R:H[P]!=R&&delete H[P])}for(P in H)G[P]||delete H[P]}};Graph.prototype.getStartEditingCell=function(B,H){H=this.getCellStyle(B);H=parseInt(mxUtils.getValue(H,mxConstants.STYLE_STARTSIZE,0));this.isTable(B)&&(!this.isSwimlane(B)||0==H)&&""==this.getLabel(B)&&0<this.model.getChildCount(B)&&(B=this.model.getChildAt(B,0),H=this.getCellStyle(B),H=parseInt(mxUtils.getValue(H,mxConstants.STYLE_STARTSIZE,
-0)));if(this.isTableRow(B)&&(!this.isSwimlane(B)||0==H)&&""==this.getLabel(B)&&0<this.model.getChildCount(B))for(H=0;H<this.model.getChildCount(B);H++){var S=this.model.getChildAt(B,H);if(this.isCellEditable(S)){B=S;break}}return B};Graph.prototype.copyStyle=function(B){return this.getCellStyle(B,!1)};Graph.prototype.pasteStyle=function(B,H,S,G){null!=B&&(G||(S=null!=S?S:Graph.cellStyles,Graph.removeKeys(B,function(P){return 0>mxUtils.indexOf(S,P)})),this.updateCellStyles(B,H))};Graph.prototype.copyCellStyles=
-function(B,H,S,G,P,R,c){var f=!1,l=!1;if(0<B.length)for(var t=0;t<B.length&&(f=this.getModel().isVertex(B[t])||f,!(l=this.getModel().isEdge(B[t])||l)||!f);t++);else l=f=!0;f=f&&!R;l=l&&!c;for(t=0;t<H.length;t++)if(B=0<=mxUtils.indexOf(Graph.textStyles,H[t]),"strokeColor"!=H[t]||null!=S[t]&&"none"!=S[t])if(0<=mxUtils.indexOf(Graph.cellStyles,H[t])||"shape"==H[t])if("shape"!=H[t]&&(f||B)&&(null==S[t]?delete G[H[t]]:G[H[t]]=S[t]),l||B)null==S[t]?delete P[H[t]]:P[H[t]]=S[t]};Graph.prototype.includeDescendants=
-function(B){for(var H=[],S=0;S<B.length;S++)H=H.concat(this.model.getDescendants(B[S]));return H};Graph.prototype.pasteCellStyles=function(B,H,S,G,P){H=null!=H?H:this.currentVertexStyle;S=null!=S?S:this.currentEdgeStyle;P=null!=P?P:this.pasteEdgeStyle;this.model.beginUpdate();try{for(var R=0;R<B.length;R++){var c=B[R],f=this.model.getStyle(c),l=!1;null!=c.style&&(pairs=c.style.split(";"),l=l||0<=mxUtils.indexOf(pairs,"text"));if(l)var t=Graph.textStyles;else if(t=Graph.cellStyles.slice(),!G)for(var z=
-null!=f?f.split(";"):[],C=0;C<z.length;C++){var F=z[C],N=F.indexOf("=");if(0<=N){var K=F.substring(0,N),J=mxUtils.indexOf(t,K);0<=J&&t.splice(J,1);for(l=0;l<Graph.cellStyleGroups.length;l++){var da=Graph.cellStyleGroups[l];if(0<=mxUtils.indexOf(da,K))for(var ea=0;ea<da.length;ea++){var ca=mxUtils.indexOf(t,da[ea]);0<=ca&&t.splice(ca,1)}}}}var W=this.model.isEdge(c);l=W?S:H;for(C=0;C<t.length;C++){K=t[C];var ba=l[K];null!=ba&&("edgeStyle"!=K||P)&&(W||!W&&0>mxUtils.indexOf(Graph.edgeStyles,K))&&(f=
-mxUtils.setStyle(f,K,ba),"fontFamily"==K&&null==l.fontSource&&(f=mxUtils.setStyle(f,"fontSource",null)),W&&"rounded"==K&&"1"==ba&&null==l.curved&&(f=mxUtils.setStyle(f,"curved",null)))}Editor.simpleLabels&&(f=mxUtils.setStyle(mxUtils.setStyle(f,"html",null),"whiteSpace",null));this.model.setStyle(c,f)}}finally{this.model.endUpdate()}return B};Graph.prototype.updateCellStyles=function(B,H){this.model.beginUpdate();try{for(var S=0;S<H.length;S++)if(this.model.isVertex(H[S])||this.model.isEdge(H[S])){var G=
-this.getCellStyle(H[S],!1),P=G[mxConstants.STYLE_PERIMETER],R=!1;for(f in B){var c=B[f];if(G[f]!=c){if(f==mxConstants.STYLE_SHAPE&&"umlLifeline"==G[f]&&"umlLifeline"!=c){R=!0;var f="participant"}this.setCellStyles(f,c,[H[S]])}}R&&this.setCellStyles(mxConstants.STYLE_PERIMETER,P,[H[S]])}}finally{this.model.endUpdate()}};Graph.prototype.isFastZoomEnabled=function(){return"nocss"!=urlParams.zoom&&!mxClient.NO_FO&&!mxClient.IS_EDGE&&!this.useCssTransforms&&(this.isCssTransformsSupported()||mxClient.IS_IOS)};
-Graph.prototype.isCssTransformsSupported=function(){return this.dialect==mxConstants.DIALECT_SVG&&!mxClient.NO_FO&&(!this.lightbox||!mxClient.IS_SF)};Graph.prototype.getCellAt=function(B,H,S,G,P,R){this.useCssTransforms&&(B=B/this.currentScale-this.currentTranslate.x,H=H/this.currentScale-this.currentTranslate.y);return this.getScaledCellAt.apply(this,arguments)};Graph.prototype.getScaledCellAt=function(B,H,S,G,P,R){G=null!=G?G:!0;P=null!=P?P:!0;null==S&&(S=this.getCurrentRoot(),null==S&&(S=this.getModel().getRoot()));
-if(null!=S)for(var c=this.model.getChildCount(S)-1;0<=c;c--){var f=this.model.getChildAt(S,c),l=this.getScaledCellAt(B,H,f,G,P,R);if(null!=l)return l;if(this.isCellVisible(f)&&(P&&this.model.isEdge(f)||G&&this.model.isVertex(f))&&(l=this.view.getState(f),null!=l&&(null==R||!R(l,B,H))&&this.intersects(l,B,H)))return f}return null};Graph.prototype.isRecursiveVertexResize=function(B){return!this.isSwimlane(B.cell)&&0<this.model.getChildCount(B.cell)&&!this.isCellCollapsed(B.cell)&&"1"==mxUtils.getValue(B.style,
-"recursiveResize","1")&&null==mxUtils.getValue(B.style,"childLayout",null)};Graph.prototype.getAbsoluteParent=function(B){for(var H=this.getCellGeometry(B);null!=H&&H.relative;)B=this.getModel().getParent(B),H=this.getCellGeometry(B);return B};Graph.prototype.isPart=function(B){return"1"==mxUtils.getValue(this.getCurrentCellStyle(B),"part","0")||this.isTableCell(B)||this.isTableRow(B)};Graph.prototype.getCompositeParents=function(B){for(var H=new mxDictionary,S=[],G=0;G<B.length;G++){var P=this.getCompositeParent(B[G]);
-this.isTableCell(P)&&(P=this.graph.model.getParent(P));this.isTableRow(P)&&(P=this.graph.model.getParent(P));null==P||H.get(P)||(H.put(P,!0),S.push(P))}return S};Graph.prototype.getReferenceTerminal=function(B){if(null!=B){var H=this.getCellGeometry(B);null!=H&&H.relative&&(B=this.model.getParent(B))}null!=B&&this.model.isEdge(B)&&(B=this.model.getParent(B));null!=B&&(B=this.getCompositeParent(B));return B};Graph.prototype.getCompositeParent=function(B){for(;this.isPart(B);){var H=this.model.getParent(B);
-if(!this.model.isVertex(H))break;B=H}return B};Graph.prototype.filterSelectionCells=function(B){var H=this.getSelectionCells();if(null!=B){for(var S=[],G=0;G<H.length;G++)B(H[G])||S.push(H[G]);H=S}return H};var b=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(B){if(this.useCssTransforms){var H=this.currentScale,S=this.currentTranslate;B=new mxRectangle((B.x+2*S.x)*H-S.x,(B.y+2*S.y)*H-S.y,B.width*H,B.height*H)}b.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=
-function(B){B=this.strokeWidth;this.graph.useCssTransforms&&(B/=this.graph.currentScale);return B};mxGraphView.prototype.getGraphBounds=function(){var B=this.graphBounds;if(this.graph.useCssTransforms){var H=this.graph.currentTranslate,S=this.graph.currentScale;B=new mxRectangle((B.x+H.x)*S,(B.y+H.y)*S,B.width*S,B.height*S)}return B};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var e=mxGraphView.prototype.validate;
+mxConstants.STYLE_SHAPE,null)||"flexArrow"==mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null)||"mxgraph.arrows2.wedgeArrow"==mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isGradientState=function(B){return this.isFillState(B)&&"wire"!=mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null)};Graph.prototype.isStrokeState=function(B){return!0};Graph.prototype.getTextColor=function(B,H){for(var T=H?"color":"background-color",G=B==this.cellEditor.textarea&&H?"default":Graph.getGivenColor(B,
+T);null==G&&null!=B&&B!=this.cellEditor.textarea.parentNode;)G=B==this.cellEditor.textarea&&H?"default":Graph.getGivenColor(B,T),B=B.parentNode;if("rgba(0, 0, 0, 0)"==G||"transparent"==G)G=mxConstants.NONE;return G};Graph.prototype.isSpecialColor=function(B){return 0<=mxUtils.indexOf([mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_FILLCOLOR,"inherit","swimlane","indicated"],B)};Graph.prototype.isGlassState=function(B){B=mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null);return"label"==B||"rectangle"==
+B||"internalStorage"==B||"ext"==B||"umlLifeline"==B||"swimlane"==B||"process"==B};Graph.prototype.isRoundedState=function(B){return null!=B.shape?B.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isLineJumpState=function(B){var H=mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null);return!mxUtils.getValue(B.style,mxConstants.STYLE_CURVED,!1)&&("connector"==H||"filledEdge"==H||"wire"==H)};Graph.prototype.isAutoSizeState=
+function(B){return"1"==mxUtils.getValue(B.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(B){return null!=mxUtils.getValue(B.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(B){return!0};Graph.prototype.getVerticesAndEdges=function(B,H){B=null!=B?B:!0;H=null!=H?H:!0;var T=this.model;return T.filterDescendants(function(G){return B&&T.isVertex(G)||H&&T.isEdge(G)},T.getRoot())};Graph.prototype.applyNewEdgeStyle=function(B,H,T){B=this.getCellStyle(B).newEdgeStyle;
+if(null!=B){this.model.beginUpdate();try{var G=JSON.parse(B),P;for(P in G)this.setCellStyles(P,G[P],H),"edgeStyle"==P&&"elbowEdgeStyle"==G[P]&&null!=T&&this.setCellStyles("elbow",T==mxConstants.DIRECTION_SOUTH||T==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",H)}finally{this.model.endUpdate()}}};Graph.prototype.getCommonStyle=function(B){for(var H={},T=0;T<B.length;T++){var G=this.view.getState(B[T]);null!=G&&this.mergeStyle(G.style,H,0==T)}return H};Graph.prototype.mergeStyle=function(B,H,T){if(null!=
+B){var G={},P;for(P in B){var R=B[P];null!=R&&(G[P]=!0,null==H[P]&&T?H[P]=R:H[P]!=R&&delete H[P])}for(P in H)G[P]||delete H[P]}};Graph.prototype.getStartEditingCell=function(B,H){H=this.getCellStyle(B);H=parseInt(mxUtils.getValue(H,mxConstants.STYLE_STARTSIZE,0));this.isTable(B)&&(!this.isSwimlane(B)||0==H)&&""==this.getLabel(B)&&0<this.model.getChildCount(B)&&(B=this.model.getChildAt(B,0),H=this.getCellStyle(B),H=parseInt(mxUtils.getValue(H,mxConstants.STYLE_STARTSIZE,0)));if(this.isTableRow(B)&&
+(!this.isSwimlane(B)||0==H)&&""==this.getLabel(B)&&0<this.model.getChildCount(B))for(H=0;H<this.model.getChildCount(B);H++){var T=this.model.getChildAt(B,H);if(this.isCellEditable(T)){B=T;break}}return B};Graph.prototype.copyStyle=function(B){return this.getCellStyle(B,!1)};Graph.prototype.pasteStyle=function(B,H,T,G){null!=B&&(G||(T=null!=T?T:Graph.cellStyles,Graph.removeKeys(B,function(P){return 0>mxUtils.indexOf(T,P)})),this.updateCellStyles(B,H))};Graph.prototype.copyCellStyles=function(B,H,T,
+G,P,R,c){var f=!1,l=!1;if(0<B.length)for(var t=0;t<B.length&&(f=this.getModel().isVertex(B[t])||f,!(l=this.getModel().isEdge(B[t])||l)||!f);t++);else l=f=!0;f=f&&!R;l=l&&!c;for(t=0;t<H.length;t++)if(B=0<=mxUtils.indexOf(Graph.textStyles,H[t]),"strokeColor"!=H[t]||null!=T[t]&&"none"!=T[t])if(0<=mxUtils.indexOf(Graph.cellStyles,H[t])||"shape"==H[t])if("shape"!=H[t]&&(f||B)&&(null==T[t]?delete G[H[t]]:G[H[t]]=T[t]),l||B)null==T[t]?delete P[H[t]]:P[H[t]]=T[t]};Graph.prototype.includeDescendants=function(B){for(var H=
+[],T=0;T<B.length;T++)H=H.concat(this.model.getDescendants(B[T]));return H};Graph.prototype.pasteCellStyles=function(B,H,T,G,P){H=null!=H?H:this.currentVertexStyle;T=null!=T?T:this.currentEdgeStyle;P=null!=P?P:this.pasteEdgeStyle;this.model.beginUpdate();try{for(var R=0;R<B.length;R++){var c=B[R],f=this.model.getStyle(c),l=!1;null!=c.style&&(pairs=c.style.split(";"),l=l||0<=mxUtils.indexOf(pairs,"text"));if(l)var t=Graph.textStyles;else if(t=Graph.cellStyles.slice(),!G)for(var z=null!=f?f.split(";"):
+[],C=0;C<z.length;C++){var F=z[C],N=F.indexOf("=");if(0<=N){var K=F.substring(0,N),J=mxUtils.indexOf(t,K);0<=J&&t.splice(J,1);for(l=0;l<Graph.cellStyleGroups.length;l++){var da=Graph.cellStyleGroups[l];if(0<=mxUtils.indexOf(da,K))for(var ea=0;ea<da.length;ea++){var ca=mxUtils.indexOf(t,da[ea]);0<=ca&&t.splice(ca,1)}}}}var W=this.model.isEdge(c);l=W?T:H;for(C=0;C<t.length;C++){K=t[C];var ba=l[K];null!=ba&&("edgeStyle"!=K||P)&&(W||!W&&0>mxUtils.indexOf(Graph.edgeStyles,K))&&(f=mxUtils.setStyle(f,K,
+ba),"fontFamily"==K&&null==l.fontSource&&(f=mxUtils.setStyle(f,"fontSource",null)),W&&"rounded"==K&&"1"==ba&&null==l.curved&&(f=mxUtils.setStyle(f,"curved",null)))}Editor.simpleLabels&&(f=mxUtils.setStyle(mxUtils.setStyle(f,"html",null),"whiteSpace",null));this.model.setStyle(c,f)}}finally{this.model.endUpdate()}return B};Graph.prototype.updateCellStyles=function(B,H){this.model.beginUpdate();try{for(var T=0;T<H.length;T++)if(this.model.isVertex(H[T])||this.model.isEdge(H[T])){var G=this.getCellStyle(H[T],
+!1),P=G[mxConstants.STYLE_PERIMETER],R=!1;for(f in B){var c=B[f];if(G[f]!=c){if(f==mxConstants.STYLE_SHAPE&&"umlLifeline"==G[f]&&"umlLifeline"!=c){R=!0;var f="participant"}this.setCellStyles(f,c,[H[T]])}}R&&this.setCellStyles(mxConstants.STYLE_PERIMETER,P,[H[T]])}}finally{this.model.endUpdate()}};Graph.prototype.isFastZoomEnabled=function(){return"nocss"!=urlParams.zoom&&!mxClient.NO_FO&&!mxClient.IS_EDGE&&!this.useCssTransforms&&(this.isCssTransformsSupported()||mxClient.IS_IOS)};Graph.prototype.isCssTransformsSupported=
+function(){return this.dialect==mxConstants.DIALECT_SVG&&!mxClient.NO_FO&&(!this.lightbox||!mxClient.IS_SF)};Graph.prototype.getCellAt=function(B,H,T,G,P,R){this.useCssTransforms&&(B=B/this.currentScale-this.currentTranslate.x,H=H/this.currentScale-this.currentTranslate.y);return this.getScaledCellAt.apply(this,arguments)};Graph.prototype.getScaledCellAt=function(B,H,T,G,P,R){G=null!=G?G:!0;P=null!=P?P:!0;null==T&&(T=this.getCurrentRoot(),null==T&&(T=this.getModel().getRoot()));if(null!=T)for(var c=
+this.model.getChildCount(T)-1;0<=c;c--){var f=this.model.getChildAt(T,c),l=this.getScaledCellAt(B,H,f,G,P,R);if(null!=l)return l;if(this.isCellVisible(f)&&(P&&this.model.isEdge(f)||G&&this.model.isVertex(f))&&(l=this.view.getState(f),null!=l&&(null==R||!R(l,B,H))&&this.intersects(l,B,H)))return f}return null};Graph.prototype.isRecursiveVertexResize=function(B){return!this.isSwimlane(B.cell)&&0<this.model.getChildCount(B.cell)&&!this.isCellCollapsed(B.cell)&&"1"==mxUtils.getValue(B.style,"recursiveResize",
+"1")&&null==mxUtils.getValue(B.style,"childLayout",null)};Graph.prototype.getAbsoluteParent=function(B){for(var H=this.getCellGeometry(B);null!=H&&H.relative;)B=this.getModel().getParent(B),H=this.getCellGeometry(B);return B};Graph.prototype.isPart=function(B){return"1"==mxUtils.getValue(this.getCurrentCellStyle(B),"part","0")||this.isTableCell(B)||this.isTableRow(B)};Graph.prototype.getCompositeParents=function(B){for(var H=new mxDictionary,T=[],G=0;G<B.length;G++){var P=this.getCompositeParent(B[G]);
+this.isTableCell(P)&&(P=this.graph.model.getParent(P));this.isTableRow(P)&&(P=this.graph.model.getParent(P));null==P||H.get(P)||(H.put(P,!0),T.push(P))}return T};Graph.prototype.getReferenceTerminal=function(B){if(null!=B){var H=this.getCellGeometry(B);null!=H&&H.relative&&(B=this.model.getParent(B))}null!=B&&this.model.isEdge(B)&&(B=this.model.getParent(B));null!=B&&(B=this.getCompositeParent(B));return B};Graph.prototype.getCompositeParent=function(B){for(;this.isPart(B);){var H=this.model.getParent(B);
+if(!this.model.isVertex(H))break;B=H}return B};Graph.prototype.filterSelectionCells=function(B){var H=this.getSelectionCells();if(null!=B){for(var T=[],G=0;G<H.length;G++)B(H[G])||T.push(H[G]);H=T}return H};var b=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(B){if(this.useCssTransforms){var H=this.currentScale,T=this.currentTranslate;B=new mxRectangle((B.x+2*T.x)*H-T.x,(B.y+2*T.y)*H-T.y,B.width*H,B.height*H)}b.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=
+function(B){B=this.strokeWidth;this.graph.useCssTransforms&&(B/=this.graph.currentScale);return B};mxGraphView.prototype.getGraphBounds=function(){var B=this.graphBounds;if(this.graph.useCssTransforms){var H=this.graph.currentTranslate,T=this.graph.currentScale;B=new mxRectangle((B.x+H.x)*T,(B.y+H.y)*T,B.width*T,B.height*T)}return B};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var e=mxGraphView.prototype.validate;
mxGraphView.prototype.validate=function(B){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y,this.scale=1,this.translate.x=0,this.translate.y=0);e.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,this.translate.y=this.graph.currentTranslate.y)};var g=mxGraph.prototype.getCellsForGroup;
-Graph.prototype.getCellsForGroup=function(B){B=g.apply(this,arguments);for(var H=[],S=0;S<B.length;S++)this.isTableRow(B[S])||this.isTableCell(B[S])||H.push(B[S]);return H};var m=mxGraph.prototype.getCellsForUngroup;Graph.prototype.getCellsForUngroup=function(B){B=m.apply(this,arguments);for(var H=[],S=0;S<B.length;S++)this.isTable(B[S])||this.isTableRow(B[S])||this.isTableCell(B[S])||H.push(B[S]);return H};Graph.prototype.updateCssTransform=function(){var B=this.view.getDrawPane();if(null!=B)if(B=
-B.parentNode,this.useCssTransforms){var H=B.getAttribute("transform");B.setAttribute("transformOrigin","0 0");var S=Math.round(100*this.currentScale)/100;B.setAttribute("transform","scale("+S+","+S+")translate("+Math.round(100*this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");H!=B.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",B.getAttribute("transform"))}else B.removeAttribute("transformOrigin"),B.removeAttribute("transform")};
-var u=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var B=this.graph.useCssTransforms,H=this.scale,S=this.translate;B&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);u.apply(this,arguments);B&&(this.scale=H,this.translate=S)};var p=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(B,H,S){var G=this.useCssTransforms,P=this.view.scale,R=this.view.translate;G&&(this.view.scale=1,this.view.translate=
+Graph.prototype.getCellsForGroup=function(B){B=g.apply(this,arguments);for(var H=[],T=0;T<B.length;T++)this.isTableRow(B[T])||this.isTableCell(B[T])||H.push(B[T]);return H};var m=mxGraph.prototype.getCellsForUngroup;Graph.prototype.getCellsForUngroup=function(B){B=m.apply(this,arguments);for(var H=[],T=0;T<B.length;T++)this.isTable(B[T])||this.isTableRow(B[T])||this.isTableCell(B[T])||H.push(B[T]);return H};Graph.prototype.updateCssTransform=function(){var B=this.view.getDrawPane();if(null!=B)if(B=
+B.parentNode,this.useCssTransforms){var H=B.getAttribute("transform");B.setAttribute("transformOrigin","0 0");var T=Math.round(100*this.currentScale)/100;B.setAttribute("transform","scale("+T+","+T+")translate("+Math.round(100*this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");H!=B.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",B.getAttribute("transform"))}else B.removeAttribute("transformOrigin"),B.removeAttribute("transform")};
+var u=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var B=this.graph.useCssTransforms,H=this.scale,T=this.translate;B&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);u.apply(this,arguments);B&&(this.scale=H,this.translate=T)};var p=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(B,H,T){var G=this.useCssTransforms,P=this.view.scale,R=this.view.translate;G&&(this.view.scale=1,this.view.translate=
new mxPoint(0,0),this.useCssTransforms=!1);p.apply(this,arguments);G&&(this.view.scale=P,this.view.translate=R,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox};Graph.prototype.isViewer=function(){return!1};
Graph.prototype.labelLinkClicked=function(b,e,g){var m=e.getAttribute("href");m!=Graph.sanitizeLink(m)&&Graph.sanitizeNode(e);if(null!=m&&!this.isCustomLink(m)&&(mxEvent.isLeftMouseButton(g)&&!mxEvent.isPopupTrigger(g)||mxEvent.isTouchEvent(g))){if(!this.isEnabled()||this.isCellLocked(b.cell))b=this.isBlankLink(m)?this.linkTarget:"_top",this.openLink(this.getAbsoluteUrl(m),b);mxEvent.consume(g)}};
Graph.prototype.openLink=function(b,e,g){var m=window;try{if(b=Graph.sanitizeLink(b),null!=b)if("_self"==e&&window!=window.top)window.location.href=b;else if(b.substring(0,this.baseUrl.length)==this.baseUrl&&"#"==b.charAt(this.baseUrl.length)&&"_top"==e&&window==window.top){var u=b.split("#")[1];window.location.hash=="#"+u&&(window.location.hash="");window.location.hash=u}else m=window.open(b,null!=e?e:"_blank",g?null:"noopener,noreferrer"),null==m||g||(m.opener=null)}catch(p){}return m};
@@ -2393,7 +2393,7 @@ Graph.prototype.createLayouts=function(b){for(var e=[],g=0;g<b.length;g++)if(0<=
Graph.prototype.getDataForCells=function(b,e){for(var g=[],m=0;m<b.length;m++){var u={};u.id=b[m].id;var p=null!=b[m].value?b[m].value.attributes:null;this.isReplacePlaceholders(b[m])&&e&&(u.value=this.getLabel(b[m]));if(null!=p)for(var B=0;B<p.length;B++)u[p[B].nodeName]=p[B].nodeValue;else u.label=this.convertValueToString(b[m]);g.push(u)}return g};
Graph.prototype.getNodesForCells=function(b){for(var e=[],g=0;g<b.length;g++){var m=this.view.getState(b[g]);if(null!=m){for(var u=this.cellRenderer.getShapesForState(m),p=0;p<u.length;p++)null!=u[p]&&null!=u[p].node&&e.push(u[p].node);null!=m.control&&null!=m.control.node&&e.push(m.control.node)}}return e};
Graph.prototype.createWipeAnimations=function(b,e){for(var g=[],m=0;m<b.length;m++){var u=this.view.getState(b[m]);null!=u&&null!=u.shape&&(this.model.isEdge(u.cell)&&null!=u.absolutePoints&&1<u.absolutePoints.length?g.push(this.createEdgeWipeAnimation(u,e)):this.model.isVertex(u.cell)&&null!=u.shape.bounds&&g.push(this.createVertexWipeAnimation(u,e)))}return g};
-Graph.prototype.createEdgeWipeAnimation=function(b,e){var g=b.absolutePoints.slice(),m=b.segments,u=b.length,p=g.length;return{execute:mxUtils.bind(this,function(B,H){if(null!=b.shape){var S=[g[0]];H=B/H;e||(H=1-H);for(var G=u*H,P=1;P<p;P++)if(G<=m[P-1]){S.push(new mxPoint(g[P-1].x+(g[P].x-g[P-1].x)*G/m[P-1],g[P-1].y+(g[P].y-g[P-1].y)*G/m[P-1]));break}else G-=m[P-1],S.push(g[P]);b.shape.points=S;b.shape.redraw();0==B&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1);null!=b.text&&null!=
+Graph.prototype.createEdgeWipeAnimation=function(b,e){var g=b.absolutePoints.slice(),m=b.segments,u=b.length,p=g.length;return{execute:mxUtils.bind(this,function(B,H){if(null!=b.shape){var T=[g[0]];H=B/H;e||(H=1-H);for(var G=u*H,P=1;P<p;P++)if(G<=m[P-1]){T.push(new mxPoint(g[P-1].x+(g[P].x-g[P-1].x)*G/m[P-1],g[P-1].y+(g[P].y-g[P-1].y)*G/m[P-1]));break}else G-=m[P-1],T.push(g[P]);b.shape.points=T;b.shape.redraw();0==B&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1);null!=b.text&&null!=
b.text.node&&(b.text.node.style.opacity=H)}}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.points=g,b.shape.redraw(),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),e?1:0))})}};
Graph.prototype.createVertexWipeAnimation=function(b,e){var g=new mxRectangle.fromRectangle(b.shape.bounds);return{execute:mxUtils.bind(this,function(m,u){null!=b.shape&&(u=m/u,e||(u=1-u),b.shape.bounds=new mxRectangle(g.x,g.y,g.width*u,g.height),b.shape.redraw(),0==m&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=u))}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.bounds=g,b.shape.redraw(),null!=b.text&&null!=b.text.node&&
(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),e?1:0))})}};Graph.prototype.executeAnimations=function(b,e,g,m){g=null!=g?g:30;m=null!=m?m:30;var u=null,p=0,B=mxUtils.bind(this,function(){if(p==g||this.stoppingCustomActions){window.clearInterval(u);for(var H=0;H<b.length;H++)b[H].stop();null!=e&&e()}else for(H=0;H<b.length;H++)b[H].execute(p,g);p++});u=window.setInterval(B,m);B()};
@@ -2408,17 +2408,17 @@ Graph.prototype.isLabelMovable=function(b){var e=this.getCurrentCellStyle(b);ret
Graph.prototype.getClickableLinkForCell=function(b){do{var e=this.getLinkForCell(b);if(null!=e)return e;b=this.model.getParent(b)}while(null!=b);return null};Graph.prototype.getGlobalVariable=function(b){var e=null;"date"==b?e=(new Date).toLocaleDateString():"time"==b?e=(new Date).toLocaleTimeString():"timestamp"==b?e=(new Date).toLocaleString():"date{"==b.substring(0,5)&&(b=b.substring(5,b.length-1),e=this.formatDate(new Date,b));return e};
Graph.prototype.formatDate=function(b,e,g){null==this.dateFormatCache&&(this.dateFormatCache={i18n:{dayNames:"Sun Mon Tue Wed Thu Fri Sat Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),monthNames:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec January February March April May June July August September October November December".split(" ")},masks:{"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",
shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"}});var m=this.dateFormatCache,u=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,p=/[^-+\dA-Z]/g,B=function(C,F){C=String(C);for(F=F||2;C.length<F;)C="0"+C;return C};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(b)||
-/\d/.test(b)||(e=b,b=void 0);b=b?new Date(b):new Date;if(isNaN(b))throw SyntaxError("invalid date");e=String(m.masks[e]||e||m.masks["default"]);"UTC:"==e.slice(0,4)&&(e=e.slice(4),g=!0);var H=g?"getUTC":"get",S=b[H+"Date"](),G=b[H+"Day"](),P=b[H+"Month"](),R=b[H+"FullYear"](),c=b[H+"Hours"](),f=b[H+"Minutes"](),l=b[H+"Seconds"]();H=b[H+"Milliseconds"]();var t=g?0:b.getTimezoneOffset(),z={d:S,dd:B(S),ddd:m.i18n.dayNames[G],dddd:m.i18n.dayNames[G+7],m:P+1,mm:B(P+1),mmm:m.i18n.monthNames[P],mmmm:m.i18n.monthNames[P+
-12],yy:String(R).slice(2),yyyy:R,h:c%12||12,hh:B(c%12||12),H:c,HH:B(c),M:f,MM:B(f),s:l,ss:B(l),l:B(H,3),L:B(99<H?Math.round(H/10):H),t:12>c?"a":"p",tt:12>c?"am":"pm",T:12>c?"A":"P",TT:12>c?"AM":"PM",Z:g?"UTC":(String(b).match(u)||[""]).pop().replace(p,""),o:(0<t?"-":"+")+B(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4),S:["th","st","nd","rd"][3<S%10?0:(10!=S%100-S%10)*S%10]};return e.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(C){return C in z?z[C]:C.slice(1,
+/\d/.test(b)||(e=b,b=void 0);b=b?new Date(b):new Date;if(isNaN(b))throw SyntaxError("invalid date");e=String(m.masks[e]||e||m.masks["default"]);"UTC:"==e.slice(0,4)&&(e=e.slice(4),g=!0);var H=g?"getUTC":"get",T=b[H+"Date"](),G=b[H+"Day"](),P=b[H+"Month"](),R=b[H+"FullYear"](),c=b[H+"Hours"](),f=b[H+"Minutes"](),l=b[H+"Seconds"]();H=b[H+"Milliseconds"]();var t=g?0:b.getTimezoneOffset(),z={d:T,dd:B(T),ddd:m.i18n.dayNames[G],dddd:m.i18n.dayNames[G+7],m:P+1,mm:B(P+1),mmm:m.i18n.monthNames[P],mmmm:m.i18n.monthNames[P+
+12],yy:String(R).slice(2),yyyy:R,h:c%12||12,hh:B(c%12||12),H:c,HH:B(c),M:f,MM:B(f),s:l,ss:B(l),l:B(H,3),L:B(99<H?Math.round(H/10):H),t:12>c?"a":"p",tt:12>c?"am":"pm",T:12>c?"A":"P",TT:12>c?"AM":"PM",Z:g?"UTC":(String(b).match(u)||[""]).pop().replace(p,""),o:(0<t?"-":"+")+B(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4),S:["th","st","nd","rd"][3<T%10?0:(10!=T%100-T%10)*T%10]};return e.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(C){return C in z?z[C]:C.slice(1,
C.length-1)})};Graph.prototype.getLayerForCell=function(b){for(;null!=b&&!this.model.isLayer(b);)b=this.model.getParent(b);return b};Graph.prototype.getLayerForCells=function(b){var e=null;if(0<b.length){e=this.getLayerForCell(b[0]);for(var g=1;g<b.length;g++)if(!this.model.isAncestor(e,b[g])){e=null;break}}return e};
-Graph.prototype.createLayersDialog=function(b,e){var g=document.createElement("div");g.style.position="absolute";for(var m=this.getModel(),u=m.getChildCount(m.root),p=0;p<u;p++)mxUtils.bind(this,function(B){function H(){m.isVisible(B)?(P.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(G,75)):(P.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(G,25))}var S=this.convertValueToString(B)||mxResources.get("background")||"Background",G=document.createElement("div");G.style.overflow=
-"hidden";G.style.textOverflow="ellipsis";G.style.padding="2px";G.style.whiteSpace="nowrap";G.style.cursor="pointer";G.setAttribute("title",mxResources.get(m.isVisible(B)?"hideIt":"show",[S]));var P=document.createElement("img");P.setAttribute("draggable","false");P.setAttribute("align","absmiddle");P.setAttribute("border","0");P.style.position="relative";P.style.width="16px";P.style.padding="0px 6px 0 4px";e&&(P.style.filter="invert(100%)",P.style.top="-2px");G.appendChild(P);mxUtils.write(G,S);g.appendChild(G);
+Graph.prototype.createLayersDialog=function(b,e){var g=document.createElement("div");g.style.position="absolute";for(var m=this.getModel(),u=m.getChildCount(m.root),p=0;p<u;p++)mxUtils.bind(this,function(B){function H(){m.isVisible(B)?(P.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(G,75)):(P.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(G,25))}var T=this.convertValueToString(B)||mxResources.get("background")||"Background",G=document.createElement("div");G.style.overflow=
+"hidden";G.style.textOverflow="ellipsis";G.style.padding="2px";G.style.whiteSpace="nowrap";G.style.cursor="pointer";G.setAttribute("title",mxResources.get(m.isVisible(B)?"hideIt":"show",[T]));var P=document.createElement("img");P.setAttribute("draggable","false");P.setAttribute("align","absmiddle");P.setAttribute("border","0");P.style.position="relative";P.style.width="16px";P.style.padding="0px 6px 0 4px";e&&(P.style.filter="invert(100%)",P.style.top="-2px");G.appendChild(P);mxUtils.write(G,T);g.appendChild(G);
mxEvent.addListener(G,"click",function(){m.setVisible(B,!m.isVisible(B));H();null!=b&&b(B)});H()})(m.getChildAt(m.root,p));return g};
-Graph.prototype.replacePlaceholders=function(b,e,g,m){m=[];if(null!=e){for(var u=0;match=this.placeholderPattern.exec(e);){var p=match[0];if(2<p.length&&"%label%"!=p&&"%tooltip%"!=p){var B=null;if(match.index>u&&"%"==e.charAt(match.index-1))B=p.substring(1);else{var H=p.substring(1,p.length-1),S={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==H)B=b.id;else if("width"===H.substring(0,5)&&this.model.isVertex(b)){var G=this.getCellGeometry(b);
-null!=G&&(B=G.width,5<H.length&&(B=Editor.toUnit(B,S[H.substring(6)])))}else if("height"==H.substring(0,6)&&this.model.isVertex(b))G=this.getCellGeometry(b),null!=G&&(B=G.height,6<H.length&&(B=Editor.toUnit(B,S[H.substring(7)])));else if("length"==H.substring(0,6)){for(G=b;null!=G&&!this.model.isEdge(G);)G=this.model.getParent(G);G=this.view.getState(G);null!=G&&(B=Math.round(G.length/this.view.scale),6<H.length&&(B=Editor.toUnit(B,S[H.substring(7)])))}else if(0>H.indexOf("{"))for(S=b;null==B&&null!=
-S;)null!=S.value&&"object"==typeof S.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(B=S.getAttribute(H+"_"+Graph.diagramLanguage)),null==B&&(B=S.hasAttribute(H)?null!=S.getAttribute(H)?S.getAttribute(H):"":null)),S=this.model.getParent(S);null==B&&(B=this.getGlobalVariable(H));null==B&&null!=g&&(B=g[H])}m.push(e.substring(u,match.index)+(null!=B?B:p));u=match.index+p.length}}m.push(e.substring(u))}return m.join("")};
+Graph.prototype.replacePlaceholders=function(b,e,g,m){m=[];if(null!=e){for(var u=0;match=this.placeholderPattern.exec(e);){var p=match[0];if(2<p.length&&"%label%"!=p&&"%tooltip%"!=p){var B=null;if(match.index>u&&"%"==e.charAt(match.index-1))B=p.substring(1);else{var H=p.substring(1,p.length-1),T={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==H)B=b.id;else if("width"===H.substring(0,5)&&this.model.isVertex(b)){var G=this.getCellGeometry(b);
+null!=G&&(B=G.width,5<H.length&&(B=Editor.toUnit(B,T[H.substring(6)])))}else if("height"==H.substring(0,6)&&this.model.isVertex(b))G=this.getCellGeometry(b),null!=G&&(B=G.height,6<H.length&&(B=Editor.toUnit(B,T[H.substring(7)])));else if("length"==H.substring(0,6)){for(G=b;null!=G&&!this.model.isEdge(G);)G=this.model.getParent(G);G=this.view.getState(G);null!=G&&(B=Math.round(G.length/this.view.scale),6<H.length&&(B=Editor.toUnit(B,T[H.substring(7)])))}else if(0>H.indexOf("{"))for(T=b;null==B&&null!=
+T;)null!=T.value&&"object"==typeof T.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(B=T.getAttribute(H+"_"+Graph.diagramLanguage)),null==B&&(B=T.hasAttribute(H)?null!=T.getAttribute(H)?T.getAttribute(H):"":null)),T=this.model.getParent(T);null==B&&(B=this.getGlobalVariable(H));null==B&&null!=g&&(B=g[H])}m.push(e.substring(u,match.index)+(null!=B?B:p));u=match.index+p.length}}m.push(e.substring(u))}return m.join("")};
Graph.prototype.restoreSelection=function(b){if(null!=b&&0<b.length){for(var e=[],g=0;g<b.length;g++){var m=this.model.getCell(b[g].id);null!=m&&e.push(m)}this.setSelectionCells(e)}else this.clearSelection()};Graph.prototype.selectCellForEvent=function(b,e){mxEvent.isShiftDown(e)&&!this.isSelectionEmpty()&&this.selectTableRange(this.getSelectionCell(),b)||mxGraph.prototype.selectCellForEvent.apply(this,arguments)};
-Graph.prototype.selectTableRange=function(b,e){var g=!1;if(this.isTableCell(b)&&this.isTableCell(e)){var m=this.model.getParent(b),u=this.model.getParent(m),p=this.model.getParent(e);if(u==this.model.getParent(p)){b=m.getIndex(b);m=u.getIndex(m);var B=p.getIndex(e),H=u.getIndex(p);p=Math.max(m,H);e=Math.min(b,B);b=Math.max(b,B);B=[];for(m=Math.min(m,H);m<=p;m++){H=this.model.getChildAt(u,m);for(var S=e;S<=b;S++)B.push(this.model.getChildAt(H,S))}0<B.length&&(1<B.length||1<this.getSelectionCount()||
+Graph.prototype.selectTableRange=function(b,e){var g=!1;if(this.isTableCell(b)&&this.isTableCell(e)){var m=this.model.getParent(b),u=this.model.getParent(m),p=this.model.getParent(e);if(u==this.model.getParent(p)){b=m.getIndex(b);m=u.getIndex(m);var B=p.getIndex(e),H=u.getIndex(p);p=Math.max(m,H);e=Math.min(b,B);b=Math.max(b,B);B=[];for(m=Math.min(m,H);m<=p;m++){H=this.model.getChildAt(u,m);for(var T=e;T<=b;T++)B.push(this.model.getChildAt(H,T))}0<B.length&&(1<B.length||1<this.getSelectionCount()||
!this.isCellSelected(B[0]))&&(this.setSelectionCells(B),g=!0)}}return g};
Graph.prototype.snapCellsToGrid=function(b,e){this.getModel().beginUpdate();try{for(var g=0;g<b.length;g++){var m=b[g],u=this.getCellGeometry(m);if(null!=u){u=u.clone();if(this.getModel().isVertex(m))u.x=Math.round(u.x/e)*e,u.y=Math.round(u.y/e)*e,u.width=Math.round(u.width/e)*e,u.height=Math.round(u.height/e)*e;else if(this.getModel().isEdge(m)&&null!=u.points)for(var p=0;p<u.points.length;p++)u.points[p].x=Math.round(u.points[p].x/e)*e,u.points[p].y=Math.round(u.points[p].y/e)*e;this.getModel().setGeometry(m,
u)}}}finally{this.getModel().endUpdate()}};Graph.prototype.removeChildCells=function(b){this.model.beginUpdate();try{for(var e=this.model.getChildCount(b);0<=e;e--)this.model.remove(this.model.getChildAt(b,e))}finally{this.model.endUpdate()}};
@@ -2426,13 +2426,13 @@ Graph.prototype.updateShapes=function(b,e,g){this.model.beginUpdate();try{var m=
this.model.isEdge(b)&&this.model.isEdge(e[p]))if(g){var B=this.model.getStyle(e[p]);if(null!=B){var H=B.split(";");0<H.length&&0>H[0].indexOf("=")&&(H=H.slice(1));this.model.setStyle(e[p],H.join(";"))}this.setCellStyles(mxConstants.STYLE_PERIMETER,null,[e[p]]);this.setCellStyles("points",null,[e[p]]);this.pasteStyle(u,[e[p]],null,!0)}else u=this.copyStyle(e[p]),this.model.setStyle(e[p],m),this.pasteStyle(u,[e[p]]);"1"==mxUtils.getValue(this.getCellStyle(e[p],!1),"composite","0")&&this.removeChildCells(e[p])}}finally{this.model.endUpdate()}};
Graph.prototype.selectCellsForConnectVertex=function(b,e,g){2==b.length&&this.model.isVertex(b[1])?(this.setSelectionCell(b[1]),this.scrollCellToVisible(b[1]),null!=g&&(mxEvent.isTouchEvent(e)?g.update(g.getState(this.view.getState(b[1]))):g.reset())):this.setSelectionCells(b)};Graph.prototype.isCloneConnectSource=function(b){var e=null;null!=this.layoutManager&&(e=this.layoutManager.getLayout(this.model.getParent(b)));return this.isTableRow(b)||this.isTableCell(b)||null!=e&&e.constructor==mxStackLayout};
Graph.prototype.insertEdgeBeforeCell=function(b,e){for(var g=e;null!=g.parent&&null!=g.geometry&&g.geometry.relative&&g.parent!=b.parent;)g=this.model.getParent(g);null!=g&&null!=g.parent&&g.parent==b.parent&&(e=g.parent.getIndex(g),this.model.add(g.parent,b,e))};
-Graph.prototype.connectVertex=function(b,e,g,m,u,p,B,H){p=p?p:!1;if(b.geometry.relative&&this.model.isEdge(b.parent))return[];for(;b.geometry.relative&&this.model.isVertex(b.parent);)b=b.parent;var S=this.isCloneConnectSource(b),G=S?b:this.getCompositeParent(b),P=b.geometry.relative&&null!=b.parent.geometry?new mxPoint(b.parent.geometry.width*b.geometry.x,b.parent.geometry.height*b.geometry.y):new mxPoint(G.geometry.x,G.geometry.y);e==mxConstants.DIRECTION_NORTH?(P.x+=G.geometry.width/2,P.y-=g):e==
+Graph.prototype.connectVertex=function(b,e,g,m,u,p,B,H){p=p?p:!1;if(b.geometry.relative&&this.model.isEdge(b.parent))return[];for(;b.geometry.relative&&this.model.isVertex(b.parent);)b=b.parent;var T=this.isCloneConnectSource(b),G=T?b:this.getCompositeParent(b),P=b.geometry.relative&&null!=b.parent.geometry?new mxPoint(b.parent.geometry.width*b.geometry.x,b.parent.geometry.height*b.geometry.y):new mxPoint(G.geometry.x,G.geometry.y);e==mxConstants.DIRECTION_NORTH?(P.x+=G.geometry.width/2,P.y-=g):e==
mxConstants.DIRECTION_SOUTH?(P.x+=G.geometry.width/2,P.y+=G.geometry.height+g):(P.x=e==mxConstants.DIRECTION_WEST?P.x-g:P.x+(G.geometry.width+g),P.y+=G.geometry.height/2);var R=this.view.getState(this.model.getParent(b));g=this.view.scale;var c=this.view.translate;G=c.x*g;c=c.y*g;null!=R&&this.model.isVertex(R.cell)&&(G=R.x,c=R.y);this.model.isVertex(b.parent)&&b.geometry.relative&&(P.x+=b.parent.geometry.x,P.y+=b.parent.geometry.y);p=p?null:(new mxRectangle(G+P.x*g,c+P.y*g)).grow(40*g);p=null!=p?
this.getCells(0,0,0,0,null,null,p,null,!0):null;R=this.view.getState(b);var f=null,l=null;if(null!=p){p=p.reverse();for(var t=0;t<p.length;t++)if(!this.isCellLocked(p[t])&&!this.model.isEdge(p[t])&&p[t]!=b)if(!this.model.isAncestor(b,p[t])&&this.isContainer(p[t])&&(null==f||p[t]==this.model.getParent(b)))f=p[t];else if(null==l&&this.isCellConnectable(p[t])&&!this.model.isAncestor(p[t],b)&&!this.isSwimlane(p[t])){var z=this.view.getState(p[t]);null==R||null==z||mxUtils.intersects(R,z)||(l=p[t])}}var C=
-!mxEvent.isShiftDown(m)||mxEvent.isControlDown(m)||u;C&&("1"!=urlParams.sketch||u)&&(e==mxConstants.DIRECTION_NORTH?P.y-=b.geometry.height/2:e==mxConstants.DIRECTION_SOUTH?P.y+=b.geometry.height/2:P.x=e==mxConstants.DIRECTION_WEST?P.x-b.geometry.width/2:P.x+b.geometry.width/2);var F=[],N=l;l=f;u=mxUtils.bind(this,function(K){if(null==B||null!=K||null==l&&S){this.model.beginUpdate();try{if(null==N&&C){var J=this.getAbsoluteParent(null!=K?K:b);J=S?b:this.getCompositeParent(J);N=null!=K?K:this.duplicateCells([J],
-!1)[0];null!=K&&this.addCells([N],this.model.getParent(b),null,null,null,!0);var da=this.getCellGeometry(N);null!=da&&(null!=K&&"1"==urlParams.sketch&&(e==mxConstants.DIRECTION_NORTH?P.y-=da.height/2:e==mxConstants.DIRECTION_SOUTH?P.y+=da.height/2:P.x=e==mxConstants.DIRECTION_WEST?P.x-da.width/2:P.x+da.width/2),da.x=P.x-da.width/2,da.y=P.y-da.height/2);null!=f?(this.addCells([N],f,null,null,null,!0),l=null):C&&!S&&this.addCells([N],this.getDefaultParent(),null,null,null,!0)}var ea=mxEvent.isControlDown(m)&&
-mxEvent.isShiftDown(m)&&C||null==l&&S?null:this.insertEdge(this.model.getParent(b),null,"",b,N,this.createCurrentEdgeStyle());null!=ea&&(F.push(ea),this.applyNewEdgeStyle(b,[ea],e),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(ea,b));if(null==l&&null!=N&&null!=b.parent&&S&&e==mxConstants.DIRECTION_WEST){var ca=b.parent.getIndex(b);this.model.add(b.parent,N,ca)}null==l&&null!=N&&F.push(N);null==N&&null!=ea&&ea.geometry.setTerminalPoint(P,!1);null!=ea&&this.fireEvent(new mxEventObject("cellsInserted",
-"cells",[ea]))}finally{this.model.endUpdate()}}if(null!=H)H(F);else return F});if(null==B||null!=N||!C||null==l&&S)return u(N);B(G+P.x*g,c+P.y*g,u)};
+!mxEvent.isShiftDown(m)||mxEvent.isControlDown(m)||u;C&&("1"!=urlParams.sketch||u)&&(e==mxConstants.DIRECTION_NORTH?P.y-=b.geometry.height/2:e==mxConstants.DIRECTION_SOUTH?P.y+=b.geometry.height/2:P.x=e==mxConstants.DIRECTION_WEST?P.x-b.geometry.width/2:P.x+b.geometry.width/2);var F=[],N=l;l=f;u=mxUtils.bind(this,function(K){if(null==B||null!=K||null==l&&T){this.model.beginUpdate();try{if(null==N&&C){var J=this.getAbsoluteParent(null!=K?K:b);J=T?b:this.getCompositeParent(J);N=null!=K?K:this.duplicateCells([J],
+!1)[0];null!=K&&this.addCells([N],this.model.getParent(b),null,null,null,!0);var da=this.getCellGeometry(N);null!=da&&(null!=K&&"1"==urlParams.sketch&&(e==mxConstants.DIRECTION_NORTH?P.y-=da.height/2:e==mxConstants.DIRECTION_SOUTH?P.y+=da.height/2:P.x=e==mxConstants.DIRECTION_WEST?P.x-da.width/2:P.x+da.width/2),da.x=P.x-da.width/2,da.y=P.y-da.height/2);null!=f?(this.addCells([N],f,null,null,null,!0),l=null):C&&!T&&this.addCells([N],this.getDefaultParent(),null,null,null,!0)}var ea=mxEvent.isControlDown(m)&&
+mxEvent.isShiftDown(m)&&C||null==l&&T?null:this.insertEdge(this.model.getParent(b),null,"",b,N,this.createCurrentEdgeStyle());null!=ea&&(F.push(ea),this.applyNewEdgeStyle(b,[ea],e),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(ea,b));if(null==l&&null!=N&&null!=b.parent&&T&&e==mxConstants.DIRECTION_WEST){var ca=b.parent.getIndex(b);this.model.add(b.parent,N,ca)}null==l&&null!=N&&F.push(N);null==N&&null!=ea&&ea.geometry.setTerminalPoint(P,!1);null!=ea&&this.fireEvent(new mxEventObject("cellsInserted",
+"cells",[ea]))}finally{this.model.endUpdate()}}if(null!=H)H(F);else return F});if(null==B||null!=N||!C||null==l&&T)return u(N);B(G+P.x*g,c+P.y*g,u)};
Graph.prototype.getIndexableText=function(b){b=null!=b?b:this.model.getDescendants(this.model.root);for(var e=document.createElement("div"),g=[],m,u=0;u<b.length;u++)if(m=b[u],this.model.isVertex(m)||this.model.isEdge(m))this.isHtmlLabel(m)?(e.innerHTML=Graph.sanitizeHtml(this.getLabel(m)),m=mxUtils.extractTextWithWhitespace([e])):m=this.getLabel(m),m=mxUtils.trim(m.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")),0<m.length&&g.push(m);return g.join(" ")};
Graph.prototype.convertValueToString=function(b){var e=this.model.getValue(b);if(null!=e&&"object"==typeof e){var g=null;if(this.isReplacePlaceholders(b)&&null!=b.getAttribute("placeholder")){e=b.getAttribute("placeholder");for(var m=b;null==g&&null!=m;)null!=m.value&&"object"==typeof m.value&&(g=m.hasAttribute(e)?null!=m.getAttribute(e)?m.getAttribute(e):"":null),m=this.model.getParent(m)}else g=null,Graph.translateDiagram&&null!=Graph.diagramLanguage&&(g=e.getAttribute("label_"+Graph.diagramLanguage)),
null==g&&(g=e.getAttribute("label")||"");return g||""}return mxGraph.prototype.convertValueToString.apply(this,arguments)};Graph.prototype.getLinksForState=function(b){return null!=b&&null!=b.text&&null!=b.text.node?b.text.node.getElementsByTagName("a"):null};Graph.prototype.getLinkForCell=function(b,e){return null!=b.value&&"object"==typeof b.value?(b=b.value.getAttribute("link"),e||(b=mxUtils.removeJavascriptProtocol(b)),b):null};
@@ -2443,8 +2443,8 @@ mxConstants.STYLE_IMAGE_BACKGROUND,b);this.replaceDefaultColor(e,mxConstants.STY
Graph.prototype.getDefaultColor=function(b,e,g){e="default"+e.charAt(0).toUpperCase()+e.substring(1);"invert"==b[e]&&(b=mxUtils.getLightDarkColor(g),g="light-dark("+b.dark+", "+b.light+")");return g};
Graph.prototype.setAdaptiveColors=function(b){this.adaptiveColors="default"==b?null:b;"1"==urlParams.embedInline?null!=this.container&&(this.container.style.colorScheme="none"==this.getAdaptiveColors()?"light":""):(b=this.view.getDrawPane().ownerSVGElement,null!=b&&(b.style.colorScheme="none"==this.getAdaptiveColors()?"light":""))};Graph.prototype.getAdaptiveColors=function(){return null!=this.adaptiveColors?this.adaptiveColors:Graph.defaultAdaptiveColors};
Graph.prototype.updateAlternateBounds=function(b,e,g){if(null!=b&&null!=e&&null!=this.layoutManager&&null!=e.alternateBounds){var m=this.layoutManager.getLayout(this.model.getParent(b));null!=m&&m.constructor==mxStackLayout&&(m.horizontal?e.alternateBounds.height=0:e.alternateBounds.width=0)}mxGraph.prototype.updateAlternateBounds.apply(this,arguments)};Graph.prototype.isMoveCellsEvent=function(b,e){return mxEvent.isShiftDown(b)||"1"==mxUtils.getValue(e.style,"moveCells","0")};
-Graph.prototype.foldCells=function(b,e,g,m,u){e=null!=e?e:!1;null==g&&(g=this.getFoldableCells(this.getSelectionCells(),b));if(null!=g){this.model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutManager)for(var p=0;p<g.length;p++){var B=this.view.getState(g[p]),H=this.getCellGeometry(g[p]);if(null!=B&&null!=H){var S=0,G=0;if(H.alternateBounds)S=H.width-H.alternateBounds.width,G=H.height-H.alternateBounds.height;else{var P=this.useCssTransforms?1:this.view.scale;
-S=Math.round(H.width-B.width/P);G=Math.round(H.height-B.height/P)}if(0!=G||0!=S){var R=this.model.getParent(g[p]),c=this.layoutManager.getLayout(R);null==c?null!=u&&this.isMoveCellsEvent(u,B)&&this.moveSiblings(B,R,S,G):null!=u&&mxEvent.isAltDown(u)||c.constructor!=mxStackLayout||c.resizeLast||this.resizeParentStacks(R,c,S,G)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(g)}};
+Graph.prototype.foldCells=function(b,e,g,m,u){e=null!=e?e:!1;null==g&&(g=this.getFoldableCells(this.getSelectionCells(),b));if(null!=g){this.model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutManager)for(var p=0;p<g.length;p++){var B=this.view.getState(g[p]),H=this.getCellGeometry(g[p]);if(null!=B&&null!=H){var T=0,G=0;if(H.alternateBounds)T=H.width-H.alternateBounds.width,G=H.height-H.alternateBounds.height;else{var P=this.useCssTransforms?1:this.view.scale;
+T=Math.round(H.width-B.width/P);G=Math.round(H.height-B.height/P)}if(0!=G||0!=T){var R=this.model.getParent(g[p]),c=this.layoutManager.getLayout(R);null==c?null!=u&&this.isMoveCellsEvent(u,B)&&this.moveSiblings(B,R,T,G):null!=u&&mxEvent.isAltDown(u)||c.constructor!=mxStackLayout||c.resizeLast||this.resizeParentStacks(R,c,T,G)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(g)}};
Graph.prototype.moveSiblings=function(b,e,g,m){this.model.beginUpdate();try{var u=this.getCellsBeyond(b.x,b.y,e,!0,!0);for(e=0;e<u.length;e++)if(u[e]!=b.cell){var p=this.view.getState(u[e]),B=this.getCellGeometry(u[e]);null!=p&&null!=B&&(B=B.clone(),B.translate(Math.round(g*Math.max(0,Math.min(1,(p.x-b.x)/b.width))),Math.round(m*Math.max(0,Math.min(1,(p.y-b.y)/b.height)))),this.model.setGeometry(u[e],B))}}finally{this.model.endUpdate()}};
Graph.prototype.resizeParentStacks=function(b,e,g,m){if(null!=this.layoutManager&&null!=e&&e.constructor==mxStackLayout&&!e.resizeLast){this.model.beginUpdate();try{for(var u=e.horizontal;null!=b&&null!=e&&e.constructor==mxStackLayout&&e.horizontal==u&&!e.resizeLast;){var p=this.getCellGeometry(b),B=this.view.getState(b);null!=B&&null!=p&&(p=p.clone(),e.horizontal?p.width+=g+Math.min(0,B.width/this.view.scale-p.width):p.height+=m+Math.min(0,B.height/this.view.scale-p.height),this.model.setGeometry(b,
p));b=this.model.getParent(b);e=this.layoutManager.getLayout(b)}}finally{this.model.endUpdate()}}};Graph.prototype.isContainer=function(b){var e=this.getCurrentCellStyle(b);return this.isSwimlane(b)?"0"!=e.container:"1"==e.container};Graph.prototype.isCellConnectable=function(b){var e=this.getCurrentCellStyle(b);return!this.isCellLocked(this.getLayerForCell(b))&&(null!=e.connectable?"0"!=e.connectable:mxGraph.prototype.isCellConnectable.apply(this,arguments))};
@@ -2486,10 +2486,10 @@ HoverIcons.prototype.click=function(b,e,g){var m=g.getEvent(),u=g.getGraphX(),p=
HoverIcons.prototype.execute=function(b,e,g){g=g.getEvent();this.graph.selectCellsForConnectVertex(this.graph.connectVertex(b.cell,e,this.graph.defaultEdgeLength,g,this.graph.isCloneEvent(g),this.graph.isCloneEvent(g)),g,this)};HoverIcons.prototype.reset=function(b){null!=b&&!b||null==this.updateThread||window.clearTimeout(this.updateThread);this.activeArrow=this.currentState=this.mouseDownPoint=null;this.removeNodes();this.bbox=null;this.fireEvent(new mxEventObject("reset"))};
HoverIcons.prototype.repaint=function(){this.bbox=null;if(null!=this.currentState){this.currentState=this.getState(this.currentState);if(null!=this.currentState&&this.graph.model.isVertex(this.currentState.cell)&&this.graph.isCellConnectable(this.currentState.cell)){var b=mxRectangle.fromRectangle(this.currentState);null!=this.currentState.shape&&null!=this.currentState.shape.boundingBox&&(b=mxRectangle.fromRectangle(this.currentState.shape.boundingBox));b.grow(this.graph.tolerance);b.grow(this.arrowSpacing);
var e=this.graph.selectionCellsHandler.getHandler(this.currentState.cell);this.graph.isTableRow(this.currentState.cell)&&(e=this.graph.selectionCellsHandler.getHandler(this.graph.model.getParent(this.currentState.cell)));var g=null;null!=e&&(b.x-=e.horizontalOffset/2,b.y-=e.verticalOffset/2,b.width+=e.horizontalOffset,b.height+=e.verticalOffset,null!=e.rotationShape&&null!=e.rotationShape.node&&"hidden"!=e.rotationShape.node.style.visibility&&"none"!=e.rotationShape.node.style.display&&null!=e.rotationShape.boundingBox&&
-(g=e.rotationShape.boundingBox));e=mxUtils.bind(this,function(H,S,G){if(null!=g){var P=new mxRectangle(S,G,H.clientWidth,H.clientHeight);mxUtils.intersects(P,g)&&(H==this.arrowUp?G-=P.y+P.height-g.y:H==this.arrowRight?S+=g.x+g.width-P.x:H==this.arrowDown?G+=g.y+g.height-P.y:H==this.arrowLeft&&(S-=P.x+P.width-g.x))}H.style.left=S+"px";H.style.top=G+"px";mxUtils.setOpacity(H,this.inactiveOpacity)});e(this.arrowUp,Math.round(this.currentState.getCenterX()-this.triangleUp.width/2-this.tolerance),Math.round(b.y-
+(g=e.rotationShape.boundingBox));e=mxUtils.bind(this,function(H,T,G){if(null!=g){var P=new mxRectangle(T,G,H.clientWidth,H.clientHeight);mxUtils.intersects(P,g)&&(H==this.arrowUp?G-=P.y+P.height-g.y:H==this.arrowRight?T+=g.x+g.width-P.x:H==this.arrowDown?G+=g.y+g.height-P.y:H==this.arrowLeft&&(T-=P.x+P.width-g.x))}H.style.left=T+"px";H.style.top=G+"px";mxUtils.setOpacity(H,this.inactiveOpacity)});e(this.arrowUp,Math.round(this.currentState.getCenterX()-this.triangleUp.width/2-this.tolerance),Math.round(b.y-
this.triangleUp.height-this.tolerance));e(this.arrowRight,Math.round(b.x+b.width-this.tolerance),Math.round(this.currentState.getCenterY()-this.triangleRight.height/2-this.tolerance));e(this.arrowDown,parseInt(this.arrowUp.style.left),Math.round(b.y+b.height-this.tolerance));e(this.arrowLeft,Math.round(b.x-this.triangleLeft.width-this.tolerance),parseInt(this.arrowRight.style.top));if(this.checkCollisions){e=this.graph.getCellAt(b.x+b.width+this.triangleRight.width/2,this.currentState.getCenterY());
-var m=this.graph.getCellAt(b.x-this.triangleLeft.width/2,this.currentState.getCenterY()),u=this.graph.getCellAt(this.currentState.getCenterX(),b.y-this.triangleUp.height/2);b=this.graph.getCellAt(this.currentState.getCenterX(),b.y+b.height+this.triangleDown.height/2);null!=e&&e==m&&m==u&&u==b&&(b=u=m=e=null);var p=this.graph.getCellGeometry(this.currentState.cell),B=mxUtils.bind(this,function(H,S){var G=this.graph.model.isVertex(H)&&this.graph.getCellGeometry(H);null==H||this.graph.model.isAncestor(H,
-this.currentState.cell)||this.graph.isSwimlane(H)||!(null==G||null==p||G.height<3*p.height&&G.width<3*p.width)?S.style.visibility="visible":S.style.visibility="hidden"});B(e,this.arrowRight);B(m,this.arrowLeft);B(u,this.arrowUp);B(b,this.arrowDown)}else this.arrowLeft.style.visibility="visible",this.arrowRight.style.visibility="visible",this.arrowUp.style.visibility="visible",this.arrowDown.style.visibility="visible";this.graph.tooltipHandler.isEnabled()?(this.arrowLeft.setAttribute("title",mxResources.get("plusTooltip")),
+var m=this.graph.getCellAt(b.x-this.triangleLeft.width/2,this.currentState.getCenterY()),u=this.graph.getCellAt(this.currentState.getCenterX(),b.y-this.triangleUp.height/2);b=this.graph.getCellAt(this.currentState.getCenterX(),b.y+b.height+this.triangleDown.height/2);null!=e&&e==m&&m==u&&u==b&&(b=u=m=e=null);var p=this.graph.getCellGeometry(this.currentState.cell),B=mxUtils.bind(this,function(H,T){var G=this.graph.model.isVertex(H)&&this.graph.getCellGeometry(H);null==H||this.graph.model.isAncestor(H,
+this.currentState.cell)||this.graph.isSwimlane(H)||!(null==G||null==p||G.height<3*p.height&&G.width<3*p.width)?T.style.visibility="visible":T.style.visibility="hidden"});B(e,this.arrowRight);B(m,this.arrowLeft);B(u,this.arrowUp);B(b,this.arrowDown)}else this.arrowLeft.style.visibility="visible",this.arrowRight.style.visibility="visible",this.arrowUp.style.visibility="visible",this.arrowDown.style.visibility="visible";this.graph.tooltipHandler.isEnabled()?(this.arrowLeft.setAttribute("title",mxResources.get("plusTooltip")),
this.arrowRight.setAttribute("title",mxResources.get("plusTooltip")),this.arrowUp.setAttribute("title",mxResources.get("plusTooltip")),this.arrowDown.setAttribute("title",mxResources.get("plusTooltip"))):(this.arrowLeft.removeAttribute("title"),this.arrowRight.removeAttribute("title"),this.arrowUp.removeAttribute("title"),this.arrowDown.removeAttribute("title"))}else this.reset();null!=this.currentState&&(this.bbox=this.computeBoundingBox(),null!=this.bbox&&this.bbox.grow(10))}};
HoverIcons.prototype.computeBoundingBox=function(){var b=this.graph.model.isEdge(this.currentState.cell)?null:mxRectangle.fromRectangle(this.currentState);this.visitNodes(function(e){null!=e.parentNode&&(e=new mxRectangle(e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight),null==b?b=e:b.add(e))});return b};
HoverIcons.prototype.getState=function(b){if(null!=b)if(b=b.cell,this.graph.getModel().contains(b)){if(this.graph.getModel().isVertex(b)&&!this.graph.isCellConnectable(b)){var e=this.graph.getModel().getParent(b);this.graph.getModel().isVertex(e)&&this.graph.isCellConnectable(e)&&(b=e)}if(this.graph.isCellLocked(b)||this.graph.model.isEdge(b))b=null;b=this.graph.view.getState(b);null!=b&&null==b.style&&(b=null)}else b=null;return b};
@@ -2499,26 +2499,26 @@ b||null==this.bbox||null==e||null==g||!mxUtils.contains(this.bbox,e,g))&&(null!=
HoverIcons.prototype.setCurrentState=function(b){"eastwest"!=b.style.portConstraint&&(this.graph.container.appendChild(this.arrowUp),this.graph.container.appendChild(this.arrowDown));this.graph.container.appendChild(this.arrowRight);this.graph.container.appendChild(this.arrowLeft);this.currentState=b};
Graph.prototype.removeTextStyleForCell=function(b,e){var g=this.getCurrentCellStyle(b),m=!1;this.getModel().beginUpdate();try{if("1"==mxUtils.getValue(g,"html","0")){var u=this.convertValueToString(b);"0"!=mxUtils.getValue(g,"nl2Br","1")&&(u=u.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n"));u=Editor.convertHtmlToText(u);this.cellLabelChanged(b,u);m=!0}e&&(this.setCellStyles("fontSource",null,[b]),this.setCellStyles(mxConstants.STYLE_FONTFAMILY,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSIZE,
null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSTYLE,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BORDERCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null,[b]))}finally{this.getModel().endUpdate()}return m};Graph.prototype.createParent=function(b,e,g,m,u){b=this.cloneCell(b);for(var p=0;p<g;p++){var B=this.cloneCell(e),H=this.getCellGeometry(B);null!=H&&(H.x+=p*m,H.y+=p*u);b.insert(B)}return b};
-Graph.prototype.createTable=function(b,e,g,m,u,p,B,H,S){g=null!=g?g:60;m=null!=m?m:40;p=null!=p?p:30;H=null!=H?H:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;";S=null!=S?S:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";return this.createParent(this.createVertex(null,
-null,null!=u?u:"",0,0,e*g,b*m+(null!=u?p:0),null!=B?B:"shape=table;startSize="+(null!=u?p:"0")+";container=1;collapsible=0;childLayout=tableLayout;"),this.createParent(this.createVertex(null,null,"",0,0,e*g,m,H),this.createVertex(null,null,"",0,0,g,m,S),e,g,0),b,0,m)};
+Graph.prototype.createTable=function(b,e,g,m,u,p,B,H,T){g=null!=g?g:60;m=null!=m?m:40;p=null!=p?p:30;H=null!=H?H:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;";T=null!=T?T:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";return this.createParent(this.createVertex(null,
+null,null!=u?u:"",0,0,e*g,b*m+(null!=u?p:0),null!=B?B:"shape=table;startSize="+(null!=u?p:"0")+";container=1;collapsible=0;childLayout=tableLayout;"),this.createParent(this.createVertex(null,null,"",0,0,e*g,m,H),this.createVertex(null,null,"",0,0,g,m,T),e,g,0),b,0,m)};
Graph.prototype.setTableValues=function(b,e,g){for(var m=this.model.getChildCells(b,!0),u=0;u<m.length;u++)if(null!=g&&(m[u].value=g[u]),null!=e)for(var p=this.model.getChildCells(m[u],!0),B=0;B<p.length;B++)null!=e[u][B]&&(p[B].value=e[u][B]);return b};
-Graph.prototype.createCrossFunctionalSwimlane=function(b,e,g,m,u,p,B,H,S){g=null!=g?g:120;m=null!=m?m:120;B=null!=B?B:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;collapsible=0;recursiveResize=0;expand=0;";H=null!=H?H:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
-S=null!=S?S:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";u=this.createVertex(null,null,null!=u?u:"",0,0,e*g,b*m,null!=p?p:"shape=table;childLayout=tableLayout;"+(null==u?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");p=mxUtils.getValue(this.getCellStyle(u),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);u.geometry.width+=p;u.geometry.height+=
-p;B=this.createVertex(null,null,"",0,p,e*g+p,m,B);u.insert(this.createParent(B,this.createVertex(null,null,"",p,0,g,m,H),e,g,0));return 1<b?(B.geometry.y=m+p,this.createParent(u,this.createParent(B,this.createVertex(null,null,"",p,0,g,m,S),e,g,0),b-1,0,m)):u};
-Graph.prototype.visitTableCells=function(b,e){var g=null,m=this.model.getChildCells(b,!0);b=this.getActualStartSize(b,!0);for(var u=0;u<m.length;u++){for(var p=this.getActualStartSize(m[u],!0),B=this.model.getChildCells(m[u],!0),H=this.getCellStyle(m[u],!0),S=null,G=[],P=0;P<B.length;P++){var R=this.getCellGeometry(B[P]),c={cell:B[P],rospan:1,colspan:1,row:u,col:P,geo:R};R=null!=R.alternateBounds?R.alternateBounds:R;c.point=new mxPoint(R.width+(null!=S?S.point.x:b.x+p.x),R.height+(null!=g&&null!=
-g[0]?g[0].point.y:b.y+p.y));c.actual=c;null!=g&&null!=g[P]&&1<g[P].rowspan?(c.rowspan=g[P].rowspan-1,c.colspan=g[P].colspan,c.actual=g[P].actual):null!=S&&1<S.colspan?(c.rowspan=S.rowspan,c.colspan=S.colspan-1,c.actual=S.actual):(S=this.getCurrentCellStyle(B[P],!0),null!=S&&(c.rowspan=parseInt(S.rowspan||1),c.colspan=parseInt(S.colspan||1)));S=1==mxUtils.getValue(H,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(H,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;e(c,B.length,
-m.length,b.x+(S?p.x:0),b.y+(S?p.y:0));G.push(c);S=c}g=G}};Graph.prototype.getTableLines=function(b,e,g){var m=[],u=[];(e||g)&&this.visitTableCells(b,mxUtils.bind(this,function(p,B,H,S,G){e&&p.row<H-1&&(null==m[p.row]&&(m[p.row]=[new mxPoint(S,p.point.y)]),1<p.rowspan&&m[p.row].push(null),m[p.row].push(p.point));g&&p.col<B-1&&(null==u[p.col]&&(u[p.col]=[new mxPoint(p.point.x,G)]),1<p.colspan&&u[p.col].push(null),u[p.col].push(p.point))}));return m.concat(u)};
+Graph.prototype.createCrossFunctionalSwimlane=function(b,e,g,m,u,p,B,H,T){g=null!=g?g:120;m=null!=m?m:120;B=null!=B?B:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;collapsible=0;recursiveResize=0;expand=0;";H=null!=H?H:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
+T=null!=T?T:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";u=this.createVertex(null,null,null!=u?u:"",0,0,e*g,b*m,null!=p?p:"shape=table;childLayout=tableLayout;"+(null==u?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");p=mxUtils.getValue(this.getCellStyle(u),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);u.geometry.width+=p;u.geometry.height+=
+p;B=this.createVertex(null,null,"",0,p,e*g+p,m,B);u.insert(this.createParent(B,this.createVertex(null,null,"",p,0,g,m,H),e,g,0));return 1<b?(B.geometry.y=m+p,this.createParent(u,this.createParent(B,this.createVertex(null,null,"",p,0,g,m,T),e,g,0),b-1,0,m)):u};
+Graph.prototype.visitTableCells=function(b,e){var g=null,m=this.model.getChildCells(b,!0);b=this.getActualStartSize(b,!0);for(var u=0;u<m.length;u++){for(var p=this.getActualStartSize(m[u],!0),B=this.model.getChildCells(m[u],!0),H=this.getCellStyle(m[u],!0),T=null,G=[],P=0;P<B.length;P++){var R=this.getCellGeometry(B[P]),c={cell:B[P],rospan:1,colspan:1,row:u,col:P,geo:R};R=null!=R.alternateBounds?R.alternateBounds:R;c.point=new mxPoint(R.width+(null!=T?T.point.x:b.x+p.x),R.height+(null!=g&&null!=
+g[0]?g[0].point.y:b.y+p.y));c.actual=c;null!=g&&null!=g[P]&&1<g[P].rowspan?(c.rowspan=g[P].rowspan-1,c.colspan=g[P].colspan,c.actual=g[P].actual):null!=T&&1<T.colspan?(c.rowspan=T.rowspan,c.colspan=T.colspan-1,c.actual=T.actual):(T=this.getCurrentCellStyle(B[P],!0),null!=T&&(c.rowspan=parseInt(T.rowspan||1),c.colspan=parseInt(T.colspan||1)));T=1==mxUtils.getValue(H,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(H,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;e(c,B.length,
+m.length,b.x+(T?p.x:0),b.y+(T?p.y:0));G.push(c);T=c}g=G}};Graph.prototype.getTableLines=function(b,e,g){var m=[],u=[];(e||g)&&this.visitTableCells(b,mxUtils.bind(this,function(p,B,H,T,G){e&&p.row<H-1&&(null==m[p.row]&&(m[p.row]=[new mxPoint(T,p.point.y)]),1<p.rowspan&&m[p.row].push(null),m[p.row].push(p.point));g&&p.col<B-1&&(null==u[p.col]&&(u[p.col]=[new mxPoint(p.point.x,G)]),1<p.colspan&&u[p.col].push(null),u[p.col].push(p.point))}));return m.concat(u)};
Graph.prototype.isTableCell=function(b){return this.model.isVertex(b)&&this.isTableRow(this.model.getParent(b))};Graph.prototype.isTableRow=function(b){return this.model.isVertex(b)&&this.isTable(this.model.getParent(b))};Graph.prototype.isTable=function(b){b=this.getCellStyle(b);return null!=b&&"tableLayout"==b.childLayout};Graph.prototype.isStack=function(b){b=this.getCellStyle(b);return null!=b&&"stackLayout"==b.childLayout};
Graph.prototype.isStackChild=function(b){return this.model.isVertex(b)&&this.isStack(this.model.getParent(b))};
-Graph.prototype.setTableRowHeight=function(b,e,g){g=null!=g?g:!0;var m=this.getModel();m.beginUpdate();try{var u=this.getCellGeometry(b);if(null!=u){u=u.clone();u.height+=e;m.setGeometry(b,u);var p=m.getParent(b),B=m.getChildCells(p,!0);if(!g){var H=mxUtils.indexOf(B,b);if(H<B.length-1){var S=B[H+1],G=this.getCellGeometry(S);null!=G&&(G=G.clone(),G.y+=e,G.height-=e,m.setGeometry(S,G))}}var P=this.getCellGeometry(p);null!=P&&(g||(g=b==B[B.length-1]),g&&(P=P.clone(),P.height+=e,m.setGeometry(p,P)))}}finally{m.endUpdate()}};
-Graph.prototype.setTableColumnWidth=function(b,e,g){g=null!=g?g:!1;var m=this.getModel(),u=m.getParent(b),p=m.getParent(u),B=m.getChildCells(u,!0);b=mxUtils.indexOf(B,b);var H=b==B.length-1;m.beginUpdate();try{for(var S=m.getChildCells(p,!0),G=0;G<S.length;G++){u=S[G];B=m.getChildCells(u,!0);var P=B[b],R=this.getCellGeometry(P);null!=R&&(R=R.clone(),R.width+=e,null!=R.alternateBounds&&(R.alternateBounds.width+=e),m.setGeometry(P,R));b<B.length-1&&(P=B[b+1],R=this.getCellGeometry(P),null!=R&&(R=R.clone(),
+Graph.prototype.setTableRowHeight=function(b,e,g){g=null!=g?g:!0;var m=this.getModel();m.beginUpdate();try{var u=this.getCellGeometry(b);if(null!=u){u=u.clone();u.height+=e;m.setGeometry(b,u);var p=m.getParent(b),B=m.getChildCells(p,!0);if(!g){var H=mxUtils.indexOf(B,b);if(H<B.length-1){var T=B[H+1],G=this.getCellGeometry(T);null!=G&&(G=G.clone(),G.y+=e,G.height-=e,m.setGeometry(T,G))}}var P=this.getCellGeometry(p);null!=P&&(g||(g=b==B[B.length-1]),g&&(P=P.clone(),P.height+=e,m.setGeometry(p,P)))}}finally{m.endUpdate()}};
+Graph.prototype.setTableColumnWidth=function(b,e,g){g=null!=g?g:!1;var m=this.getModel(),u=m.getParent(b),p=m.getParent(u),B=m.getChildCells(u,!0);b=mxUtils.indexOf(B,b);var H=b==B.length-1;m.beginUpdate();try{for(var T=m.getChildCells(p,!0),G=0;G<T.length;G++){u=T[G];B=m.getChildCells(u,!0);var P=B[b],R=this.getCellGeometry(P);null!=R&&(R=R.clone(),R.width+=e,null!=R.alternateBounds&&(R.alternateBounds.width+=e),m.setGeometry(P,R));b<B.length-1&&(P=B[b+1],R=this.getCellGeometry(P),null!=R&&(R=R.clone(),
R.x+=e,g||(R.width-=e,null!=R.alternateBounds&&(R.alternateBounds.width-=e)),m.setGeometry(P,R)))}if(H||g){var c=this.getCellGeometry(p);null!=c&&(c=c.clone(),c.width+=e,m.setGeometry(p,c))}null!=this.layoutManager&&this.layoutManager.executeLayout(p)}finally{m.endUpdate()}};function TableLayout(b){mxGraphLayout.call(this,b)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!1};
TableLayout.prototype.isVertexIgnored=function(b){return!this.graph.getModel().isVertex(b)||!this.graph.isCellVisible(b)};TableLayout.prototype.getSize=function(b,e){for(var g=0,m=0;m<b.length;m++)if(!this.isVertexIgnored(b[m])){var u=this.graph.getCellGeometry(b[m]);null!=u&&(g+=e?u.width:u.height)}return g};
TableLayout.prototype.getRowLayout=function(b,e){var g=this.graph.model.getChildCells(b,!0),m=this.graph.getActualStartSize(b,!0);b=this.getSize(g,!0);e=e-m.x-m.width;var u=[];m=m.x;for(var p=0;p<g.length;p++){var B=this.graph.getCellGeometry(g[p]);null!=B&&(m+=(null!=B.alternateBounds?B.alternateBounds.width:B.width)*e/b,u.push(Math.round(m)))}return u};
-TableLayout.prototype.layoutRow=function(b,e,g,m){var u=this.graph.getModel(),p=u.getChildCells(b,!0);b=this.graph.getActualStartSize(b,!0);var B=b.x,H=0;null!=e&&(e=e.slice(),e.splice(0,0,b.x));for(var S=0;S<p.length;S++){var G=this.graph.getCellGeometry(p[S]);null!=G&&(G=G.clone(),G.y=b.y,G.height=g-b.y-b.height,null!=e?(G.x=e[S],G.width=e[S+1]-G.x,S==p.length-1&&S<e.length-2&&(G.width=m-G.x-b.x-b.width)):(G.x=B,B+=G.width,S==p.length-1?G.width=m-b.x-b.width-H:H+=G.width),G.alternateBounds=new mxRectangle(0,
-0,G.width,G.height),u.setGeometry(p[S],G))}return H};
-TableLayout.prototype.execute=function(b){if(null!=b){var e=this.graph.getActualStartSize(b,!0),g=this.graph.getCellGeometry(b),m=this.graph.getCellStyle(b),u="1"==mxUtils.getValue(m,"resizeLastRow","0"),p="1"==mxUtils.getValue(m,"resizeLast","0");m="1"==mxUtils.getValue(m,"fixedRows","0");var B=this.graph.getModel(),H=0;B.beginUpdate();try{for(var S=g.height-e.y-e.height,G=g.width-e.x-e.width,P=B.getChildCells(b,!0),R=0;R<P.length;R++)B.setVisible(P[R],!0);var c=this.getSize(P,!1);if(0<S&&0<G&&0<
-P.length&&0<c){if(u){var f=this.graph.getCellGeometry(P[P.length-1]);null!=f&&(f=f.clone(),f.height=S-c+f.height,B.setGeometry(P[P.length-1],f))}var l=p?null:this.getRowLayout(P[0],G),t=[],z=e.y;for(R=0;R<P.length;R++)f=this.graph.getCellGeometry(P[R]),null!=f&&(f=f.clone(),f.x=e.x,f.width=G,f.y=Math.round(z),z=u||m?z+f.height:z+f.height/c*S,f.height=Math.round(z)-f.y,B.setGeometry(P[R],f)),H=Math.max(H,this.layoutRow(P[R],l,f.height,G,t));m&&S<c&&(g=g.clone(),g.height=z+e.height,B.setGeometry(b,
+TableLayout.prototype.layoutRow=function(b,e,g,m){var u=this.graph.getModel(),p=u.getChildCells(b,!0);b=this.graph.getActualStartSize(b,!0);var B=b.x,H=0;null!=e&&(e=e.slice(),e.splice(0,0,b.x));for(var T=0;T<p.length;T++){var G=this.graph.getCellGeometry(p[T]);null!=G&&(G=G.clone(),G.y=b.y,G.height=g-b.y-b.height,null!=e?(G.x=e[T],G.width=e[T+1]-G.x,T==p.length-1&&T<e.length-2&&(G.width=m-G.x-b.x-b.width)):(G.x=B,B+=G.width,T==p.length-1?G.width=m-b.x-b.width-H:H+=G.width),G.alternateBounds=new mxRectangle(0,
+0,G.width,G.height),u.setGeometry(p[T],G))}return H};
+TableLayout.prototype.execute=function(b){if(null!=b){var e=this.graph.getActualStartSize(b,!0),g=this.graph.getCellGeometry(b),m=this.graph.getCellStyle(b),u="1"==mxUtils.getValue(m,"resizeLastRow","0"),p="1"==mxUtils.getValue(m,"resizeLast","0");m="1"==mxUtils.getValue(m,"fixedRows","0");var B=this.graph.getModel(),H=0;B.beginUpdate();try{for(var T=g.height-e.y-e.height,G=g.width-e.x-e.width,P=B.getChildCells(b,!0),R=0;R<P.length;R++)B.setVisible(P[R],!0);var c=this.getSize(P,!1);if(0<T&&0<G&&0<
+P.length&&0<c){if(u){var f=this.graph.getCellGeometry(P[P.length-1]);null!=f&&(f=f.clone(),f.height=T-c+f.height,B.setGeometry(P[P.length-1],f))}var l=p?null:this.getRowLayout(P[0],G),t=[],z=e.y;for(R=0;R<P.length;R++)f=this.graph.getCellGeometry(P[R]),null!=f&&(f=f.clone(),f.x=e.x,f.width=G,f.y=Math.round(z),z=u||m?z+f.height:z+f.height/c*T,f.height=Math.round(z)-f.y,B.setGeometry(P[R],f)),H=Math.max(H,this.layoutRow(P[R],l,f.height,G,t));m&&T<c&&(g=g.clone(),g.height=z+e.height,B.setGeometry(b,
g));p&&G<H+Graph.minTableColumnWidth&&(g=g.clone(),g.width=H+e.width+e.x+Graph.minTableColumnWidth,B.setGeometry(b,g));this.graph.visitTableCells(b,mxUtils.bind(this,function(C){B.setVisible(C.cell,C.actual.cell==C.cell);if(C.actual.cell!=C.cell){if(C.actual.row==C.row){var F=null!=C.geo.alternateBounds?C.geo.alternateBounds:C.geo;C.actual.geo.width+=F.width}C.actual.col==C.col&&(F=null!=C.geo.alternateBounds?C.geo.alternateBounds:C.geo,C.actual.geo.height+=F.height)}}))}else for(R=0;R<P.length;R++)B.setVisible(P[R],
!1)}finally{B.endUpdate()}}};
(function(){var b=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){b.apply(this,arguments);this.validEdges=[]};var e=mxGraphView.prototype.validateCellState;mxGraphView.prototype.validateCellState=function(R,c){c=null!=c?c:!0;var f=this.getState(R);null!=f&&c&&this.graph.model.isEdge(f.cell)&&null!=f.style&&1!=f.style[mxConstants.STYLE_CURVED]&&!f.invalid&&this.updateLineJumps(f)&&this.graph.cellRenderer.redraw(f,!1,this.isRendering());f=e.apply(this,
@@ -2532,7 +2532,7 @@ la.distSq){K.splice(J,0,la);la=null;break}null==la||0!=K.length&&K[K.length-1].x
arguments);else{var l=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,t=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,z=mxUtils.getValue(this.style,"jumpStyle","none"),C=!0,F=null,N=null,K=[],J=null;R.begin();for(var da=0;da<this.state.routedPoints.length;da++){var ea=this.state.routedPoints[da],ca=new mxPoint(ea.x/this.scale,ea.y/this.scale);0==da?ca=c[0]:da==this.state.routedPoints.length-1&&(ca=c[c.length-1]);var W=
!1;if(null!=F&&1==ea.type){var ba=this.state.routedPoints[da+1];ea=ba.x/this.scale-ca.x;ba=ba.y/this.scale-ca.y;ea=ea*ea+ba*ba;null==J&&(J=new mxPoint(ca.x-F.x,ca.y-F.y),N=Math.sqrt(J.x*J.x+J.y*J.y),0<N?(J.x=J.x*t/N,J.y=J.y*t/N):J=null);ea>t*t&&0<N&&(ea=F.x-ca.x,ba=F.y-ca.y,ea=ea*ea+ba*ba,ea>t*t&&(W=new mxPoint(ca.x-J.x,ca.y-J.y),ea=new mxPoint(ca.x+J.x,ca.y+J.y),K.push(W),this.addPoints(R,K,f,l,!1,null,C),K=0>Math.round(J.x)||0==Math.round(J.x)&&0>=Math.round(J.y)?1:-1,C=!1,"sharp"==z?(R.lineTo(W.x-
J.y*K,W.y+J.x*K),R.lineTo(ea.x-J.y*K,ea.y+J.x*K),R.lineTo(ea.x,ea.y)):"line"==z?(R.moveTo(W.x+J.y*K,W.y-J.x*K),R.lineTo(W.x-J.y*K,W.y+J.x*K),R.moveTo(ea.x-J.y*K,ea.y+J.x*K),R.lineTo(ea.x+J.y*K,ea.y-J.x*K),R.moveTo(ea.x,ea.y)):"arc"==z?(K*=1.3,R.curveTo(W.x-J.y*K,W.y+J.x*K,ea.x-J.y*K,ea.y+J.x*K,ea.x,ea.y)):(R.moveTo(ea.x,ea.y),C=!0),K=[ea],W=!0))}else J=null;W||(K.push(ca),F=ca)}this.addPoints(R,K,f,l,!1,null,C);R.stroke()}};var H=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=
-function(R,c,f,l){return null!=c&&"centerPerimeter"==c.style[mxConstants.STYLE_PERIMETER]?new mxPoint(c.getCenterX(),c.getCenterY()):H.apply(this,arguments)};var S=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(R,c,f,l){if(null==c||null==R||"1"!=c.style.snapToPoint&&"1"!=R.style.snapToPoint)S.apply(this,arguments);else{c=this.getTerminalPort(R,c,l);var t=this.getNextPoint(R,f,l),z=this.graph.isOrthogonal(R),C=mxUtils.toRadians(Number(c.style[mxConstants.STYLE_ROTATION]||
+function(R,c,f,l){return null!=c&&"centerPerimeter"==c.style[mxConstants.STYLE_PERIMETER]?new mxPoint(c.getCenterX(),c.getCenterY()):H.apply(this,arguments)};var T=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(R,c,f,l){if(null==c||null==R||"1"!=c.style.snapToPoint&&"1"!=R.style.snapToPoint)T.apply(this,arguments);else{c=this.getTerminalPort(R,c,l);var t=this.getNextPoint(R,f,l),z=this.graph.isOrthogonal(R),C=mxUtils.toRadians(Number(c.style[mxConstants.STYLE_ROTATION]||
"0")),F=new mxPoint(c.getCenterX(),c.getCenterY());if(0!=C){var N=Math.cos(-C),K=Math.sin(-C);t=mxUtils.getRotatedPoint(t,N,K,F)}N=parseFloat(R.style[mxConstants.STYLE_PERIMETER_SPACING]||0);N+=parseFloat(R.style[l?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);t=this.getPerimeterPoint(c,t,0==C&&z,N);0!=C&&(N=Math.cos(C),K=Math.sin(C),t=mxUtils.getRotatedPoint(t,N,K,F));R.setAbsoluteTerminalPoint(this.snapToAnchorPoint(R,c,f,l,t),l)}};mxGraphView.prototype.snapToAnchorPoint=
function(R,c,f,l,t){if(null!=c&&null!=R){R=this.graph.getAllConnectionConstraints(c);l=f=null;if(null!=R)for(var z=0;z<R.length;z++){var C=this.graph.getConnectionPoint(c,R[z]);if(null!=C){var F=(C.x-t.x)*(C.x-t.x)+(C.y-t.y)*(C.y-t.y);if(null==l||F<l)f=C,l=F}}null!=f&&(t=f)}return t};var G=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(R,c,f){var l=G.apply(this,arguments);"1"==R.getAttribute("placeholders")&&null!=f.state&&(l=f.state.view.graph.replacePlaceholders(f.state.cell,
l));return l};var P=mxCellRenderer.prototype.createShape;mxCellRenderer.prototype.createShape=function(R){if(null!=R.style&&"undefined"!==typeof pako){var c=mxUtils.getValue(R.style,mxConstants.STYLE_SHAPE,null);if(null!=c&&"string"===typeof c&&"stencil("==c.substring(0,8))try{var f=c.substring(8,c.length-1),l=mxUtils.parseXml(Graph.decompress(f));return new mxShape(new mxStencil(l.documentElement))}catch(t){null!=window.console&&console.log("Error in shape: "+t)}}return P.apply(this,arguments)}})();
@@ -2559,7 +2559,7 @@ M,Q,V){M=null!=M?M:0;Q=null!=Q?Q:0;var ia=new mxCodec(x.ownerDocument),ka=new mx
ka.getChildren(xa[0]);null!=ua&&(x=this.moveCells(ua,M,Q,!1,this.getDefaultParent()),oa[ka.getChildAt(ka.root,0).getId()]=this.getDefaultParent().getId())}if(null!=x&&(this.createCellMapping(ia,ta,oa),this.updateCustomLinks(oa,x),V)){this.isGridEnabled()&&(M=this.snap(M),Q=this.snap(Q));var Fa=this.getBoundingBoxFromGeometry(x,!0);null!=Fa&&this.moveCells(x,M-Fa.x,Q-Fa.y)}}finally{this.model.endUpdate()}}return x};Graph.prototype.encodeCells=function(x){for(var M={},Q=this.cloneCells(x,null,M),V=
new mxDictionary,ia=0;ia<x.length;ia++)V.put(x[ia],!0);var ka=new mxCodec,oa=new mxGraphModel,xa=oa.getChildAt(oa.getRoot(),0);for(ia=0;ia<Q.length;ia++){oa.add(xa,Q[ia]);var ta=this.view.getState(x[ia]);if(null!=ta){var ua=this.getCellGeometry(Q[ia]);null!=ua&&ua.relative&&!this.model.isEdge(x[ia])&&null==V.get(this.model.getParent(x[ia]))&&(ua.offset=null,ua.relative=!1,ua.x=ta.x/ta.view.scale-ta.view.translate.x,ua.y=ta.y/ta.view.scale-ta.view.translate.y)}}this.updateCustomLinks(this.createCellMapping(M,
this.createCellLookup(x)),Q);return ka.encode(oa)};Graph.prototype.isSwimlane=function(x,M){var Q=null;null==x||this.model.isEdge(x)||this.model.getParent(x)==this.model.getRoot()||(Q=this.getCurrentCellStyle(x,M)[mxConstants.STYLE_SHAPE]);return Q==mxConstants.SHAPE_SWIMLANE||"table"==Q||"tableRow"==Q};var H=Graph.prototype.isCellEditable;Graph.prototype.isCellEditable=function(x){return null!=x&&H.apply(this,arguments)?this.isTableCell(x)||this.isTableRow(x)?this.isCellEditable(this.model.getParent(x)):
-!0:!1};var S=Graph.prototype.isCellMovable;Graph.prototype.isCellMovable=function(x){return null!=x&&S.apply(this,arguments)?this.isTableCell(x)||this.isTableRow(x)?this.isCellMovable(this.model.getParent(x)):!0:!1};var G=Graph.prototype.isExtendParent;Graph.prototype.isExtendParent=function(x){var M=this.model.getParent(x);if(null!=M){var Q=this.getCurrentCellStyle(M);if(null!=Q.expand)return"0"!=Q.expand}return G.apply(this,arguments)&&(null==M||!this.isTable(M))};var P=Graph.prototype.splitEdge;
+!0:!1};var T=Graph.prototype.isCellMovable;Graph.prototype.isCellMovable=function(x){return null!=x&&T.apply(this,arguments)?this.isTableCell(x)||this.isTableRow(x)?this.isCellMovable(this.model.getParent(x)):!0:!1};var G=Graph.prototype.isExtendParent;Graph.prototype.isExtendParent=function(x){var M=this.model.getParent(x);if(null!=M){var Q=this.getCurrentCellStyle(M);if(null!=Q.expand)return"0"!=Q.expand}return G.apply(this,arguments)&&(null==M||!this.isTable(M))};var P=Graph.prototype.splitEdge;
Graph.prototype.splitEdge=function(x,M,Q,V,ia,ka,oa,xa){null==xa&&(xa=this.model.getParent(x),this.isTable(xa)||this.isTableRow(xa))&&(xa=this.getCellAt(ka,oa,null,!0,!1));Q=null;this.model.beginUpdate();try{Q=P.apply(this,[x,M,Q,V,ia,ka,oa,xa]);this.model.setValue(Q,"");var ta=this.getChildCells(Q,!0);for(M=0;M<ta.length;M++){var ua=this.getCellGeometry(ta[M]);null!=ua&&ua.relative&&0<ua.x&&this.model.remove(ta[M])}var Fa=this.getChildCells(x,!0);for(M=0;M<Fa.length;M++)ua=this.getCellGeometry(Fa[M]),
null!=ua&&ua.relative&&0>=ua.x&&this.model.remove(Fa[M]);var Na=this.model.getTerminal(Q,!1);if(null!=Na){var Wa=this.getCurrentCellStyle(Na);null!=Wa&&"1"==Wa.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[x]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[x]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[Q]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[Q]))}}finally{this.model.endUpdate()}return Q};var R=Graph.prototype.selectCell;Graph.prototype.selectCell=function(x,
M,Q){if(M||Q)R.apply(this,arguments);else{var V=this.getSelectionCell(),ia=null,ka=[],oa=mxUtils.bind(this,function(xa){if(null!=this.view.getState(xa)&&(this.model.isVertex(xa)||this.model.isEdge(xa)))if(ka.push(xa),xa==V)ia=ka.length-1;else if(x&&null==V&&0<ka.length||null!=ia&&x&&ka.length>ia||!x&&0<ia)return;for(var ta=0;ta<this.model.getChildCount(xa);ta++)oa(this.model.getChildAt(xa,ta))});oa(this.model.root);0<ka.length&&(ia=null!=ia?mxUtils.mod(ia+(x?1:-1),ka.length):0,this.setSelectionCell(ka[ia]))}};
@@ -2692,7 +2692,7 @@ x=this.graph.getLinkForCell(this.state.cell);M=this.graph.getLinksForState(this.
this.customHandles[V]&&null!=this.customHandles[V].shape&&null!=this.customHandles[V].shape.bounds){var ia=this.customHandles[V].shape.bounds,ka=ia.getCenterX(),oa=ia.getCenterY();if(Math.abs(this.state.x-ka)<ia.width/2||Math.abs(this.state.y-oa)<ia.height/2||Math.abs(this.state.x+this.state.width-ka)<ia.width/2||Math.abs(this.state.y+this.state.height-oa)<ia.height/2){Q=!0;break}}Q&&null!=this.sizers&&0<this.sizers.length&&null!=this.sizers[0]?(M/=2,this.graph.isTable(this.state.cell)&&(M+=7),x.x=
this.sizers[0].bounds.width+M,x.y=this.sizers[0].bounds.height+M):x=O.apply(this,arguments);return x};mxVertexHandler.prototype.updateHint=function(x){if(this.index!=mxEvent.LABEL_HANDLE){null==this.hint&&(this.hint=b(),this.state.view.graph.container.appendChild(this.hint));if(this.index==mxEvent.ROTATION_HANDLE)this.hint.innerHTML=this.currentAlpha+"&deg;";else{x=this.state.view.scale;var M=this.state.view.unit;this.hint.innerHTML=e(this.roundLength(this.bounds.width/x),M)+" x "+e(this.roundLength(this.bounds.height/
x),M)}x=mxUtils.getBoundingBox(this.bounds,null!=this.currentAlpha?this.currentAlpha:this.state.style[mxConstants.STYLE_ROTATION]||"0");null==x&&(x=this.bounds);this.hint.style.left=x.x+Math.round((x.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=x.y+x.height+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")}};mxVertexHandler.prototype.removeHint=function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display=
-"")};var T=mxEdgeHandler.prototype.refresh;mxEdgeHandler.prototype.refresh=function(){T.apply(this,arguments);var x=this.graph.getLinkForCell(this.state.cell),M=this.graph.getLinksForState(this.state);this.updateLinkHint(x,M)};var X=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(x,M){X.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display="none")};
+"")};var S=mxEdgeHandler.prototype.refresh;mxEdgeHandler.prototype.refresh=function(){S.apply(this,arguments);var x=this.graph.getLinkForCell(this.state.cell),M=this.graph.getLinksForState(this.state);this.updateLinkHint(x,M)};var X=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(x,M){X.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display="none")};
var aa=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(x,M){aa.apply(this,arguments);null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="")};mxEdgeHandler.prototype.updateHint=function(x,M,Q){null==this.hint&&(this.hint=b(),this.state.view.graph.container.appendChild(this.hint));var V=this.graph.view.translate,ia=this.graph.view.scale,ka=this.roundLength(M.x/ia-V.x);V=this.roundLength(M.y/ia-V.y);var oa=
this.graph.view.unit;this.hint.innerHTML=e(ka,oa)+", "+e(V,oa);this.hint.style.visibility="visible";null!=Q&&(Q.view.updateEdgeBounds(Q),this.hint.innerHTML+=" ("+(oa==mxConstants.POINTS?Math.round(Q.length/ia):e(Q.length/ia,oa))+")");if(this.isSource||this.isTarget)null!=this.constraintHandler&&null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus?(Q=this.constraintHandler.currentConstraint.point,this.hint.innerHTML="["+Math.round(100*Q.x)+"%, "+Math.round(100*
Q.y)+"%]"):this.marker.hasValidState()&&(this.hint.style.visibility="hidden");this.hint.style.left=Math.round(x.getGraphX()-this.hint.clientWidth/2)+"px";this.hint.style.top=Math.max(x.getGraphY(),M.y)+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")};Graph.prototype.expandedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="50%" y1="0%" x2="50%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 2 4.5 L 7 4.5 z" stroke="#000"/>');
@@ -2736,11 +2736,11 @@ mxResources.get("rotateTooltip")),this.rotationShape.node.style.display=null!=th
this.state.style[mxConstants.STYLE_ROTATION]||"0"):this.state,M=null!=this.state.text?this.state.text.boundingBox:null,null==Q&&(Q=this.state),Q=Q.y+Q.height,null!=M&&(Q=Math.max(Q,M.y+M.height)),this.linkHint.style.left=x.x+x.width/2+"px",this.linkHint.style.top=Math.round(Q+this.verticalOffset/2+Editor.hintOffset)+"px",this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var Za=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){Za.apply(this,arguments);
this.destroyMoveHandles();this.destroyCornerHandles();null!=this.linkHint&&(null!=this.linkHint.parentNode&&this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getSelectionModel().removeListener(this.changeHandler),this.graph.getModel().removeListener(this.changeHandler),this.changeHandler=null);null!=this.editingHandler&&(this.graph.removeListener(this.editingHandler),this.editingHandler=null)};var La=mxEdgeHandler.prototype.redrawHandles;
mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(La.apply(this),null!=this.state&&null!=this.linkHint)){var x=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(x=new mxRectangle(x.x,x.y,x.width,x.height),x.add(this.state.text.bounds));this.linkHint.style.left=x.x+x.width/2+"px";this.linkHint.style.top=Math.round(x.y+x.height+Editor.hintOffset)+"px";this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":""}};var $a=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=
-function(){$a.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var Da=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){Da.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();(function(){function b(d,n,y){mxShape.call(this);this.line=d;this.stroke=n;this.strokewidth=null!=y?y:1;this.updateBoundsFromLine()}function e(){mxSwimlane.call(this)}function g(){mxSwimlane.call(this)}function m(){mxCylinder.call(this)}function u(){mxConnector.call(this)}function p(){mxCylinder.call(this)}function B(){mxActor.call(this)}function H(){mxCylinder.call(this)}function S(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function P(){mxCylinder.call(this)}function R(){mxShape.call(this)}
+function(){$a.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var Da=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){Da.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();(function(){function b(d,n,y){mxShape.call(this);this.line=d;this.stroke=n;this.strokewidth=null!=y?y:1;this.updateBoundsFromLine()}function e(){mxSwimlane.call(this)}function g(){mxSwimlane.call(this)}function m(){mxCylinder.call(this)}function u(){mxConnector.call(this)}function p(){mxCylinder.call(this)}function B(){mxActor.call(this)}function H(){mxCylinder.call(this)}function T(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function P(){mxCylinder.call(this)}function R(){mxShape.call(this)}
function c(){mxShape.call(this)}function f(d,n,y,q){mxShape.call(this);this.bounds=d;this.fill=n;this.stroke=y;this.strokewidth=null!=q?q:1}function l(){mxActor.call(this)}function t(){mxCylinder.call(this)}function z(){mxCylinder.call(this)}function C(){mxActor.call(this)}function F(){mxActor.call(this)}function N(){mxActor.call(this)}function K(){mxActor.call(this)}function J(){mxActor.call(this)}function da(){mxActor.call(this)}function ea(){mxActor.call(this)}function ca(d,n){this.canvas=d;this.canvas.setLineJoin("round");
this.canvas.setLineCap("round");this.defaultVariation=n;this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,ca.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,ca.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,ca.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,ca.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=
mxUtils.bind(this,ca.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,ca.prototype.arcTo)}function W(){mxRectangleShape.call(this)}function ba(){mxRectangleShape.call(this)}function ha(){mxActor.call(this)}function la(){mxActor.call(this)}function Y(){mxActor.call(this)}function ma(){mxRectangleShape.call(this)}function Z(){mxRectangleShape.call(this)}function k(){mxCylinder.call(this)}function A(){mxShape.call(this)}function I(){mxShape.call(this)}function U(){mxEllipse.call(this)}
-function O(){mxShape.call(this)}function T(){mxShape.call(this)}function X(){mxRectangleShape.call(this)}function aa(){mxShape.call(this)}function ja(){mxShape.call(this)}function pa(){mxShape.call(this)}function sa(){mxShape.call(this)}function qa(){mxShape.call(this)}function wa(){mxCylinder.call(this)}function Ba(){mxCylinder.call(this)}function za(){mxRectangleShape.call(this)}function Ea(){mxDoubleEllipse.call(this)}function ra(){mxDoubleEllipse.call(this)}function ya(){mxArrowConnector.call(this);
+function O(){mxShape.call(this)}function S(){mxShape.call(this)}function X(){mxRectangleShape.call(this)}function aa(){mxShape.call(this)}function ja(){mxShape.call(this)}function pa(){mxShape.call(this)}function sa(){mxShape.call(this)}function qa(){mxShape.call(this)}function wa(){mxCylinder.call(this)}function Ba(){mxCylinder.call(this)}function za(){mxRectangleShape.call(this)}function Ea(){mxDoubleEllipse.call(this)}function ra(){mxDoubleEllipse.call(this)}function ya(){mxArrowConnector.call(this);
this.spacing=0}function Ca(){mxArrowConnector.call(this);this.spacing=0}function Ma(){mxActor.call(this)}function Ha(){mxRectangleShape.call(this)}function Aa(){mxActor.call(this)}function Ra(){mxActor.call(this)}function Za(){mxActor.call(this)}function La(){mxActor.call(this)}function $a(){mxActor.call(this)}function Da(){mxActor.call(this)}function x(){mxActor.call(this)}function M(){mxActor.call(this)}function Q(){mxActor.call(this)}function V(){mxActor.call(this)}function ia(){mxEllipse.call(this)}
function ka(){mxEllipse.call(this)}function oa(){mxEllipse.call(this)}function xa(){mxRhombus.call(this)}function ta(){mxEllipse.call(this)}function ua(){mxEllipse.call(this)}function Fa(){mxEllipse.call(this)}function Na(){mxEllipse.call(this)}function Wa(){mxActor.call(this)}function Xa(){mxActor.call(this)}function ab(){mxActor.call(this)}function Oa(d,n,y,q){mxShape.call(this);this.bounds=d;this.fill=n;this.stroke=y;this.strokewidth=null!=q?q:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=
!0;this.indent=2;this.rectOutline="single"}function Qa(){mxConnector.call(this)}function kb(d,n,y,q,v,D,E,fa,L,va){E+=L;var na=q.clone();q.x-=v*(2*E+L);q.y-=D*(2*E+L);v*=E+L;D*=E+L;return function(){d.ellipse(na.x-v-E,na.y-D-E,2*E,2*E);va?d.fillAndStroke():d.stroke()}}mxUtils.extend(b,mxShape);b.prototype.updateBoundsFromLine=function(){var d=null;if(null!=this.line)for(var n=0;n<this.line.length;n++){var y=this.line[n];null!=y&&(y=new mxRectangle(y.x,y.y,this.strokewidth,this.strokewidth),null==
@@ -2754,8 +2754,8 @@ d.lineTo(D,D),d.close(),d.fill()),0!=fa&&(d.setFillAlpha(Math.abs(fa)),d.setFill
m);var cb=Math.tan(mxUtils.toRadians(30)),Ya=(.5-cb)/2;mxCellRenderer.registerShape("isoRectangle",B);mxUtils.extend(u,mxConnector);u.prototype.paintEdgeShape=function(d,n){var y=this.createMarker(d,n,!0),q=this.createMarker(d,n,!1);d.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&d.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);d.setShadow(!1);d.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,
arguments);d.setStrokeColor(this.stroke);d.setFillColor(this.stroke);d.setDashed(!1);null!=y&&y();null!=q&&q()};mxCellRenderer.registerShape("wire",u);mxUtils.extend(p,mxCylinder);p.prototype.size=6;p.prototype.paintVertexShape=function(d,n,y,q,v){d.setFillColor(this.stroke);var D=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;d.ellipse(n+.5*(q-D),y+.5*(v-D),D,D);d.fill();d.setFillColor(mxConstants.NONE);d.rect(n,y,q,v);d.fill()};mxCellRenderer.registerShape("waypoint",
p);mxUtils.extend(B,mxActor);B.prototype.size=20;B.prototype.redrawPath=function(d,n,y,q,v){n=Math.min(q,v/cb);d.translate((q-n)/2,(v-n)/2+n/4);d.moveTo(0,.25*n);d.lineTo(.5*n,n*Ya);d.lineTo(n,.25*n);d.lineTo(.5*n,(.5-Ya)*n);d.lineTo(0,.25*n);d.close();d.end()};mxCellRenderer.registerShape("isoRectangle",B);mxUtils.extend(H,mxCylinder);H.prototype.size=20;H.prototype.redrawPath=function(d,n,y,q,v,D){n=Math.min(q,v/(.5+cb));D?(d.moveTo(0,.25*n),d.lineTo(.5*n,(.5-Ya)*n),d.lineTo(n,.25*n),d.moveTo(.5*
-n,(.5-Ya)*n),d.lineTo(.5*n,(1-Ya)*n)):(d.translate((q-n)/2,(v-n)/2),d.moveTo(0,.25*n),d.lineTo(.5*n,n*Ya),d.lineTo(n,.25*n),d.lineTo(n,.75*n),d.lineTo(.5*n,(1-Ya)*n),d.lineTo(0,.75*n),d.close());d.end()};mxCellRenderer.registerShape("isoCube",H);mxUtils.extend(S,mxCylinder);S.prototype.redrawPath=function(d,n,y,q,v,D){n=Math.min(v/2,Math.round(v/8)+this.strokewidth-1);if(D&&null!=this.fill||!D&&null==this.fill)d.moveTo(0,n),d.curveTo(0,2*n,q,2*n,q,n),D||(d.stroke(),d.begin()),d.translate(0,n/2),d.moveTo(0,
-n),d.curveTo(0,2*n,q,2*n,q,n),D||(d.stroke(),d.begin()),d.translate(0,n/2),d.moveTo(0,n),d.curveTo(0,2*n,q,2*n,q,n),D||(d.stroke(),d.begin()),d.translate(0,-n);D||(d.moveTo(0,n),d.curveTo(0,-n/3,q,-n/3,q,n),d.lineTo(q,v-n),d.curveTo(q,v+n/3,0,v+n/3,0,v-n),d.close())};S.prototype.getLabelMargins=function(d){return new mxRectangle(0,2.5*Math.min(d.height/2,Math.round(d.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",S);mxUtils.extend(G,mxCylinder);G.prototype.size=30;G.prototype.darkOpacity=
+n,(.5-Ya)*n),d.lineTo(.5*n,(1-Ya)*n)):(d.translate((q-n)/2,(v-n)/2),d.moveTo(0,.25*n),d.lineTo(.5*n,n*Ya),d.lineTo(n,.25*n),d.lineTo(n,.75*n),d.lineTo(.5*n,(1-Ya)*n),d.lineTo(0,.75*n),d.close());d.end()};mxCellRenderer.registerShape("isoCube",H);mxUtils.extend(T,mxCylinder);T.prototype.redrawPath=function(d,n,y,q,v,D){n=Math.min(v/2,Math.round(v/8)+this.strokewidth-1);if(D&&null!=this.fill||!D&&null==this.fill)d.moveTo(0,n),d.curveTo(0,2*n,q,2*n,q,n),D||(d.stroke(),d.begin()),d.translate(0,n/2),d.moveTo(0,
+n),d.curveTo(0,2*n,q,2*n,q,n),D||(d.stroke(),d.begin()),d.translate(0,n/2),d.moveTo(0,n),d.curveTo(0,2*n,q,2*n,q,n),D||(d.stroke(),d.begin()),d.translate(0,-n);D||(d.moveTo(0,n),d.curveTo(0,-n/3,q,-n/3,q,n),d.lineTo(q,v-n),d.curveTo(q,v+n/3,0,v+n/3,0,v-n),d.close())};T.prototype.getLabelMargins=function(d){return new mxRectangle(0,2.5*Math.min(d.height/2,Math.round(d.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",T);mxUtils.extend(G,mxCylinder);G.prototype.size=30;G.prototype.darkOpacity=
0;G.prototype.paintVertexShape=function(d,n,y,q,v){var D=Math.max(0,Math.min(q,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),E=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));d.translate(n,y);d.begin();d.moveTo(0,0);d.lineTo(q-D,0);d.lineTo(q,D);d.lineTo(q,v);d.lineTo(0,v);d.lineTo(0,0);d.close();d.end();d.fillAndStroke();this.outline||(d.setShadow(!1),0!=E&&(d.setFillAlpha(Math.abs(E)),d.setFillColor(0>E?"#FFFFFF":"#000000"),
d.begin(),d.moveTo(q-D,0),d.lineTo(q-D,D),d.lineTo(q,D),d.close(),d.fill()),d.begin(),d.moveTo(q-D,0),d.lineTo(q-D,D),d.lineTo(q,D),d.end(),d.stroke())};mxCellRenderer.registerShape("note",G);mxUtils.extend(P,G);mxCellRenderer.registerShape("note2",P);P.prototype.getLabelMargins=function(d){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var n=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(d.height*this.scale,n*this.scale),0,0)}return null};mxUtils.extend(R,mxShape);R.prototype.isoAngle=
15;R.prototype.paintVertexShape=function(d,n,y,q,v){var D=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;D=Math.min(q*Math.tan(D),.5*v);d.translate(n,y);d.begin();d.moveTo(.5*q,0);d.lineTo(q,D);d.lineTo(q,v-D);d.lineTo(.5*q,v);d.lineTo(0,v-D);d.lineTo(0,D);d.close();d.fillAndStroke();d.setShadow(!1);d.begin();d.moveTo(0,D);d.lineTo(.5*q,2*D);d.lineTo(q,D);d.moveTo(.5*q,2*D);d.lineTo(.5*q,v);d.stroke()};mxCellRenderer.registerShape("isoCube2",
@@ -2802,8 +2802,8 @@ Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||
Va,bb=this.style["symbol"+D+"ArcSpacing"];null!=bb&&(bb*=this.getArcSize(q+this.strokewidth,v+this.strokewidth),Va+=bb,fb+=bb);bb=n;var Ga=y;bb=fa==mxConstants.ALIGN_CENTER?bb+(q-va)/2:fa==mxConstants.ALIGN_RIGHT?bb+(q-va-Va):bb+Va;Ga=L==mxConstants.ALIGN_MIDDLE?Ga+(v-na)/2:L==mxConstants.ALIGN_BOTTOM?Ga+(v-na-fb):Ga+fb;d.save();fa=new E;fa.style=this.style;E.prototype.paintVertexShape.call(fa,d,bb,Ga,va,na);d.restore()}D++}while(null!=E)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};
mxCellRenderer.registerShape("ext",Z);mxUtils.extend(k,mxCylinder);k.prototype.redrawPath=function(d,n,y,q,v,D){D?(d.moveTo(0,0),d.lineTo(q/2,v/2),d.lineTo(q,0),d.end()):(d.moveTo(0,0),d.lineTo(q,0),d.lineTo(q,v),d.lineTo(0,v),d.close())};mxCellRenderer.registerShape("message",k);mxUtils.extend(A,mxShape);A.prototype.paintBackground=function(d,n,y,q,v){d.translate(n,y);d.ellipse(q/4,0,q/2,v/4);d.fillAndStroke();d.begin();d.moveTo(q/2,v/4);d.lineTo(q/2,2*v/3);d.moveTo(q/2,v/3);d.lineTo(0,v/3);d.moveTo(q/
2,v/3);d.lineTo(q,v/3);d.moveTo(q/2,2*v/3);d.lineTo(0,v);d.moveTo(q/2,2*v/3);d.lineTo(q,v);d.end();d.stroke()};mxCellRenderer.registerShape("umlActor",A);mxUtils.extend(I,mxShape);I.prototype.getLabelMargins=function(d){return new mxRectangle(d.width/6,0,0,0)};I.prototype.paintBackground=function(d,n,y,q,v){d.translate(n,y);d.begin();d.moveTo(0,v/4);d.lineTo(0,3*v/4);d.end();d.stroke();d.begin();d.moveTo(0,v/2);d.lineTo(q/6,v/2);d.end();d.stroke();d.ellipse(q/6,0,5*q/6,v);d.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",
-I);mxUtils.extend(U,mxEllipse);U.prototype.paintVertexShape=function(d,n,y,q,v){mxEllipse.prototype.paintVertexShape.apply(this,arguments);d.begin();d.moveTo(n+q/8,y+v);d.lineTo(n+7*q/8,y+v);d.end();d.stroke()};mxCellRenderer.registerShape("umlEntity",U);mxUtils.extend(O,mxShape);O.prototype.paintVertexShape=function(d,n,y,q,v){d.translate(n,y);d.begin();d.moveTo(q,0);d.lineTo(0,v);d.moveTo(0,0);d.lineTo(q,v);d.end();d.stroke()};mxCellRenderer.registerShape("umlDestroy",O);mxUtils.extend(T,mxShape);
-T.prototype.getLabelBounds=function(d){return new mxRectangle(d.x,d.y+d.height/8,d.width,7*d.height/8)};T.prototype.paintBackground=function(d,n,y,q,v){d.translate(n,y);d.begin();d.moveTo(3*q/8,v/8*1.1);d.lineTo(5*q/8,0);d.end();d.stroke();d.ellipse(0,v/8,q,7*v/8);d.fillAndStroke()};T.prototype.paintForeground=function(d,n,y,q,v){d.begin();d.moveTo(3*q/8,v/8*1.1);d.lineTo(5*q/8,v/4);d.end();d.stroke()};mxCellRenderer.registerShape("umlControl",T);mxUtils.extend(X,mxRectangleShape);X.prototype.size=
+I);mxUtils.extend(U,mxEllipse);U.prototype.paintVertexShape=function(d,n,y,q,v){mxEllipse.prototype.paintVertexShape.apply(this,arguments);d.begin();d.moveTo(n+q/8,y+v);d.lineTo(n+7*q/8,y+v);d.end();d.stroke()};mxCellRenderer.registerShape("umlEntity",U);mxUtils.extend(O,mxShape);O.prototype.paintVertexShape=function(d,n,y,q,v){d.translate(n,y);d.begin();d.moveTo(q,0);d.lineTo(0,v);d.moveTo(0,0);d.lineTo(q,v);d.end();d.stroke()};mxCellRenderer.registerShape("umlDestroy",O);mxUtils.extend(S,mxShape);
+S.prototype.getLabelBounds=function(d){return new mxRectangle(d.x,d.y+d.height/8,d.width,7*d.height/8)};S.prototype.paintBackground=function(d,n,y,q,v){d.translate(n,y);d.begin();d.moveTo(3*q/8,v/8*1.1);d.lineTo(5*q/8,0);d.end();d.stroke();d.ellipse(0,v/8,q,7*v/8);d.fillAndStroke()};S.prototype.paintForeground=function(d,n,y,q,v){d.begin();d.moveTo(3*q/8,v/8*1.1);d.lineTo(5*q/8,v/4);d.end();d.stroke()};mxCellRenderer.registerShape("umlControl",S);mxUtils.extend(X,mxRectangleShape);X.prototype.size=
40;X.prototype.isHtmlAllowed=function(){return!1};X.prototype.getLabelBounds=function(d){var n=Math.max(0,Math.min(d.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(d.x,d.y,d.width,n)};X.prototype.paintBackground=function(d,n,y,q,v){var D=Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),E=mxUtils.getValue(this.style,"participant");null==E||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,d,n,
y,q,D):(E=this.state.view.graph.cellRenderer.getShape(E),null!=E&&E!=X&&(E=new E,E.apply(this.state),d.save(),E.paintVertexShape(d,n,y,q,D),d.restore()));D<v&&(d.setDashed("1"==mxUtils.getValue(this.style,"lifelineDashed","1")),d.begin(),d.moveTo(n+q/2,y+D),d.lineTo(n+q/2,y+v),d.end(),d.stroke())};X.prototype.paintForeground=function(d,n,y,q,v){var D=Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.size))));mxRectangleShape.prototype.paintForeground.call(this,d,n,y,q,Math.min(v,
D))};mxCellRenderer.registerShape("umlLifeline",X);mxUtils.extend(aa,mxShape);aa.prototype.width=60;aa.prototype.height=30;aa.prototype.corner=10;aa.prototype.configurePointerEvents=function(d){var n=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);null==this.style||null!=n&&n!=mxConstants.NONE&&0!=this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(d.pointerEvents=!1)};aa.prototype.getLabelMargins=function(d){return new mxRectangle(0,
@@ -3044,7 +3044,7 @@ H.setEnabled(!1);H=this.addAction("animations",function(){Editor.enableAnimation
H=this.addAction("collapseExpand",function(){var G=new ChangePageSetup(m);G.ignoreColor=!0;G.ignoreImage=!0;G.foldingEnabled=!p.foldingEnabled;p.model.execute(G)});H.setToggleAction(!0);H.setSelectedCallback(function(){return p.foldingEnabled});H.isEnabled=B;H=this.addAction("pageView",mxUtils.bind(this,function(){m.setPageVisible(!p.pageVisible)}));H.setToggleAction(!0);H.setSelectedCallback(function(){return p.pageVisible});H=this.addAction("connectionArrows",function(){p.connectionArrowsEnabled=
!p.connectionArrowsEnabled;m.fireEvent(new mxEventObject("connectionArrowsChanged"))},null,null,"Alt+Shift+A");H.setToggleAction(!0);H.setSelectedCallback(function(){return p.connectionArrowsEnabled});H=this.addAction("connectionPoints",function(){p.setConnectable(!p.connectionHandler.isEnabled());m.fireEvent(new mxEventObject("connectionPointsChanged"))},null,null,"Alt+Shift+O");H.setToggleAction(!0);H.setSelectedCallback(function(){return p.connectionHandler.isEnabled()});H=this.addAction("copyConnect",
function(){p.connectionHandler.setCreateTarget(!p.connectionHandler.isCreateTarget());m.fireEvent(new mxEventObject("copyConnectChanged"))});H.setToggleAction(!0);H.setSelectedCallback(function(){return p.connectionHandler.isCreateTarget()});H.isEnabled=B;H=this.addAction("autosave",function(){m.editor.setAutosave(!m.editor.autosave)});H.setToggleAction(!0);H.setSelectedCallback(function(){return m.editor.autosave});H.isEnabled=B;H.visible=!1;this.addAction("help",function(){var G="";mxResources.isLanguageSupported(mxClient.language)&&
-(G="_"+mxClient.language);p.openLink(RESOURCES_PATH+"/help"+G+".html")});var S=!1;this.put("about",new Action(mxResources.get("about")+" Graph Editor...",function(){S||(m.showDialog((new AboutDialog(m)).container,320,280,!0,!0,function(){S=!1}),S=!0)}));H=mxUtils.bind(this,function(G,P,R,c){return this.addAction(G,function(){if(null!=R&&p.cellEditor.isContentEditing())R();else{p.stopEditing(!1);p.getModel().beginUpdate();try{var f=p.getEditableCells(p.getSelectionCells());p.toggleCellStyleFlags(mxConstants.STYLE_FONTSTYLE,
+(G="_"+mxClient.language);p.openLink(RESOURCES_PATH+"/help"+G+".html")});var T=!1;this.put("about",new Action(mxResources.get("about")+" Graph Editor...",function(){T||(m.showDialog((new AboutDialog(m)).container,320,280,!0,!0,function(){T=!1}),T=!0)}));H=mxUtils.bind(this,function(G,P,R,c){return this.addAction(G,function(){if(null!=R&&p.cellEditor.isContentEditing())R();else{p.stopEditing(!1);p.getModel().beginUpdate();try{var f=p.getEditableCells(p.getSelectionCells());p.toggleCellStyleFlags(mxConstants.STYLE_FONTSTYLE,
P,f);(P&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD?p.updateLabelElements(f,function(t){t.style.fontWeight=null;"B"==t.nodeName&&p.replaceElement(t)}):(P&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC?p.updateLabelElements(f,function(t){t.style.fontStyle=null;"I"==t.nodeName&&p.replaceElement(t)}):(P&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&p.updateLabelElements(f,function(t){t.style.textDecoration=null;"U"==t.nodeName&&p.replaceElement(t)});for(var l=0;l<f.length;l++)0==p.model.getChildCount(f[l])&&
p.autoSizeCell(f[l],!1)}finally{p.getModel().endUpdate()}}},null,null,c)});H("bold",mxConstants.FONT_BOLD,function(){document.execCommand("bold",!1,null)},Editor.ctrlKey+"+B");H("italic",mxConstants.FONT_ITALIC,function(){document.execCommand("italic",!1,null)},Editor.ctrlKey+"+I");H("underline",mxConstants.FONT_UNDERLINE,function(){document.execCommand("underline",!1,null)},Editor.ctrlKey+"+U");this.addAction("fontColor...",function(){m.menus.pickColor(mxConstants.STYLE_FONTCOLOR,"forecolor","000000",
"default",p.shapeForegroundColor)});this.addAction("strokeColor...",function(){m.menus.pickColor(mxConstants.STYLE_STROKECOLOR,null,null,"default",p.shapeForegroundColor)});this.addAction("fillColor...",function(){m.menus.pickColor(mxConstants.STYLE_FILLCOLOR,null,null,"default",p.shapeBackgroundColor)});this.addAction("gradientColor...",function(){m.menus.pickColor(mxConstants.STYLE_GRADIENTCOLOR,null,null,"default",p.shapeForegroundColor)});this.addAction("backgroundColor...",function(){m.menus.pickColor(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,
@@ -3079,25 +3079,25 @@ DrawioFile.prototype.synchronizeFile=function(b,e){if(this.savingFile)null!=e&&e
function(B){g&&(window.clearTimeout(m),this.sync.cleanup(b,e,B))}),u,p):this.updateFile(mxUtils.bind(this,function(){g&&(window.clearTimeout(m),null!=b&&b())}),u,p)}};
DrawioFile.prototype.updateFile=function(b,e,g,m,u){null!=g&&g()||(EditorUi.debug("DrawioFile.updateFile",[this],"immediate",u,"invalidChecksum",this.invalidChecksum),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=e&&e():this.getLatestVersion(mxUtils.bind(this,function(p){try{null!=g&&g()||(EditorUi.debug("DrawioFile.updateFile",[this],"invalidChecksum",this.invalidChecksum,"latestFile",[p]),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=e&&e():null!=p?this.mergeFile(p,b,e,
m,u):this.reloadFile(b,e))}catch(B){null!=e&&e(B)}}),e))};
-DrawioFile.prototype.mergeFile=function(b,e,g,m,u){try{var p=b.getShadowPages();if(null!=p&&0<p.length){var B=this.getShadowPages(),H=[this.ui.diffPages(null!=m?m:B,p)],S=this.ignorePatches(H);if(S)this.inConflictState=this.invalidChecksum=!1,this.setDescriptor(b.getDescriptor()),this.descriptorChanged(),EditorUi.debug("File.mergeFile",[this],"file",[b],"ignored",S),null!=e&&e();else try{this.stats.fileMerged++;null!=this.sync&&this.sync.sendLocalChanges();var G=this.isModified()?this.ui.diffPages(B,
+DrawioFile.prototype.mergeFile=function(b,e,g,m,u){try{var p=b.getShadowPages();if(null!=p&&0<p.length){var B=this.getShadowPages(),H=[this.ui.diffPages(null!=m?m:B,p)],T=this.ignorePatches(H);if(T)this.inConflictState=this.invalidChecksum=!1,this.setDescriptor(b.getDescriptor()),this.descriptorChanged(),EditorUi.debug("File.mergeFile",[this],"file",[b],"ignored",T),null!=e&&e();else try{this.stats.fileMerged++;null!=this.sync&&this.sync.sendLocalChanges();var G=this.isModified()?this.ui.diffPages(B,
this.isRealtime()?this.ownPages:this.ui.pages):null,P=this.ui.patchPages(this.ui.clonePages(B),H[0]),R=this.ui.getHashValueForPages(P,{}),c=this.ui.getHashValueForPages(p,{});EditorUi.debug("File.mergeFile",[this],"file",[b],"ui",this.ui.pages,"shadow",B,"pages",p,"patched",P,"patches",H,"changes",G,"checksum",R,"current",c,"valid",R==c,"from",this.getCurrentRevisionId(),"to",b.getCurrentRevisionId(),"modified",this.isModified(),"immediate",u);if(null!=R&&R!=c)this.checksumError(g,H,null,null,"mergeFile",
R,c,b.getCurrentRevisionId());else{this.setShadowPages(p);if(null!=this.sync){var f=this.sync.patchRealtime(H,DrawioFile.LAST_WRITE_WINS?G:null,null,u);null==f||mxUtils.isEmptyObject(f)||H.push(f)}this.patch(H,DrawioFile.LAST_WRITE_WINS?G:null);this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(b.getDescriptor());this.descriptorChanged();null!=e&&e()}}catch(z){this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=g&&g(z);try{var l=this.getCurrentUser(),t=null!=l?
l.id:"unknown";EditorUi.logError("Error in mergeFile",null,this.getMode()+"."+this.getId(),t,z)}catch(C){}}}else throw Error(mxResources.get("notADiagramFile"));}catch(z){null!=g&&g(z)}};
DrawioFile.prototype.getAnonymizedXmlForPages=function(b){var e=new mxCodec(mxUtils.createXmlDocument()),g=e.document.createElement("mxfile");if(null!=b)for(var m=0;m<b.length;m++){var u=e.encode(new mxGraphModel(b[m].root));"1"!=urlParams.dev&&(u=this.ui.anonymizeNode(u,!0));u.setAttribute("id",b[m].getId());b[m].viewState&&this.ui.editor.graph.saveViewState(b[m].viewState,u,!0);g.appendChild(u)}return mxUtils.getPrettyXml(g)};
DrawioFile.prototype.compressReportData=function(b,e,g){e=null!=e?e:1E4;null!=g&&null!=b&&b.length>g?b=b.substring(0,g)+"[...]":null!=b&&b.length>e&&(b=Graph.compress(b)+"\n");return b};
-DrawioFile.prototype.checksumError=function(b,e,g,m,u,p,B,H){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var S=this.getCurrentUser(),G=null!=S?S.id:"unknown",P=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",R=JSON.stringify(e).length,c=null;if(null!=e&&1E3>R){for(b=0;b<e.length;b++)this.ui.anonymizePatch(e[b]);c=JSON.stringify(e);c=null!=c&&1E3>c.length?Graph.compress(c):
+DrawioFile.prototype.checksumError=function(b,e,g,m,u,p,B,H){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var T=this.getCurrentUser(),G=null!=T?T.id:"unknown",P=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",R=JSON.stringify(e).length,c=null;if(null!=e&&1E3>R){for(b=0;b<e.length;b++)this.ui.anonymizePatch(e[b]);c=JSON.stringify(e);c=null!=c&&1E3>c.length?Graph.compress(c):
null}this.getLatestVersion(mxUtils.bind(this,function(f){try{var l=null!=c?"report":"error",t=this.ui.getHashValueForPages(f.getShadowPages()),z="unknown",C="unknown",F="unknown";try{var N=null!=f.initialData&&0<f.initialData.length?mxUtils.parseXml(f.initialData).documentElement:null;null!=N&&(null!=N.getAttribute("version")&&(z=N.getAttribute("version")),null!=N.getAttribute("agent")&&(C=N.getAttribute("agent")),null!=N.getAttribute("type")&&(F=N.getAttribute("type")))}catch(K){}EditorUi.logError("Checksum "+
l+" in "+u,null,this.getMode()+"."+P,"user_"+G+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+R+"-patches_"+e.length+(null!=c?"-json_"+c:"")+"-size_"+this.getSize()+(null!=p?"-expected_"+p:"")+(null!=B?"-current_"+B:"")+(null!=H?"-rev_"+this.ui.hashValue(H):"")+(null!=t?"-latest_"+t:"")+"-latestRev_"+this.ui.hashValue(f.getCurrentRevisionId())+("-latestVersion_"+z)+("-latestAgent_"+C)+("-latestType_"+F));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+P,action:u,label:"user_"+
G+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+R+"-patches_"+e.length+"-size_"+this.getSize()})}catch(K){}}),function(){})}catch(f){}};
-DrawioFile.prototype.sendErrorReport=function(b,e,g,m){try{var u=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),p=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),B=this.getCurrentUser(),H=null!=B?this.ui.hashValue(B.id):"unknown",S=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",G=this.getTitle(),P=G.lastIndexOf(".");B="xml";0<P&&(B=G.substring(P));var R=null!=g?g.stack:Error().stack;EditorUi.sendReport(b+" "+(new Date).toISOString()+
-":\n\nAppVersion="+navigator.appVersion+"\nFile="+this.ui.hashValue(this.getId())+" ("+this.getMode()+")"+(this.isModified()?" modified":"")+"\nSize/Type="+this.getSize()+" ("+B+")\nUser="+H+S+"\nPrefix="+this.ui.editor.graph.model.prefix+"\nSync="+DrawioFile.SYNC+(null!=this.sync?(this.sync.enabled?" enabled":"")+(this.sync.isConnected()?" connected":""):"")+"\nPlugins="+(null!=mxSettings.settings?mxSettings.getPlugins():"null")+"\n\nStats:\n"+JSON.stringify(this.stats,null,2)+(null!=e?"\n\n"+e:
+DrawioFile.prototype.sendErrorReport=function(b,e,g,m){try{var u=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),p=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),B=this.getCurrentUser(),H=null!=B?this.ui.hashValue(B.id):"unknown",T=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",G=this.getTitle(),P=G.lastIndexOf(".");B="xml";0<P&&(B=G.substring(P));var R=null!=g?g.stack:Error().stack;EditorUi.sendReport(b+" "+(new Date).toISOString()+
+":\n\nAppVersion="+navigator.appVersion+"\nFile="+this.ui.hashValue(this.getId())+" ("+this.getMode()+")"+(this.isModified()?" modified":"")+"\nSize/Type="+this.getSize()+" ("+B+")\nUser="+H+T+"\nPrefix="+this.ui.editor.graph.model.prefix+"\nSync="+DrawioFile.SYNC+(null!=this.sync?(this.sync.enabled?" enabled":"")+(this.sync.isConnected()?" connected":""):"")+"\nPlugins="+(null!=mxSettings.settings?mxSettings.getPlugins():"null")+"\n\nStats:\n"+JSON.stringify(this.stats,null,2)+(null!=e?"\n\n"+e:
"")+(null!=g?"\n\nError: "+g.message:"")+"\n\nStack:\n"+R+"\n\nShadow:\n"+u+"\n\nData:\n"+p,m)}catch(c){}};
DrawioFile.prototype.reloadFile=function(b,e){try{this.stats.fileReloaded++;var g=this.ui.diffPages(this.getShadowPages(),this.isRealtime()?this.ownPages:this.ui.pages),m=this.ui.editor.graph,u=m.getSelectionCells(),p=m.getViewState(),B=this.ui.currentPage;this.getLatestVersion(mxUtils.bind(this,function(H){EditorUi.debug("DrawioFile.reloadFile",[this],"modified",this.isModified(),"rev",this.getCurrentRevisionId(),"changes",[g],"viewState",[p],"latestFile",H);null!=H?(this.ui.replaceFileData(H.getData(),
-[g]),this.ui.restoreViewState(B,p,u),this.setDescriptor(H.getDescriptor()),this.descriptorChanged(),null!=b&&b()):(this.ui.spinner.stop(),this.ui.loadFile(this.getHash(),!0,null,mxUtils.bind(this,function(){if(null==this.ui.fileLoadedError){var S=this.ui.getCurrentFile();null!=S&&(S.stats=this.stats,S.patch([g]),S.fileChanged());this.ui.restoreViewState(B,p,u);null!=b&&b()}else null!=e&&e(this.ui.fileLoadedError)}),!0))}),e)}catch(H){null!=e&&e(H)}};
+[g]),this.ui.restoreViewState(B,p,u),this.setDescriptor(H.getDescriptor()),this.descriptorChanged(),null!=b&&b()):(this.ui.spinner.stop(),this.ui.loadFile(this.getHash(),!0,null,mxUtils.bind(this,function(){if(null==this.ui.fileLoadedError){var T=this.ui.getCurrentFile();null!=T&&(T.stats=this.stats,T.patch([g]),T.fileChanged());this.ui.restoreViewState(B,p,u);null!=b&&b()}else null!=e&&e(this.ui.fileLoadedError)}),!0))}),e)}catch(H){null!=e&&e(H)}};
DrawioFile.prototype.copyFile=function(b,e){this.ui.editor.editAsNew(this.ui.getFileData(!0),this.ui.getCopyFilename(this))};DrawioFile.prototype.ignorePatches=function(b){var e=!0;if(null!=b)for(var g=0;g<b.length&&e;g++)e=e&&mxUtils.isEmptyObject(b[g]);return e};
-DrawioFile.prototype.patch=function(b,e,g,m){if(null!=b){var u=this.ui.editor.undoManager,p=u.history.slice(),B=u.indexOfNextAdd,H=this.ui.editor.graph;H.container.style.visibility="hidden";var S=this.changeListenerEnabled;this.changeListenerEnabled=g;var G=H.foldingEnabled,P=H.mathEnabled,R=H.cellRenderer.redraw;H.cellRenderer.redraw=function(C){C.view.graph.isEditing(C.cell)&&(C.view.graph.scrollCellToVisible(C.cell),C.view.graph.cellEditor.resize());R.apply(this,arguments)};H.model.beginUpdate();
+DrawioFile.prototype.patch=function(b,e,g,m){if(null!=b){var u=this.ui.editor.undoManager,p=u.history.slice(),B=u.indexOfNextAdd,H=this.ui.editor.graph;H.container.style.visibility="hidden";var T=this.changeListenerEnabled;this.changeListenerEnabled=g;var G=H.foldingEnabled,P=H.mathEnabled,R=H.cellRenderer.redraw;H.cellRenderer.redraw=function(C){C.view.graph.isEditing(C.cell)&&(C.view.graph.scrollCellToVisible(C.cell),C.view.graph.cellEditor.resize());R.apply(this,arguments)};H.model.beginUpdate();
try{if(g){for(var c=this.ui.pages.slice(),f=this.ui.currentPage,l=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified()),t=0;t<l.length;t++){var z=mxUtils.indexOf(this.ui.pages,l[t]);0>z?this.ui.insertPage(l[t],Math.min(t,this.ui.pages.length)):this.ui.movePage(z,t)}for(t=0;t<c.length;t++)0>mxUtils.indexOf(l,c[t])&&this.ui.removePage(c[t]);0<=mxUtils.indexOf(this.ui.pages,f)&&this.ui.selectPage(f,!0)}else this.ui.pages=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified());0==this.ui.pages.length&&
-this.ui.pages.push(this.ui.createPage());0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0);H.checkDefaultParent()}finally{H.container.style.visibility="";H.model.endUpdate();H.cellRenderer.redraw=R;this.changeListenerEnabled=S;g||(u.history=p,u.indexOfNextAdd=B,u.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)P!=H.mathEnabled?(this.ui.editor.updateGraphComponents(),H.refresh()):(G!=H.foldingEnabled?
+this.ui.pages.push(this.ui.createPage());0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0);H.checkDefaultParent()}finally{H.container.style.visibility="";H.model.endUpdate();H.cellRenderer.redraw=R;this.changeListenerEnabled=T;g||(u.history=p,u.indexOfNextAdd=B,u.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)P!=H.mathEnabled?(this.ui.editor.updateGraphComponents(),H.refresh()):(G!=H.foldingEnabled?
H.view.revalidate():H.view.validate(),H.sizeDidChange());null!=this.sync&&this.isRealtime()&&!m&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages));this.ui.editor.fireEvent(new mxEventObject("pagesPatched","patches",b))}EditorUi.debug("DrawioFile.patch",[this],"patches",b,"resolver",e,"undoable",g)}return b};
DrawioFile.prototype.save=function(b,e,g,m,u,p){try{if(EditorUi.debug("DrawioFile.save",[this],"revision",b,"unloading",m,"overwrite",u,"manual",p,"saving",this.savingFile,"editable",this.isEditable(),"invalidChecksum",this.invalidChecksum),this.isEditable())if(!u&&this.invalidChecksum)if(null!=g)g({message:mxResources.get("checksum")});else throw Error(mxResources.get("checksum"));else this.updateFileData(),this.clearAutosave(),null!=e&&e();else if(null!=g)g({message:mxResources.get("readOnly")});
else throw Error(mxResources.get("readOnly"));}catch(B){if(null!=g)g(B);else throw B;}};DrawioFile.prototype.createData=function(){var b=this.ui.pages;if(this.isRealtime()&&(this.ui.pages=this.ownPages,null!=this.ui.currentPage)){var e=this.ui.getPageById(this.ui.currentPage.getId(),this.ownPages);null!=e&&(e.viewState=this.ui.editor.graph.getViewState(),e.needsUpdate=!0)}e=this.ui.getFileData(null,null,null,null,null,null,null,null,this,!this.isCompressed());this.ui.pages=b;return e};
@@ -3148,7 +3148,7 @@ DrawioFile.prototype.fileChanged=function(b){b=null!=b?b:!0;this.lastChanged=new
mxUtils.bind(this,function(e){this.ui.stopSanityCheck();null==this.autosaveThread?(this.handleFileSuccess(!0),this.ageStart=null):this.isModified()&&(this.ui.scheduleSanityCheck(),this.ageStart=this.lastChanged)}),mxUtils.bind(this,function(e){this.handleFileError(e)}))):(this.ageStart=null,this.isAutosaveOptional()&&this.ui.editor.autosave||this.inConflictState||this.addUnsavedStatus());null!=this.sync&&b&&this.sync.localFileChanged()};
DrawioFile.prototype.createSecret=function(b){var e=Editor.guid(32);Editor.enableRealtimeCache&&null!=this.sync&&!this.isOptimisticSync()?this.sync.createToken(e,mxUtils.bind(this,function(g){EditorUi.debug("DrawioFile.createSecret",[this],"secret",e,"token",g);b(e,g)}),mxUtils.bind(this,function(){b(e)})):b(e)};DrawioFile.prototype.fileSaving=function(){null!=this.sync&&this.sync.fileSaving()};
DrawioFile.prototype.fileSaved=function(b,e,g,m,u,p,B){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;p=null!=p?p:this.ui.getPagesForXml(b);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(p),null!=this.sync&&(this.sync.lastModified=this.getLastModifiedDate(),this.sync.resetUpdateStatusThread(),this.isRealtime()&&this.sync.scheduleCleanup()),null!=g&&g()):this.sync.fileSaved(p,e,g,m,u,B)}catch(G){this.invalidChecksum=
-this.inConflictState=!0;this.descriptorChanged();null!=m&&m(G);try{var H=this.getCurrentUser(),S=null!=H?H.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),S,G)}catch(P){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"desc",[e],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(G){this.descriptorChanged(),null!=m&&m(G)}};
+this.inConflictState=!0;this.descriptorChanged();null!=m&&m(G);try{var H=this.getCurrentUser(),T=null!=H?H.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),T,G)}catch(P){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"desc",[e],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(G){this.descriptorChanged(),null!=m&&m(G)}};
DrawioFile.prototype.autosave=function(b,e,g,m){null==this.lastAutosave&&(this.lastAutosave=Date.now());var u=Date.now()-this.lastAutosave<e?b:0;this.clearAutosave();var p=window.setTimeout(mxUtils.bind(this,function(){try{if(this.lastAutosave=null,this.autosaveThread==p&&(this.autosaveThread=null),EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"modified",this.isModified(),"now",this.isAutosaveNow(),"saving",this.savingFile),this.isModified()&&this.isAutosaveNow()){var B=this.isAutosaveRevision();
B&&(this.lastAutosaveRevision=(new Date).getTime());this.save(B,mxUtils.bind(this,function(H){this.autosaveCompleted();null!=g&&g(H)}),mxUtils.bind(this,function(H){null!=m&&m(H)}))}else this.isModified()||this.ui.editor.setStatus(""),null!=g&&g(null)}catch(H){null!=m&&m(H)}}),u);this.autosaveThread=p;EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"delay",b,"maxDelay",e,"actualDelay",u,"lastAutosave",this.lastAutosave,"saving",this.savingFile)};DrawioFile.prototype.isAutosaveNow=function(){return!0};
DrawioFile.prototype.autosaveCompleted=function(){};DrawioFile.prototype.clearAutosave=function(){null!=this.autosaveThread&&(window.clearTimeout(this.autosaveThread),this.autosaveThread=null)};DrawioFile.prototype.isAutosaveRevision=function(){var b=(new Date).getTime();return null==this.lastAutosaveRevision||b-this.lastAutosaveRevision>this.maxAutosaveRevisionDelay};DrawioFile.prototype.descriptorChanged=function(){this.fireEvent(new mxEventObject("descriptorChanged"))};
@@ -3157,10 +3157,10 @@ DrawioFile.prototype.removeListeners=function(){null!=this.changeListener&&(this
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,m,u,p,B){DrawioFile.call(this,b,e);this.title=g;this.mode=m?null:App.MODE_DEVICE;this.fileHandle=u;this.desc=p;this.editable=B};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};
LocalFile.prototype.getTitle=function(){return this.title};LocalFile.prototype.isRenamable=function(){return!0};LocalFile.prototype.isEditable=function(){return DrawioFile.prototype.isEditable.apply(this,arguments)&&(null==this.editable||this.editable)};LocalFile.prototype.setEditable=function(b){this.editable=b;this.descriptorChanged()};LocalFile.prototype.save=function(b,e,g,m,u){this.saveAs(this.title,e,g,m,u)};LocalFile.prototype.saveAs=function(b,e,g,m,u){this.saveFile(b,!1,e,g,null,m,u)};
LocalFile.prototype.getDescriptor=function(){return this.desc};LocalFile.prototype.setDescriptor=function(b){this.desc=b};LocalFile.prototype.getLatestVersion=function(b,e){null==this.fileHandle?null!=e&&e({message:mxResources.get("cannotOpenFile")}):this.ui.loadFileSystemEntry(this.fileHandle,b,e)};
-LocalFile.prototype.saveFile=function(b,e,g,m,u,p,B){b!=this.title&&(this.editable=this.desc=this.fileHandle=null);this.title=b;u||this.updateFileData();var H=this.ui.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var S=this.getData(),G=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=g&&g()}),P=mxUtils.bind(this,function(R){if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=
-!0;var c=mxUtils.bind(this,function(l){this.savingFile=!1;null!=m&&m({error:l})});this.saveDraft(S);this.fileHandle.createWritable().then(mxUtils.bind(this,function(l){this.fileHandle.getFile().then(mxUtils.bind(this,function(t){this.invalidFileHandle=null;EditorUi.debug("LocalFile.saveFile",[this],"desc",[this.desc],"newDesc",[t],"conflict",this.desc.lastModified!=t.lastModified);B||this.desc.lastModified==t.lastModified?l.write(H?this.ui.base64ToBlob(R,"image/png"):R).then(mxUtils.bind(this,function(){l.close().then(mxUtils.bind(this,
-function(){this.fileHandle.getFile().then(mxUtils.bind(this,function(z){try{var C=this.desc;this.savingFile=!1;this.desc=z;this.fileSaved(S,C,G,c);this.removeDraft()}catch(F){c(F)}}),c)}),c)}),c):(this.inConflictState=!0,c())}),mxUtils.bind(this,function(t){this.invalidFileHandle=!0;c(t)}))}),c)}}else{if(this.ui.isOfflineApp()||this.ui.isLocalFileSave())this.ui.doSaveLocalFile(R,b,H?"image/png":"text/xml",H);else if(R.length<MAX_REQUEST_SIZE){var f=b.lastIndexOf(".");f=0<f?b.substring(f+1):"xml";
-(new mxXmlRequest(SAVE_URL,"format="+f+"&xml="+encodeURIComponent(R)+"&filename="+encodeURIComponent(b)+(H?"&binary=1":""))).simulate(document,"_blank")}else this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(R)}));G()}});H?(e=this.ui.getPngFileProperties(this.ui.fileNode),this.ui.getEmbeddedPng(mxUtils.bind(this,function(R){P(R)}),m,this.ui.getCurrentFile()!=this?S:null,e.scale,e.border)):P(S)};
+LocalFile.prototype.saveFile=function(b,e,g,m,u,p,B){b!=this.title&&(this.editable=this.desc=this.fileHandle=null);this.title=b;u||this.updateFileData();var H=this.ui.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var T=this.getData(),G=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=g&&g()}),P=mxUtils.bind(this,function(R){if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=
+!0;var c=mxUtils.bind(this,function(l){this.savingFile=!1;null!=m&&m({error:l})});this.saveDraft(T);this.fileHandle.createWritable().then(mxUtils.bind(this,function(l){this.fileHandle.getFile().then(mxUtils.bind(this,function(t){this.invalidFileHandle=null;EditorUi.debug("LocalFile.saveFile",[this],"desc",[this.desc],"newDesc",[t],"conflict",this.desc.lastModified!=t.lastModified);B||this.desc.lastModified==t.lastModified?l.write(H?this.ui.base64ToBlob(R,"image/png"):R).then(mxUtils.bind(this,function(){l.close().then(mxUtils.bind(this,
+function(){this.fileHandle.getFile().then(mxUtils.bind(this,function(z){try{var C=this.desc;this.savingFile=!1;this.desc=z;this.fileSaved(T,C,G,c);this.removeDraft()}catch(F){c(F)}}),c)}),c)}),c):(this.inConflictState=!0,c())}),mxUtils.bind(this,function(t){this.invalidFileHandle=!0;c(t)}))}),c)}}else{if(this.ui.isOfflineApp()||this.ui.isLocalFileSave())this.ui.doSaveLocalFile(R,b,H?"image/png":"text/xml",H);else if(R.length<MAX_REQUEST_SIZE){var f=b.lastIndexOf(".");f=0<f?b.substring(f+1):"xml";
+(new mxXmlRequest(SAVE_URL,"format="+f+"&xml="+encodeURIComponent(R)+"&filename="+encodeURIComponent(b)+(H?"&binary=1":""))).simulate(document,"_blank")}else this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(R)}));G()}});H?(e=this.ui.getPngFileProperties(this.ui.fileNode),this.ui.getEmbeddedPng(mxUtils.bind(this,function(R){P(R)}),m,this.ui.getCurrentFile()!=this?T:null,e.scale,e.border)):P(T)};
LocalFile.prototype.rename=function(b,e,g){this.title=b;this.descriptorChanged();null!=e&&e()};(function(){"undefined"!==typeof html4&&(html4.ATTRIBS["span::data-lucid-content"]=0,html4.ATTRIBS["span::data-lucid-type"]=0,html4.ATTRIBS["font::data-font-src"]=0);Editor.sketchFontFamily="Architects Daughter";Editor.sketchFontSource="https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter";Editor.sketchFonts=[{fontFamily:Editor.sketchFontFamily,fontUrl:decodeURIComponent(Editor.sketchFontSource)}];Editor.sketchDefaultCurveFitting="1";Editor.sketchDefaultJiggle="2";Editor.thinFormatImage=
"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHdpZHRoPSI0OCI+PHBhdGggZD0ibTM2LjUgMTguMzUtNi44NS02Ljg1IDMuMjUtMy4ycS44NS0uODUgMi4wMjUtLjg1IDEuMTc1IDAgMi4wMjUuODVsMi43NSAyLjhxLjg1LjguODUgMnQtLjg1IDJaTTYuODUgNDEuMXYtNi45bDkuNTUtOS41NUw1LjUgMTMuN2w3LjgtNy44NSAxMSAxMSA1LjM1LTUuMzUgNi44NSA2Ljg1LTUuMzUgNS4zNSAxMSAxMS03Ljg1IDcuNzUtMTAuOTUtMTAuOS05LjYgOS41NVptMTEuMi0xOC4wNSA0LjY1LTQuNi00LjA1LTQuMDUtMi4zNSAyLjQtMS42LTEuNiAyLjM1LTIuNC0zLjc1LTMuNzUtNC42IDQuNjVabTE2LjIgMTYuMjUgNC42NS00LjY1LTMuNzUtMy43NS0yLjQgMi40LTEuNi0xLjYgMi40LTIuNC00LjA1LTQtNC42IDQuNjVabS0yNS4xLS40NWgzLjZsMjAuNS0yMC40NS0zLjY1LTMuNjVMOS4xNSAzNS4yWiIvPjwvc3ZnPg==";
Editor.thinGestureImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHdpZHRoPSI0OCI+PHBhdGggZD0iTTI4IDQxLjZxLTIuNSAwLTQuMDc1LTEuNjUtMS41NzUtMS42NS0xLjU3NS00LjM1IDAtMi4zNSAxLjEtNC4xIDEuMS0xLjc1IDIuODI1LTIuOTUgMS43MjUtMS4yIDMuNy0xLjgyNVQzMy42NSAyNnEtLjE1LTMuMDUtMS4yNS00LjQyNVQyOS4yNSAyMC4ycS0yLjMgMC00LjE3NSAxLjV0LTQuNDI1IDQuOTVxLTIuNjUgMy40NS00LjYgNS4xLTEuOTUgMS42NS00LjM1IDEuNjUtMi4xIDAtMy42NS0xLjM3NVE2LjUgMzAuNjUgNi41IDI3LjQ1cTAtMiAxLjItNC41MjUgMS4yLTIuNTI1IDMuNS02LjE3NSAxLjMtMS44NSAxLjk3NS0zLjIyNXQuNjc1LTIuMzc1cTAtLjctLjM1LTEuMDUtLjM1LS4zNS0xLjA1LS4zNS0uNzUgMC0xLjYuNDc1UTEwIDEwLjcgOSAxMS45TDcgOS44cTEuMzUtMS41NSAyLjcyNS0yLjI3NVExMS4xIDYuOCAxMi41IDYuOHExLjkgMCAzLjEgMS4yNSAxLjIgMS4yNSAxLjIgMy4yIDAgMS44LS45NzUgMy41NzVRMTQuODUgMTYuNiAxMy4wNSAxOS4zcS0xLjk1IDIuOTUtMi43NzUgNC43dC0uODI1IDMuNjVxMCAxLjYuNzUgMi4yLjc1LjYgMS43NS42IDEuNDUgMCAyLjgyNS0xLjMgMS4zNzUtMS4zIDMuNTc1LTQuMTUgMi45NS0zLjggNS41MjUtNS43NzUgMi41NzUtMS45NzUgNS42NzUtMS45NzUgMy4xNSAwIDUgMi4zMjVUMzYuNiAyNS45aDQuOXYyLjk1aC00LjlxLS40NSA3LjM1LTMuMiAxMC4wNS0yLjc1IDIuNy01LjQgMi43Wm0uMS0yLjk1cTEuODUgMCAzLjY1LTIuMjUgMS44LTIuMjUgMi03LjUtMi44LjE1LTUuNjI1IDIuMDI1VDI1LjMgMzUuOXEwIDEuMy43NSAyLjAyNS43NS43MjUgMi4wNS43MjVaIi8+PC9zdmc+";
@@ -3241,34 +3241,34 @@ type:"bool",defVal:!1,isVisible:function(k,A){A=A.editorUi.editor.graph.model;re
defVal:!1},{name:"resizable",dispName:"Resizable",type:"bool",defVal:!0},{name:"resizeWidth",dispName:"Resize Width",type:"bool",defVal:!1},{name:"resizeHeight",dispName:"Resize Height",type:"bool",defVal:!1},{name:"rotatable",dispName:"Rotatable",type:"bool",defVal:!0},{name:"cloneable",dispName:"Cloneable",type:"bool",defVal:!0},{name:"deletable",dispName:"Deletable",type:"bool",defVal:!0},{name:"treeFolding",dispName:"Tree Folding",type:"bool",defVal:!1},{name:"treeMoving",dispName:"Tree Moving",
type:"bool",defVal:!1},{name:"pointerEvents",dispName:"Pointer Events",type:"bool",defVal:!0,isVisible:function(k,A){var I=mxUtils.getValue(k.style,mxConstants.STYLE_FILLCOLOR,null);return!mxShape.forceFilledPointerEvents||A.editorUi.editor.graph.isSwimlane(k.vertices[0])||null==I||I==mxConstants.NONE||0==mxUtils.getValue(k.style,mxConstants.STYLE_FILL_OPACITY,100)||0==mxUtils.getValue(k.style,mxConstants.STYLE_OPACITY,100)||null!=k.style.pointerEvents}},{name:"moveCells",dispName:"Move Cells on Fold",
type:"bool",defVal:!1,isVisible:function(k,A){return 0<k.vertices.length&&A.editorUi.editor.graph.isContainer(k.vertices[0])}}].concat(Editor.commonProperties);Editor.defaultCsvValue='##\n## Example CSV import. Use ## for comments and # for configuration. Paste CSV below.\n## The following names are reserved and should not be used (or ignored):\n## id, tooltip, placeholder(s), link and label (see below)\n##\n#\n## Node label with placeholders and HTML.\n## Default is \'%name_of_first_column%\'.\n#\n# label: %name%<br><i style="color:gray;">%position%</i><br><a href="mailto:%email%">Email</a>\n#\n## Node style (placeholders are replaced once).\n## Default is the current style for nodes.\n#\n# style: label;image=%image%;whiteSpace=wrap;html=1;rounded=1;fillColor=%fill%;strokeColor=%stroke%;\n#\n## Parent style for nodes with child nodes (placeholders are replaced once).\n#\n# parentstyle: swimlane;whiteSpace=wrap;html=1;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeLast=0;collapsible=1;\n#\n## Style to be used for objects not in the CSV. If this is - then such objects are ignored,\n## else they are created using this as their style, eg. whiteSpace=wrap;html=1;\n#\n# unknownStyle: -\n#\n## Optional column name that contains a reference to a named style in styles.\n## Default is the current style for nodes.\n#\n# stylename: -\n#\n## JSON for named styles of the form {"name": "style", "name": "style"} where style is a cell style with\n## placeholders that are replaced once.\n#\n# styles: -\n#\n## JSON for variables in styles of the form {"name": "value", "name": "value"} where name is a string\n## that will replace a placeholder in a style.\n#\n# vars: -\n#\n## Optional column name that contains a reference to a named label in labels.\n## Default is the current label.\n#\n# labelname: -\n#\n## JSON for named labels of the form {"name": "label", "name": "label"} where label is a cell label with\n## placeholders.\n#\n# labels: -\n#\n## Uses the given column name as the identity for cells (updates existing cells).\n## Default is no identity (empty value or -).\n#\n# identity: -\n#\n## Uses the given column name as the parent reference for cells. Default is no parent (empty or -).\n## The identity above is used for resolving the reference so it must be specified.\n#\n# parent: -\n#\n## Adds a prefix to the identity of cells to make sure they do not collide with existing cells (whose\n## IDs are numbers from 0..n, sometimes with a GUID prefix in the context of realtime collaboration).\n## Default is csvimport-.\n#\n# namespace: csvimport-\n#\n## Connections between rows ("from": source colum, "to": target column).\n## Label, style and invert are optional. Defaults are \'\', current style and false.\n## If placeholders are used in the style, they are replaced with data from the source.\n## An optional placeholders can be set to target to use data from the target instead.\n## In addition to label, an optional fromlabel and tolabel can be used to name the column\n## that contains the text for the label in the edges source or target (invert ignored).\n## In addition to those, an optional source and targetlabel can be used to specify a label\n## that contains placeholders referencing the respective columns in the source or target row.\n## The label is created in the form fromlabel + sourcelabel + label + tolabel + targetlabel.\n## Additional labels can be added by using an optional labels array with entries of the\n## form {"label": string, "x": number, "y": number, "dx": number, "dy": number} where\n## x is from -1 to 1 along the edge, y is orthogonal, and dx/dy are offsets in pixels.\n## An optional placeholders with the string value "source" or "target" can be specified\n## to replace placeholders in the additional label with data from the source or target.\n## An optional data object can be specified to define the metadata for the connector.\n## The target column may contain a comma-separated list of values.\n## Multiple connect entries are allowed.\n#\n# connect: {"from": "manager", "to": "name", "invert": true, "label": "manages", \\\n# "style": "curved=1;endArrow=blockThin;endFill=1;fontSize=11;"}\n# connect: {"from": "refs", "to": "id", "style": "curved=1;fontSize=11;"}\n#\n## Node x-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# left: \n#\n## Node y-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# top: \n#\n## Node width. Possible value is a number (in px), auto or an @ sign followed by a column\n## name that contains the value for the width. Default is auto.\n#\n# width: auto\n#\n## Node height. Possible value is a number (in px), auto, width or an @ sign followed by a column\n## name that contains the value for the height. Default is auto.\n#\n# height: auto\n#\n## Collapsed state for vertices. Possible values are true or false. Default is false.\n#\n# collapsed: false\n#\n## Padding for autosize. Default is 0.\n#\n# padding: -12\n#\n## Comma-separated list of ignored columns for metadata. (These can be\n## used for connections and styles but will not be added as metadata.)\n#\n# ignore: id,image,fill,stroke,refs,manager\n#\n## Column to be renamed to link attribute (used as link).\n#\n# link: url\n#\n## Spacing between nodes. Default is 40.\n#\n# nodespacing: 40\n#\n## Spacing between levels of hierarchical layouts. Default is 100.\n#\n# levelspacing: 100\n#\n## Spacing between parallel edges. Default is 40. Use 0 to disable.\n#\n# edgespacing: 40\n#\n## Name or JSON of layout. Possible values are auto, none, verticaltree, horizontaltree,\n## verticalflow, horizontalflow, organic, circle, orgchart or a JSON string as used in\n## Layout, Apply. Default is auto.\n#\n# layout: auto\n#\n## ---- CSV below this line. First line are column names. ----\nname,position,id,location,manager,email,fill,stroke,refs,url,image\nTessa Miller,CFO,emi,Office 1,,[email protected],default,#6c8ebf,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-3-128.png\nEdward Morrison,Brand Manager,emo,Office 2,Tessa Miller,[email protected],default,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-10-3-128.png\nAlison Donovan,System Admin,rdo,Office 3,Tessa Miller,[email protected],default,#82b366,"emo,tva",https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-2-128.png\nEvan Valet,HR Director,tva,Office 4,Tessa Miller,[email protected],default,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-9-2-128.png\n';
-Editor.createRoughCanvas=function(k){var A=rough.canvas({getContext:function(){return k}});A.draw=function(I){var U=I.sets||[];I=I.options||this.getDefaultOptions();for(var O=0;O<U.length;O++){var T=U[O];switch(T.type){case "path":null!=I.stroke&&this._drawToContext(k,T,I);break;case "fillPath":this._drawToContext(k,T,I);break;case "fillSketch":this.fillSketch(k,T,I)}}};A.fillSketch=function(I,U,O){var T=k.state.strokeColor,X=k.state.strokeWidth,aa=k.state.strokeAlpha,ja=k.state.dashed,pa=O.fillWeight;
-0>pa&&(pa=O.strokeWidth/2);k.setStrokeAlpha(k.state.fillAlpha);k.setStrokeColor(O.fill||"");k.setStrokeWidth(pa);k.setDashed(!1);this._drawToContext(I,U,O);k.setDashed(ja);k.setStrokeWidth(X);k.setStrokeColor(T);k.setStrokeAlpha(aa)};A._drawToContext=function(I,U,O){I.begin();for(var T=0;T<U.ops.length;T++){var X=U.ops[T],aa=X.data;switch(X.op){case "move":I.moveTo(aa[0],aa[1]);break;case "bcurveTo":I.curveTo(aa[0],aa[1],aa[2],aa[3],aa[4],aa[5]);break;case "lineTo":I.lineTo(aa[0],aa[1])}}I.end();
-"fillPath"===U.type&&O.filled?I.fill():I.stroke()};return A};(function(){function k(T,X,aa){this.canvas=T;this.rc=X;this.shape=aa;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,k.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,k.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,k.prototype.rect);this.originalRoundrect=this.canvas.roundrect;
+Editor.createRoughCanvas=function(k){var A=rough.canvas({getContext:function(){return k}});A.draw=function(I){var U=I.sets||[];I=I.options||this.getDefaultOptions();for(var O=0;O<U.length;O++){var S=U[O];switch(S.type){case "path":null!=I.stroke&&this._drawToContext(k,S,I);break;case "fillPath":this._drawToContext(k,S,I);break;case "fillSketch":this.fillSketch(k,S,I)}}};A.fillSketch=function(I,U,O){var S=k.state.strokeColor,X=k.state.strokeWidth,aa=k.state.strokeAlpha,ja=k.state.dashed,pa=O.fillWeight;
+0>pa&&(pa=O.strokeWidth/2);k.setStrokeAlpha(k.state.fillAlpha);k.setStrokeColor(O.fill||"");k.setStrokeWidth(pa);k.setDashed(!1);this._drawToContext(I,U,O);k.setDashed(ja);k.setStrokeWidth(X);k.setStrokeColor(S);k.setStrokeAlpha(aa)};A._drawToContext=function(I,U,O){I.begin();for(var S=0;S<U.ops.length;S++){var X=U.ops[S],aa=X.data;switch(X.op){case "move":I.moveTo(aa[0],aa[1]);break;case "bcurveTo":I.curveTo(aa[0],aa[1],aa[2],aa[3],aa[4],aa[5]);break;case "lineTo":I.lineTo(aa[0],aa[1])}}I.end();
+"fillPath"===U.type&&O.filled?I.fill():I.stroke()};return A};(function(){function k(S,X,aa){this.canvas=S;this.rc=X;this.shape=aa;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,k.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,k.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,k.prototype.rect);this.originalRoundrect=this.canvas.roundrect;
this.canvas.roundrect=mxUtils.bind(this,k.prototype.roundrect);this.originalEllipse=this.canvas.ellipse;this.canvas.ellipse=mxUtils.bind(this,k.prototype.ellipse);this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,k.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,k.prototype.moveTo);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,k.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=
mxUtils.bind(this,k.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,k.prototype.arcTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,k.prototype.close);this.originalFill=this.canvas.fill;this.canvas.fill=mxUtils.bind(this,k.prototype.fill);this.originalStroke=this.canvas.stroke;this.canvas.stroke=mxUtils.bind(this,k.prototype.stroke);this.originalFillAndStroke=this.canvas.fillAndStroke;this.canvas.fillAndStroke=mxUtils.bind(this,
-k.prototype.fillAndStroke);this.path=[];this.passThrough=!1}k.prototype.moveOp="M";k.prototype.lineOp="L";k.prototype.quadOp="Q";k.prototype.curveOp="C";k.prototype.closeOp="Z";k.prototype.getStyle=function(T,X){var aa=1;if(null!=this.shape.state){var ja=this.shape.state.cell.id;if(null!=ja)for(var pa=0;pa<ja.length;pa++)aa=(aa<<5)-aa+ja.charCodeAt(pa)<<0}aa={strokeWidth:this.canvas.state.strokeWidth,seed:aa,preserveVertices:!0};ja=this.rc.getDefaultOptions();aa.stroke=T?this.canvas.state.strokeColor===
-mxConstants.NONE?"transparent":this.canvas.state.strokeColor:mxConstants.NONE;T=null;(aa.filled=X)?(aa.fill=this.canvas.state.fillColor===mxConstants.NONE?"":this.canvas.state.fillColor,T=this.canvas.state.gradientColor===mxConstants.NONE?null:this.canvas.state.gradientColor):aa.fill="";aa.bowing=mxUtils.getValue(this.shape.style,"bowing",ja.bowing);aa.hachureAngle=mxUtils.getValue(this.shape.style,"hachureAngle",ja.hachureAngle);aa.curveFitting=mxUtils.getValue(this.shape.style,"curveFitting",ja.curveFitting);
+k.prototype.fillAndStroke);this.path=[];this.passThrough=!1}k.prototype.moveOp="M";k.prototype.lineOp="L";k.prototype.quadOp="Q";k.prototype.curveOp="C";k.prototype.closeOp="Z";k.prototype.getStyle=function(S,X){var aa=1;if(null!=this.shape.state){var ja=this.shape.state.cell.id;if(null!=ja)for(var pa=0;pa<ja.length;pa++)aa=(aa<<5)-aa+ja.charCodeAt(pa)<<0}aa={strokeWidth:this.canvas.state.strokeWidth,seed:aa,preserveVertices:!0};ja=this.rc.getDefaultOptions();aa.stroke=S?this.canvas.state.strokeColor===
+mxConstants.NONE?"transparent":this.canvas.state.strokeColor:mxConstants.NONE;S=null;(aa.filled=X)?(aa.fill=this.canvas.state.fillColor===mxConstants.NONE?"":this.canvas.state.fillColor,S=this.canvas.state.gradientColor===mxConstants.NONE?null:this.canvas.state.gradientColor):aa.fill="";aa.bowing=mxUtils.getValue(this.shape.style,"bowing",ja.bowing);aa.hachureAngle=mxUtils.getValue(this.shape.style,"hachureAngle",ja.hachureAngle);aa.curveFitting=mxUtils.getValue(this.shape.style,"curveFitting",ja.curveFitting);
aa.roughness=mxUtils.getValue(this.shape.style,"jiggle",ja.roughness);aa.simplification=mxUtils.getValue(this.shape.style,"simplification",ja.simplification);aa.disableMultiStroke=mxUtils.getValue(this.shape.style,"disableMultiStroke",ja.disableMultiStroke);aa.disableMultiStrokeFill=mxUtils.getValue(this.shape.style,"disableMultiStrokeFill",ja.disableMultiStrokeFill);X=mxUtils.getValue(this.shape.style,"hachureGap",-1);aa.hachureGap="auto"==X?-1:X;aa.dashGap=mxUtils.getValue(this.shape.style,"dashGap",
X);aa.dashOffset=mxUtils.getValue(this.shape.style,"dashOffset",X);aa.zigzagOffset=mxUtils.getValue(this.shape.style,"zigzagOffset",X);X=mxUtils.getValue(this.shape.style,"fillWeight",-1);aa.fillWeight="auto"==X?-1:X;X=mxUtils.getValue(this.shape.style,"fillStyle","auto");"dots"==X&&(X="auto");"auto"==X&&(X=[mxUtils.hex2rgb("#ffffff")],null!=this.shape.state&&X.push(mxUtils.hex2rgb(this.shape.state.view.graph.shapeBackgroundColor)),Editor.isDarkMode()&&X.push(mxUtils.hex2rgb(Editor.darkColor)),X=
-null!=aa.fill&&(null!=T||0<=mxUtils.indexOf(X,mxUtils.hex2rgb(aa.fill)))?"solid":ja.fillStyle);aa.fillStyle=X;return aa};k.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};k.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};k.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var T=2;T<arguments.length;T+=2)this.lastX=arguments[T-1],this.lastY=arguments[T],
-this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};k.prototype.lineTo=function(T,X){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,T,X),this.lastX=T,this.lastY=X)};k.prototype.moveTo=function(T,X){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,T,X),this.lastX=T,this.lastY=X,this.firstX=T,this.firstY=X)};k.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,
-arguments):this.addOp(this.closeOp)};k.prototype.quadTo=function(T,X,aa,ja){this.passThrough?this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,T,X,aa,ja),this.lastX=aa,this.lastY=ja)};k.prototype.curveTo=function(T,X,aa,ja,pa,sa){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,T,X,aa,ja,pa,sa),this.lastX=pa,this.lastY=sa)};k.prototype.arcTo=function(T,X,aa,ja,pa,sa,qa){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);
-else{var wa=mxUtils.arcToCurves(this.lastX,this.lastY,T,X,aa,ja,pa,sa,qa);if(null!=wa)for(var Ba=0;Ba<wa.length;Ba+=6)this.curveTo(wa[Ba],wa[Ba+1],wa[Ba+2],wa[Ba+3],wa[Ba+4],wa[Ba+5]);this.lastX=sa;this.lastY=qa}};k.prototype.rect=function(T,X,aa,ja){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(T,X,aa,ja,this.getStyle(!0,!0)))};k.prototype.ellipse=function(T,X,aa,ja){this.passThrough?this.originalEllipse.apply(this.canvas,
-arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(T+aa/2,X+ja/2,aa,ja,this.getStyle(!0,!0)))};k.prototype.roundrect=function(T,X,aa,ja,pa,sa){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(T+pa,X),this.lineTo(T+aa-pa,X),this.quadTo(T+aa,X,T+aa,X+sa),this.lineTo(T+aa,X+ja-sa),this.quadTo(T+aa,X+ja,T+aa-pa,X+ja),this.lineTo(T+pa,X+ja),this.quadTo(T,X+ja,T,X+ja-sa),this.lineTo(T,X+sa),this.quadTo(T,X,T+pa,X))};k.prototype.drawPath=function(T){if(0<
-this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),T)}catch(aa){}this.passThrough=!1}else if(null!=this.nextShape){for(var X in T)this.nextShape.options[X]=T[X];T.stroke!=mxConstants.NONE&&null!=T.stroke||delete this.nextShape.options.stroke;T.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};k.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,
+null!=aa.fill&&(null!=S||0<=mxUtils.indexOf(X,mxUtils.hex2rgb(aa.fill)))?"solid":ja.fillStyle);aa.fillStyle=X;return aa};k.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};k.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};k.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var S=2;S<arguments.length;S+=2)this.lastX=arguments[S-1],this.lastY=arguments[S],
+this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};k.prototype.lineTo=function(S,X){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,S,X),this.lastX=S,this.lastY=X)};k.prototype.moveTo=function(S,X){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,S,X),this.lastX=S,this.lastY=X,this.firstX=S,this.firstY=X)};k.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,
+arguments):this.addOp(this.closeOp)};k.prototype.quadTo=function(S,X,aa,ja){this.passThrough?this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,S,X,aa,ja),this.lastX=aa,this.lastY=ja)};k.prototype.curveTo=function(S,X,aa,ja,pa,sa){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,S,X,aa,ja,pa,sa),this.lastX=pa,this.lastY=sa)};k.prototype.arcTo=function(S,X,aa,ja,pa,sa,qa){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);
+else{var wa=mxUtils.arcToCurves(this.lastX,this.lastY,S,X,aa,ja,pa,sa,qa);if(null!=wa)for(var Ba=0;Ba<wa.length;Ba+=6)this.curveTo(wa[Ba],wa[Ba+1],wa[Ba+2],wa[Ba+3],wa[Ba+4],wa[Ba+5]);this.lastX=sa;this.lastY=qa}};k.prototype.rect=function(S,X,aa,ja){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(S,X,aa,ja,this.getStyle(!0,!0)))};k.prototype.ellipse=function(S,X,aa,ja){this.passThrough?this.originalEllipse.apply(this.canvas,
+arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(S+aa/2,X+ja/2,aa,ja,this.getStyle(!0,!0)))};k.prototype.roundrect=function(S,X,aa,ja,pa,sa){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(S+pa,X),this.lineTo(S+aa-pa,X),this.quadTo(S+aa,X,S+aa,X+sa),this.lineTo(S+aa,X+ja-sa),this.quadTo(S+aa,X+ja,S+aa-pa,X+ja),this.lineTo(S+pa,X+ja),this.quadTo(S,X+ja,S,X+ja-sa),this.lineTo(S,X+sa),this.quadTo(S,X,S+pa,X))};k.prototype.drawPath=function(S){if(0<
+this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),S)}catch(aa){}this.passThrough=!1}else if(null!=this.nextShape){for(var X in S)this.nextShape.options[X]=S[X];S.stroke!=mxConstants.NONE&&null!=S.stroke||delete this.nextShape.options.stroke;S.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};k.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,
!1))};k.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};k.prototype.fillAndStroke=function(){this.passThrough?this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};k.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;
-this.canvas.arcTo=this.originalArcTo;this.canvas.close=this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(T){return new k(T,Editor.createRoughCanvas(T),this)};var A=mxShape.prototype.createHandJiggle;
-mxShape.prototype.createHandJiggle=function(T){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?A.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(T):this.createRoughCanvas(T)};var I=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(T,X,aa,ja,pa){null!=T.handJiggle&&T.handJiggle.passThrough||I.apply(this,arguments)};var U=mxShape.prototype.paint;mxShape.prototype.paint=
-function(T){var X=T.addTolerance,aa=!0;null!=this.style&&(aa="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=T.handJiggle&&T.handJiggle.constructor==k&&!this.outline){T.save();var ja=this.fill,pa=this.stroke;this.stroke=this.fill=null;var sa=this.configurePointerEvents,qa=T.setStrokeColor;T.setStrokeColor=function(){};var wa=T.setFillColor;T.setFillColor=function(){};aa||null==ja||(this.configurePointerEvents=function(){});T.handJiggle.passThrough=!0;U.apply(this,
-arguments);T.handJiggle.passThrough=!1;T.setFillColor=wa;T.setStrokeColor=qa;this.configurePointerEvents=sa;this.stroke=pa;this.fill=ja;T.restore();aa&&null!=ja&&(T.addTolerance=function(){})}U.apply(this,arguments);T.addTolerance=X};var O=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(T,X,aa,ja,pa,sa){null!=T.handJiggle&&T.handJiggle.constructor==k?(T.handJiggle.passThrough=!0,O.apply(this,arguments),T.handJiggle.passThrough=!1):O.apply(this,arguments)}})();Editor.fastCompress=
-function(k){return null==k||0==k.length||"undefined"===typeof pako?k:Graph.arrayBufferToString(pako.deflateRaw(k))};Editor.fastDecompress=function(k){return null==k||0==k.length||"undefined"===typeof pako?k:pako.inflateRaw(Graph.stringToArrayBuffer(atob(k)),{to:"string"})};Editor.extractGraphModel=function(k,A,I){if(null!=k&&"undefined"!==typeof pako){var U=k.ownerDocument.getElementsByTagName("div"),O=[];if(null!=U&&0<U.length)for(var T=0;T<U.length;T++)if("mxgraph"==U[T].getAttribute("class")){O.push(U[T]);
+this.canvas.arcTo=this.originalArcTo;this.canvas.close=this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(S){return new k(S,Editor.createRoughCanvas(S),this)};var A=mxShape.prototype.createHandJiggle;
+mxShape.prototype.createHandJiggle=function(S){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?A.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(S):this.createRoughCanvas(S)};var I=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(S,X,aa,ja,pa){null!=S.handJiggle&&S.handJiggle.passThrough||I.apply(this,arguments)};var U=mxShape.prototype.paint;mxShape.prototype.paint=
+function(S){var X=S.addTolerance,aa=!0;null!=this.style&&(aa="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=S.handJiggle&&S.handJiggle.constructor==k&&!this.outline){S.save();var ja=this.fill,pa=this.stroke;this.stroke=this.fill=null;var sa=this.configurePointerEvents,qa=S.setStrokeColor;S.setStrokeColor=function(){};var wa=S.setFillColor;S.setFillColor=function(){};aa||null==ja||(this.configurePointerEvents=function(){});S.handJiggle.passThrough=!0;U.apply(this,
+arguments);S.handJiggle.passThrough=!1;S.setFillColor=wa;S.setStrokeColor=qa;this.configurePointerEvents=sa;this.stroke=pa;this.fill=ja;S.restore();aa&&null!=ja&&(S.addTolerance=function(){})}U.apply(this,arguments);S.addTolerance=X};var O=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(S,X,aa,ja,pa,sa){null!=S.handJiggle&&S.handJiggle.constructor==k?(S.handJiggle.passThrough=!0,O.apply(this,arguments),S.handJiggle.passThrough=!1):O.apply(this,arguments)}})();Editor.fastCompress=
+function(k){return null==k||0==k.length||"undefined"===typeof pako?k:Graph.arrayBufferToString(pako.deflateRaw(k))};Editor.fastDecompress=function(k){return null==k||0==k.length||"undefined"===typeof pako?k:pako.inflateRaw(Graph.stringToArrayBuffer(atob(k)),{to:"string"})};Editor.extractGraphModel=function(k,A,I){if(null!=k&&"undefined"!==typeof pako){var U=k.ownerDocument.getElementsByTagName("div"),O=[];if(null!=U&&0<U.length)for(var S=0;S<U.length;S++)if("mxgraph"==U[S].getAttribute("class")){O.push(U[S]);
break}0<O.length&&(U=O[0].getAttribute("data-mxgraph"),null!=U?(O=JSON.parse(U),null!=O&&null!=O.xml&&(k=mxUtils.parseXml(O.xml),k=k.documentElement)):(O=O[0].getElementsByTagName("div"),0<O.length&&(U=mxUtils.getTextContent(O[0]),U=Graph.decompress(U,null,I),0<U.length&&(k=mxUtils.parseXml(U),k=k.documentElement))))}if(null!=k&&"svg"==k.nodeName)if(U=k.getAttribute("content"),null!=U&&"<"!=U.charAt(0)&&"%"!=U.charAt(0)&&(U=unescape(window.atob?atob(U):Base64.decode(cont,U))),null!=U&&"%"==U.charAt(0)&&
(U=decodeURIComponent(U)),null!=U&&0<U.length)k=mxUtils.parseXml(U).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==k||A||(O=null,"diagram"==k.nodeName?O=k:"mxfile"==k.nodeName&&(U=k.getElementsByTagName("diagram"),0<U.length&&(O=U[Math.max(0,Math.min(U.length-1,urlParams.page||0))])),null!=O&&(k=Editor.parseDiagramNode(O,I)));null==k||"mxGraphModel"==k.nodeName||A&&"mxfile"==k.nodeName||(k=null);return k};Editor.parseDiagramNode=function(k,A,I){Editor.validateDiagramNode(k);
var U=mxUtils.trim(mxUtils.getTextContent(k)),O=null;0<U.length?(A=Graph.decompress(U,null,A),null!=A&&0<A.length&&(O=mxUtils.parseXml(A).documentElement)):(k=mxUtils.getChildNodes(k),0<k.length&&(O=k[0],I&&(O=Editor.parseDiagramNode(O,A,!1)),A=mxUtils.createXmlDocument(),A.appendChild(A.importNode(O,!0)),O=A.documentElement));return O};Editor.getDiagramNodeXml=function(k){Editor.validateDiagramNode(k);var A=mxUtils.getNodeValue(k),I=null;0<A.length?I=Graph.decompress(A):(k=k.getElementsByTagName("mxGraphModel"),
null!=k&&0<k.length&&(I=mxUtils.getXml(k[0])));return I};Editor.validateDiagramNode=function(k){if(0==mxUtils.trim(mxUtils.getTextContent(k)).length&&0==mxUtils.getChildNodes(k).length){var A=new mxCodec,I=new mxGraphModel;k.appendChild(A.encode(I))}return k};Editor.extractGraphModelFromPdf=function(k){var A=null;k=k.substring(k.indexOf(",")+1);k=window.atob&&!mxClient.IS_SF?atob(k):Base64.decode(k,!0);if("%PDF-1.7"==k.substring(0,8)){var I=k.indexOf("EmbeddedFile");if(-1<I){var U=k.indexOf("stream",
I)+9;if(0<k.substring(I,U).indexOf("application#2Fvnd.jgraph.mxfile")){var O=k.indexOf("endstream",U-1);return pako.inflateRaw(Graph.stringToArrayBuffer(k.substring(U,O)),{to:"string"})}}for(I=k.indexOf("/ObjStm");0<I;){U=k.indexOf("stream",I)+9;O=k.indexOf("endstream",U-1);U=pako.inflateRaw(Graph.stringToArrayBuffer(k.substring(U,O)),{to:"string"});O=U.indexOf("/Subject <");if(0<O){I=U.substring(O+14,U.indexOf(">",O));if(null!=I){A=I;I=[];for(U=0;U<A.length;U+=2)O=A.substr(U,2),"00"!=O&&I.push(String.fromCharCode(parseInt(O,
-16)));A=I.join("")}break}I=k.indexOf("/ObjStm",I+1)}}if(null==A&&"%PDF-1.4"==k.substring(0,8)){I="";O=U=0;for(var T=[],X=null;O<k.length;){var aa=k.charCodeAt(O);O+=1;10!=aa&&(I+=String.fromCharCode(aa));aa=="/Subject (%3Cmxfile".charCodeAt(U)?U++:U=0;if(19==U){var ja=k.indexOf("%3C%2Fmxfile%3E",O)+15;O-=9;if(ja>O){A=k.substring(O,ja);break}}10==aa&&("endobj"==I?X=null:"obj"==I.substring(I.length-3,I.length)||"xref"==I||"trailer"==I?(X=[],T[I.split(" ")[0]]=X):null!=X&&X.push(I),I="")}}null==A&&null!=
-T&&(A=Editor.extractGraphModelFromXref(T));null!=A&&(A=decodeURIComponent(A.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return A};Editor.extractGraphModelFromXref=function(k){var A=k.trailer,I=null;null!=A&&(A=/.* \/Info (\d+) (\d+) R/g.exec(A.join("\n")),null!=A&&0<A.length&&(A=k[A[1]],null!=A&&(A=/.* \/Subject (\d+) (\d+) R/g.exec(A.join("\n")),null!=A&&0<A.length&&(k=k[A[1]],null!=k&&(k=k.join("\n"),I=k.substring(1,k.length-1))))));return I};Editor.extractParserError=function(k,A){var I=null;k=
+16)));A=I.join("")}break}I=k.indexOf("/ObjStm",I+1)}}if(null==A&&"%PDF-1.4"==k.substring(0,8)){I="";O=U=0;for(var S=[],X=null;O<k.length;){var aa=k.charCodeAt(O);O+=1;10!=aa&&(I+=String.fromCharCode(aa));aa=="/Subject (%3Cmxfile".charCodeAt(U)?U++:U=0;if(19==U){var ja=k.indexOf("%3C%2Fmxfile%3E",O)+15;O-=9;if(ja>O){A=k.substring(O,ja);break}}10==aa&&("endobj"==I?X=null:"obj"==I.substring(I.length-3,I.length)||"xref"==I||"trailer"==I?(X=[],S[I.split(" ")[0]]=X):null!=X&&X.push(I),I="")}}null==A&&null!=
+S&&(A=Editor.extractGraphModelFromXref(S));null!=A&&(A=decodeURIComponent(A.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return A};Editor.extractGraphModelFromXref=function(k){var A=k.trailer,I=null;null!=A&&(A=/.* \/Info (\d+) (\d+) R/g.exec(A.join("\n")),null!=A&&0<A.length&&(A=k[A[1]],null!=A&&(A=/.* \/Subject (\d+) (\d+) R/g.exec(A.join("\n")),null!=A&&0<A.length&&(k=k[A[1]],null!=k&&(k=k.join("\n"),I=k.substring(1,k.length-1))))));return I};Editor.extractParserError=function(k,A){var I=null;k=
null!=k?k.getElementsByTagName("parsererror"):null;null!=k&&0<k.length&&(I=A||mxResources.get("invalidChars"),A=k[0].getElementsByTagName("div"),0<A.length&&(I=mxUtils.getTextContent(A[0])));return null!=I?mxUtils.trim(I):I};Editor.addRetryToError=function(k,A){null!=k&&(k=null!=k.error?k.error:k,null==k.retry&&(k.retry=A))};Editor.mermaidToDrawio=function(k,A,I){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(k,A,I)};Editor.configure=function(k){if(null!=k){Editor.config=k;Editor.configVersion=
k.version;k.debug&&(urlParams.test="1");null!=k.defaultFonts&&(Menus.prototype.defaultFonts=k.defaultFonts);null!=k.presetColors&&(ColorDialog.prototype.presetColors=k.presetColors);null!=k.defaultColors&&(ColorDialog.prototype.defaultColors=k.defaultColors);null!=k.colorNames&&(ColorDialog.prototype.colorNames=k.colorNames);null!=k.defaultColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=k.defaultColorSchemes);null!=k.defaultEdgeLength&&(Graph.prototype.defaultEdgeLength=k.defaultEdgeLength);
null!=k.selectParentLayer&&(Graph.selectParentLayer=k.selectParentLayer);null!=k.autosaveDelay&&(DrawioFile.prototype.autosaveDelay=k.autosaveDelay);null!=k.templateFile&&(EditorUi.templateFile=k.templateFile);null!=k.styles&&(Array.isArray(k.styles)?Editor.styles=k.styles:EditorUi.debug("Configuration Error: Array expected for styles"));null!=k.globalVars&&(Editor.globalVars=k.globalVars);null!=k.compressXml&&(Editor.defaultCompressed=k.compressXml,Editor.compressXml=k.compressXml);null!=k.includeDiagram&&
@@ -3297,39 +3297,39 @@ null!=A&&0<A.length)){var I=mxUtils.parseXml(A).documentElement;return"mxfile"==
this.graph.isCssTransformsSupported();this.graph.updateCssTransform();g.apply(this,arguments)};var m=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){m.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.initMath=function(k,A){if("undefined"===typeof window.MathJax&&!mxClient.IS_IE&&!mxClient.IS_IE11){var I=function(){U=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());
else Editor.onMathJaxDone()};k=null!=k?k:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var U=null;Editor.doMathJaxRender=function(X){try{null==U?(MathJax.typesetClear([X]),MathJax.typeset([X]),I()):U!=X&&Editor.mathJaxQueue.push(X)}catch(aa){MathJax.typesetClear([X]),null!=aa.retry?(U=X,aa.retry.then(function(){MathJax.typesetPromise([X]).then(I)["catch"](function(ja){console.log("Error in MathJax.typesetPromise: "+ja.toString());I()})})["catch"](function(ja){console.log("Error in MathJax.retry: "+
ja.toString());I()})):null!=window.console&&console.log("Error in MathJax.typeset: "+aa.toString())}};window.MathJax=null!=A?A:{options:{skipHtmlTags:{"[+]":["text"]},ignoreHtmlClass:"geDisableMathJax"},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe"]},startup:{pageReady:function(){for(var X=0;X<Editor.mathJaxQueue.length;X++)Editor.doMathJaxRender(Editor.mathJaxQueue[X])}}};Editor.MathJaxRender=function(X){"undefined"!==typeof MathJax&&
-"function"===typeof MathJax.typeset?Editor.doMathJaxRender(X):Editor.mathJaxQueue.push(X)};Editor.onMathJaxDone=function(){};var O=Editor.prototype.init;Editor.prototype.init=function(){O.apply(this,arguments);var X=mxUtils.bind(this,function(aa,ja){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,X);this.graph.addListener(mxEvent.REFRESH,X)};A=document.getElementsByTagName("script");if(null!=A&&0<A.length){var T=
-document.createElement("script");T.setAttribute("type","text/javascript");T.setAttribute("src",k);A[0].parentNode.appendChild(T)}}};Editor.prototype.csvToArray=function(k){if(0<k.length){var A="",I=[""],U=0,O=!0,T;k=$jscomp.makeIterator(k);for(T=k.next();!T.done;T=k.next())T=T.value,'"'===T?(O&&T===A&&(I[U]+=T),O=!O):","===T&&O?T=I[++U]="":I[U]+=T,A=T;return I}return[]};Editor.prototype.getProxiedUrl=function(k){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&
+"function"===typeof MathJax.typeset?Editor.doMathJaxRender(X):Editor.mathJaxQueue.push(X)};Editor.onMathJaxDone=function(){};var O=Editor.prototype.init;Editor.prototype.init=function(){O.apply(this,arguments);var X=mxUtils.bind(this,function(aa,ja){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,X);this.graph.addListener(mxEvent.REFRESH,X)};A=document.getElementsByTagName("script");if(null!=A&&0<A.length){var S=
+document.createElement("script");S.setAttribute("type","text/javascript");S.setAttribute("src",k);A[0].parentNode.appendChild(S)}}};Editor.prototype.csvToArray=function(k){if(0<k.length){var A="",I=[""],U=0,O=!0,S;k=$jscomp.makeIterator(k);for(S=k.next();!S.done;S=k.next())S=S.value,'"'===S?(O&&S===A&&(I[U]+=S),O=!O):","===S&&O?S=I[++U]="":I[U]+=S,A=S;return I}return[]};Editor.prototype.getProxiedUrl=function(k){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&
!this.isCorsEnabledForUrl(k)){var A=EditorUi.isVisioFilename(k);A=/\.png$/i.test(k)||/\.pdf$/i.test(k)||A;var I="t="+(new Date).getTime();k=PROXY_URL+"?url="+encodeURIComponent(k)+"&"+I+(A?"&base64=1":"")}return k};Editor.prototype.isCorsEnabledForUrl=function(k){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||k.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));
return null!=this.corsRegExp&&this.corsRegExp.test(k)||"https://raw.githubusercontent.com/"===k.substring(0,34)||"https://fonts.googleapis.com/"===k.substring(0,29)||"https://fonts.gstatic.com/"===k.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var k=new mxUrlConverter;k.updateBaseUrl();var A=k.convert,I=this;k.convert=function(U){null!=U&&navigator.onLine&&("http://"!=U.substring(0,7)&&"https://"!=U.substring(0,8)||U.substring(0,k.baseUrl.length)==k.baseUrl||I.crossOriginImages&&
-I.isCorsEnabledForUrl(U)?"chrome-extension://"!=U.substring(0,19)&&(U=A.apply(this,arguments)):U=PROXY_URL+"?url="+encodeURIComponent(U));return U};return k};Editor.createSvgDataUri=function(k){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(k)))};Editor.prototype.convertImageToDataUri=function(k,A,I,U,O){try{var T=!0,X=window.setTimeout(mxUtils.bind(this,function(){T=!1;A(k)}),this.timeout),aa=mxUtils.bind(this,function(){null!=U?this.convertImageToDataUri(k,A,I,U,!0):A(k)});
-if(/(\.svg)$/i.test(k)&&!O)mxUtils.get(k,mxUtils.bind(this,function(pa){window.clearTimeout(X);T&&(200>pa.getStatus()||299<pa.getStatus()?aa():A(Editor.createSvgDataUri(pa.getText())))}),mxUtils.bind(this,function(){window.clearTimeout(X);T&&aa()}));else{var ja=new Image;this.crossOriginImages&&(ja.crossOrigin="anonymous");ja.onload=function(){window.clearTimeout(X);if(T)try{U=null!=U&&O?U:1;var pa=document.createElement("canvas"),sa=pa.getContext("2d");sa.scale(U,U);pa.height=ja.height*U;pa.width=
-ja.width*U;sa.drawImage(ja,0,0);A(pa.toDataURL())}catch(qa){A(k)}};ja.onerror=function(){window.clearTimeout(X);T&&(null!=I?I():A(k))};ja.src=k}}catch(pa){null!=I?I():A(k)}};Editor.prototype.convertImages=function(k,A,I,U){function O(){0<T.length?T.shift()():A(k)}null==U&&(U=this.createImageUrlConverter());var T=[],X=I||{};I=mxUtils.bind(this,function(aa,ja){aa=k.getElementsByTagName(aa);for(var pa=0;pa<aa.length;pa++)mxUtils.bind(this,function(sa){T.push(mxUtils.bind(this,function(){try{if(null!=
-sa){var qa=U.convert(sa.getAttribute(ja));if(null!=qa&&"data:"!=qa.substring(0,5)){var wa=X[qa];null==wa?this.convertImageToDataUri(qa,function(Ba){null!=Ba&&(X[qa]=Ba,sa.setAttribute(ja,Ba));O()},null,Editor.svgRasterScale):(sa.setAttribute(ja,wa),O())}else null!=qa&&sa.setAttribute(ja,qa),O()}}catch(Ba){O()}}))})(aa[pa])});I("image","xlink:href");I("img","src");O()};Editor.base64Encode=function(k){for(var A="",I=0,U=k.length,O,T,X;I<U;){O=k.charCodeAt(I++)&255;if(I==U){A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>
-2);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&3)<<4);A+="==";break}T=k.charCodeAt(I++);if(I==U){A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>2);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&3)<<4|(T&240)>>4);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&15)<<2);A+="=";break}X=k.charCodeAt(I++);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>
-2);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&3)<<4|(T&240)>>4);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&15)<<2|(X&192)>>6);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(X&63)}return A};Editor.prototype.loadUrl=function(k,A,I,U,O,T,X,aa){try{var ja=!X&&(U||/(\.png)($|\?)/i.test(k)||/(\.jpe?g)($|\?)/i.test(k)||/(\.gif)($|\?)/i.test(k)||/(\.pdf)($|\?)/i.test(k));O=null!=O?O:!0;var pa=mxUtils.bind(this,
-function(){mxUtils.get(k,mxUtils.bind(this,function(sa){if(200<=sa.getStatus()&&299>=sa.getStatus()){if(null!=A){var qa=sa.getText();if(ja){if((9==document.documentMode||10==document.documentMode)&&"undefined"!==typeof window.mxUtilsBinaryToArray){sa=mxUtilsBinaryToArray(sa.request.responseBody).toArray();qa=Array(sa.length);for(var wa=0;wa<sa.length;wa++)qa[wa]=String.fromCharCode(sa[wa]);qa=qa.join("")}T=null!=T?T:"data:image/png;base64,";qa=T+Editor.base64Encode(qa)}A(qa)}}else null!=I&&(0==sa.getStatus()?
+I.isCorsEnabledForUrl(U)?"chrome-extension://"!=U.substring(0,19)&&(U=A.apply(this,arguments)):U=PROXY_URL+"?url="+encodeURIComponent(U));return U};return k};Editor.createSvgDataUri=function(k){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(k)))};Editor.prototype.convertImageToDataUri=function(k,A,I,U,O){try{var S=!0,X=window.setTimeout(mxUtils.bind(this,function(){S=!1;A(k)}),this.timeout),aa=mxUtils.bind(this,function(){null!=U?this.convertImageToDataUri(k,A,I,U,!0):A(k)});
+if(/(\.svg)$/i.test(k)&&!O)mxUtils.get(k,mxUtils.bind(this,function(pa){window.clearTimeout(X);S&&(200>pa.getStatus()||299<pa.getStatus()?aa():A(Editor.createSvgDataUri(pa.getText())))}),mxUtils.bind(this,function(){window.clearTimeout(X);S&&aa()}));else{var ja=new Image;this.crossOriginImages&&(ja.crossOrigin="anonymous");ja.onload=function(){window.clearTimeout(X);if(S)try{U=null!=U&&O?U:1;var pa=document.createElement("canvas"),sa=pa.getContext("2d");sa.scale(U,U);pa.height=ja.height*U;pa.width=
+ja.width*U;sa.drawImage(ja,0,0);A(pa.toDataURL())}catch(qa){A(k)}};ja.onerror=function(){window.clearTimeout(X);S&&(null!=I?I():A(k))};ja.src=k}}catch(pa){null!=I?I():A(k)}};Editor.prototype.convertImages=function(k,A,I,U){function O(){0<S.length?S.shift()():A(k)}null==U&&(U=this.createImageUrlConverter());var S=[],X=I||{};I=mxUtils.bind(this,function(aa,ja){aa=k.getElementsByTagName(aa);for(var pa=0;pa<aa.length;pa++)mxUtils.bind(this,function(sa){S.push(mxUtils.bind(this,function(){try{if(null!=
+sa){var qa=U.convert(sa.getAttribute(ja));if(null!=qa&&"data:"!=qa.substring(0,5)){var wa=X[qa];null==wa?this.convertImageToDataUri(qa,function(Ba){null!=Ba&&(X[qa]=Ba,sa.setAttribute(ja,Ba));O()},null,Editor.svgRasterScale):(sa.setAttribute(ja,wa),O())}else null!=qa&&sa.setAttribute(ja,qa),O()}}catch(Ba){O()}}))})(aa[pa])});I("image","xlink:href");I("img","src");O()};Editor.base64Encode=function(k){for(var A="",I=0,U=k.length,O,S,X;I<U;){O=k.charCodeAt(I++)&255;if(I==U){A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>
+2);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&3)<<4);A+="==";break}S=k.charCodeAt(I++);if(I==U){A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>2);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&3)<<4|(S&240)>>4);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((S&15)<<2);A+="=";break}X=k.charCodeAt(I++);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>
+2);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&3)<<4|(S&240)>>4);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((S&15)<<2|(X&192)>>6);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(X&63)}return A};Editor.prototype.loadUrl=function(k,A,I,U,O,S,X,aa){try{var ja=!X&&(U||/(\.png)($|\?)/i.test(k)||/(\.jpe?g)($|\?)/i.test(k)||/(\.gif)($|\?)/i.test(k)||/(\.pdf)($|\?)/i.test(k));O=null!=O?O:!0;var pa=mxUtils.bind(this,
+function(){mxUtils.get(k,mxUtils.bind(this,function(sa){if(200<=sa.getStatus()&&299>=sa.getStatus()){if(null!=A){var qa=sa.getText();if(ja){if((9==document.documentMode||10==document.documentMode)&&"undefined"!==typeof window.mxUtilsBinaryToArray){sa=mxUtilsBinaryToArray(sa.request.responseBody).toArray();qa=Array(sa.length);for(var wa=0;wa<sa.length;wa++)qa[wa]=String.fromCharCode(sa[wa]);qa=qa.join("")}S=null!=S?S:"data:image/png;base64,";qa=S+Editor.base64Encode(qa)}A(qa)}}else null!=I&&(0==sa.getStatus()?
I({message:mxResources.get("accessDenied")},sa):404==sa.getStatus()?I({message:mxResources.get("fileNotFound"),code:sa.getStatus()},sa):I({message:this.getErrorMessage(sa)},sa))}),function(sa){null!=I&&I({message:mxResources.get("error")+" "+sa.getStatus()})},ja,this.timeout,function(){O&&null!=I&&I({code:App.ERROR_TIMEOUT,retry:pa})},aa)});pa()}catch(sa){null!=I&&I(sa)}};Editor.prototype.getErrorMessage=function(k){var A=mxResources.get("error")+" "+k.getStatus();try{var I=k.getText(),U=JSON.parse(I);
-null!=U&&null!=U.error&&null!=U.error.message&&(A=U.error.message+" ("+A+")")}catch(O){}return A};Editor.prototype.absoluteCssFonts=function(k){var A=null;if(null!=k){var I=k.split("url(");if(0<I.length){A=[I[0]];k=window.location.pathname;var U=null!=k?k.lastIndexOf("/"):-1;0<=U&&(k=k.substring(0,U+1));U=document.getElementsByTagName("base");var O=null;null!=U&&0<U.length&&(O=U[0].getAttribute("href"));for(var T=1;T<I.length;T++)if(U=I[T].indexOf(")"),0<U){var X=Editor.trimCssUrl(I[T].substring(0,
-U));this.graph.isRelativeUrl(X)&&(X=null!=O?O+X:window.location.protocol+"//"+window.location.hostname+("/"==X.charAt(0)?"":k)+X);A.push('url("'+X+'"'+I[T].substring(U))}else A.push(I[T])}else A=[k]}return null!=A?A.join(""):null};Editor.prototype.mapFontUrl=function(k,A,I){/^https?:\/\//.test(A)&&!this.isCorsEnabledForUrl(A)&&(A=PROXY_URL+"?url="+encodeURIComponent(A));I(k,A)};Editor.prototype.embedCssFonts=function(k,A){var I=k.split("url("),U=0;null==this.cachedFonts&&(this.cachedFonts={});var O=
-mxUtils.bind(this,function(){if(0==U){for(var ja=[I[0]],pa=1;pa<I.length;pa++){var sa=I[pa].indexOf(")");ja.push('url("');ja.push(this.cachedFonts[Editor.trimCssUrl(I[pa].substring(0,sa))]);ja.push('"'+I[pa].substring(sa))}A(ja.join(""))}});if(0<I.length){for(k=1;k<I.length;k++){var T=I[k].indexOf(")"),X=null,aa=I[k].indexOf("format(",T);0<aa&&(X=Editor.trimCssUrl(I[k].substring(aa+7,I[k].indexOf(")",aa))));mxUtils.bind(this,function(ja){if(null==this.cachedFonts[ja]){this.cachedFonts[ja]=ja;U++;
+null!=U&&null!=U.error&&null!=U.error.message&&(A=U.error.message+" ("+A+")")}catch(O){}return A};Editor.prototype.absoluteCssFonts=function(k){var A=null;if(null!=k){var I=k.split("url(");if(0<I.length){A=[I[0]];k=window.location.pathname;var U=null!=k?k.lastIndexOf("/"):-1;0<=U&&(k=k.substring(0,U+1));U=document.getElementsByTagName("base");var O=null;null!=U&&0<U.length&&(O=U[0].getAttribute("href"));for(var S=1;S<I.length;S++)if(U=I[S].indexOf(")"),0<U){var X=Editor.trimCssUrl(I[S].substring(0,
+U));this.graph.isRelativeUrl(X)&&(X=null!=O?O+X:window.location.protocol+"//"+window.location.hostname+("/"==X.charAt(0)?"":k)+X);A.push('url("'+X+'"'+I[S].substring(U))}else A.push(I[S])}else A=[k]}return null!=A?A.join(""):null};Editor.prototype.mapFontUrl=function(k,A,I){/^https?:\/\//.test(A)&&!this.isCorsEnabledForUrl(A)&&(A=PROXY_URL+"?url="+encodeURIComponent(A));I(k,A)};Editor.prototype.embedCssFonts=function(k,A){var I=k.split("url("),U=0;null==this.cachedFonts&&(this.cachedFonts={});var O=
+mxUtils.bind(this,function(){if(0==U){for(var ja=[I[0]],pa=1;pa<I.length;pa++){var sa=I[pa].indexOf(")");ja.push('url("');ja.push(this.cachedFonts[Editor.trimCssUrl(I[pa].substring(0,sa))]);ja.push('"'+I[pa].substring(sa))}A(ja.join(""))}});if(0<I.length){for(k=1;k<I.length;k++){var S=I[k].indexOf(")"),X=null,aa=I[k].indexOf("format(",S);0<aa&&(X=Editor.trimCssUrl(I[k].substring(aa+7,I[k].indexOf(")",aa))));mxUtils.bind(this,function(ja){if(null==this.cachedFonts[ja]){this.cachedFonts[ja]=ja;U++;
var pa="application/x-font-ttf";if("svg"==X||/(\.svg)($|\?)/i.test(ja))pa="image/svg+xml";else if("otf"==X||"embedded-opentype"==X||/(\.otf)($|\?)/i.test(ja))pa="application/x-font-opentype";else if("woff"==X||/(\.woff)($|\?)/i.test(ja))pa="application/font-woff";else if("woff2"==X||/(\.woff2)($|\?)/i.test(ja))pa="application/font-woff2";else if("eot"==X||/(\.eot)($|\?)/i.test(ja))pa="application/vnd.ms-fontobject";else if("sfnt"==X||/(\.sfnt)($|\?)/i.test(ja))pa="application/font-sfnt";this.mapFontUrl(pa,
-ja,mxUtils.bind(this,function(sa,qa){this.loadUrl(qa,mxUtils.bind(this,function(wa){this.cachedFonts[ja]=wa;U--;O()}),mxUtils.bind(this,function(wa){U--;O()}),!0,null,"data:"+sa+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(I[k].substring(0,T)),X)}O()}else A(k)};Editor.prototype.loadFonts=function(k){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(A){this.resolvedFontCss=A;null!=k&&k()})):null!=k&&k()};Editor.prototype.createGoogleFontCache=
-function(){var k={},A;for(A in Graph.fontMapping)Graph.isCssFontUrl(A)&&(k[A]=Graph.fontMapping[A]);return k};Editor.prototype.embedExtFonts=function(k){var A=this.graph.getCustomFonts();if(0<A.length){var I=[],U=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var O=mxUtils.bind(this,function(){0==U&&this.embedCssFonts(I.join(""),k)}),T=0;T<A.length;T++)mxUtils.bind(this,function(X,aa){Graph.isCssFontUrl(aa)?null==this.cachedGoogleFonts[aa]?(U++,this.loadUrl(Graph.rewriteGoogleFontUrl(aa),
-mxUtils.bind(this,function(ja){this.cachedGoogleFonts[aa]=ja;I.push(ja+"\n");U--;O()}),mxUtils.bind(this,function(ja){U--;I.push("@import url("+aa+");\n");O()}))):I.push(this.cachedGoogleFonts[aa]+"\n"):I.push('@font-face {font-family: "'+X+'";src: url("'+aa+'")}\n')})(A[T].name,A[T].url);O()}else k()};Editor.prototype.addMathCss=function(k){k=k.getElementsByTagName("defs");if(null!=k&&0<k.length)for(var A=document.getElementsByTagName("style"),I=0;I<A.length;I++){var U=mxUtils.getTextContent(A[I]);
-0>U.indexOf("mxPageSelector")&&0<U.indexOf("MathJax")&&k[0].appendChild(A[I].cloneNode(!0))}};Editor.prototype.addFontCss=function(k,A){A=null!=A?A:this.absoluteCssFonts(this.fontCss);if(null!=A){var I=mxUtils.getSvgDefs(k),U=A.split("\n");A=[];for(var O=[],T=0;T<U.length;T++)"@import"==U[T].substring(0,7)?A.push(U[T]):O.push(U[T]);k=k.ownerDocument;k=null!=k.createElementNS?k.createElementNS(mxConstants.NS_SVG,"style"):k.createElement("style");k.setAttribute("type","text/css");0<A.length&&(mxUtils.setTextContent(k,
-A.join("\n")),I.appendChild(k));0<O.length&&(k=k.cloneNode(!1),mxUtils.setTextContent(k,O.join("\n")),I.appendChild(k))}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(k,A,I){var U=mxClient.IS_FF?8192:16384;return Math.min(I,Math.min(U/k,U/A))};Editor.prototype.exportToCanvas=function(k,A,I,U,O,T,X,aa,ja,pa,sa,qa,wa,Ba,za,Ea,ra,ya){try{T=null!=T?T:!0;X=null!=X?X:!0;qa=null!=qa?qa:this.graph;wa=null!=
+ja,mxUtils.bind(this,function(sa,qa){this.loadUrl(qa,mxUtils.bind(this,function(wa){this.cachedFonts[ja]=wa;U--;O()}),mxUtils.bind(this,function(wa){U--;O()}),!0,null,"data:"+sa+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(I[k].substring(0,S)),X)}O()}else A(k)};Editor.prototype.loadFonts=function(k){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(A){this.resolvedFontCss=A;null!=k&&k()})):null!=k&&k()};Editor.prototype.createGoogleFontCache=
+function(){var k={},A;for(A in Graph.fontMapping)Graph.isCssFontUrl(A)&&(k[A]=Graph.fontMapping[A]);return k};Editor.prototype.embedExtFonts=function(k){var A=this.graph.getCustomFonts();if(0<A.length){var I=[],U=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var O=mxUtils.bind(this,function(){0==U&&this.embedCssFonts(I.join(""),k)}),S=0;S<A.length;S++)mxUtils.bind(this,function(X,aa){Graph.isCssFontUrl(aa)?null==this.cachedGoogleFonts[aa]?(U++,this.loadUrl(Graph.rewriteGoogleFontUrl(aa),
+mxUtils.bind(this,function(ja){this.cachedGoogleFonts[aa]=ja;I.push(ja+"\n");U--;O()}),mxUtils.bind(this,function(ja){U--;I.push("@import url("+aa+");\n");O()}))):I.push(this.cachedGoogleFonts[aa]+"\n"):I.push('@font-face {font-family: "'+X+'";src: url("'+aa+'")}\n')})(A[S].name,A[S].url);O()}else k()};Editor.prototype.addMathCss=function(k){k=k.getElementsByTagName("defs");if(null!=k&&0<k.length)for(var A=document.getElementsByTagName("style"),I=0;I<A.length;I++){var U=mxUtils.getTextContent(A[I]);
+0>U.indexOf("mxPageSelector")&&0<U.indexOf("MathJax")&&k[0].appendChild(A[I].cloneNode(!0))}};Editor.prototype.addFontCss=function(k,A){A=null!=A?A:this.absoluteCssFonts(this.fontCss);if(null!=A){var I=mxUtils.getSvgDefs(k),U=A.split("\n");A=[];for(var O=[],S=0;S<U.length;S++)"@import"==U[S].substring(0,7)?A.push(U[S]):O.push(U[S]);k=k.ownerDocument;k=null!=k.createElementNS?k.createElementNS(mxConstants.NS_SVG,"style"):k.createElement("style");k.setAttribute("type","text/css");0<A.length&&(mxUtils.setTextContent(k,
+A.join("\n")),I.appendChild(k));0<O.length&&(k=k.cloneNode(!1),mxUtils.setTextContent(k,O.join("\n")),I.appendChild(k))}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(k,A,I){var U=mxClient.IS_FF?8192:16384;return Math.min(I,Math.min(U/k,U/A))};Editor.prototype.exportToCanvas=function(k,A,I,U,O,S,X,aa,ja,pa,sa,qa,wa,Ba,za,Ea,ra,ya){try{S=null!=S?S:!0;X=null!=X?X:!0;qa=null!=qa?qa:this.graph;wa=null!=
wa?wa:0;var Ca=ja?null:qa.background;Ca==mxConstants.NONE&&(Ca=null);null==Ca&&(Ca=U);null==Ca&&0==ja&&(Ca="dark"==Ea&&"none"!=qa.getAdaptiveColors()?Editor.darkColor:"#ffffff");this.convertImages(qa.getSvg(null,null,wa,Ba,null,X,null,null,null,pa,null,Ea,ra,ya),mxUtils.bind(this,function(Ma){try{var Ha=new Image;Ha.onload=mxUtils.bind(this,function(){try{var Ra=function(){mxClient.IS_SF?window.setTimeout(function(){Da.drawImage(Ha,0,0);k(Za,Ma)},0):(Da.drawImage(Ha,0,0),k(Za,Ma))},Za=document.createElement("canvas"),
-La=parseInt(Ma.getAttribute("width")),$a=parseInt(Ma.getAttribute("height"));aa=null!=aa?aa:1;null!=A&&(aa=T?Math.min(1,Math.min(3*A/(4*$a),A/La)):A/La);aa=this.getMaxCanvasScale(La,$a,aa);La=Math.ceil(aa*La);$a=Math.ceil(aa*$a);Za.setAttribute("width",La);Za.setAttribute("height",$a);var Da=Za.getContext("2d");null!=Ca&&(Da.beginPath(),Da.rect(0,0,La,$a),Da.fillStyle=Ca,Da.fill());1!=aa&&Da.scale(aa,aa);if(za){var x=qa.view,M=x.scale;x.scale=1;var Q=btoa(unescape(encodeURIComponent(x.createSvgGrid(x.gridColor))));
+La=parseInt(Ma.getAttribute("width")),$a=parseInt(Ma.getAttribute("height"));aa=null!=aa?aa:1;null!=A&&(aa=S?Math.min(1,Math.min(3*A/(4*$a),A/La)):A/La);aa=this.getMaxCanvasScale(La,$a,aa);La=Math.ceil(aa*La);$a=Math.ceil(aa*$a);Za.setAttribute("width",La);Za.setAttribute("height",$a);var Da=Za.getContext("2d");null!=Ca&&(Da.beginPath(),Da.rect(0,0,La,$a),Da.fillStyle=Ca,Da.fill());1!=aa&&Da.scale(aa,aa);if(za){var x=qa.view,M=x.scale;x.scale=1;var Q=btoa(unescape(encodeURIComponent(x.createSvgGrid(x.gridColor))));
x.scale=M;Q="data:image/svg+xml;base64,"+Q;var V=qa.gridSize*x.gridSteps*aa,ia=qa.getGraphBounds(),ka=x.translate.x*M,oa=x.translate.y*M,xa=ka+(ia.x-ka)/M-wa,ta=oa+(ia.y-oa)/M-wa,ua=new Image;ua.onload=function(){try{for(var Fa=-Math.round(V-mxUtils.mod((ka-xa)*aa,V)),Na=-Math.round(V-mxUtils.mod((oa-ta)*aa,V));Fa<La;Fa+=V)for(var Wa=Na;Wa<$a;Wa+=V)Da.drawImage(ua,Fa/aa,Wa/aa);Ra()}catch(Xa){null!=O&&O(Xa)}};ua.onerror=function(Fa){null!=O&&O(Fa)};ua.src=Q}else Ra()}catch(Fa){null!=O&&O(Fa)}});Ha.onerror=
function(Ra){null!=O&&O(Ra)};pa&&this.graph.addSvgShadow(Ma);this.graph.mathEnabled&&this.addMathCss(Ma);var Aa=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(Ma,this.resolvedFontCss),Ha.src=Editor.createSvgDataUri(mxUtils.getXml(Ma))}catch(Ra){null!=O&&O(Ra)}});this.embedExtFonts(mxUtils.bind(this,function(Ra){try{null!=Ra&&this.addFontCss(Ma,Ra),this.loadFonts(Aa)}catch(Za){null!=O&&O(Za)}}))}catch(Ra){null!=O&&O(Ra)}}),I,sa)}catch(Ma){null!=O&&O(Ma)}};Editor.crcTable=
-[];for(var u=0;256>u;u++)for(var p=u,B=0;8>B;B++)p=1==(p&1)?3988292384^p>>>1:p>>>1,Editor.crcTable[u]=p;Editor.updateCRC=function(k,A,I,U){for(var O=0;O<U;O++)k=Editor.crcTable[(k^A.charCodeAt(I+O))&255]^k>>>8;return k};Editor.crc32=function(k){for(var A=-1,I=0;I<k.length;I++)A=A>>>8^Editor.crcTable[(A^k.charCodeAt(I))&255];return(A^-1)>>>0};Editor.writeGraphModelToPng=function(k,A,I,U,O){function T(sa,qa){var wa=ja;ja+=qa;return sa.substring(wa,ja)}function X(sa){sa=T(sa,4);return sa.charCodeAt(3)+
-(sa.charCodeAt(2)<<8)+(sa.charCodeAt(1)<<16)+(sa.charCodeAt(0)<<24)}function aa(sa){return String.fromCharCode(sa>>24&255,sa>>16&255,sa>>8&255,sa&255)}k=k.substring(k.indexOf(",")+1);k=window.atob?atob(k):Base64.decode(k,!0);var ja=0;if(T(k,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=O&&O();else if(T(k,4),"IHDR"!=T(k,4))null!=O&&O();else{T(k,17);O=k.substring(0,ja);do{var pa=X(k);if("IDAT"==T(k,4)){O=k.substring(0,ja-8);"pHYs"==A&&"dpi"==I?(I=Math.round(U/.0254),I=aa(I)+
-aa(I)+String.fromCharCode(1)):I=I+String.fromCharCode(0)+("zTXt"==A?String.fromCharCode(0):"")+U;U=4294967295;U=Editor.updateCRC(U,A,0,4);U=Editor.updateCRC(U,I,0,I.length);O+=aa(I.length)+A+I+aa(U^4294967295);O+=k.substring(ja-8,k.length);break}O+=k.substring(ja-8,ja-4+pa);T(k,pa);T(k,4)}while(pa);return"data:image/png;base64,"+(window.btoa?btoa(O):Base64.encode(O,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var H=ColorDialog.addRecentColor;
-ColorDialog.addRecentColor=function(k,A){H.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var S=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){S.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(k,A){var I=null;null!=k.editor.graph.getModel().getParent(A)?I=A.getId():null!=k.currentPage&&(I=k.currentPage.getId());
+[];for(var u=0;256>u;u++)for(var p=u,B=0;8>B;B++)p=1==(p&1)?3988292384^p>>>1:p>>>1,Editor.crcTable[u]=p;Editor.updateCRC=function(k,A,I,U){for(var O=0;O<U;O++)k=Editor.crcTable[(k^A.charCodeAt(I+O))&255]^k>>>8;return k};Editor.crc32=function(k){for(var A=-1,I=0;I<k.length;I++)A=A>>>8^Editor.crcTable[(A^k.charCodeAt(I))&255];return(A^-1)>>>0};Editor.writeGraphModelToPng=function(k,A,I,U,O){function S(sa,qa){var wa=ja;ja+=qa;return sa.substring(wa,ja)}function X(sa){sa=S(sa,4);return sa.charCodeAt(3)+
+(sa.charCodeAt(2)<<8)+(sa.charCodeAt(1)<<16)+(sa.charCodeAt(0)<<24)}function aa(sa){return String.fromCharCode(sa>>24&255,sa>>16&255,sa>>8&255,sa&255)}k=k.substring(k.indexOf(",")+1);k=window.atob?atob(k):Base64.decode(k,!0);var ja=0;if(S(k,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=O&&O();else if(S(k,4),"IHDR"!=S(k,4))null!=O&&O();else{S(k,17);O=k.substring(0,ja);do{var pa=X(k);if("IDAT"==S(k,4)){O=k.substring(0,ja-8);"pHYs"==A&&"dpi"==I?(I=Math.round(U/.0254),I=aa(I)+
+aa(I)+String.fromCharCode(1)):I=I+String.fromCharCode(0)+("zTXt"==A?String.fromCharCode(0):"")+U;U=4294967295;U=Editor.updateCRC(U,A,0,4);U=Editor.updateCRC(U,I,0,I.length);O+=aa(I.length)+A+I+aa(U^4294967295);O+=k.substring(ja-8,k.length);break}O+=k.substring(ja-8,ja-4+pa);S(k,pa);S(k,4)}while(pa);return"data:image/png;base64,"+(window.btoa?btoa(O):Base64.encode(O,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var H=ColorDialog.addRecentColor;
+ColorDialog.addRecentColor=function(k,A){H.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var T=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){T.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(k,A){var I=null;null!=k.editor.graph.getModel().getParent(A)?I=A.getId():null!=k.currentPage&&(I=k.currentPage.getId());
return I});if(null!=window.StyleFormatPanel){var G=Format.prototype.init;Format.prototype.init=function(){G.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var P=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?P.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(k){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||
"min"==Editor.currentTheme};var R=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(k){k=R.apply(this,arguments);var A=this.editorUi,I=A.editor.graph;if(I.isEnabled()){var U=A.getCurrentFile();null!=U&&U.isAutosaveOptional()&&k.appendChild(this.createOption(mxResources.get("autosave"),function(){return A.editor.autosave},function(X){A.editor.setAutosave(X);A.editor.autosave&&U.isModified()&&U.fileChanged()},{install:function(X){this.listener=function(){X(A.editor.autosave)};
A.editor.addListener("autosaveChanged",this.listener)},destroy:function(){A.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&I.isEnabled()&&"undefined"!==typeof MathJax){var O=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return I.mathEnabled},function(X){A.actions.get("mathematicalTypesetting").funct()},{install:function(X){this.listener=function(){X(I.mathEnabled)};A.addListener("mathEnabledChanged",this.listener)},destroy:function(){A.removeListener(this.listener)}});
-k.appendChild(O);if(!A.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp){var T=A.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting");T.style.position="absolute";T.style.left="85%";O.appendChild(T)}}return k};mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.link.prototype.customProperties=
+k.appendChild(O);if(!A.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp){var S=A.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting");S.style.position="absolute";S.style.left="85%";O.appendChild(S)}}return k};mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.link.prototype.customProperties=
[{name:"width",dispName:"Width",type:"float",min:0,defVal:4}];mxCellRenderer.defaultShapes.flexArrow.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,defVal:10},{name:"startWidth",dispName:"Start Width",type:"float",min:0,defVal:20},{name:"endWidth",dispName:"End Width",type:"float",min:0,defVal:20}];mxCellRenderer.defaultShapes.process.prototype.customProperties=[{name:"size",dispName:"Indent",type:"float",min:0,max:.5,defVal:.1}];mxCellRenderer.defaultShapes.rhombus.prototype.customProperties=
[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,max:50,defVal:mxConstants.LINE_ARCSIZE},{name:"double",dispName:"Double",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.partialRectangle.prototype.customProperties=[{name:"top",dispName:"Top Line",type:"bool",defVal:!0},{name:"bottom",dispName:"Bottom Line",type:"bool",defVal:!0},{name:"left",dispName:"Left Line",type:"bool",defVal:!0},{name:"right",dispName:"Right Line",type:"bool",defVal:!0}];mxCellRenderer.defaultShapes.parallelogram.prototype.customProperties=
[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"size",dispName:"Slope Angle",type:"float",min:0,max:1,defVal:.2,isVisible:function(k){return"0"==mxUtils.getValue(k.style,"fixedSize","0")}},{name:"size",dispName:"Slope Angle",type:"float",min:0,defVal:20,isVisible:function(k){return"1"==mxUtils.getValue(k.style,"fixedSize","0")}}];mxCellRenderer.defaultShapes.hexagon.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},
@@ -3353,30 +3353,30 @@ defVal:"none",enumList:[{val:"none",dispName:"Default"},{val:"umlActor",dispName
stroke:"#3700CC",font:"#ffffff"},{fill:"#d80073",stroke:"#A50040",font:"#ffffff"},{fill:"#a20025",stroke:"#6F0000",font:"#ffffff"}],[{fill:"#e51400",stroke:"#B20000",font:"#ffffff"},{fill:"#fa6800",stroke:"#C73500",font:"#000000"},{fill:"#f0a30a",stroke:"#BD7000",font:"#000000"},{fill:"#e3c800",stroke:"#B09500",font:"#000000"},{fill:"#6d8764",stroke:"#3A5431",font:"#ffffff"},{fill:"#647687",stroke:"#314354",font:"#ffffff"},{fill:"#76608a",stroke:"#432D57",font:"#ffffff"},{fill:"#a0522d",stroke:"#6D1F00",
font:"#ffffff"}],[{fill:"",stroke:""},{fill:mxConstants.NONE,stroke:""},{fill:"#fad7ac",stroke:"#b46504"},{fill:"#fad9d5",stroke:"#ae4132"},{fill:"#b0e3e6",stroke:"#0e8088"},{fill:"#b1ddf0",stroke:"#10739e"},{fill:"#d0cee2",stroke:"#56517e"},{fill:"#bac8d3",stroke:"#23445d"}],[{fill:"",stroke:""},{fill:"#f5f5f5",stroke:"#666666",gradient:"#b3b3b3"},{fill:"#dae8fc",stroke:"#6c8ebf",gradient:"#7ea6e0"},{fill:"#d5e8d4",stroke:"#82b366",gradient:"#97d077"},{fill:"#ffcd28",stroke:"#d79b00",gradient:"#ffa500"},
{fill:"#fff2cc",stroke:"#d6b656",gradient:"#ffd966"},{fill:"#f8cecc",stroke:"#b85450",gradient:"#ea6b66"},{fill:"#e6d0de",stroke:"#996185",gradient:"#d5739d"}],[{fill:"",stroke:""},{fill:"#eeeeee",stroke:"#36393d"},{fill:"#f9f7ed",stroke:"#36393d"},{fill:"#ffcc99",stroke:"#36393d"},{fill:"#cce5ff",stroke:"#36393d"},{fill:"#ffff88",stroke:"#36393d"},{fill:"#cdeb8b",stroke:"#36393d"},{fill:"#ffcccc",stroke:"#36393d"}]];StyleFormatPanel.prototype.customColorSchemes=null;StyleFormatPanel.prototype.findCommonProperties=
-function(k,A,I,U){if(null!=A){var O=mxUtils.bind(this,function(X){if(null!=X)if(I)for(var aa=0;aa<X.length;aa++){if("function"!==typeof X[aa].isVisible||X[aa].isVisible(U,this))A[X[aa].name]=X[aa]}else for(var ja in A){var pa=!1;for(aa=0;aa<X.length;aa++)if(X[aa].name==ja&&X[aa].type==A[ja].type){pa=!0;break}pa||delete A[ja]}}),T=this.editorUi.editor.graph.view.getState(k);null!=T&&null!=T.shape&&(T.shape.commonCustomPropAdded||(T.shape.commonCustomPropAdded=!0,T.shape.customProperties=T.shape.customProperties||
-[],T.cell.vertex?Array.prototype.push.apply(T.shape.customProperties,Editor.commonVertexProperties):Array.prototype.push.apply(T.shape.customProperties,Editor.commonEdgeProperties)),O(T.shape.customProperties));k=k.getAttribute("customProperties");if(null!=k)try{O(JSON.parse(k))}catch(X){}}};var c=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init=function(){var k=this.editorUi.getSelectionState();null!=this.defaultColorSchemes&&0<this.defaultColorSchemes.length&&"image"!=k.style.shape&&
+function(k,A,I,U){if(null!=A){var O=mxUtils.bind(this,function(X){if(null!=X)if(I)for(var aa=0;aa<X.length;aa++){if("function"!==typeof X[aa].isVisible||X[aa].isVisible(U,this))A[X[aa].name]=X[aa]}else for(var ja in A){var pa=!1;for(aa=0;aa<X.length;aa++)if(X[aa].name==ja&&X[aa].type==A[ja].type){pa=!0;break}pa||delete A[ja]}}),S=this.editorUi.editor.graph.view.getState(k);null!=S&&null!=S.shape&&(S.shape.commonCustomPropAdded||(S.shape.commonCustomPropAdded=!0,S.shape.customProperties=S.shape.customProperties||
+[],S.cell.vertex?Array.prototype.push.apply(S.shape.customProperties,Editor.commonVertexProperties):Array.prototype.push.apply(S.shape.customProperties,Editor.commonEdgeProperties)),O(S.shape.customProperties));k=k.getAttribute("customProperties");if(null!=k)try{O(JSON.parse(k))}catch(X){}}};var c=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init=function(){var k=this.editorUi.getSelectionState();null!=this.defaultColorSchemes&&0<this.defaultColorSchemes.length&&"image"!=k.style.shape&&
!k.containsLabel&&0<k.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));c.apply(this,arguments);if(Editor.enableCustomProperties){for(var A={},I=k.vertices,U=k.edges,O=0;O<I.length;O++)this.findCommonProperties(I[O],A,0==O,k);for(O=0;O<U.length;O++)this.findCommonProperties(U[O],A,0==I.length&&0==O,k);null!=Object.getOwnPropertyNames&&0<Object.getOwnPropertyNames(A).length&&this.container.appendChild(this.addProperties(this.createPanel(),A,k))}};var f=StyleFormatPanel.prototype.addStyleOps;
StyleFormatPanel.prototype.addStyleOps=function(k){var A=this.editorUi.getSelectionState();1==A.cells.length?this.addActions(k,["copyStyle","pasteStyle"]):1<=A.cells.length&&this.addActions(k,["pasteStyle","pasteData"]);f.apply(this,arguments);return k};EditorUi.prototype.propertiesCollapsed=!0;BaseFormatPanel.prototype.addProperties=function(k,A,I,U){function O(Da,x,M,Q,V){if(null!=M.valueChanged)M.valueChanged(x,V);else{wa.getModel().beginUpdate();try{V=[];var ia=[];if(null!=M.index){for(var ka=
[],oa=M.parentRow.nextSibling;oa&&oa.getAttribute("data-pName")==Da;)ka.push(oa.getAttribute("data-pValue")),oa=oa.nextSibling;M.index<ka.length?null!=Q?ka.splice(Q,1):ka[M.index]=x:ka.push(x);null!=M.size&&ka.length>M.size&&(ka=ka.slice(0,M.size));x=ka.join(",");null!=M.countProperty&&(wa.setCellStyles(M.countProperty,ka.length,wa.getSelectionCells()),V.push(M.countProperty),ia.push(ka.length))}wa.setCellStyles(Da,x,wa.getSelectionCells());V.push(Da);ia.push(x);if(null!=M.dependentProps)for(Da=0;Da<
-M.dependentProps.length;Da++){var xa=M.dependentPropsDefVal[Da],ta=M.dependentPropsVals[Da];if(ta.length>x)ta=ta.slice(0,x);else for(var ua=ta.length;ua<x;ua++)ta.push(xa);ta=ta.join(",");wa.setCellStyles(M.dependentProps[Da],ta,wa.getSelectionCells());V.push(M.dependentProps[Da]);ia.push(ta)}if("function"==typeof M.onChange)M.onChange(wa,x);qa.editorUi.fireEvent(new mxEventObject("styleChanged","keys",V,"values",ia,"cells",wa.getSelectionCells()))}finally{wa.getModel().endUpdate()}}}function T(Da,
+M.dependentProps.length;Da++){var xa=M.dependentPropsDefVal[Da],ta=M.dependentPropsVals[Da];if(ta.length>x)ta=ta.slice(0,x);else for(var ua=ta.length;ua<x;ua++)ta.push(xa);ta=ta.join(",");wa.setCellStyles(M.dependentProps[Da],ta,wa.getSelectionCells());V.push(M.dependentProps[Da]);ia.push(ta)}if("function"==typeof M.onChange)M.onChange(wa,x);qa.editorUi.fireEvent(new mxEventObject("styleChanged","keys",V,"values",ia,"cells",wa.getSelectionCells()))}finally{wa.getModel().endUpdate()}}}function S(Da,
x,M){var Q=mxUtils.getOffset(k,!0),V=mxUtils.getOffset(Da,!0);x.style.position="absolute";x.style.left=V.x-Q.x+"px";x.style.top=V.y-Q.y+"px";x.style.width=Da.offsetWidth+"px";x.style.height=Da.offsetHeight-(M?4:0)+"px";x.style.zIndex=5}function X(Da,x,M){function Q(ia){if(null==ia||ia==mxConstants.NONE)V.style.background="url('"+Dialog.prototype.noColorImage+"')";else if("default"==ia)V.style.background="";else{var ka=mxUtils.getLightDarkColor(ia);mxUtils.isLightDarkColor(ia)&&ka.light!=ka.dark?V.style.background=
"linear-gradient(to right bottom, "+ka.cssText+" 50%, "+mxUtils.invertLightDarkColor(ka).cssText+" 50.3%)":V.style.background=ia}}var V=document.createElement("div");V.style.width="32px";V.style.height="8px";V.style.margin="2px";V.style.borderStyle="solid";V.style.borderWidth="1px";Q(x);btn=mxUtils.button("",mxUtils.bind(qa,function(ia){this.editorUi.pickColor(x,function(ka){O(Da,ka,M);Q(ka)});mxEvent.consume(ia)}));btn.style.height="18px";btn.style.width="40px";btn.style.marginTop="1px";btn.style.marginLeft=
"1px";btn.className="geColorBtn";btn.appendChild(V);return btn}function aa(Da,x,M,Q,V,ia,ka){null!=x&&(x=x.split(","),Ba.push({name:Da,values:x,type:M,defVal:Q,countProperty:V,parentRow:ia,isDeletable:!0,flipBkg:ka}));btn=mxUtils.button("+",mxUtils.bind(qa,function(oa){for(var xa=ia,ta=0;null!=xa.nextSibling;)if(xa.nextSibling.getAttribute("data-pName")==Da)xa=xa.nextSibling,ta++;else break;var ua={type:M,parentRow:ia,index:ta,isDeletable:!0,defVal:Q,countProperty:V};ta=sa(Da,"",ua,0==ta%2,ka);O(Da,
Q,ua);xa.parentNode.insertBefore(ta,xa.nextSibling);mxEvent.consume(oa)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function ja(Da,x,M,Q,V,ia,ka){if(0<V){var oa=Array(V);x=null!=x?x.split(","):[];for(var xa=0;xa<V;xa++)oa[xa]=null!=x[xa]?x[xa]:null!=Q?Q:"";Ba.push({name:Da,values:oa,type:M,defVal:Q,parentRow:ia,flipBkg:ka,size:V})}return document.createElement("div")}function pa(Da,x,M){var Q=document.createElement("input");Q.type="checkbox";Q.checked="1"==
x;mxEvent.addListener(Q,"change",function(){O(Da,Q.checked?"1":"0",M)});return Q}function sa(Da,x,M,Q,V){var ia=M.dispName,ka=M.type,oa=document.createElement("tr");oa.className="gePropRow"+(V?"Dark":"")+(Q?"Alt":"")+" gePropNonHeaderRow";oa.setAttribute("data-pName",Da);oa.setAttribute("data-pValue",x);Q=!1;null!=M.index&&(oa.setAttribute("data-index",M.index),ia=(null!=ia?ia:"")+"["+M.index+"]",Q=!0);var xa=document.createElement("td");xa.className="gePropRowCell";ia=mxResources.get(ia,null,ia);
mxUtils.write(xa,ia);xa.setAttribute("title",ia);Q&&(xa.style.textAlign="right");oa.appendChild(xa);xa=document.createElement("td");xa.className="gePropRowCell";xa.setAttribute("title",null!=x?x:mxResources.get("none"));if("color"==ka)xa.appendChild(X(Da,x,M));else if("bool"==ka||"boolean"==ka)xa.appendChild(pa(Da,x,M));else if("enum"==ka){var ta=M.enumList;for(V=0;V<ta.length;V++)if(ia=ta[V],ia.val==x){mxUtils.write(xa,mxResources.get(ia.dispName,null,ia.dispName));break}mxEvent.addListener(xa,"click",
-mxUtils.bind(qa,function(){var ua=document.createElement("select"),Fa=null;T(xa,ua);for(var Na=0;Na<ta.length;Na++){var Wa=ta[Na],Xa=document.createElement("option");Xa.value=mxUtils.htmlEntities(Wa.val);mxUtils.write(Xa,mxResources.get(Wa.dispName,null,Wa.dispName));ua.appendChild(Xa);null==Wa.val&&(Xa.value="null",Fa=Xa)}ua.value=null==x&&null!=Fa?"null":x;k.appendChild(ua);mxEvent.addListener(ua,"change",function(){var ab=mxUtils.htmlEntities(ua.value);if(ua[ua.selectedIndex]==Fa||"null"==ab.value)ab=
+mxUtils.bind(qa,function(){var ua=document.createElement("select"),Fa=null;S(xa,ua);for(var Na=0;Na<ta.length;Na++){var Wa=ta[Na],Xa=document.createElement("option");Xa.value=mxUtils.htmlEntities(Wa.val);mxUtils.write(Xa,mxResources.get(Wa.dispName,null,Wa.dispName));ua.appendChild(Xa);null==Wa.val&&(Xa.value="null",Fa=Xa)}ua.value=null==x&&null!=Fa?"null":x;k.appendChild(ua);mxEvent.addListener(ua,"change",function(){var ab=mxUtils.htmlEntities(ua.value);if(ua[ua.selectedIndex]==Fa||"null"==ab.value)ab=
null;O(Da,ab,M)});ua.focus();mxEvent.addListener(ua,"blur",function(){k.removeChild(ua)})}))}else"dynamicArr"==ka?xa.appendChild(aa(Da,x,M.subType,M.subDefVal,M.countProperty,oa,V)):"staticArr"==ka?xa.appendChild(ja(Da,x,M.subType,M.subDefVal,M.size,oa,V)):"readOnly"==ka?(V=document.createElement("input"),V.setAttribute("readonly",""),V.value=x,V.style.borderWidth="0px","id"==Da?(V.style.width="190px",V.style.position="relative",V.style.right="6px",V.style.float="right",V.style.background="none",
V.style.textAlign="right",oa.firstChild.setAttribute("colspan","2"),V.setAttribute("title",x),oa.firstChild.appendChild(V)):(V.style.width="96px",xa.appendChild(V))):(xa.innerHTML=mxUtils.htmlEntities(decodeURIComponent(x)),mxEvent.addListener(xa,"click",mxUtils.bind(qa,function(){function ua(){var Na=Fa.value;Na=0==Na.length&&"string"!=ka&&"numbers"!=ka?0:Na;M.allowAuto&&(null!=Na.trim&&"auto"==Na.trim().toLowerCase()?(Na="auto",ka="string"):(Na=parseFloat(Na),Na=isNaN(Na)?0:Na));null!=M.min&&Na<
-M.min?Na=M.min:null!=M.max&&Na>M.max&&(Na=M.max);var Wa=null;try{Wa="numbers"==ka?Na.match(/\d+/g).map(Number).join(" "):encodeURIComponent(("int"==ka?parseInt(Na):Na)+"")}catch(Xa){}O(Da,Wa,M,null,Fa)}var Fa=document.createElement("input");T(xa,Fa,!0);Fa.value=decodeURIComponent(x);Fa.className="gePropEditor";"int"!=ka&&"float"!=ka||M.allowAuto||(Fa.type="number",Fa.step="int"==ka?"1":"any",null!=M.min&&(Fa.min=parseFloat(M.min)),null!=M.max&&(Fa.max=parseFloat(M.max)));k.appendChild(Fa);mxEvent.addListener(Fa,
+M.min?Na=M.min:null!=M.max&&Na>M.max&&(Na=M.max);var Wa=null;try{Wa="numbers"==ka?Na.match(/\d+/g).map(Number).join(" "):encodeURIComponent(("int"==ka?parseInt(Na):Na)+"")}catch(Xa){}O(Da,Wa,M,null,Fa)}var Fa=document.createElement("input");S(xa,Fa,!0);Fa.value=decodeURIComponent(x);Fa.className="gePropEditor";"int"!=ka&&"float"!=ka||M.allowAuto||(Fa.type="number",Fa.step="int"==ka?"1":"any",null!=M.min&&(Fa.min=parseFloat(M.min)),null!=M.max&&(Fa.max=parseFloat(M.max)));k.appendChild(Fa);mxEvent.addListener(Fa,
"keypress",function(Na){13==Na.keyCode&&ua()});Fa.focus();mxEvent.addListener(Fa,"blur",function(){ua()})})));M.isDeletable&&(V=mxUtils.button("-",mxUtils.bind(qa,function(ua){O(Da,"",M,M.index);mxEvent.consume(ua)})),V.style.height="16px",V.style.width="25px",V.style.float="right",V.className="geColorBtn",xa.appendChild(V));oa.appendChild(xa);return oa}var qa=this,wa=this.editorUi.editor.graph,Ba=[];k.style.position="relative";k.style.padding="0";var za=document.createElement("table");za.className=
"geProperties";za.style.whiteSpace="nowrap";za.style.width="100%";var Ea=document.createElement("tr");Ea.className="gePropHeader";var ra=document.createElement("th");ra.className="gePropHeaderCell";ra.style.paddingLeft="16px";ra.style.backgroundRepeat="no-repeat";ra.style.backgroundPosition="-2px 50%";ra.style.backgroundSize="20px";mxUtils.write(ra,mxResources.get("property"));Ea.style.cursor="pointer";var ya=function(){var Da=za.querySelectorAll(".gePropNonHeaderRow");if(qa.editorUi.propertiesCollapsed){ra.style.backgroundImage=
"url('"+Editor.arrowRightImage+"')";var x="none";for(var M=k.childNodes.length-1;0<=M;M--)try{var Q=k.childNodes[M],V=Q.nodeName.toUpperCase();"INPUT"!=V&&"SELECT"!=V||k.removeChild(Q)}catch(ia){}}else ra.style.backgroundImage="url('"+Editor.arrowDownImage+"')",x="";for(M=0;M<Da.length;M++)Da[M].style.display=x};mxEvent.addListener(Ea,"click",function(){qa.editorUi.propertiesCollapsed=!qa.editorUi.propertiesCollapsed;ya()});Ea.appendChild(ra);var Ca=document.createElement("th");Ca.className="gePropHeaderCell";
Ca.style.paddingLeft="4px";mxUtils.write(Ca,mxResources.get("value"));Ea.appendChild(Ca);za.appendChild(Ea);var Ma=Ca=!1;Ea=null;1==I.vertices.length&&0==I.edges.length?Ea=I.vertices[0].id:0==I.vertices.length&&1==I.edges.length&&(Ea=I.edges[0].id);null==Ea||U||za.appendChild(sa("id",mxUtils.htmlEntities(Ea),{dispName:"id",type:"readOnly"},!0,!1));for(var Ha in A)if(U=A[Ha],"function"!=typeof U.isVisible||U.isVisible(I,this)){var Aa=null!=U.getValue?U.getValue():null!=I.style[Ha]?mxUtils.htmlEntities(I.style[Ha]+
""):null!=U.getDefaultValue?U.getDefaultValue(I,this):U.defVal;if("separator"==U.type)Ma=!Ma;else{if("staticArr"==U.type)U.size=parseInt(I.style[U.sizeProperty]||A[U.sizeProperty].defVal)||0;else if(null!=U.dependentProps){var Ra=U.dependentProps,Za=[],La=[];for(Ea=0;Ea<Ra.length;Ea++){var $a=I.style[Ra[Ea]];La.push(A[Ra[Ea]].subDefVal);Za.push(null!=$a?$a.split(","):[])}U.dependentPropsDefVal=La;U.dependentPropsVals=Za}za.appendChild(sa(Ha,Aa,U,Ca,Ma));Ca=!Ca}}for(Ea=0;Ea<Ba.length;Ea++)for(U=Ba[Ea],
A=U.parentRow,I=0;I<U.values.length;I++)Ha=sa(U.name,U.values[I],{type:U.type,parentRow:U.parentRow,isDeletable:U.isDeletable,index:I,defVal:U.defVal,countProperty:U.countProperty,size:U.size},0==I%2,U.flipBkg),A.parentNode.insertBefore(Ha,A.nextSibling),A=Ha;k.appendChild(za);ya();return k};StyleFormatPanel.prototype.addStyles=function(k){if(null!=this.defaultColorSchemes){var A=function(Ba){mxEvent.addListener(Ba,"mouseenter",function(){Ba.style.opacity="1"});mxEvent.addListener(Ba,"mouseleave",
-function(){Ba.style.opacity="0.5"})},I=this.editorUi,U=I.editor.graph,O=document.createElement("div");O.style.whiteSpace="nowrap";O.style.paddingLeft="24px";O.style.paddingRight="20px";k.style.paddingLeft="16px";k.style.paddingBottom="6px";k.style.position="relative";k.appendChild(O);var T=document.createElement("div");T.style.whiteSpace="nowrap";T.style.position="relative";T.style.textAlign="center";T.style.width="210px";for(var X=[],aa=0;aa<this.defaultColorSchemes.length;aa++){var ja=document.createElement("div");
-ja.style.display="inline-block";ja.style.width="6px";ja.style.height="6px";ja.style.marginLeft="4px";ja.style.marginRight="3px";ja.style.borderRadius="3px";ja.style.cursor="pointer";ja.style.background="transparent";ja.style.border="1px solid #b5b6b7";mxUtils.bind(this,function(Ba){mxEvent.addListener(ja,"click",mxUtils.bind(this,function(){pa(Ba)}))})(aa);X.push(ja);T.appendChild(ja)}var pa=mxUtils.bind(this,function(Ba){null!=X[Ba]&&(null!=this.format.currentScheme&&null!=X[this.format.currentScheme]&&
+function(){Ba.style.opacity="0.5"})},I=this.editorUi,U=I.editor.graph,O=document.createElement("div");O.style.whiteSpace="nowrap";O.style.paddingLeft="24px";O.style.paddingRight="20px";k.style.paddingLeft="16px";k.style.paddingBottom="6px";k.style.position="relative";k.appendChild(O);var S=document.createElement("div");S.style.whiteSpace="nowrap";S.style.position="relative";S.style.textAlign="center";S.style.width="210px";for(var X=[],aa=0;aa<this.defaultColorSchemes.length;aa++){var ja=document.createElement("div");
+ja.style.display="inline-block";ja.style.width="6px";ja.style.height="6px";ja.style.marginLeft="4px";ja.style.marginRight="3px";ja.style.borderRadius="3px";ja.style.cursor="pointer";ja.style.background="transparent";ja.style.border="1px solid #b5b6b7";mxUtils.bind(this,function(Ba){mxEvent.addListener(ja,"click",mxUtils.bind(this,function(){pa(Ba)}))})(aa);X.push(ja);S.appendChild(ja)}var pa=mxUtils.bind(this,function(Ba){null!=X[Ba]&&(null!=this.format.currentScheme&&null!=X[this.format.currentScheme]&&
(X[this.format.currentScheme].style.background="transparent"),this.format.currentScheme=Ba,sa(this.defaultColorSchemes[this.format.currentScheme]),X[this.format.currentScheme].style.background="#84d7ff")}),sa=mxUtils.bind(this,function(Ba){var za=mxUtils.clone(U.defaultVertexStyle);za[mxConstants.STYLE_STROKECOLOR]=null!=za[mxConstants.STYLE_STROKECOLOR]?za[mxConstants.STYLE_STROKECOLOR]:"default";za[mxConstants.STYLE_FILLCOLOR]=null!=za[mxConstants.STYLE_FILLCOLOR]?za[mxConstants.STYLE_FILLCOLOR]:
"default";za[mxConstants.STYLE_FONTCOLOR]=null!=za[mxConstants.STYLE_FONTCOLOR]?za[mxConstants.STYLE_FONTCOLOR]:"default";U.replaceDefaultColors(new mxCell,za);var Ea=mxUtils.bind(this,function(ya){var Ca=mxUtils.button("",mxUtils.bind(this,function(Aa){U.getModel().beginUpdate();try{for(var Ra=I.getSelectionState().cells,Za=0;Za<Ra.length;Za++){var La=U.getModel().getStyle(Ra[Za]);null!=ya?(mxEvent.isShiftDown(Aa)||(La=""==ya.fill||null==ya.fill?mxUtils.setStyle(La,mxConstants.STYLE_FILLCOLOR,null):
mxUtils.setStyle(La,mxConstants.STYLE_FILLCOLOR,ya.fill),La=""==ya.gradient||null==ya.gradient?mxUtils.setStyle(La,mxConstants.STYLE_GRADIENTCOLOR,null):mxUtils.setStyle(La,mxConstants.STYLE_GRADIENTCOLOR,ya.gradient),mxEvent.isControlDown(Aa)||mxClient.IS_MAC&&mxEvent.isMetaDown(Aa)||!U.getModel().isVertex(Ra[Za])||(La=""==ya.font||null==ya.font?mxUtils.setStyle(La,mxConstants.STYLE_FONTCOLOR,null):mxUtils.setStyle(La,mxConstants.STYLE_FONTCOLOR,ya.font))),mxEvent.isAltDown(Aa)||(La=""==ya.stroke||
@@ -3387,21 +3387,21 @@ Ma+" "+Ha.cssText,Ca.style.borderRightColor=Ha.light,Ca.style.borderBottomColor=
mxUtils.getLightDarkColor(ya.fill).light+") 0px, light-dark(transparent, "+mxUtils.getLightDarkColor(ya.gradient).light+") 100%)",Ma.style.clipPath="polygon(0 100%, 100% 0, 100% 100%)",Ma.style.backgroundColor="transparent",O.appendChild(Ma),Ma.style.marginLeft="-42px",mxEvent.addListener(Ma,"click",function(){Ca.click()}))});O.innerText="";if(null!=Ba)for(var ra=0;ra<Ba.length;ra++)0<ra&&0==mxUtils.mod(ra,4)&&mxUtils.br(O),Ea(Ba[ra])});null==this.format.currentScheme?pa(Math.min(X.length-1,Editor.isDarkMode()?
1:"1"==urlParams.sketch?5:0)):pa(this.format.currentScheme);aa=10>=this.defaultColorSchemes.length?28:8;var qa=document.createElement("div");qa.style.cssText="position:absolute;left:10px;top:8px;bottom:"+aa+"px;width:20px;margin:4px;opacity:0.5;background-repeat:no-repeat;background-position:center center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAIVBMVEUAAAB2dnZ4eHh3d3d1dXVxcXF2dnZ2dnZ2dnZxcXF2dnYmb3w1AAAACnRSTlMAfCTkhhvb7cQSPH2JPgAAADRJREFUCNdjwACMAmBKaiGYs2oJmLPKAZ3DabU8AMRTXpUKopislqFyVzCAuUZgikkBZjoAcMYLnp53P/UAAAAASUVORK5CYII=);";
mxEvent.addListener(qa,"click",mxUtils.bind(this,function(){pa(mxUtils.mod(this.format.currentScheme-1,this.defaultColorSchemes.length))}));var wa=document.createElement("div");wa.style.cssText="position:absolute;left:202px;top:8px;bottom:"+aa+"px;width:20px;margin:4px;opacity:0.5;background-repeat:no-repeat;background-position:center center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAIVBMVEUAAAB2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnYBuwCcAAAACnRSTlMAfCTkhhvb7cQSPH2JPgAAADZJREFUCNdjQAOMAmBKaiGY8loF5rKswsZlrVo8AUiFrTICcbIWK8A5DF1gDoMymMPApIAwHwCS0Qx/U7qCBQAAAABJRU5ErkJggg==);";
-1<this.defaultColorSchemes.length&&(k.appendChild(qa),k.appendChild(wa));mxEvent.addListener(wa,"click",mxUtils.bind(this,function(){pa(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));A(qa);A(wa);sa(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&k.appendChild(T)}return k}}Graph.fontMapping={"https://fonts.googleapis.com/css?family=Architects+Daughter":'@font-face { font-family: "Architects Daughter"; src: url('+STYLE_PATH+'/fonts/ArchitectsDaughter-Regular.ttf) format("truetype"); }'};
+1<this.defaultColorSchemes.length&&(k.appendChild(qa),k.appendChild(wa));mxEvent.addListener(wa,"click",mxUtils.bind(this,function(){pa(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));A(qa);A(wa);sa(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&k.appendChild(S)}return k}}Graph.fontMapping={"https://fonts.googleapis.com/css?family=Architects+Daughter":'@font-face { font-family: "Architects Daughter"; src: url('+STYLE_PATH+'/fonts/ArchitectsDaughter-Regular.ttf) format("truetype"); }'};
Graph.customFontElements={};Graph.isGoogleFontUrl=function(k){return k.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS||k.substring(0,Editor.GOOGLE_FONTS_CSS2.length)==Editor.GOOGLE_FONTS_CSS2};Graph.isCssFontUrl=function(k){return Graph.isGoogleFontUrl(k)};Graph.rewriteGoogleFontUrl=function(k){null!=k&&k.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS&&(k=Editor.GOOGLE_FONTS_CSS2+k.substring(Editor.GOOGLE_FONTS.length)+":wght@400;500");return k};Graph.createFontElement=
function(k,A){var I=Graph.fontMapping[A];null==I&&Graph.isCssFontUrl(A)?(k=document.createElement("link"),k.setAttribute("rel","stylesheet"),k.setAttribute("type","text/css"),k.setAttribute("charset","UTF-8"),k.setAttribute("href",Graph.rewriteGoogleFontUrl(A))):(null==I&&(I='@font-face {\nfont-family: "'+k+'";\nsrc: url("'+A+'");\n}'),k=document.createElement("style"),mxUtils.write(k,I));return k};Graph.addRecentCustomFont=function(k,A){};Graph.addFont=function(k,A,I){if(null!=k&&0<k.length&&null!=
A&&0<A.length){var U=k.toLowerCase();if("helvetica"!=U&&"arial"!=k&&"sans-serif"!=U){var O=Graph.customFontElements[U];null!=O&&O.url!=A&&(O.elt.parentNode.removeChild(O.elt),O=null);null==O?(O=A,"http:"==A.substring(0,5)&&(O=PROXY_URL+"?url="+encodeURIComponent(A)),O={name:k,url:A,elt:Graph.createFontElement(k,O)},Graph.customFontElements[U]=O,A=document.getElementsByTagName("head")[0],null!=I&&("link"==O.elt.nodeName.toLowerCase()?(O.elt.onload=I,O.elt.onerror=I):I()),null!=A&&A.appendChild(O.elt)):
null!=I&&I()}else null!=I&&I()}else null!=I&&I();return k};Graph.getFontUrl=function(k,A){k=Graph.customFontElements[k.toLowerCase()];null!=k&&(A=k.url);return A};Graph.processFontAttributes=function(k){k=k.getElementsByTagName("*");for(var A=0;A<k.length;A++){var I=k[A].getAttribute("data-font-src");if(null!=I){var U="FONT"==k[A].nodeName?k[A].getAttribute("face"):k[A].style.fontFamily;null!=U&&Graph.addFont(U,I)}}};Graph.processFontStyle=function(k){if(null!=k){var A=mxUtils.getValue(k,"fontSource",
null);if(null!=A){var I=mxUtils.getValue(k,mxConstants.STYLE_FONTFAMILY,null);if(null!=I)try{Graph.addFont(I,decodeURIComponent(A))}catch(U){}}}return k};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible="0"!=urlParams.pv;Graph.prototype.shadowId="drawio-drop-shadow";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur=
"1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var l=Graph.prototype.init;Graph.prototype.init=function(){function k(O){A=O}l.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var A=null;mxEvent.addListener(this.container,"mouseenter",k);mxEvent.addListener(this.container,"mousemove",k);mxEvent.addListener(this.container,"mouseleave",function(O){A=null});this.isMouseInsertPoint=function(){return null!=
-A};var I=this.getInsertPoint;this.getInsertPoint=function(){return null!=A?this.getPointForEvent(A):I.apply(this,arguments)};var U=this.layoutManager.getLayout;this.layoutManager.getLayout=function(O){var T=this.graph.getCellStyle(O);if(null!=T&&"rack"==T.childLayout){var X=new mxStackLayout(this.graph,!1);X.gridSize=null!=T.rackUnitSize?parseFloat(T.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;X.marginLeft=T.marginLeft||0;X.marginRight=T.marginRight||0;X.marginTop=
-T.marginTop||0;X.marginBottom=T.marginBottom||0;X.allowGaps=T.allowGaps||0;X.horizontal="1"==mxUtils.getValue(T,"horizontalRack","0");X.resizeParent=!1;X.fill=!0;return X}return U.apply(this,arguments)};this.updateGlobalUrlVariables()};var t=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(k,A){return Graph.processFontStyle(t.apply(this,arguments))};var z=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(k,A,I,U,O,T,X,aa,ja,
-pa,sa,qa){z.apply(this,arguments);Graph.processFontAttributes(qa)};var C=mxText.prototype.redraw;mxText.prototype.redraw=function(){C.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(k,A,I,U){function O(){for(var Ea=aa.getSelectionCells(),ra=[],ya=0;ya<Ea.length;ya++)aa.isCellVisible(Ea[ya])&&ra.push(Ea[ya]);aa.setSelectionCells(ra)}function T(Ea){aa.setHiddenTags(Ea?[]:ja.slice());O();aa.refresh()}
+A};var I=this.getInsertPoint;this.getInsertPoint=function(){return null!=A?this.getPointForEvent(A):I.apply(this,arguments)};var U=this.layoutManager.getLayout;this.layoutManager.getLayout=function(O){var S=this.graph.getCellStyle(O);if(null!=S&&"rack"==S.childLayout){var X=new mxStackLayout(this.graph,!1);X.gridSize=null!=S.rackUnitSize?parseFloat(S.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;X.marginLeft=S.marginLeft||0;X.marginRight=S.marginRight||0;X.marginTop=
+S.marginTop||0;X.marginBottom=S.marginBottom||0;X.allowGaps=S.allowGaps||0;X.horizontal="1"==mxUtils.getValue(S,"horizontalRack","0");X.resizeParent=!1;X.fill=!0;return X}return U.apply(this,arguments)};this.updateGlobalUrlVariables()};var t=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(k,A){return Graph.processFontStyle(t.apply(this,arguments))};var z=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(k,A,I,U,O,S,X,aa,ja,
+pa,sa,qa){z.apply(this,arguments);Graph.processFontAttributes(qa)};var C=mxText.prototype.redraw;mxText.prototype.redraw=function(){C.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(k,A,I,U){function O(){for(var Ea=aa.getSelectionCells(),ra=[],ya=0;ya<Ea.length;ya++)aa.isCellVisible(Ea[ya])&&ra.push(Ea[ya]);aa.setSelectionCells(ra)}function S(Ea){aa.setHiddenTags(Ea?[]:ja.slice());O();aa.refresh()}
function X(Ea,ra){sa.innerText="";if(0<Ea.length){var ya=document.createElement("table");ya.setAttribute("cellpadding","2");ya.style.boxSizing="border-box";ya.style.tableLayout="fixed";ya.style.width="100%";var Ca=document.createElement("tbody");if(null!=Ea&&0<Ea.length)for(var Ma=0;Ma<Ea.length;Ma++)(function(Ha){function Aa(){var x=aa.getCellsForTags([Ha],null,null,!0);aa.isEnabled()?aa.setSelectionCells(x):aa.highlightCells(x,null,null,70)}var Ra=0>mxUtils.indexOf(aa.hiddenTags,Ha),Za=document.createElement("tr"),
La=document.createElement("td");La.style.align="center";La.style.width="16px";var $a=document.createElement("img");$a.setAttribute("src",Ra?Editor.visibleImage:Editor.hiddenImage);$a.setAttribute("title",mxResources.get(Ra?"hideIt":"show",[Ha]));mxUtils.setOpacity($a,Ra?75:25);$a.className="geAdaptiveAsset";$a.style.verticalAlign="middle";$a.style.cursor="pointer";$a.style.width="16px";if(A||Editor.isDarkMode())$a.style.filter="invert(100%)";La.appendChild($a);mxEvent.addListener($a,"click",function(x){mxEvent.isShiftDown(x)?
-T(0<=mxUtils.indexOf(aa.hiddenTags,Ha)):(aa.toggleHiddenTag(Ha),O(),aa.refresh());mxEvent.consume(x)});Za.appendChild(La);La=document.createElement("td");La.style.align="center";La.style.width="16px";$a=document.createElement("img");$a.setAttribute("src",Editor.selectImage);$a.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity($a,Ra?75:25);$a.className="geAdaptiveAsset";$a.style.verticalAlign="middle";$a.style.cursor="pointer";$a.style.width="16px";if(A||Editor.isDarkMode())$a.style.filter=
-"invert(100%)";mxEvent.addListener($a,"click",function(x){T(!0);Aa();mxEvent.consume(x)});La.appendChild($a);Za.appendChild(La);La=document.createElement("td");La.style.overflow="hidden";La.style.whiteSpace="nowrap";La.style.textOverflow="ellipsis";La.style.verticalAlign="middle";La.style.cursor="pointer";La.setAttribute("title",Ha);a=document.createElement("a");mxUtils.write(a,Ha);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,Ra?100:40);La.appendChild(a);mxEvent.addListener(La,
-"click",function(x){if(mxEvent.isShiftDown(x))T(!0),Aa();else if(Ra&&0<aa.hiddenTags.length)T(!0);else{var M=ja.slice(),Q=mxUtils.indexOf(M,Ha);M.splice(Q,1);aa.setHiddenTags(M);O();aa.refresh()}mxEvent.consume(x)});Za.appendChild(La);if(aa.isEnabled()){La=document.createElement("td");La.style.verticalAlign="middle";La.style.textAlign="center";La.style.width="18px";if(null==ra){La.style.align="center";La.style.width="16px";$a=document.createElement("img");$a.setAttribute("src",Editor.trashImage);
+S(0<=mxUtils.indexOf(aa.hiddenTags,Ha)):(aa.toggleHiddenTag(Ha),O(),aa.refresh());mxEvent.consume(x)});Za.appendChild(La);La=document.createElement("td");La.style.align="center";La.style.width="16px";$a=document.createElement("img");$a.setAttribute("src",Editor.selectImage);$a.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity($a,Ra?75:25);$a.className="geAdaptiveAsset";$a.style.verticalAlign="middle";$a.style.cursor="pointer";$a.style.width="16px";if(A||Editor.isDarkMode())$a.style.filter=
+"invert(100%)";mxEvent.addListener($a,"click",function(x){S(!0);Aa();mxEvent.consume(x)});La.appendChild($a);Za.appendChild(La);La=document.createElement("td");La.style.overflow="hidden";La.style.whiteSpace="nowrap";La.style.textOverflow="ellipsis";La.style.verticalAlign="middle";La.style.cursor="pointer";La.setAttribute("title",Ha);a=document.createElement("a");mxUtils.write(a,Ha);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,Ra?100:40);La.appendChild(a);mxEvent.addListener(La,
+"click",function(x){if(mxEvent.isShiftDown(x))S(!0),Aa();else if(Ra&&0<aa.hiddenTags.length)S(!0);else{var M=ja.slice(),Q=mxUtils.indexOf(M,Ha);M.splice(Q,1);aa.setHiddenTags(M);O();aa.refresh()}mxEvent.consume(x)});Za.appendChild(La);if(aa.isEnabled()){La=document.createElement("td");La.style.verticalAlign="middle";La.style.textAlign="center";La.style.width="18px";if(null==ra){La.style.align="center";La.style.width="16px";$a=document.createElement("img");$a.setAttribute("src",Editor.trashImage);
$a.setAttribute("title",mxResources.get("removeIt",[Ha]));mxUtils.setOpacity($a,Ra?75:25);$a.className="geAdaptiveAsset";$a.style.verticalAlign="middle";$a.style.cursor="pointer";$a.style.width="16px";if(A||Editor.isDarkMode())$a.style.filter="invert(100%)";mxEvent.addListener($a,"click",function(x){var M=mxUtils.indexOf(ja,Ha);0<=M&&ja.splice(M,1);aa.removeTagsForCells(aa.model.getDescendants(aa.model.getRoot()),[Ha]);aa.refresh();mxEvent.consume(x)});La.appendChild($a)}else{var Da=document.createElement("input");
Da.setAttribute("type","checkbox");Da.style.margin="0px";Da.defaultChecked=null!=ra&&0<=mxUtils.indexOf(ra,Ha);Da.checked=Da.defaultChecked;Da.style.background="transparent";Da.setAttribute("title",mxResources.get(Da.defaultChecked?"removeIt":"add",[Ha]));mxEvent.addListener(Da,"change",function(x){Da.checked?aa.addTagsForCells(aa.getSelectionCells(),[Ha]):aa.removeTagsForCells(aa.getSelectionCells(),[Ha]);mxEvent.consume(x)});La.appendChild(Da)}Za.appendChild(La)}Ca.appendChild(Za)})(Ea[Ma]);ya.appendChild(Ca);
sa.appendChild(ya)}}var aa=this,ja=aa.hiddenTags.slice(),pa=document.createElement("div");pa.style.userSelect="none";pa.style.overflow="hidden";pa.style.padding="10px";pa.style.height="100%";var sa=document.createElement("div");sa.style.position="absolute";sa.style.boxSizing="border-box";sa.style.userSelect="none";sa.style.overflow="auto";sa.style.padding="3px";sa.style.left="0px";sa.style.right="0px";sa.style.top="0px";sa.style.bottom="0px";pa.appendChild(sa);aa.addListener(mxEvent.ROOT,function(){ja=
@@ -3409,9 +3409,9 @@ aa.hiddenTags.slice()});var qa=mxUtils.bind(this,function(Ea,ra){if(k()){Ea=aa.g
"flex";wa.style.bottom="0px";wa.style.left="0px";wa.style.right="0px";wa.style.height="26px";wa.style.overflow="hidden";wa.style.padding="3px 4px 4px 4px";wa.style.borderWidth="1px 0px 0px 0px";wa.style.borderStyle="solid";wa.style.whiteSpace="nowrap";if(aa.isEnabled()){sa.style.bottom="34px";var Ba=document.createElement("a");Ba.className="geToolbarButton geAdaptiveAsset geToggleItem";Ba.style.width="16px";Ba.style.height="18px";Ba.style.backgroundPosition="center center";Ba.style.backgroundRepeat=
"no-repeat";Ba.style.backgroundSize="20px";Ba.style.margin="0 2px";Ba.style.display="inline-block";Ba.style.cursor="pointer";var za=Ba.cloneNode(!1);za.style.backgroundImage="url("+Editor.visibleImage+")";za.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(za,"click",function(Ea){aa.setHiddenTags([]);mxEvent.isShiftDown(Ea)||(ja=aa.hiddenTags.slice());O();aa.refresh();mxEvent.consume(Ea)});wa.appendChild(za);null!=I&&(Ba=Ba.cloneNode(!1),Ba.style.backgroundImage="url("+Editor.plusImage+
")",Ba.setAttribute("title",mxResources.get("add")),mxEvent.addListener(Ba,"click",function(Ea){I(ja,function(ra){ja=ra;qa()});mxEvent.consume(Ea)}),wa.appendChild(Ba));pa.appendChild(wa)}null!=U&&wa.appendChild(U);return{div:pa,refresh:qa}};Graph.prototype.getCustomFonts=function(){var k=this.extFonts;k=null!=k?k.slice():[];for(var A in Graph.customFontElements){var I=Graph.customFontElements[A];k.push({name:I.name,url:I.url})}return k};Graph.prototype.setFont=function(k,A){Graph.addFont(k,A);var I=
-Editor.guid();document.execCommand("fontname",!1,I);for(var U=this.cellEditor.textarea.getElementsByTagName("font"),O=!1,T=0;T<U.length;T++)U[T].getAttribute("face")==I&&(O=!0,U[T].setAttribute("face",k),null!=A?U[T].setAttribute("data-font-src",A):U[T].removeAttribute("data-font-src"));O||document.execCommand("fontname",!1,k)};var F=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return F.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=
+Editor.guid();document.execCommand("fontname",!1,I);for(var U=this.cellEditor.textarea.getElementsByTagName("font"),O=!1,S=0;S<U.length;S++)U[S].getAttribute("face")==I&&(O=!0,U[S].setAttribute("face",k),null!=A?U[S].setAttribute("data-font-src",A):U[S].removeAttribute("data-font-src"));O||document.execCommand("fontname",!1,k)};var F=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return F.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=
function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var k=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=k)for(var A in k)this.globalVars[A]=k[A]}catch(I){null!=window.console&&console.log("Error in vars URL parameter: "+I)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var N=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=
-function(k){var A=N.apply(this,arguments);null==A&&null!=this.globalVars&&(A=this.globalVars[k]);return A};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var k=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(k.ownerDocument)).decode(k)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var K=Graph.prototype.getSvg;Graph.prototype.getSvg=function(k,A,I,U,O,T,X,aa,ja,pa,sa,qa,wa,Ba,za,Ea){var ra=K.apply(this,
+function(k){var A=N.apply(this,arguments);null==A&&null!=this.globalVars&&(A=this.globalVars[k]);return A};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var k=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(k.ownerDocument)).decode(k)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var K=Graph.prototype.getSvg;Graph.prototype.getSvg=function(k,A,I,U,O,S,X,aa,ja,pa,sa,qa,wa,Ba,za,Ea){var ra=K.apply(this,
arguments);if(null!=qa){var ya=ra.getAttribute("style");null==ya&&(ya="");qa="auto"==qa||"none"==this.getAdaptiveColors()?"none"==this.getAdaptiveColors()?"light":"light dark":qa;ra.setAttribute("style",ya+(" color-scheme: "+qa+";"))}var Ca=this.getCustomFonts();if(sa&&0<Ca.length){var Ma=ra.ownerDocument;ya=null!=Ma.createElementNS?Ma.createElementNS(mxConstants.NS_SVG,"style"):Ma.createElement("style");null!=Ma.setAttributeNS?ya.setAttributeNS("type","text/css"):ya.setAttribute("type","text/css");
for(var Ha="",Aa="",Ra=0;Ra<Ca.length;Ra++){var Za=Ca[Ra].name,La=Ca[Ra].url;Graph.isCssFontUrl(La)?Ha+="@import url("+Graph.rewriteGoogleFontUrl(La)+");\n":Aa+='@font-face {\nfont-family: "'+Za+'";\nsrc: url("'+La+'");\n}\n'}ya.appendChild(Ma.createTextNode(Ha+Aa));ra.getElementsByTagName("defs")[0].appendChild(ya)}Editor.replaceSvgDataUris&&null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&EditorUi.embedSvgImages(ra);this.mathEnabled&&(document.body.appendChild(ra),Editor.MathJaxRender(ra),
ra.parentNode.removeChild(ra),ya=ra.ownerDocument.getElementById("MJX-SVG-styles"),null!=ya&&ra.getElementsByTagName("defs")[0].appendChild(ya.cloneNode(!0)));return ra};var J=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(k){J.apply(this,arguments);null!=k.secondLabel&&(k.secondLabel.destroy(),k.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(k){return[k.shape,k.text,k.secondLabel,k.control]};var da=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=
@@ -3419,28 +3419,28 @@ function(){da.apply(this,arguments);this.enumerationState=0};var ea=mxGraphView.
"</div>"};mxGraphView.prototype.redrawEnumerationState=function(k){var A="1"==mxUtils.getValue(k.style,"enumerate",0);A&&null==k.secondLabel?(k.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),k.secondLabel.size=12,k.secondLabel.state=k,k.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(k,k.secondLabel)):A||null==k.secondLabel||(k.secondLabel.destroy(),k.secondLabel=null);A=k.secondLabel;if(null!=A){var I=k.view.scale,
U=this.createEnumerationValue(k);k=this.graph.model.isVertex(k.cell)?new mxRectangle(k.x+k.width-4*I,k.y+4*I,0,0):mxRectangle.fromPoint(k.view.getPoint(k));A.bounds.equals(k)&&A.value==U&&A.scale==I||(A.bounds=k,A.value=U,A.scale=I,A.redraw())}};var ca=Graph.prototype.refresh;Graph.prototype.refresh=function(){this.refreshBackgroundImage();ca.apply(this,arguments)};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),
this.view.validateBackgroundImage())};var W=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){W.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=function(k,A){"data:action/json,"==k.substring(0,17)&&(k=JSON.parse(k.substring(17)),null!=k.actions&&this.executeCustomActions(k.actions,null,A))};Graph.prototype.executeCustomActions=function(k,A,I){if(this.executingCustomActions)this.stoppingCustomActions=!0,null!=this.pendingWaitThread&&
-window.clearTimeout(this.pendingWaitThread),null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions"));else{this.executingCustomActions=!0;var U=!1,O=0,T=0,X=mxUtils.bind(this,function(){U||(U=!0,this.model.beginUpdate())}),aa=mxUtils.bind(this,function(){U&&(U=!1,this.model.endUpdate())}),ja=mxUtils.bind(this,function(){0<O&&O--;0==O&&pa()}),pa=mxUtils.bind(this,function(){if(T<k.length){var sa=this.stoppingCustomActions,qa=
-k[T++],wa=[];if(null!=qa.open)if(aa(),this.isCustomLink(qa.open)){if(!this.customLinkClicked(qa.open,I))return}else this.openLink(qa.open);null==qa.wait||sa||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;ja()}),O++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=qa.wait?parseInt(qa.wait):1E3),aa());null!=qa.opacity&&null!=qa.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(qa.opacity,
+window.clearTimeout(this.pendingWaitThread),null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions"));else{this.executingCustomActions=!0;var U=!1,O=0,S=0,X=mxUtils.bind(this,function(){U||(U=!0,this.model.beginUpdate())}),aa=mxUtils.bind(this,function(){U&&(U=!1,this.model.endUpdate())}),ja=mxUtils.bind(this,function(){0<O&&O--;0==O&&pa()}),pa=mxUtils.bind(this,function(){if(S<k.length){var sa=this.stoppingCustomActions,qa=
+k[S++],wa=[];if(null!=qa.open)if(aa(),this.isCustomLink(qa.open)){if(!this.customLinkClicked(qa.open,I))return}else this.openLink(qa.open);null==qa.wait||sa||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;ja()}),O++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=qa.wait?parseInt(qa.wait):1E3),aa());null!=qa.opacity&&null!=qa.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(qa.opacity,
!0)),qa.opacity.value);null!=qa.fadeIn&&(O++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(qa.fadeIn,!0)),0,1,ja,sa?0:qa.fadeIn.delay));null!=qa.fadeOut&&(O++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(qa.fadeOut,!0)),1,0,ja,sa?0:qa.fadeOut.delay));null!=qa.wipeIn&&(wa=wa.concat(this.createWipeAnimations(this.getCellsForAction(qa.wipeIn,!0),!0)));null!=qa.wipeOut&&(wa=wa.concat(this.createWipeAnimations(this.getCellsForAction(qa.wipeOut,!0),!1)));null!=qa.toggle&&
(X(),this.toggleCells(this.getCellsForAction(qa.toggle,!0)));if(null!=qa.show){X();var Ba=this.getCellsForAction(qa.show,!0);Graph.setOpacityForNodes(this.getNodesForCells(Ba),1);this.setCellsVisible(Ba,!0)}null!=qa.hide&&(X(),Ba=this.getCellsForAction(qa.hide,!0),Graph.setOpacityForNodes(this.getNodesForCells(Ba),0),this.setCellsVisible(Ba,!1));null!=qa.toggleStyle&&null!=qa.toggleStyle.key&&(X(),this.toggleCellStyles(qa.toggleStyle.key,null!=qa.toggleStyle.defaultValue?qa.toggleStyle.defaultValue:
"0",this.getCellsForAction(qa.toggleStyle,!0)));null!=qa.style&&null!=qa.style.key&&(X(),this.setCellStyles(qa.style.key,qa.style.value,this.getCellsForAction(qa.style,!0)));Ba=[];null!=qa.select&&this.isEnabled()&&(Ba=this.getCellsForAction(qa.select),this.setSelectionCells(Ba));null!=qa.highlight&&(Ba=this.getCellsForAction(qa.highlight),this.highlightCells(Ba,qa.highlight.color,qa.highlight.duration,qa.highlight.opacity));null!=qa.scroll&&(Ba=this.getCellsForAction(qa.scroll));null!=qa.viewbox&&
this.fitWindow(qa.viewbox,qa.viewbox.border);0<Ba.length&&this.scrollCellToVisible(Ba[0]);null!=I&&null!=qa.explore&&Graph.exploreFromCell(this,I,qa.explore);if(null!=qa.tags){if(null!=qa.tags.toggle){var za=qa.tags.toggle;0==za.length&&(za=this.getAllTags());for(Ba=0;Ba<za.length;Ba++)this.toggleHiddenTag(za[Ba])}za=null;null!=qa.tags.hidden&&(null==za&&(za=[]),za=za.concat(qa.tags.hidden));if(null!=qa.tags.visible){null==za&&(za=[]);var Ea=this.getAllTags();for(Ba=0;Ba<Ea.length;Ba++)0>mxUtils.indexOf(qa.tags.visible,
Ea[Ba])&&0>mxUtils.indexOf(za,Ea[Ba])&&za.push(Ea[Ba])}null!=za&&this.setHiddenTags(za);this.refresh()}0<wa.length&&(O++,this.executeAnimations(wa,ja,sa?1:qa.steps,sa?0:qa.delay));0==O?pa():aa()}else this.stoppingCustomActions=this.executingCustomActions=!1,aa(),null!=A&&A()});pa()}};Graph.prototype.doUpdateCustomLinksForCell=function(k,A){var I=this.getLinkForCell(A);null!=I&&"data:action/json,"==I.substring(0,17)&&this.setLinkForCell(A,this.updateCustomLink(k,I));if(this.isHtmlLabel(A)){var U=document.createElement("div");
-U.innerHTML=Graph.sanitizeHtml(this.getLabel(A));for(var O=U.getElementsByTagName("a"),T=!1,X=0;X<O.length;X++)I=O[X].getAttribute("href"),null!=I&&"data:action/json,"==I.substring(0,17)&&(O[X].setAttribute("href",this.updateCustomLink(k,I)),T=!0);T&&this.labelChanged(A,U.innerHTML)}};Graph.prototype.updateCustomLink=function(k,A){if("data:action/json,"==A.substring(0,17))try{var I=JSON.parse(A.substring(17));null!=I.actions&&(this.updateCustomLinkActions(k,I.actions),A="data:action/json,"+JSON.stringify(I))}catch(U){}return A};
-Graph.prototype.updateCustomLinkActions=function(k,A){for(var I=0;I<A.length;I++){var U=A[I],O;for(O in U)this.updateCustomLinkAction(k,U[O],"cells"),this.updateCustomLinkAction(k,U[O],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(k,A,I){if(null!=A&&null!=A[I]){for(var U=[],O=0;O<A[I].length;O++)if("*"==A[I][O])U.push(A[I][O]);else{var T=k[A[I][O]];null!=T?""!=T&&U.push(T):U.push(A[I][O])}A[I]=U}};Graph.prototype.getCellsForAction=function(k,A){A=this.getCellsById(k.cells).concat(this.getCellsForTags(k.tags,
-null,A));if(null!=k.excludeCells){for(var I=[],U=0;U<A.length;U++)0>k.excludeCells.indexOf(A[U].id)&&I.push(A[U]);A=I}return A};Graph.prototype.getCellsById=function(k){var A=[];if(null!=k)for(var I=0;I<k.length;I++)if("*"==k[I]){var U=this.model.getRoot();A=A.concat(this.model.filterDescendants(function(T){return T!=U},U))}else{var O=this.model.getCell(k[I]);null!=O&&A.push(O)}return A};var ba=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(k){return ba.apply(this,arguments)&&
+U.innerHTML=Graph.sanitizeHtml(this.getLabel(A));for(var O=U.getElementsByTagName("a"),S=!1,X=0;X<O.length;X++)I=O[X].getAttribute("href"),null!=I&&"data:action/json,"==I.substring(0,17)&&(O[X].setAttribute("href",this.updateCustomLink(k,I)),S=!0);S&&this.labelChanged(A,U.innerHTML)}};Graph.prototype.updateCustomLink=function(k,A){if("data:action/json,"==A.substring(0,17))try{var I=JSON.parse(A.substring(17));null!=I.actions&&(this.updateCustomLinkActions(k,I.actions),A="data:action/json,"+JSON.stringify(I))}catch(U){}return A};
+Graph.prototype.updateCustomLinkActions=function(k,A){for(var I=0;I<A.length;I++){var U=A[I],O;for(O in U)this.updateCustomLinkAction(k,U[O],"cells"),this.updateCustomLinkAction(k,U[O],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(k,A,I){if(null!=A&&null!=A[I]){for(var U=[],O=0;O<A[I].length;O++)if("*"==A[I][O])U.push(A[I][O]);else{var S=k[A[I][O]];null!=S?""!=S&&U.push(S):U.push(A[I][O])}A[I]=U}};Graph.prototype.getCellsForAction=function(k,A){A=this.getCellsById(k.cells).concat(this.getCellsForTags(k.tags,
+null,A));if(null!=k.excludeCells){for(var I=[],U=0;U<A.length;U++)0>k.excludeCells.indexOf(A[U].id)&&I.push(A[U]);A=I}return A};Graph.prototype.getCellsById=function(k){var A=[];if(null!=k)for(var I=0;I<k.length;I++)if("*"==k[I]){var U=this.model.getRoot();A=A.concat(this.model.filterDescendants(function(S){return S!=U},U))}else{var O=this.model.getCell(k[I]);null!=O&&A.push(O)}return A};var ba=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(k){return ba.apply(this,arguments)&&
!this.isAllTagsHidden(this.getTagsForCell(k))};Graph.prototype.setHiddenTags=function(k){this.hiddenTags=k;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(k){var A=mxUtils.indexOf(this.hiddenTags,k);0>A?this.hiddenTags.push(k):0<=A&&this.hiddenTags.splice(A,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(k){if(null==k||0==k.length||0==this.hiddenTags.length)return!1;k=k.split(" ");if(k.length>this.hiddenTags.length)return!1;
-for(var A=0;A<k.length;A++)if(0>mxUtils.indexOf(this.hiddenTags,k[A]))return!1;return!0};Graph.prototype.getCellsForTags=function(k,A,I,U){var O=[];if(null!=k){A=null!=A?A:this.model.getDescendants(this.model.getRoot());for(var T=0,X={},aa=0;aa<k.length;aa++)0<k[aa].length&&(X[k[aa]]=!0,T++);for(aa=0;aa<A.length;aa++)if(I&&this.model.getParent(A[aa])==this.model.root||this.model.isVertex(A[aa])||this.model.isEdge(A[aa])){var ja=this.getTagsForCell(A[aa]),pa=!1;if(0<ja.length&&(ja=ja.split(" "),ja.length>=
-k.length)){for(var sa=pa=0;sa<ja.length&&pa<T;sa++)null!=X[ja[sa]]&&pa++;pa=pa==T}pa&&(1!=U||this.isCellVisible(A[aa]))&&O.push(A[aa])}}return O};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(k){for(var A=null,I=[],U=0;U<k.length;U++){var O=this.getTagsForCell(k[U]);I=[];if(0<O.length){O=O.split(" ");for(var T={},X=0;X<O.length;X++)if(null==A||null!=A[O[X]])T[O[X]]=!0,I.push(O[X]);
-A=T}else return[]}return I};Graph.prototype.getTagsForCells=function(k){for(var A=[],I={},U=0;U<k.length;U++){var O=this.getTagsForCell(k[U]);if(0<O.length){O=O.split(" ");for(var T=0;T<O.length;T++)null==I[O[T]]&&(I[O[T]]=!0,A.push(O[T]))}}return A};Graph.prototype.getTagsForCell=function(k){return this.getAttributeForCell(k,"tags","")};Graph.prototype.addTagsForCells=function(k,A){if(0<k.length&&0<A.length){this.model.beginUpdate();try{for(var I=0;I<k.length;I++){for(var U=this.getTagsForCell(k[I]),
-O=U.split(" "),T=!1,X=0;X<A.length;X++){var aa=mxUtils.trim(A[X]);""!=aa&&0>mxUtils.indexOf(O,aa)&&(U=0<U.length?U+" "+aa:aa,T=!0)}T&&this.setAttributeForCell(k[I],"tags",U)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(k,A){if(0<k.length&&0<A.length){this.model.beginUpdate();try{for(var I=0;I<k.length;I++){var U=this.getTagsForCell(k[I]);if(0<U.length){for(var O=U.split(" "),T=!1,X=0;X<A.length;X++){var aa=mxUtils.indexOf(O,A[X]);0<=aa&&(O.splice(aa,1),T=!0)}T&&this.setAttributeForCell(k[I],
+for(var A=0;A<k.length;A++)if(0>mxUtils.indexOf(this.hiddenTags,k[A]))return!1;return!0};Graph.prototype.getCellsForTags=function(k,A,I,U){var O=[];if(null!=k){A=null!=A?A:this.model.getDescendants(this.model.getRoot());for(var S=0,X={},aa=0;aa<k.length;aa++)0<k[aa].length&&(X[k[aa]]=!0,S++);for(aa=0;aa<A.length;aa++)if(I&&this.model.getParent(A[aa])==this.model.root||this.model.isVertex(A[aa])||this.model.isEdge(A[aa])){var ja=this.getTagsForCell(A[aa]),pa=!1;if(0<ja.length&&(ja=ja.split(" "),ja.length>=
+k.length)){for(var sa=pa=0;sa<ja.length&&pa<S;sa++)null!=X[ja[sa]]&&pa++;pa=pa==S}pa&&(1!=U||this.isCellVisible(A[aa]))&&O.push(A[aa])}}return O};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(k){for(var A=null,I=[],U=0;U<k.length;U++){var O=this.getTagsForCell(k[U]);I=[];if(0<O.length){O=O.split(" ");for(var S={},X=0;X<O.length;X++)if(null==A||null!=A[O[X]])S[O[X]]=!0,I.push(O[X]);
+A=S}else return[]}return I};Graph.prototype.getTagsForCells=function(k){for(var A=[],I={},U=0;U<k.length;U++){var O=this.getTagsForCell(k[U]);if(0<O.length){O=O.split(" ");for(var S=0;S<O.length;S++)null==I[O[S]]&&(I[O[S]]=!0,A.push(O[S]))}}return A};Graph.prototype.getTagsForCell=function(k){return this.getAttributeForCell(k,"tags","")};Graph.prototype.addTagsForCells=function(k,A){if(0<k.length&&0<A.length){this.model.beginUpdate();try{for(var I=0;I<k.length;I++){for(var U=this.getTagsForCell(k[I]),
+O=U.split(" "),S=!1,X=0;X<A.length;X++){var aa=mxUtils.trim(A[X]);""!=aa&&0>mxUtils.indexOf(O,aa)&&(U=0<U.length?U+" "+aa:aa,S=!0)}S&&this.setAttributeForCell(k[I],"tags",U)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(k,A){if(0<k.length&&0<A.length){this.model.beginUpdate();try{for(var I=0;I<k.length;I++){var U=this.getTagsForCell(k[I]);if(0<U.length){for(var O=U.split(" "),S=!1,X=0;X<A.length;X++){var aa=mxUtils.indexOf(O,A[X]);0<=aa&&(O.splice(aa,1),S=!0)}S&&this.setAttributeForCell(k[I],
"tags",O.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(k){this.model.beginUpdate();try{for(var A=0;A<k.length;A++)this.model.setVisible(k[A],!this.model.isVisible(k[A]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(k,A){this.model.beginUpdate();try{for(var I=0;I<k.length;I++)this.model.setVisible(k[I],A)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=function(k,A,I,U){for(var O=0;O<k.length;O++)this.highlightCell(k[O],
-A,I,U)};Graph.prototype.highlightCell=function(k,A,I,U,O){A=null!=A?A:mxConstants.DEFAULT_VALID_COLOR;I=null!=I?I:1E3;k=this.view.getState(k);var T=null;null!=k&&(O=null!=O?O:4,O=Math.max(O+1,mxUtils.getValue(k.style,mxConstants.STYLE_STROKEWIDTH,1)+O),T=new mxCellHighlight(this,A,O,!1),null!=U&&(T.opacity=U),T.highlight(k),window.setTimeout(function(){null!=T.shape&&(mxUtils.setPrefixedStyle(T.shape.node.style,"transition","all 1200ms ease-in-out"),T.shape.node.style.opacity=0);window.setTimeout(function(){T.destroy()},
-1200)},I));return T};Graph.prototype.addSvgShadow=function(k,A,I,U){I=null!=I?I:!1;U=null!=U?U:!0;var O=k.ownerDocument,T=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"filter"):O.createElement("filter");T.setAttribute("id",this.shadowId);var X=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feGaussianBlur"):O.createElement("feGaussianBlur");X.setAttribute("in","SourceAlpha");X.setAttribute("stdDeviation",this.svgShadowBlur);X.setAttribute("result","blur");T.appendChild(X);
-X=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feOffset"):O.createElement("feOffset");X.setAttribute("in","blur");X.setAttribute("dx",this.svgShadowSize);X.setAttribute("dy",this.svgShadowSize);X.setAttribute("result","offsetBlur");T.appendChild(X);X=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feFlood"):O.createElement("feFlood");X.setAttribute("flood-color",this.svgShadowColor);X.setAttribute("flood-opacity",this.svgShadowOpacity);X.setAttribute("result","offsetColor");
-T.appendChild(X);X=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feComposite"):O.createElement("feComposite");X.setAttribute("in","offsetColor");X.setAttribute("in2","offsetBlur");X.setAttribute("operator","in");X.setAttribute("result","offsetBlur");T.appendChild(X);X=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feBlend"):O.createElement("feBlend");X.setAttribute("in","SourceGraphic");X.setAttribute("in2","offsetBlur");T.appendChild(X);X=k.getElementsByTagName("defs");
-0==X.length?(O=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"defs"):O.createElement("defs"),null!=k.firstChild?k.insertBefore(O,k.firstChild):k.appendChild(O)):O=X[0];O.appendChild(T);I||(A=null!=A?A:k.getElementsByTagName("g")[0],null!=A&&(A.setAttribute("filter","url(#"+this.shadowId+")"),!isNaN(parseInt(k.getAttribute("width")))&&U&&(k.setAttribute("width",parseInt(k.getAttribute("width"))+6),k.setAttribute("height",parseInt(k.getAttribute("height"))+6),A=k.getAttribute("viewBox"),
-null!=A&&0<A.length&&(A=A.split(" "),3<A.length&&(w=parseFloat(A[2])+6,h=parseFloat(A[3])+6,k.setAttribute("viewBox",A[0]+" "+A[1]+" "+w+" "+h))))));return T};Graph.prototype.setShadowVisible=function(k,A){mxClient.IS_SVG&&!mxClient.IS_SF&&(A=null!=A?A:!0,(this.shadowVisible=k)?this.view.getDrawPane().setAttribute("filter","url(#"+this.shadowId+")"):this.view.getDrawPane().removeAttribute("filter"),A&&this.fireEvent(new mxEventObject("shadowVisibleChanged")))};Graph.prototype.checkDefaultParent=function(){null==
+A,I,U)};Graph.prototype.highlightCell=function(k,A,I,U,O){A=null!=A?A:mxConstants.DEFAULT_VALID_COLOR;I=null!=I?I:1E3;k=this.view.getState(k);var S=null;null!=k&&(O=null!=O?O:4,O=Math.max(O+1,mxUtils.getValue(k.style,mxConstants.STYLE_STROKEWIDTH,1)+O),S=new mxCellHighlight(this,A,O,!1),null!=U&&(S.opacity=U),S.highlight(k),window.setTimeout(function(){null!=S.shape&&(mxUtils.setPrefixedStyle(S.shape.node.style,"transition","all 1200ms ease-in-out"),S.shape.node.style.opacity=0);window.setTimeout(function(){S.destroy()},
+1200)},I));return S};Graph.prototype.addSvgShadow=function(k,A,I,U){I=null!=I?I:!1;U=null!=U?U:!0;var O=k.ownerDocument,S=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"filter"):O.createElement("filter");S.setAttribute("id",this.shadowId);var X=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feGaussianBlur"):O.createElement("feGaussianBlur");X.setAttribute("in","SourceAlpha");X.setAttribute("stdDeviation",this.svgShadowBlur);X.setAttribute("result","blur");S.appendChild(X);
+X=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feOffset"):O.createElement("feOffset");X.setAttribute("in","blur");X.setAttribute("dx",this.svgShadowSize);X.setAttribute("dy",this.svgShadowSize);X.setAttribute("result","offsetBlur");S.appendChild(X);X=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feFlood"):O.createElement("feFlood");X.setAttribute("flood-color",this.svgShadowColor);X.setAttribute("flood-opacity",this.svgShadowOpacity);X.setAttribute("result","offsetColor");
+S.appendChild(X);X=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feComposite"):O.createElement("feComposite");X.setAttribute("in","offsetColor");X.setAttribute("in2","offsetBlur");X.setAttribute("operator","in");X.setAttribute("result","offsetBlur");S.appendChild(X);X=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feBlend"):O.createElement("feBlend");X.setAttribute("in","SourceGraphic");X.setAttribute("in2","offsetBlur");S.appendChild(X);X=k.getElementsByTagName("defs");
+0==X.length?(O=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"defs"):O.createElement("defs"),null!=k.firstChild?k.insertBefore(O,k.firstChild):k.appendChild(O)):O=X[0];O.appendChild(S);I||(A=null!=A?A:k.getElementsByTagName("g")[0],null!=A&&(A.setAttribute("filter","url(#"+this.shadowId+")"),!isNaN(parseInt(k.getAttribute("width")))&&U&&(k.setAttribute("width",parseInt(k.getAttribute("width"))+6),k.setAttribute("height",parseInt(k.getAttribute("height"))+6),A=k.getAttribute("viewBox"),
+null!=A&&0<A.length&&(A=A.split(" "),3<A.length&&(w=parseFloat(A[2])+6,h=parseFloat(A[3])+6,k.setAttribute("viewBox",A[0]+" "+A[1]+" "+w+" "+h))))));return S};Graph.prototype.setShadowVisible=function(k,A){mxClient.IS_SVG&&!mxClient.IS_SF&&(A=null!=A?A:!0,(this.shadowVisible=k)?this.view.getDrawPane().setAttribute("filter","url(#"+this.shadowId+")"):this.view.getDrawPane().removeAttribute("filter"),A&&this.fireEvent(new mxEventObject("shadowVisibleChanged")))};Graph.prototype.checkDefaultParent=function(){null==
this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer())};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var k=this.model.getChildCount(this.model.root),A=0;do var I=this.model.getChildAt(this.model.root,A);while(A++<k&&"1"==mxUtils.getValue(this.getCellStyle(I),"locked","0"));null!=I&&this.setDefaultParent(I)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=
[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.bpmn2=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.c4=[SHAPES_PATH+"/mxC4.js"];mxStencilRegistry.libraries.cisco19=[SHAPES_PATH+"/mxCisco19.js",STENCIL_PATH+
"/cisco19.xml"];mxStencilRegistry.libraries.cisco_safe=[SHAPES_PATH+"/mxCiscoSafe.js",STENCIL_PATH+"/cisco_safe/architecture.xml",STENCIL_PATH+"/cisco_safe/business_icons.xml",STENCIL_PATH+"/cisco_safe/capability.xml",STENCIL_PATH+"/cisco_safe/design.xml",STENCIL_PATH+"/cisco_safe/iot_things_icons.xml",STENCIL_PATH+"/cisco_safe/people_places_things_icons.xml",STENCIL_PATH+"/cisco_safe/security_icons.xml",STENCIL_PATH+"/cisco_safe/technology_icons.xml",STENCIL_PATH+"/cisco_safe/threat.xml"];mxStencilRegistry.libraries.dfd=
@@ -3453,33 +3453,33 @@ this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultPar
"/ibm.xml"];mxStencilRegistry.libraries.ibmcloud=[STENCIL_PATH+"/ibm_cloud.xml"];mxStencilRegistry.libraries.cabinets=[SHAPES_PATH+"/mxCabinets.js",STENCIL_PATH+"/cabinets.xml"];mxStencilRegistry.libraries.archimate=[SHAPES_PATH+"/mxArchiMate.js"];mxStencilRegistry.libraries.archimate3=[SHAPES_PATH+"/mxArchiMate3.js"];mxStencilRegistry.libraries.sysml=[SHAPES_PATH+"/mxSysML.js"];mxStencilRegistry.libraries.eip=[SHAPES_PATH+"/mxEip.js",STENCIL_PATH+"/eip.xml"];mxStencilRegistry.libraries.networks=
[SHAPES_PATH+"/mxNetworks.js",STENCIL_PATH+"/networks.xml"];mxStencilRegistry.libraries.aws3d=[SHAPES_PATH+"/mxAWS3D.js",STENCIL_PATH+"/aws3d.xml"];mxStencilRegistry.libraries.aws4=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.aws4b=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.uml25=[SHAPES_PATH+"/mxUML25.js"];mxStencilRegistry.libraries.veeam=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam.xml"];
mxStencilRegistry.libraries.veeam2=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam2.xml"];mxStencilRegistry.libraries.pid2inst=[SHAPES_PATH+"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxStencilRegistry.libraries.salesforce=
-[STENCIL_PATH+"/salesforce.xml"];mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=function(k){var A=null;null!=k&&0<k.length&&("ER"==k.substring(0,2)?A="mxgraph.er":"sysML"==k.substring(0,5)&&(A="mxgraph.sysml"));return A};var ha=mxMarker.createMarker;mxMarker.createMarker=function(k,A,I,U,O,T,X,aa,ja,pa){if(null!=I&&null==mxMarker.markers[I]){var sa=this.getPackageForType(I);
-null!=sa&&mxStencilRegistry.getStencil(sa)}return ha.apply(this,arguments)};var la=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(k,A,I,U,O,T){"1"==mxUtils.getValue(A.style,"lineShape",null)&&k.setFillColor(mxUtils.getValue(A.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return la.apply(this,arguments)};PrintDialog.prototype.create=function(k,A,I){function U(){Ba.value=Math.max(1,Math.min(pa,Math.max(parseInt(Ba.value),parseInt(wa.value))));wa.value=Math.max(1,Math.min(pa,
+[STENCIL_PATH+"/salesforce.xml"];mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=function(k){var A=null;null!=k&&0<k.length&&("ER"==k.substring(0,2)?A="mxgraph.er":"sysML"==k.substring(0,5)&&(A="mxgraph.sysml"));return A};var ha=mxMarker.createMarker;mxMarker.createMarker=function(k,A,I,U,O,S,X,aa,ja,pa){if(null!=I&&null==mxMarker.markers[I]){var sa=this.getPackageForType(I);
+null!=sa&&mxStencilRegistry.getStencil(sa)}return ha.apply(this,arguments)};var la=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(k,A,I,U,O,S){"1"==mxUtils.getValue(A.style,"lineShape",null)&&k.setFillColor(mxUtils.getValue(A.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return la.apply(this,arguments)};PrintDialog.prototype.create=function(k,A,I){function U(){Ba.value=Math.max(1,Math.min(pa,Math.max(parseInt(Ba.value),parseInt(wa.value))));wa.value=Math.max(1,Math.min(pa,
Math.min(parseInt(Ba.value),parseInt(wa.value))))}function O(ua){k.lastPrintPagesRadioChecked=qa.checked;k.lastPrintSelectionOnlyChecked=Ea.checked;k.lastPrintCropRadioChecked=ya.checked;k.lastPrintFitRadioChecked=Ca.checked;qa.checked&&wa.value<Ba.value?(k.lastPrintPagesFromInput=wa.value,k.lastPrintPagesToInput=Ba.value):(k.lastPrintPagesFromInput=null,k.lastPrintPagesToInput=null);V.value=Math.max(1,Math.min(1600,parseInt(V.value)))+"%";k.lastPrintZoom=V.value;k.lastPrintBorder=Q.value;k.lastPrintGrid=
ia.checked;k.lastPrintTransparent=ka.checked;k.lastPrintInclude=oa.checked;k.lastPrintSheetsAcross=x.value;k.lastPrintSheetsDown=M.value;var Fa={};Fa.border=parseInt(Q.value);Fa.scale=parseInt(V.value)/100;Fa.grid=ia.checked;Fa.transparent=ka.checked;Fa.includeCopy=oa.checked;Fa.sheetsAcross=parseInt(x.value);Fa.sheetsDown=parseInt(M.value);Fa.pagesFrom=parseInt(wa.value);Fa.pagesTo=parseInt(Ba.value);Fa.allPages=sa.checked;Fa.selection=Ea.checked;Fa.pageView=ra.checked;Fa.crop=ya.checked;Fa.fit=
-Ca.checked;return null!=I?I(!ua,Fa):k.print(!ua,Fa)}var T=k.editor.graph,X=document.createElement("div"),aa=document.createElement("h3");aa.style.width="100%";aa.style.textAlign="center";aa.style.marginTop="0px";mxUtils.write(aa,A||mxResources.get("print"));X.appendChild(aa);var ja=1,pa=1;aa=document.createElement("div");aa.style.whiteSpace="nowrap";var sa=document.createElement("input");sa.style.marginRight="8px";sa.style.marginBottom="8px";sa.setAttribute("type","radio");sa.setAttribute("name",
+Ca.checked;return null!=I?I(!ua,Fa):k.print(!ua,Fa)}var S=k.editor.graph,X=document.createElement("div"),aa=document.createElement("h3");aa.style.width="100%";aa.style.textAlign="center";aa.style.marginTop="0px";mxUtils.write(aa,A||mxResources.get("print"));X.appendChild(aa);var ja=1,pa=1;aa=document.createElement("div");aa.style.whiteSpace="nowrap";var sa=document.createElement("input");sa.style.marginRight="8px";sa.style.marginBottom="8px";sa.setAttribute("type","radio");sa.setAttribute("name",
"pages-printdialog");aa.appendChild(sa);A=document.createElement("span");mxUtils.write(A,mxResources.get("allPages"));mxEvent.addListener(A,"click",function(){sa.checked=!0});aa.appendChild(A);mxUtils.br(aa);var qa=sa.cloneNode(!0);aa.appendChild(qa);A=document.createElement("span");mxUtils.write(A,mxResources.get("pages")+":");aa.appendChild(A);mxEvent.addListener(A,"click",function(){qa.checked=!0});var wa=document.createElement("input");wa.style.margin="0 4px";wa.setAttribute("value","1");wa.setAttribute("type",
"number");wa.setAttribute("min","1");wa.style.width="40px";aa.appendChild(wa);A=document.createElement("span");mxUtils.write(A,mxResources.get("to"));aa.appendChild(A);var Ba=wa.cloneNode(!0);aa.appendChild(Ba);mxEvent.addListener(wa,"focus",function(){qa.checked=!0});mxEvent.addListener(Ba,"focus",function(){qa.checked=!0});mxEvent.addListener(wa,"change",U);mxEvent.addListener(Ba,"change",U);if(null!=k.pages&&(pa=k.pages.length,null!=k.currentPage))for(var za=0;za<pa;za++)if(k.currentPage==k.pages[za]){ja=
za+1;break}null!=k.lastPrintPagesFromInput&&null!=k.lastPrintPagesToInput?(wa.value=Math.min(pa,Math.max(1,k.lastPrintPagesFromInput)),Ba.value=Math.min(pa,Math.max(1,k.lastPrintPagesToInput))):(wa.value=ja,Ba.value=ja);wa.setAttribute("max",pa);Ba.setAttribute("max",pa);za=mxUtils.button(mxResources.get("currentPage"),function(ua){wa.value=ja;Ba.value=ja;qa.checked=!0});za.setAttribute("title",mxResources.get("currentPage"));za.style.marginLeft="4px";za.style.maxWidth="100px";za.style.overflow="hidden";
-za.style.textOverflow="ellipsis";za.style.whiteSpace="nowrap";aa.appendChild(za);1<pa&&X.appendChild(aa);aa=document.createElement("div");aa.style.borderBottom="1px solid lightGray";aa.style.paddingBottom="12px";aa.style.marginBottom="12px";aa.style.whiteSpace="nowrap";var Ea=document.createElement("input");Ea.setAttribute("name","pages-printdialog");Ea.setAttribute("type",1==pa?"checkbox":"radio");Ea.style.marginRight="8px";T.isSelectionEmpty()&&Ea.setAttribute("disabled","disabled");T.isEnabled()&&
-(aa.appendChild(Ea),A=document.createElement("span"),mxUtils.write(A,mxResources.get("selectionOnly")),aa.appendChild(A));(T.isEnabled()||1<pa)&&X.appendChild(aa);!k.isPagesEnabled()||k.lastPrintPagesRadioChecked?qa.checked=!0:!T.isSelectionEmpty()&&k.lastPrintSelectionOnlyChecked?Ea.checked=!0:sa.checked=!0;T.isSelectionEmpty()||mxEvent.addListener(A,"click",function(){Ea.checked=!Ea.checked});T=document.createElement("div");T.style.whiteSpace="nowrap";var ra=document.createElement("input");ra.style.marginBottom=
-"8px";ra.style.marginRight="8px";ra.setAttribute("type","radio");ra.setAttribute("name","printSize");T.appendChild(ra);A=document.createElement("span");mxUtils.write(A,mxResources.get("pageView"));T.appendChild(A);mxEvent.addListener(T,"click",function(){ra.checked=!0});X.appendChild(T);T=document.createElement("div");T.style.whiteSpace="nowrap";var ya=document.createElement("input");ya.style.marginBottom="8px";ya.style.marginRight="8px";ya.setAttribute("type","radio");ya.setAttribute("name","printSize");
-T.appendChild(ya);A=document.createElement("span");mxUtils.write(A,mxResources.get("crop"));T.appendChild(A);mxEvent.addListener(T,"click",function(){ya.checked=!0});X.appendChild(T);T=document.createElement("div");T.style.whiteSpace="nowrap";var Ca=document.createElement("input");Ca.style.marginBottom="8px";Ca.style.marginRight="8px";Ca.setAttribute("type","radio");Ca.setAttribute("name","printSize");A=document.createElement("div");A.style.display="inline-block";A.style.verticalAlign="top";A.style.paddingTop=
-"2px";A.appendChild(Ca);T.appendChild(A);aa=document.createElement("table");aa.style.display="inline-block";aa.style.borderSpacing="0";za=document.createElement("tbody");var Ma=document.createElement("tr"),Ha=Ma.cloneNode(!0),Aa=document.createElement("td"),Ra=Aa.cloneNode(!0),Za=Aa.cloneNode(!0),La=Aa.cloneNode(!0),$a=Aa.cloneNode(!0),Da=Aa.cloneNode(!0);Aa.style.textAlign="right";La.style.textAlign="right";mxUtils.write(Aa,mxResources.get("fitTo"));mxEvent.addListener(T,"click",function(ua){mxEvent.getSource(ua)!=
+za.style.textOverflow="ellipsis";za.style.whiteSpace="nowrap";aa.appendChild(za);1<pa&&X.appendChild(aa);aa=document.createElement("div");aa.style.borderBottom="1px solid lightGray";aa.style.paddingBottom="12px";aa.style.marginBottom="12px";aa.style.whiteSpace="nowrap";var Ea=document.createElement("input");Ea.setAttribute("name","pages-printdialog");Ea.setAttribute("type",1==pa?"checkbox":"radio");Ea.style.marginRight="8px";S.isSelectionEmpty()&&Ea.setAttribute("disabled","disabled");S.isEnabled()&&
+(aa.appendChild(Ea),A=document.createElement("span"),mxUtils.write(A,mxResources.get("selectionOnly")),aa.appendChild(A));(S.isEnabled()||1<pa)&&X.appendChild(aa);!k.isPagesEnabled()||k.lastPrintPagesRadioChecked?qa.checked=!0:!S.isSelectionEmpty()&&k.lastPrintSelectionOnlyChecked?Ea.checked=!0:sa.checked=!0;S.isSelectionEmpty()||mxEvent.addListener(A,"click",function(){Ea.checked=!Ea.checked});S=document.createElement("div");S.style.whiteSpace="nowrap";var ra=document.createElement("input");ra.style.marginBottom=
+"8px";ra.style.marginRight="8px";ra.setAttribute("type","radio");ra.setAttribute("name","printSize");S.appendChild(ra);A=document.createElement("span");mxUtils.write(A,mxResources.get("pageView"));S.appendChild(A);mxEvent.addListener(S,"click",function(){ra.checked=!0});X.appendChild(S);S=document.createElement("div");S.style.whiteSpace="nowrap";var ya=document.createElement("input");ya.style.marginBottom="8px";ya.style.marginRight="8px";ya.setAttribute("type","radio");ya.setAttribute("name","printSize");
+S.appendChild(ya);A=document.createElement("span");mxUtils.write(A,mxResources.get("crop"));S.appendChild(A);mxEvent.addListener(S,"click",function(){ya.checked=!0});X.appendChild(S);S=document.createElement("div");S.style.whiteSpace="nowrap";var Ca=document.createElement("input");Ca.style.marginBottom="8px";Ca.style.marginRight="8px";Ca.setAttribute("type","radio");Ca.setAttribute("name","printSize");A=document.createElement("div");A.style.display="inline-block";A.style.verticalAlign="top";A.style.paddingTop=
+"2px";A.appendChild(Ca);S.appendChild(A);aa=document.createElement("table");aa.style.display="inline-block";aa.style.borderSpacing="0";za=document.createElement("tbody");var Ma=document.createElement("tr"),Ha=Ma.cloneNode(!0),Aa=document.createElement("td"),Ra=Aa.cloneNode(!0),Za=Aa.cloneNode(!0),La=Aa.cloneNode(!0),$a=Aa.cloneNode(!0),Da=Aa.cloneNode(!0);Aa.style.textAlign="right";La.style.textAlign="right";mxUtils.write(Aa,mxResources.get("fitTo"));mxEvent.addListener(S,"click",function(ua){mxEvent.getSource(ua)!=
Ca&&(Ca.checked=!Ca.checked)});var x=document.createElement("input");x.style.margin="0 2px";x.style.boxSizing="border-box";x.setAttribute("value",k.lastPrintSheetsAcross||"1");x.setAttribute("min","1");x.setAttribute("type","number");x.style.width="40px";Ra.appendChild(x);A=document.createElement("span");mxUtils.write(A,mxResources.get("fitToSheetsAcross"));Za.appendChild(A);mxUtils.write(La,mxResources.get("fitToBy"));var M=x.cloneNode(!0);M.setAttribute("value",k.lastPrintSheetsDown||"1");$a.appendChild(M);
mxEvent.addListener(x,"click",function(ua){Ca.checked=!0;mxEvent.consume(ua)});mxEvent.addListener(M,"click",function(ua){Ca.checked=!0;mxEvent.consume(ua)});k.lastPrintCropRadioChecked?ya.checked=!0:k.lastPrintFitRadioChecked?Ca.checked=!0:ra.checked=!0;A=document.createElement("span");mxUtils.write(A,mxResources.get("fitToSheetsDown"));Da.appendChild(A);Ma.appendChild(Aa);Ma.appendChild(Ra);Ma.appendChild(Za);Ha.appendChild(La);Ha.appendChild($a);Ha.appendChild(Da);za.appendChild(Ma);za.appendChild(Ha);
-aa.appendChild(za);T.appendChild(aa);X.appendChild(T);T=document.createElement("div");T.style.borderTop="1px solid lightGray";T.style.whiteSpace="nowrap";T.style.paddingTop="12px";T.style.marginTop="12px";T.style.paddingLeft="8px";mxUtils.write(T,mxResources.get("borderWidth")+":");var Q=document.createElement("input");Q.setAttribute("type","number");Q.setAttribute("min","0");Q.style.width="40px";Q.style.marginLeft="4px";Q.value=null!=k.lastPrintBorder?k.lastPrintBorder:mxPrintPreview.prototype.pageMargin;
-T.appendChild(Q);A=document.createElement("span");A.style.marginLeft="8px";mxUtils.write(A,mxResources.get("zoom")+":");T.appendChild(A);var V=document.createElement("input");V.style.width="60px";V.style.marginLeft="4px";V.value=null!=k.lastPrintZoom?k.lastPrintZoom:"100%";T.appendChild(V);mxUtils.br(T);var ia=document.createElement("input");ia.setAttribute("type","checkbox");ia.style.marginTop="12px";ia.checked=null!=k.lastPrintGrid?k.lastPrintGrid:!1;T.appendChild(ia);A=document.createElement("span");
-A.style.marginLeft="4px";A.style.marginRight="8px";mxUtils.write(A,mxResources.get("grid"));T.appendChild(A);mxEvent.addListener(A,"click",function(ua){ia.checked=!0;mxEvent.consume(ua)});var ka=document.createElement("input");ka.setAttribute("type","checkbox");ka.style.marginTop="10px";ka.checked=null!=k.lastPrintTransparent?k.lastPrintTransparent:!1;null!=I&&(T.appendChild(ka),A=document.createElement("span"),A.style.marginLeft="4px",mxUtils.write(A,mxResources.get("transparentBackground")),T.appendChild(A),
-mxEvent.addListener(A,"click",function(ua){ka.checked=!0;mxEvent.consume(ua)}));var oa=document.createElement("input");oa.setAttribute("type","checkbox");oa.style.marginTop="10px";oa.checked=null!=k.lastPrintInclude?k.lastPrintInclude:Editor.defaultIncludeDiagram;null==I||mxClient.IS_CHROMEAPP||"draw.io"!=k.getServiceName()||(mxUtils.br(T),T.appendChild(oa),A=document.createElement("span"),A.style.marginLeft="4px",mxUtils.write(A,mxResources.get("includeCopyOfMyDiagram")),T.appendChild(A),mxEvent.addListener(A,
-"click",function(ua){oa.checked=!0;mxEvent.consume(ua)}));X.appendChild(T);A=document.createElement("div");A.style.marginTop="40px";A.style.textAlign="right";A.style.whiteSpace="nowrap";k.isOffline()||null!=I||A.appendChild(k.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));T=mxUtils.button(mxResources.get("cancel"),function(){k.hideDialog()});T.className="geBtn";k.editor.cancelFirst&&A.appendChild(T);PrintDialog.previewEnabled&&null==I&&(aa=mxUtils.button(mxResources.get("preview"),
-function(){try{k.hideDialog(),O(!1)}catch(ua){k.handleError(ua)}}),aa.className="geBtn",A.appendChild(aa));aa=mxUtils.button(mxResources.get(null!=I?"export":PrintDialog.previewEnabled?"print":"ok"),function(){try{k.hideDialog(),O(!0)}catch(ua){k.handleError(ua)}});aa.className="geBtn gePrimaryBtn";A.appendChild(aa);k.editor.cancelFirst||A.appendChild(T);X.appendChild(A);if(k.editor.isChromelessView()){var xa=function(){Editor.isDarkMode()?(X.classList.add("geDarkMode"),X.style.colorScheme="dark"):
+aa.appendChild(za);S.appendChild(aa);X.appendChild(S);S=document.createElement("div");S.style.borderTop="1px solid lightGray";S.style.whiteSpace="nowrap";S.style.paddingTop="12px";S.style.marginTop="12px";S.style.paddingLeft="8px";mxUtils.write(S,mxResources.get("borderWidth")+":");var Q=document.createElement("input");Q.setAttribute("type","number");Q.setAttribute("min","0");Q.style.width="40px";Q.style.marginLeft="4px";Q.value=null!=k.lastPrintBorder?k.lastPrintBorder:mxPrintPreview.prototype.pageMargin;
+S.appendChild(Q);A=document.createElement("span");A.style.marginLeft="8px";mxUtils.write(A,mxResources.get("zoom")+":");S.appendChild(A);var V=document.createElement("input");V.style.width="60px";V.style.marginLeft="4px";V.value=null!=k.lastPrintZoom?k.lastPrintZoom:"100%";S.appendChild(V);mxUtils.br(S);var ia=document.createElement("input");ia.setAttribute("type","checkbox");ia.style.marginTop="12px";ia.checked=null!=k.lastPrintGrid?k.lastPrintGrid:!1;S.appendChild(ia);A=document.createElement("span");
+A.style.marginLeft="4px";A.style.marginRight="8px";mxUtils.write(A,mxResources.get("grid"));S.appendChild(A);mxEvent.addListener(A,"click",function(ua){ia.checked=!0;mxEvent.consume(ua)});var ka=document.createElement("input");ka.setAttribute("type","checkbox");ka.style.marginTop="10px";ka.checked=null!=k.lastPrintTransparent?k.lastPrintTransparent:!1;null!=I&&(S.appendChild(ka),A=document.createElement("span"),A.style.marginLeft="4px",mxUtils.write(A,mxResources.get("transparentBackground")),S.appendChild(A),
+mxEvent.addListener(A,"click",function(ua){ka.checked=!0;mxEvent.consume(ua)}));var oa=document.createElement("input");oa.setAttribute("type","checkbox");oa.style.marginTop="10px";oa.checked=null!=k.lastPrintInclude?k.lastPrintInclude:Editor.defaultIncludeDiagram;null==I||mxClient.IS_CHROMEAPP||"draw.io"!=k.getServiceName()||(mxUtils.br(S),S.appendChild(oa),A=document.createElement("span"),A.style.marginLeft="4px",mxUtils.write(A,mxResources.get("includeCopyOfMyDiagram")),S.appendChild(A),mxEvent.addListener(A,
+"click",function(ua){oa.checked=!0;mxEvent.consume(ua)}));X.appendChild(S);A=document.createElement("div");A.style.marginTop="40px";A.style.textAlign="right";A.style.whiteSpace="nowrap";k.isOffline()||null!=I||A.appendChild(k.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));S=mxUtils.button(mxResources.get("cancel"),function(){k.hideDialog()});S.className="geBtn";k.editor.cancelFirst&&A.appendChild(S);PrintDialog.previewEnabled&&null==I&&(aa=mxUtils.button(mxResources.get("preview"),
+function(){try{k.hideDialog(),O(!1)}catch(ua){k.handleError(ua)}}),aa.className="geBtn",A.appendChild(aa));aa=mxUtils.button(mxResources.get(null!=I?"export":PrintDialog.previewEnabled?"print":"ok"),function(){try{k.hideDialog(),O(!0)}catch(ua){k.handleError(ua)}});aa.className="geBtn gePrimaryBtn";A.appendChild(aa);k.editor.cancelFirst||A.appendChild(S);X.appendChild(A);if(k.editor.isChromelessView()){var xa=function(){Editor.isDarkMode()?(X.classList.add("geDarkMode"),X.style.colorScheme="dark"):
(X.classList.remove("geDarkMode"),X.style.colorScheme="light")};k.addListener("darkModeChanged",xa);xa();var ta=function(ua,Fa){ua=Fa.getProperty("dialog");X.parentNode==ua.container&&(k.editor.removeListener(ta),k.removeListener(xa))};k.editor.addListener("hideDialog",ta)}this.container=X};var Y=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=function(){null==this.page&&(this.page=this.ui.currentPage);if(this.page!=this.ui.currentPage){if(null!=this.page.viewState){this.ignoreColor||
(this.page.viewState.background=this.color);if(!this.ignoreImage){var k=this.image;null!=k&&null!=k.src&&Graph.isPageLink(k.src)&&(k={originalSrc:k.src});this.page.viewState.backgroundImage=k}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.adaptiveColors&&(this.page.viewState.adaptiveColors=this.adaptiveColors);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else Y.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&&(k=this.ui.editor.graph.adaptiveColors,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 ma=document.createElement("canvas"),Z=new Image;Z.onload=function(){try{ma.getContext("2d").drawImage(Z,0,0);var k=ma.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=k&&6<k.length}catch(A){}};Z.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.0.15";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.0.16";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"}};
@@ -3539,7 +3539,7 @@ null!=t.pageId&&f.getId()==t.pageId)z=f;if(null==l[f.getId()])l[f.getId()]=f;els
this.editor.setGraphXml(f);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,this.currentPage.setDiagramModified(!1),this.scrollToPage());if(null!=urlParams["layer-ids"])try{var F=decodeURIComponent(urlParams["layer-ids"]).split(" ");f={};for(C=0;C<F.length;C++)f[F[C]]=!0;var N=this.editor.graph.getModel(),K=N.getChildren(N.root);for(C=0;C<K.length;C++){var J=K[C];N.setVisible(J,f[J.id]||!1)}}catch(da){}};EditorUi.prototype.getBaseFilename=function(c){var f=this.getCurrentFile();
f=null!=f&&null!=f.getTitle()?f.getTitle():this.defaultFilename;if(/(\.xml)$/i.test(f)||/(\.html)$/i.test(f)||/(\.svg)$/i.test(f)||/(\.png)$/i.test(f))f=f.substring(0,f.lastIndexOf("."));/(\.drawio)$/i.test(f)&&(f=f.substring(0,f.lastIndexOf(".")));!c&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&0<this.currentPage.getName().length&&(f=f+"-"+this.currentPage.getName());return f};EditorUi.prototype.downloadFile=function(c,f,l,t,z,
C,F,N,K,J,da,ea,ca,W,ba,ha){try{t=null!=t?t:this.editor.graph.isSelectionEmpty();var la=this.getBaseFilename(!z),Y=la+("xml"==c||"pdf"==c&&da?".drawio":"")+"."+c;if("xml"==c){var ma=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,t,z,null,null,null,f);this.saveData(Y,c,ma,"text/xml")}else if("html"==c)ma=this.getHtml2(this.getFileData(!0),this.editor.graph,la),this.saveData(Y,c,ma,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))"xmlpng"==
-c?Y=la+".png":"jpeg"==c&&(Y=la+".jpg"),this.saveRequest(Y,c,mxUtils.bind(this,function(U,O){try{return this.createDownloadRequest(U,c,t,O,F,z,N,K,J,da,ea,void 0,void 0,!C,ca,W,ba,ha)}catch(T){this.handleError(T)}}));else{var Z=null,k=mxUtils.bind(this,function(U){U.length<=MAX_REQUEST_SIZE?this.saveData(Y,"svg",U,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(Z)}))});if("svg"==c){var A=this.editor.graph.background;
+c?Y=la+".png":"jpeg"==c&&(Y=la+".jpg"),this.saveRequest(Y,c,mxUtils.bind(this,function(U,O){try{return this.createDownloadRequest(U,c,t,O,F,z,N,K,J,da,ea,void 0,void 0,!C,ca,W,ba,ha)}catch(S){this.handleError(S)}}));else{var Z=null,k=mxUtils.bind(this,function(U){U.length<=MAX_REQUEST_SIZE?this.saveData(Y,"svg",U,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(Z)}))});if("svg"==c){var A=this.editor.graph.background;
if(F||A==mxConstants.NONE)A=null;var I=this.editor.graph.getSvg(A,null,null,null,null,t);l&&this.editor.graph.addSvgShadow(I);this.editor.convertImages(I,mxUtils.bind(this,mxUtils.bind(this,function(U){this.spinner.stop();k(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(U))})))}else Y=la+".svg",Z=this.getFileData(!1,!0,null,mxUtils.bind(this,function(U){this.spinner.stop();k(U)}),t)}}catch(U){this.handleError(U)}};EditorUi.prototype.createDownloadRequest=function(c,f,l,t,z,C,F,N,K,
J,da,ea,ca,W,ba,ha,la,Y){c=this.downloadRequestBuilder(c,f,l,t,z,C,F,N,K,J,da,ea,ca,W,ba,ha,la,Y);f="";for(var ma in c)l=c[ma],null!=l&&(f+=ma+"="+encodeURIComponent(l)+"&");return new mxXmlRequest(EXPORT_URL,f)};EditorUi.prototype.downloadRequestBuilder=function(c,f,l,t,z,C,F,N,K,J,da,ea,ca,W,ba,ha,la,Y){var ma=this.editor.graph,Z=ma.getGraphBounds();l=this.getFileData(!0,null,null,null,l,0==C?!1:"xmlpng"!=f,null,null,null,!Editor.defaultCompressed,"pdf"==f);var k=null,A=null,I=null;if(!EditorUi.isElectronApp&&
(Z.width*Z.height>MAX_AREA||l.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};J=J?"1":"0";"pdf"==f&&(null!=da?(k=da.from,A=da.to):0==C&&(I="1"));"xmlpng"==f&&(J="1",f="png");if(("xmlpng"==f||"svg"==f)&&null!=this.pages&&null!=this.currentPage)for(C=0;C<this.pages.length;C++)if(this.pages[C]==this.currentPage){k=C;break}C=ma.background;"png"!=f&&"pdf"!=f&&"svg"!=f||!z?z||null!=C&&C!=mxConstants.NONE||(C="#ffffff"):C=mxConstants.NONE;z={globalVars:ma.getExportVariables()};
@@ -3579,7 +3579,7 @@ F=null)}),la=mxUtils.bind(this,function(Y){if(ca.isSelectionEmpty())ca.getRubber
mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(Y)});mxEvent.addGestureListeners(K,function(){},mxUtils.bind(this,function(Y){ca.isMouseDown&&null!=ca.panningManager&&null!=ca.graphHandler.first&&(ca.graphHandler.suspend(),null!=ca.graphHandler.hint&&(ca.graphHandler.hint.style.visibility="hidden"),K.style.backgroundColor="light-dark(#fefefe, #000000)",K.style.cursor="copy",ca.panningManager.stop(),ca.autoScroll=!1,mxEvent.consume(Y))}),mxUtils.bind(this,function(Y){ca.isMouseDown&&
null!=ca.panningManager&&null!=ca.graphHandler&&(K.style.backgroundColor="",K.style.cursor="default",this.sidebar.showTooltips=!0,ca.panningManager.stop(),ca.graphHandler.reset(),ca.isMouseDown=!1,ca.autoScroll=!0,la(Y),mxEvent.consume(Y))}));mxEvent.addListener(K,"mouseleave",mxUtils.bind(this,function(Y){ca.isMouseDown&&null!=ca.graphHandler.first&&(ca.graphHandler.resume(),null!=ca.graphHandler.hint&&(ca.graphHandler.hint.style.visibility="visible"),K.style.backgroundColor="",K.style.cursor="",
ca.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(K,"dragover",mxUtils.bind(this,function(Y){K.style.backgroundColor="light-dark(#fefefe, #000000)";Y.dataTransfer.dropEffect="copy";K.style.cursor="copy";this.sidebar.hideTooltip();Y.stopPropagation();Y.preventDefault()})),mxEvent.addListener(K,"drop",mxUtils.bind(this,function(Y){K.style.cursor="";K.style.backgroundColor="";0<Y.dataTransfer.files.length&&this.importFiles(Y.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(ma,
-Z,k,A,I,U,O,T,X){if(null!=ma&&"image/"==Z.substring(0,6))ma="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(ma),ma=[new mxCell("",new mxGeometry(0,0,I,U),ma)],ma[0].vertex=!0,ha(ma,new mxRectangle(0,0,I,U),Y,mxEvent.isAltDown(Y)?null:O.substring(0,O.lastIndexOf(".")).replace(/_/g," ")),null!=F&&null!=F.parentNode&&0<f.length&&(F.parentNode.removeChild(F),F=null);else{var aa=!1,ja=mxUtils.bind(this,function(pa,sa){null!=pa&&"application/pdf"==
+Z,k,A,I,U,O,S,X){if(null!=ma&&"image/"==Z.substring(0,6))ma="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(ma),ma=[new mxCell("",new mxGeometry(0,0,I,U),ma)],ma[0].vertex=!0,ha(ma,new mxRectangle(0,0,I,U),Y,mxEvent.isAltDown(Y)?null:O.substring(0,O.lastIndexOf(".")).replace(/_/g," ")),null!=F&&null!=F.parentNode&&0<f.length&&(F.parentNode.removeChild(F),F=null);else{var aa=!1,ja=mxUtils.bind(this,function(pa,sa){null!=pa&&"application/pdf"==
sa&&(sa=Editor.extractGraphModelFromPdf(pa),null!=sa&&0<sa.length&&(pa=sa));if(null!=pa)if(pa=mxUtils.parseXml(pa),"mxlibrary"==pa.documentElement.nodeName)try{var qa=JSON.parse(mxUtils.getTextContent(pa.documentElement));N(qa,K);f=f.concat(qa);ba(Y);this.spinner.stop();aa=!0}catch(Ea){}else if("mxfile"==pa.documentElement.nodeName)try{var wa=pa.documentElement.getElementsByTagName("diagram");for(qa=0;qa<wa.length;qa++){var Ba=this.stringToCells(Editor.getDiagramNodeXml(wa[qa])),za=this.editor.graph.getBoundingBoxFromGeometry(Ba);
null!=za&&ha(Ba,new mxRectangle(0,0,za.width,za.height),Y)}aa=!0}catch(Ea){null!=window.console&&console.log("error in drop handler:",Ea)}aa||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=F&&null!=F.parentNode&&0<f.length&&(F.parentNode.removeChild(F),F=null)});null!=X&&null!=O&&EditorUi.isVisioFilename(O)?this.importVisio(X,function(pa){ja(pa,"text/xml")},null,O):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(ma,O)&&null!=X?this.isExternalDataComms()?
this.parseFile(X,mxUtils.bind(this,function(pa){4==pa.readyState&&(this.spinner.stop(),200<=pa.status&&299>=pa.status?ja(pa.responseText,"text/xml"):this.handleError({message:mxResources.get(413==pa.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):ja(ma,Z)}}));Y.stopPropagation();Y.preventDefault()})),mxEvent.addListener(K,"dragleave",function(Y){K.style.cursor=
@@ -3630,15 +3630,15 @@ this.exportDialog=null);this.handleError(N)}),null,null,null,null,null,null,null
function(J,da,ea,ca){if("_blank"==da||null!=J&&0<J.length){var W=l("_blank"==da?null:J,da==App.MODE_DEVICE||"download"==da||null==da||"_blank"==da?"0":"1");null!=W&&(da==App.MODE_DEVICE||"download"==da||"_blank"==da?W.simulate(document,"_blank"):(ea=mxUtils.bind(this,function(ba){C=null!=C?C:"pdf"==f?"application/pdf":"image/"+f;if(null!=t)try{this.exportFile(t,J,C,!0,da,ba)}catch(ha){this.handleError(ha)}else this.spinner.spin(document.body,mxResources.get("saving"))&&W.send(mxUtils.bind(this,function(){this.spinner.stop();
if(200<=W.getStatus()&&299>=W.getStatus())try{this.exportFile(W.getText(),J,C,!0,da,ba)}catch(ha){this.handleError(ha)}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(ha){this.spinner.stop();this.handleError(ha)}))}),null!=ca?ea(ca):this.pickFolder(da,ea)))}});z=[App.MODE_BROWSER];F||z.push("_blank");var K=new SaveDialog(this,c,mxUtils.bind(this,function(J,da,ea){N(J.value,da,J,ea);this.hideDialog(null,null,K.container)}),z,null,"application/pdf");
this.showDialog(K.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));K.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(c,f,l,t,z,C){};EditorUi.prototype.getServiceForName=function(c){return null};EditorUi.prototype.getTitleForService=function(c){return mxResources.get(c)};EditorUi.prototype.pickFolder=function(c,f,l){f(null)};EditorUi.prototype.exportSvg=
-function(c,f,l,t,z,C,F,N,K,J,da,ea,ca,W){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(T){Editor.addRetryToError(T,mxUtils.bind(this,function(){this.exportSvg(c,f,l,t,z,C,F,N,K,J,da,ea,ca,W)}));this.handleError(T)})))try{var ba=this.editor.graph.isSelectionEmpty();l=null!=l?l:ba;var ha=f?null:this.editor.graph.background;ha==mxConstants.NONE&&(ha=null);null==ha&&0==f&&(ha=this.editor.graph.shapeBackgroundColor);var la=this.editor.graph.addForeignObjectWarning;
+function(c,f,l,t,z,C,F,N,K,J,da,ea,ca,W){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(S){Editor.addRetryToError(S,mxUtils.bind(this,function(){this.exportSvg(c,f,l,t,z,C,F,N,K,J,da,ea,ca,W)}));this.handleError(S)})))try{var ba=this.editor.graph.isSelectionEmpty();l=null!=l?l:ba;var ha=f?null:this.editor.graph.background;ha==mxConstants.NONE&&(ha=null);null==ha&&0==f&&(ha=this.editor.graph.shapeBackgroundColor);var la=this.editor.graph.addForeignObjectWarning;
Editor.foreignObjectImages&&(this.editor.graph.addForeignObjectWarning=function(){});var Y=mxUtils.lightDarkColorSupported,ma=mxUtils.preferDarkColor;if("light"==da||"dark"==da)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor="dark"==da;var Z=this.editor.graph.createSvgImageExport(z),k=this.editor.graph.getSvg(ha,c,F,N,null,l,null,Z,"blank"==J?"_blank":"self"==J?"_top":null,null,!ca,da,ea);mxUtils.lightDarkColorSupported=Y;mxUtils.preferDarkColor=ma;this.editor.graph.addForeignObjectWarning=
-la;t&&this.editor.graph.addSvgShadow(k);var A=this.getBaseFilename()+(z?".drawio":"")+".svg";W=null!=W?W:mxUtils.bind(this,function(T){this.isLocalFileSave()||T.length<=MAX_REQUEST_SIZE?this.saveData(A,"svg",T,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(T)}))});var I=mxUtils.bind(this,function(T){this.spinner.stop();z&&T.setAttribute("content",this.getFileData(!0,null,null,null,l,K,null,null,null,
-null,null,c,F));W(Graph.xmlDeclaration+"\n"+(z?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(T))});this.editor.graph.mathEnabled&&this.editor.addMathCss(k);var U=mxUtils.bind(this,function(T){Editor.replaceSvgDataUris&&C&&EditorUi.embedSvgImages(T);Editor.foreignObjectImages&&ca?this.replaceAlternateContent(T,da,I):I(T)}),O=mxUtils.bind(this,function(T){C&&!this.isOffline()&&this.canvasSupported?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(T,
-U,this.thumbImageCache)):U(T)});ca?this.embedFonts(k,O):(this.editor.addFontCss(k),O(k))}catch(T){this.handleError(T)}};EditorUi.prototype.replaceAlternateContent=function(c,f,l){function t(ea,ca,W,ba,ha){var la=mxUtils.createElementNs(c.ownerDocument,mxConstants.NS_SVG,"image");la.setAttribute("x",ca);la.setAttribute("y",W+.5);la.setAttribute("width",ba.width);la.setAttribute("height",ba.height);null==la.setAttributeNS?la.setAttribute("xlink:href",ha):la.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",
+la;t&&this.editor.graph.addSvgShadow(k);var A=this.getBaseFilename()+(z?".drawio":"")+".svg";W=null!=W?W:mxUtils.bind(this,function(S){this.isLocalFileSave()||S.length<=MAX_REQUEST_SIZE?this.saveData(A,"svg",S,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(S)}))});var I=mxUtils.bind(this,function(S){this.spinner.stop();z&&S.setAttribute("content",this.getFileData(!0,null,null,null,l,K,null,null,null,
+null,null,c,F));W(Graph.xmlDeclaration+"\n"+(z?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(S))});this.editor.graph.mathEnabled&&this.editor.addMathCss(k);var U=mxUtils.bind(this,function(S){Editor.replaceSvgDataUris&&C&&EditorUi.embedSvgImages(S);Editor.foreignObjectImages&&ca?this.replaceAlternateContent(S,da,I):I(S)}),O=mxUtils.bind(this,function(S){C&&!this.isOffline()&&this.canvasSupported?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(S,
+U,this.thumbImageCache)):U(S)});ca?this.embedFonts(k,O):(this.editor.addFontCss(k),O(k))}catch(S){this.handleError(S)}};EditorUi.prototype.replaceAlternateContent=function(c,f,l){function t(ea,ca,W,ba,ha){var la=mxUtils.createElementNs(c.ownerDocument,mxConstants.NS_SVG,"image");la.setAttribute("x",ca);la.setAttribute("y",W+.5);la.setAttribute("width",ba.width);la.setAttribute("height",ba.height);null==la.setAttributeNS?la.setAttribute("xlink:href",ha):la.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",
ha);ea.replaceChild(la,ea.lastChild);N()}function z(){if(F<da.length)da[F++](z)}var C="";f=c.getElementsByTagName("style");for(var F=0;F<f.length;F++)C+=f[F].innerHTML;f=c.getElementsByTagName("switch");counter=f.length;var N=mxUtils.bind(this,function(){counter--;0==counter&&l(c)}),K={},J={},da=[];for(F=0;F<f.length;F++)mxUtils.bind(this,function(ea){var ca=ea.getElementsByTagName("div");if(0<ca.length)try{var W=ca[0].cloneNode(!0),ba=parseInt(W.style.marginLeft),ha=parseInt(W.style.paddingTop),
la=W.getElementsByTagName("div")[1],Y=ca=!1,ma=W.style.alignItems,Z=W.style.justifyContent;if(null!=W.style.writingMode){var k=W.style.writingMode;Y="vertical-"==k.substring(0,9);ca="-rl"==k.substring(k.length-3)}var A=!Y&&"1px"==W.style.width||Y&&"1px"==W.style.height;if(!Y&&"1px"==W.style.height||Y&&"1px"==W.style.width)W.style.alignItems=Y&&ca?"unsafe flex-end":"unsafe flex-start";A&&(W.style.justifyContent="unsafe flex-start");W.style.paddingTop="";W.style.marginLeft="";var I=W.outerHTML,U=K[I];
null==U&&(W.style.position="absolute",W.style.visibility="hidden",document.body.appendChild(W),k=1,k="1px"==W.style.width?la.offsetWidth:parseInt(W.style.width),A=1,A="1px"==W.style.height?la.offsetHeight:parseInt(W.style.height),document.body.removeChild(W),U=new mxRectangle(ba,ha,k,A),K[I]=U);"1px"==W.style.height&&("unsafe center"==ma?ha-=U.height/2:"unsafe flex-end"==ma&&(ha-=U.height));if("1px"==W.style.width)if(!Y&&"unsafe center"==Z||Y&&"unsafe center"==ma)ba-=U.width/2;else if(!Y&&"unsafe flex-end"==
-Z||Y&&(!ca&&"unsafe flex-end"==ma||ca&&"unsafe flex-start"==ma))ba-=U.width;U=new mxRectangle(ba,ha,U.width,U.height+parseInt(la.style.fontSize)/4);da.push(mxUtils.bind(this,function(O){var T=J[I];null==T?Graph.htmlToPng(I,U.width,U.height,mxUtils.bind(this,function(X){t(ea,ba,ha,U,X);J[I]=X;O()}),C):(t(ea,ba,ha,U,T),O())}))}catch(O){N()}else N()})(f[F]);0==counter&&l(c);F=0;z()};EditorUi.prototype.addRadiobox=function(c,f,l,t,z,C,F){return this.addCheckbox(c,l,t,z,C,F,!0,f)};EditorUi.prototype.addCheckbox=
+Z||Y&&(!ca&&"unsafe flex-end"==ma||ca&&"unsafe flex-start"==ma))ba-=U.width;U=new mxRectangle(ba,ha,U.width,U.height+parseInt(la.style.fontSize)/4);da.push(mxUtils.bind(this,function(O){var S=J[I];null==S?Graph.htmlToPng(I,U.width,U.height,mxUtils.bind(this,function(X){t(ea,ba,ha,U,X);J[I]=X;O()}),C):(t(ea,ba,ha,U,S),O())}))}catch(O){N()}else N()})(f[F]);0==counter&&l(c);F=0;z()};EditorUi.prototype.addRadiobox=function(c,f,l,t,z,C,F){return this.addCheckbox(c,l,t,z,C,F,!0,f)};EditorUi.prototype.addCheckbox=
function(c,f,l,t,z,C,F,N){C=null!=C?C:!0;var K=document.createElement("input");K.style.marginRight="8px";K.style.marginTop="16px";K.setAttribute("type",F?"radio":"checkbox");F="geCheckbox-"+Editor.guid();K.id=F;null!=N&&K.setAttribute("name",N);l&&(K.setAttribute("checked","checked"),K.defaultChecked=!0);t&&K.setAttribute("disabled","disabled");C&&(c.appendChild(K),l=document.createElement("label"),mxUtils.write(l,f),l.setAttribute("for",F),c.appendChild(l),z||mxUtils.br(c));return K};EditorUi.prototype.addEditButton=
function(c,f){var l=this.addCheckbox(c,mxResources.get("edit")+":",!0,null,!0);l.style.marginLeft="24px";var t=this.getCurrentFile(),z="";null!=t&&t.getMode()!=App.MODE_DEVICE&&t.getMode()!=App.MODE_BROWSER&&(z=window.location.href);var C=document.createElement("select");C.style.maxWidth="200px";C.style.width="auto";C.style.marginLeft="8px";C.style.marginRight="10px";C.className="geBtn";t=document.createElement("option");t.setAttribute("value","blank");mxUtils.write(t,mxResources.get("makeCopy"));
C.appendChild(t);var F=document.createElement("option");F.setAttribute("value","custom");mxUtils.write(F,mxResources.get("custom")+"...");C.appendChild(F);c.appendChild(C);mxEvent.addListener(C,"change",mxUtils.bind(this,function(){if("custom"==C.value){var N=new FilenameDialog(this,z,mxResources.get("ok"),function(K){null!=K?(z=K,F.setAttribute("title",K)):(C.value="blank",F.removeAttribute("title"))},mxResources.get("url"),null,null,null,null,function(){C.value="blank"});this.showDialog(N.container,
@@ -3676,10 +3676,10 @@ Y.value&&(ha.checked=!0)})):C&&(J.appendChild(la),mxUtils.write(J,mxResources.ge
ha.checked?"selectionOnly":"diagram"}));var Z=this.addCheckbox(J,mxResources.get("transparentBackground"),!1,null,null,"jpeg"!=N&&"webp"!=N),k=document.createElement("select");k.style.maxWidth="260px";k.style.marginLeft="8px";k.style.marginTop="16px";C=document.createElement("option");C.setAttribute("value","light");mxUtils.write(C,mxResources.get("light"));k.appendChild(C);K=document.createElement("option");K.setAttribute("value","dark");mxUtils.write(K,mxResources.get("dark"));k.appendChild(K);
"svg"==N&&mxUtils.lightDarkColorSupported?(C=document.createElement("option"),C.setAttribute("value","auto"),mxUtils.write(C,mxResources.get("automatic")),C.setAttribute("selected","selected"),k.appendChild(C)):Editor.isDarkMode()?K.setAttribute("selected","selected"):C.setAttribute("selected","selected");mxUtils.write(J,mxResources.get("appearance")+":");J.appendChild(k);mxUtils.br(J);ea+=26;var A=this.addCheckbox(J,mxResources.get("shadow"),da.shadowVisible),I=null;if("png"==N||"jpeg"==N||"webp"==
N)I=this.addCheckbox(J,mxResources.get("grid"),!1,this.isOffline()||!this.canvasSupported,!1,!0),ea+=30;var U=this.addCheckbox(J,mxResources.get("includeCopyOfMyDiagram")+":",F,null,null,"jpeg"!=N&&"webp"!=N),O=document.createElement("select");O.style.maxWidth="260px";O.style.marginLeft="28px";"png"==N||"svg"==N?(F=function(){U.checked?O.removeAttribute("disabled"):O.setAttribute("disabled","disabled")},da=document.createElement("option"),da.setAttribute("value","allPages"),mxUtils.write(da,mxResources.get("allPages")),
-O.appendChild(da),da=document.createElement("option"),da.setAttribute("value","currentPage"),mxUtils.write(da,mxResources.get("currentPage")),O.appendChild(da),U.style.marginBottom="12px",O.style.marginBottom="16px",J.appendChild(O),mxUtils.br(J),ea+=20,null!=this.lastEmbedInclude&&(O.value=this.lastEmbedInclude),mxEvent.addListener(U,"change",F),F()):U.style.marginBottom="16px";var T=document.createElement("input");T.style.marginBottom="16px";T.style.marginRight="8px";T.setAttribute("type","checkbox");
-var X=document.createElement("input");X.style.marginBottom="16px";X.style.marginRight="8px";X.setAttribute("type","checkbox");f&&(T.checked=null!=this.lastEmbedImages?this.lastEmbedImages:!0,J.appendChild(T),mxUtils.write(J,mxResources.get("embedImages")),mxUtils.br(J),X.checked=null!=this.lastEmbedFonts?this.lastEmbedImages:!0,J.appendChild(X),mxUtils.write(J,mxResources.get("embedFonts")),mxUtils.br(J),ea+=50);var aa=document.createElement("select");aa.style.maxWidth="260px";aa.style.marginLeft=
+O.appendChild(da),da=document.createElement("option"),da.setAttribute("value","currentPage"),mxUtils.write(da,mxResources.get("currentPage")),O.appendChild(da),U.style.marginBottom="12px",O.style.marginBottom="16px",J.appendChild(O),mxUtils.br(J),ea+=20,null!=this.lastEmbedInclude&&(O.value=this.lastEmbedInclude),mxEvent.addListener(U,"change",F),F()):U.style.marginBottom="16px";var S=document.createElement("input");S.style.marginBottom="16px";S.style.marginRight="8px";S.setAttribute("type","checkbox");
+var X=document.createElement("input");X.style.marginBottom="16px";X.style.marginRight="8px";X.setAttribute("type","checkbox");f&&(S.checked=null!=this.lastEmbedImages?this.lastEmbedImages:!0,J.appendChild(S),mxUtils.write(J,mxResources.get("embedImages")),mxUtils.br(J),X.checked=null!=this.lastEmbedFonts?this.lastEmbedImages:!0,J.appendChild(X),mxUtils.write(J,mxResources.get("embedFonts")),mxUtils.br(J),ea+=50);var aa=document.createElement("select");aa.style.maxWidth="260px";aa.style.marginLeft=
"8px";C=document.createElement("option");C.setAttribute("value","auto");mxUtils.write(C,mxResources.get("automatic"));aa.appendChild(C);F=document.createElement("option");F.setAttribute("value","blank");mxUtils.write(F,mxResources.get("openInNewWindow"));aa.appendChild(F);F=document.createElement("option");F.setAttribute("value","self");mxUtils.write(F,mxResources.get("openInThisWindow"));aa.appendChild(F);F=document.createElement("div");mxUtils.write(F,mxResources.get("LinksLost"));F.style.margin=
-"7px";F.style.display="none";"svg"==N&&(mxUtils.write(J,mxResources.get("links")+":"),J.appendChild(aa),J.appendChild(F),mxUtils.br(J),mxUtils.br(J),ea+=50);l=new CustomDialog(this,J,mxUtils.bind(this,function(){this.lastExportBorder=ba.value;this.lastExportZoom=W.value;this.lastEmbedImages=T.checked;this.lastEmbedFonts=X.checked;this.lastEmbedInclude=O.value;z(W.value,Z.checked,!ha.checked,A.checked,U.checked,T.checked&&f,ba.value,la.checked,("png"==N||"svg"==N)&&"currentPage"==O.value,aa.value,
+"7px";F.style.display="none";"svg"==N&&(mxUtils.write(J,mxResources.get("links")+":"),J.appendChild(aa),J.appendChild(F),mxUtils.br(J),mxUtils.br(J),ea+=50);l=new CustomDialog(this,J,mxUtils.bind(this,function(){this.lastExportBorder=ba.value;this.lastExportZoom=W.value;this.lastEmbedImages=S.checked;this.lastEmbedFonts=X.checked;this.lastEmbedInclude=O.value;z(W.value,Z.checked,!ha.checked,A.checked,U.checked,S.checked&&f,ba.value,la.checked,("png"==N||"svg"==N)&&"currentPage"==O.value,aa.value,
null!=I?I.checked:null,null!=k?k.value:null,Y.value,X.checked)}),null,l,t);this.showDialog(l.container,340,ea,!0,!0,null,null,null,null,!0);W.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?W.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(c,f,l,t,z){var C=document.createElement("div");C.style.whiteSpace="nowrap";var F=this.editor.graph;if(null!=f){var N=document.createElement("h3");mxUtils.write(N,f);N.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";
C.appendChild(N)}var K=this.addCheckbox(C,mxResources.get("fit"),!0),J=this.addCheckbox(C,mxResources.get("shadow"),F.shadowVisible&&t,!t),da=this.addCheckbox(C,l),ea=this.addCheckbox(C,mxResources.get("lightbox"),!0),ca=this.addEditButton(C,ea),W=ca.getEditInput(),ba=1<F.model.getChildCount(F.model.getRoot()),ha=this.addCheckbox(C,mxResources.get("layers"),ba,!ba);ha.style.marginLeft=W.style.marginLeft;ha.style.marginBottom="12px";ha.style.marginTop="8px";mxEvent.addListener(ea,"change",function(){ea.checked?
(ba&&ha.removeAttribute("disabled"),W.removeAttribute("disabled")):(ha.setAttribute("disabled","disabled"),W.setAttribute("disabled","disabled"));W.checked&&ea.checked?ca.getEditSelect().removeAttribute("disabled"):ca.getEditSelect().setAttribute("disabled","disabled")});f=new CustomDialog(this,C,mxUtils.bind(this,function(){c(K.checked,J.checked,da.checked,ea.checked,ca.getLink(),ha.checked)}),null,mxResources.get("embed"),z);this.showDialog(f.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=
@@ -3744,14 +3744,14 @@ W=[K.insertVertex(null,null,"",l,t,z,C,da+"image="+c+";")])):/(\.*<graphml )/.te
413==ha.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))))}),null!=c?this.parseFileData(c,f,F):this.parseFile(K,f,F)):0==c.indexOf("PK")&&null!=K?(ca=!0,this.importZipFile(K,ba,mxUtils.bind(this,function(){W=this.insertTextAt(this.validateFileData(c),l,t,!0,null,J);N(W)}))):/(\.v(sd|dx))($|\?)/i.test(F)||/(\.vs(s|x))($|\?)/i.test(F)||(W=this.insertTextAt(this.validateFileData(c),l,t,!0,null,J,null,null!=ea?mxEvent.isControlDown(ea):null));ca||null==N||N(W);return W};EditorUi.prototype.importFiles=
function(c,f,l,t,z,C,F,N,K,J,da,ea,ca){t=null!=t?t:this.maxImageSize;J=null!=J?J:this.maxImageBytes;var W=null!=f&&null!=l,ba=!0;f=null!=f?f:0;l=null!=l?l:0;var ha=!1;if(!mxClient.IS_CHROMEAPP&&null!=c)for(var la=da||this.resampleThreshold,Y=0;Y<c.length;Y++)if("image/svg"!==c[Y].type.substring(0,9)&&"image/"===c[Y].type.substring(0,6)&&c[Y].size>la){ha=!0;break}var ma=mxUtils.bind(this,function(){var Z=this.editor.graph,k=Z.gridSize;z=null!=z?z:mxUtils.bind(this,function(X,aa,ja,pa,sa,qa,wa,Ba,za){try{if(null!=
X&&"<mxlibrary"==X.substring(0,10))return this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,X,wa)),this.showSidebar(),null;this.isCompatibleString(X)&&1==c.length&&null!=ca&&"drop"==ca.type&&this.isBlankFile()&&!this.canUndo()&&(W=!1,pa=ja=0);return this.importFile(X,aa,ja,pa,sa,qa,wa,Ba,za,W,ea,ca)}catch(Ea){return this.handleError(Ea),null}});C=null!=C?C:mxUtils.bind(this,function(X){Z.setSelectionCells(X)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var A=c.length,
-I=A,U=[],O=mxUtils.bind(this,function(X,aa){U[X]=aa;if(0==--I){this.spinner.stop();if(null!=N)N(U);else{var ja=[];Z.getModel().beginUpdate();try{for(X=0;X<U.length;X++){var pa=U[X]();null!=pa&&(ja=ja.concat(pa))}}finally{Z.getModel().endUpdate()}}C(ja)}}),T=0;T<A;T++)mxUtils.bind(this,function(X){var aa=c[X];if(null!=aa){var ja=new FileReader;ja.onload=mxUtils.bind(this,function(pa){if(null==F||F(aa))try{if("image/"==aa.type.substring(0,6))if("image/svg"==aa.type.substring(0,9)){var sa=Graph.clipSvgDataUri(pa.target.result),
+I=A,U=[],O=mxUtils.bind(this,function(X,aa){U[X]=aa;if(0==--I){this.spinner.stop();if(null!=N)N(U);else{var ja=[];Z.getModel().beginUpdate();try{for(X=0;X<U.length;X++){var pa=U[X]();null!=pa&&(ja=ja.concat(pa))}}finally{Z.getModel().endUpdate()}}C(ja)}}),S=0;S<A;S++)mxUtils.bind(this,function(X){var aa=c[X];if(null!=aa){var ja=new FileReader;ja.onload=mxUtils.bind(this,function(pa){if(null==F||F(aa))try{if("image/"==aa.type.substring(0,6))if("image/svg"==aa.type.substring(0,9)){var sa=Graph.clipSvgDataUri(pa.target.result),
qa=sa.indexOf(","),wa=decodeURIComponent(escape(atob(sa.substring(qa+1)))),Ba=mxUtils.parseXml(wa),za=Ba.getElementsByTagName("svg");if(0<za.length){var Ea=za[0],ra=ea?null:Ea.getAttribute("content");null!=ra&&"<"!=ra.charAt(0)&&"%"!=ra.charAt(0)&&(ra=unescape(window.atob?atob(ra):Base64.decode(ra,!0)));null!=ra&&"%"==ra.charAt(0)&&(ra=decodeURIComponent(ra));null==ra||"<mxfile "!==ra.substring(0,8)&&"<mxGraphModel "!==ra.substring(0,14)?O(X,mxUtils.bind(this,function(){try{if(null!=Ba){var Ma=Ba.getElementsByTagName("svg");
if(0<Ma.length){var Ha=Ma[0],Aa=Ha.getAttribute("width"),Ra=Ha.getAttribute("height");Aa=null!=Aa&&"%"!=Aa.charAt(Aa.length-1)?parseFloat(Aa):NaN;Ra=null!=Ra&&"%"!=Ra.charAt(Ra.length-1)?parseFloat(Ra):NaN;var Za=Ha.getAttribute("viewBox");if(null==Za||0==Za.length)Ha.setAttribute("viewBox","0 0 "+Aa+" "+Ra);else if(isNaN(Aa)||isNaN(Ra)){var La=Za.split(" ");3<La.length&&(Aa=parseFloat(La[2]),Ra=parseFloat(La[3]))}sa=Editor.createSvgDataUri(mxUtils.getXml(Ha));var $a=Math.min(1,Math.min(t/Math.max(1,
Aa)),t/Math.max(1,Ra)),Da=z(sa,aa.type,f+X*k,l+X*k,Math.max(1,Math.round(Aa*$a)),Math.max(1,Math.round(Ra*$a)),aa.name);if(null!=Da&&(isNaN(Aa)||isNaN(Ra))){var x=new Image;x.onload=mxUtils.bind(this,function(){Aa=Math.max(1,x.width);Ra=Math.max(1,x.height);Da[0].geometry.width=Aa;Da[0].geometry.height=Ra;Ha.setAttribute("viewBox","0 0 "+Aa+" "+Ra);sa=Editor.createSvgDataUri(mxUtils.getXml(Ha));var M=sa.indexOf(";");0<M&&(sa=sa.substring(0,M)+sa.substring(sa.indexOf(",",M+1)));Z.setCellStyles("image",
sa,[Da[0]])});x.src=Editor.createSvgDataUri(mxUtils.getXml(Ha))}return Da}}}catch(M){}return null})):O(X,mxUtils.bind(this,function(){return z(ra,"text/xml",f+X*k,l+X*k,0,0,aa.name)}))}else O(X,mxUtils.bind(this,function(){return null}))}else{qa=!1;if("image/png"==aa.type){var ya=ea?null:this.extractGraphModelFromPng(pa.target.result);if(null!=ya&&0<ya.length){var Ca=new Image;Ca.src=pa.target.result;O(X,mxUtils.bind(this,function(){return z(ya,"text/xml",f+X*k,l+X*k,Ca.width,Ca.height,aa.name)}));
qa=!0}}qa||(mxClient.IS_CHROMEAPP?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("dragAndDropNotSupported"),mxResources.get("cancel"),mxUtils.bind(this,function(){}),null,mxResources.get("ok"),mxUtils.bind(this,function(){this.actions.get("import").funct()}))):this.loadImage(pa.target.result,mxUtils.bind(this,function(Ma){this.resizeImage(Ma,pa.target.result,mxUtils.bind(this,function(Ha,Aa,Ra){O(X,mxUtils.bind(this,function(){if(null!=Ha&&Ha.length<J){var Za=ba&&this.isResampleImageSize(aa.size,
da)?Math.min(1,Math.min(t/Aa,t/Ra)):1;return z(Ha,aa.type,f+X*k,l+X*k,Math.round(Aa*Za),Math.round(Ra*Za),aa.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),ba,t,da,aa.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else sa=pa.target.result,z(sa,aa.type,f+X*k,l+X*k,240,160,aa.name,function(Ma){O(X,function(){return Ma})},aa)}catch(Ma){O(X,mxUtils.bind(this,function(){return null})),null!=window.console&&
-console.error(Ma,aa)}else O(X,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(aa.name)?z(null,aa.type,f+X*k,l+X*k,240,160,aa.name,function(pa){O(X,function(){return pa})},aa):"image"==aa.type.substring(0,5)||"application/pdf"==aa.type?ja.readAsDataURL(aa):ja.readAsText(aa)}})(T)});if(ha){ha=[];for(Y=0;Y<c.length;Y++)ha.push(c[Y]);c=ha;this.confirmImageResize(function(Z){ba=Z;ma()},K)}else ma()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&
+console.error(Ma,aa)}else O(X,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(aa.name)?z(null,aa.type,f+X*k,l+X*k,240,160,aa.name,function(pa){O(X,function(){return pa})},aa):"image"==aa.type.substring(0,5)||"application/pdf"==aa.type?ja.readAsDataURL(aa):ja.readAsText(aa)}})(S)});if(ha){ha=[];for(Y=0;Y<c.length;Y++)ha.push(c[Y]);c=ha;this.confirmImageResize(function(Z){ba=Z;ma()},K)}else ma()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&
this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(c,f){f=null!=f?f:!1;var l=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},t=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,z=function(C,F){if(C||f)mxSettings.setResizeImages(C?F:null),mxSettings.save();l();c(F)};null==t||f?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(C){z(C,
!0)},function(C){z(C,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?226:200,!0,!0):z(!1,t)};EditorUi.prototype.parseFile=function(c,f,l){l=null!=l?l:c.name;var t=new FileReader;t.onload=mxUtils.bind(this,function(){this.parseFileData(t.result,f,l)});t.readAsText(c)};EditorUi.prototype.parseFileData=
function(c,f,l){var t=new XMLHttpRequest;t.open("POST",OPEN_URL);t.setRequestHeader("Content-Type","application/x-www-form-urlencoded");t.onreadystatechange=function(){f(t)};t.send("format=xml&filename="+encodeURIComponent(l)+"&data="+encodeURIComponent(c));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(z){}};EditorUi.prototype.isResampleImageSize=function(c,f){f=null!=f?f:this.resampleThreshold;return c>f};EditorUi.prototype.resizeImage=function(c,f,l,t,z,C,
@@ -3759,15 +3759,15 @@ F){z=null!=z?z:this.maxImageSize;var N=Math.max(1,c.width),K=Math.max(1,c.height
this.maxImageSize/2&&f.length>this.maxImageBytes?this.resizeImage(c,f,l,t,z/1.5,C,F):l(f,N,K)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};EditorUi.prototype.loadImage=function(c,f,l){try{var t=new Image;t.onload=function(){t.width=0<t.width?t.width:120;t.height=0<t.height?t.height:120;f(t)};null!=l&&(t.onerror=l);t.src=c}catch(z){if(null!=l)l(z);else throw z;}};EditorUi.prototype.getDefaultSketchMode=function(){var c="1"==urlParams.sketch;return"0"!=
(null!=urlParams.rough?urlParams.rough:c)};var u=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());u.apply(this,arguments);Editor.isSettingsEnabled()&&this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?mxSettings.settings.sketchMode:this.getDefaultSketchMode())};
var p=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();var c=this,f=this.editor.graph,l=f.isEnabled;f.isEnabled=function(){return l.apply(this,arguments)&&!c.isLocked()};Graph.touchStyle&&(f.panningHandler.isPanningTrigger=function(k){var A=k.getEvent();return null==k.getState()&&!mxEvent.isMouseEvent(A)&&!f.freehand.isDrawing()||mxEvent.isPopupTrigger(A)&&(null==k.getState()||mxEvent.isControlDown(A)||mxEvent.isShiftDown(A))});
-f.cellEditor.editPlantUmlData=function(k,A,I){var U=JSON.parse(I);A=new TextareaDialog(c,mxResources.get("plantUml")+":",U.data,function(O){null!=O&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generatePlantUmlImage(O,U.format,function(T,X,aa){c.spinner.stop();f.getModel().beginUpdate();try{if("txt"==U.format)f.labelChanged(k,"<pre>"+T+"</pre>"),f.updateCellSize(k,!0);else{f.setCellStyles("image",c.convertDataUri(T),[k]);var ja=f.model.getGeometry(k);null!=ja&&(ja=ja.clone(),ja.width=
-X,ja.height=aa,f.cellsResized([k],[ja],!1))}f.setAttributeForCell(k,"plantUmlData",JSON.stringify({data:O,format:U.format}))}finally{f.getModel().endUpdate()}},function(T){c.handleError(T)})},null,null,400,220);c.showDialog(A.container,420,300,!0,!0);A.init()};f.cellEditor.editMermaidData=function(k,A,I){var U=JSON.parse(I);A=new TextareaDialog(c,mxResources.get("mermaid")+":",U.data,function(O){null!=O&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generateMermaidImage(O,U.config,
-function(T,X,aa){c.spinner.stop();f.getModel().beginUpdate();try{f.setCellStyles("image",T,[k]);var ja=f.model.getGeometry(k);null!=ja&&(ja=ja.clone(),ja.width=Math.max(ja.width,X),ja.height=Math.max(ja.height,aa),f.cellsResized([k],[ja],!1));f.setAttributeForCell(k,"mermaidData",JSON.stringify({data:O,config:U.config},null,2))}finally{f.getModel().endUpdate()}},function(T){c.handleError(T)})},null,null,400,220);c.showDialog(A.container,420,300,!0,!0);A.init()};var t=f.cellEditor.startEditing;f.cellEditor.startEditing=
+f.cellEditor.editPlantUmlData=function(k,A,I){var U=JSON.parse(I);A=new TextareaDialog(c,mxResources.get("plantUml")+":",U.data,function(O){null!=O&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generatePlantUmlImage(O,U.format,function(S,X,aa){c.spinner.stop();f.getModel().beginUpdate();try{if("txt"==U.format)f.labelChanged(k,"<pre>"+S+"</pre>"),f.updateCellSize(k,!0);else{f.setCellStyles("image",c.convertDataUri(S),[k]);var ja=f.model.getGeometry(k);null!=ja&&(ja=ja.clone(),ja.width=
+X,ja.height=aa,f.cellsResized([k],[ja],!1))}f.setAttributeForCell(k,"plantUmlData",JSON.stringify({data:O,format:U.format}))}finally{f.getModel().endUpdate()}},function(S){c.handleError(S)})},null,null,400,220);c.showDialog(A.container,420,300,!0,!0);A.init()};f.cellEditor.editMermaidData=function(k,A,I){var U=JSON.parse(I);A=new TextareaDialog(c,mxResources.get("mermaid")+":",U.data,function(O){null!=O&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generateMermaidImage(O,U.config,
+function(S,X,aa){c.spinner.stop();f.getModel().beginUpdate();try{f.setCellStyles("image",S,[k]);var ja=f.model.getGeometry(k);null!=ja&&(ja=ja.clone(),ja.width=Math.max(ja.width,X),ja.height=Math.max(ja.height,aa),f.cellsResized([k],[ja],!1));f.setAttributeForCell(k,"mermaidData",JSON.stringify({data:O,config:U.config},null,2))}finally{f.getModel().endUpdate()}},function(S){c.handleError(S)})},null,null,400,220);c.showDialog(A.container,420,300,!0,!0);A.init()};var t=f.cellEditor.startEditing;f.cellEditor.startEditing=
function(k,A){try{var I=this.graph.getAttributeForCell(k,"plantUmlData");if(null!=I)this.editPlantUmlData(k,A,I);else if(I=this.graph.getAttributeForCell(k,"mermaidData"),null!=I&&window.isMermaidEnabled)this.editMermaidData(k,A,I);else{var U=f.getCellStyle(k);"1"==mxUtils.getValue(U,"metaEdit","0")?c.showDataDialog(k):t.apply(this,arguments)}}catch(O){c.handleError(O)}};f.getLinkTitle=function(k){return c.getLinkTitle(k)};f.customLinkClicked=function(k,A){var I=!1;try{var U=this.getGraphBounds();
c.handleCustomLink(k,A);I=!0;c.chromelessResize&&!U.equals(this.getGraphBounds())&&(c.chromelessResize(),this.scrollCellToVisible(A))}catch(O){c.handleError(O)}return I};var z=f.parseBackgroundImage;f.parseBackgroundImage=function(k){var A=z.apply(this,arguments);null!=A&&null!=A.src&&Graph.isPageLink(A.src)&&(A={originalSrc:A.src});return A};var C=f.setBackgroundImage;f.setBackgroundImage=function(k){null!=k&&null!=k.originalSrc&&(k=c.createImageForPageLink(k.originalSrc,c.currentPage,this));C.apply(this,
arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){f.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){f.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",mxUtils.bind(this,function(k,A){k=null!=f.backgroundImage?f.backgroundImage.originalSrc:null;if(null!=k){var I=k.indexOf(",");if(0<I)for(k=k.substring(I+1),A=A.getProperty("patches"),I=0;I<A.length;I++)if(null!=A[I][EditorUi.DIFF_UPDATE]&&null!=A[I][EditorUi.DIFF_UPDATE][k]||
null!=A[I][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(A[I][EditorUi.DIFF_REMOVE],k)){f.refreshBackgroundImage();break}}}));var F=f.getBackgroundImageObject;f.getBackgroundImageObject=function(k,A){var I=F.apply(this,arguments);null!=I&&null!=I.originalSrc&&(I=A?c.createImageForPageLink(I.originalSrc,null,null,!0):{src:I.originalSrc});return I};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://www.drawio.com/doc/faq/predefined-placeholders");
-if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var N=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(k){k=null!=k?k:"";"1"==urlParams.dev&&(k+=(0<k.length?"&":"?")+"dev=1");return N.apply(this,arguments)};var K=f.addClickHandler;f.addClickHandler=function(k,A,I){var U=A;A=function(O,T,X){if(null==T){var aa=mxEvent.getSource(O);"a"==aa.nodeName.toLowerCase()&&(T=aa.getAttribute("href"))}null!=
-T&&f.isCustomLink(T)&&(mxEvent.isTouchEvent(O)||!mxEvent.isPopupTrigger(O))&&f.customLinkClicked(T,X)&&mxEvent.consume(O);null!=U&&U(O,T,X)};K.call(this,k,A,I)};p.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(f.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var J=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(k,A,I){f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(k,["zoomIn","zoomOut","-"],null,I);J.apply(this,arguments);
+if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var N=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(k){k=null!=k?k:"";"1"==urlParams.dev&&(k+=(0<k.length?"&":"?")+"dev=1");return N.apply(this,arguments)};var K=f.addClickHandler;f.addClickHandler=function(k,A,I){var U=A;A=function(O,S,X){if(null==S){var aa=mxEvent.getSource(O);"a"==aa.nodeName.toLowerCase()&&(S=aa.getAttribute("href"))}null!=
+S&&f.isCustomLink(S)&&(mxEvent.isTouchEvent(O)||!mxEvent.isPopupTrigger(O))&&f.customLinkClicked(S,X)&&mxEvent.consume(O);null!=U&&U(O,S,X)};K.call(this,k,A,I)};p.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(f.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var J=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(k,A,I){f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(k,["zoomIn","zoomOut","-"],null,I);J.apply(this,arguments);
f.isSelectionEmpty()||null==c.addSelectionToScratchpad||this.addMenuItems(k,["-","addToScratchpad"],null,I);f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(k,["-","exitGroup","home"],null,I)};var da=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(k,A,I){if(c.editor.graph.isSelectionEmpty())da.apply(this,arguments),c.menus.addMenuItems(k,["copyAsImage"],null,I);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(k,A,I):this.addPopupMenuArrangeItems(k,
A,I),this.addMenuItems(k,"- cut copy copyAsImage duplicate -".split(" "),null,I),this.isShowCellEditItems()||this.addPopupDeleteItem(k,A,I),this.addMenuItems(k,["lockUnlock","-"],null,I),!this.isShowStyleItems()){if(1==f.getSelectionCount()&&!f.isCellLocked(A)&&f.isCellEditable(A)&&(this.addSubmenu("editCell",k,null,mxResources.get("edit")),k.addSeparator(),f.getModel().isEdge(A))){this.addSubmenu("line",k);var U=f.getModel().getGeometry(A);null!=U&&null!=U.points&&0<U.points.length&&this.addMenuItems(k,
["clearWaypoints"],null,I)}1==f.getSelectionCount()&&this.addMenuItems(k,["enterGroup"],null,I);U=c.getSelectionState();null!=U.mergeCell?this.addMenuItem(k,"mergeCells"):(1<U.style.colspan||1<U.style.rowspan)&&this.addMenuItem(k,"unmergeCells")}};this.menus.isShowStyleItems=function(){return"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme};this.menus.isShowHistoryItems=function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;
@@ -3777,20 +3777,20 @@ f.view.validate());W=A;ba=k}));var ha=f.labelLinkClicked;f.labelLinkClicked=func
var la=this.actions.get("print");la.setEnabled(!mxClient.IS_IOS||!navigator.standalone);la.visible=la.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(77,!0,"editGeometry",!0),this.keyHandler.bindAction(75,!0,"tags"),this.keyHandler.bindAction(65,!1,"insertText"),this.keyHandler.bindAction(83,!1,"insertNote"),this.keyHandler.bindAction(68,!1,"insertRectangle"),this.keyHandler.bindAction(70,!1,"insertEllipse"),this.keyHandler.bindAction(76,
!1,"insertLink"),this.keyHandler.bindAction(82,!1,"insertRhombus"),this.keyHandler.bindAction(67,!1,"insertEdge"),this.keyHandler.bindAction(88,!1,"insertFreehand"),this.keyHandler.bindAction(75,!0,"toggleShapes",!0),this.keyHandler.bindAction(54,!0,"adaptiveColors",!0),this.altShiftActions[81]="copyStyle",this.altShiftActions[87]="pasteStyle",this.altShiftActions[83]="synchronize","1"==urlParams.embedInline&&f.addListener(mxEvent.ESCAPE,function(k,A){null!=A&&f.isEnabled()&&!f.isEditing()&&null!=
A.getProperty("event")&&c.actions.get("exit").funct()}),this.installImagePasteHandler(),this.installNativeClipboardHandler();this.addListener("realtimeStateChanged",mxUtils.bind(this,function(){this.updateUserElement()}));this.spinner=this.createSpinner(null,null,24);Graph.fileSupport&&f.addListener(mxEvent.EDITING_STARTED,mxUtils.bind(this,function(k){var A=f.cellEditor.text2,I=null;null!=A&&(mxEvent.addListener(A,"dragleave",function(U){null!=I&&(I.parentNode.removeChild(I),I=null);U.stopPropagation();
-U.preventDefault()}),mxEvent.addListener(A,"dragover",mxUtils.bind(this,function(U){null==I&&(!mxClient.IS_IE||10<document.documentMode)&&(I=this.highlightElement(A));U.stopPropagation();U.preventDefault()})),mxEvent.addListener(A,"drop",mxUtils.bind(this,function(U){null!=I&&(I.parentNode.removeChild(I),I=null);if(0<U.dataTransfer.files.length)this.importFiles(U.dataTransfer.files,0,0,this.maxImageSize,function(T,X,aa,ja,pa,sa){f.insertImage(T,pa,sa)},function(){},function(T){return"image/"==T.type.substring(0,
-6)},function(T){for(var X=0;X<T.length;X++)T[X]()},mxEvent.isControlDown(U));else if(0<=mxUtils.indexOf(U.dataTransfer.types,"text/uri-list")){var O=U.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(O)?this.loadImage(decodeURIComponent(O),mxUtils.bind(this,function(T){var X=Math.max(1,T.width);T=Math.max(1,T.height);var aa=this.maxImageSize;aa=Math.min(1,Math.min(aa/Math.max(1,X)),aa/Math.max(1,T));f.insertImage(decodeURIComponent(O),X*aa,T*aa)})):document.execCommand("insertHTML",
+U.preventDefault()}),mxEvent.addListener(A,"dragover",mxUtils.bind(this,function(U){null==I&&(!mxClient.IS_IE||10<document.documentMode)&&(I=this.highlightElement(A));U.stopPropagation();U.preventDefault()})),mxEvent.addListener(A,"drop",mxUtils.bind(this,function(U){null!=I&&(I.parentNode.removeChild(I),I=null);if(0<U.dataTransfer.files.length)this.importFiles(U.dataTransfer.files,0,0,this.maxImageSize,function(S,X,aa,ja,pa,sa){f.insertImage(S,pa,sa)},function(){},function(S){return"image/"==S.type.substring(0,
+6)},function(S){for(var X=0;X<S.length;X++)S[X]()},mxEvent.isControlDown(U));else if(0<=mxUtils.indexOf(U.dataTransfer.types,"text/uri-list")){var O=U.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(O)?this.loadImage(decodeURIComponent(O),mxUtils.bind(this,function(S){var X=Math.max(1,S.width);S=Math.max(1,S.height);var aa=this.maxImageSize;aa=Math.min(1,Math.min(aa/Math.max(1,X)),aa/Math.max(1,S));f.insertImage(decodeURIComponent(O),X*aa,S*aa)})):document.execCommand("insertHTML",
!1,U.dataTransfer.getData("text/plain"))}else 0<=mxUtils.indexOf(U.dataTransfer.types,"text/html")?document.execCommand("insertHTML",!1,U.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(U.dataTransfer.types,"text/plain")&&document.execCommand("insertHTML",!1,U.dataTransfer.getData("text/plain"));U.stopPropagation();U.preventDefault()})))}));if(Editor.isSettingsEnabled()){la=this.editor.graph.view;var Y=mxSettings.getUnit();la.setUnit(Y);Editor.pageSizeUnit=Y==mxConstants.METERS?mxConstants.MILLIMETERS:
Y;la.addListener("unitChanged",function(k,A){k=A.getProperty("unit");mxSettings.setUnit(k);mxSettings.save();Editor.pageSizeUnit=k==mxConstants.METERS?mxConstants.MILLIMETERS:k});this.ruler=!this.canvasSupported||9==document.documentMode||"1"!=urlParams.ruler&&!mxSettings.isRulerOn()||this.editor.isChromelessView()&&!this.editor.editable?null:new mxDualRuler(this,la.unit);this.refresh()}if("1"==urlParams.styledev){la=document.getElementById("geFooter");null!=la&&(this.styleInput=document.createElement("input"),
this.styleInput.setAttribute("type","text"),this.styleInput.style.position="absolute",this.styleInput.style.top="14px",this.styleInput.style.left="2px",this.styleInput.style.width="98%",this.styleInput.style.visibility="hidden",this.styleInput.style.opacity="0.9",mxEvent.addListener(this.styleInput,"change",mxUtils.bind(this,function(){this.editor.graph.getModel().setStyle(this.editor.graph.getSelectionCell(),this.styleInput.value)})),la.appendChild(this.styleInput),this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,
mxUtils.bind(this,function(k,A){0<this.editor.graph.getSelectionCount()?(k=this.editor.graph.getSelectionCell(),k=this.editor.graph.getModel().getStyle(k),this.styleInput.value=k||"",this.styleInput.style.visibility="visible"):this.styleInput.style.visibility="hidden"})));var ma=this.isSelectionAllowed;this.isSelectionAllowed=function(k){return mxEvent.getSource(k)==this.styleInput?!0:ma.apply(this,arguments)}}la=document.getElementById("geInfo");null!=la&&la.parentNode.removeChild(la);if(Graph.fileSupport&&
(!this.editor.chromeless||this.editor.editable)){var Z=null;mxEvent.addListener(f.container,"dragleave",function(k){f.isEnabled()&&(null!=Z&&(Z.parentNode.removeChild(Z),Z=null),k.stopPropagation(),k.preventDefault())});mxEvent.addListener(f.container,"dragover",mxUtils.bind(this,function(k){null==Z&&(!mxClient.IS_IE||10<document.documentMode)&&(Z=this.highlightElement(f.container));null!=this.sidebar&&this.sidebar.hideTooltip();k.stopPropagation();k.preventDefault()}));mxEvent.addListener(f.container,
-"drop",mxUtils.bind(this,function(k){null!=Z&&(Z.parentNode.removeChild(Z),Z=null);if(f.isEnabled()){var A=mxUtils.convertPoint(f.container,mxEvent.getClientX(k),mxEvent.getClientY(k)),I=k.dataTransfer.files,U=f.view.translate,O=f.view.scale,T=A.x/O-U.x,X=A.y/O-U.y;if(0<I.length)"1"!=urlParams.embed&&mxEvent.isShiftDown(k)?(this.isBlankFile()&&!this.canUndo()&&null!=this.getCurrentFile()&&this.fileLoaded(null),this.openFiles(I,!0)):(mxEvent.isAltDown(k)&&(X=T=null),this.importFiles(I,T,X,this.maxImageSize,
-null,null,null,null,mxEvent.isControlDown(k),null,null,mxEvent.isShiftDown(k),k));else{mxEvent.isAltDown(k)&&(X=T=0);var aa=0<=mxUtils.indexOf(k.dataTransfer.types,"text/uri-list")?k.dataTransfer.getData("text/uri-list"):null;A=this.extractGraphModelFromEvent(k,null!=this.pages);if(null!=A)f.setSelectionCells(this.importXml(A,T,X,!0));else if(0<=mxUtils.indexOf(k.dataTransfer.types,"text/html")){var ja=k.dataTransfer.getData("text/html");A=document.createElement("div");A.innerHTML=Graph.sanitizeHtml(ja);
-var pa=null;I=A.getElementsByTagName("img");null!=I&&1==I.length?(ja=I[0].getAttribute("src"),null==ja&&(ja=I[0].getAttribute("srcset")),/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(ja)||(pa=!0)):(I=A.getElementsByTagName("a"),null!=I&&1==I.length?ja=I[0].getAttribute("href"):(A=A.getElementsByTagName("pre"),null!=A&&1==A.length&&(ja=mxUtils.getTextContent(A[0]))));var sa=!0,qa=mxUtils.bind(this,function(){f.setSelectionCells(this.insertTextAt(ja,T,X,!0,pa,null,sa,mxEvent.isControlDown(k)))});pa&&null!=
-ja&&ja.length>this.resampleThreshold?this.confirmImageResize(function(wa){sa=wa;qa()},mxEvent.isControlDown(k)):qa()}else null!=aa&&/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(aa)?this.loadImage(decodeURIComponent(aa),mxUtils.bind(this,function(wa){var Ba=Math.max(1,wa.width);wa=Math.max(1,wa.height);var za=this.maxImageSize;za=Math.min(1,Math.min(za/Math.max(1,Ba)),za/Math.max(1,wa));f.setSelectionCell(f.insertVertex(null,null,"",T,X,Ba*za,wa*za,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+
-aa+";"))}),mxUtils.bind(this,function(wa){f.setSelectionCells(this.insertTextAt(aa,T,X,!0))})):0<=mxUtils.indexOf(k.dataTransfer.types,"text/plain")&&f.setSelectionCells(this.insertTextAt(k.dataTransfer.getData("text/plain"),T,X,!0))}}k.stopPropagation();k.preventDefault()}),!1)}this.initPages();"1"==urlParams.embed&&this.initializeEmbedMode();this.addListener("currentThemeChanged",mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.updateEntries();this.updateButtonContainer();this.updateDocumentTitle();
+"drop",mxUtils.bind(this,function(k){null!=Z&&(Z.parentNode.removeChild(Z),Z=null);if(f.isEnabled()){var A=mxUtils.convertPoint(f.container,mxEvent.getClientX(k),mxEvent.getClientY(k)),I=k.dataTransfer.files,U=f.view.translate,O=f.view.scale,S=A.x/O-U.x,X=A.y/O-U.y;if(0<I.length)"1"!=urlParams.embed&&mxEvent.isShiftDown(k)?(this.isBlankFile()&&!this.canUndo()&&null!=this.getCurrentFile()&&this.fileLoaded(null),this.openFiles(I,!0)):(mxEvent.isAltDown(k)&&(X=S=null),this.importFiles(I,S,X,this.maxImageSize,
+null,null,null,null,mxEvent.isControlDown(k),null,null,mxEvent.isShiftDown(k),k));else{mxEvent.isAltDown(k)&&(X=S=0);var aa=0<=mxUtils.indexOf(k.dataTransfer.types,"text/uri-list")?k.dataTransfer.getData("text/uri-list"):null;A=this.extractGraphModelFromEvent(k,null!=this.pages);if(null!=A)f.setSelectionCells(this.importXml(A,S,X,!0));else if(0<=mxUtils.indexOf(k.dataTransfer.types,"text/html")){var ja=k.dataTransfer.getData("text/html");A=document.createElement("div");A.innerHTML=Graph.sanitizeHtml(ja);
+var pa=null;I=A.getElementsByTagName("img");null!=I&&1==I.length?(ja=I[0].getAttribute("src"),null==ja&&(ja=I[0].getAttribute("srcset")),/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(ja)||(pa=!0)):(I=A.getElementsByTagName("a"),null!=I&&1==I.length?ja=I[0].getAttribute("href"):(A=A.getElementsByTagName("pre"),null!=A&&1==A.length&&(ja=mxUtils.getTextContent(A[0]))));var sa=!0,qa=mxUtils.bind(this,function(){f.setSelectionCells(this.insertTextAt(ja,S,X,!0,pa,null,sa,mxEvent.isControlDown(k)))});pa&&null!=
+ja&&ja.length>this.resampleThreshold?this.confirmImageResize(function(wa){sa=wa;qa()},mxEvent.isControlDown(k)):qa()}else null!=aa&&/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(aa)?this.loadImage(decodeURIComponent(aa),mxUtils.bind(this,function(wa){var Ba=Math.max(1,wa.width);wa=Math.max(1,wa.height);var za=this.maxImageSize;za=Math.min(1,Math.min(za/Math.max(1,Ba)),za/Math.max(1,wa));f.setSelectionCell(f.insertVertex(null,null,"",S,X,Ba*za,wa*za,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+
+aa+";"))}),mxUtils.bind(this,function(wa){f.setSelectionCells(this.insertTextAt(aa,S,X,!0))})):0<=mxUtils.indexOf(k.dataTransfer.types,"text/plain")&&f.setSelectionCells(this.insertTextAt(k.dataTransfer.getData("text/plain"),S,X,!0))}}k.stopPropagation();k.preventDefault()}),!1)}this.initPages();"1"==urlParams.embed&&this.initializeEmbedMode();this.addListener("currentThemeChanged",mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.updateEntries();this.updateButtonContainer();this.updateDocumentTitle();
this.refresh()}));this.addListener("darkModeChanged",function(){mxClient.IS_SF&&f.view.validateBackground()});f.addListener("enabledChanged",mxUtils.bind(this,function(){f.isEnabled()||this.hideShapePicker()}));c=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==c.embedViewport)mxUtils.fit(this.div);else{var k=parseInt(this.div.offsetLeft),A=parseInt(this.div.offsetWidth),I=c.embedViewport.x+c.embedViewport.width,U=parseInt(this.div.offsetTop),O=parseInt(this.div.offsetHeight),
-T=c.embedViewport.y+c.embedViewport.height;this.div.style.left=Math.max(c.embedViewport.x,Math.min(k,I-A))+"px";this.div.style.top=Math.max(c.embedViewport.y,Math.min(U,T-O))+"px";this.div.style.height=Math.min(c.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(c.embedViewport.width,parseInt(this.div.style.width))+"px"}};if(!this.editor.chromeless||this.editor.editable)if(la=Editor.currentTheme,"simple"==la||"sketch"==la)Editor.currentTheme="",this.doSetCurrentTheme(la,
+S=c.embedViewport.y+c.embedViewport.height;this.div.style.left=Math.max(c.embedViewport.x,Math.min(k,I-A))+"px";this.div.style.top=Math.max(c.embedViewport.y,Math.min(U,S-O))+"px";this.div.style.height=Math.min(c.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(c.embedViewport.width,parseInt(this.div.style.width))+"px"}};if(!this.editor.chromeless||this.editor.editable)if(la=Editor.currentTheme,"simple"==la||"sketch"==la)Editor.currentTheme="",this.doSetCurrentTheme(la,
mxUtils.bind(this,function(){"1"==urlParams.embedInline?this.initializeInlineEmbedMode():(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<Editor.smallScreenWidth&&this.toggleFormatPanel(!1);this.fireEvent(new mxEventObject("themeInitialized"))}),!0);la=!1;null!=urlParams.dark?la=urlParams.dark:(la="dark"==Editor.currentTheme,!Editor.isSettingsEnabled()||"1"==urlParams.embed||la&&"auto"!=mxSettings.settings.darkMode||(la=mxSettings.settings.darkMode));"auto"==la&&
this.isAutoDarkModeSupported()&&(la=window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode("string"===typeof la?"1"==la:la);if(this.isAutoDarkModeSupported())try{window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",mxUtils.bind(this,function(k){this.isAutoDarkMode()&&this.setDarkMode(k.matches)}))}catch(k){this.actions.get("autoMode").setEnabled(!1)}"1"==urlParams["high-contrast"]?this.setHighContrast(!0):Editor.isSettingsEnabled()&&!this.editor.graph.isLightboxView()&&
null!=mxSettings.settings.highContrast&&this.setHighContrast(mxSettings.settings.highContrast);this.installSettings();this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(k,A){f.enableFlowAnimation=Editor.enableAnimations;f.refresh()}));f.enableFlowAnimation=Editor.enableAnimations;screen.width<=Editor.smallScreenWidth&&(this.formatWidth=0);"1"==urlParams.prefetchFonts&&c.editor.loadFonts()};var B=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=function(){if("simple"==
@@ -3835,7 +3835,7 @@ this.div.style.left=parseInt(this.div.style.left)+t-140+"px"):(this.div.style.wi
(c=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,(1200>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)||708>c)&&this.formatWindow.window.toggleMinimized()):this.formatWindow.window.setVisible(!1)}};var H=EditorUi.prototype.toggleFormatPanel;EditorUi.prototype.toggleFormatPanel=function(c){var f=this.formatWindow;null!=f?f.window.setVisible(null!=c?c:!this.isFormatPanelVisible()):H.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=
function(c){if(this.isShapesPanelVisible()!=c){var f=EditorUi.prototype.hsplitPosition;0==f&&(f=this.defaultSidebarWidth);var l=this.hsplitPosition,t=mxUtils.bind(this,function(){this.hsplitPosition=z;this.refresh();this.diagramContainer.scrollLeft-=l-this.hsplitPosition}),z=c?f:0;mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==z?"translateX(0)":"translateX(-100%)");0!=z&&t();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",
0==z?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition","transform 0.3s ease-in-out");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin","top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin",null);0==z&&t()}),
-300)}),10)}};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var S=EditorUi.prototype.isFormatPanelVisible;EditorUi.prototype.isFormatPanelVisible=function(){var c=this.formatWindow;return null!=c?c.window.isVisible():S.apply(this,arguments)};var G=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(c){if(null!=this.sketchWrapperElt&&null!=this.sketchWrapperElt.parentNode){c=null!=c?c:!0;if("1"!=urlParams.embedInline){var f=this.container.clientWidth;this.container==
+300)}),10)}};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var T=EditorUi.prototype.isFormatPanelVisible;EditorUi.prototype.isFormatPanelVisible=function(){var c=this.formatWindow;return null!=c?c.window.isVisible():T.apply(this,arguments)};var G=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(c){if(null!=this.sketchWrapperElt&&null!=this.sketchWrapperElt.parentNode){c=null!=c?c:!0;if("1"!=urlParams.embedInline){var f=this.container.clientWidth;this.container==
document.body&&(f=document.body.clientWidth||document.documentElement.clientWidth);var l=this.getDiagramContainerOffset();var t=l.x;var z=l.y;"simple"==Editor.currentTheme&&(z+=this.sketchMainMenuElt.offsetHeight);this.diagramContainer.style.top=z+"px";this.diagramContainer.style.bottom="0";"simple"==Editor.currentTheme?(this.hsplit.style.top=this.sketchMainMenuElt.offsetHeight+"px",this.sidebarContainer.style.top=this.hsplit.style.top,this.formatContainer.style.top=this.hsplit.style.top,f=Math.max(0,
Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-this.formatWidth,Math.min(this.hsplitPosition,f-this.splitSize-40))),this.sidebarContainer.style.width=f+"px",this.diagramContainer.style.left=f+t+"px",this.tabContainer.style.left=f+"px",this.tabContainer.style.right=this.formatWidth+1+"px",this.sketchMainMenuElt.style.left="0px",this.sketchMainMenuElt.style.right="0px",this.hsplit.style.left=f+"px",this.diagramContainer.style.right=this.formatWidth+"px",
this.formatContainer.style.width=this.formatWidth+"px",this.hsplit.style.bottom=this.tabContainer.offsetHeight+"px",this.diagramContainer.style.bottom=this.hsplit.style.bottom,this.checkTabScrollerOverflow()):(this.diagramContainer.style.left=l.x+"px",this.diagramContainer.style.right="0")}c&&this.editor.graph.sizeDidChange()}else G.apply(this,arguments)};EditorUi.prototype.createShapesPanel=function(c){var f=mxUtils.bind(this,function(t){t=this.createMenu(t,null,"geTitle");t.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";
@@ -3877,12 +3877,12 @@ this.editor.graph;ha.lastPasteXml==ba?ha.pasteCounter++:(ha.lastPasteXml=ba,ha.p
z.textContent.substring(z.textContent.length-15)?z.textContent.replace(/\u00a0/g," "):z.innerHTML:mxUtils.trim(null==z.innerText?mxUtils.getTextContent(z):z.innerText);try{var ea=da.lastIndexOf("%3E");0<=ea&&ea<da.length-3&&(da=da.substring(0,ea+3))}catch(ba){}try{F=z.getElementsByTagName("span"),(K=null!=F&&0<F.length?mxUtils.trim(decodeURIComponent(F[0].textContent)):decodeURIComponent(da))&&(this.isCompatibleString(K)||0==K.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":'))&&(J=!0,da=
K)}catch(ba){}try{if(null!=da&&0<da.length){if(0==da.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":')){var ca=mxUtils.bind(this,function(){try{da=(new MiroImporter).importMiroJson(JSON.parse(da)),this.pasteXml(da,t,J,c)}catch(ba){console.log("Miro import error:",ba)}});"undefined"===typeof MiroImporter?mxscript("js/diagramly/miro/MiroImporter.js",ca):ca()}else this.pasteXml(da,t,J,c,C);try{mxEvent.consume(c)}catch(ba){}}else if(!l){var W=this.editor.graph;W.lastPasteXml=null;W.pasteCounter=
0}}catch(ba){this.handleError(ba)}}}f.innerHTML="&nbsp;"};EditorUi.prototype.showPrintDialog=function(c,f){var l=320;this.editor.graph.isEnabled()&&(l+=40);null!=this.pages&&1<this.pages.length&&(l+=40,this.editor.graph.isEnabled()||(l+=10));null==f||mxClient.IS_CHROMEAPP||"draw.io"!=this.getServiceName()||(l+=20);this.showDialog((new PrintDialog(this,c,f)).container,320,l,!0,!0)};EditorUi.prototype.print=function(c,f){var l=this.editor,t=l.graph,z=this.getPageIndex(this.currentPage),C=null!=z?z+
-1:1,F=mxUtils.bind(this,function(la,Y,ma,Z){var k=la.useCssTransforms,A=la.currentTranslate,I=la.currentScale,U=la.view.translate,O=la.view.scale;la.useCssTransforms&&(la.useCssTransforms=!1,la.currentTranslate=new mxPoint(0,0),la.currentScale=1,la.view.translate=new mxPoint(0,0),la.view.scale=1);var T=la.getGraphBounds(),X=0,aa=0,ja=mxRectangle.fromRectangle(la.pageFormat),pa=f.fit||f.crop||!la.pageVisible,sa=f.scale;ja.width=Math.ceil(ja.width*la.pageScale);ja.height=Math.ceil(ja.height*la.pageScale);
-var qa=1;if(f.fit){qa=f.sheetsAcross;var wa=f.sheetsDown;isNaN(sa)||(ja.width=Math.ceil(ja.width*sa),ja.height=Math.ceil(ja.height*sa));qa=Math.min(ja.height*wa/(T.height/la.view.scale),ja.width*qa/(T.width/la.view.scale))}else qa=isNaN(sa)?1:sa;qa*=1;!pa&&la.pageVisible?(sa=la.getPageLayout(),X-=sa.x*ja.width,aa-=sa.y*ja.height):pa=!0;f.crop&&(f.selection&&(T=t.getBoundingBox(t.getSelectionCells())),ja.width=(T.width+1)*qa/la.view.scale,ja.height=(T.height+1)*qa/la.view.scale);ja.width=Math.ceil(1*
+1:1,F=mxUtils.bind(this,function(la,Y,ma,Z){var k=la.useCssTransforms,A=la.currentTranslate,I=la.currentScale,U=la.view.translate,O=la.view.scale;la.useCssTransforms&&(la.useCssTransforms=!1,la.currentTranslate=new mxPoint(0,0),la.currentScale=1,la.view.translate=new mxPoint(0,0),la.view.scale=1);var S=la.getGraphBounds(),X=0,aa=0,ja=mxRectangle.fromRectangle(la.pageFormat),pa=f.fit||f.crop||!la.pageVisible,sa=f.scale;ja.width=Math.ceil(ja.width*la.pageScale);ja.height=Math.ceil(ja.height*la.pageScale);
+var qa=1;if(f.fit){qa=f.sheetsAcross;var wa=f.sheetsDown;isNaN(sa)||(ja.width=Math.ceil(ja.width*sa),ja.height=Math.ceil(ja.height*sa));qa=Math.min(ja.height*wa/(S.height/la.view.scale),ja.width*qa/(S.width/la.view.scale))}else qa=isNaN(sa)?1:sa;qa*=1;!pa&&la.pageVisible?(sa=la.getPageLayout(),X-=sa.x*ja.width,aa-=sa.y*ja.height):pa=!0;f.crop&&(f.selection&&(S=t.getBoundingBox(t.getSelectionCells())),ja.width=(S.width+1)*qa/la.view.scale,ja.height=(S.height+1)*qa/la.view.scale);ja.width=Math.ceil(1*
ja.width);ja.height=Math.ceil(1*ja.height);Z=null!=Z?"page/id,"+Z:null;if(null==Y){Y=PrintDialog.createPrintPreview(la,qa,null,0,X,aa,pa);Y.title=this.getBaseFilename(!0);Y.pageSelector=!1;Y.mathEnabled=!1;X=f.border;isNaN(X)||(Y.pageMargin=X);f.selection&&(Y.isCellVisible=function(ra){return la.isCellSelected(ra)});var Ba=Y.writeHead;Y.writeHead=function(ra){Ba.apply(this,arguments);mxClient.IS_GC&&(ra.writeln('<style type="text/css">'),ra.writeln("@media print {"),ra.writeln(".MathJax svg { shape-rendering: crispEdges; }"),
ra.writeln("}"),ra.writeln("</style>"));null!=l.fontCss&&(ra.writeln('<style type="text/css">'),ra.writeln(mxUtils.htmlEntities(l.fontCss,!1,!1,!1)),ra.writeln("</style>"));for(var ya=la.getCustomFonts(),Ca=0;Ca<ya.length;Ca++){var Ma=ya[Ca].name,Ha=ya[Ca].url;Graph.isCssFontUrl(Ha)?ra.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(Ha))+'" charset="UTF-8" type="text/css">'):(ra.writeln('<style type="text/css">'),ra.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Ma)+
'";\nsrc: url("'+mxUtils.htmlEntities(Ha)+'");\n}'),ra.writeln("</style>"))}};if(Editor.replaceSvgDataUris){var za=Y.drawBackgroundImage;Y.drawBackgroundImage=function(ra){za.apply(this,arguments);null!=ra.node&&(EditorUi.embedSvgImages(ra.node),t.disableSvgLinks(ra.node,function(ya){ya.setAttribute("href","javascript:void(0)")}))}}var Ea=Y.addGraphFragment;Y.addGraphFragment=function(ra,ya,Ca,Ma,Ha,Aa){Ea.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:Ha.classList.add("geDisableMathJax")};
-f.grid&&(Y.gridSize=la.gridSize,Y.gridSteps=la.view.gridSteps,Y.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:la.view.gridColor);Y.open(null,null,ma,!0,Z,ja,f.selection?la.getSelectionCells():null)}else{T=la.background;if(null==T||""==T||T==mxConstants.NONE)T="#ffffff";Y.backgroundColor=T;Y.autoOrigin=pa;f.grid&&(Y.gridSize=la.gridSize,Y.gridSteps=la.view.gridSteps,Y.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:la.view.gridColor);Y.appendGraph(la,qa,
+f.grid&&(Y.gridSize=la.gridSize,Y.gridSteps=la.view.gridSteps,Y.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:la.view.gridColor);Y.open(null,null,ma,!0,Z,ja,f.selection?la.getSelectionCells():null)}else{S=la.background;if(null==S||""==S||S==mxConstants.NONE)S="#ffffff";Y.backgroundColor=S;Y.autoOrigin=pa;f.grid&&(Y.gridSize=la.gridSize,Y.gridSteps=la.view.gridSteps,Y.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:la.view.gridColor);Y.appendGraph(la,qa,
X,aa,ma,!0,Z,ja,f.selection?la.getSelectionCells():null);ma=la.getCustomFonts();if(null!=Y.wnd)for(ja=0;ja<ma.length;ja++)X=ma[ja].name,aa=ma[ja].url,Graph.isCssFontUrl(aa)?Y.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(aa)+'" charset="UTF-8" type="text/css">'):(Y.wnd.document.writeln('<style type="text/css">'),Y.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(X)+'";\nsrc: url("'+mxUtils.htmlEntities(aa)+'");\n}'),Y.wnd.document.writeln("</style>"))}k&&
(la.useCssTransforms=k,la.currentTranslate=A,la.currentScale=I,la.view.translate=U,la.view.scale=O);return Y}),N=f.pagesFrom,K=f.pagesTo,J=!f.allPages;z=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,f);else{J&&(J=f.selection||N==C&&K==C);if(!J&&null!=this.pages&&this.pages.length){J=0;C=this.pages.length-1;f.allPages||(J=parseInt(N)-1,C=parseInt(K)-1);for(var da=J;da<=C;da++){var ea=this.pages[da];N=ea==this.currentPage?t:null;if(null==N){N=this.createTemporaryGraph(t.stylesheet);
N.shapeForegroundColor=t.shapeForegroundColor;N.shapeBackgroundColor=t.shapeBackgroundColor;K=!0;J=!1;var ca=null,W=null;null==ea.viewState&&null==ea.root&&this.updatePageRoot(ea);null!=ea.viewState&&(K=ea.viewState.pageVisible,J=ea.viewState.mathEnabled,ca=ea.viewState.background,W=ea.viewState.backgroundImage,N.pageFormat=ea.viewState.pageFormat,N.gridSize=ea.viewState.gridSize);null!=W&&null!=W.originalSrc&&(W=this.createImageForPageLink(W.originalSrc,ea));N.background=ca;N.backgroundImage=null!=
@@ -3922,10 +3922,10 @@ docUrl:ra,info:ya,name:Ca}),"*")}),null,null,Y?mxUtils.bind(this,function(ra){th
J.action){null!=J.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(J.messageKey))):null!=J.message&&this.editor.setStatus(mxUtils.htmlEntities(J.message));null!=J.modified&&(this.editor.modified=J.modified);return}if("spinner"==J.action){var Z=null!=J.messageKey?mxResources.get(J.messageKey):J.message;null==J.show||J.show?this.spinner.spin(document.body,Z):this.spinner.stop();return}if("exit"==J.action){this.actions.get("exit").funct();return}if("viewport"==J.action){null!=J.viewport&&
(this.embedViewport=J.viewport,this.editor.graph.refresh(),this.fireEvent(new mxEventObject("embedViewportChanged")));return}if("fullscreenChanged"==J.action){W=null;try{var k=this.diagramContainer.getAttribute("data-scrollState");null!=k&&(this.diagramContainer.removeAttribute("data-scrollState"),W=JSON.parse(k))}catch(ra){}Editor.inlineFullscreen=J.value;this.fireEvent(new mxEventObject("inlineFullscreenChanged"));null!=W&&this.restoreScrollState(W);return}if("snapshot"==J.action){this.sendEmbeddedSvgExport(!0);
return}if("export"==J.action){if("png"==J.format||"xmlpng"==J.format){if(null==J.spin&&null==J.spinKey||this.spinner.spin(document.body,null!=J.spinKey?mxResources.get(J.spinKey):J.spin)){var A=null!=J.xml?J.xml:this.getFileData(!0);this.editor.graph.setEnabled(!1);var I=this.editor.graph,U=mxUtils.bind(this,function(ra,ya){if(J.withSvg)J.withSvg=!1,this.getEmbeddedSvg(A,this.editor.graph,null,!0,function(Ma){U(ra,Ma)},null,null,J.embedImages,this.editor.graph.background,J.scale,J.border,J.shadow,
-"auto");else{this.editor.graph.setEnabled(!0);this.spinner.stop();var Ca=this.createLoadMessage("export");Ca.format=J.format;Ca.message=J;Ca.data=ra;Ca.svg=ya;Ca.xml=A;F.postMessage(JSON.stringify(Ca),"*")}}),O=mxUtils.bind(this,function(ra){null==ra&&(ra=Editor.blankImage);"xmlpng"==J.format&&(ra=Editor.writeGraphModelToPng(ra,"tEXt","mxfile",encodeURIComponent(A)));I!=this.editor.graph&&I.container.parentNode.removeChild(I.container);U(ra)}),T=J.pageId||(null!=this.pages?J.currentPage?this.currentPage.getId():
-this.pages[0].getId():null);if(this.isExportToCanvas()){var X=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=T){var ra=I.getGlobalVariable;I=this.createTemporaryGraph(I.getStylesheet());for(var ya,Ca=0;Ca<this.pages.length;Ca++)if(this.pages[Ca].getId()==T){ya=this.updatePageRoot(this.pages[Ca]);break}null==ya&&(ya=this.currentPage);I.getGlobalVariable=function(Ra){return"page"==Ra?ya.getName():"pagenumber"==Ra?1:ra.apply(this,arguments)};document.body.appendChild(I.container);
+"auto");else{this.editor.graph.setEnabled(!0);this.spinner.stop();var Ca=this.createLoadMessage("export");Ca.format=J.format;Ca.message=J;Ca.data=ra;Ca.svg=ya;Ca.xml=A;F.postMessage(JSON.stringify(Ca),"*")}}),O=mxUtils.bind(this,function(ra){null==ra&&(ra=Editor.blankImage);"xmlpng"==J.format&&(ra=Editor.writeGraphModelToPng(ra,"tEXt","mxfile",encodeURIComponent(A)));I!=this.editor.graph&&I.container.parentNode.removeChild(I.container);U(ra)}),S=J.pageId||(null!=this.pages?J.currentPage?this.currentPage.getId():
+this.pages[0].getId():null);if(this.isExportToCanvas()){var X=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=S){var ra=I.getGlobalVariable;I=this.createTemporaryGraph(I.getStylesheet());for(var ya,Ca=0;Ca<this.pages.length;Ca++)if(this.pages[Ca].getId()==S){ya=this.updatePageRoot(this.pages[Ca]);break}null==ya&&(ya=this.currentPage);I.getGlobalVariable=function(Ra){return"page"==Ra?ya.getName():"pagenumber"==Ra?1:ra.apply(this,arguments)};document.body.appendChild(I.container);
I.model.setRoot(ya.root)}if(null!=J.layerIds){var Ma=I.model,Ha=Ma.getChildCells(Ma.getRoot()),Aa={};for(Ca=0;Ca<J.layerIds.length;Ca++)Aa[J.layerIds[Ca]]=!0;for(Ca=0;Ca<Ha.length;Ca++)Ma.setVisible(Ha[Ca],Aa[Ha[Ca].id]||!1)}Ca=null;J.keepTheme&&(Ca=Editor.isDarkMode()?"dark":"light");this.editor.exportToCanvas(mxUtils.bind(this,function(Ra){O(Ra.toDataURL("image/png"))}),J.width,null,J.background,mxUtils.bind(this,function(){O(null)}),null,null,J.scale,J.transparent,J.shadow,null,I,J.border,null,
-J.grid,Ca)});null!=J.xml&&0<J.xml.length&&(l=!0,this.setFileData(A),l=!1);X()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==J.format?"1":"0")+(null!=T?"&pageId="+T:"")+(null!=J.layerIds&&0<J.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:J.layerIds})):"")+(null!=J.scale?"&scale="+J.scale:"")+"&base64=1&xml="+encodeURIComponent(A))).send(mxUtils.bind(this,function(ra){200<=ra.getStatus()&&299>=ra.getStatus()?U("data:image/png;base64,"+ra.getText()):O(null)}),
+J.grid,Ca)});null!=J.xml&&0<J.xml.length&&(l=!0,this.setFileData(A),l=!1);X()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==J.format?"1":"0")+(null!=S?"&pageId="+S:"")+(null!=J.layerIds&&0<J.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:J.layerIds})):"")+(null!=J.scale?"&scale="+J.scale:"")+"&base64=1&xml="+encodeURIComponent(A))).send(mxUtils.bind(this,function(ra){200<=ra.getStatus()&&299>=ra.getStatus()?U("data:image/png;base64,"+ra.getText()):O(null)}),
mxUtils.bind(this,function(){O(null)}))}}else if(X=mxUtils.bind(this,function(){var ra=this.createLoadMessage("export");ra.message=J;if("html2"==J.format||"html"==J.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var ya=this.getXmlFileData();ra.xml=mxUtils.getXml(ya);ra.data=this.getFileData(null,null,!0,null,null,null,ya);ra.format=J.format}else if("html"==J.format)ya=this.editor.getGraphXml(),ra.data=this.getHtml(ya,this.editor.graph),ra.xml=mxUtils.getXml(ya),ra.format=J.format;
else{mxSvgCanvas2D.prototype.foAltText=null;ya=null!=J.background?J.background:this.editor.graph.background;ya==mxConstants.NONE&&(ya=null);ra.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);ra.format="svg";var Ca=mxUtils.bind(this,function(Ha){this.editor.graph.setEnabled(!0);this.spinner.stop();ra.data=Editor.createSvgDataUri(Ha);F.postMessage(JSON.stringify(ra),"*")}),Ma="auto";J.keepTheme&&(Ma=Editor.isDarkMode()?"dark":"light");null!=J.theme&&(Ma=J.theme);if("xmlsvg"==J.format){if(null==
J.spin&&null==J.spinKey||this.spinner.spin(document.body,null!=J.spinKey?mxResources.get(J.spinKey):J.spin)){Ma=null;if(this.isAutoDarkMode()||Editor.isDarkMode())Ma="auto";null!=J.theme&&(Ma=J.theme);this.getEmbeddedSvg(ra.xml,this.editor.graph,null,!0,Ca,null,null,J.embedImages,ya,J.scale,J.border,J.shadow,Ma)}}else if(null==J.spin&&null==J.spinKey||this.spinner.spin(document.body,null!=J.spinKey?mxResources.get(J.spinKey):J.spin))this.editor.graph.setEnabled(!1),ya=this.editor.graph.getSvg(ya,
@@ -3952,10 +3952,10 @@ new TextareaDialog(this,mxResources.get("layout"),c,mxUtils.bind(this,function(l
t.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");this.alert(mxResources.get("copiedToClipboard"));t.value=C}catch(F){this.handleError(F)}}));z.setAttribute("title","copy");z.className="geBtn";l.appendChild(z)}),!0,null,null,"https://www.drawio.com/doc/faq/apply-layouts");this.showDialog(f.container,620,460,!0,!0);f.init()}))};EditorUi.prototype.loadOrgChartLayouts=function(c){this.createTimeout(null,mxUtils.bind(this,function(f){var l=mxUtils.bind(this,function(){this.loadingOrgChart=
!1;f.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),this.spinner.stop(),c())}),t=mxUtils.bind(this,function(z){this.loadingOrgChart=!1;f.clear()&&this.handleError(z)});"undefined"!==typeof mxOrgChartLayout||this.loadingOrgChart||this.isOffline(!0)?l():this.spinner.spin(document.body,mxResources.get("loading"))&&(this.loadingOrgChart=!0,"1"==urlParams.dev?mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",
function(){mxscript("js/orgchart/mxOrgChartLayout.js",l,null,null,null,t)},null,null,null,t)},null,null,null,t)},null,null,null,t):mxscript(window.DRAWIO_SERVER_URL+"js/orgchart.min.js",l,null,null,null,t))}),onerror)};EditorUi.prototype.importCsv=function(c,f){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c,f)}))};EditorUi.prototype.doImportCsv=function(c,f){try{var l=c.split("\n"),t=[],z=[],C=[],F={};if(0<l.length){var N={},K=this.editor.graph,J=null,da=null,ea=null,ca=
-null,W=null,ba=null,ha=null,la="whiteSpace=wrap;html=1;",Y=null,ma=null,Z="",k="auto",A="auto",I=!1,U=null,O=null,T=40,X=40,aa=100,ja=0,pa=mxUtils.bind(this,function(){null!=f?f(ua):(K.setSelectionCells(ua),K.scrollCellToVisible(K.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),0)}),sa=K.getFreeInsertPoint(),qa=sa.x,wa=sa.y;sa=wa;var Ba=null,za="auto";ma=null;for(var Ea=[],ra=null,ya=null,Ca=0;Ca<l.length&&"#"==l[Ca].charAt(0);){c=
+null,W=null,ba=null,ha=null,la="whiteSpace=wrap;html=1;",Y=null,ma=null,Z="",k="auto",A="auto",I=!1,U=null,O=null,S=40,X=40,aa=100,ja=0,pa=mxUtils.bind(this,function(){null!=f?f(ua):(K.setSelectionCells(ua),K.scrollCellToVisible(K.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),0)}),sa=K.getFreeInsertPoint(),qa=sa.x,wa=sa.y;sa=wa;var Ba=null,za="auto";ma=null;for(var Ea=[],ra=null,ya=null,Ca=0;Ca<l.length&&"#"==l[Ca].charAt(0);){c=
l[Ca].replace(/\r$/,"");for(Ca++;Ca<l.length&&"\\"==c.charAt(c.length-1)&&"#"==l[Ca].charAt(0);)c=c.substring(0,c.length-1)+mxUtils.trim(l[Ca].substring(1)),Ca++;if("#"!=c.charAt(1)){var Ma=c.indexOf(":");if(0<Ma){var Ha=mxUtils.trim(c.substring(1,Ma)),Aa=mxUtils.trim(c.substring(Ma+1));"label"==Ha?Ba=Graph.sanitizeHtml(Aa):"labelname"==Ha&&0<Aa.length&&"-"!=Aa?W=Aa:"labels"==Ha&&0<Aa.length&&"-"!=Aa?ha=JSON.parse(Aa):"style"==Ha?da=Aa:"parentstyle"==Ha?la=Aa:"unknownStyle"==Ha&&"-"!=Aa?ba=Aa:"stylename"==
Ha&&0<Aa.length&&"-"!=Aa?ca=Aa:"styles"==Ha&&0<Aa.length&&"-"!=Aa?ea=JSON.parse(Aa):"vars"==Ha&&0<Aa.length&&"-"!=Aa?J=JSON.parse(Aa):"identity"==Ha&&0<Aa.length&&"-"!=Aa?Y=Aa:"parent"==Ha&&0<Aa.length&&"-"!=Aa?ma=Aa:"namespace"==Ha&&0<Aa.length&&"-"!=Aa?Z=Aa:"width"==Ha?k=Aa:"height"==Ha?A=Aa:"collapsed"==Ha&&"-"!=Aa?I="true"==Aa:"left"==Ha&&0<Aa.length?U=Aa:"top"==Ha&&0<Aa.length?O=Aa:"ignore"==Ha?ya=Aa.split(","):"connect"==Ha?Ea.push(JSON.parse(Aa)):"link"==Ha?ra=Aa:"padding"==Ha?ja=parseFloat(Aa):
-"edgespacing"==Ha?T=parseFloat(Aa):"nodespacing"==Ha?X=parseFloat(Aa):"levelspacing"==Ha?aa=parseFloat(Aa):"layout"==Ha&&(za=Aa)}}}if(null==l[Ca])throw Error(mxResources.get("invalidOrMissingFile"));var Ra=this.editor.csvToArray(l[Ca].replace(/\r$/,""));Ma=c=null;Ha=[];for(Aa=0;Aa<Ra.length;Aa++)Y==Ra[Aa]&&(c=Aa),ma==Ra[Aa]&&(Ma=Aa),Ha.push(mxUtils.trim(Ra[Aa]).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,""));null==Ba&&(Ba="%"+Ha[0]+"%");if(null!=Ea)for(var Za=0;Za<Ea.length;Za++)null==
+"edgespacing"==Ha?S=parseFloat(Aa):"nodespacing"==Ha?X=parseFloat(Aa):"levelspacing"==Ha?aa=parseFloat(Aa):"layout"==Ha&&(za=Aa)}}}if(null==l[Ca])throw Error(mxResources.get("invalidOrMissingFile"));var Ra=this.editor.csvToArray(l[Ca].replace(/\r$/,""));Ma=c=null;Ha=[];for(Aa=0;Aa<Ra.length;Aa++)Y==Ra[Aa]&&(c=Aa),ma==Ra[Aa]&&(Ma=Aa),Ha.push(mxUtils.trim(Ra[Aa]).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,""));null==Ba&&(Ba="%"+Ha[0]+"%");if(null!=Ea)for(var Za=0;Za<Ea.length;Za++)null==
N[Ea[Za].to]&&(N[Ea[Za].to]={});Y=[];for(Aa=Ca+1;Aa<l.length;Aa++){var La=this.editor.csvToArray(l[Aa].replace(/\r$/,""));if(null==La){var $a=40<l[Aa].length?l[Aa].substring(0,40)+"...":l[Aa];throw Error($a+" ("+Aa+"):\n"+mxResources.get("containsValidationErrors"));}0<La.length&&Y.push(La)}K.model.beginUpdate();try{for(Aa=0;Aa<Y.length;Aa++){La=Y[Aa];var Da=null,x=null!=c?Z+La[c]:null;l=!1;null!=x&&(Da=K.model.getCell(x),l=null==Da||0<=mxUtils.indexOf(t,Da));var M=new mxCell(Ba,new mxGeometry(qa,
sa,0,0),da||"whiteSpace=wrap;html=1;");M.collapsed=I;M.vertex=!0;M.id=x;null==Da||l||K.model.setCollapsed(Da,I);for(var Q=0;Q<La.length;Q++)K.setAttributeForCell(M,Ha[Q],La[Q]),null==Da||l||K.setAttributeForCell(Da,Ha[Q],La[Q]);if(null!=W&&null!=ha){var V=ha[M.getAttribute(W)];null!=V&&(K.labelChanged(M,V),null==Da||l||K.cellLabelChanged(Da,V))}if(null!=ca&&null!=ea){var ia=ea[M.getAttribute(ca)];null!=ia&&(M.style=ia)}K.setAttributeForCell(M,"placeholders","1");M.style=K.replacePlaceholders(M,M.style,
J);null==Da||l?K.fireEvent(new mxEventObject("cellsInserted","cells",[M])):(K.model.setStyle(Da,M.style),0>mxUtils.indexOf(C,Da)&&C.push(Da),K.fireEvent(new mxEventObject("cellsInserted","cells",[Da])));l=null!=Da;Da=M;if(!l)for(Za=0;Za<Ea.length;Za++)N[Ea[Za].to][Da.getAttribute(Ea[Za].to)]=Da;null!=ra&&"link"!=ra&&(K.setLinkForCell(Da,Da.getAttribute(ra)),K.setAttributeForCell(Da,ra,null));var ka=this.editor.graph.getPreferredSizeForCell(Da);ma=null!=Ma?K.model.getCell(Z+La[Ma]):null;if(Da.vertex){$a=
@@ -3964,10 +3964,10 @@ A?parseFloat(xa):"auto"==A||"auto"==xa?ka.height+ja:"width"==A?Da.geometry.width
var ta=C.slice(),ua=C.slice();for(Za=0;Za<Ea.length;Za++){var Fa=Ea[Za];for(Aa=0;Aa<t.length;Aa++){Da=t[Aa];var Na=mxUtils.bind(this,function(mb,pb,db){var qb=pb.getAttribute(db.from);if(null!=qb&&""!=qb){qb=qb.split(",");for(var nb=0;nb<qb.length;nb++){var lb=N[db.to][qb[nb]];if(null==lb&&null!=ba){lb=new mxCell(qb[nb],new mxGeometry(qa,wa,0,0),ba);lb.style=K.replacePlaceholders(pb,lb.style,J);var eb=this.editor.graph.getPreferredSizeForCell(lb);lb.geometry.width=eb.width+ja;lb.geometry.height=eb.height+
ja;N[db.to][qb[nb]]=lb;lb.vertex=!0;lb.id=qb[nb];C.push(K.addCell(lb))}if(null!=lb){eb=db.label;null!=db.fromlabel&&(eb=(pb.getAttribute(db.fromlabel)||"")+(eb||""));null!=db.sourcelabel&&(eb=K.replacePlaceholders(pb,db.sourcelabel,J)+(eb||""));null!=db.tolabel&&(eb=(eb||"")+(lb.getAttribute(db.tolabel)||""));null!=db.targetlabel&&(eb=(eb||"")+K.replacePlaceholders(lb,db.targetlabel,J));var tb="target"==db.placeholders==!db.invert?lb:mb;tb=null!=db.style?K.replacePlaceholders(tb,db.style,J):K.createCurrentEdgeStyle();
eb=K.insertEdge(null,null,eb||"",db.invert?lb:mb,db.invert?mb:lb,tb);if(null!=db.labels)for(tb=0;tb<db.labels.length;tb++){var ob=db.labels[tb],ub=new mxCell(ob.label||tb,new mxGeometry(null!=ob.x?ob.x:0,null!=ob.y?ob.y:0,0,0),"resizable=0;html=1;");ub.vertex=!0;ub.connectable=!1;ub.geometry.relative=!0;null!=ob.placeholders&&(ub.value=K.replacePlaceholders("target"==ob.placeholders==!db.invert?lb:mb,ub.value,J));if(null!=ob.dx||null!=ob.dy)ub.geometry.offset=new mxPoint(null!=ob.dx?ob.dx:0,null!=
-ob.dy?ob.dy:0);eb.insert(ub)}if(null!=db.data)for(var Ab in db.data)K.setAttributeForCell(eb,Ab,db.data[Ab]);ua.push(eb);mxUtils.remove(db.invert?mb:lb,ta)}}}});Na(Da,Da,Fa);if(null!=F[Da.id])for(Q=0;Q<F[Da.id].length;Q++)Na(Da,F[Da.id][Q],Fa)}}if(null!=ya)for(Aa=0;Aa<t.length;Aa++)for(Da=t[Aa],Q=0;Q<ya.length;Q++)K.setAttributeForCell(Da,mxUtils.trim(ya[Q]),null);if(0<C.length){var Wa=new mxParallelEdgeLayout(K);Wa.spacing=T;Wa.checkOverlap=!0;var Xa=function(){0<Wa.spacing&&Wa.execute(K.getDefaultParent());
+ob.dy?ob.dy:0);eb.insert(ub)}if(null!=db.data)for(var Ab in db.data)K.setAttributeForCell(eb,Ab,db.data[Ab]);ua.push(eb);mxUtils.remove(db.invert?mb:lb,ta)}}}});Na(Da,Da,Fa);if(null!=F[Da.id])for(Q=0;Q<F[Da.id].length;Q++)Na(Da,F[Da.id][Q],Fa)}}if(null!=ya)for(Aa=0;Aa<t.length;Aa++)for(Da=t[Aa],Q=0;Q<ya.length;Q++)K.setAttributeForCell(Da,mxUtils.trim(ya[Q]),null);if(0<C.length){var Wa=new mxParallelEdgeLayout(K);Wa.spacing=S;Wa.checkOverlap=!0;var Xa=function(){0<Wa.spacing&&Wa.execute(K.getDefaultParent());
for(var mb=0;mb<C.length;mb++){var pb=K.getCellGeometry(C[mb]);pb.x=Math.round(K.snap(pb.x));pb.y=Math.round(K.snap(pb.y));"auto"==k&&(pb.width=Math.round(K.snap(pb.width)));"auto"==A&&(pb.height=Math.round(K.snap(pb.height)))}};if("["==za.charAt(0)){var ab=pa;K.view.validate();this.executeLayouts(K.createLayouts(JSON.parse(za)),function(){Xa();ab()});pa=null}else if("circle"==za){var Oa=new mxCircleLayout(K);Oa.disableEdgeStyle=!1;Oa.resetEdges=!1;var Qa=Oa.isVertexIgnored;Oa.isVertexIgnored=function(mb){return Qa.apply(this,
arguments)||0>mxUtils.indexOf(C,mb)};this.executeLayout(function(){Oa.execute(K.getDefaultParent());Xa()},!0,pa);pa=null}else if("horizontaltree"==za||"verticaltree"==za||"auto"==za&&ua.length==2*C.length-1&&1==ta.length){K.view.validate();var kb=new mxCompactTreeLayout(K,"horizontaltree"==za);kb.levelDistance=X;kb.edgeRouting=!1;kb.resetEdges=!1;kb.sortEdges=!0;this.executeLayout(function(){kb.execute(K.getDefaultParent(),0<ta.length?ta[0]:null)},!0,pa);pa=null}else if("horizontalflow"==za||"verticalflow"==
-za||"auto"==za&&1==ta.length){K.view.validate();var cb=new mxHierarchicalLayout(K,"horizontalflow"==za?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);cb.intraCellSpacing=X;cb.parallelEdgeSpacing=T;cb.interRankCellSpacing=aa;cb.disableEdgeStyle=!1;this.executeLayout(function(){cb.execute(K.getDefaultParent(),ua);K.moveCells(ua,qa,wa)},!0,pa);pa=null}else if("orgchart"==za){K.view.validate();var Ya=new mxOrgChartLayout(K,2,aa,X),gb=Ya.isVertexIgnored;Ya.isVertexIgnored=function(mb){return gb.apply(this,
+za||"auto"==za&&1==ta.length){K.view.validate();var cb=new mxHierarchicalLayout(K,"horizontalflow"==za?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);cb.intraCellSpacing=X;cb.parallelEdgeSpacing=S;cb.interRankCellSpacing=aa;cb.disableEdgeStyle=!1;this.executeLayout(function(){cb.execute(K.getDefaultParent(),ua);K.moveCells(ua,qa,wa)},!0,pa);pa=null}else if("orgchart"==za){K.view.validate();var Ya=new mxOrgChartLayout(K,2,aa,X),gb=Ya.isVertexIgnored;Ya.isVertexIgnored=function(mb){return gb.apply(this,
arguments)||0>mxUtils.indexOf(C,mb)};this.executeLayout(function(){Ya.execute(K.getDefaultParent());Xa()},!0,pa);pa=null}else if("organic"==za||"auto"==za&&ua.length>C.length){K.view.validate();var hb=new mxFastOrganicLayout(K);hb.forceConstant=3*X;hb.disableEdgeStyle=!1;hb.resetEdges=!1;var vb=hb.isVertexIgnored;hb.isVertexIgnored=function(mb){return vb.apply(this,arguments)||0>mxUtils.indexOf(C,mb)};this.executeLayout(function(){hb.execute(K.getDefaultParent());Xa()},!0,pa);pa=null}}this.hideDialog()}finally{K.model.endUpdate()}null!=
pa&&pa()}}catch(mb){this.handleError(mb)}};EditorUi.prototype.getSearch=function(c){var f="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=c&&0<window.location.search.length){var l="?",t;for(t in urlParams)0>mxUtils.indexOf(c,t)&&null!=urlParams[t]&&(f+=l+t+"="+urlParams[t],l="&")}else f=window.location.search;return f};EditorUi.prototype.getUrl=function(c){c=null!=c?c:window.location.pathname;var f=0<c.indexOf("?")?1:0;if("1"==urlParams.offline)c+=window.location.search;else{var l="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),
t;for(t in urlParams)0>mxUtils.indexOf(l,t)&&(c=0==f?c+"?":c+"&",null!=urlParams[t]&&(c+=t+"="+urlParams[t],f++))}return c};EditorUi.prototype.showLinkDialog=function(c,f,l,t,z){c=new LinkDialog(this,c,f,l,!0,t,z);this.showDialog(c.container,440,120,!0,!0);c.init()};EditorUi.prototype.getServiceCount=function(c){var f=1;null==this.drive&&"function"!==typeof window.DriveClient||f++;null==this.dropbox&&"function"!==typeof window.DropboxClient||f++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient||
@@ -4012,12 +4012,12 @@ return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,f,l,t
"<mxfile "===t.substring(0,8)||"<?xml"===t.substring(0,5)||"\x3c!--[if IE]>"===t.substring(0,12);t="<mxlibrary>"===t.substring(0,11);(z||t)&&c.push(l)}}return c};EditorUi.prototype.getLocalStorageFile=function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;var f=localStorage.getItem(c);return{title:c,data:f,isLib:"<mxlibrary>"===f.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();
var CommentsWindow=function(b,e,g,m,u,p){function B(){for(var ba=F.getElementsByTagName("div"),ha=0,la=0;la<ba.length;la++)"none"!=ba[la].style.display&&ba[la].parentNode==F&&ha++;N.style.display=0==ha?"block":"none"}function H(ba,ha,la,Y){function ma(){ha.removeChild(A);ha.removeChild(I);k.style.display="block";Z.style.display="block"}t={div:ha,comment:ba,saveCallback:la,deleteOnCancel:Y};var Z=ha.querySelector(".geCommentTxt"),k=ha.querySelector(".geCommentActionsList"),A=document.createElement("textarea");
A.className="geCommentEditTxtArea";A.style.minHeight=Z.offsetHeight+"px";A.value=ba.content;ha.insertBefore(A,Z);var I=document.createElement("div");I.className="geCommentEditBtns";var U=mxUtils.button(mxResources.get("cancel"),function(){Y?(ha.parentNode.removeChild(ha),B()):ma();t=null});U.className="geCommentEditBtn";I.appendChild(U);var O=mxUtils.button(mxResources.get("save"),function(){Z.innerText="";ba.content=A.value;mxUtils.write(Z,ba.content);ma();la(ba);t=null});mxEvent.addListener(A,"keydown",
-mxUtils.bind(this,function(T){mxEvent.isConsumed(T)||((mxEvent.isControlDown(T)||mxClient.IS_MAC&&mxEvent.isMetaDown(T))&&13==T.keyCode?(O.click(),mxEvent.consume(T)):27==T.keyCode&&(U.click(),mxEvent.consume(T)))}));O.focus();O.className="geCommentEditBtn gePrimaryBtn";I.appendChild(O);ha.insertBefore(I,Z);k.style.display="none";Z.style.display="none";A.focus()}function S(ba,ha){ha.innerText="";ba=new Date(ba.modifiedDate);var la=b.timeSince(ba);null==la&&(la=mxResources.get("lessThanAMinute"));
+mxUtils.bind(this,function(S){mxEvent.isConsumed(S)||((mxEvent.isControlDown(S)||mxClient.IS_MAC&&mxEvent.isMetaDown(S))&&13==S.keyCode?(O.click(),mxEvent.consume(S)):27==S.keyCode&&(U.click(),mxEvent.consume(S)))}));O.focus();O.className="geCommentEditBtn gePrimaryBtn";I.appendChild(O);ha.insertBefore(I,Z);k.style.display="none";Z.style.display="none";A.focus()}function T(ba,ha){ha.innerText="";ba=new Date(ba.modifiedDate);var la=b.timeSince(ba);null==la&&(la=mxResources.get("lessThanAMinute"));
mxUtils.write(ha,mxResources.get("timeAgo",[la],"{1} ago"));ha.setAttribute("title",ba.toLocaleDateString()+" "+ba.toLocaleTimeString())}function G(ba){var ha=document.createElement("img");ha.className="geCommentBusyImg";ha.src=IMAGE_PATH+"/spin.gif";ba.appendChild(ha);ba.busyImg=ha}function P(ba){ba.style.border="1px solid red";ba.busyImg.parentNode==ba&&ba.removeChild(ba.busyImg)}function R(ba){ba.style.border="";ba.busyImg.parentNode==ba&&ba.removeChild(ba.busyImg)}function c(ba,ha,la,Y,ma){function Z(aa,
ja,pa){var sa=document.createElement("li");sa.className="geCommentAction";var qa=document.createElement("a");qa.className="geCommentActionLnk";mxUtils.write(qa,aa);sa.appendChild(qa);mxEvent.addListener(qa,"click",function(wa){ja(wa,ba);wa.preventDefault();mxEvent.consume(wa)});X.appendChild(sa);pa&&(sa.style.display="none")}function k(){function aa(sa){ja.push(pa);if(null!=sa.replies)for(var qa=0;qa<sa.replies.length;qa++)pa=pa.nextSibling,aa(sa.replies[qa])}var ja=[],pa=I;aa(ba);return{pdiv:pa,
replies:ja}}function A(aa,ja,pa,sa,qa){function wa(){G(ra);ba.addReply(Ea,function(ya){Ea.id=ya;ba.replies.push(Ea);R(ra);pa&&pa()},function(ya){Ba();P(ra);b.handleError(ya,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},sa,qa)}function Ba(){H(Ea,ra,function(ya){wa()},!0)}var za=k().pdiv,Ea=b.newComment(aa,b.getCurrentUser());Ea.pCommentId=ba.id;null==ba.replies&&(ba.replies=[]);var ra=c(Ea,ba.replies,za,Y+1);ja?Ba():wa()}if(ma||!ba.isResolved){N.style.display="none";var I=
-document.createElement("div");I.className="geCommentContainer";I.setAttribute("data-commentId",ba.id);I.style.marginLeft=20*Y+5+"px";ba.isResolved&&(z.style.opacity="0.7");var U=document.createElement("div");U.className="geCommentHeader";var O=document.createElement("img");O.className="geCommentUserImg";O.src=null!=ba.user&&null!=ba.user.pictureUrl?ba.user.pictureUrl:Editor.userImage;U.appendChild(O);O=document.createElement("div");O.className="geCommentHeaderTxt";U.appendChild(O);var T=document.createElement("div");
-T.className="geCommentUsername";mxUtils.write(T,null!=ba.user?ba.user.displayName:mxResources.get("unknownUser"));O.appendChild(T);T=document.createElement("div");T.className="geCommentDate";T.setAttribute("data-commentId",ba.id);S(ba,T);O.appendChild(T);I.appendChild(U);U=document.createElement("div");U.className="geCommentTxt";mxUtils.write(U,ba.content||"");I.appendChild(U);ba.isLocked&&(I.style.opacity="0.5");U=document.createElement("div");U.className="geCommentActions";var X=document.createElement("ul");
+document.createElement("div");I.className="geCommentContainer";I.setAttribute("data-commentId",ba.id);I.style.marginLeft=20*Y+5+"px";ba.isResolved&&(z.style.opacity="0.7");var U=document.createElement("div");U.className="geCommentHeader";var O=document.createElement("img");O.className="geCommentUserImg";O.src=null!=ba.user&&null!=ba.user.pictureUrl?ba.user.pictureUrl:Editor.userImage;U.appendChild(O);O=document.createElement("div");O.className="geCommentHeaderTxt";U.appendChild(O);var S=document.createElement("div");
+S.className="geCommentUsername";mxUtils.write(S,null!=ba.user?ba.user.displayName:mxResources.get("unknownUser"));O.appendChild(S);S=document.createElement("div");S.className="geCommentDate";S.setAttribute("data-commentId",ba.id);T(ba,S);O.appendChild(S);I.appendChild(U);U=document.createElement("div");U.className="geCommentTxt";mxUtils.write(U,ba.content||"");I.appendChild(U);ba.isLocked&&(I.style.opacity="0.5");U=document.createElement("div");U.className="geCommentActions";var X=document.createElement("ul");
X.className="geCommentActionsList";U.appendChild(X);f||ba.isLocked||0!=Y&&!l||Z(mxResources.get("reply"),function(){A("",!0)},ba.isResolved);O=b.getCurrentUser();null==O||null==ba.user||O.id!=ba.user.id||f||ba.isLocked||(Z(mxResources.get("edit"),function(){function aa(){H(ba,I,function(){G(I);ba.editComment(ba.content,function(){R(I)},function(ja){P(I);aa();b.handleError(ja,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}aa()},ba.isResolved),Z(mxResources.get("delete"),
function(){b.confirm(mxResources.get("areYouSure"),function(){G(I);ba.deleteComment(function(aa){if(!0===aa){aa=I.querySelector(".geCommentTxt");aa.innerText="";mxUtils.write(aa,mxResources.get("msgDeleted"));var ja=I.querySelectorAll(".geCommentAction");for(aa=0;aa<ja.length;aa++)ja[aa].parentNode.removeChild(ja[aa]);R(I);I.style.opacity="0.5"}else{ja=k(ba).replies;for(aa=0;aa<ja.length;aa++)F.removeChild(ja[aa]);for(aa=0;aa<ha.length;aa++)if(ha[aa]==ba){ha.splice(aa,1);break}N.style.display=0==
F.getElementsByTagName("div").length?"block":"none"}},function(aa){P(I);b.handleError(aa,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},ba.isResolved));f||ba.isLocked||0!=Y||Z(ba.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(aa){function ja(){var pa=aa.target;pa.innerText="";ba.isResolved=!ba.isResolved;mxUtils.write(pa,ba.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var sa=ba.isResolved?"none":"",qa=k(ba).replies,wa=
@@ -4030,11 +4030,11 @@ var ea=!1;mxEvent.addListener(da,"click",function(ba){(ea=!ea)?da.classList.add(
'<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',C.setAttribute("title",mxResources.get("save")),C.className="geButton geAdaptiveAsset",mxEvent.addListener(C,"click",function(ba){p();ba.preventDefault();mxEvent.consume(ba)}),K.appendChild(C));z.appendChild(K);var ca=[],W=mxUtils.bind(this,function(){this.hasError=!1;if(null!=t)try{t.div=t.div.cloneNode(!0);var ba=t.div.querySelector(".geCommentEditTxtArea"),ha=t.div.querySelector(".geCommentEditBtns");t.comment.content=ba.value;
ba.parentNode.removeChild(ba);ha.parentNode.removeChild(ha)}catch(la){b.handleError(la)}F.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>";l=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(la){function Y(ma){if(null!=ma){ma.sort(function(k,A){return new Date(k.modifiedDate)-new Date(A.modifiedDate)});for(var Z=0;Z<ma.length;Z++)Y(ma[Z].replies)}}la.sort(function(ma,
Z){return new Date(ma.modifiedDate)-new Date(Z.modifiedDate)});F.innerText="";F.appendChild(N);N.style.display="block";ca=la;for(la=0;la<ca.length;la++)Y(ca[la].replies),c(ca[la],ca,null,0,ea);null!=t&&null==t.comment.id&&null==t.comment.pCommentId&&(F.appendChild(t.div),H(t.comment,t.div,t.saveCallback,t.deleteOnCancel))},mxUtils.bind(this,function(la){F.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(la&&la.message?": "+la.message:""));this.hasError=!0})):F.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});
-W();this.refreshComments=W;K=mxUtils.bind(this,function(){function ba(Z){var k=la[Z.id];if(null!=k)for(S(Z,k),k=0;null!=Z.replies&&k<Z.replies.length;k++)ba(Z.replies[k])}if(this.window.isVisible()){for(var ha=F.querySelectorAll(".geCommentDate"),la={},Y=0;Y<ha.length;Y++){var ma=ha[Y];la[ma.getAttribute("data-commentId")]=ma}for(Y=0;Y<ca.length;Y++)ba(ca[Y])}});setInterval(K,6E4);this.refreshCommentsTime=K;this.window=new mxWindow(mxResources.get("comments"),z,e,g,m,u,!0,!0);this.window.minimumSize=
-new mxRectangle(0,0,260,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!0)},ConfirmDialog=function(b,e,g,m,u,p,B,H,S,G,P){var R=document.createElement("div");R.style.textAlign="center";P=null!=P?P:44;var c=document.createElement("div");c.style.padding="6px";c.style.overflow="auto";c.style.maxHeight=
+W();this.refreshComments=W;K=mxUtils.bind(this,function(){function ba(Z){var k=la[Z.id];if(null!=k)for(T(Z,k),k=0;null!=Z.replies&&k<Z.replies.length;k++)ba(Z.replies[k])}if(this.window.isVisible()){for(var ha=F.querySelectorAll(".geCommentDate"),la={},Y=0;Y<ha.length;Y++){var ma=ha[Y];la[ma.getAttribute("data-commentId")]=ma}for(Y=0;Y<ca.length;Y++)ba(ca[Y])}});setInterval(K,6E4);this.refreshCommentsTime=K;this.window=new mxWindow(mxResources.get("comments"),z,e,g,m,u,!0,!0);this.window.minimumSize=
+new mxRectangle(0,0,260,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!0)},ConfirmDialog=function(b,e,g,m,u,p,B,H,T,G,P){var R=document.createElement("div");R.style.textAlign="center";P=null!=P?P:44;var c=document.createElement("div");c.style.padding="6px";c.style.overflow="auto";c.style.maxHeight=
P+"px";c.style.lineHeight="1.2em";mxUtils.write(c,e);R.appendChild(c);null!=G&&(c=document.createElement("div"),c.style.padding="6px 0 6px 0",e=document.createElement("img"),e.setAttribute("src",G),c.appendChild(e),R.appendChild(c));G=document.createElement("div");G.style.textAlign="center";G.style.whiteSpace="nowrap";var f=document.createElement("input");f.setAttribute("type","checkbox");p=mxUtils.button(p||mxResources.get("cancel"),function(){b.hideDialog();null!=m&&m(f.checked)});p.className="geBtn";
null!=H&&(p.innerHTML=H+"<br>"+p.innerHTML,p.style.paddingBottom="8px",p.style.paddingTop="8px",p.style.height="auto",p.style.width="40%");b.editor.cancelFirst&&G.appendChild(p);var l=mxUtils.button(u||mxResources.get("ok"),function(){b.hideDialog();null!=g&&g(f.checked)});G.appendChild(l);null!=B?(l.innerHTML=B+"<br>"+l.innerHTML+"<br>",l.style.paddingBottom="8px",l.style.paddingTop="8px",l.style.height="auto",l.className="geBtn",l.style.width="40%"):l.className="geBtn gePrimaryBtn";b.editor.cancelFirst||
-G.appendChild(p);R.appendChild(G);S?(G.style.marginTop="10px",c=document.createElement("p"),c.style.marginTop="20px",c.style.marginBottom="0px",c.appendChild(f),u=document.createElement("span"),mxUtils.write(u," "+mxResources.get("rememberThisSetting")),c.appendChild(u),R.appendChild(c),mxEvent.addListener(u,"click",function(t){f.checked=!f.checked;mxEvent.consume(t)})):G.style.marginTop="12px";this.init=function(){l.focus()};this.container=R},HeadlessEditorUi=function(){EditorUi.call(this,new Editor(!0),
+G.appendChild(p);R.appendChild(G);T?(G.style.marginTop="10px",c=document.createElement("p"),c.style.marginTop="20px",c.style.marginBottom="0px",c.appendChild(f),u=document.createElement("span"),mxUtils.write(u," "+mxResources.get("rememberThisSetting")),c.appendChild(u),R.appendChild(c),mxEvent.addListener(u,"click",function(t){f.checked=!f.checked;mxEvent.consume(t)})):G.style.marginTop="12px";this.init=function(){l.focus()};this.container=R},HeadlessEditorUi=function(){EditorUi.call(this,new Editor(!0),
document.createElement("div"),!0)};mxUtils.extend(HeadlessEditorUi,EditorUi);HeadlessEditorUi.prototype.createUi=function(){};HeadlessEditorUi.prototype.addTrees=function(){};HeadlessEditorUi.prototype.onBeforeUnload=function(){};HeadlessEditorUi.prototype.updateActionStates=function(){};function DiagramPage(b,e){this.node=b;null!=e?this.node.setAttribute("id",e):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.diagramModified=!1;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")};
DiagramPage.prototype.setName=function(b){null==b?this.node.removeAttribute("name"):this.node.setAttribute("name",b)};DiagramPage.prototype.setDiagramModified=function(b){this.diagramModified=b};DiagramPage.prototype.isDiagramModified=function(){return this.diagramModified};function RenamePage(b,e,g){this.ui=b;this.page=e;this.previous=this.name=g}
RenamePage.prototype.execute=function(){var b=this.page.getName();this.page.setName(this.previous);this.name=this.previous;this.previous=b;this.ui.editor.graph.updatePlaceholders();this.ui.editor.fireEvent(new mxEventObject("pageRenamed"))};function MovePage(b,e,g){this.ui=b;this.oldIndex=e;this.newIndex=g}
@@ -4056,7 +4056,7 @@ function(){b.checkDefaultParent()}));var p=mxUtils.bind(this,function(){this.upd
this.toolbar&&this.toolbar.updateZoom()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(B,H){this.scrollToPage();this.updateHashObject()}));mxEvent.addListener(window,"resize",mxUtils.bind(this,function(){this.checkTabScrollerOverflow()}))}};
EditorUi.prototype.scrollToPage=function(b,e){var g=null!=b?this.getPageIndex(b):this.getSelectedPageIndex(),m=null!=b?b:this.currentPage;null!=g&&null!=this.tabScroller&&this.tabScroller.children.length>g&&null!=this.tabScroller.children[g]&&(m!=this.lastScrollPage||e)&&(this.tabScroller.children[g].scrollIntoView({block:"nearest",inline:null!=b?"nearest":"center"}),this.tabScroller.children[g].className="geTab gePageTab geActivePage",this.lastScrollPage=m)};
EditorUi.prototype.restoreViewState=function(b,e,g){b=null!=b?this.getPageById(b.getId()):null;var m=this.editor.graph;null!=b&&null!=this.currentPage&&null!=this.pages&&(b!=this.currentPage?this.selectPage(b,!0,e):(m.setViewState(e),this.editor.updateGraphComponents(),m.view.revalidate(),m.sizeDidChange()),m.container.scrollLeft=m.view.translate.x*m.view.scale+e.scrollLeft,m.container.scrollTop=m.view.translate.y*m.view.scale+e.scrollTop,m.restoreSelection(g))};
-Graph.prototype.createViewState=function(b){var e=b.getAttribute("page"),g=parseFloat(b.getAttribute("pageScale")),m=parseFloat(b.getAttribute("pageWidth")),u=parseFloat(b.getAttribute("pageHeight")),p=b.getAttribute("background"),B=this.parseBackgroundImage(b.getAttribute("backgroundImage")),H=b.getAttribute("extFonts");if(H)try{H=H.split("|").map(function(S){S=S.split("^");return{name:S[0],url:S[1]}})}catch(S){console.log("ExtFonts format error: "+S.message)}return{gridEnabled:"0"!=b.getAttribute("grid"),
+Graph.prototype.createViewState=function(b){var e=b.getAttribute("page"),g=parseFloat(b.getAttribute("pageScale")),m=parseFloat(b.getAttribute("pageWidth")),u=parseFloat(b.getAttribute("pageHeight")),p=b.getAttribute("background"),B=this.parseBackgroundImage(b.getAttribute("backgroundImage")),H=b.getAttribute("extFonts");if(H)try{H=H.split("|").map(function(T){T=T.split("^");return{name:T[0],url:T[1]}})}catch(T){console.log("ExtFonts format error: "+T.message)}return{gridEnabled:"0"!=b.getAttribute("grid"),
gridSize:parseFloat(b.getAttribute("gridSize"))||mxGraph.prototype.gridSize,guidesEnabled:"0"!=b.getAttribute("guides"),foldingEnabled:"0"!=b.getAttribute("fold"),shadowVisible:"1"==b.getAttribute("shadow"),pageVisible:this.isLightboxView()?!1:null!=e?"0"!=e:this.defaultPageVisible,background:null!=p&&0<p.length?p:null,backgroundImage:B,pageScale:isNaN(g)?mxGraph.prototype.pageScale:g,pageFormat:isNaN(m)||isNaN(u)?"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:
mxSettings.getPageFormat():new mxRectangle(0,0,m,u),tooltips:"0"!=b.getAttribute("tooltips"),connect:"0"!=b.getAttribute("connect"),arrows:"0"!=b.getAttribute("arrows"),mathEnabled:"1"==b.getAttribute("math"),adaptiveColors:b.getAttribute("adaptiveColors"),selectionCells:null,defaultParent:null,scrollbars:this.defaultScrollbars,scale:1,hiddenTags:[],extFonts:H||[]}};
Graph.prototype.saveViewState=function(b,e,g,m){g||(e.setAttribute("grid",(null==b?this.defaultGridEnabled:b.gridEnabled)?"1":"0"),e.setAttribute("page",(null==b?this.defaultPageVisible:b.pageVisible)?"1":"0"),e.setAttribute("gridSize",null!=b?b.gridSize:mxGraph.prototype.gridSize),e.setAttribute("guides",null==b||b.guidesEnabled?"1":"0"),e.setAttribute("tooltips",null==b||b.tooltips?"1":"0"),e.setAttribute("connect",null==b||b.connect?"1":"0"),e.setAttribute("arrows",null==b||b.arrows?"1":"0"),e.setAttribute("fold",
@@ -4080,7 +4080,7 @@ EditorUi.prototype.insertPage=function(b,e,g){this.editor.graph.isEnabled()&&(th
EditorUi.prototype.createPage=function(b,e,g){e=new DiagramPage((null!=this.fileNode?this.fileNode.ownerDocument:document).createElement("diagram"),e);e.setName(null!=b?b:this.createPageName());this.initDiagramNode(e,g);return e};EditorUi.prototype.createPageName=function(){for(var b={},e=0;e<this.pages.length;e++){var g=this.pages[e].getName();null!=g&&0<g.length&&(b[g]=g)}e=this.pages.length;do g=mxResources.get("pageWithNumber",[++e]);while(null!=b[g]);return g};
EditorUi.prototype.removePage=function(b){try{var e=this.editor.graph,g=mxUtils.indexOf(this.pages,b);if(e.isEnabled()&&0<=g){this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1);e.model.beginUpdate();try{var m=this.currentPage;m==b&&1<this.pages.length?(g==this.pages.length-1?g--:g++,m=this.pages[g]):1>=this.pages.length&&(m=this.insertPage(),e.model.execute(new RenamePage(this,m,mxResources.get("pageWithNumber",[1]))));e.model.execute(new ChangePage(this,b,m))}finally{e.model.endUpdate()}}}catch(u){this.handleError(u)}return b};
EditorUi.prototype.duplicatePage=function(b,e){var g=null;try{var m=this.editor.graph;if(m.isEnabled()){m.isEditing()&&m.stopEditing();var u=b.node.cloneNode(!1);u.removeAttribute("id");var p={},B=m.createCellLookup([m.model.root]);g=new DiagramPage(u);g.root=m.cloneCell(m.model.root,null,p);var H=new mxGraphModel;H.prefix=Editor.guid()+"-";H.setRoot(g.root);m.updateCustomLinks(m.createCellMapping(p,B),[g.root]);g.viewState=b==this.currentPage?m.getViewState():b.viewState;this.initDiagramNode(g);
-g.viewState.scale=1;delete g.viewState.scrollLeft;delete g.viewState.scrollTop;delete g.viewState.currentRoot;delete g.viewState.defaultParent;g.setName(e);g=this.insertPage(g,mxUtils.indexOf(this.pages,b)+1)}}catch(S){this.handleError(S)}return g};EditorUi.prototype.initDiagramNode=function(b,e){null==e&&(e=(new mxCodec(mxUtils.createXmlDocument())).encode(new mxGraphModel(b.root)));this.editor.graph.saveViewState(b.viewState,e);EditorUi.removeChildNodes(b.node);b.node.appendChild(e)};
+g.viewState.scale=1;delete g.viewState.scrollLeft;delete g.viewState.scrollTop;delete g.viewState.currentRoot;delete g.viewState.defaultParent;g.setName(e);g=this.insertPage(g,mxUtils.indexOf(this.pages,b)+1)}}catch(T){this.handleError(T)}return g};EditorUi.prototype.initDiagramNode=function(b,e){null==e&&(e=(new mxCodec(mxUtils.createXmlDocument())).encode(new mxGraphModel(b.root)));this.editor.graph.saveViewState(b.viewState,e);EditorUi.removeChildNodes(b.node);b.node.appendChild(e)};
EditorUi.prototype.clonePages=function(b){for(var e=[],g=[],m=0;m<b.length;m++)try{g.push(this.clonePage(b[m]))}catch(u){e.push(mxResources.get("pageWithNumber",[m+1])+": "+u.toString())}if(0<e.length){b=Error(e.join("\n"));try{0<g.length&&(b.fallbackFileData=this.getXmlForPages(g))}catch(u){}throw b;}return g};
EditorUi.prototype.clonePage=function(b){this.updatePageRoot(b);var e=new DiagramPage(b.node.cloneNode(!0)),g=b==this.currentPage?this.editor.graph.getViewState():b.viewState;e.viewState=mxUtils.clone(g,EditorUi.transientViewStateProperties);e.root=this.editor.graph.model.cloneCell(b.root,null,!0);e.diagramModified=b.diagramModified;return e};
EditorUi.prototype.renamePage=function(b){if(this.editor.graph.isEnabled()){var e=new FilenameDialog(this,b.getName(),mxResources.get("rename"),mxUtils.bind(this,function(g){null!=g&&0<g.length&&this.editor.graph.model.execute(new RenamePage(this,b,g))}),mxResources.get("rename"));this.showDialog(e.container,300,80,!0,!0);e.init()}return b};EditorUi.prototype.movePage=function(b,e){this.editor.graph.model.execute(new MovePage(this,b,e))};
@@ -4098,25 +4098,25 @@ EditorUi.prototype.createLeftScrollTab=function(){return this.createControlTab(n
EditorUi.prototype.createRightScrollTab=function(){return this.createControlTab(null,Editor.thinArrowRightImage,mxUtils.bind(this,function(b){var e=Math.max(60,this.tabScroller.clientWidth/2);null!=this.tabScroller.scrollBy?this.tabScroller.scrollBy({left:e,top:0,behavior:"smooth"}):this.tabScroller.scrollLeft+=e;mxEvent.consume(b)}))};
EditorUi.prototype.createPageMenuTab=function(){return this.createControlTab(mxResources.get("pages"),Editor.verticalDotsImage,mxUtils.bind(this,function(b){this.editor.graph.popupMenuHandler.hideMenu();var e=new mxPopupMenu(mxUtils.bind(this,function(u,p){this.menus.get("pages").funct(u,p)}));e.div.className+=" geMenubarMenu";e.smartSeparators=!0;e.showDisabled=!0;e.autoExpand=!0;e.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(e,arguments);e.destroy()});var g=mxEvent.getClientX(b),
m=mxEvent.getClientY(b);e.popup(g,m,null,b);this.setCurrentMenu(e);mxEvent.consume(b)}))};EditorUi.prototype.createTabForPage=function(b,e){var g=this.createTab(),m=b.getName()||mxResources.get("untitled"),u=b.getId();g.setAttribute("title",m+(null!=u?" ("+u+")":"")+" ["+e+"]");e=document.createElement("span");e.style.maxWidth="160px";e.style.textOverflow="ellipsis";e.style.overflow="hidden";mxUtils.write(e,m);g.appendChild(e);this.addTabListeners(b,g);return g};
-EditorUi.prototype.addTabListeners=function(b,e){mxEvent.disableContextMenu(e);var g=this.editor.graph;mxEvent.addListener(e,"dblclick",mxUtils.bind(this,function(S){this.renamePage(b);mxEvent.consume(S)}));var m=document.createElement("div");m.className="geTabMenuButton";m.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";m.style.backgroundPosition="center center";m.style.backgroundRepeat="no-repeat";m.style.backgroundSize="10px";e.appendChild(m);var u=!1,p=!1,B=mxUtils.bind(this,
-function(S){u=null!=this.currentMenu;p=b==this.currentPage;this.scrollToPage(b);g.isMouseDown||p||this.selectPage(b)}),H=mxUtils.bind(this,function(S){if(g.isEnabled()&&!g.isMouseDown&&(p&&(mxEvent.isTouchEvent(S)||mxEvent.getSource(S)==m)||mxEvent.isPopupTrigger(S))&&(g.popupMenuHandler.hideMenu(),this.hideCurrentMenu(),!mxEvent.isTouchEvent(S)||!u)){var G=new mxPopupMenu(this.createPageMenu(b));G.div.className+=" geMenubarMenu";G.smartSeparators=!0;G.showDisabled=!0;G.autoExpand=!0;G.hideMenu=mxUtils.bind(this,
-function(){mxPopupMenu.prototype.hideMenu.apply(G,arguments);this.resetCurrentMenu();G.destroy()});var P=mxEvent.getClientX(S),R=mxEvent.getClientY(S);G.popup(P,R,null,S);this.setCurrentMenu(G,e)}mxEvent.consume(S)});mxEvent.addGestureListeners(m,B,null,H);mxEvent.addGestureListeners(e,B,null,H)};
+EditorUi.prototype.addTabListeners=function(b,e){mxEvent.disableContextMenu(e);var g=this.editor.graph;mxEvent.addListener(e,"dblclick",mxUtils.bind(this,function(T){this.renamePage(b);mxEvent.consume(T)}));var m=document.createElement("div");m.className="geTabMenuButton";m.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";m.style.backgroundPosition="center center";m.style.backgroundRepeat="no-repeat";m.style.backgroundSize="10px";e.appendChild(m);var u=!1,p=!1,B=mxUtils.bind(this,
+function(T){u=null!=this.currentMenu;p=b==this.currentPage;this.scrollToPage(b);g.isMouseDown||p||this.selectPage(b)}),H=mxUtils.bind(this,function(T){if(g.isEnabled()&&!g.isMouseDown&&(p&&(mxEvent.isTouchEvent(T)||mxEvent.getSource(T)==m)||mxEvent.isPopupTrigger(T))&&(g.popupMenuHandler.hideMenu(),this.hideCurrentMenu(),!mxEvent.isTouchEvent(T)||!u)){var G=new mxPopupMenu(this.createPageMenu(b));G.div.className+=" geMenubarMenu";G.smartSeparators=!0;G.showDisabled=!0;G.autoExpand=!0;G.hideMenu=mxUtils.bind(this,
+function(){mxPopupMenu.prototype.hideMenu.apply(G,arguments);this.resetCurrentMenu();G.destroy()});var P=mxEvent.getClientX(T),R=mxEvent.getClientY(T);G.popup(P,R,null,T);this.setCurrentMenu(G,e)}mxEvent.consume(T)});mxEvent.addGestureListeners(m,B,null,H);mxEvent.addGestureListeners(e,B,null,H)};
EditorUi.prototype.createPageMenu=function(b,e){return mxUtils.bind(this,function(g,m){1!=urlParams.embed&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=this.getServiceName()||g.addItem(mxResources.get("openInNewWindow"),null,mxUtils.bind(this,function(){this.editor.editAsNew(this.getFileData(!0,null,null,null,!0,!0))}),m));g.addItem(mxResources.get("duplicate"),null,mxUtils.bind(this,function(){this.duplicatePage(b,mxResources.get("copyOf",[b.getName()]))}),m);g.addSeparator(m);this.currentPage==
b&&1<this.pages.length&&this.menus.addSubmenu("movePage",g,m,mxResources.get("move"));g.addItem(mxResources.get("delete"),null,mxUtils.bind(this,function(){this.removePage(b)}),m);g.addItem(mxResources.get("rename")+"...",null,mxUtils.bind(this,function(){this.renamePage(b,e)}),m)})};(function(){mxCodecRegistry.getCodec(ChangePageSetup).exclude.push("page")})();
(function(){var b=new mxObjectCodec(new MovePage,["ui"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};b.afterDecode=function(e,g,m){e=m.oldIndex;m.oldIndex=m.newIndex;m.newIndex=e;return m};mxCodecRegistry.register(b)})();(function(){var b=new mxObjectCodec(new RenamePage,["ui","page"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};b.afterDecode=function(e,g,m){e=m.previous;m.previous=m.name;m.name=e;return m};mxCodecRegistry.register(b)})();
(function(){var b=new mxObjectCodec(new ChangePage,["ui","relatedPage","index","page","previousPage"]);b.afterEncode=function(e,g,m){m.setAttribute("relatedPage",g.relatedPage.getId());null==g.index&&(m.setAttribute("name",g.relatedPage.getName()),null!=g.relatedPage.viewState&&m.setAttribute("viewState",JSON.stringify(g.relatedPage.viewState,function(u,p){return 0>mxUtils.indexOf(EditorUi.transientViewStateProperties,u)?p:void 0})),null!=g.relatedPage.root&&e.encodeCell(g.relatedPage.root,m));return m};
b.beforeDecode=function(e,g,m){m.ui=e.ui;m.relatedPage=m.ui.getPageById(g.getAttribute("relatedPage"));if(null==m.relatedPage){var u=g.ownerDocument.createElement("diagram");u.setAttribute("id",g.getAttribute("relatedPage"));u.setAttribute("name",g.getAttribute("name"));m.relatedPage=new DiagramPage(u);u=g.getAttribute("viewState");null!=u&&(m.relatedPage.viewState=JSON.parse(u),g.removeAttribute("viewState"));g=g.cloneNode(!0);u=g.firstChild;if(null!=u)for(m.relatedPage.root=e.decodeCell(u,!1),m=
-u.nextSibling,u.parentNode.removeChild(u),u=m;null!=u;){m=u.nextSibling;if(u.nodeType==mxConstants.NODETYPE_ELEMENT){var p=u.getAttribute("id");null==e.lookup(p)&&e.decodeCell(u)}u.parentNode.removeChild(u);u=m}}return g};b.afterDecode=function(e,g,m){m.index=m.previousIndex;return m};mxCodecRegistry.register(b)})();(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(m,u,p,B,H){u=null!=u?u:!1;null==p&&(p=this.getFoldableCells(this.getSelectionCells(),m));this.stopEditing();this.model.beginUpdate();try{for(var S=p.slice(),G=0;G<p.length;G++)"1"==mxUtils.getValue(this.getCurrentCellStyle(p[G]),"treeFolding","0")&&this.foldTreeCell(m,p[G]);p=S;p=b.apply(this,arguments)}finally{this.model.endUpdate()}return p};Graph.prototype.foldTreeCell=function(m,u){this.model.beginUpdate();try{var p=
-[];this.traverse(u,!0,mxUtils.bind(this,function(H,S){var G=null!=S&&this.isTreeEdge(S);G&&p.push(S);H==u||null!=S&&!G||p.push(H);return(null==S||G)&&(H==u||!this.model.isCollapsed(H))}));this.model.setCollapsed(u,m);for(var B=0;B<p.length;B++)this.model.setVisible(p[B],!m)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(m){return!this.isEdgeIgnored(m)};Graph.prototype.getTreeEdges=function(m,u,p,B,H,S){return this.model.filterCells(this.getEdges(m,u,p,B,H,S),mxUtils.bind(this,
+u.nextSibling,u.parentNode.removeChild(u),u=m;null!=u;){m=u.nextSibling;if(u.nodeType==mxConstants.NODETYPE_ELEMENT){var p=u.getAttribute("id");null==e.lookup(p)&&e.decodeCell(u)}u.parentNode.removeChild(u);u=m}}return g};b.afterDecode=function(e,g,m){m.index=m.previousIndex;return m};mxCodecRegistry.register(b)})();(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(m,u,p,B,H){u=null!=u?u:!1;null==p&&(p=this.getFoldableCells(this.getSelectionCells(),m));this.stopEditing();this.model.beginUpdate();try{for(var T=p.slice(),G=0;G<p.length;G++)"1"==mxUtils.getValue(this.getCurrentCellStyle(p[G]),"treeFolding","0")&&this.foldTreeCell(m,p[G]);p=T;p=b.apply(this,arguments)}finally{this.model.endUpdate()}return p};Graph.prototype.foldTreeCell=function(m,u){this.model.beginUpdate();try{var p=
+[];this.traverse(u,!0,mxUtils.bind(this,function(H,T){var G=null!=T&&this.isTreeEdge(T);G&&p.push(T);H==u||null!=T&&!G||p.push(H);return(null==T||G)&&(H==u||!this.model.isCollapsed(H))}));this.model.setCollapsed(u,m);for(var B=0;B<p.length;B++)this.model.setVisible(p[B],!m)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(m){return!this.isEdgeIgnored(m)};Graph.prototype.getTreeEdges=function(m,u,p,B,H,T){return this.model.filterCells(this.getEdges(m,u,p,B,H,T),mxUtils.bind(this,
function(G){return this.isTreeEdge(G)}))};Graph.prototype.getIncomingTreeEdges=function(m,u){return this.getTreeEdges(m,u,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(m,u){return this.getTreeEdges(m,u,!1,!0,!1)};var e=EditorUi.prototype.init;EditorUi.prototype.init=function(){e.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function m(Y){return t.isVertex(Y)&&p(Y)}function u(Y){var ma=!1;null!=Y&&(ma=
"1"==l.getCurrentCellStyle(Y).treeMoving);return ma}function p(Y){var ma=!1;null!=Y&&(Y=t.getParent(Y),ma=l.view.getState(Y),ma="tree"==(null!=ma?ma.style:l.getCellStyle(Y)).containerType);return ma}function B(Y){var ma=!1;null!=Y&&(Y=t.getParent(Y),ma=l.view.getState(Y),l.view.getState(Y),ma=null!=(null!=ma?ma.style:l.getCellStyle(Y)).childLayout);return ma}function H(Y){Y=l.view.getState(Y);if(null!=Y){var ma=l.getIncomingTreeEdges(Y.cell);if(0<ma.length&&(ma=l.view.getState(ma[0]),null!=ma&&(ma=
-ma.absolutePoints,null!=ma&&0<ma.length&&(ma=ma[ma.length-1],null!=ma)))){if(ma.y==Y.y&&Math.abs(ma.x-Y.getCenterX())<Y.width/2)return mxConstants.DIRECTION_SOUTH;if(ma.y==Y.y+Y.height&&Math.abs(ma.x-Y.getCenterX())<Y.width/2)return mxConstants.DIRECTION_NORTH;if(ma.x>Y.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function S(Y,ma){ma=null!=ma?ma:!0;l.model.beginUpdate();try{var Z=l.model.getParent(Y),k=l.getIncomingTreeEdges(Y),A=l.cloneCells([k[0],Y]);l.model.setTerminal(A[0],
-l.model.getTerminal(k[0],!0),!0);var I=H(Y),U=Z.geometry;I==mxConstants.DIRECTION_SOUTH||I==mxConstants.DIRECTION_NORTH?A[1].geometry.x+=ma?Y.geometry.width+10:-A[1].geometry.width-10:A[1].geometry.y+=ma?Y.geometry.height+10:-A[1].geometry.height-10;l.view.currentRoot!=Z&&(A[1].geometry.x-=U.x,A[1].geometry.y-=U.y);var O=l.view.getState(Y),T=l.view.scale;if(null!=O){var X=mxRectangle.fromRectangle(O);I==mxConstants.DIRECTION_SOUTH||I==mxConstants.DIRECTION_NORTH?X.x+=(ma?Y.geometry.width+10:-A[1].geometry.width-
-10)*T:X.y+=(ma?Y.geometry.height+10:-A[1].geometry.height-10)*T;var aa=l.getOutgoingTreeEdges(l.model.getTerminal(k[0],!0));if(null!=aa){for(var ja=I==mxConstants.DIRECTION_SOUTH||I==mxConstants.DIRECTION_NORTH,pa=U=k=0;pa<aa.length;pa++){var sa=l.model.getTerminal(aa[pa],!1);if(I==H(sa)){var qa=l.view.getState(sa);sa!=Y&&null!=qa&&(ja&&ma!=qa.getCenterX()<O.getCenterX()||!ja&&ma!=qa.getCenterY()<O.getCenterY())&&mxUtils.intersects(X,qa)&&(k=10+Math.max(k,(Math.min(X.x+X.width,qa.x+qa.width)-Math.max(X.x,
-qa.x))/T),U=10+Math.max(U,(Math.min(X.y+X.height,qa.y+qa.height)-Math.max(X.y,qa.y))/T))}}ja?U=0:k=0;for(pa=0;pa<aa.length;pa++)if(sa=l.model.getTerminal(aa[pa],!1),I==H(sa)&&(qa=l.view.getState(sa),sa!=Y&&null!=qa&&(ja&&ma!=qa.getCenterX()<O.getCenterX()||!ja&&ma!=qa.getCenterY()<O.getCenterY()))){var wa=[];l.traverse(qa.cell,!0,function(Ba,za){var Ea=null!=za&&l.isTreeEdge(za);Ea&&wa.push(za);(null==za||Ea)&&wa.push(Ba);return null==za||Ea});l.moveCells(wa,(ma?1:-1)*k,(ma?1:-1)*U)}}}return l.addCells(A,
+ma.absolutePoints,null!=ma&&0<ma.length&&(ma=ma[ma.length-1],null!=ma)))){if(ma.y==Y.y&&Math.abs(ma.x-Y.getCenterX())<Y.width/2)return mxConstants.DIRECTION_SOUTH;if(ma.y==Y.y+Y.height&&Math.abs(ma.x-Y.getCenterX())<Y.width/2)return mxConstants.DIRECTION_NORTH;if(ma.x>Y.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function T(Y,ma){ma=null!=ma?ma:!0;l.model.beginUpdate();try{var Z=l.model.getParent(Y),k=l.getIncomingTreeEdges(Y),A=l.cloneCells([k[0],Y]);l.model.setTerminal(A[0],
+l.model.getTerminal(k[0],!0),!0);var I=H(Y),U=Z.geometry;I==mxConstants.DIRECTION_SOUTH||I==mxConstants.DIRECTION_NORTH?A[1].geometry.x+=ma?Y.geometry.width+10:-A[1].geometry.width-10:A[1].geometry.y+=ma?Y.geometry.height+10:-A[1].geometry.height-10;l.view.currentRoot!=Z&&(A[1].geometry.x-=U.x,A[1].geometry.y-=U.y);var O=l.view.getState(Y),S=l.view.scale;if(null!=O){var X=mxRectangle.fromRectangle(O);I==mxConstants.DIRECTION_SOUTH||I==mxConstants.DIRECTION_NORTH?X.x+=(ma?Y.geometry.width+10:-A[1].geometry.width-
+10)*S:X.y+=(ma?Y.geometry.height+10:-A[1].geometry.height-10)*S;var aa=l.getOutgoingTreeEdges(l.model.getTerminal(k[0],!0));if(null!=aa){for(var ja=I==mxConstants.DIRECTION_SOUTH||I==mxConstants.DIRECTION_NORTH,pa=U=k=0;pa<aa.length;pa++){var sa=l.model.getTerminal(aa[pa],!1);if(I==H(sa)){var qa=l.view.getState(sa);sa!=Y&&null!=qa&&(ja&&ma!=qa.getCenterX()<O.getCenterX()||!ja&&ma!=qa.getCenterY()<O.getCenterY())&&mxUtils.intersects(X,qa)&&(k=10+Math.max(k,(Math.min(X.x+X.width,qa.x+qa.width)-Math.max(X.x,
+qa.x))/S),U=10+Math.max(U,(Math.min(X.y+X.height,qa.y+qa.height)-Math.max(X.y,qa.y))/S))}}ja?U=0:k=0;for(pa=0;pa<aa.length;pa++)if(sa=l.model.getTerminal(aa[pa],!1),I==H(sa)&&(qa=l.view.getState(sa),sa!=Y&&null!=qa&&(ja&&ma!=qa.getCenterX()<O.getCenterX()||!ja&&ma!=qa.getCenterY()<O.getCenterY()))){var wa=[];l.traverse(qa.cell,!0,function(Ba,za){var Ea=null!=za&&l.isTreeEdge(za);Ea&&wa.push(za);(null==za||Ea)&&wa.push(Ba);return null==za||Ea});l.moveCells(wa,(ma?1:-1)*k,(ma?1:-1)*U)}}}return l.addCells(A,
Z)}finally{l.model.endUpdate()}}function G(Y){l.model.beginUpdate();try{var ma=H(Y),Z=l.getIncomingTreeEdges(Y),k=l.cloneCells([Z[0],Y]);l.model.setTerminal(Z[0],k[1],!1);l.model.setTerminal(k[0],k[1],!0);l.model.setTerminal(k[0],Y,!1);var A=l.model.getParent(Y),I=A.geometry,U=[];l.view.currentRoot!=A&&(k[1].geometry.x-=I.x,k[1].geometry.y-=I.y);l.traverse(Y,!0,function(X,aa){var ja=null!=aa&&l.isTreeEdge(aa);ja&&U.push(aa);(null==aa||ja)&&U.push(X);return null==aa||ja});var O=Y.geometry.width+40,
-T=Y.geometry.height+40;ma==mxConstants.DIRECTION_SOUTH?O=0:ma==mxConstants.DIRECTION_NORTH?(O=0,T=-T):ma==mxConstants.DIRECTION_WEST?(O=-O,T=0):ma==mxConstants.DIRECTION_EAST&&(T=0);l.moveCells(U,O,T);return l.addCells(k,A)}finally{l.model.endUpdate()}}function P(Y,ma){l.model.beginUpdate();try{var Z=l.model.getParent(Y),k=l.getIncomingTreeEdges(Y),A=H(Y);0==k.length&&(k=[l.createEdge(Z,null,"",null,null,l.createCurrentEdgeStyle())],A=ma);var I=l.cloneCells([k[0],Y]);l.model.setTerminal(I[0],Y,!0);
-null==l.model.getTerminal(I[0],!1)&&(l.model.setTerminal(I[0],I[1],!1),l.applyNewEdgeStyle(I[1],[I[0]],A));k=l.getOutgoingTreeEdges(Y);var U=Z.geometry;ma=[];l.view.currentRoot==Z&&(U=new mxRectangle);for(var O=0;O<k.length;O++){var T=l.model.getTerminal(k[O],!1);null!=T&&ma.push(T)}var X=l.view.getBounds(ma),aa=l.view.translate,ja=l.view.scale;A==mxConstants.DIRECTION_SOUTH?(I[1].geometry.x=null==X?Y.geometry.x+(Y.geometry.width-I[1].geometry.width)/2:(X.x+X.width)/ja-aa.x-U.x+10,I[1].geometry.y+=
+S=Y.geometry.height+40;ma==mxConstants.DIRECTION_SOUTH?O=0:ma==mxConstants.DIRECTION_NORTH?(O=0,S=-S):ma==mxConstants.DIRECTION_WEST?(O=-O,S=0):ma==mxConstants.DIRECTION_EAST&&(S=0);l.moveCells(U,O,S);return l.addCells(k,A)}finally{l.model.endUpdate()}}function P(Y,ma){l.model.beginUpdate();try{var Z=l.model.getParent(Y),k=l.getIncomingTreeEdges(Y),A=H(Y);0==k.length&&(k=[l.createEdge(Z,null,"",null,null,l.createCurrentEdgeStyle())],A=ma);var I=l.cloneCells([k[0],Y]);l.model.setTerminal(I[0],Y,!0);
+null==l.model.getTerminal(I[0],!1)&&(l.model.setTerminal(I[0],I[1],!1),l.applyNewEdgeStyle(I[1],[I[0]],A));k=l.getOutgoingTreeEdges(Y);var U=Z.geometry;ma=[];l.view.currentRoot==Z&&(U=new mxRectangle);for(var O=0;O<k.length;O++){var S=l.model.getTerminal(k[O],!1);null!=S&&ma.push(S)}var X=l.view.getBounds(ma),aa=l.view.translate,ja=l.view.scale;A==mxConstants.DIRECTION_SOUTH?(I[1].geometry.x=null==X?Y.geometry.x+(Y.geometry.width-I[1].geometry.width)/2:(X.x+X.width)/ja-aa.x-U.x+10,I[1].geometry.y+=
I[1].geometry.height-U.y+40):A==mxConstants.DIRECTION_NORTH?(I[1].geometry.x=null==X?Y.geometry.x+(Y.geometry.width-I[1].geometry.width)/2:(X.x+X.width)/ja-aa.x+-U.x+10,I[1].geometry.y-=I[1].geometry.height+U.y+40):(I[1].geometry.x=A==mxConstants.DIRECTION_WEST?I[1].geometry.x-(I[1].geometry.width+U.x+40):I[1].geometry.x+(I[1].geometry.width-U.x+40),I[1].geometry.y=null==X?Y.geometry.y+(Y.geometry.height-I[1].geometry.height)/2:(X.y+X.height)/ja-aa.y+-U.y+10);return l.addCells(I,Z)}finally{l.model.endUpdate()}}
function R(Y,ma,Z){Y=l.getOutgoingTreeEdges(Y);Z=l.view.getState(Z);var k=[];if(null!=Z&&null!=Y){for(var A=0;A<Y.length;A++){var I=l.view.getState(l.model.getTerminal(Y[A],!1));null!=I&&(!ma&&Math.min(I.x+I.width,Z.x+Z.width)>=Math.max(I.x,Z.x)||ma&&Math.min(I.y+I.height,Z.y+Z.height)>=Math.max(I.y,Z.y))&&k.push(I)}k.sort(function(U,O){return ma?U.x+U.width-O.x-O.width:U.y+U.height-O.y-O.height})}return k}function c(Y,ma){var Z=H(Y),k=ma==mxConstants.DIRECTION_EAST||ma==mxConstants.DIRECTION_WEST;
(Z==mxConstants.DIRECTION_EAST||Z==mxConstants.DIRECTION_WEST)==k&&Z!=ma?f.actions.get("selectParent").funct():Z==ma?(ma=l.getOutgoingTreeEdges(Y),null!=ma&&0<ma.length&&l.setSelectionCell(l.model.getTerminal(ma[0],!1))):(Z=l.getIncomingTreeEdges(Y),null!=Z&&0<Z.length&&(k=R(l.model.getTerminal(Z[0],!0),k,Y),Y=l.view.getState(Y),null!=Y&&(Y=mxUtils.indexOf(k,Y),0<=Y&&(Y+=ma==mxConstants.DIRECTION_NORTH||ma==mxConstants.DIRECTION_WEST?-1:1,0<=Y&&Y<=k.length-1&&l.setSelectionCell(k[Y].cell)))))}var f=
@@ -4124,37 +4124,37 @@ this,l=f.editor.graph,t=l.getModel(),z=f.menus.createPopupMenu;f.menus.createPop
Z)):0<l.model.getEdgeCount(ma)&&this.addMenuItems(Y,["selectConnections"],null,Z)}};f.actions.addAction("selectChildren",function(Y){if(l.isEnabled()&&1==l.getSelectionCount()){var ma=l.getSelectionCell();Y=mxEvent.isControlDown(Y)?null:l.getOutgoingTreeEdges(ma);if(null!=Y&&0<Y.length){ma=[];for(var Z=0;Z<Y.length;Z++)ma.push(l.model.getTerminal(Y[Z],!1));l.setSelectionCells(ma)}else l.setSelectionCells(l.model.getChildren(ma))}},null,null,"Alt+Shift+C");f.actions.addAction("selectDescendants",function(Y){var ma=
l.getSelectionCell();if(l.isEnabled()&&null!=ma){var Z=[];mxEvent.isControlDown(Y)||l.traverse(ma,!0,function(k,A){var I=null!=A&&l.isTreeEdge(A);I&&mxEvent.isControlDown(Y)&&Z.push(A);(null==A||I)&&Z.push(k);return null==A||I});if(0==Z.length||1==Z.length&&Z[0]==ma)Z=l.model.getDescendants(ma);l.setSelectionCells(Z)}},null,null,"Alt+Shift+X");f.actions.addAction("selectParent",function(Y){var ma=l.getSelectionCell();l.isEnabled()&&null!=ma&&(Y=mxEvent.isControlDown(Y)?null:l.getIncomingTreeEdges(ma),
null!=Y&&0<Y.length?l.setSelectionCell(l.model.getTerminal(Y[0],!0)):l.selectParentCell())},null,null,"Alt+Shift+P");f.actions.addAction("selectSiblings",function(Y){if(l.isEnabled()&&1==l.getSelectionCount()){var ma=l.getSelectionCell(),Z=mxEvent.isControlDown(Y)?null:l.getIncomingTreeEdges(ma);Y=[];if(null!=Z&&0<Z.length&&(Z=l.getOutgoingTreeEdges(l.model.getTerminal(Z[0],!0)),null!=Z))for(var k=0;k<Z.length;k++)Y.push(l.model.getTerminal(Z[k],!1));0==Y.length&&(Y=l.model.getChildren(l.model.getParent(ma)));
-l.setSelectionCells(Y)}},null,null,"Alt+Shift+S");var C=l.removeCells;l.removeCells=function(Y,ma){ma=null!=ma?ma:!0;null==Y&&(Y=this.getDeletableCells(this.getSelectionCells()));ma&&(Y=this.getDeletableCells(this.addAllEdges(Y)));for(var Z=[],k=0;k<Y.length;k++){var A=Y[k];t.isEdge(A)&&p(A)&&(Z.push(A),A=t.getTerminal(A,!1));if(m(A)){var I=[];l.traverse(A,!0,function(U,O){var T=null!=O&&l.isTreeEdge(O);T&&I.push(O);(null==O||T)&&I.push(U);return null==O||T});0<I.length&&(Z=Z.concat(I),A=l.getIncomingTreeEdges(Y[k]),
+l.setSelectionCells(Y)}},null,null,"Alt+Shift+S");var C=l.removeCells;l.removeCells=function(Y,ma){ma=null!=ma?ma:!0;null==Y&&(Y=this.getDeletableCells(this.getSelectionCells()));ma&&(Y=this.getDeletableCells(this.addAllEdges(Y)));for(var Z=[],k=0;k<Y.length;k++){var A=Y[k];t.isEdge(A)&&p(A)&&(Z.push(A),A=t.getTerminal(A,!1));if(m(A)){var I=[];l.traverse(A,!0,function(U,O){var S=null!=O&&l.isTreeEdge(O);S&&I.push(O);(null==O||S)&&I.push(U);return null==O||S});0<I.length&&(Z=Z.concat(I),A=l.getIncomingTreeEdges(Y[k]),
Y=Y.concat(A))}else null!=A&&Z.push(Y[k])}Y=Z;return C.apply(this,arguments)};f.hoverIcons.getStateAt=function(Y,ma,Z){return m(Y.cell)?null:this.graph.view.getState(this.graph.getCellAt(ma,Z))};var F=l.duplicateCells;l.duplicateCells=function(Y,ma){Y=null!=Y?Y:this.getSelectionCells();for(var Z=Y.slice(0),k=0;k<Z.length;k++){var A=l.view.getState(Z[k]);if(null!=A&&m(A.cell)){var I=l.getIncomingTreeEdges(A.cell);for(A=0;A<I.length;A++)mxUtils.remove(I[A],Y)}}this.model.beginUpdate();try{var U=F.call(this,
-Y,ma);if(U.length==Y.length)for(k=0;k<Y.length;k++)if(m(Y[k])){var O=l.getIncomingTreeEdges(U[k]);I=l.getIncomingTreeEdges(Y[k]);if(0==O.length&&0<I.length){var T=this.cloneCell(I[0]);this.addEdge(T,l.getDefaultParent(),this.model.getTerminal(I[0],!0),U[k])}}}finally{this.model.endUpdate()}return U};var N=l.moveCells;l.moveCells=function(Y,ma,Z,k,A,I,U){for(var O=null,T=[],X=0;X<Y.length;X++)(u(Y[X])||m(Y[X]))&&!B(Y[X])&&this.isCellCollapsed(Y[X])?T=T.concat(this.getSubtree(Y[X])):T.push(Y[X]);Y=
-mxUtils.removeDuplicates(T);this.model.beginUpdate();try{T=A;var aa=this.getCurrentCellStyle(A);if(null!=Y&&m(A)&&"1"==mxUtils.getValue(aa,"treeFolding","0")){for(X=0;X<Y.length;X++)if(m(Y[X])||l.model.isEdge(Y[X])&&null==l.model.getTerminal(Y[X],!0)){A=l.model.getParent(Y[X]);break}if(null!=T&&A!=T&&null!=this.view.getState(Y[0])){var ja=l.getIncomingTreeEdges(Y[0]);if(0<ja.length){var pa=l.view.getState(l.model.getTerminal(ja[0],!0));if(null!=pa){var sa=l.view.getState(T);null!=sa&&(ma=(sa.getCenterX()-
-pa.getCenterX())/l.view.scale,Z=(sa.getCenterY()-pa.getCenterY())/l.view.scale)}}}}O=N.apply(this,arguments);if(null!=O&&null!=Y&&O.length==Y.length)for(X=0;X<O.length;X++)if(this.model.isEdge(O[X]))m(T)&&0>mxUtils.indexOf(O,this.model.getTerminal(O[X],!0))&&this.model.setTerminal(O[X],T,!0);else if(m(Y[X])&&(ja=l.getIncomingTreeEdges(Y[X]),0<ja.length))if(!k)m(T)&&0>mxUtils.indexOf(Y,this.model.getTerminal(ja[0],!0))&&this.model.setTerminal(ja[0],T,!0);else if(0==l.getIncomingTreeEdges(O[X]).length){aa=
-T;if(null==aa||aa==l.model.getParent(Y[X]))aa=l.model.getTerminal(ja[0],!0);k=this.cloneCell(ja[0]);this.addEdge(k,l.getDefaultParent(),aa,O[X])}}finally{this.model.endUpdate()}return O};if(null!=f.sidebar){var K=f.sidebar.dropAndConnect;f.sidebar.dropAndConnect=function(Y,ma,Z,k){var A=l.model,I=null;A.beginUpdate();try{if(I=K.apply(this,arguments),m(Y))for(var U=0;U<I.length;U++)if(A.isEdge(I[U])&&null==A.getTerminal(I[U],!0)){A.setTerminal(I[U],Y,!0);var O=l.getCellGeometry(I[U]);O.points=null;
+Y,ma);if(U.length==Y.length)for(k=0;k<Y.length;k++)if(m(Y[k])){var O=l.getIncomingTreeEdges(U[k]);I=l.getIncomingTreeEdges(Y[k]);if(0==O.length&&0<I.length){var S=this.cloneCell(I[0]);this.addEdge(S,l.getDefaultParent(),this.model.getTerminal(I[0],!0),U[k])}}}finally{this.model.endUpdate()}return U};var N=l.moveCells;l.moveCells=function(Y,ma,Z,k,A,I,U){for(var O=null,S=[],X=0;X<Y.length;X++)(u(Y[X])||m(Y[X]))&&!B(Y[X])&&this.isCellCollapsed(Y[X])?S=S.concat(this.getSubtree(Y[X])):S.push(Y[X]);Y=
+mxUtils.removeDuplicates(S);this.model.beginUpdate();try{S=A;var aa=this.getCurrentCellStyle(A);if(null!=Y&&m(A)&&"1"==mxUtils.getValue(aa,"treeFolding","0")){for(X=0;X<Y.length;X++)if(m(Y[X])||l.model.isEdge(Y[X])&&null==l.model.getTerminal(Y[X],!0)){A=l.model.getParent(Y[X]);break}if(null!=S&&A!=S&&null!=this.view.getState(Y[0])){var ja=l.getIncomingTreeEdges(Y[0]);if(0<ja.length){var pa=l.view.getState(l.model.getTerminal(ja[0],!0));if(null!=pa){var sa=l.view.getState(S);null!=sa&&(ma=(sa.getCenterX()-
+pa.getCenterX())/l.view.scale,Z=(sa.getCenterY()-pa.getCenterY())/l.view.scale)}}}}O=N.apply(this,arguments);if(null!=O&&null!=Y&&O.length==Y.length)for(X=0;X<O.length;X++)if(this.model.isEdge(O[X]))m(S)&&0>mxUtils.indexOf(O,this.model.getTerminal(O[X],!0))&&this.model.setTerminal(O[X],S,!0);else if(m(Y[X])&&(ja=l.getIncomingTreeEdges(Y[X]),0<ja.length))if(!k)m(S)&&0>mxUtils.indexOf(Y,this.model.getTerminal(ja[0],!0))&&this.model.setTerminal(ja[0],S,!0);else if(0==l.getIncomingTreeEdges(O[X]).length){aa=
+S;if(null==aa||aa==l.model.getParent(Y[X]))aa=l.model.getTerminal(ja[0],!0);k=this.cloneCell(ja[0]);this.addEdge(k,l.getDefaultParent(),aa,O[X])}}finally{this.model.endUpdate()}return O};if(null!=f.sidebar){var K=f.sidebar.dropAndConnect;f.sidebar.dropAndConnect=function(Y,ma,Z,k){var A=l.model,I=null;A.beginUpdate();try{if(I=K.apply(this,arguments),m(Y))for(var U=0;U<I.length;U++)if(A.isEdge(I[U])&&null==A.getTerminal(I[U],!0)){A.setTerminal(I[U],Y,!0);var O=l.getCellGeometry(I[U]);O.points=null;
null!=O.getTerminalPoint(!0)&&O.setTerminalPoint(null,!0)}}finally{A.endUpdate()}return I}}var J={67:f.actions.get("selectChildren"),88:f.actions.get("selectDescendants"),80:f.actions.get("selectParent"),83:f.actions.get("selectSiblings")},da={67:f.actions.get("copyStyle"),86:f.actions.get("pasteStyle")},ea=f.onKeyDown;f.onKeyDown=function(Y){try{var ma=l.getSelectionCell();if(l.isEnabled()&&!l.isEditing()&&null!=ma){var Z=mxEvent.isAltDown(Y)&&mxEvent.isShiftDown(Y)?J[Y.keyCode]:mxEvent.isAltDown(Y)?
-da[Y.keyCode]:null;null!=Z?(Z.funct(Y),mxEvent.consume(Y)):m(ma)&&(Z=null,0<l.getIncomingTreeEdges(ma).length&&(9==Y.which?Z=mxEvent.isShiftDown(Y)?G(ma):P(ma):13==Y.which&&(Z=S(ma,!mxEvent.isShiftDown(Y)))),null!=Z&&0<Z.length?(1==Z.length&&l.model.isEdge(Z[0])?l.setSelectionCell(l.model.getTerminal(Z[0],!1)):l.setSelectionCell(Z[Z.length-1]),null!=f.hoverIcons&&f.hoverIcons.update(l.view.getState(ma)),l.startEditingAtCell(ma),mxEvent.consume(Y)):37==Y.keyCode?(c(ma,mxConstants.DIRECTION_WEST),mxEvent.consume(Y)):
-38==Y.keyCode?(c(ma,mxConstants.DIRECTION_NORTH),mxEvent.consume(Y)):39==Y.keyCode?(c(ma,mxConstants.DIRECTION_EAST),mxEvent.consume(Y)):40==Y.keyCode&&(c(ma,mxConstants.DIRECTION_SOUTH),mxEvent.consume(Y)))}}catch(k){f.handleError(k)}mxEvent.isConsumed(Y)||ea.apply(this,arguments)};var ca=l.connectVertex;l.connectVertex=function(Y,ma,Z,k,A,I,U){var O=l.getIncomingTreeEdges(Y);if(m(Y)){var T=H(Y),X=T==mxConstants.DIRECTION_EAST||T==mxConstants.DIRECTION_WEST,aa=ma==mxConstants.DIRECTION_EAST||ma==
-mxConstants.DIRECTION_WEST;return T==ma||0==O.length?P(Y,ma):X==aa?G(Y):S(Y,ma!=mxConstants.DIRECTION_NORTH&&ma!=mxConstants.DIRECTION_WEST)}return ca.apply(this,arguments)};l.getSubtree=function(Y){var ma=[Y];!u(Y)&&!m(Y)||B(Y)||l.traverse(Y,!0,function(Z,k){var A=null!=k&&l.isTreeEdge(k);A&&0>mxUtils.indexOf(ma,k)&&ma.push(k);(null==k||A)&&0>mxUtils.indexOf(ma,Z)&&ma.push(Z);return null==k||A});return ma};var W=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){W.apply(this,
+da[Y.keyCode]:null;null!=Z?(Z.funct(Y),mxEvent.consume(Y)):m(ma)&&(Z=null,0<l.getIncomingTreeEdges(ma).length&&(9==Y.which?Z=mxEvent.isShiftDown(Y)?G(ma):P(ma):13==Y.which&&(Z=T(ma,!mxEvent.isShiftDown(Y)))),null!=Z&&0<Z.length?(1==Z.length&&l.model.isEdge(Z[0])?l.setSelectionCell(l.model.getTerminal(Z[0],!1)):l.setSelectionCell(Z[Z.length-1]),null!=f.hoverIcons&&f.hoverIcons.update(l.view.getState(ma)),l.startEditingAtCell(ma),mxEvent.consume(Y)):37==Y.keyCode?(c(ma,mxConstants.DIRECTION_WEST),mxEvent.consume(Y)):
+38==Y.keyCode?(c(ma,mxConstants.DIRECTION_NORTH),mxEvent.consume(Y)):39==Y.keyCode?(c(ma,mxConstants.DIRECTION_EAST),mxEvent.consume(Y)):40==Y.keyCode&&(c(ma,mxConstants.DIRECTION_SOUTH),mxEvent.consume(Y)))}}catch(k){f.handleError(k)}mxEvent.isConsumed(Y)||ea.apply(this,arguments)};var ca=l.connectVertex;l.connectVertex=function(Y,ma,Z,k,A,I,U){var O=l.getIncomingTreeEdges(Y);if(m(Y)){var S=H(Y),X=S==mxConstants.DIRECTION_EAST||S==mxConstants.DIRECTION_WEST,aa=ma==mxConstants.DIRECTION_EAST||ma==
+mxConstants.DIRECTION_WEST;return S==ma||0==O.length?P(Y,ma):X==aa?G(Y):T(Y,ma!=mxConstants.DIRECTION_NORTH&&ma!=mxConstants.DIRECTION_WEST)}return ca.apply(this,arguments)};l.getSubtree=function(Y){var ma=[Y];!u(Y)&&!m(Y)||B(Y)||l.traverse(Y,!0,function(Z,k){var A=null!=k&&l.isTreeEdge(k);A&&0>mxUtils.indexOf(ma,k)&&ma.push(k);(null==k||A)&&0>mxUtils.indexOf(ma,Z)&&ma.push(Z);return null==k||A});return ma};var W=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){W.apply(this,
arguments);(u(this.state.cell)||m(this.state.cell))&&!B(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&!this.graph.isCellCollapsed(this.state.cell)?null==this.moveHandle&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title","Move Subtree"),this.moveHandle.style.position="absolute",this.moveHandle.style.cursor="pointer",this.moveHandle.style.width="24px",this.moveHandle.style.height="24px",this.graph.container.appendChild(this.moveHandle),
this.redrawMoveHandle(),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(Y){this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(Y),mxEvent.getClientY(Y),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(Y);this.graph.isMouseDown=!0;f.hoverIcons.reset();mxEvent.consume(Y)}))):null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)};var ba=mxVertexHandler.prototype.redrawHandles;
mxVertexHandler.prototype.redrawHandles=function(){ba.apply(this,arguments);this.redrawMoveHandle()};mxVertexHandler.prototype.redrawMoveHandle=function(){null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:0)+2+"px",this.moveHandle.style.top=this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var ha=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(Y){ha.apply(this,arguments);null!=
this.moveHandle&&(this.moveHandle.style.display=Y?"":"none")};var la=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(Y,ma){la.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)}};if("undefined"!==typeof Sidebar){var g=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var m=g.apply(this,arguments),u=this.graph,p=this;return m.concat([this.addEntry("tree container",
-function(){var B=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");B.vertex=!0;var H=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');H.vertex=!0;var S=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
-S.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");G.geometry.relative=!0;G.edge=!0;H.insertEdge(G,!0);S.insertEdge(G,!1);B.insert(G);B.insert(H);B.insert(S);return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var B=new mxCell("Mindmap",new mxGeometry(0,
-0,420,126),"swimlane;startSize=20;horizontal=1;containerType=tree;");B.vertex=!0;var H=new mxCell("Central Idea",new mxGeometry(160,60,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');H.vertex=!0;var S=new mxCell("Topic",new mxGeometry(320,40,80,20),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
-S.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");G.geometry.relative=!0;G.edge=!0;H.insertEdge(G,!0);S.insertEdge(G,!1);var P=new mxCell("Branch",new mxGeometry(320,80,72,26),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
+function(){var B=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");B.vertex=!0;var H=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');H.vertex=!0;var T=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
+T.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");G.geometry.relative=!0;G.edge=!0;H.insertEdge(G,!0);T.insertEdge(G,!1);B.insert(G);B.insert(H);B.insert(T);return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var B=new mxCell("Mindmap",new mxGeometry(0,
+0,420,126),"swimlane;startSize=20;horizontal=1;containerType=tree;");B.vertex=!0;var H=new mxCell("Central Idea",new mxGeometry(160,60,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');H.vertex=!0;var T=new mxCell("Topic",new mxGeometry(320,40,80,20),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
+T.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");G.geometry.relative=!0;G.edge=!0;H.insertEdge(G,!0);T.insertEdge(G,!1);var P=new mxCell("Branch",new mxGeometry(320,80,72,26),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
P.vertex=!0;var R=new mxCell("",new mxGeometry(0,0,0,0),G.style);R.geometry.relative=!0;R.edge=!0;H.insertEdge(R,!0);P.insertEdge(R,!1);var c=new mxCell("Topic",new mxGeometry(20,40,80,20),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
c.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,0,0),G.style);f.geometry.relative=!0;f.edge=!0;H.insertEdge(f,!0);c.insertEdge(f,!1);var l=new mxCell("Branch",new mxGeometry(20,80,72,26),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
-l.vertex=!0;var t=new mxCell("",new mxGeometry(0,0,0,0),G.style);t.geometry.relative=!0;t.edge=!0;H.insertEdge(t,!0);l.insertEdge(t,!1);B.insert(G);B.insert(R);B.insert(f);B.insert(t);B.insert(H);B.insert(S);B.insert(P);B.insert(c);B.insert(l);return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var B=new mxCell("Central Idea",new mxGeometry(0,0,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};treeFolding=1;treeMoving=1;');
+l.vertex=!0;var t=new mxCell("",new mxGeometry(0,0,0,0),G.style);t.geometry.relative=!0;t.edge=!0;H.insertEdge(t,!0);l.insertEdge(t,!1);B.insert(G);B.insert(R);B.insert(f);B.insert(t);B.insert(H);B.insert(T);B.insert(P);B.insert(c);B.insert(l);return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var B=new mxCell("Central Idea",new mxGeometry(0,0,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};treeFolding=1;treeMoving=1;');
B.vertex=!0;return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree mindmap mindmaps branch",function(){var B=new mxCell("Branch",new mxGeometry(0,0,80,20),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;recursiveResize=0;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
B.vertex=!0;var H=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");H.geometry.setTerminalPoint(new mxPoint(-40,40),!0);H.geometry.relative=!0;H.edge=!0;B.insertEdge(H,!1);return p.createVertexTemplateFromCells([B,H],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree mindmap mindmaps sub topic",function(){var B=new mxCell("Sub Topic",new mxGeometry(0,0,80,26),
'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');B.vertex=!0;var H=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");
H.geometry.setTerminalPoint(new mxPoint(-40,40),!0);H.geometry.relative=!0;H.edge=!0;B.insertEdge(H,!1);return p.createVertexTemplateFromCells([B,H],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree orgchart organization division",function(){var B=new mxCell("Orgchart",new mxGeometry(0,0,280,220),'swimlane;startSize=20;horizontal=1;containerType=tree;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');B.vertex=!0;var H=new mxCell("Organization",new mxGeometry(80,
-40,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');u.setAttributeForCell(H,"treeRoot","1");H.vertex=!0;var S=new mxCell("Division",new mxGeometry(20,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');S.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
-G.geometry.relative=!0;G.edge=!0;H.insertEdge(G,!0);S.insertEdge(G,!1);var P=new mxCell("Division",new mxGeometry(160,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');P.vertex=!0;var R=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");R.geometry.relative=
-!0;R.edge=!0;H.insertEdge(R,!0);P.insertEdge(R,!1);B.insert(G);B.insert(R);B.insert(H);B.insert(S);B.insert(P);return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree root",function(){var B=new mxCell("Organization",new mxGeometry(0,0,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');u.setAttributeForCell(B,"treeRoot","1");B.vertex=!0;return p.createVertexTemplateFromCells([B],
+40,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');u.setAttributeForCell(H,"treeRoot","1");H.vertex=!0;var T=new mxCell("Division",new mxGeometry(20,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');T.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
+G.geometry.relative=!0;G.edge=!0;H.insertEdge(G,!0);T.insertEdge(G,!1);var P=new mxCell("Division",new mxGeometry(160,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');P.vertex=!0;var R=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");R.geometry.relative=
+!0;R.edge=!0;H.insertEdge(R,!0);P.insertEdge(R,!1);B.insert(G);B.insert(R);B.insert(H);B.insert(T);B.insert(P);return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree root",function(){var B=new mxCell("Organization",new mxGeometry(0,0,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');u.setAttributeForCell(B,"treeRoot","1");B.vertex=!0;return p.createVertexTemplateFromCells([B],
B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree division",function(){var B=new mxCell("Division",new mxGeometry(20,40,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');B.vertex=!0;var H=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
H.geometry.setTerminalPoint(new mxPoint(0,0),!0);H.geometry.relative=!0;H.edge=!0;B.insertEdge(H,!1);return p.createVertexTemplateFromCells([B,H],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree sub sections",function(){var B=new mxCell("Sub Section",new mxGeometry(0,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");B.vertex=!0;var H=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;targetPortConstraint=eastwest;sourcePortConstraint=northsouth;curved=0;rounded=0;");
-H.geometry.setTerminalPoint(new mxPoint(110,-40),!0);H.geometry.relative=!0;H.edge=!0;B.insertEdge(H,!1);var S=new mxCell("Sub Section",new mxGeometry(120,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");S.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),H.style);G.geometry.setTerminalPoint(new mxPoint(110,-40),!0);G.geometry.relative=!0;G.edge=!0;S.insertEdge(G,!1);return p.createVertexTemplateFromCells([H,G,B,S],220,60,"Sub Sections")})])}}})();Editor.themes.push("min");EditorUi.windowed="0"!=urlParams.windows;
+H.geometry.setTerminalPoint(new mxPoint(110,-40),!0);H.geometry.relative=!0;H.edge=!0;B.insertEdge(H,!1);var T=new mxCell("Sub Section",new mxGeometry(120,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");T.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),H.style);G.geometry.setTerminalPoint(new mxPoint(110,-40),!0);G.geometry.relative=!0;G.edge=!0;T.insertEdge(G,!1);return p.createVertexTemplateFromCells([H,G,B,T],220,60,"Sub Sections")})])}}})();Editor.themes.push("min");EditorUi.windowed="0"!=urlParams.windows;
EditorUi.initMinimalTheme=function(){function b(c,f){if(EditorUi.windowed){var l=c.editor.graph;l.popupMenuHandler.hideMenu();null==c.formatWindow?(f=Math.max(10,c.diagramContainer.clientWidth-248),l=Math.min(566,l.container.clientHeight-10),c.formatWindow=new WrapperWindow(c,mxResources.get("format"),f,60,240,l,function(t){c.createFormat(t).init()}),c.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){c.formatWindow.window.fit()})),c.formatWindow.window.minimumSize=new mxRectangle(0,
0,240,80)):c.formatWindow.window.setVisible(null!=f?f:!c.formatWindow.window.isVisible())}else null==c.formatElt&&(c.formatElt=c.createSidebarContainer(),c.createFormat(c.formatElt).init(),c.formatElt.style.border="none",c.formatElt.style.width="240px",c.formatElt.style.borderLeftWidth="1px",c.formatElt.style.borderLeftStyle="solid",c.formatElt.style.right="0px"),l=c.diagramContainer.parentNode,null!=c.formatElt.parentNode?(c.formatElt.parentNode.removeChild(c.formatElt),l.style.right="0px"):(l.parentNode.appendChild(c.formatElt),
l.style.right=c.formatElt.style.width)}function e(c,f){function l(C,F){var N=c.menus.get(C);C=t.addMenu(F,mxUtils.bind(this,function(){N.funct.apply(this,arguments)}));C.setAttribute("title",F);C.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";C.className="geTitle";f.appendChild(C);return C}var t=new Menubar(c,f);if(Editor.enableCustomLibraries&&
@@ -4166,8 +4166,8 @@ l.style.left="0px"):(l.parentNode.appendChild(c.sidebarElt),l.style.left=c.sideb
mxOutline.prototype.sizerImage=null;mxConstants.VERTEX_SELECTION_COLOR="#C0C0C0";mxConstants.EDGE_SELECTION_COLOR="#C0C0C0";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.DEFAULT_VALID_COLOR="#29b6f2";mxConstants.GUIDE_COLOR="#C0C0C0";mxConstants.OUTLINE_COLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_FILLCOLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#fff";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowSize="0.6";Graph.prototype.svgShadowBlur=
"1.2";mxRubberband.prototype.defaultOpacity=50;HoverIcons.prototype.inactiveOpacity=25;Format.prototype.showCloseButton=!1;EditorUi.prototype.closableScratchpad=!1;EditorUi.prototype.toolbarHeight=46;EditorUi.prototype.footerHeight=0;Graph.prototype.editAfterInsert=!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.prototype.isChromelessView=function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var u=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(c){u.apply(this,arguments);
null!=this.tabContainer&&(this.tabContainer.style.right="62px",this.diagramContainer.style.bottom=this.tabContainerHeight+"px")};var p=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){p.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var B=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(c,f){null!=f.shortcut&&900>m&&!mxClient.IS_IOS?c.firstChild.nextSibling.setAttribute("title",f.shortcut):
-B.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(c){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=c?c:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0<this.formatWidth};var H=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();H.apply(this,arguments)};var S=EditorUi.prototype.setGraphEnabled;
-EditorUi.prototype.setGraphEnabled=function(c){S.apply(this,arguments);if(c){var f=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=f&&null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=f&&this.formatWindow.window.setVisible(!0)}else null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!1),null!=this.formatWindow&&this.formatWindow.window.setVisible(!1)};EditorUi.prototype.chromelessWindowResize=function(){};
+B.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(c){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=c?c:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0<this.formatWidth};var H=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();H.apply(this,arguments)};var T=EditorUi.prototype.setGraphEnabled;
+EditorUi.prototype.setGraphEnabled=function(c){T.apply(this,arguments);if(c){var f=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=f&&null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=f&&this.formatWindow.window.setVisible(!0)}else null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!1),null!=this.formatWindow&&this.formatWindow.window.setVisible(!1)};EditorUi.prototype.chromelessWindowResize=function(){};
var G=Menus.prototype.init;Menus.prototype.init=function(){G.apply(this,arguments);var c=this.editorUi;EditorUi.enablePlantUml&&!c.isOffline()&&c.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var t=new ParseDialog(c,mxResources.get("plantUml")+"...","plantUml");c.showDialog(t.container,620,420,!0,!1);t.init()}));c.actions.put("mermaid",new Action(mxResources.get("mermaid")+"...",function(){var t=new ParseDialog(c,mxResources.get("mermaid")+"...","mermaid");c.showDialog(t.container,
620,420,!0,!1);t.init()}));var f="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),l=function(t,z,C,F){t.addItem(C,null,mxUtils.bind(this,function(){var N=new CreateGraphDialog(c,C,F);c.showDialog(N.container,620,420,!0,!1);N.init()}),z)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(t,z){for(var C=0;C<f.length;C++)"-"==f[C]?t.addSeparator(z):l(t,z,mxResources.get(f[C])+"...",f[C])})))};EditorUi.prototype.installFormatToolbar=function(c){var f=
this.editor.graph,l=document.createElement("div");l.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";f.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(t,z){0<f.getSelectionCount()?(c.appendChild(l),l.innerHTML="Selected: "+f.getSelectionCount()):null!=l.parentNode&&l.parentNode.removeChild(l)}))};var P=!1;EditorUi.prototype.initFormatWindow=
@@ -4179,20 +4179,20 @@ mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,
function(){wa.isEnabled()?(za.removeAttribute("disabled"),za.style.cursor="pointer"):(za.setAttribute("disabled","disabled"),za.style.cursor="default")},wa.addListener("stateChanged",ja),N.addListener("enabledChanged",ja),ja());return za}function l(ja,pa,sa){sa=document.createElement("div");sa.className="geMenuItem";sa.style.display="inline-block";sa.style.verticalAlign="top";sa.style.marginRight="6px";sa.style.padding="0 4px 0 4px";sa.style.height="30px";sa.style.position="relative";sa.style.top=
"0px";for(var qa=0;qa<ja.length;qa++)null!=ja[qa]&&(ja[qa].style.margin="0px",ja[qa].style.boxShadow="none",sa.appendChild(ja[qa]));null!=pa&&mxUtils.setOpacity(sa,pa);null!=F.statusContainer?K.insertBefore(sa,F.statusContainer):K.appendChild(sa);return sa}function t(){for(var ja=K.firstChild;null!=ja;){var pa=ja.nextSibling;"geMenuItem"!=ja.className&&"geItem"!=ja.className||ja.parentNode.removeChild(ja);ja=pa}J=K.firstChild;m=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
ja=1E3>m;var sa=null;ja||(sa=c("diagram"));pa=ja?c("diagram",null,Editor.menuImage):null;null!=pa&&(sa=pa);l([sa,f(mxResources.get("shapes"),F.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),F.actions.get("image"),ja?Editor.shapesImage:null),f(mxResources.get("format"),F.actions.get("format").funct,null,mxResources.get("format")+" ("+F.actions.get("format").shortcut+")",F.actions.get("image"),ja?Editor.formatImage:null)],ja?60:null);pa=c("insert",!0,ja?W:null);l([pa,f(mxResources.get("delete"),
-F.actions.get("delete").funct,null,mxResources.get("delete"),F.actions.get("delete"),ja?Editor.trashImage:null)],ja?60:null);N.isEnabled()||pa.classList.add("mxDisabled");411<=m&&(l([U,O],60),520<=m&&l([T,640<=m?f("",ma.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",ma,Editor.zoomInImage):null,640<=m?f("",Z.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",Z,Editor.zoomOutImage):null],60))}R.apply(this,arguments);var z=mxUtils.isAncestorNode(document.body,this.container)?
+F.actions.get("delete").funct,null,mxResources.get("delete"),F.actions.get("delete"),ja?Editor.trashImage:null)],ja?60:null);N.isEnabled()||pa.classList.add("mxDisabled");411<=m&&(l([U,O],60),520<=m&&l([S,640<=m?f("",ma.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",ma,Editor.zoomInImage):null,640<=m?f("",Z.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",Z,Editor.zoomOutImage):null],60))}R.apply(this,arguments);var z=mxUtils.isAncestorNode(document.body,this.container)?
this.container:this.editor.graph.container;null!=z&&(z.classList.add("geSimple"),z.classList.add("geMinimal"));z=Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries);var C=document.createElement("div");C.style.cssText="position:absolute;left:0px;right:0px;top:0px;overflow-y:auto;overflow-x:hidden;";C.style.bottom=z?"32px":"0px";this.sidebar=this.createSidebar(C);if(1E3<=m||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])g(this,!0),null!=this.sidebar&&
null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes&&(this.sidebar.searchShapes(urlParams["search-shapes"]),this.sidebar.showEntries("search"));EditorUi.windowed&&1E3<=m&&(b(this,!0),this.formatWindow.window.setVisible(!0));var F=this,N=F.editor.graph;F.toolbar=this.createToolbar(F.createDiv("geToolbar"));F.defaultLibraryName=mxResources.get("untitledLibrary");var K=document.createElement("div");K.className="geMenubarContainer";var J=null,da=new Menubar(F,K);F.statusContainer=F.createStatusContainer();
F.statusContainer.style.position="relative";F.statusContainer.style.maxWidth="";F.statusContainer.style.cursor="default";var ea=F.hideCurrentMenu;F.hideCurrentMenu=function(){ea.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var ca=F.descriptorChanged;F.descriptorChanged=function(){ca.apply(this,arguments);var ja=F.getCurrentFile();if(null!=ja&&null!=ja.getTitle()){var pa=ja.getMode();"google"==pa?pa="googleDrive":"github"==pa?pa="gitHub":"gitlab"==pa?pa="gitLab":"onedrive"==
pa&&(pa="oneDrive");pa=mxResources.get(pa);K.setAttribute("title",ja.getTitle()+(null!=pa?" ("+pa+")":""))}else K.removeAttribute("title")};F.setStatusText(F.editor.getStatus());K.appendChild(F.statusContainer);F.buttonContainer=document.createElement("div");F.buttonContainer.style.cssText="display:flex;justify-content:flex-end;padding-right:10px;gap:6px;white-space:nowrap;background-color:inherit;align-items:center;min-width:0;margin-left:auto;";K.appendChild(F.buttonContainer);F.menubarContainer=
F.buttonContainer;F.tabContainer=document.createElement("div");F.tabContainer.className="geTabContainer geTabItem";F.tabContainer.style.cssText="position:absolute;left:0px;right:0px;bottom:0px;height:30px;white-space:nowrap;visibility:hidden;";z=F.diagramContainer.parentNode;C=document.createElement("div");C.style.cssText="position:absolute;top:0px;left:0px;right:0px;bottom:0px;overflow:hidden;";F.diagramContainer.style.top="47px";var W=Editor.addBoxImage;if(null!=F.hoverIcons){var ba=F.hoverIcons.update;
F.hoverIcons.update=function(){N.freehand.isDrawing()||ba.apply(this,arguments)}}if(null!=N.freehand){var ha=N.freehand.createStyle;N.freehand.createStyle=function(ja){return ha.apply(this,arguments)+"sketch=0;"}}F.editor.addListener("statusChanged",mxUtils.bind(this,function(){F.setStatusText(F.editor.getStatus())}));F.setStatusText(F.editor.getStatus());var la=F.menus.get("viewZoom");if(null!=la){var Y=function(ja){if(mxEvent.isAltDown(ja))F.hideCurrentMenu(),F.actions.get("customZoom").funct(),
-mxEvent.consume(ja);else if("geMenuItem"==mxEvent.getSource(ja).className||mxEvent.isShiftDown(ja))F.hideCurrentMenu(),F.actions.get("smartFit").funct(),mxEvent.consume(ja)},ma=F.actions.get("zoomIn"),Z=F.actions.get("zoomOut"),k=F.actions.get("resetView"),A=F.actions.get("undo"),I=F.actions.get("redo"),U=f("",A.funct,null,mxResources.get("undo")+" ("+A.shortcut+")",A,Editor.undoImage),O=f("",I.funct,null,mxResources.get("redo")+" ("+I.shortcut+")",I,Editor.redoImage),T=f("",Y,!0,mxResources.get("fit")+
+mxEvent.consume(ja);else if("geMenuItem"==mxEvent.getSource(ja).className||mxEvent.isShiftDown(ja))F.hideCurrentMenu(),F.actions.get("smartFit").funct(),mxEvent.consume(ja)},ma=F.actions.get("zoomIn"),Z=F.actions.get("zoomOut"),k=F.actions.get("resetView"),A=F.actions.get("undo"),I=F.actions.get("redo"),U=f("",A.funct,null,mxResources.get("undo")+" ("+A.shortcut+")",A,Editor.undoImage),O=f("",I.funct,null,mxResources.get("redo")+" ("+I.shortcut+")",I,Editor.redoImage),S=f("",Y,!0,mxResources.get("fit")+
" ("+Editor.ctrlKey+"+H)",k,Editor.zoomFitImage);K.style.cssText="position:absolute;left:0px;right:0px;top:0px;height:30px;padding:8px;text-align:left;white-space:nowrap;";this.tabContainer.style.right="70px";var X=da.addMenu("100%",la.funct);X.setAttribute("title",mxResources.get("zoom")+" (Alt+Mousewheel)");X.className="geTabItem";X.style.height=F.tabContainerHeight+"px";X.style.position="absolute";X.style.display="0"!=urlParams.pages?"flex":"none";X.style.alignItems="center";X.style.justifyContent=
"center";X.style.paddingRight="11px";X.style.whiteSpace="nowrap";X.style.overflow="hidden";X.style.fontSize="11px";X.style.width="51px";X.style.right="0px";X.style.bottom="0px";X.style.boxSizing="content-box";X.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";X.style.backgroundPosition="right 6px top 15px";X.style.backgroundRepeat="no-repeat";X.style.backgroundSize="10px";X.style.zIndex="1";C.appendChild(X);(function(ja){mxEvent.addListener(ja,"click",Y);var pa=mxUtils.bind(this,
function(sa,qa,wa){ja.innerText="";mxUtils.write(ja,Math.round(100*F.editor.graph.view.scale*(null!=wa?wa:1))+"%")});F.editor.graph.view.addListener(mxEvent.EVENT_SCALE,pa);F.editor.addListener("resetGraphView",pa);F.editor.addListener("pageSelected",pa);F.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(sa,qa){pa(sa,qa,qa.getProperty("factor"))}))})(X);var aa=F.setGraphEnabled;F.setGraphEnabled=function(){aa.apply(this,arguments);null!=this.tabContainer&&(X.style.visibility=this.tabContainer.style.visibility,
this.diagramContainer.style.bottom="0"!=urlParams.pages&&"hidden"!=this.tabContainer.style.visibility?this.tabContainerHeight+"px":"0px")}}C.appendChild(K);C.appendChild(F.diagramContainer);z.appendChild(C);F.updateTabContainer();!EditorUi.windowed&&1E3<=m&&b(this,!0);C.appendChild(F.tabContainer);t();F.addListener("lockedChanged",t);mxEvent.addListener(window,"resize",function(){t();null!=F.sidebarWindow&&F.sidebarWindow.window.fit();null!=F.formatWindow&&F.formatWindow.window.fit();null!=F.actions.outlineWindow&&
F.actions.outlineWindow.window.fit();null!=F.actions.layersWindow&&F.actions.layersWindow.window.fit();null!=F.menus.chatWindow&&F.menus.chatWindow.window.fit();null!=F.menus.tagsWindow&&F.menus.tagsWindow.window.fit();null!=F.menus.findWindow&&F.menus.findWindow.window.fit();null!=F.menus.findReplaceWindow&&F.menus.findReplaceWindow.window.fit()})}}};
-(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var e=EditorUi.initTheme;EditorUi.initTheme=function(){e.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,e,g,m,u,p,B){this.file=b;this.id=e;this.content=g;this.modifiedDate=m;this.createdDate=u;this.isResolved=p;this.user=B;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,e,g,m,u){e()};DrawioComment.prototype.editComment=function(b,e,g){e()};DrawioComment.prototype.deleteComment=function(b,e){b()};DrawioUser=function(b,e,g,m,u){this.id=b;this.email=e;this.displayName=g;this.pictureUrl=m;this.locale=u};mxResources.parse('# *DO NOT DIRECTLY EDIT THIS FILE, IT IS AUTOMATICALLY GENERATED AND IT IS BASED ON:*\n# https://docs.google.com/spreadsheet/ccc?key=0AmQEO36liL4FdDJLWVNMaVV2UmRKSnpXU09MYkdGbEE\nabout=About\naboutDrawio=About draw.io\naccessDenied=Access Denied\naccounts=Accounts\naction=Action\nactualSize=Actual Size\nadaptiveColors=Adaptive Colors\nadd=Add\naddAccount=Add account\naddedFile=Added {1}\naddImages=Add Images\naddImageUrl=Add Image URL\naddLayer=Add Layer\naddProperty=Add Property\naddress=Address\naddToExistingDrawing=Add to Existing Drawing\naddToScratchpad=Add to Scratchpad\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nsmartTemplate=Smart Template\nalign=Align\nalignment=Alignment\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\nanimations=Animations\narc=Arc\nareYouSure=Are you sure?\nensureDataSaved=Please ensure your data is saved before closing.\nallChangesSaved=All changes saved\nallChangesSavedInDrive=All changes saved in Drive\nallowPopups=Allow pop-ups to avoid this dialog.\nallowRelativeUrl=Allow relative URL\nalreadyConnected=Nodes already connected\nappearance=Appearance\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narrow=Arrow\narrows=Arrows\naskMeAnything=Ask me anything\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosize=Autosize\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nbeta=beta\nblankDrawing=Blank Drawing\nblankDiagram=Blank Diagram\nblock=Block\nblockquote=Blockquote\nblog=Blog\nbold=Bold\nbootstrap=Bootstrap\nborder=Border\nborderColor=Border Color\nborderWidth=Border Width\nbottom=Bottom\nbottomAlign=Bottom Align\nbottomLeft=Bottom Left\nbottomRight=Bottom Right\nbpmn=BPMN\nbringForward=Bring Forward\nbrowser=Browser\nbulletedList=Bulleted List\nbusiness=Business\nbusy=Operation in progress\ncabinets=Cabinets\ncancel=Cancel\ncenter=Center\ncannotLoad=Load attempts failed. Please try again later.\ncannotLogin=Log in attempts failed. Please try again later.\ncannotOpenFile=Cannot open file\nchange=Change\nchangeOrientation=Change Orientation\nchangeUser=Change user\nchangeStorage=Change storage\nchangesNotSaved=Changes have not been saved\nclassDiagram=Class Diagram\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nchromeApp=Chrome App\ncollaborativeEditingNotice=Important Notice for Collaborative Editing\ncompare=Compare\ncompressed=Compressed\ncommitMessage=Commit Message\nconfigLinkWarn=This link configures draw.io. Only click OK if you trust whoever gave you it!\nconfigLinkConfirm=Click OK to configure and restart draw.io.\ncontainer=Container\ncsv=CSV\ndark=Dark\ndiagramLanguage=Diagram Language\ndiagramType=Diagram type\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndisabled=Disabled\ndraftFound=A draft for \'{1}\' has been found. Load it into the editor or discard it to continue.\ndraftRevisionMismatch=There is a different version of this diagram on a shared draft of this page. Please edit the diagram from the draft to ensure you are working with the latest version.\nselectDraft=Select a draft to continue editing:\ndragAndDropNotSupported=Drag and drop not supported for images. Would you like to import instead?\ndropboxCharsNotAllowed=The following characters are not allowed: / : ? * " |\ncheck=Check\nchecksum=Checksum\ncircle=Circle\ncisco=Cisco\nclassic=Classic\nclearDefaultStyle=Clear Default Style\nclearWaypoints=Clear Waypoints\nclipart=Clipart\nclose=Close\nclosingFile=Closing file\nrealtimeCollaboration=Real-Time Collaboration\ncollaborate=Collaborate\ncollaborator=Collaborator\ncollaborators=Collaborators\ncollapse=Collapse\ncollapseExpand=Collapse/Expand\ncollapse-expand=Click to collapse/expand\nShift-click to move neighbors \nAlt-click to protect group size\ncollapsible=Collapsible\ncomic=Comic\ncomment=Comment\ncommentsNotes=Comments/Notes\ncompress=Compress\nconfiguration=Configuration\nconnect=Connect\nconnecting=Connecting\nconnectWithDrive=Connect with Google Drive\nconnection=Connection\nconnectionArrows=Connection Arrows\nconnectionPoints=Connection Points\nconstrainProportions=Constrain Proportions\ncontainsValidationErrors=Contains validation errors\ncopiedToClipboard=Copied to clipboard\ncopy=Copy\ncopyConnect=Copy on connect\ncopyCreated=A copy of the file was created.\ncopyData=Copy Data\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySize=Copy Size\ncopyStyle=Copy Style\ncreate=Create\ncreateBlankDiagram=Create Blank Diagram\ncreateNewDiagram=Create New Diagram\ncreateRevision=Create Revision\ncreateShape=Create Shape\ncrop=Crop\ncurved=Curved\ncustom=Custom\ncurrent=Current\ncurrentPage=Current page\ncut=Cut\ndashed=Dashed\ndecideLater=Decide later\ndefault=Default\ndelete=Delete\ndeleteAll=Delete all\ndeleteColumn=Delete column\ndeleteLibrary401=Insufficient permissions to delete this library\ndeleteLibrary404=Selected library could not be found\ndeleteLibrary500=Error deleting library\ndeleteLibraryConfirm=You are about to permanently delete this library. Are you sure you want to do this?\ndeleteRow=Delete Row\ndescription=Description\ndescribeYourDiagram=Describe your diagram\ndevice=Device\ndiagram=Diagram\ndiagramContent=Diagram Content\ndiagramLocked=Diagram has been locked to prevent further data loss.\ndiagramLockedBySince=The diagram is locked by {1} since {2} ago\ndiagramName=Diagram Name\ndiagramIsPublic=Diagram is public\ndiagramIsNotPublic=Diagram is not public\ndiamond=Diamond\ndiamondThin=Diamond (thin)\ndidYouKnow=Did you know...\ndirection=Direction\ndiscard=Discard\ndiscardChangesAndReconnect=Discard Changes and Reconnect\ngoogleDriveMissingClickHere=Google Drive missing? Click here!\ndiscardChanges=Discard Changes\ndisconnected=Disconnected\ndistribute=Distribute\ndone=Done\ndoNotShowAgain=Do not show again\ndotted=Dotted\ndoubleClickOrientation=Doubleclick to change orientation\ndoubleClickTooltip=Doubleclick to insert text\ndoubleClickChangeProperty=Doubleclick to change property name\ndownload=Download\ndownloadDesktop=Get Desktop\ndownloadAs=Download as\nclickHereToSave=Click here to save.\ndpi=DPI\ndraftDiscarded=Draft discarded\ndraftSaved=Draft saved\ndragElementsHere=Drag elements here\ndragImagesHere=Drag images or URLs here\ndragUrlsHere=Drag URLs here\ndraw.io=draw.io\ndrawing=Drawing{1}\ndrawingEmpty=Drawing is empty\ndrawingTooLarge=Drawing is too large\ndrawioForWork=Draw.io for GSuite\ndropbox=Dropbox\nduplicate=Duplicate\nduplicateIt=Duplicate {1}\ndivider=Divider\ndx=Dx\ndy=Dy\neast=East\nedit=Edit\neditData=Edit Data\neditDiagram=Edit Diagram\neditGeometry=Edit Geometry\neditImage=Edit Image\neditImageUrl=Edit Image URL\neditLink=Edit Link\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\nembed=Embed\nembedFonts=Embed Fonts\nembedImages=Embed Images\nmainEmbedNotice=Paste this into the page\nelectrical=Electrical\nellipse=Ellipse\nembedNotice=Paste this once at the end of the page\nenterGroup=Enter Group\nenterName=Enter Name\nenterPropertyName=Enter Property Name\nenterValue=Enter Value\nentityRelation=Entity Relation\nentityRelationshipDiagram=Entity Relationship Diagram\nerror=Error\nerrorDeletingFile=Error deleting file\nerrorLoadingFile=Error loading file\nerrorRenamingFile=Error renaming file\nerrorRenamingFileNotFound=Error renaming file. File was not found.\nerrorRenamingFileForbidden=Error renaming file. Insufficient access rights.\nerrorSavingDraft=Error saving draft\nerrorSavingFile=Error saving file\nerrorSavingFileUnknown=Error authorizing with Google\'s servers. Please refresh the page to re-attempt.\nerrorSavingFileForbidden=Error saving file. Insufficient access rights.\nerrorSavingFileNameConflict=Could not save diagram. Current page already contains file named \'{1}\'.\nerrorSavingFileNotFound=Error saving file. File was not found.\nerrorSavingFileReadOnlyMode=Could not save diagram while read-only mode is active.\nerrorSavingFileSessionTimeout=Your session has ended. Please <a target=\'_blank\' href=\'{1}\'>{2}</a> and return to this tab to try to save again.\nerrorSendingFeedback=Error sending feedback.\nerrorUpdatingPreview=Error updating preview.\nexit=Exit\nexitGroup=Exit Group\nexpand=Expand\nexplore=Explore\nexport=Export\nexporting=Exporting\nexportAs=Export as\nexportOptionsDisabled=Export options disabled\nexportOptionsDisabledDetails=The owner has disabled options to download, print or copy for commenters and viewers on this file.\nexternalChanges=External Changes\nextras=Extras\nfacebook=Facebook\nfailedToSaveTryReconnect=Failed to save, trying to reconnect\nfeatureRequest=Feature Request\nfeedback=Feedback\nfeedbackSent=Feedback successfully sent.\nfloorplans=Floorplans\nfile=File\nfileChangedOverwriteDialog=The file has been modified. Do you want to save the file and overwrite those changes?\nfileChangedSyncDialog=The file has been modified.\nfileChangedSync=The file has been modified. Click here to synchronize.\noverwrite=Overwrite\nsynchronize=Synchronize\nfilename=Filename\nfileExists=File already exists\nfileMovedToTrash=File was moved to trash\nfileNearlyFullSeeFaq=File nearly full, please see FAQ\nfileNotFound=File not found\nrepositoryNotFound=Repository not found\nfileNotFoundOrDenied=The file was not found. It does not exist or you do not have access.\nfileNotLoaded=File not loaded\nfileNotSaved=File not saved\nfileOpenLocation=How would you like to open these file(s)?\nfiletypeHtml=.html causes file to save as HTML with redirect to cloud URL\nfiletypePng=.png causes file to save as PNG with embedded data\nfiletypeSvg=.svg causes file to save as SVG with embedded data\nfileWillBeSavedInAppFolder={1} will be saved in the app folder.\nfill=Fill\nfillColor=Fill Color\nfilterCards=Filter Cards\nfind=Find\nfit=Fit\nfitContainer=Resize Container\nfitIntoContainer=Fit into Container\nfitPage=Fit Page\nfitPageWidth=Fit Page Width\nfitTo=Fit to\nfitToSheetsAcross=sheet(s) across\nfitToBy=by\nfitToSheetsDown=sheet(s) down\nfitTwoPages=Two Pages\nfitWindow=Fit Window\nflip=Flip\nflipH=Flip Horizontal\nflipV=Flip Vertical\nflowAnimation=Flow Animation\nflowchart=Flowchart\nfolder=Folder\nfont=Font\nfontColor=Font Color\nfontFamily=Font Family\nfontSize=Font Size\nforbidden=You are not authorized to access this file\nformat=Format\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatSvgEmbedded=SVG (with XML)\nformatVsdx=VSDX\nformatVssx=VSSX\nformatWebp=WebP\nformatXmlPlain=XML (Plain)\nformatXml=XML\nforum=Discussion/Help Forums\nfreehand=Freehand\nfromTemplate=From Template\nfromTemplateUrl=From Template URL\nfromText=From Text\nfromUrl=From URL\nfromThisPage=From this page\nfullscreen=Fullscreen\ngap=Gap\ngcp=GCP\ngeneral=General\ngetNotionChromeExtension=Get the Notion Chrome Extension\ngithub=GitHub\ngitlab=GitLab\ngliffy=Gliffy\nglobal=Global\ngoogleDocs=Google Docs\ngoogleDrive=Google Drive\ngoogleGadget=Google Gadget\ngoogleSharingNotAvailable=Sharing is only available via Google Drive. Please click Open below and share from the more actions menu:\ngoogleSlides=Google Slides\ngoogleSites=Google Sites\ngoogleSheets=Google Sheets\ngradient=Gradient\ngradientColor=Color\ngrid=Grid\ngridColor=Grid Color\ngridSize=Grid Size\ngroup=Group\nguides=Guides\nhateApp=I hate draw.io\nheading=Heading\nheight=Height\nhelp=Help\nhelpTranslate=Help us translate this application\nhide=Hide\nhideIt=Hide {1}\nhidden=Hidden\nhighContrast=High Contrast\nhome=Home\nhorizontal=Horizontal\nhorizontalFlow=Horizontal Flow\nhorizontalTree=Horizontal Tree\nhowTranslate=How good is the translation in your language?\nhtml=HTML\nhtmlText=HTML Text\nid=ID\niframe=IFrame\nignore=Ignore\nimage=Image\nimageUrl=Image URL\nimages=Images\nimagePreviewError=This image couldn\'t be loaded for preview. Please check the URL.\nimageTooBig=Image too big\nimgur=Imgur\nimport=Import\nimportFrom=Import from\nimproveContrast=Improve Contrast\nincludeCopyOfMyDiagram=Include a copy of my diagram\nincreaseIndent=Increase Indent\ndecreaseIndent=Decrease Indent\ninsert=Insert\ninsertColumnBefore=Insert Column Left\ninsertColumnAfter=Insert Column Right\ninsertEllipse=Insert Ellipse\ninsertImage=Insert Image\ninsertHorizontalRule=Insert Horizontal Rule\ninsertLink=Insert Link\ninsertPage=Insert Page\ninsertRectangle=Insert Rectangle\ninsertRhombus=Insert Rhombus\ninsertRowBefore=Insert Row Above\ninsertRowAfter=Insert Row After\ninsertText=Insert Text\ninserting=Inserting\ninstallApp=Install App\ninvalidFilename=Diagram names must not contain the following characters: / | : ; { } < > & + ? = "\ninvalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://www.drawio.com/doc/faq/license-drawio-confluence-jira-cloud">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\nisometric=Isometric\nios=iOS\nitalic=Italic\nkennedy=Kennedy\nkeyboardShortcuts=Keyboard Shortcuts\nlabels=Labels\nlayers=Layers\nlandscape=Landscape\nlanguage=Language\nleanMapping=Lean Mapping\nlastChange=Last change {1} ago\nlessThanAMinute=less than a minute\nlicensingError=Licensing Error\nlicenseHasExpired=The license for {1} has expired on {2}. Click here.\nlicenseRequired=This feature requires draw.io to be licensed.\nlicenseWillExpire=The license for {1} will expire on {2}. Click here.\nlight=Light\nlineJumps=Line jumps\nlinkAccountRequired=If the diagram is not public a Google account is required to view the link.\nlinkText=Link Text\nlist=List\nminute=minute\nminutes=minutes\nhours=hours\ndays=days\nmonths=months\nyears=years\nrestartForChangeRequired=Changes will take effect after a restart of the application.\nlaneColor=Lanecolor\nlanguageCode=Language Code\nlastModified=Last modified\nlayout=Layout\nleft=Left\nleftAlign=Left Align\nleftToRight=Left to right\nlibraryTooltip=Drag and drop shapes here or click + to insert. Double click to edit.\nlightbox=Lightbox\nline=Line\nlineend=Line end\nlineheight=Line Height\nlinestart=Line start\nlinewidth=Linewidth\nlink=Link\nlinks=Links\nloading=Loading\nlocked=Locked\nlockUnlock=Lock/Unlock\nloggedOut=Logged Out\nlogIn=log in\nloveIt=I love {1}\nlucidchart=Lucidchart\nmaps=Maps\nmathematicalTypesetting=Mathematical Typesetting\nmakeCopy=Make a Copy\nmanual=Manual\nmerge=Merge\nmermaid=Mermaid\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nmisc=Misc\nmockups=Mockups\nmodern=Modern\nmodificationDate=Modification date\nmodifiedBy=Modified by\nmore=More\nmoreResults=More Results\nmoreShapes=More Shapes\nmove=Move\nmoveToFolder=Move to Folder\nmoving=Moving\nmoveSelectionTo=Move selection to {1}\nmyDrive=My Drive\nmyFiles=My Files\nname=Name\nnavigation=Navigation\nnetwork=Network\nnetworking=Networking\nnew=New\nnewLibrary=New Library\nnextPage=Next Page\nno=No\nnoPickFolder=No, pick folder\nnoAttachments=No attachments found\nnoColor=No Color\nnoFiles=No Files\nnoFileSelected=No file selected\nnoLibraries=No libraries found\nnoMoreResults=No more results\nnone=None\nnoOtherViewers=No other viewers\nnoPlugins=No plugins\nnoPreview=No preview\nnoResponse=No response from server\nnoResultsFor=No results for \'{1}\'\nnoRevisions=No revisions\nnoSearchResults=No search results found\nnoPageContentOrNotSaved=No anchors found on this page or it hasn\'t been saved yet\nnormal=Normal\nnorth=North\nnotADiagramFile=Not a diagram file\nnotALibraryFile=Not a library file\nnotAvailable=Not available\nnotAUtf8File=Not a UTF-8 file\nnotConnected=Not connected\nnote=Note\nnotion=Notion\nnotSatisfiedWithImport=Not satisfied with the import?\nnotUsingService=Not using {1}?\nnumberedList=Numbered list\noffline=Offline\nok=OK\noneDrive=OneDrive\nonline=Online\nopacity=Opacity\nopen=Open\nopenArrow=Open Arrow\nopenExistingDiagram=Open Existing Diagram\nopenFile=Open File\nopenFrom=Open from\nopenLibrary=Open Library\nopenLibraryFrom=Open Library from\nopenLink=Open Link\nopenInNewWindow=Open in New Window\nopenInThisWindow=Open in This Window\nopenIt=Open {1}\nopenRecent=Open Recent\nopenSupported=Supported formats are files saved from this software (.xml), .vsdx and .gliffy\noptions=Options\norganic=Organic\norgChart=Org Chart\northogonal=Orthogonal\notherViewer=other viewer\notherViewers=other viewers\noutline=Outline\noval=Oval\npage=Page\npageContent=Page Content\npageNotFound=Page not found\npageWithNumber=Page-{1}\npages=Pages\npageTabs=Page Tabs\npageView=Page View\npageSetup=Page Setup\npageScale=Page Scale\npan=Pan\npanTooltip=Space+Drag to pan\npaperSize=Paper Size\npattern=Pattern\nparallels=Parallels\npaste=Paste\npasteData=Paste Data\npasteHere=Paste here\npasteSize=Paste Size\npasteStyle=Paste Style\nperimeter=Perimeter\npermissionAnyone=Anyone can edit\npermissionAuthor=Owner and admins can edit\npickFolder=Pick a folder\npickLibraryDialogTitle=Select Library\npublicDiagramUrl=Public URL of the diagram\nplaceholders=Placeholders\nplantUml=PlantUML\nplugins=Plugins\npluginUrl=Plugin URL\npluginWarning=The page has requested to load the following plugin(s):\n \n {1}\n \n Would you like to load these plugin(s) now?\n \n NOTE : Only allow plugins to run if you fully understand the security implications of doing so.\n\nplusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone).\nportrait=Portrait\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\npresentationMode=Presentation Mode\nprint=Print\nprocEng=Proc. Eng.\nproject=Project\npriority=Priority\nprocessForHiringNewEmployee=Process for hiring a new employee\nproperties=Properties\npublish=Publish\nquickStart=Quick Start Video\nrack=Rack\nradial=Radial\nradialTree=Radial Tree\nreadOnly=Read-only\nreconnecting=Reconnecting\nrecentlyUpdated=Recently Updated\nrecentlyViewed=Recently Viewed\nrectangle=Rectangle\nredirectToNewApp=This file was created or modified in a newer version of this app. You will be redirected now.\nrealtimeTimeout=It looks like you\'ve made a few changes while offline. We\'re sorry, these changes cannot be saved.\nredo=Redo\nrefresh=Refresh\nregularExpression=Regular Expression\nrelative=Relative\nrelativeUrlNotAllowed=Relative URL not allowed\nrememberMe=Remember me\nrememberThisSetting=Remember this setting\nremoveFormat=Clear Formatting\nremoveFromGroup=Remove from Group\nremoveIt=Remove {1}\nremoveWaypoint=Remove Waypoint\nrename=Rename\nrenamed=Renamed\nrenameIt=Rename {1}\nrenaming=Renaming\nreplace=Replace\nreplaceIt={1} already exists. Do you want to replace it?\nreplaceExistingDrawing=Replace existing drawing\nrequired=required\nrequirementDiagram=Requirement Diagram\nreset=Reset\nresetView=Reset View\nresize=Resize\nresizeLargeImages=Do you want to resize large images to make the application run faster?\nretina=Retina\nresponsive=Responsive\nrestore=Restore\nrestoring=Restoring\nretryingIn=Retrying in {1} second(s)\nretryingLoad=Load failed. Retrying...\nretryingLogin=Login time out. Retrying...\nreverse=Reverse\nrevision=Revision\nrevisionHistory=Revision History\nrhombus=Rhombus\nright=Right\nrightAlign=Right Align\nrightToLeft=Right to left\nrotate=Rotate\nrotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees\nrotation=Rotation\nrounded=Rounded\nsave=Save\nsaveAndExit=Save & Exit\nsaveAs=Save As\nsaveAsXmlFile=Save as XML file?\nsaved=Saved\nsaveDiagramFirst=Please save the diagram first\nsaveDiagramsTo=Save diagrams to\nsaveLibrary403=Insufficient permissions to edit this library\nsaveLibrary500=There was an error while saving the library\nsaveLibraryReadOnly=Could not save library while read-only mode is active\nsaving=Saving\nscratchpad=Scratchpad\nscrollbars=Scrollbars\nsearch=Search\nsearchShapes=Search Shapes\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectedPage=Selected Page\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselectNone=Select None\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nsequenceDiagram=Sequence Diagram\nserviceUnavailableOrBlocked=Service unavailable or blocked\nsessionExpired=Your session has expired. Please refresh the browser window.\nsessionTimeoutOnSave=Your session has timed out and you have been disconnected from the Google Drive. Press OK to login and save.\nsetAsDefaultStyle=Set as Default Style\nsettings=Settings\nshadow=Shadow\nshape=Shape\nshapes=Shapes\nshare=Share\nshareCursor=Share Mouse Cursor\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsaveItToGoogleDriveToCollaborate=You\'ll need to save "{1}" to Google Drive before you can collaborate.\nsaveToGoogleDrive=Save to Google Drive\nsharp=Sharp\nshow=Show\nshowRemoteCursors=Show Remote Mouse Cursors\nshowStartScreen=Show Start Screen\nsidebarTooltip=Click or drag and drop shapes. Shift+click to change selection. Alt+click to insert and connect.\nsigns=Signs\nsignOut=Sign out\nsimple=Simple\nsimpleArrow=Simple Arrow\nsimpleViewer=Simple Viewer\nsize=Size\nsketch=Sketch\nsmoothing=Smoothing\nsnapToGrid=Snap to Grid\nsolid=Solid\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstateDiagram=State Diagram\nstandard=Standard\nstartDrawing=Start drawing\nstopDrawing=Stop drawing\nstarting=Starting\nstraight=Straight\nstrikethrough=Strikethrough\nstrokeColor=Line Color\nstyle=Style\nsubscript=Subscript\nsummary=Summary\nsuperscript=Superscript\nsupport=Support\nswap=Swap\nswimlaneDiagram=Swimlane Diagram\nsysml=SysML\ntags=Tags\ntable=Table\ntables=Tables\ntakeOver=Take Over\ntargetSpacing=Target Spacing\ntemplate=Template\ntemplates=Templates\ntext=Text\ntextAlignment=Text Alignment\ntextOpacity=Text Opacity\ntheme=Theme\ntimeout=Timeout\ntitle=Title\nto=to\ntoBack=To Back\ntoFront=To Front\ntooLargeUseDownload=Too large, use download instead.\ntoolbar=Toolbar\ntooltips=Tooltips\ntop=Top\ntopAlign=Top Align\ntopLeft=Top Left\ntopRight=Top Right\ntransparent=Transparent\ntransparentBackground=Transparent Background\ntrello=Trello\ntryAgain=Try again\ntryOpeningViaThisPage=Try opening via this page\nturn=Rotate shape only by 90°\ntype=Type\ntwitter=Twitter\numl=UML\nunassigned=Unassigned\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunmerge=Unmerge\nunsavedChanges=Unsaved changes\nunsavedChangesClickHereToSave=Unsaved changes. Click here to save.\nuntitled=Untitled\nuntitledDiagram=Untitled Diagram\nuntitledLayer=Untitled Layer\nuntitledLibrary=Untitled Library\nunknownError=Unknown error\nunknownUser=Unknown user\nupdateExistingDrawing=Update existing drawing\nupdateFile=Update {1}\nupdatingDocument=Updating Document. Please wait...\nupdatingPreview=Updating Preview. Please wait...\nupdatingSelection=Updating Selection. Please wait...\nupload=Upload\nurl=URL\nuseBlackAndWhite=Use black and white\nuseCurrentSettings=Use current settings\nuseOffline=Use Offline\nuserDefined=User-defined\nuseRootFolder=Use root folder?\nuserManual=User Manual\nvertical=Vertical\nverticalFlow=Vertical Flow\nverticalTree=Vertical Tree\nview=View\nviewerSettings=Viewer Settings\nviewUrl=Link to view: {1}\nvoiceAssistant=Voice Assistant (beta)\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwhere=Where\nwidth=Width\nwiki=Wiki\nwordWrap=Word Wrap\nwritingDirection=Writing Direction\nyes=Yes\nyourEmailAddress=Your email address\nzoom=Zoom\nzoomIn=Zoom In\nzoomOut=Zoom Out\nbasic=Basic\nbusinessprocess=Business Processes\ncharts=Charts\nengineering=Engineering\nflowcharts=Flowcharts\ngmdl=Material Design\nmindmaps=Mindmaps\nmockups=Mockups\nnetworkdiagrams=Network Diagrams\nnothingIsSelected=Nothing is selected\nother=Other\nsoftwaredesign=Software Design\nvenndiagrams=Venn Diagrams\nwebEmailOrOther=Web, email or any other internet address\nwebLink=Web Link\nwireframes=Wireframes\nproperty=Property\nvalue=Value\nshowMore=Show More\nshowLess=Show Less\nmyDiagrams=My Diagrams\nallDiagrams=All Diagrams\nrecentlyUsed=Recently used\nlistView=List view\ngridView=Grid view\nresultsFor=Results for \'{1}\'\noneDriveCharsNotAllowed=The following characters are not allowed: ~ " # % * : < > ? / { | }\noneDriveInvalidDeviceName=The specified device name is invalid\nofficeNotLoggedOD=You are not logged in to OneDrive. Please open draw.io task pane and login first.\nofficeSelectSingleDiag=Please select a single draw.io diagram only without other contents.\nofficeSelectDiag=Please select a draw.io diagram.\nofficeCannotFindDiagram=Cannot find a draw.io diagram in the selection\nnoDiagrams=No diagrams found\nauthFailed=Authentication failed\nofficeFailedAuthMsg=Unable to successfully authenticate user or authorize application.\nconvertingDiagramFailed=Converting diagram failed\nofficeCopyImgErrMsg=Due to some limitations in the host application, the image could not be inserted. Please manually copy the image then paste it to the document.\ninsertingImageFailed=Inserting image failed\nofficeCopyImgInst=Instructions: Right-click the image below. Select "Copy image" from the context menu. Then, in the document, right-click and select "Paste" from the context menu.\nfolderEmpty=Folder is empty\nrecent=Recent\nsharedWithMe=Shared With Me\nsharepointSites=Sharepoint Sites\nerrorFetchingFolder=Error fetching folder items\nerrorAuthOD=Error authenticating to OneDrive\nofficeMainHeader=Adds draw.io diagrams to your document.\nofficeStepsHeader=This add-in performs the following steps:\nofficeStep1=Connects to Microsoft OneDrive, Google Drive or your device.\nofficeStep2=Select a draw.io diagram.\nofficeStep3=Insert the diagram into the document.\nofficeAuthPopupInfo=Please complete the authentication in the pop-up window.\nofficeSelDiag=Select draw.io Diagram:\nfiles=Files\nshared=Shared\nsharepoint=Sharepoint\nofficeManualUpdateInst=Instructions: Copy draw.io diagram from the document. Then, in the box below, right-click and select "Paste" from the context menu.\nofficeClickToEdit=Click icon to start editing:\npasteDiagram=Paste draw.io diagram here\nconnectOD=Connect to OneDrive\nselectChildren=Select Children\nselectSiblings=Select Siblings\nselectParent=Select Parent\nselectDescendants=Select Descendants\nlastSaved=Last saved {1} ago\nresolve=Resolve\nreopen=Re-open\nshowResolved=Show Resolved\nreply=Reply\nobjectNotFound=Object not found\nreOpened=Re-opened\nmarkedAsResolved=Marked as resolved\nnoCommentsFound=No comments found\ncomments=Comments\ntimeAgo={1} ago\nconfluenceCloud=Confluence Cloud\nlibraries=Libraries\nconfAnchor=Confluence Page Anchor\nconfTimeout=The connection has timed out\nconfSrvTakeTooLong=The server at {1} is taking too long to respond.\nconfCannotInsertNew=Cannot insert draw.io diagram to a new Confluence page\nconfSaveTry=Please save the page and try again.\nconfCannotGetID=Unable to determine page ID\nconfContactAdmin=Please contact your Confluence administrator.\nreadErr=Read Error\neditingErr=Editing Error\nconfExtEditNotPossible=This diagram cannot be edited externally. Please try editing it while editing the page\nconfEditedExt=Diagram/Page edited externally\ndiagNotFound=Diagram Not Found\nconfEditedExtRefresh=Diagram/Page is edited externally. Please refresh the page.\nconfCannotEditDraftDelOrExt=Cannot edit diagrams in a draft page, diagram is deleted from the page, or diagram is edited externally. Please check the page.\nretBack=Return back\nconfDiagNotPublished=The diagram does not belong to a published page\ncreatedByDraw=Created by draw.io\nfilenameShort=Filename too short\ninvalidChars=Invalid characters\nalreadyExst={1} already exists\ndraftReadErr=Draft Read Error\ndiagCantLoad=Diagram cannot be loaded\ndraftWriteErr=Draft Write Error\ndraftCantCreate=Draft could not be created\nconfDuplName=Duplicate diagram name detected. Please pick another name.\nconfSessionExpired=Looks like your session expired. Log in again to keep working.\nlogin=Login\ndrawPrev=draw.io preview\ndrawDiag=draw.io diagram\ninvalidCallFnNotFound=Invalid Call: {1} not found\ninvalidCallErrOccured=Invalid Call: An error occurred, {1}\nanonymous=Anonymous\nconfGotoPage=Go to containing page\nshowComments=Show Comments\nconfError=Error: {1}\ngliffyImport=Gliffy Import\ngliffyImportInst1=Click the "Start Import" button to import all Gliffy diagrams to draw.io.\ngliffyImportInst2=Please note that the import procedure will take some time and the browser window must remain open until the import is completed.\nstartImport=Start Import\ndrawConfig=draw.io Configuration\ncustomLib=Custom Libraries\ncustomTemp=Custom Templates\npageIdsExp=Page IDs Export\ndrawReindex=draw.io re-indexing (beta)\nworking=Working\ndrawConfigNotFoundInst=draw.io Configuration Space (DRAWIOCONFIG) does not exist. This space is needed to store draw.io configuration files and custom libraries/templates.\ncreateConfSp=Create Config Space\nunexpErrRefresh=Unexpected error, please refresh the page and try again.\nconfigJSONInst=Write draw.io JSON configuration in the editor below then click save. If you need help, please refer to\nthisPage=this page\ncurCustLib=Current Custom Libraries\nlibName=Library Name\naction=Action\ndrawConfID=draw.io Config ID\naddLibInst=Click the "Add Library" button to upload a new library.\naddLib=Add Library\ncustomTempInst1=Custom templates are draw.io diagrams saved in children pages of\ncustomTempInst2=For more details, please refer to\ntempsPage=Templates page\npageIdsExpInst1=Select export target, then click the "Start Export" button to export all pages IDs.\npageIdsExpInst2=Please note that the export procedure will take some time and the browser window must remain open until the export is completed.\nstartExp=Start Export\nrefreshDrawIndex=Refresh draw.io Diagrams Index\nreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.\nreindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.\nstartIndexing=Start Indexing\nconfAPageFoundFetch=Page "{1}" found. Fetching\nconfAAllDiagDone=All {1} diagrams processed. Process finished.\nconfAStartedProcessing=Started processing page "{1}"\nconfAAllDiagInPageDone=All {1} diagrams in page "{2}" processed successfully.\nconfAPartialDiagDone={1} out of {2} {3} diagrams in page "{4}" processed successfully.\nconfAUpdatePageFailed=Updating page "{1}" failed.\nconfANoDiagFoundInPage=No {1} diagrams found in page "{2}".\nconfAFetchPageFailed=Fetching the page failed.\nconfANoDiagFound=No {1} diagrams found. Process finished.\nconfASearchFailed=Searching for {1} diagrams failed. Please try again later.\nconfAGliffyDiagFound={2} diagram "{1}" found. Importing\nconfAGliffyDiagImported={2} diagram "{1}" imported successfully.\nconfASavingImpGliffyFailed=Saving imported {2} diagram "{1}" failed.\nconfAImportedFromByDraw=Imported from "{1}" by draw.io\nconfAImportGliffyFailed=Importing {2} diagram "{1}" failed.\nconfAFetchGliffyFailed=Fetching {2} diagram "{1}" failed.\nconfACheckBrokenDiagLnk=Checking for broken diagrams links.\nconfADelDiagLinkOf=Deleting diagram link of "{1}"\nconfADupLnk=(duplicate link)\nconfADelDiagLnkFailed=Deleting diagram link of "{1}" failed.\nconfAUnexpErrProcessPage=Unexpected error during processing the page with id: {1}\nconfADiagFoundIndex=Diagram "{1}" found. Indexing\nconfADiagIndexSucc=Diagram "{1}" indexed successfully.\nconfAIndexDiagFailed=Indexing diagram "{1}" failed.\nconfASkipDiagOtherPage=Skipped "{1}" as it belongs to another page!\nconfADiagUptoDate=Diagram "{1}" is up to date.\nconfACheckPagesWDraw=Checking pages having draw.io diagrams.\nconfAErrOccured=An error occurred!\nsavedSucc=Saved successfully\nconfASaveFailedErr=Saving Failed (Unexpected Error)\ncharacter=Character\nconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachment\nconfALibPageDesc=This page contains draw.io custom libraries as attachments\nconfATempPageDesc=This page contains draw.io custom templates as attachments\nworking=Working\nconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templates\nconfANoCustLib=No Custom Libraries\ndelFailed=Delete failed!\nshowID=Show ID\nconfAIncorrectLibFileType=Incorrect file type. Libraries should be XML files.\nuploading=Uploading\nconfALibExist=This library already exists\nconfAUploadSucc=Uploaded successfully\nconfAUploadFailErr=Upload Failed (Unexpected Error)\nhiResPreview=High Res Preview\nofficeNotLoggedGD=You are not logged in to Google Drive. Please open draw.io task pane and login first.\nofficePopupInfo=Please complete the process in the pop-up window.\npickODFile=Pick OneDrive File\ncreateODFile=Create OneDrive File\npickGDriveFile=Pick Google Drive File\ncreateGDriveFile=Create Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nconfEditDraftDelOrExt=This diagram is in a draft page, is deleted from the page, or is edited externally. It will be saved as a new attachment version and may not be reflected in the page.\nconfDiagEditedExt=Diagram is edited in another session. It will be saved as a new attachment version but the page will show other session\'s modifications.\nmacroNotFound=Macro Not Found\nconfAInvalidPageIdsFormat=Incorrect Page IDs file format\nconfACollectingCurPages=Collecting current pages\nconfABuildingPagesMap=Building pages mapping\nconfAProcessDrawDiag=Started processing imported draw.io diagrams\nconfAProcessDrawDiagDone=Finished processing imported draw.io diagrams\nconfAProcessImpPages=Started processing imported pages\nconfAErrPrcsDiagInPage=Error processing draw.io diagrams in page "{1}"\nconfAPrcsDiagInPage=Processing draw.io diagrams in page "{1}"\nconfAImpDiagram=Importing diagram "{1}"\nconfAImpDiagramFailed=Importing diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\nconfAImpDiagramError=Error importing diagram "{1}". Cannot fetch or save the diagram. Cannot fix this diagram links.\nconfAUpdateDgrmCCFailed=Updating link to diagram "{1}" failed.\nconfImpDiagramSuccess=Updating diagram "{1}" done successfully.\nconfANoLnksInDrgm=No links to update in: {1}\nconfAUpdateLnkToPg=Updated link to page: "{1}" in diagram: "{2}"\nconfAUpdateLBLnkToPg=Updated lightbox link to page: "{1}" in diagram: "{2}"\nconfAUpdateLnkBase=Updated base URL from: "{1}" to: "{2}" in diagram: "{3}"\nconfAPageIdsImpDone=Page IDs Import finished\nconfAPrcsMacrosInPage=Processing draw.io macros in page "{1}"\nconfAErrFetchPage=Error fetching page "{1}"\nconfAFixingMacro=Fixing macro of diagram "{1}"\nconfAErrReadingExpFile=Error reading export file\nconfAPrcsDiagInPageDone=Processing draw.io diagrams in page "{1}" finished\nconfAFixingMacroSkipped=Fixing macro of diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\npageIdsExpTrg=Export target\nconfALucidDiagImgImported={2} diagram "{1}" image extracted successfully\nconfASavingLucidDiagImgFailed=Extracting {2} diagram "{1}" image failed\nconfGetInfoFailed=Fetching file info from {1} failed.\nconfCheckCacheFailed=Cannot get cached file info.\nconfReadFileErr=Cannot read "{1}" file from {2}.\nconfSaveCacheFailed=Unexpected error. Cannot save cached file\norgChartType=Org Chart Type\nlinear=Linear\nhanger2=Hanger 2\nhanger4=Hanger 4\nfishbone1=Fishbone 1\nfishbone2=Fishbone 2\n1ColumnLeft=Single Column Left\n1ColumnRight=Single Column Right\nsmart=Smart\nparentChildSpacing=Parent Child Spacing\nsiblingSpacing=Sibling Spacing\nconfNoPermErr=Sorry, you don\'t have enough permissions to view this embedded diagram from page {1}\ncopyAsImage=Copy as Image\ncopyAsText=Copy as Text\nlucidImport=Lucidchart Import\nlucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.\ninstallFirst=Please install {1} first\ndrawioChromeExt=draw.io Chrome Extension\nloginFirstThen=Please login to {1} first, then {2}\nerrFetchDocList=Error: Couldn\'t fetch documents list\nbuiltinPlugins=Built-in Plugins\nextPlugins=External Plugins\nbackupFound=Backup file found\nchromeOnly=This feature only works in Google Chrome\nmsgDeleted=This message has been deleted\nconfAErrFetchDrawList=Error fetching diagrams list. Some diagrams are skipped.\nconfAErrCheckDrawDiag=Cannot check diagram {1}\nconfAErrFetchPageList=Error fetching pages list\nconfADiagImportIncom={1} diagram "{2}" is imported partially and may have missing shapes\ninvalidSel=Invalid selection\ndiagNameEmptyErr=Diagram name cannot be empty\nopenDiagram=Open Diagram\nnewDiagram=New diagram\neditable=Editable\nconfAReimportStarted=Re-import {1} diagrams started...\nspaceFilter=Filter by spaces\ncurViewState=Current Viewer State\npageLayers=Page and Layers\ncustomize=Customize\nfirstPage=First Page (All Layers)\ncurEditorState=Current Editor State\nnoAnchorsFound=No anchors found\nattachment=Attachment\ncurDiagram=Current Diagram\nrecentDiags=Recent Diagrams\ncsvImport=CSV Import\nchooseFile=Choose a file...\nchoose=Choose\ngdriveFname=Google Drive filename\nwidthOfViewer=Width of the viewer (px)\nheightOfViewer=Height of the viewer (px)\nautoSetViewerSize=Automatically set the size of the viewer\nthumbnail=Thumbnail\nprevInDraw=Preview in draw.io\nonedriveFname=OneDrive filename\ndiagFname=Diagram filename\ndiagUrl=Diagram URL\nshowDiag=Show Diagram\ndiagPreview=Diagram Preview\ncsvFileUrl=CSV File URL\ngenerate=Generate\nselectDiag2Insert=Please select a diagram to insert it.\nerrShowingDiag=Unexpected error. Cannot show diagram\nnoRecentDiags=No recent diagrams found\nfetchingRecentFailed=Failed to fetch recent diagrams\nuseSrch2FindDiags=Use the search box to find draw.io diagrams\ncantReadChckPerms=Cannot read the specified diagram. Please check you have read permission on that file.\ncantFetchChckPerms=Cannot fetch diagram info. Please check you have read permission on that file.\nsearchFailed=Searching failed. Please try again later.\nplsTypeStr=Please type a search string.\nunsupportedFileChckUrl=Unsupported file. Please check the specified URL\ndiagNotFoundChckUrl=Diagram not found or cannot be accessed. Please check the specified URL\ncsvNotFoundChckUrl=CSV file not found or cannot be accessed. Please check the specified URL\ncantReadUpload=Cannot read the uploaded diagram\nselect=Select\nerrCantGetIdType=Unexpected Error: Cannot get content id or type.\nerrGAuthWinBlocked=Error: Google Authentication window blocked\nauthDrawAccess=Authorize draw.io to access {1}\nconnTimeout=The connection has timed out\nerrAuthSrvc=Error authenticating to {1}\nplsSelectFile=Please select a file\nmustBgtZ={1} must be greater than zero\ncantLoadPrev=Cannot load file preview.\nerrAccessFile=Error: Access Denied. You do not have permission to access "{1}".\nnoPrevAvail=No preview is available.\npersonalAccNotSup=Personal accounts are not supported.\nerrSavingTryLater=Error occurred during saving, please try again later.\nplsEnterFld=Please enter {1}\ninvalidDiagUrl=Invalid Diagram URL\nunsupportedVsdx=Unsupported vsdx file\nunsupportedImg=Unsupported image file\nunsupportedFormat=Unsupported file format\nplsSelectSingleFile=Please select a single file only\nattCorrupt=Attachment file "{1}" is corrupted\nloadAttFailed=Failed to load attachment "{1}"\nembedDrawDiag=Embed draw.io Diagram\naddDiagram=Add Diagram\nembedDiagram=Embed Diagram\neditOwningPg=Edit owning page\ndeepIndexing=Deep Indexing (Index diagrams that aren\'t used in any page also)\nconfADeepIndexStarted=Deep Indexing Started\nconfADeepIndexDone=Deep Indexing Done\nofficeNoDiagramsSelected=No diagrams found in the selection\nofficeNoDiagramsInDoc=No diagrams found in the document\nofficeNotSupported=This feature is not supported in this host application\nsomeImagesFailed={1} out of {2} failed due to the following errors\nimportingNoUsedDiagrams=Importing {1} Diagrams not used in pages\nimportingDrafts=Importing {1} Diagrams in drafts\nprocessingDrafts=Processing drafts\nupdatingDrafts=Updating drafts\nupdateDrafts=Update drafts\nnotifications=Notifications\ndrawioImp=draw.io Import\nconfALibsImp=Importing draw.io Libraries\nconfALibsImpFailed=Importing {1} library failed\ncontributors=Contributors\ndrawDiagrams=draw.io Diagrams\nerrFileNotFoundOrNoPer=Error: Access Denied. File not found or you do not have permission to access "{1}" on {2}.\nconfACheckPagesWEmbed=Checking pages having embedded draw.io diagrams.\nconfADelBrokenEmbedDiagLnk=Removing broken embedded diagram links\nreplaceWith=Replace with\nreplaceAll=Replace All\nconfASkipDiagModified=Skipped "{1}" as it was modified after initial import\nreplFind=Replace/Find\nmatchesRepl={1} matches replaced\ndraftErrDataLoss=An error occurred while reading the draft file. The diagram cannot be edited now to prevent any possible data loss. Please try again later or contact support.\nibm=IBM\nlinkToDiagramHint=Add a link to this diagram. The diagram can only be edited from the page that owns it.\nlinkToDiagram=Link to Diagram\nchangedBy=Changed By\nlastModifiedOn=Last modified on\nsearchResults=Search Results\nshowAllTemps=Show all templates\nnotionToken=Notion Token\nselectDB=Select Database\nnoDBs=No Databases\ndiagramEdited={1} diagram "{2}" edited\nconfDraftPermissionErr=Draft cannot be written. Do you have attachment write/read permission on this page?\nconfFileTooBigErr=File size is too large. Pease check "Attachment Maximum Size" of "Attachment Settings" in Confluence Configuration.\nowner=Owner\nrepository=Repository\nbranch=Branch\nmeters=Meters\nteamsNoEditingMsg=Editor functionality is only available in Desktop environment (in MS Teams App or a web browser)\ncontactOwner=Contact Owner\nviewerOnlyMsg=You cannot edit the diagrams in the mobile platform, please use the desktop client or a web browser.\nwebsite=Website\ncheck4Updates=Check for updates\nattWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...\nconfPartialPageList=We couldn\'t fetch all pages due to an error in Confluence. Continuing using {1} pages only.\nspellCheck=Spell checker\nnoChange=No Change\nlblToSvg=Convert labels to SVG\ntxtSettings=Text Settings\nLinksLost=Links will be lost\narcSize=Arc Size\neditConnectionPoints=Edit Connection Points\nnotInOffline=Not supported while offline\nnotInDesktop=Not supported in Desktop App\nconfConfigSpaceArchived=draw.io Configuration space (DRAWIOCONFIG) is archived. Please restore it first.\nconfACleanOldVerStarted=Cleaning old diagram draft versions started\nconfACleanOldVerDone=Cleaning old diagram draft versions finished\nconfACleaningFile=Cleaning diagram draft "{1}" old versions\nconfAFileCleaned=Cleaning diagram draft "{1}" done\nconfAFileCleanFailed=Cleaning diagram draft "{1}" failed\nconfACleanOnly=Clean Diagram Drafts Only\nbrush=Brush\nopenDevTools=Open Developer Tools\nautoBkp=Automatic Backup\nconfAIgnoreCollectErr=Ignore collecting current pages errors\ndrafts=Drafts\ndraftSaveInt=Draft save interval [sec] (0 to disable)\npluginsDisabled=External plugins disabled.\nextExpNotConfigured=External image service is not configured\npathFilename=Path/Filename\nconfAHugeInstances=Very Large Instances\nconfAHugeInstancesDesc=If this instance includes 100,000+ pages, it is faster to request the current instance pages list from Atlassian. Please contact our support for more details.\nchoosePageIDsFile=Choose current page IDs csv file\nchooseDrawioPsgesFile=Choose pages with draw.io diagrams csv file\nprivate=Private\ndiagramTooLarge=The diagram is too large, please reduce its size and try again.\nselectAdminUsers=Select Admin Users\nxyzTeam={1} Team\naddTeamTitle=Adding a new draw.io Team\naddTeamInst1=To create a new draw.io Team, you need to create a new Atlassian group with "drawio-" prefix (e.g, a group named "drawio-marketing").\naddTeamInst2=Then, configure which team member can edit/add configuration, templates, and libraries from this page.\ndrawioTeams=draw.io Teams\nmembers=Members\nadminEditors=Admins/Editors\nallowAll=Allow all\nnoTeams=No teams found\nerrorLoadingTeams=Error Loading Teams\nnoTeamMembers=No team members found\nerrLoadTMembers=Error loading team members\nerrCreateTeamPage=Error creating team "{1}" page in "draw.io Configuration" space, please check you have the required permissions.\ngotoConfigPage=Please create the space from draw.io "Configuration" page.\nnoAdminsSelected=No admins/editors selected\nerrCreateConfigFile=Error creating "configuration.json" file, please check you have the required permissions.\nerrSetPageRestr=Error setting page restrictions\nnotAdmin4Team=You are not an admin for this team\nconfigUpdated=Configuration updated, restart the editor if you want to work with last configuration.\noutOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.\nconfAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)\nconfA403ErrFaq=There are ({1}) 403 error(s). The current users must have add (write) permissions on all pages and attachments. Even admins sometimes are not allowed to write to some pages via page restrictions\nconfA404ErrFaq=There are ({1}) 404 error(s). The attachment/page is not found. This is due to improper migration or the diagram file (an attachment of the page) is deleted.\nconfA500ErrFaq=There are ({1}) 500 error(s). An internal server error in Confluence Cloud. Such errors are due to overloading the server and usually fixed by retrying the process.\nconfAOtherErrFaq=There are ({1}) other error(s). Please check the error description. If the description is not clear, please contact our support.\nconfAReplaceBaseUrl=Replace Base URL in diagram links when no page ID mapping is found\ndrawSvgPrev=draw.io SVG preview\ngoogleFonts=Google Fonts\ndiagDupl=Duplicate Diagram Detected\ndiagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We\'ve created an independent copy. Please open the editor again.\ndiagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.\nconfCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?\nconfCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.\nconfALogsPageDesc=This page contains logs of draw.io long running services as attachments\nconfEditOnlyInPageEditor=Can only be edited within Confluence page editor\nconfEvalWarn=Evaluation License - Not for production use\notherUsersEditing=Other user(s) are editing this diagram\nfirstTimeGD=First time to access this file?\ndrawioGDAppNotInstalled=draw.io Google Drive app is not installed, please install it first\nConfDC415Error=Saving drafts is blocked. If you have "Attachment Checker for Confluence" app, please update to the latest version.\nremove=Remove\nselectPgLyr=Select Page and Layers\nerrGenPreview=There was an error generating a diagram preview. Please consult technical support.\nattAccessErr=Diagram attachment access error: cannot display diagram\nwidthIntOrFixed=Width must be a valid integer or of value \'fixed\'\ndupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected\ncantDupPickDiffName=Could not duplicate diagram. Please choose a different name.\nownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.\ncantDupTryLater=Could not duplicate diagram. Please try again later.\ncantEditLnkd=Cannot edit linked diagram\ndiagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?\ndiagInTemps=draw.io diagrams in templates\ndiagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.\nconfDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.\n');Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;
+(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var e=EditorUi.initTheme;EditorUi.initTheme=function(){e.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,e,g,m,u,p,B){this.file=b;this.id=e;this.content=g;this.modifiedDate=m;this.createdDate=u;this.isResolved=p;this.user=B;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,e,g,m,u){e()};DrawioComment.prototype.editComment=function(b,e,g){e()};DrawioComment.prototype.deleteComment=function(b,e){b()};DrawioUser=function(b,e,g,m,u){this.id=b;this.email=e;this.displayName=g;this.pictureUrl=m;this.locale=u};mxResources.parse('# *DO NOT DIRECTLY EDIT THIS FILE, IT IS AUTOMATICALLY GENERATED AND IT IS BASED ON:*\n# https://docs.google.com/spreadsheet/ccc?key=0AmQEO36liL4FdDJLWVNMaVV2UmRKSnpXU09MYkdGbEE\nabout=About\naboutDrawio=About draw.io\naccessDenied=Access Denied\naccounts=Accounts\naction=Action\nactualSize=Actual Size\nadaptiveColors=Adaptive Colors\nadd=Add\naddAccount=Add account\naddedFile=Added {1}\naddImages=Add Images\naddImageUrl=Add Image URL\naddLayer=Add Layer\naddProperty=Add Property\naddress=Address\naddToExistingDrawing=Add to Existing Drawing\naddToScratchpad=Add to Scratchpad\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nsmartTemplate=Smart Template\nalign=Align\nalignment=Alignment\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\nanimations=Animations\narc=Arc\nareYouSure=Are you sure?\nensureDataSaved=Please ensure your data is saved before closing.\nallChangesSaved=All changes saved\nallChangesSavedInDrive=All changes saved in Drive\nallowPopups=Allow pop-ups to avoid this dialog.\nallowRelativeUrl=Allow relative URL\nalreadyConnected=Nodes already connected\nappearance=Appearance\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narrow=Arrow\narrows=Arrows\naskMeAnything=Ask me anything\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosize=Autosize\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nbeta=beta\nblankDrawing=Blank Drawing\nblankDiagram=Blank Diagram\nblock=Block\nblockquote=Blockquote\nblog=Blog\nbold=Bold\nbootstrap=Bootstrap\nborder=Border\nborderColor=Border Color\nborderWidth=Border Width\nbottom=Bottom\nbottomAlign=Bottom Align\nbottomLeft=Bottom Left\nbottomRight=Bottom Right\nbpmn=BPMN\nbringForward=Bring Forward\nbrowser=Browser\nbulletedList=Bulleted List\nbusiness=Business\nbusy=Operation in progress\ncabinets=Cabinets\ncancel=Cancel\ncenter=Center\ncannotLoad=Load attempts failed. Please try again later.\ncannotLogin=Log in attempts failed. Please try again later.\ncannotOpenFile=Cannot open file\nchange=Change\nchangeOrientation=Change Orientation\nchangeUser=Change user\nchangeStorage=Change storage\nchangesNotSaved=Changes have not been saved\nclassDiagram=Class Diagram\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nchromeApp=Chrome App\ncollaborativeEditingNotice=Important Notice for Collaborative Editing\ncompare=Compare\ncompressed=Compressed\ncommitMessage=Commit Message\nconfigLinkWarn=This link configures draw.io. Only click OK if you trust whoever gave you it!\nconfigLinkConfirm=Click OK to configure and restart draw.io.\ncontainer=Container\ncsv=CSV\ndark=Dark\ndiagramLanguage=Diagram Language\ndiagramType=Diagram type\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndisabled=Disabled\ndraftFound=A draft for \'{1}\' has been found. Load it into the editor or discard it to continue.\ndraftRevisionMismatch=There is a different version of this diagram on a shared draft of this page. Please edit the diagram from the draft to ensure you are working with the latest version.\nselectDraft=Select a draft to continue editing:\ndragAndDropNotSupported=Drag and drop not supported for images. Would you like to import instead?\ndropboxCharsNotAllowed=The following characters are not allowed: / : ? * " |\ncheck=Check\nchecksum=Checksum\ncircle=Circle\ncisco=Cisco\nclassic=Classic\nclearDefaultStyle=Clear Default Style\nclearWaypoints=Clear Waypoints\nclipart=Clipart\nclose=Close\nclosingFile=Closing file\nrealtimeCollaboration=Real-Time Collaboration\ncollaborate=Collaborate\ncollaborator=Collaborator\ncollaborators=Collaborators\ncollapse=Collapse\ncollapseExpand=Collapse/Expand\ncollapse-expand=Click to collapse/expand\nShift-click to move neighbors \nAlt-click to protect group size\ncollapsible=Collapsible\ncomic=Comic\ncomment=Comment\ncommentsNotes=Comments/Notes\ncompress=Compress\nconfiguration=Configuration\nconnect=Connect\nconnecting=Connecting\nconnectWithDrive=Connect with Google Drive\nconnection=Connection\nconnectionArrows=Connection Arrows\nconnectionPoints=Connection Points\nconstrainProportions=Constrain Proportions\ncontainsValidationErrors=Contains validation errors\ncopiedToClipboard=Copied to clipboard\ncopy=Copy\ncopyConnect=Copy on connect\ncopyCreated=A copy of the file was created.\ncopyData=Copy Data\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySize=Copy Size\ncopyStyle=Copy Style\ncreate=Create\ncreateBlankDiagram=Create Blank Diagram\ncreateNewDiagram=Create New Diagram\ncreateRevision=Create Revision\ncreateShape=Create Shape\ncrop=Crop\ncurved=Curved\ncustom=Custom\ncurrent=Current\ncurrentPage=Current page\ncut=Cut\ndashed=Dashed\ndecideLater=Decide later\ndefault=Default\ndelete=Delete\ndeleteAll=Delete all\ndeleteColumn=Delete column\ndeleteLibrary401=Insufficient permissions to delete this library\ndeleteLibrary404=Selected library could not be found\ndeleteLibrary500=Error deleting library\ndeleteLibraryConfirm=You are about to permanently delete this library. Are you sure you want to do this?\ndeleteRow=Delete Row\ndescription=Description\ndescribeYourDiagram=Describe your diagram\ndevice=Device\ndiagram=Diagram\ndiagramContent=Diagram Content\ndiagramLocked=Diagram has been locked to prevent further data loss.\ndiagramLockedBySince=The diagram is locked by {1} since {2} ago\ndiagramName=Diagram Name\ndiagramIsPublic=Diagram is public\ndiagramIsNotPublic=Diagram is not public\ndiamond=Diamond\ndiamondThin=Diamond (thin)\ndidYouKnow=Did you know...\ndirection=Direction\ndiscard=Discard\ndiscardChangesAndReconnect=Discard Changes and Reconnect\ngoogleDriveMissingClickHere=Google Drive missing? Click here!\ndiscardChanges=Discard Changes\ndisconnected=Disconnected\ndistribute=Distribute\ndone=Done\ndoNotShowAgain=Do not show again\ndotted=Dotted\ndoubleClickOrientation=Doubleclick to change orientation\ndoubleClickTooltip=Doubleclick to insert text\ndoubleClickChangeProperty=Doubleclick to change property name\ndownload=Download\ndownloadDesktop=Get Desktop\ndownloadAs=Download as\nclickHereToSave=Click here to save.\ndpi=DPI\ndraftDiscarded=Draft discarded\ndraftSaved=Draft saved\ndragElementsHere=Drag elements here\ndragImagesHere=Drag images or URLs here\ndragUrlsHere=Drag URLs here\ndraw.io=draw.io\ndrawing=Drawing{1}\ndrawingEmpty=Drawing is empty\ndrawingTooLarge=Drawing is too large\ndrawioForWork=Draw.io for GSuite\ndropbox=Dropbox\nduplicate=Duplicate\nduplicateIt=Duplicate {1}\ndivider=Divider\ndx=Dx\ndy=Dy\neast=East\nedit=Edit\neditData=Edit Data\neditDiagram=Edit Diagram\neditGeometry=Edit Geometry\neditImage=Edit Image\neditImageUrl=Edit Image URL\neditLink=Edit Link\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\nembed=Embed\nembedFonts=Embed Fonts\nembedImages=Embed Images\nmainEmbedNotice=Paste this into the page\nelectrical=Electrical\nellipse=Ellipse\nembedNotice=Paste this once at the end of the page\nenterGroup=Enter Group\nenterName=Enter Name\nenterPropertyName=Enter Property Name\nenterValue=Enter Value\nentityRelation=Entity Relation\nentityRelationshipDiagram=Entity Relationship Diagram\nerror=Error\nerrorDeletingFile=Error deleting file\nerrorLoadingFile=Error loading file\nerrorRenamingFile=Error renaming file\nerrorRenamingFileNotFound=Error renaming file. File was not found.\nerrorRenamingFileForbidden=Error renaming file. Insufficient access rights.\nerrorSavingDraft=Error saving draft\nerrorSavingFile=Error saving file\nerrorSavingFileUnknown=Error authorizing with Google\'s servers. Please refresh the page to re-attempt.\nerrorSavingFileForbidden=Error saving file. Insufficient access rights.\nerrorSavingFileNameConflict=Could not save diagram. Current page already contains file named \'{1}\'.\nerrorSavingFileNotFound=Error saving file. File was not found.\nerrorSavingFileReadOnlyMode=Could not save diagram while read-only mode is active.\nerrorSavingFileSessionTimeout=Your session has ended. Please <a target=\'_blank\' href=\'{1}\'>{2}</a> and return to this tab to try to save again.\nerrorSendingFeedback=Error sending feedback.\nerrorUpdatingPreview=Error updating preview.\nexit=Exit\nexitGroup=Exit Group\nexpand=Expand\nexplore=Explore\nexport=Export\nexporting=Exporting\nexportAs=Export as\nexportOptionsDisabled=Export options disabled\nexportOptionsDisabledDetails=The owner has disabled options to download, print or copy for commenters and viewers on this file.\nexternalChanges=External Changes\nextras=Extras\nfacebook=Facebook\nfailedToSaveTryReconnect=Failed to save, trying to reconnect\nfeatureRequest=Feature Request\nfeedback=Feedback\nfeedbackSent=Feedback successfully sent.\nfloorplans=Floorplans\nfile=File\nfileChangedOverwriteDialog=The file has been modified. Do you want to save the file and overwrite those changes?\nfileChangedSyncDialog=The file has been modified.\nfileChangedSync=The file has been modified. Click here to synchronize.\noverwrite=Overwrite\nsynchronize=Synchronize\nfilename=Filename\nfileExists=File already exists\nfileMovedToTrash=File was moved to trash\nfileNearlyFullSeeFaq=File nearly full, please see FAQ\nfileNotFound=File not found\nrepositoryNotFound=Repository not found\nfileNotFoundOrDenied=The file was not found. It does not exist or you do not have access.\nfileNotLoaded=File not loaded\nfileNotSaved=File not saved\nfileOpenLocation=How would you like to open these file(s)?\nfiletypeHtml=.html causes file to save as HTML with redirect to cloud URL\nfiletypePng=.png causes file to save as PNG with embedded data\nfiletypeSvg=.svg causes file to save as SVG with embedded data\nfileWillBeSavedInAppFolder={1} will be saved in the app folder.\nfill=Fill\nfillColor=Fill Color\nfilterCards=Filter Cards\nfind=Find\nfit=Fit\nfitContainer=Resize Container\nfitIntoContainer=Fit into Container\nfitPage=Fit Page\nfitPageWidth=Fit Page Width\nfitTo=Fit to\nfitToSheetsAcross=sheet(s) across\nfitToBy=by\nfitToSheetsDown=sheet(s) down\nfitTwoPages=Two Pages\nfitWindow=Fit Window\nflip=Flip\nflipH=Flip Horizontal\nflipV=Flip Vertical\nflowAnimation=Flow Animation\nflowchart=Flowchart\nfolder=Folder\nfont=Font\nfontColor=Font Color\nfontFamily=Font Family\nfontSize=Font Size\nforbidden=You are not authorized to access this file\nformat=Format\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatSvgEmbedded=SVG (with XML)\nformatVsdx=VSDX\nformatVssx=VSSX\nformatWebp=WebP\nformatXmlPlain=XML (Plain)\nformatXml=XML\nforum=Discussion/Help Forums\nfreehand=Freehand\nfromTemplate=From Template\nfromTemplateUrl=From Template URL\nfromText=From Text\nfromUrl=From URL\nfromThisPage=From this page\nfullscreen=Fullscreen\ngap=Gap\ngcp=GCP\ngeneral=General\ngetNotionChromeExtension=Get the Notion Chrome Extension\ngithub=GitHub\ngitlab=GitLab\ngliffy=Gliffy\nglobal=Global\ngoogleDocs=Google Docs\ngoogleDrive=Google Drive\ngoogleGadget=Google Gadget\ngoogleSharingNotAvailable=Sharing is only available via Google Drive. Please click Open below and share from the more actions menu:\ngoogleSlides=Google Slides\ngoogleSites=Google Sites\ngoogleSheets=Google Sheets\ngradient=Gradient\ngradientColor=Color\ngrid=Grid\ngridColor=Grid Color\ngridSize=Grid Size\ngroup=Group\nguides=Guides\nhateApp=I hate draw.io\nheading=Heading\nheight=Height\nhelp=Help\nhelpTranslate=Help us translate this application\nhide=Hide\nhideIt=Hide {1}\nhidden=Hidden\nhighContrast=High Contrast\nhome=Home\nhorizontal=Horizontal\nhorizontalFlow=Horizontal Flow\nhorizontalTree=Horizontal Tree\nhowTranslate=How good is the translation in your language?\nhtml=HTML\nhtmlText=HTML Text\nid=ID\niframe=IFrame\nignore=Ignore\nimage=Image\nimageUrl=Image URL\nimages=Images\nimagePreviewError=This image couldn\'t be loaded for preview. Please check the URL.\nimageTooBig=Image too big\nimgur=Imgur\nimport=Import\nimportFrom=Import from\nimproveContrast=Improve Contrast\nincludeCopyOfMyDiagram=Include a copy of my diagram\nincreaseIndent=Increase Indent\ndecreaseIndent=Decrease Indent\ninsert=Insert\ninsertColumnBefore=Insert Column Left\ninsertColumnAfter=Insert Column Right\ninsertEllipse=Insert Ellipse\ninsertImage=Insert Image\ninsertHorizontalRule=Insert Horizontal Rule\ninsertLink=Insert Link\ninsertPage=Insert Page\ninsertRectangle=Insert Rectangle\ninsertRhombus=Insert Rhombus\ninsertRowBefore=Insert Row Above\ninsertRowAfter=Insert Row After\ninsertText=Insert Text\ninserting=Inserting\ninstallApp=Install App\ninvalidFilename=Diagram names must not contain the following characters: / | : ; { } < > & + ? = "\ninvalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://www.drawio.com/doc/faq/license-drawio-confluence-jira-cloud">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\nisometric=Isometric\nios=iOS\nitalic=Italic\nkennedy=Kennedy\nkeyboardShortcuts=Keyboard Shortcuts\nlabels=Labels\nlayers=Layers\nlandscape=Landscape\nlanguage=Language\nleanMapping=Lean Mapping\nlastChange=Last change {1} ago\nlessThanAMinute=less than a minute\nlicensingError=Licensing Error\nlicenseHasExpired=The license for {1} has expired on {2}. Click here.\nlicenseRequired=This feature requires draw.io to be licensed.\nlicenseWillExpire=The license for {1} will expire on {2}. Click here.\nlight=Light\nlineJumps=Line jumps\nlinkAccountRequired=If the diagram is not public a Google account is required to view the link.\nlinkText=Link Text\nlist=List\nminute=minute\nminutes=minutes\nhours=hours\ndays=days\nmonths=months\nyears=years\nrestartForChangeRequired=Changes will take effect after a restart of the application.\nlaneColor=Lanecolor\nlanguageCode=Language Code\nlastModified=Last modified\nlayout=Layout\nleft=Left\nleftAlign=Left Align\nleftToRight=Left to right\nlibraryTooltip=Drag and drop shapes here or click + to insert. Double click to edit.\nlightbox=Lightbox\nline=Line\nlineend=Line end\nlineheight=Line Height\nlinestart=Line start\nlinewidth=Linewidth\nlink=Link\nlinks=Links\nloading=Loading\nlocked=Locked\nlockUnlock=Lock/Unlock\nloggedOut=Logged Out\nlogIn=log in\nloveIt=I love {1}\nlucidchart=Lucidchart\nmaps=Maps\nmathematicalTypesetting=Mathematical Typesetting\nmakeCopy=Make a Copy\nmanual=Manual\nmerge=Merge\nmermaid=Mermaid\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nmisc=Misc\nmockups=Mockups\nmodern=Modern\nmodificationDate=Modification date\nmodifiedBy=Modified by\nmore=More\nmoreResults=More Results\nmoreShapes=More Shapes\nmove=Move\nmoveToFolder=Move to Folder\nmoving=Moving\nmoveSelectionTo=Move selection to {1}\nmyDrive=My Drive\nmyFiles=My Files\nname=Name\nnavigation=Navigation\nnetwork=Network\nnetworking=Networking\nnew=New\nnewLibrary=New Library\nnextPage=Next Page\nno=No\nnoPickFolder=No, pick folder\nnoAttachments=No attachments found\nnoColor=No Color\nnoFiles=No Files\nnoFileSelected=No file selected\nnoLibraries=No libraries found\nnoMoreResults=No more results\nnone=None\nnoOtherViewers=No other viewers\nnoPlugins=No plugins\nnoPreview=No preview\nnoResponse=No response from server\nnoResultsFor=No results for \'{1}\'\nnoRevisions=No revisions\nnoSearchResults=No search results found\nnoPageContentOrNotSaved=No anchors found on this page or it hasn\'t been saved yet\nnormal=Normal\nnorth=North\nnotADiagramFile=Not a diagram file\nnotALibraryFile=Not a library file\nnotAvailable=Not available\nnotAUtf8File=Not a UTF-8 file\nnotConnected=Not connected\nnote=Note\nnotion=Notion\nnotSatisfiedWithImport=Not satisfied with the import?\nnotUsingService=Not using {1}?\nnumberedList=Numbered list\noffline=Offline\nok=OK\noneDrive=OneDrive\nonline=Online\nopacity=Opacity\nopen=Open\nopenArrow=Open Arrow\nopenExistingDiagram=Open Existing Diagram\nopenFile=Open File\nopenFrom=Open from\nopenLibrary=Open Library\nopenLibraryFrom=Open Library from\nopenLink=Open Link\nopenInNewWindow=Open in New Window\nopenInThisWindow=Open in This Window\nopenIt=Open {1}\nopenRecent=Open Recent\nopenSupported=Supported formats are files saved from this software (.xml), .vsdx and .gliffy\noptions=Options\norganic=Organic\norgChart=Org Chart\northogonal=Orthogonal\notherViewer=other viewer\notherViewers=other viewers\noutline=Outline\noval=Oval\npage=Page\npageContent=Page Content\npageNotFound=Page not found\npageWithNumber=Page-{1}\npages=Pages\npageTabs=Page Tabs\npageView=Page View\npageSetup=Page Setup\npageScale=Page Scale\npan=Pan\npanTooltip=Space+Drag to pan\npaperSize=Paper Size\npattern=Pattern\nparallels=Parallels\npaste=Paste\npasteData=Paste Data\npasteHere=Paste here\npasteSize=Paste Size\npasteStyle=Paste Style\nperimeter=Perimeter\npermissionAnyone=Anyone can edit\npermissionAuthor=Owner and admins can edit\npickFolder=Pick a folder\npickLibraryDialogTitle=Select Library\npublicDiagramUrl=Public URL of the diagram\nplaceholders=Placeholders\nplantUml=PlantUML\nplugins=Plugins\npluginUrl=Plugin URL\npluginWarning=The page has requested to load the following plugin(s):\n \n {1}\n \n Would you like to load these plugin(s) now?\n \n NOTE : Only allow plugins to run if you fully understand the security implications of doing so.\n\nplusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone).\nportrait=Portrait\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\npresentationMode=Presentation Mode\nprint=Print\nprocEng=Proc. Eng.\nproject=Project\npriority=Priority\nprocessForHiringNewEmployee=Process for hiring a new employee\nproperties=Properties\npublish=Publish\nquickStart=Quick Start Video\nrack=Rack\nradial=Radial\nradialTree=Radial Tree\nreadOnly=Read-only\nreconnecting=Reconnecting\nrecentlyUpdated=Recently Updated\nrecentlyViewed=Recently Viewed\nrectangle=Rectangle\nredirectToNewApp=This file was created or modified in a newer version of this app. You will be redirected now.\nrealtimeTimeout=It looks like you\'ve made a few changes while offline. We\'re sorry, these changes cannot be saved.\nredo=Redo\nrefresh=Refresh\nregularExpression=Regular Expression\nrelative=Relative\nrelativeUrlNotAllowed=Relative URL not allowed\nrememberMe=Remember me\nrememberThisSetting=Remember this setting\nremoveFormat=Clear Formatting\nremoveFromGroup=Remove from Group\nremoveIt=Remove {1}\nremoveWaypoint=Remove Waypoint\nrename=Rename\nrenamed=Renamed\nrenameIt=Rename {1}\nrenaming=Renaming\nreplace=Replace\nreplaceIt={1} already exists. Do you want to replace it?\nreplaceExistingDrawing=Replace existing drawing\nrequired=required\nrequirementDiagram=Requirement Diagram\nreset=Reset\nresetView=Reset View\nresize=Resize\nresizeLargeImages=Do you want to resize large images to make the application run faster?\nretina=Retina\nresponsive=Responsive\nrestore=Restore\nrestoring=Restoring\nretryingIn=Retrying in {1} second(s)\nretryingLoad=Load failed. Retrying...\nretryingLogin=Login time out. Retrying...\nreverse=Reverse\nrevision=Revision\nrevisionHistory=Revision History\nrhombus=Rhombus\nright=Right\nrightAlign=Right Align\nrightToLeft=Right to left\nrotate=Rotate\nrotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees\nrotation=Rotation\nrounded=Rounded\nsave=Save\nsaveAndExit=Save & Exit\nsaveAs=Save As\nsaveAsXmlFile=Save as XML file?\nsaved=Saved\nsaveDiagramFirst=Please save the diagram first\nsaveDiagramsTo=Save diagrams to\nsaveLibrary403=Insufficient permissions to edit this library\nsaveLibrary500=There was an error while saving the library\nsaveLibraryReadOnly=Could not save library while read-only mode is active\nsaving=Saving\nscratchpad=Scratchpad\nscrollbars=Scrollbars\nsearch=Search\nsearchShapes=Search Shapes\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectedPage=Selected Page\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselectNone=Select None\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nsequenceDiagram=Sequence Diagram\nserviceUnavailableOrBlocked=Service unavailable or blocked\nsessionExpired=Your session has expired. Please refresh the browser window.\nsessionTimeoutOnSave=Your session has timed out and you have been disconnected from the Google Drive. Press OK to login and save.\nsetAsDefaultStyle=Set as Default Style\nsettings=Settings\nshadow=Shadow\nshape=Shape\nshapes=Shapes\nshare=Share\nshareCursor=Share Mouse Cursor\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsaveItToGoogleDriveToCollaborate=You\'ll need to save "{1}" to Google Drive before you can collaborate.\nsaveToGoogleDrive=Save to Google Drive\nsharp=Sharp\nshow=Show\nshowRemoteCursors=Show Remote Mouse Cursors\nshowStartScreen=Show Start Screen\nsidebarTooltip=Click or drag and drop shapes. Shift+click to change selection. Alt+click to insert and connect.\nsigns=Signs\nsignOut=Sign out\nsimple=Simple\nsimpleArrow=Simple Arrow\nsimpleViewer=Simple Viewer\nsize=Size\nsketch=Sketch\nsmoothing=Smoothing\nsnapToGrid=Snap to Grid\nsolid=Solid\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstateDiagram=State Diagram\nstandard=Standard\nstartDrawing=Start drawing\nstopDrawing=Stop drawing\nstarting=Starting\nstraight=Straight\nstrikethrough=Strikethrough\nstrokeColor=Line Color\nstyle=Style\nsubscript=Subscript\nsummary=Summary\nsuperscript=Superscript\nsupport=Support\nswap=Swap\nswimlaneDiagram=Swimlane Diagram\nsysml=SysML\ntags=Tags\ntable=Table\ntables=Tables\ntakeOver=Take Over\ntargetSpacing=Target Spacing\ntemplate=Template\ntemplates=Templates\ntext=Text\ntextAlignment=Text Alignment\ntextOpacity=Text Opacity\ntheme=Theme\ntimeout=Timeout\ntitle=Title\nto=to\ntoBack=To Back\ntoFront=To Front\ntooLargeUseDownload=Too large, use download instead.\ntoolbar=Toolbar\ntooltips=Tooltips\ntop=Top\ntopAlign=Top Align\ntopLeft=Top Left\ntopRight=Top Right\ntransparent=Transparent\ntransparentBackground=Transparent Background\ntrello=Trello\ntryAgain=Try again\ntryOpeningViaThisPage=Try opening via this page\nturn=Rotate shape only by 90°\ntype=Type\ntwitter=Twitter\numl=UML\nunassigned=Unassigned\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunmerge=Unmerge\nunsavedChanges=Unsaved changes\nunsavedChangesClickHereToSave=Unsaved changes. Click here to save.\nuntitled=Untitled\nuntitledDiagram=Untitled Diagram\nuntitledLayer=Untitled Layer\nuntitledLibrary=Untitled Library\nunknownError=Unknown error\nunknownUser=Unknown user\nupdateExistingDrawing=Update existing drawing\nupdateFile=Update {1}\nupdatingDocument=Updating Document. Please wait...\nupdatingPreview=Updating Preview. Please wait...\nupdatingSelection=Updating Selection. Please wait...\nupload=Upload\nurl=URL\nuseBlackAndWhite=Use black and white\nuseCurrentSettings=Use current settings\nuseOffline=Use Offline\nuserDefined=User-defined\nuseRootFolder=Use root folder?\nuserManual=User Manual\nvertical=Vertical\nverticalFlow=Vertical Flow\nverticalTree=Vertical Tree\nview=View\nviewerSettings=Viewer Settings\nviewUrl=Link to view: {1}\nvoiceAssistant=Voice Assistant (beta)\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwhere=Where\nwidth=Width\nwiki=Wiki\nwordWrap=Word Wrap\nwritingDirection=Writing Direction\nyes=Yes\nyourEmailAddress=Your email address\nzoom=Zoom\nzoomIn=Zoom In\nzoomOut=Zoom Out\nbasic=Basic\nbusinessprocess=Business Processes\ncharts=Charts\nengineering=Engineering\nflowcharts=Flowcharts\ngmdl=Material Design\nmindmaps=Mindmaps\nmockups=Mockups\nnetworkdiagrams=Network Diagrams\nnothingIsSelected=Nothing is selected\nother=Other\nsoftwaredesign=Software Design\nvenndiagrams=Venn Diagrams\nwebEmailOrOther=Web, email or any other internet address\nwebLink=Web Link\nwireframes=Wireframes\nproperty=Property\nvalue=Value\nshowMore=Show More\nshowLess=Show Less\nmyDiagrams=My Diagrams\nallDiagrams=All Diagrams\nrecentlyUsed=Recently used\nlistView=List view\ngridView=Grid view\nresultsFor=Results for \'{1}\'\noneDriveCharsNotAllowed=The following characters are not allowed: ~ " # % * : < > ? / { | }\noneDriveInvalidDeviceName=The specified device name is invalid\nofficeNotLoggedOD=You are not logged in to OneDrive. Please open draw.io task pane and login first.\nofficeSelectSingleDiag=Please select a single draw.io diagram only without other contents.\nofficeSelectDiag=Please select a draw.io diagram.\nofficeCannotFindDiagram=Cannot find a draw.io diagram in the selection\nnoDiagrams=No diagrams found\nauthFailed=Authentication failed\nofficeFailedAuthMsg=Unable to successfully authenticate user or authorize application.\nconvertingDiagramFailed=Converting diagram failed\nofficeCopyImgErrMsg=Due to some limitations in the host application, the image could not be inserted. Please manually copy the image then paste it to the document.\ninsertingImageFailed=Inserting image failed\nofficeCopyImgInst=Instructions: Right-click the image below. Select "Copy image" from the context menu. Then, in the document, right-click and select "Paste" from the context menu.\nfolderEmpty=Folder is empty\nrecent=Recent\nsharedWithMe=Shared With Me\nsharepointSites=Sharepoint Sites\nerrorFetchingFolder=Error fetching folder items\nerrorAuthOD=Error authenticating to OneDrive\nofficeMainHeader=Adds draw.io diagrams to your document.\nofficeStepsHeader=This add-in performs the following steps:\nofficeStep1=Connects to Microsoft OneDrive, Google Drive or your device.\nofficeStep2=Select a draw.io diagram.\nofficeStep3=Insert the diagram into the document.\nofficeAuthPopupInfo=Please complete the authentication in the pop-up window.\nofficeSelDiag=Select draw.io Diagram:\nfiles=Files\nshared=Shared\nsharepoint=Sharepoint\nofficeManualUpdateInst=Instructions: Copy draw.io diagram from the document. Then, in the box below, right-click and select "Paste" from the context menu.\nofficeClickToEdit=Click icon to start editing:\npasteDiagram=Paste draw.io diagram here\nconnectOD=Connect to OneDrive\nselectChildren=Select Children\nselectSiblings=Select Siblings\nselectParent=Select Parent\nselectDescendants=Select Descendants\nlastSaved=Last saved {1} ago\nresolve=Resolve\nreopen=Re-open\nshowResolved=Show Resolved\nreply=Reply\nobjectNotFound=Object not found\nreOpened=Re-opened\nmarkedAsResolved=Marked as resolved\nnoCommentsFound=No comments found\ncomments=Comments\ntimeAgo={1} ago\nconfluenceCloud=Confluence Cloud\nlibraries=Libraries\nconfAnchor=Confluence Page Anchor\nconfTimeout=The connection has timed out\nconfSrvTakeTooLong=The server at {1} is taking too long to respond.\nconfCannotInsertNew=Cannot insert draw.io diagram to a new Confluence page\nconfSaveTry=Please save the page and try again.\nconfCannotGetID=Unable to determine page ID\nconfContactAdmin=Please contact your Confluence administrator.\nreadErr=Read Error\neditingErr=Editing Error\nconfExtEditNotPossible=This diagram cannot be edited externally. Please try editing it while editing the page\nconfEditedExt=Diagram/Page edited externally\ndiagNotFound=Diagram Not Found\nconfEditedExtRefresh=Diagram/Page is edited externally. Please refresh the page.\nconfCannotEditDraftDelOrExt=Cannot edit diagrams in a draft page, diagram is deleted from the page, or diagram is edited externally. Please check the page.\nretBack=Return back\nconfDiagNotPublished=The diagram does not belong to a published page\ncreatedByDraw=Created by draw.io\nfilenameShort=Filename too short\ninvalidChars=Invalid characters\nalreadyExst={1} already exists\ndraftReadErr=Draft Read Error\ndiagCantLoad=Diagram cannot be loaded\ndraftWriteErr=Draft Write Error\ndraftCantCreate=Draft could not be created\nconfDuplName=Duplicate diagram name detected. Please pick another name.\nconfSessionExpired=Looks like your session expired. Log in again to keep working.\nlogin=Login\ndrawPrev=draw.io preview\ndrawDiag=draw.io diagram\ninvalidCallFnNotFound=Invalid Call: {1} not found\ninvalidCallErrOccured=Invalid Call: An error occurred, {1}\nanonymous=Anonymous\nconfGotoPage=Go to containing page\nshowComments=Show Comments\nconfError=Error: {1}\ngliffyImport=Gliffy Import\ngliffyImportInst1=Click the "Start Import" button to import all Gliffy diagrams to draw.io.\ngliffyImportInst2=Please note that the import procedure will take some time and the browser window must remain open until the import is completed.\nstartImport=Start Import\ndrawConfig=draw.io Configuration\ncustomLib=Custom Libraries\ncustomTemp=Custom Templates\npageIdsExp=Page IDs Export\ndrawReindex=draw.io re-indexing (beta)\nworking=Working\ndrawConfigNotFoundInst=draw.io Configuration Space (DRAWIOCONFIG) does not exist. This space is needed to store draw.io configuration files and custom libraries/templates.\ncreateConfSp=Create Config Space\nunexpErrRefresh=Unexpected error, please refresh the page and try again.\nconfigJSONInst=Write draw.io JSON configuration in the editor below then click save. If you need help, please refer to\nthisPage=this page\ncurCustLib=Current Custom Libraries\nlibName=Library Name\naction=Action\ndrawConfID=draw.io Config ID\naddLibInst=Click the "Add Library" button to upload a new library.\naddLib=Add Library\ncustomTempInst1=Custom templates are draw.io diagrams saved in children pages of\ncustomTempInst2=For more details, please refer to\ntempsPage=Templates page\npageIdsExpInst1=Select export target, then click the "Start Export" button to export all pages IDs.\npageIdsExpInst2=Please note that the export procedure will take some time and the browser window must remain open until the export is completed.\nstartExp=Start Export\nrefreshDrawIndex=Refresh draw.io Diagrams Index\nreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.\nreindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.\nstartIndexing=Start Indexing\nconfAPageFoundFetch=Page "{1}" found. Fetching\nconfAAllDiagDone=All {1} diagrams processed. Process finished.\nconfAStartedProcessing=Started processing page "{1}"\nconfAAllDiagInPageDone=All {1} diagrams in page "{2}" processed successfully.\nconfAPartialDiagDone={1} out of {2} {3} diagrams in page "{4}" processed successfully.\nconfAUpdatePageFailed=Updating page "{1}" failed.\nconfANoDiagFoundInPage=No {1} diagrams found in page "{2}".\nconfAFetchPageFailed=Fetching the page failed.\nconfANoDiagFound=No {1} diagrams found. Process finished.\nconfASearchFailed=Searching for {1} diagrams failed. Please try again later.\nconfAGliffyDiagFound={2} diagram "{1}" found. Importing\nconfAGliffyDiagImported={2} diagram "{1}" imported successfully.\nconfASavingImpGliffyFailed=Saving imported {2} diagram "{1}" failed.\nconfAImportedFromByDraw=Imported from "{1}" by draw.io\nconfAImportGliffyFailed=Importing {2} diagram "{1}" failed.\nconfAFetchGliffyFailed=Fetching {2} diagram "{1}" failed.\nconfACheckBrokenDiagLnk=Checking for broken diagrams links.\nconfADelDiagLinkOf=Deleting diagram link of "{1}"\nconfADupLnk=(duplicate link)\nconfADelDiagLnkFailed=Deleting diagram link of "{1}" failed.\nconfAUnexpErrProcessPage=Unexpected error during processing the page with id: {1}\nconfADiagFoundIndex=Diagram "{1}" found. Indexing\nconfADiagIndexSucc=Diagram "{1}" indexed successfully.\nconfAIndexDiagFailed=Indexing diagram "{1}" failed.\nconfASkipDiagOtherPage=Skipped "{1}" as it belongs to another page!\nconfADiagUptoDate=Diagram "{1}" is up to date.\nconfACheckPagesWDraw=Checking pages having draw.io diagrams.\nconfAErrOccured=An error occurred!\nsavedSucc=Saved successfully\nconfASaveFailedErr=Saving Failed (Unexpected Error)\ncharacter=Character\nconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachment\nconfALibPageDesc=This page contains draw.io custom libraries as attachments\nconfATempPageDesc=This page contains draw.io custom templates as attachments\nworking=Working\nconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templates\nconfANoCustLib=No Custom Libraries\ndelFailed=Delete failed!\nshowID=Show ID\nconfAIncorrectLibFileType=Incorrect file type. Libraries should be XML files.\nuploading=Uploading\nconfALibExist=This library already exists\nconfAUploadSucc=Uploaded successfully\nconfAUploadFailErr=Upload Failed (Unexpected Error)\nhiResPreview=High Res Preview\nofficeNotLoggedGD=You are not logged in to Google Drive. Please open draw.io task pane and login first.\nofficePopupInfo=Please complete the process in the pop-up window.\npickODFile=Pick OneDrive File\ncreateODFile=Create OneDrive File\npickGDriveFile=Pick Google Drive File\ncreateGDriveFile=Create Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nconfEditDraftDelOrExt=This diagram is in a draft page, is deleted from the page, or is edited externally. It will be saved as a new attachment version and may not be reflected in the page.\nconfDiagEditedExt=Diagram is edited in another session. It will be saved as a new attachment version but the page will show other session\'s modifications.\nmacroNotFound=Macro Not Found\nconfAInvalidPageIdsFormat=Incorrect Page IDs file format\nconfACollectingCurPages=Collecting current pages\nconfABuildingPagesMap=Building pages mapping\nconfAProcessDrawDiag=Started processing imported draw.io diagrams\nconfAProcessDrawDiagDone=Finished processing imported draw.io diagrams\nconfAProcessImpPages=Started processing imported pages\nconfAErrPrcsDiagInPage=Error processing draw.io diagrams in page "{1}"\nconfAPrcsDiagInPage=Processing draw.io diagrams in page "{1}"\nconfAImpDiagram=Importing diagram "{1}"\nconfAImpDiagramFailed=Importing diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\nconfAImpDiagramError=Error importing diagram "{1}". Cannot fetch or save the diagram. Cannot fix this diagram links.\nconfAUpdateDgrmCCFailed=Updating link to diagram "{1}" failed.\nconfImpDiagramSuccess=Updating diagram "{1}" done successfully.\nconfANoLnksInDrgm=No links to update in: {1}\nconfAUpdateLnkToPg=Updated link to page: "{1}" in diagram: "{2}"\nconfAUpdateLBLnkToPg=Updated lightbox link to page: "{1}" in diagram: "{2}"\nconfAUpdateLnkBase=Updated base URL from: "{1}" to: "{2}" in diagram: "{3}"\nconfAPageIdsImpDone=Page IDs Import finished\nconfAPrcsMacrosInPage=Processing draw.io macros in page "{1}"\nconfAErrFetchPage=Error fetching page "{1}"\nconfAFixingMacro=Fixing macro of diagram "{1}"\nconfAErrReadingExpFile=Error reading export file\nconfAPrcsDiagInPageDone=Processing draw.io diagrams in page "{1}" finished\nconfAFixingMacroSkipped=Fixing macro of diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\npageIdsExpTrg=Export target\nconfALucidDiagImgImported={2} diagram "{1}" image extracted successfully\nconfASavingLucidDiagImgFailed=Extracting {2} diagram "{1}" image failed\nconfGetInfoFailed=Fetching file info from {1} failed.\nconfCheckCacheFailed=Cannot get cached file info.\nconfReadFileErr=Cannot read "{1}" file from {2}.\nconfSaveCacheFailed=Unexpected error. Cannot save cached file\norgChartType=Org Chart Type\nlinear=Linear\nhanger2=Hanger 2\nhanger4=Hanger 4\nfishbone1=Fishbone 1\nfishbone2=Fishbone 2\n1ColumnLeft=Single Column Left\n1ColumnRight=Single Column Right\nsmart=Smart\nparentChildSpacing=Parent Child Spacing\nsiblingSpacing=Sibling Spacing\nconfNoPermErr=Sorry, you don\'t have enough permissions to view this embedded diagram from page {1}\ncopyAsImage=Copy as Image\ncopyAsText=Copy as Text\nlucidImport=Lucidchart Import\nlucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.\ninstallFirst=Please install {1} first\ndrawioChromeExt=draw.io Chrome Extension\nloginFirstThen=Please login to {1} first, then {2}\nerrFetchDocList=Error: Couldn\'t fetch documents list\nbuiltinPlugins=Built-in Plugins\nextPlugins=External Plugins\nbackupFound=Backup file found\nchromeOnly=This feature only works in Google Chrome\nmsgDeleted=This message has been deleted\nconfAErrFetchDrawList=Error fetching diagrams list. Some diagrams are skipped.\nconfAErrCheckDrawDiag=Cannot check diagram {1}\nconfAErrFetchPageList=Error fetching pages list\nconfADiagImportIncom={1} diagram "{2}" is imported partially and may have missing shapes\ninvalidSel=Invalid selection\ndiagNameEmptyErr=Diagram name cannot be empty\nopenDiagram=Open Diagram\nnewDiagram=New diagram\neditable=Editable\nconfAReimportStarted=Re-import {1} diagrams started...\nspaceFilter=Filter by spaces\ncurViewState=Current Viewer State\npageLayers=Page and Layers\ncustomize=Customize\nfirstPage=First Page (All Layers)\ncurEditorState=Current Editor State\nnoAnchorsFound=No anchors found\nattachment=Attachment\ncurDiagram=Current Diagram\nrecentDiags=Recent Diagrams\ncsvImport=CSV Import\nchooseFile=Choose a file...\nchoose=Choose\ngdriveFname=Google Drive filename\nwidthOfViewer=Width of the viewer (px)\nheightOfViewer=Height of the viewer (px)\nautoSetViewerSize=Automatically set the size of the viewer\nthumbnail=Thumbnail\nprevInDraw=Preview in draw.io\nonedriveFname=OneDrive filename\ndiagFname=Diagram filename\ndiagUrl=Diagram URL\nshowDiag=Show Diagram\ndiagPreview=Diagram Preview\ncsvFileUrl=CSV File URL\ngenerate=Generate\nselectDiag2Insert=Please select a diagram to insert it.\nerrShowingDiag=Unexpected error. Cannot show diagram\nnoRecentDiags=No recent diagrams found\nfetchingRecentFailed=Failed to fetch recent diagrams\nuseSrch2FindDiags=Use the search box to find draw.io diagrams\ncantReadChckPerms=Cannot read the specified diagram. Please check you have read permission on that file.\ncantFetchChckPerms=Cannot fetch diagram info. Please check you have read permission on that file.\nsearchFailed=Searching failed. Please try again later.\nplsTypeStr=Please type a search string.\nunsupportedFileChckUrl=Unsupported file. Please check the specified URL\ndiagNotFoundChckUrl=Diagram not found or cannot be accessed. Please check the specified URL\ncsvNotFoundChckUrl=CSV file not found or cannot be accessed. Please check the specified URL\ncantReadUpload=Cannot read the uploaded diagram\nselect=Select\nerrCantGetIdType=Unexpected Error: Cannot get content id or type.\nerrGAuthWinBlocked=Error: Google Authentication window blocked\nauthDrawAccess=Authorize draw.io to access {1}\nconnTimeout=The connection has timed out\nerrAuthSrvc=Error authenticating to {1}\nplsSelectFile=Please select a file\nmustBgtZ={1} must be greater than zero\ncantLoadPrev=Cannot load file preview.\nerrAccessFile=Error: Access Denied. You do not have permission to access "{1}".\nnoPrevAvail=No preview is available.\npersonalAccNotSup=Personal accounts are not supported.\nerrSavingTryLater=Error occurred during saving, please try again later.\nplsEnterFld=Please enter {1}\ninvalidDiagUrl=Invalid Diagram URL\nunsupportedVsdx=Unsupported vsdx file\nunsupportedImg=Unsupported image file\nunsupportedFormat=Unsupported file format\nplsSelectSingleFile=Please select a single file only\nattCorrupt=Attachment file "{1}" is corrupted\nloadAttFailed=Failed to load attachment "{1}"\nembedDrawDiag=Embed draw.io Diagram\naddDiagram=Add Diagram\nembedDiagram=Embed Diagram\neditOwningPg=Edit owning page\ndeepIndexing=Deep Indexing (Index diagrams that aren\'t used in any page also)\nconfADeepIndexStarted=Deep Indexing Started\nconfADeepIndexDone=Deep Indexing Done\nofficeNoDiagramsSelected=No diagrams found in the selection\nofficeNoDiagramsInDoc=No diagrams found in the document\nofficeNotSupported=This feature is not supported in this host application\nsomeImagesFailed={1} out of {2} failed due to the following errors\nimportingNoUsedDiagrams=Importing {1} Diagrams not used in pages\nimportingDrafts=Importing {1} Diagrams in drafts\nprocessingDrafts=Processing drafts\nupdatingDrafts=Updating drafts\nupdateDrafts=Update drafts\nnotifications=Notifications\ndrawioImp=draw.io Import\nconfALibsImp=Importing draw.io Libraries\nconfALibsImpFailed=Importing {1} library failed\ncontributors=Contributors\ndrawDiagrams=draw.io Diagrams\nerrFileNotFoundOrNoPer=Error: Access Denied. File not found or you do not have permission to access "{1}" on {2}.\nconfACheckPagesWEmbed=Checking pages having embedded draw.io diagrams.\nconfADelBrokenEmbedDiagLnk=Removing broken embedded diagram links\nreplaceWith=Replace with\nreplaceAll=Replace All\nconfASkipDiagModified=Skipped "{1}" as it was modified after initial import\nreplFind=Replace/Find\nmatchesRepl={1} matches replaced\ndraftErrDataLoss=An error occurred while reading the draft file. The diagram cannot be edited now to prevent any possible data loss. Please try again later or contact support.\nibm=IBM\nlinkToDiagramHint=Add a link to this diagram. The diagram can only be edited from the page that owns it.\nlinkToDiagram=Link to Diagram\nchangedBy=Changed By\nlastModifiedOn=Last modified on\nsearchResults=Search Results\nshowAllTemps=Show all templates\nnotionToken=Notion Token\nselectDB=Select Database\nnoDBs=No Databases\ndiagramEdited={1} diagram "{2}" edited\nconfDraftPermissionErr=Draft cannot be written. Do you have attachment write/read permission on this page?\nconfFileTooBigErr=File size is too large. Pease check "Attachment Maximum Size" of "Attachment Settings" in Confluence Configuration.\nowner=Owner\nrepository=Repository\nbranch=Branch\nmeters=Meters\nteamsNoEditingMsg=Editor functionality is only available in Desktop environment (in MS Teams App or a web browser)\ncontactOwner=Contact Owner\nviewerOnlyMsg=You cannot edit the diagrams in the mobile platform, please use the desktop client or a web browser.\nwebsite=Website\ncheck4Updates=Check for updates\nattWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...\nconfPartialPageList=We couldn\'t fetch all pages due to an error in Confluence. Continuing using {1} pages only.\nspellCheck=Spell checker\nnoChange=No Change\nlblToSvg=Convert labels to SVG\ntxtSettings=Text Settings\nLinksLost=Links will be lost\narcSize=Arc Size\neditConnectionPoints=Edit Connection Points\nnotInOffline=Not supported while offline\nnotInDesktop=Not supported in Desktop App\nconfConfigSpaceArchived=draw.io Configuration space (DRAWIOCONFIG) is archived. Please restore it first.\nconfACleanOldVerStarted=Cleaning old diagram draft versions started\nconfACleanOldVerDone=Cleaning old diagram draft versions finished\nconfACleaningFile=Cleaning diagram draft "{1}" old versions\nconfAFileCleaned=Cleaning diagram draft "{1}" done\nconfAFileCleanFailed=Cleaning diagram draft "{1}" failed\nconfACleanOnly=Clean Diagram Drafts Only\nbrush=Brush\nopenDevTools=Open Developer Tools\nautoBkp=Automatic Backup\nconfAIgnoreCollectErr=Ignore collecting current pages errors\ndrafts=Drafts\ndraftSaveInt=Draft save interval [sec] (0 to disable)\npluginsDisabled=External plugins disabled.\nextExpNotConfigured=External image service is not configured\npathFilename=Path/Filename\nconfAHugeInstances=Very Large Instances\nconfAHugeInstancesDesc=If this instance includes 100,000+ pages, it is faster to request the current instance pages list from Atlassian. Please contact our support for more details.\nchoosePageIDsFile=Choose current page IDs csv file\nchooseDrawioPsgesFile=Choose pages with draw.io diagrams csv file\nprivate=Private\ndiagramTooLarge=The diagram is too large, please reduce its size and try again.\nselectAdminUsers=Select Admin Users\nxyzTeam={1} Team\naddTeamTitle=Adding a new draw.io Team\naddTeamInst1=To create a new draw.io Team, you need to create a new Atlassian group with "drawio-" prefix (e.g, a group named "drawio-marketing").\naddTeamInst2=Then, configure which team member can edit/add configuration, templates, and libraries from this page.\ndrawioTeams=draw.io Teams\nmembers=Members\nadminEditors=Admins/Editors\nallowAll=Allow all\nnoTeams=No teams found\nerrorLoadingTeams=Error Loading Teams\nnoTeamMembers=No team members found\nerrLoadTMembers=Error loading team members\nerrCreateTeamPage=Error creating team "{1}" page in "draw.io Configuration" space, please check you have the required permissions.\ngotoConfigPage=Please create the space from draw.io "Configuration" page.\nnoAdminsSelected=No admins/editors selected\nerrCreateConfigFile=Error creating "configuration.json" file, please check you have the required permissions.\nerrSetPageRestr=Error setting page restrictions\nnotAdmin4Team=You are not an admin for this team\nconfigUpdated=Configuration updated, restart the editor if you want to work with last configuration.\noutOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.\nconfAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)\nconfA403ErrFaq=There are ({1}) 403 error(s). The current users must have add (write) permissions on all pages and attachments. Even admins sometimes are not allowed to write to some pages via page restrictions\nconfA404ErrFaq=There are ({1}) 404 error(s). The attachment/page is not found. This is due to improper migration or the diagram file (an attachment of the page) is deleted.\nconfA500ErrFaq=There are ({1}) 500 error(s). An internal server error in Confluence Cloud. Such errors are due to overloading the server and usually fixed by retrying the process.\nconfAOtherErrFaq=There are ({1}) other error(s). Please check the error description. If the description is not clear, please contact our support.\nconfAReplaceBaseUrl=Replace Base URL in diagram links when no page ID mapping is found\ndrawSvgPrev=draw.io SVG preview\ngoogleFonts=Google Fonts\ndiagDupl=Duplicate Diagram Detected\ndiagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We\'ve created an independent copy. Please open the editor again.\ndiagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.\nconfCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?\nconfCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.\nconfALogsPageDesc=This page contains logs of draw.io long running services as attachments\nconfEditOnlyInPageEditor=Can only be edited within Confluence page editor\nconfEvalWarn=Evaluation License - Not for production use\notherUsersEditing=Other user(s) are editing this diagram\nfirstTimeGD=First time to access this file?\ndrawioGDAppNotInstalled=draw.io Google Drive app is not installed, please install it first\nConfDC415Error=Saving drafts is blocked. If you have "Attachment Checker for Confluence" app, please update to the latest version.\nremove=Remove\nselectPgLyr=Select Page and Layers\nerrGenPreview=There was an error generating a diagram preview. Please consult technical support.\nattAccessErr=Diagram attachment access error: cannot display diagram\nwidthIntOrFixed=Width must be a valid integer or of value \'fixed\'\ndupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected\ncantDupPickDiffName=Could not duplicate diagram. Please choose a different name.\nownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.\ncantDupTryLater=Could not duplicate diagram. Please try again later.\ncantEditLnkd=Cannot edit linked diagram\ndiagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?\ndiagInTemps=draw.io diagrams in templates\ndiagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.\nconfDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.\nconfConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.\n');Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;
Graph.prototype.defaultThemes.darkTheme=Graph.prototype.defaultThemes["default-style2"];Editor.currentTheme="";window.uiTheme="";GraphViewer=function(b,e,g){this.init(b,e,g)};mxUtils.extend(GraphViewer,mxEventSource);GraphViewer.prototype.editBlankUrl="1"==urlParams.dev?"https://test.draw.io/":"https://app.diagrams.net/";GraphViewer.prototype.imageBaseUrl=window.DRAWIO_BASE_URL+"/";GraphViewer.prototype.toolbarHeight="BackCompat"==document.compatMode?24:26;GraphViewer.prototype.lightboxChrome=!0;GraphViewer.prototype.lightboxZIndex=999;GraphViewer.prototype.toolbarZIndex=999;
GraphViewer.prototype.autoFit=!1;GraphViewer.prototype.autoCrop=!1;GraphViewer.prototype.autoOrigin=!0;GraphViewer.prototype.center=!1;GraphViewer.prototype.forceCenter=!1;GraphViewer.prototype.allowZoomIn=!1;GraphViewer.prototype.allowZoomOut=!0;GraphViewer.prototype.showTitleAsTooltip=!1;GraphViewer.prototype.checkVisibleState=!0;GraphViewer.prototype.minHeight=28;GraphViewer.prototype.minWidth=100;GraphViewer.prototype.responsive=!1;GraphViewer.prototype.darkMode=null;
GraphViewer.prototype.init=function(b,e,g){GraphViewer.initCss();this.graphConfig=null!=g?g:{};this.autoFit=null!=this.graphConfig["auto-fit"]?this.graphConfig["auto-fit"]:this.autoFit;this.autoCrop=null!=this.graphConfig["auto-crop"]?this.graphConfig["auto-crop"]:this.autoCrop;this.autoOrigin=null!=this.graphConfig["auto-origin"]?this.graphConfig["auto-origin"]:this.autoOrigin;this.allowZoomOut=null!=this.graphConfig["allow-zoom-out"]?this.graphConfig["allow-zoom-out"]:this.allowZoomOut;this.allowZoomIn=
@@ -4201,13 +4201,13 @@ this.toolbarItems=null!=this.graphConfig.toolbar?this.graphConfig.toolbar.split(
null!=this.initialWidth?""==this.initialWidth:!0;this.currentPage=parseInt(this.graphConfig.page)||0;this.responsive=(null!=this.graphConfig.responsive?this.graphConfig.responsive:this.responsive)&&!this.zoomEnabled&&!mxClient.NO_FO&&!mxClient.IS_SF;this.pageId=this.graphConfig.pageId;this.editor=null;var m=this;"inline"==this.graphConfig["toolbar-position"]&&(this.minHeight+=this.toolbarHeight);if(null!=e&&(this.xmlDocument=e.ownerDocument,this.xmlNode=e,this.xml=mxUtils.getXml(e),null!=b)){var u=
mxUtils.bind(this,function(){this.graph=new Graph(b);this.graph.enableFlowAnimation=!0;this.installDarkModeListener();if(this.responsive&&this.graph.dialect==mxConstants.DIALECT_SVG){var H=this.graph.view.getDrawPane().ownerSVGElement;null!=this.graphConfig.border?H.style.padding=this.graphConfig.border+"px":""==b.style.padding&&(H.style.padding="8px");H.style.forcedColorAdjust="none";H.style.boxSizing="border-box";H.style.overflow="visible";this.graph.fit=function(){};this.graph.sizeDidChange=function(){var t=
this.view.graphBounds,z=this.view.translate;H.setAttribute("viewBox",t.x+z.x-this.panDx+" "+(t.y+z.y-this.panDy)+" "+(t.width+1)+" "+(t.height+1));this.container.style.backgroundColor=H.style.backgroundColor;this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",t))}}this.graphConfig.move&&(this.graph.isMoveCellsEvent=function(t){return!0});this.lightboxClickEnabled&&(b.style.cursor="pointer");this.editor=new Editor(!0,null,null,this.graph);this.editor.editBlankUrl=this.editBlankUrl;this.graph.lightbox=
-!0;this.graph.centerZoom=!1;this.graph.autoExtend=!1;this.graph.autoScroll=!1;this.graph.setEnabled(!1);1==this.graphConfig["toolbar-nohide"]&&(this.editor.defaultGraphOverflow="visible");var S=this.editor.extractGraphModel(this.xmlNode,!0);if(null!=S&&S!=e)try{this.xml=mxUtils.getXml(S),this.xmlNode=S,this.xmlDocument=S.ownerDocument}catch(t){}this.graph.getImageFromBundles=function(t){return m.getImageUrl(t)};mxClient.IS_SVG&&this.graph.addSvgShadow(this.graph.view.canvas.ownerSVGElement,null,!0);
-if("mxfile"==this.xmlNode.nodeName){var G=this.xmlNode.getElementsByTagName("diagram");if(0<G.length){if(null!=this.pageId)for(S=0;S<G.length;S++)if(this.pageId==G[S].getAttribute("id")){this.currentPage=S;break}var P=this.graph.getGlobalVariable;this.graph.getGlobalVariable=function(t){var z=G[m.currentPage];return"page"==t?z.getAttribute("name")||"Page-"+(m.currentPage+1):"pagenumber"==t?m.currentPage+1:"pagecount"==t?G.length:P.apply(this,arguments)}}}this.diagrams=[];var R=null;this.selectPage=
-function(t){this.handlingResize||(this.currentPage=mxUtils.mod(t,this.diagrams.length),this.updateGraphXml(Editor.parseDiagramNode(this.diagrams[this.currentPage])))};this.selectPageById=function(t){t=this.getIndexById(t);var z=0<=t;z&&this.selectPage(t);return z};S=mxUtils.bind(this,function(){if(null==this.xmlNode||"mxfile"!=this.xmlNode.nodeName)this.diagrams=[];this.xmlNode!=R&&(this.diagrams=this.xmlNode.getElementsByTagName("diagram"),R=this.xmlNode)});var c=this.graph.setBackgroundImage;this.graph.setBackgroundImage=
+!0;this.graph.centerZoom=!1;this.graph.autoExtend=!1;this.graph.autoScroll=!1;this.graph.setEnabled(!1);1==this.graphConfig["toolbar-nohide"]&&(this.editor.defaultGraphOverflow="visible");var T=this.editor.extractGraphModel(this.xmlNode,!0);if(null!=T&&T!=e)try{this.xml=mxUtils.getXml(T),this.xmlNode=T,this.xmlDocument=T.ownerDocument}catch(t){}this.graph.getImageFromBundles=function(t){return m.getImageUrl(t)};mxClient.IS_SVG&&this.graph.addSvgShadow(this.graph.view.canvas.ownerSVGElement,null,!0);
+if("mxfile"==this.xmlNode.nodeName){var G=this.xmlNode.getElementsByTagName("diagram");if(0<G.length){if(null!=this.pageId)for(T=0;T<G.length;T++)if(this.pageId==G[T].getAttribute("id")){this.currentPage=T;break}var P=this.graph.getGlobalVariable;this.graph.getGlobalVariable=function(t){var z=G[m.currentPage];return"page"==t?z.getAttribute("name")||"Page-"+(m.currentPage+1):"pagenumber"==t?m.currentPage+1:"pagecount"==t?G.length:P.apply(this,arguments)}}}this.diagrams=[];var R=null;this.selectPage=
+function(t){this.handlingResize||(this.currentPage=mxUtils.mod(t,this.diagrams.length),this.updateGraphXml(Editor.parseDiagramNode(this.diagrams[this.currentPage])))};this.selectPageById=function(t){t=this.getIndexById(t);var z=0<=t;z&&this.selectPage(t);return z};T=mxUtils.bind(this,function(){if(null==this.xmlNode||"mxfile"!=this.xmlNode.nodeName)this.diagrams=[];this.xmlNode!=R&&(this.diagrams=this.xmlNode.getElementsByTagName("diagram"),R=this.xmlNode)});var c=this.graph.setBackgroundImage;this.graph.setBackgroundImage=
function(t){if(null!=t&&Graph.isPageLink(t.src)){var z=t.src,C=z.indexOf(",");0<C&&(C=m.getIndexById(z.substring(C+1)),0<=C&&(t=m.getImageForGraphModel(Editor.parseDiagramNode(m.diagrams[C])),t.originalSrc=z))}c.apply(this,arguments)};var f=this.graph.getGraphBounds;this.graph.getGraphBounds=function(t){var z=f.apply(this,arguments);t=this.backgroundImage;if(null!=t){var C=this.view.translate,F=this.view.scale;z=mxRectangle.fromRectangle(z);z.add(new mxRectangle((C.x+t.x)*F,(C.y+t.y)*F,t.width*F,
-t.height*F))}return z};this.addListener("xmlNodeChanged",S);S();urlParams.page=m.currentPage;S=null;this.graph.getModel().beginUpdate();try{urlParams.nav=0!=this.graphConfig.nav?"1":"0",this.editor.setGraphXml(this.xmlNode),this.graph.view.scale=this.graphConfig.zoom||1,S=this.setLayersVisible(),this.fireEvent(new mxEventObject("graphInitialized")),this.responsive||(this.graph.border=null!=this.graphConfig.border?this.graphConfig.border:8),this.installBackgroundColorHandler(),GraphViewer.viewerInitialized(this)}finally{this.graph.getModel().endUpdate()}this.responsive||
+t.height*F))}return z};this.addListener("xmlNodeChanged",T);T();urlParams.page=m.currentPage;T=null;this.graph.getModel().beginUpdate();try{urlParams.nav=0!=this.graphConfig.nav?"1":"0",this.editor.setGraphXml(this.xmlNode),this.graph.view.scale=this.graphConfig.zoom||1,T=this.setLayersVisible(),this.fireEvent(new mxEventObject("graphInitialized")),this.responsive||(this.graph.border=null!=this.graphConfig.border?this.graphConfig.border:8),this.installBackgroundColorHandler(),GraphViewer.viewerInitialized(this)}finally{this.graph.getModel().endUpdate()}this.responsive||
(this.graph.panningHandler.isForcePanningEvent=function(t){return!mxEvent.isPopupTrigger(t.getEvent())&&"auto"==this.graph.container.style.overflow},this.graph.panningHandler.useLeftButtonForPanning=!0,this.graph.panningHandler.ignoreCell=!0,this.graph.panningHandler.usePopupTrigger=!1,this.graph.panningHandler.pinchEnabled=!1);this.graph.setPanning(!1);null!=this.graphConfig.toolbar?this.addToolbar():null!=this.graphConfig.title&&this.showTitleAsTooltip&&b.setAttribute("title",this.graphConfig.titleTooltip||
-this.graphConfig.title);this.responsive||this.addSizeHandler();!this.showLayers(this.graph)||this.forceCenter||this.layersEnabled&&!this.autoCrop||this.crop();this.addClickHandler(this.graph);this.graph.setTooltips(0!=this.graphConfig.tooltips);this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale};null!=S&&this.setLayersVisible(S);this.graph.customLinkClicked=function(t,z){try{if(Graph.isPageLink(t)){var C=t.indexOf(",");m.selectPageById(t.substring(C+
+this.graphConfig.title);this.responsive||this.addSizeHandler();!this.showLayers(this.graph)||this.forceCenter||this.layersEnabled&&!this.autoCrop||this.crop();this.addClickHandler(this.graph);this.graph.setTooltips(0!=this.graphConfig.tooltips);this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale};null!=T&&this.setLayersVisible(T);this.graph.customLinkClicked=function(t,z){try{if(Graph.isPageLink(t)){var C=t.indexOf(",");m.selectPageById(t.substring(C+
1))||alert(mxResources.get("pageNotFound")||"Page not found")}else{var F=this.getGraphBounds();this.handleCustomLink(t,z);F.equals(this.getGraphBounds())||m.crop()}}catch(N){alert(N.message)}return!0};var l=this.graph.foldTreeCell;this.graph.foldTreeCell=mxUtils.bind(this,function(){this.treeCellFolded=!0;return l.apply(this.graph,arguments)});this.fireEvent(new mxEventObject("render"))});g=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(this.checkVisibleState&&
0==b.offsetWidth&&null==this.getAncestorDetails(b)&&"undefined"!==typeof g){var p=this.getObservableParent(b),B=new g(mxUtils.bind(this,function(H){0<b.offsetWidth&&(B.disconnect(),u())}));B.observe(p,{attributes:!0})}else u()}};
GraphViewer.prototype.installBackgroundColorHandler=function(){var b=this.graph;if(null!=b){null!=GraphViewer.shapeBackgroundColor&&(b.shapeBackgroundColor=GraphViewer.shapeBackgroundColor);b.defaultPageBackgroundColor="transparent";b.diagramBackgroundColor="transparent";b.transparentBackground=!1;var e=b.background,g=mxUtils.bind(this,function(m){"none"==b.getAdaptiveColors()&&null==e&&(this.isDarkMode()?b.background="#ffffff":b.background=null,m&&b.view.validateBackground())});this.addListener("graphChanged",
@@ -4220,23 +4220,23 @@ GraphViewer.prototype.setFileNode=function(b){null==this.xmlNode&&(this.xmlDocum
GraphViewer.prototype.setLayersVisible=function(b){var e=!0;if(!this.autoOrigin){var g=[],m=this.graph.getModel();m.beginUpdate();try{for(var u=0;u<m.getChildCount(m.root);u++){var p=m.getChildAt(m.root,u);e=e&&m.isVisible(p);g.push(m.isVisible(p));m.setVisible(p,null!=b?b[u]:!0)}}finally{m.endUpdate()}}return e?null:g};
GraphViewer.prototype.setGraphXml=function(b){if(null!=this.graph){this.graph.view.translate=new mxPoint;this.graph.view.scale=1;var e=null;this.graph.getModel().beginUpdate();try{this.graph.getModel().clear(),this.editor.setGraphXml(b),e=this.setLayersVisible(!0)}finally{this.graph.getModel().endUpdate()}this.responsive||(this.widthIsEmpty?(this.graph.container.style.width="",this.graph.container.style.height=""):this.graph.container.style.width=this.initialWidth,this.positionGraph());this.graph.initialViewState=
{translate:this.graph.view.translate.clone(),scale:this.graph.view.scale};e&&this.setLayersVisible(e)}};GraphViewer.prototype.isDarkMode=function(){return"dark"==this.darkMode||"auto"==this.darkMode&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches};
-GraphViewer.prototype.addSizeHandler=function(){var b=this.graph.container,e=this.graph.getGraphBounds(),g=!1;b.style.overflow=1!=this.graphConfig["toolbar-nohide"]?"hidden":"visible";var m=mxUtils.bind(this,function(){if(!g){g=!0;var H=this.graph.getGraphBounds();b.style.overflow=1!=this.graphConfig["toolbar-nohide"]?H.width+2*this.graph.border>b.offsetWidth-2?"auto":"hidden":"visible";if(null!=this.toolbar&&1!=this.graphConfig["toolbar-nohide"]){H=b.getBoundingClientRect();var S=mxUtils.getScrollOrigin(document.body);
-S="relative"===document.body.style.position?document.body.getBoundingClientRect():{left:-S.x,top:-S.y};H={left:H.left-S.left,top:H.top-S.top,bottom:H.bottom-S.top,right:H.right-S.left};this.toolbar.style.left=H.left+"px";"bottom"==this.graphConfig["toolbar-position"]?this.toolbar.style.top=H.bottom-1+"px":"inline"!=this.graphConfig["toolbar-position"]?(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px",this.toolbar.style.top=H.top+1+"px"):this.toolbar.style.top=H.top+"px"}else null!=
-this.toolbar&&(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px");this.treeCellFolded&&(this.treeCellFolded=!1,this.positionGraph(this.graph.view.translate),this.graph.initialViewState.translate=this.graph.view.translate.clone());g=!1}}),u=null;this.handlingResize=!1;this.fitGraph=mxUtils.bind(this,function(H){var S=b.offsetWidth;S==u||this.handlingResize||(this.handlingResize=!0,"auto"==b.style.overflow&&(b.style.overflow="hidden"),this.graph.maxFitScale=null!=H?H:this.graphConfig.zoom||
-(this.allowZoomIn?null:1),this.graph.fit(null,null,null,null,null,!0),(this.center||0==this.graphConfig.resize&&""!=b.style.height)&&this.graph.center(),this.graph.maxFitScale=null,0==this.graphConfig.resize&&""!=b.style.height||this.updateContainerHeight(b,Math.max(this.minHeight,this.graph.getGraphBounds().height+2*this.graph.border+1)),this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale},u=S,window.setTimeout(mxUtils.bind(this,function(){this.handlingResize=
+GraphViewer.prototype.addSizeHandler=function(){var b=this.graph.container,e=this.graph.getGraphBounds(),g=!1;b.style.overflow=1!=this.graphConfig["toolbar-nohide"]?"hidden":"visible";var m=mxUtils.bind(this,function(){if(!g){g=!0;var H=this.graph.getGraphBounds();b.style.overflow=1!=this.graphConfig["toolbar-nohide"]?H.width+2*this.graph.border>b.offsetWidth-2?"auto":"hidden":"visible";if(null!=this.toolbar&&1!=this.graphConfig["toolbar-nohide"]){H=b.getBoundingClientRect();var T=mxUtils.getScrollOrigin(document.body);
+T="relative"===document.body.style.position?document.body.getBoundingClientRect():{left:-T.x,top:-T.y};H={left:H.left-T.left,top:H.top-T.top,bottom:H.bottom-T.top,right:H.right-T.left};this.toolbar.style.left=H.left+"px";"bottom"==this.graphConfig["toolbar-position"]?this.toolbar.style.top=H.bottom-1+"px":"inline"!=this.graphConfig["toolbar-position"]?(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px",this.toolbar.style.top=H.top+1+"px"):this.toolbar.style.top=H.top+"px"}else null!=
+this.toolbar&&(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px");this.treeCellFolded&&(this.treeCellFolded=!1,this.positionGraph(this.graph.view.translate),this.graph.initialViewState.translate=this.graph.view.translate.clone());g=!1}}),u=null;this.handlingResize=!1;this.fitGraph=mxUtils.bind(this,function(H){var T=b.offsetWidth;T==u||this.handlingResize||(this.handlingResize=!0,"auto"==b.style.overflow&&(b.style.overflow="hidden"),this.graph.maxFitScale=null!=H?H:this.graphConfig.zoom||
+(this.allowZoomIn?null:1),this.graph.fit(null,null,null,null,null,!0),(this.center||0==this.graphConfig.resize&&""!=b.style.height)&&this.graph.center(),this.graph.maxFitScale=null,0==this.graphConfig.resize&&""!=b.style.height||this.updateContainerHeight(b,Math.max(this.minHeight,this.graph.getGraphBounds().height+2*this.graph.border+1)),this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale},u=T,window.setTimeout(mxUtils.bind(this,function(){this.handlingResize=
!1}),0))});GraphViewer.useResizeSensor&&(9>=document.documentMode?(mxEvent.addListener(window,"resize",m),this.graph.addListener("size",m)):new ResizeSensor(this.graph.container,m));if(this.graphConfig.resize||(this.zoomEnabled||!this.autoFit)&&0!=this.graphConfig.resize)this.graph.minimumContainerSize=new mxRectangle(0,0,this.minWidth,this.minHeight),this.graph.resizeContainer=!0;else if(!this.widthIsEmpty||""!=b.style.height&&this.autoFit||this.updateContainerWidth(b,e.width+2*this.graph.border),
0==this.graphConfig.resize&&""!=b.style.height||this.updateContainerHeight(b,Math.max(this.minHeight,e.height+2*this.graph.border+1)),!this.zoomEnabled&&this.autoFit){var p=u=null;m=mxUtils.bind(this,function(){window.clearTimeout(p);this.handlingResize||(p=window.setTimeout(mxUtils.bind(this,this.fitGraph),100))});GraphViewer.useResizeSensor&&(9>=document.documentMode?mxEvent.addListener(window,"resize",m):new ResizeSensor(this.graph.container,m))}else 9>=document.documentMode||this.graph.addListener("size",
-m);var B=mxUtils.bind(this,function(H){var S=b.style.minWidth;this.widthIsEmpty&&(b.style.minWidth="100%");var G=null!=this.graphConfig["max-height"]?this.graphConfig["max-height"]:""!=b.style.height&&this.autoFit?b.offsetHeight:void 0;0<b.offsetWidth&&null==H&&this.allowZoomOut&&(this.allowZoomIn||e.width+2*this.graph.border>b.offsetWidth||e.height+2*this.graph.border>G)?(H=null,null!=G&&e.height+2*this.graph.border>G-2&&(H=(G-2*this.graph.border-2)/e.height),this.fitGraph(H)):this.widthIsEmpty||
-null!=H||0!=this.graphConfig.resize||""==b.style.height?(H=null!=H?H:new mxPoint,this.graph.view.setTranslate(Math.floor(this.graph.border-e.x/this.graph.view.scale)+H.x,Math.floor(this.graph.border-e.y/this.graph.view.scale)+H.y),u=b.offsetWidth):this.graph.center((!this.widthIsEmpty||e.width<this.minWidth)&&1!=this.graphConfig.resize);b.style.minWidth=S});8==document.documentMode?window.setTimeout(B,0):B();this.positionGraph=function(H){e=this.graph.getGraphBounds();u=null;B(H)}};
+m);var B=mxUtils.bind(this,function(H){var T=b.style.minWidth;this.widthIsEmpty&&(b.style.minWidth="100%");var G=null!=this.graphConfig["max-height"]?this.graphConfig["max-height"]:""!=b.style.height&&this.autoFit?b.offsetHeight:void 0;0<b.offsetWidth&&null==H&&this.allowZoomOut&&(this.allowZoomIn||e.width+2*this.graph.border>b.offsetWidth||e.height+2*this.graph.border>G)?(H=null,null!=G&&e.height+2*this.graph.border>G-2&&(H=(G-2*this.graph.border-2)/e.height),this.fitGraph(H)):this.widthIsEmpty||
+null!=H||0!=this.graphConfig.resize||""==b.style.height?(H=null!=H?H:new mxPoint,this.graph.view.setTranslate(Math.floor(this.graph.border-e.x/this.graph.view.scale)+H.x,Math.floor(this.graph.border-e.y/this.graph.view.scale)+H.y),u=b.offsetWidth):this.graph.center((!this.widthIsEmpty||e.width<this.minWidth)&&1!=this.graphConfig.resize);b.style.minWidth=T});8==document.documentMode?window.setTimeout(B,0):B();this.positionGraph=function(H){e=this.graph.getGraphBounds();u=null;B(H)}};
GraphViewer.prototype.crop=function(){var b=this.graph,e=b.getGraphBounds(),g=b.border,m=b.view.scale;b.view.setTranslate(null!=e.x?Math.floor(b.view.translate.x-e.x/m+g):g,null!=e.y?Math.floor(b.view.translate.y-e.y/m+g):g)};GraphViewer.prototype.updateContainerWidth=function(b,e){b.style.width=e+"px"};GraphViewer.prototype.updateContainerHeight=function(b,e){if(this.forceCenter||this.zoomEnabled||!this.autoFit||"BackCompat"==document.compatMode||8==document.documentMode)b.style.height=e+"px"};
-GraphViewer.prototype.showLayers=function(b,e){var g=this.graphConfig.layers;g=null!=g&&0<g.length?g.split(" "):[];var m=this.graphConfig.layerIds,u=null!=m&&0<m.length,p=!1;if(0<g.length||u||null!=e){e=null!=e?e.getModel():null;b=b.getModel();b.beginUpdate();try{var B=b.getChildCount(b.root);if(null==e){e=!1;p={};if(u)for(var H=0;H<m.length;H++){var S=b.getCell(m[H]);null!=S&&(e=!0,p[S.id]=!0)}else for(H=0;H<g.length;H++)S=b.getChildAt(b.root,parseInt(g[H])),null!=S&&(e=!0,p[S.id]=!0);for(H=0;e&&
-H<B;H++)S=b.getChildAt(b.root,H),b.setVisible(S,p[S.id]||!1)}else for(H=0;H<B;H++)b.setVisible(b.getChildAt(b.root,H),e.isVisible(e.getChildAt(e.root,H)))}finally{b.endUpdate()}p=!0}return p};
+GraphViewer.prototype.showLayers=function(b,e){var g=this.graphConfig.layers;g=null!=g&&0<g.length?g.split(" "):[];var m=this.graphConfig.layerIds,u=null!=m&&0<m.length,p=!1;if(0<g.length||u||null!=e){e=null!=e?e.getModel():null;b=b.getModel();b.beginUpdate();try{var B=b.getChildCount(b.root);if(null==e){e=!1;p={};if(u)for(var H=0;H<m.length;H++){var T=b.getCell(m[H]);null!=T&&(e=!0,p[T.id]=!0)}else for(H=0;H<g.length;H++)T=b.getChildAt(b.root,parseInt(g[H])),null!=T&&(e=!0,p[T.id]=!0);for(H=0;e&&
+H<B;H++)T=b.getChildAt(b.root,H),b.setVisible(T,p[T.id]||!1)}else for(H=0;H<B;H++)b.setVisible(b.getChildAt(b.root,H),e.isVisible(e.getChildAt(e.root,H)))}finally{b.endUpdate()}p=!0}return p};
GraphViewer.prototype.addToolbar=function(){var b=this.graph.container;"bottom"==this.graphConfig["toolbar-position"]?b.style.marginBottom=this.toolbarHeight+"px":"inline"!=this.graphConfig["toolbar-position"]&&(b.style.marginTop=this.toolbarHeight+"px");var e=b.ownerDocument.createElement("div");e.style.display="flex";e.style.alignItems="center";e.style.position="absolute";e.style.overflow="hidden";e.style.boxSizing="border-box";e.style.whiteSpace="nowrap";e.style.textAlign="left";e.style.zIndex=
this.toolbarZIndex;e.style.backgroundColor="light-dark(#eeeeee, "+GraphViewer.darkBackgroundColor+")";e.style.height=this.toolbarHeight+"px";var g=mxUtils.bind(this,function(){this.isDarkMode()?(e.classList.add("geDarkMode"),e.style.colorScheme="dark"):(e.classList.remove("geDarkMode"),e.style.colorScheme="light")});this.addListener("darkModeChanged",g);this.toolbar=e;g();if("inline"==this.graphConfig["toolbar-position"]){mxUtils.setPrefixedStyle(e.style,"transition","opacity 100ms ease-in-out");
mxUtils.setOpacity(e,30);var m=null,u=null,p=mxUtils.bind(this,function(ca){null!=m&&(window.clearTimeout(m),fadeThead=null);null!=u&&(window.clearTimeout(u),fadeThead2=null);m=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(e,0);m=null;u=window.setTimeout(mxUtils.bind(this,function(){e.style.display="none";u=null}),100)}),ca||200)}),B=mxUtils.bind(this,function(ca){null!=m&&(window.clearTimeout(m),fadeThead=null);null!=u&&(window.clearTimeout(u),fadeThead2=null);e.style.display=
"";mxUtils.setOpacity(e,ca||30)});mxEvent.addListener(this.graph.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(ca){mxEvent.isTouchEvent(ca)||(B(30),p())}));mxEvent.addListener(e,mxClient.IS_POINTER?"pointermove":"mousemove",function(ca){mxEvent.consume(ca)});mxEvent.addListener(e,"mouseenter",mxUtils.bind(this,function(ca){B(100)}));mxEvent.addListener(e,"mousemove",mxUtils.bind(this,function(ca){B(100);mxEvent.consume(ca)}));mxEvent.addListener(e,"mouseleave",
-mxUtils.bind(this,function(ca){mxEvent.isTouchEvent(ca)||B(30)}));var H=this.graph,S=H.getTolerance();H.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(ca,W){this.startX=W.getGraphX();this.startY=W.getGraphY();this.scrollLeft=H.container.scrollLeft;this.scrollTop=H.container.scrollTop},mouseMove:function(ca,W){},mouseUp:function(ca,W){mxEvent.isTouchEvent(W.getEvent())&&Math.abs(this.scrollLeft-H.container.scrollLeft)<S&&Math.abs(this.scrollTop-H.container.scrollTop)<
-S&&Math.abs(this.startX-W.getGraphX())<S&&Math.abs(this.startY-W.getGraphY())<S&&(0<parseFloat(e.style.opacity||0)?p():B(30))}})}g=this.toolbarItems;for(var G=0,P=mxUtils.bind(this,function(ca,W,ba,ha){ca=this.createToolbarButton(ca,W,ba,ha);e.appendChild(ca);G++;return ca}),R=this.graph.getModel(),c=null,f=null,l=null,t=null,z=0;z<g.length;z++){var C=g[z];if("pages"==C){t=b.ownerDocument.createElement("div");t.style.display="inline-flex";t.style.position="relative";t.style.alignItems="center";t.style.padding=
+mxUtils.bind(this,function(ca){mxEvent.isTouchEvent(ca)||B(30)}));var H=this.graph,T=H.getTolerance();H.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(ca,W){this.startX=W.getGraphX();this.startY=W.getGraphY();this.scrollLeft=H.container.scrollLeft;this.scrollTop=H.container.scrollTop},mouseMove:function(ca,W){},mouseUp:function(ca,W){mxEvent.isTouchEvent(W.getEvent())&&Math.abs(this.scrollLeft-H.container.scrollLeft)<T&&Math.abs(this.scrollTop-H.container.scrollTop)<
+T&&Math.abs(this.startX-W.getGraphX())<T&&Math.abs(this.startY-W.getGraphY())<T&&(0<parseFloat(e.style.opacity||0)?p():B(30))}})}g=this.toolbarItems;for(var G=0,P=mxUtils.bind(this,function(ca,W,ba,ha){ca=this.createToolbarButton(ca,W,ba,ha);e.appendChild(ca);G++;return ca}),R=this.graph.getModel(),c=null,f=null,l=null,t=null,z=0;z<g.length;z++){var C=g[z];if("pages"==C){t=b.ownerDocument.createElement("div");t.style.display="inline-flex";t.style.position="relative";t.style.alignItems="center";t.style.padding=
"4px";t.style.fontFamily=GraphViewer.cssFontFamily;t.style.fontSize="12px";t.style.cursor="default";t.style.color="light-dark(#000000, #ffffff)";mxUtils.setOpacity(t,70);var F=P(mxUtils.bind(this,function(){this.selectPage(this.currentPage-1)}),Editor.previousImage,mxResources.get("previousPage")||"Previous Page");F.style.borderRightStyle="none";F.style.paddingLeft="0px";F.style.paddingRight="0px";e.appendChild(t);var N=P(mxUtils.bind(this,function(){this.selectPage(this.currentPage+1)}),Editor.nextImage,
mxResources.get("nextPage")||"Next Page");N.style.paddingLeft="0px";N.style.paddingRight="0px";C=mxUtils.bind(this,function(){t.innerText="";mxUtils.write(t,this.currentPage+1+" / "+this.diagrams.length);t.style.display=1<this.diagrams.length?"inline-flex":"none";F.style.display=t.style.display;N.style.display=t.style.display});this.addListener("graphChanged",C);C()}else if("zoom"==C)this.zoomEnabled&&(P(mxUtils.bind(this,function(){this.graph.zoomOut()}),Editor.zoomOutImage,mxResources.get("zoomOut")||
"Zoom Out"),P(mxUtils.bind(this,function(){this.graph.zoomIn()}),Editor.zoomInImage,mxResources.get("zoomIn")||"Zoom In"),P(mxUtils.bind(this,function(){this.graph.view.scaleAndTranslate(this.graph.initialViewState.scale,this.graph.initialViewState.translate.x,this.graph.initialViewState.translate.y)}),Editor.zoomFitImage,mxResources.get("fit")||"Fit"));else if("layers"==C){if(this.layersEnabled){var K=P(mxUtils.bind(this,function(ca){if(null!=c)c.parentNode.removeChild(c),c=null;else{c=this.graph.createLayersDialog(mxUtils.bind(this,
@@ -4263,7 +4263,7 @@ GraphViewer.prototype.showLocalLightbox=function(b){var e=document.createElement
g.className="geAdaptiveAsset";var m=mxUtils.bind(this,function(){p.setDarkMode(this.isDarkMode())});mxEvent.addListener(g,"click",mxUtils.bind(this,function(){this.removeListener("darkModeChanged",m);p.destroy()}));urlParams.pages="1";urlParams.page=this.currentPage;urlParams["page-id"]=this.graphConfig.pageId;urlParams["layer-ids"]=null!=this.graphConfig.layerIds&&0<this.graphConfig.layerIds.length?this.graphConfig.layerIds.join(" "):null;urlParams.nav=0!=this.graphConfig.nav?"1":"0";urlParams.layers=
this.layersEnabled?"1":"0";urlParams.dark=this.isDarkMode()?"1":"0";this.tagsEnabled&&(urlParams.tags="{}");if(null!=b)try{var u=JSON.parse(decodeURIComponent(urlParams["toolbar-config"]||"{}"));u.noCloseBtn=!0;urlParams["toolbar-config"]=encodeURIComponent(JSON.stringify(u))}catch(f){}if(null==document.documentMode||10<=document.documentMode)Editor.prototype.editButtonLink=this.graphConfig.edit,Editor.prototype.editButtonFunc=this.graphConfig.editFunc;EditorUi.prototype.updateActionStates=function(){};
EditorUi.prototype.addBeforeUnloadListener=function(){};EditorUi.prototype.addChromelessClickHandler=function(){};u=Graph.prototype.shadowId;Graph.prototype.shadowId="lightboxDropShadow";var p=new EditorUi(new Editor(!0),document.createElement("div"),!0);this.addListener("darkModeChanged",m);p.editor.editBlankUrl=this.editBlankUrl;p.editor.graph.shadowId="lightboxDropShadow";Graph.prototype.shadowId=u;p.refresh=function(){};var B=mxUtils.bind(this,function(f){27==f.keyCode&&p.destroy()}),H=this.initialOverflow,
-S=p.destroy;p.destroy=function(){null==b&&(mxEvent.removeListener(document.documentElement,"keydown",B),document.body.removeChild(e),document.body.removeChild(g),document.body.style.overflow=H,GraphViewer.resizeSensorEnabled=!0,S.apply(this,arguments))};var G=p.editor.graph,P=G.container;P.style.overflow="hidden";this.lightboxChrome&&null==b?(P.style.border="1px solid #c0c0c0",P.style.margin="40px",mxEvent.addListener(document.documentElement,"keydown",B)):(e.style.display="none",g.style.display=
+T=p.destroy;p.destroy=function(){null==b&&(mxEvent.removeListener(document.documentElement,"keydown",B),document.body.removeChild(e),document.body.removeChild(g),document.body.style.overflow=H,GraphViewer.resizeSensorEnabled=!0,T.apply(this,arguments))};var G=p.editor.graph,P=G.container;P.style.overflow="hidden";this.lightboxChrome&&null==b?(P.style.border="1px solid #c0c0c0",P.style.margin="40px",mxEvent.addListener(document.documentElement,"keydown",B)):(e.style.display="none",g.style.display=
"none");var R=this;G.getImageFromBundles=function(f){return R.getImageUrl(f)};var c=p.createTemporaryGraph;p.createTemporaryGraph=function(){var f=c.apply(this,arguments);f.getImageFromBundles=function(l){return R.getImageUrl(l)};return f};this.graphConfig.move&&(G.isMoveCellsEvent=function(f){return!0});mxUtils.setPrefixedStyle(P.style,"border-radius","4px");P.style.position="fixed";GraphViewer.resizeSensorEnabled=!1;document.body.style.overflow="hidden";this.addClickHandler(G,p);window.setTimeout(mxUtils.bind(this,
function(){try{mxEvent.addListener(e,"click",function(){p.destroy()}),P.style.outline="none",P.style.zIndex=this.lightboxZIndex,g.style.zIndex=this.lightboxZIndex,null!=b?(b.innerHTML="",b.appendChild(P)):(document.body.appendChild(P),document.body.appendChild(g)),p.setFileData(this.xml),mxUtils.setPrefixedStyle(P.style,"transform","rotateY(0deg)"),p.chromelessToolbar.style.bottom="60px",p.chromelessToolbar.style.zIndex=this.lightboxZIndex,(b||document.body).appendChild(p.chromelessToolbar),p.getEditBlankXml=
mxUtils.bind(this,function(){return this.xml}),this.showLayers(G,this.graph),p.lightboxFit(),p.chromelessResize()}catch(f){p.handleError(f,null,function(){p.destroy()})}}),0);return p};Dialog.prototype.getDocumentSize=function(){return new mxRectangle(0,0,Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0))};
@@ -4282,7 +4282,7 @@ GraphViewer.cachedUrls={};GraphViewer.getUrl=function(b,e,g){if(null!=GraphViewe
(function(){var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(g){return window.setTimeout(g,20)},e=function(g,m){function u(){this.q=[];this.add=function(t){this.q.push(t)};var f,l;this.call=function(){f=0;for(l=this.q.length;f<l;f++)this.q[f].call()}}function p(f,l){return f.currentStyle?f.currentStyle[l]:window.getComputedStyle?window.getComputedStyle(f,null).getPropertyValue(l):f.style[l]}function B(f,l){if(!f.resizedAttached)f.resizedAttached=
new u,f.resizedAttached.add(l);else if(f.resizedAttached){f.resizedAttached.add(l);return}f.resizeSensor=document.createElement("div");f.resizeSensor.className="resize-sensor";f.resizeSensor.style.cssText="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;";f.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;"><div style="position: absolute; left: 0; top: 0; transition: 0s;"></div></div><div class="resize-sensor-shrink" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;"><div style="position: absolute; left: 0; top: 0; transition: 0s; width: 200%; height: 200%"></div></div>';
f.appendChild(f.resizeSensor);"static"==p(f,"position")&&(f.style.position="relative");var t=f.resizeSensor.childNodes[0],z=t.childNodes[0],C=f.resizeSensor.childNodes[1],F=function(){z.style.width="100000px";z.style.height="100000px";t.scrollLeft=1E5;t.scrollTop=1E5;C.scrollLeft=1E5;C.scrollTop=1E5};F();var N=!1,K=function(){f.resizedAttached&&(N&&(f.resizedAttached.call(),N=!1),b(K))};b(K);var J,da,ea,ca;l=function(){if((ea=f.offsetWidth)!=J||(ca=f.offsetHeight)!=da)N=!0,J=ea,da=ca;F()};var W=function(ba,
-ha,la){ba.attachEvent?ba.attachEvent("on"+ha,la):ba.addEventListener(ha,la)};W(t,"scroll",l);W(C,"scroll",l)}var H=function(){GraphViewer.resizeSensorEnabled&&m()};if(GraphViewer.useResizeObserver&&"undefined"!==typeof ResizeObserver){var S=null,G=!1;(new ResizeObserver(function(){G||(null!=S&&window.clearTimeout(S),S=window.setTimeout(function(){G=!0;H();S=null;G=!1},200))})).observe(g)}else{var P=Object.prototype.toString.call(g),R="[object Array]"===P||"[object NodeList]"===P||"[object HTMLCollection]"===
+ha,la){ba.attachEvent?ba.attachEvent("on"+ha,la):ba.addEventListener(ha,la)};W(t,"scroll",l);W(C,"scroll",l)}var H=function(){GraphViewer.resizeSensorEnabled&&m()};if(GraphViewer.useResizeObserver&&"undefined"!==typeof ResizeObserver){var T=null,G=!1;(new ResizeObserver(function(){G||(null!=T&&window.clearTimeout(T),T=window.setTimeout(function(){G=!0;H();T=null;G=!1},200))})).observe(g)}else{var P=Object.prototype.toString.call(g),R="[object Array]"===P||"[object NodeList]"===P||"[object HTMLCollection]"===
P||"undefined"!==typeof jQuery&&g instanceof jQuery||"undefined"!==typeof Elements&&g instanceof Elements;if(R){P=0;for(var c=g.length;P<c;P++)B(g[P],H)}else B(g,H);this.detach=function(){if(R)for(var f=0,l=g.length;f<l;f++)e.detach(g[f]);else e.detach(g)}}};e.detach=function(g){g.resizeSensor&&(g.removeChild(g.resizeSensor),delete g.resizeSensor,delete g.resizedAttached)};window.ResizeSensor=e})();
function mxBpmnShape(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxBpmnShape,mxShape);
mxBpmnShape.prototype.customProperties=[{name:"symbol",dispName:"Event",type:"enum",defVal:"general",enumList:[{val:"general",dispName:"General"},{val:"message",dispName:"Message"},{val:"timer",dispName:"Timer"},{val:"escalation",dispName:"Escalation"},{val:"conditional",dispName:"Conditional"},{val:"link",dispName:"Link"},{val:"error",dispName:"Error"},{val:"cancel",dispName:"Cancel"},{val:"compensation",dispName:"Compensation"},{val:"signal",dispName:"Signal"},{val:"multiple",dispName:"Multiple"},
diff --git a/src/main/webapp/js/viewer.min.js b/src/main/webapp/js/viewer.min.js
index bce2a744b..c763e1ca4 100644
--- a/src/main/webapp/js/viewer.min.js
+++ b/src/main/webapp/js/viewer.min.js
@@ -30,7 +30,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.0.15",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.0.16",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||
@@ -1970,9 +1970,9 @@ Editor.prototype.setModified=function(b){this.modified=b};Editor.prototype.setFi
Editor.prototype.createUndoManager=function(){var b=this.graph,e=new mxUndoManager;this.undoListener=function(m,u){e.undoableEditHappened(u.getProperty("edit"))};var g=mxUtils.bind(this,function(m,u){this.undoListener.apply(this,arguments)});b.getModel().addListener(mxEvent.UNDO,g);b.getView().addListener(mxEvent.UNDO,g);g=function(m,u){m=u.getProperty("edit").changes;m=b.getSelectionCellsForChanges(m);u=!1;if(0<m.length){for(var p=[],B=0;B<m.length;B++)null!=b.view.getState(m[B])&&(p.push(m[B]),
u||(b.scrollCellToVisible(m[B]),u=!0));b.setSelectionCells(p)}};e.addListener(mxEvent.UNDO,g);e.addListener(mxEvent.REDO,g);return e};Editor.prototype.initStencilRegistry=function(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=null)};OpenFile=function(b){this.consumer=this.producer=null;this.done=b;this.args=null};OpenFile.prototype.setConsumer=function(b){this.consumer=b;this.execute()};OpenFile.prototype.setData=function(){this.args=arguments;this.execute()};
OpenFile.prototype.error=function(b){this.cancel(!0);mxUtils.alert(b)};OpenFile.prototype.execute=function(){null!=this.consumer&&null!=this.args&&(this.cancel(!1),this.consumer.apply(this,this.args))};OpenFile.prototype.cancel=function(b){null!=this.done&&this.done(null!=b?b:!0)};
-function Dialog(b,e,g,m,u,p,B,H,S,G,P){this.editorUi=b;var R=S?57:0,c=g,f=m,l=S?0:64,t=Editor.inlineFullscreen||null==b.embedViewport?this.getDocumentSize():mxUtils.clone(b.embedViewport);null==b.embedViewport&&null!=window.innerHeight&&(t.height=window.innerHeight);var z=t.height;t=Math.max(1,Math.round((t.width-g-l)/2));var C=Math.max(1,Math.round((z-m-b.footerHeight)/3));e.style.maxHeight="100%";g=null!=document.body?Math.min(g,document.body.scrollWidth-l):g;m=Math.min(m,z-l);0<b.dialogs.length&&
+function Dialog(b,e,g,m,u,p,B,H,T,G,P){this.editorUi=b;var R=T?57:0,c=g,f=m,l=T?0:64,t=Editor.inlineFullscreen||null==b.embedViewport?this.getDocumentSize():mxUtils.clone(b.embedViewport);null==b.embedViewport&&null!=window.innerHeight&&(t.height=window.innerHeight);var z=t.height;t=Math.max(1,Math.round((t.width-g-l)/2));var C=Math.max(1,Math.round((z-m-b.footerHeight)/3));e.style.maxHeight="100%";g=null!=document.body?Math.min(g,document.body.scrollWidth-l):g;m=Math.min(m,z-l);0<b.dialogs.length&&
(this.zIndex+=2*b.dialogs.length);null==this.bg&&(this.bg=b.createDiv("geBackground"),this.bg.style.position="absolute",this.bg.style.height=z+"px",this.bg.style.right="0px",this.bg.style.zIndex=this.zIndex-2,mxUtils.setOpacity(this.bg,this.bgOpacity));var F=mxUtils.getDocumentScrollOrigin(document);this.bg.style.left=F.x+"px";this.bg.style.top=F.y+"px";t+=F.x;C+=F.y;Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px",C+=b.embedViewport.y,t+=b.embedViewport.x);
-u&&document.body.appendChild(this.bg);var N=b.createDiv(S?"geTransDialog":"geDialog");u=this.getPosition(t,C,g,m);t=u.x;C=u.y;N.style.width=g+"px";N.style.height=m+"px";N.style.left=t+"px";N.style.top=C+"px";N.style.zIndex=this.zIndex;N.appendChild(e);document.body.appendChild(N);!H&&e.clientHeight>N.clientHeight-l&&(e.style.overflowY="auto");e.style.overflowX="hidden";if(p&&(p=document.createElement("img"),p.setAttribute("src",Dialog.prototype.closeImage),p.setAttribute("title",mxResources.get("close")),
+u&&document.body.appendChild(this.bg);var N=b.createDiv(T?"geTransDialog":"geDialog");u=this.getPosition(t,C,g,m);t=u.x;C=u.y;N.style.width=g+"px";N.style.height=m+"px";N.style.left=t+"px";N.style.top=C+"px";N.style.zIndex=this.zIndex;N.appendChild(e);document.body.appendChild(N);!H&&e.clientHeight>N.clientHeight-l&&(e.style.overflowY="auto");e.style.overflowX="hidden";if(p&&(p=document.createElement("img"),p.setAttribute("src",Dialog.prototype.closeImage),p.setAttribute("title",mxResources.get("close")),
p.className="geDialogClose",p.style.top=C+14+"px",p.style.left=t+g+38-R+"px",p.style.zIndex=this.zIndex,mxEvent.addListener(p,"click",mxUtils.bind(this,function(){b.hideDialog(!0)})),document.body.appendChild(p),this.dialogImg=p,!P)){var K=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(J){K=!0}),null,mxUtils.bind(this,function(J){K&&(b.hideDialog(!0),K=!1)}))}this.resizeListener=mxUtils.bind(this,function(){if(null!=G){var J=G();null!=J&&(c=g=J.w,f=m=J.h)}J=Editor.inlineFullscreen||
null==b.embedViewport?this.getDocumentSize():mxUtils.clone(b.embedViewport);z=J.height;this.bg.style.height=z+"px";Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px");g=null!=document.body?Math.min(c,document.body.scrollWidth-l):c;m=Math.min(f,z-l);J=Math.max(1,Math.round((J.width-g-l)/2));var da=Math.max(1,Math.round((z-m-b.footerHeight)/3));da=this.getPosition(J,da,g,m);J=da.x;da=da.y;var ea=mxUtils.getDocumentScrollOrigin(document);J+=ea.x;
da+=ea.y;Editor.inlineFullscreen||null==b.embedViewport||(da+=b.embedViewport.y,J+=b.embedViewport.x);N.style.left=J+"px";N.style.top=da+"px";N.style.width=g+"px";N.style.height=m+"px";!H&&e.clientHeight>N.clientHeight-l&&(e.style.overflowY="auto");null!=this.dialogImg&&(this.dialogImg.style.top=da+14+"px",this.dialogImg.style.left=J+g+38-R+"px")});null!=b.embedViewport?b.addListener("embedViewportChanged",this.resizeListener):mxEvent.addListener(window,"resize",this.resizeListener);this.onDialogClose=
@@ -1983,70 +1983,70 @@ Dialog.prototype.clearImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhDQAKA
"/clear.gif";Dialog.prototype.bgOpacity=80;Dialog.prototype.getDocumentSize=function(){return mxUtils.getDocumentSize()};Dialog.prototype.getPosition=function(b,e){return new mxPoint(b,e)};
Dialog.prototype.close=function(b,e){if(null!=this.onDialogClose){if(0==this.onDialogClose(b,e))return!1;this.onDialogClose=null}null!=this.dialogImg&&null!=this.dialogImg.parentNode&&(this.dialogImg.parentNode.removeChild(this.dialogImg),this.dialogImg=null);null!=this.bg&&null!=this.bg.parentNode&&this.bg.parentNode.removeChild(this.bg);null!=this.editorUi.embedViewport?this.editorUi.removeListener(this.resizeListener):mxEvent.removeListener(window,"resize",this.resizeListener);null!=this.container.parentNode&&
this.container.parentNode.removeChild(this.container)};
-var ErrorDialog=function(b,e,g,m,u,p,B,H,S,G,P){S=null!=S?S:!0;var R=document.createElement("div");R.style.textAlign="center";if(null!=e){var c=document.createElement("div");c.style.padding="0px";c.style.margin="0px";c.style.fontSize="18px";c.style.paddingBottom="16px";c.style.marginBottom="10px";c.style.borderBottom="1px solid #c0c0c0";c.style.color="gray";c.style.whiteSpace="nowrap";c.style.textOverflow="ellipsis";c.style.overflow="hidden";mxUtils.write(c,e);c.setAttribute("title",e);R.appendChild(c)}e=
+var ErrorDialog=function(b,e,g,m,u,p,B,H,T,G,P){T=null!=T?T:!0;var R=document.createElement("div");R.style.textAlign="center";if(null!=e){var c=document.createElement("div");c.style.padding="0px";c.style.margin="0px";c.style.fontSize="18px";c.style.paddingBottom="16px";c.style.marginBottom="10px";c.style.borderBottom="1px solid #c0c0c0";c.style.color="gray";c.style.whiteSpace="nowrap";c.style.textOverflow="ellipsis";c.style.overflow="hidden";mxUtils.write(c,e);c.setAttribute("title",e);R.appendChild(c)}e=
document.createElement("div");e.style.lineHeight="1.2em";e.style.padding="6px";"string"===typeof g&&(g=g.replace(/\n/g,"<br/>"));e.innerHTML=Graph.sanitizeHtml(g);R.appendChild(e);g=document.createElement("div");g.style.marginTop="12px";g.style.textAlign="center";null!=p&&(e=mxUtils.button(mxResources.get("tryAgain"),function(){b.hideDialog();p()}),e.className="geBtn",g.appendChild(e),g.style.textAlign="center");null!=G&&(G=mxUtils.button(G,function(){null!=P&&P()}),G.className="geBtn",g.appendChild(G));
-var f=mxUtils.button(m,function(){S&&b.hideDialog();null!=u&&u()});f.className="geBtn";g.appendChild(f);null!=B&&(m=mxUtils.button(B,function(){S&&b.hideDialog();null!=H&&H()}),m.className="geBtn gePrimaryBtn",g.appendChild(m));this.init=function(){f.focus()};R.appendChild(g);this.container=R},PrintDialog=function(b,e,g){this.create(b,e,g)};
+var f=mxUtils.button(m,function(){T&&b.hideDialog();null!=u&&u()});f.className="geBtn";g.appendChild(f);null!=B&&(m=mxUtils.button(B,function(){T&&b.hideDialog();null!=H&&H()}),m.className="geBtn gePrimaryBtn",g.appendChild(m));this.init=function(){f.focus()};R.appendChild(g);this.container=R},PrintDialog=function(b,e,g){this.create(b,e,g)};
PrintDialog.prototype.create=function(b){function e(f){var l=B.checked||G.checked,t=parseInt(R.value)/100;isNaN(t)&&(t=1,R.value="100%");mxClient.IS_SF&&(t*=.75);var z=g.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,C=1/g.pageScale;if(l){var F=B.checked?1:parseInt(P.value);isNaN(F)||(C=mxUtils.getScaleForPageCount(F,g,z))}var N=F=0;z=mxRectangle.fromRectangle(z);z.width=Math.ceil(z.width*t);z.height=Math.ceil(z.height*t);C*=t;!l&&g.pageVisible?(t=g.getPageLayout(),F-=t.x*z.width,N-=t.y*z.height):
-l=!0;l=PrintDialog.createPrintPreview(g,C,z,0,F,N,l);l.open();f&&PrintDialog.printPreview(l)}var g=b.editor.graph,m=document.createElement("table");m.style.width="100%";m.style.height="100%";var u=document.createElement("tbody");var p=document.createElement("tr");var B=document.createElement("input");B.setAttribute("type","checkbox");var H=document.createElement("td");H.setAttribute("colspan","2");H.style.fontSize="10pt";H.appendChild(B);var S=document.createElement("span");mxUtils.write(S," "+mxResources.get("fitPage"));
-H.appendChild(S);mxEvent.addListener(S,"click",function(f){B.checked=!B.checked;G.checked=!B.checked;mxEvent.consume(f)});mxEvent.addListener(B,"change",function(){G.checked=!B.checked});p.appendChild(H);u.appendChild(p);p=p.cloneNode(!1);var G=document.createElement("input");G.setAttribute("type","checkbox");H=document.createElement("td");H.style.fontSize="10pt";H.appendChild(G);S=document.createElement("span");mxUtils.write(S," "+mxResources.get("posterPrint")+":");H.appendChild(S);mxEvent.addListener(S,
+l=!0;l=PrintDialog.createPrintPreview(g,C,z,0,F,N,l);l.open();f&&PrintDialog.printPreview(l)}var g=b.editor.graph,m=document.createElement("table");m.style.width="100%";m.style.height="100%";var u=document.createElement("tbody");var p=document.createElement("tr");var B=document.createElement("input");B.setAttribute("type","checkbox");var H=document.createElement("td");H.setAttribute("colspan","2");H.style.fontSize="10pt";H.appendChild(B);var T=document.createElement("span");mxUtils.write(T," "+mxResources.get("fitPage"));
+H.appendChild(T);mxEvent.addListener(T,"click",function(f){B.checked=!B.checked;G.checked=!B.checked;mxEvent.consume(f)});mxEvent.addListener(B,"change",function(){G.checked=!B.checked});p.appendChild(H);u.appendChild(p);p=p.cloneNode(!1);var G=document.createElement("input");G.setAttribute("type","checkbox");H=document.createElement("td");H.style.fontSize="10pt";H.appendChild(G);T=document.createElement("span");mxUtils.write(T," "+mxResources.get("posterPrint")+":");H.appendChild(T);mxEvent.addListener(T,
"click",function(f){G.checked=!G.checked;B.checked=!G.checked;mxEvent.consume(f)});p.appendChild(H);var P=document.createElement("input");P.setAttribute("value","1");P.setAttribute("type","number");P.setAttribute("min","1");P.setAttribute("size","4");P.setAttribute("disabled","disabled");P.style.width="50px";H=document.createElement("td");H.style.fontSize="10pt";H.appendChild(P);mxUtils.write(H," "+mxResources.get("pages")+" (max)");p.appendChild(H);u.appendChild(p);mxEvent.addListener(G,"change",
function(){G.checked?P.removeAttribute("disabled"):P.setAttribute("disabled","disabled");B.checked=!G.checked});p=p.cloneNode(!1);H=document.createElement("td");mxUtils.write(H,mxResources.get("pageScale")+":");p.appendChild(H);H=document.createElement("td");var R=document.createElement("input");R.setAttribute("value","100 %");R.setAttribute("size","5");R.style.width="50px";H.appendChild(R);p.appendChild(H);u.appendChild(p);p=document.createElement("tr");H=document.createElement("td");H.colSpan=2;
-H.style.paddingTop="20px";H.setAttribute("align","right");S=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});S.className="geBtn";b.editor.cancelFirst&&H.appendChild(S);if(PrintDialog.previewEnabled){var c=mxUtils.button(mxResources.get("preview"),function(){b.hideDialog();e(!1)});c.className="geBtn";H.appendChild(c)}c=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){b.hideDialog();e(!0)});c.className="geBtn gePrimaryBtn";H.appendChild(c);b.editor.cancelFirst||
-H.appendChild(S);p.appendChild(H);u.appendChild(p);m.appendChild(u);this.container=m};PrintDialog.printPreview=function(b){try{null!=b.wnd&&window.setTimeout(function(){b.wnd.focus();b.wnd.print();b.wnd.close()},500)}catch(e){}};
-PrintDialog.createPrintPreview=function(b,e,g,m,u,p,B){e=new mxPrintPreview(b,e,g,m,u,p);e.title=mxResources.get("preview");e.addPageCss=!mxClient.IS_SF;e.printBackgroundImage=!0;e.autoOrigin=B;B=b.background;if(null==B||""==B||B==mxConstants.NONE)B="#ffffff";e.backgroundColor=B;var H=e.isTextLabel;e.isTextLabel=function(G){return"geHint"==!G.className&&H.apply(this,arguments)};var S=e.getLinkForCellState;e.getLinkForCellState=function(G){return b.getAbsoluteUrl(S.apply(this,arguments))};return e};
+H.style.paddingTop="20px";H.setAttribute("align","right");T=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});T.className="geBtn";b.editor.cancelFirst&&H.appendChild(T);if(PrintDialog.previewEnabled){var c=mxUtils.button(mxResources.get("preview"),function(){b.hideDialog();e(!1)});c.className="geBtn";H.appendChild(c)}c=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){b.hideDialog();e(!0)});c.className="geBtn gePrimaryBtn";H.appendChild(c);b.editor.cancelFirst||
+H.appendChild(T);p.appendChild(H);u.appendChild(p);m.appendChild(u);this.container=m};PrintDialog.printPreview=function(b){try{null!=b.wnd&&window.setTimeout(function(){b.wnd.focus();b.wnd.print();b.wnd.close()},500)}catch(e){}};
+PrintDialog.createPrintPreview=function(b,e,g,m,u,p,B){e=new mxPrintPreview(b,e,g,m,u,p);e.title=mxResources.get("preview");e.addPageCss=!mxClient.IS_SF;e.printBackgroundImage=!0;e.autoOrigin=B;B=b.background;if(null==B||""==B||B==mxConstants.NONE)B="#ffffff";e.backgroundColor=B;var H=e.isTextLabel;e.isTextLabel=function(G){return"geHint"==!G.className&&H.apply(this,arguments)};var T=e.getLinkForCellState;e.getLinkForCellState=function(G){return b.getAbsoluteUrl(T.apply(this,arguments))};return e};
PrintDialog.previewEnabled=!0;
var PageSetupDialog=function(b){function e(){var t=R;null!=t&&null!=t.originalSrc&&(t=b.createImageForPageLink(t.originalSrc,null));null!=t&&null!=t.src?(P.style.backgroundImage="url("+t.src+")",P.style.display="inline-block"):(P.style.backgroundImage="",P.style.display="none");P.style.backgroundColor="";null!=c&&c!=mxConstants.NONE&&(P.style.backgroundColor=c,P.style.display="inline-block")}var g=b.editor.graph,m=document.createElement("table");m.style.width="100%";m.style.height="100%";var u=document.createElement("tbody");
var p=document.createElement("tr");var B=document.createElement("td");B.style.verticalAlign="top";B.style.fontSize="10pt";mxUtils.write(B,mxResources.get("paperSize")+":");p.appendChild(B);B=document.createElement("td");B.style.verticalAlign="top";B.style.fontSize="10pt";var H=PageSetupDialog.addPageFormatPanel(B,"pagesetupdialog",g.pageFormat);p.appendChild(B);u.appendChild(p);p=document.createElement("tr");B=document.createElement("td");mxUtils.write(B,mxResources.get("gridSize")+":");p.appendChild(B);
-B=document.createElement("td");B.style.whiteSpace="nowrap";var S=document.createElement("input");S.setAttribute("type","number");S.setAttribute("min","0");S.style.width="40px";S.style.marginLeft="6px";S.value=g.getGridSize();B.appendChild(S);mxEvent.addListener(S,"change",function(){var t=parseInt(S.value);S.value=Math.max(1,isNaN(t)?g.getGridSize():t)});p.appendChild(B);u.appendChild(p);p=document.createElement("tr");B=document.createElement("td");mxUtils.write(B,mxResources.get("background")+":");
+B=document.createElement("td");B.style.whiteSpace="nowrap";var T=document.createElement("input");T.setAttribute("type","number");T.setAttribute("min","0");T.style.width="40px";T.style.marginLeft="6px";T.value=g.getGridSize();B.appendChild(T);mxEvent.addListener(T,"change",function(){var t=parseInt(T.value);T.value=Math.max(1,isNaN(t)?g.getGridSize():t)});p.appendChild(B);u.appendChild(p);p=document.createElement("tr");B=document.createElement("td");mxUtils.write(B,mxResources.get("background")+":");
p.appendChild(B);B=document.createElement("td");var G=document.createElement("button");G.className="geBtn";G.style.margin="0px";mxUtils.write(G,mxResources.get("change")+"...");var P=document.createElement("div");P.style.display="inline-block";P.style.verticalAlign="middle";P.style.backgroundPosition="center center";P.style.backgroundRepeat="no-repeat";P.style.backgroundSize="contain";P.style.border="1px solid lightGray";P.style.borderRadius="4px";P.style.marginRight="14px";P.style.height="32px";
P.style.width="64px";P.style.cursor="pointer";P.style.padding="4px";var R=g.backgroundImage,c=g.background,f=g.shadowVisible,l=function(t){b.showBackgroundImageDialog(function(z,C,F,N){C||(null!=z&&null!=z.src&&Graph.isPageLink(z.src)&&(z={originalSrc:z.src}),R=z,f=N);c=F;e()},R,c,!0);mxEvent.consume(t)};mxEvent.addListener(G,"click",l);mxEvent.addListener(P,"click",l);e();B.appendChild(P);B.appendChild(G);p.appendChild(B);u.appendChild(p);p=document.createElement("tr");B=document.createElement("td");
-B.colSpan=2;B.style.paddingTop="16px";B.setAttribute("align","right");G=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});G.className="geBtn";b.editor.cancelFirst&&B.appendChild(G);l=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();var t=parseInt(S.value);isNaN(t)||g.gridSize===t||g.setGridSize(t);t=new ChangePageSetup(b,c,R,H.get());t.ignoreColor=g.background==c;t.ignoreImage=(null!=g.backgroundImage?g.backgroundImage.src:null)===(null!=R?R.src:null);null!=f&&
+B.colSpan=2;B.style.paddingTop="16px";B.setAttribute("align","right");G=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});G.className="geBtn";b.editor.cancelFirst&&B.appendChild(G);l=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();var t=parseInt(T.value);isNaN(t)||g.gridSize===t||g.setGridSize(t);t=new ChangePageSetup(b,c,R,H.get());t.ignoreColor=g.background==c;t.ignoreImage=(null!=g.backgroundImage?g.backgroundImage.src:null)===(null!=R?R.src:null);null!=f&&
(t.shadowVisible=f);g.pageFormat.width==t.previousFormat.width&&g.pageFormat.height==t.previousFormat.height&&t.ignoreColor&&t.ignoreImage&&t.shadowVisible==g.shadowVisible||g.model.execute(t)});l.className="geBtn gePrimaryBtn";B.appendChild(l);b.editor.cancelFirst||B.appendChild(G);p.appendChild(B);u.appendChild(p);m.appendChild(u);this.container=m};
PageSetupDialog.addPageFormatPanel=function(b,e,g,m){e="format-"+e;var u=document.createElement("input");u.setAttribute("name",e);u.setAttribute("type","radio");u.setAttribute("value","portrait");var p=document.createElement("input");p.setAttribute("name",e);p.setAttribute("type","radio");p.setAttribute("value","landscape");var B=document.createElement("select");B.style.marginBottom="4px";B.style.borderRadius="4px";B.style.borderWidth="1px";B.style.borderStyle="solid";B.style.boxSizing="border-box";
-B.style.padding="2px";B.style.width="210px";var H=document.createElement("div");H.style.whiteSpace="nowrap";H.style.marginLeft="4px";H.style.width="210px";H.style.height="24px";u.style.marginRight="6px";H.appendChild(u);e=document.createElement("span");e.style.maxWidth="100px";mxUtils.write(e,mxResources.get("portrait"));H.appendChild(e);p.style.marginLeft="10px";p.style.marginRight="6px";H.appendChild(p);var S=document.createElement("span");S.style.width="100px";mxUtils.write(S,mxResources.get("landscape"));
-H.appendChild(S);var G=document.createElement("div");G.style.whiteSpace="nowrap";G.style.marginLeft="4px";G.style.fontSize="12px";G.style.width="210px";G.style.height="24px";var P=document.createElement("input");P.setAttribute("size","7");P.setAttribute("title",mxResources.get("width"));P.style.textAlign="right";G.appendChild(P);mxUtils.write(G," x ");var R=document.createElement("input");R.setAttribute("size","7");R.setAttribute("title",mxResources.get("height"));R.style.textAlign="right";G.appendChild(R);
+B.style.padding="2px";B.style.width="210px";var H=document.createElement("div");H.style.whiteSpace="nowrap";H.style.marginLeft="4px";H.style.width="210px";H.style.height="24px";u.style.marginRight="6px";H.appendChild(u);e=document.createElement("span");e.style.maxWidth="100px";mxUtils.write(e,mxResources.get("portrait"));H.appendChild(e);p.style.marginLeft="10px";p.style.marginRight="6px";H.appendChild(p);var T=document.createElement("span");T.style.width="100px";mxUtils.write(T,mxResources.get("landscape"));
+H.appendChild(T);var G=document.createElement("div");G.style.whiteSpace="nowrap";G.style.marginLeft="4px";G.style.fontSize="12px";G.style.width="210px";G.style.height="24px";var P=document.createElement("input");P.setAttribute("size","7");P.setAttribute("title",mxResources.get("width"));P.style.textAlign="right";G.appendChild(P);mxUtils.write(G," x ");var R=document.createElement("input");R.setAttribute("size","7");R.setAttribute("title",mxResources.get("height"));R.style.textAlign="right";G.appendChild(R);
var c=document.createElement("select");c.style.marginLeft="4px";c.style.maxWidth="78px";c.style.width="78px";for(var f=[{label:mxResources.get("points"),unit:mxConstants.POINTS},{label:mxResources.get("inches"),unit:mxConstants.INCHES},{label:mxResources.get("millimeters"),unit:mxConstants.MILLIMETERS}],l=0;l<f.length;l++){var t=document.createElement("option");t.setAttribute("value",f[l].unit);mxUtils.write(t,f[l].label);c.appendChild(t)}c.value=Editor.pageSizeUnit;G.appendChild(c);H.style.display=
"none";G.style.display="none";var z={},C=PageSetupDialog.getFormats();for(l=0;l<C.length;l++)f=C[l],z[f.key]=f,t=document.createElement("option"),t.setAttribute("value",f.key),mxUtils.write(t,f.title),B.appendChild(t);var F=function(){B.value="custom";for(var K=0;K<C.length;K++){var J=C[K];null!=J.format&&("a4"==J.key?826==g.width?(g=mxRectangle.fromRectangle(g),g.width=827):826==g.height&&(g=mxRectangle.fromRectangle(g),g.height=827):"a5"==J.key&&(584==g.width?(g=mxRectangle.fromRectangle(g),g.width=
583):584==g.height&&(g=mxRectangle.fromRectangle(g),g.height=583)),g.width==J.format.width&&g.height==J.format.height?(B.value=J.key,u.setAttribute("checked","checked"),u.defaultChecked=!0,u.checked=!0,p.removeAttribute("checked"),p.defaultChecked=!1,p.checked=!1,detected=!0):g.width==J.format.height&&g.height==J.format.width&&(B.value=J.key,u.removeAttribute("checked"),u.defaultChecked=!1,u.checked=!1,p.setAttribute("checked","checked"),p.defaultChecked=!0,detected=p.checked=!0))}"custom"==B.value?
(P.value=Editor.toUnit(g.width,c.value),R.value=Editor.toUnit(g.height,c.value),u.setAttribute("checked","checked"),B.value="custom",H.style.display="none",G.style.display=""):(H.style.display="",G.style.display="none")};F();b.appendChild(B);mxUtils.br(b);b.appendChild(H);b.appendChild(G);var N=function(K,J){K=z[B.value];null!=K.format?(P.value=Editor.toUnit(p.checked?K.format.height:K.format.width,c.value),R.value=Editor.toUnit(p.checked?K.format.width:K.format.height,c.value),G.style.display="none",
H.style.display=""):(H.style.display="none",G.style.display="");K=parseFloat(P.value);if(isNaN(K)||0>=K)P.value=Editor.toUnit(g.width,c.value);K=parseFloat(R.value);if(isNaN(K)||0>=K)R.value=Editor.toUnit(g.height,c.value);K=new mxRectangle(0,0,Math.floor(Editor.fromUnit(parseFloat(P.value),c.value)),Math.floor(Editor.fromUnit(parseFloat(R.value),c.value)));J||K.width==g.width&&K.height==g.height||(g=K,null!=m&&m(g))};mxEvent.addListener(e,"click",function(K){u.checked=!0;N(K);mxEvent.consume(K)});
-mxEvent.addListener(S,"click",function(K){p.checked=!0;N(K);mxEvent.consume(K)});mxEvent.addListener(P,"blur",N);mxEvent.addListener(P,"click",N);mxEvent.addListener(R,"blur",N);mxEvent.addListener(R,"click",N);mxEvent.addListener(p,"change",N);mxEvent.addListener(u,"change",N);mxEvent.addListener(B,"change",function(K){N(K,"custom"==B.value);mxEvent.consume(K)});mxEvent.addListener(c,"change",function(K){P.value=Editor.toUnit(Editor.fromUnit(P.value,Editor.pageSizeUnit),c.value);R.value=Editor.toUnit(Editor.fromUnit(R.value,
+mxEvent.addListener(T,"click",function(K){p.checked=!0;N(K);mxEvent.consume(K)});mxEvent.addListener(P,"blur",N);mxEvent.addListener(P,"click",N);mxEvent.addListener(R,"blur",N);mxEvent.addListener(R,"click",N);mxEvent.addListener(p,"change",N);mxEvent.addListener(u,"change",N);mxEvent.addListener(B,"change",function(K){N(K,"custom"==B.value);mxEvent.consume(K)});mxEvent.addListener(c,"change",function(K){P.value=Editor.toUnit(Editor.fromUnit(P.value,Editor.pageSizeUnit),c.value);R.value=Editor.toUnit(Editor.fromUnit(R.value,
Editor.pageSizeUnit),c.value);Editor.pageSizeUnit=c.value;N(K,!0);mxEvent.consume(K)});N(null,!0);return{set:function(K){g=K;F(null,null,!0)},get:function(){return g},widthInput:P,heightInput:R}};
PageSetupDialog.getFormats=function(){return[{key:"letter",title:'US-Letter (8,5" x 11")',format:mxConstants.PAGE_FORMAT_LETTER_PORTRAIT},{key:"legal",title:'US-Legal (8,5" x 14")',format:new mxRectangle(0,0,850,1400)},{key:"tabloid",title:'US-Tabloid (11" x 17")',format:new mxRectangle(0,0,1100,1700)},{key:"executive",title:'US-Executive (7" x 10")',format:new mxRectangle(0,0,700,1E3)},{key:"a0",title:"A0 (841 mm x 1189 mm)",format:new mxRectangle(0,0,3300,4681)},{key:"a1",title:"A1 (594 mm x 841 mm)",
format:new mxRectangle(0,0,2339,3300)},{key:"a2",title:"A2 (420 mm x 594 mm)",format:new mxRectangle(0,0,1654,2336)},{key:"a3",title:"A3 (297 mm x 420 mm)",format:new mxRectangle(0,0,1169,1654)},{key:"a4",title:"A4 (210 mm x 297 mm)",format:mxConstants.PAGE_FORMAT_A4_PORTRAIT},{key:"a5",title:"A5 (148 mm x 210 mm)",format:new mxRectangle(0,0,583,827)},{key:"a6",title:"A6 (105 mm x 148 mm)",format:new mxRectangle(0,0,413,583)},{key:"a7",title:"A7 (74 mm x 105 mm)",format:new mxRectangle(0,0,291,413)},
{key:"b4",title:"B4 (250 mm x 353 mm)",format:new mxRectangle(0,0,980,1390)},{key:"b5",title:"B5 (176 mm x 250 mm)",format:new mxRectangle(0,0,690,980)},{key:"16-9",title:"16:9 (1600 x 900)",format:new mxRectangle(0,0,900,1600)},{key:"16-10",title:"16:10 (1920 x 1200)",format:new mxRectangle(0,0,1200,1920)},{key:"4-3",title:"4:3 (1600 x 1200)",format:new mxRectangle(0,0,1200,1600)},{key:"custom",title:mxResources.get("custom"),format:null}]};
-var FilenameDialog=function(b,e,g,m,u,p,B,H,S,G,P){S=null!=S?S:!0;var R=document.createElement("div"),c=document.createElement("div");c.style.width="100%";c.style.display="grid";c.style.gap="5px 8px";c.style.gridAutoColumns="auto 1fr";c.style.boxSizing="border-box";c.style.padding="3px";var f=document.createElement("div");f.style.display="inline-flex";f.style.alignItems="center";f.style.justifyContent="flex-end";f.style.minWidth="0";var l=document.createElement("div");l.style.display="inline-block";
-l.style.textOverflow="ellipsis";l.style.whiteSpace="nowrap";l.style.overflow="hidden";l.style.fontSize="10pt";l.style.padding="2px 0";l.setAttribute("title",u||mxResources.get("filename"));mxUtils.write(l,(u||mxResources.get("filename"))+":");f.appendChild(l);c.appendChild(f);var t=document.createElement("input");t.setAttribute("value",e||"");t.style.flexGrow="1";var z=mxUtils.button(g,function(){if(null==p||p(t.value))S&&b.hideDialog(),m(t.value)});z.className="geBtn gePrimaryBtn";this.init=function(){if(null!=
+var FilenameDialog=function(b,e,g,m,u,p,B,H,T,G,P){T=null!=T?T:!0;var R=document.createElement("div"),c=document.createElement("div");c.style.width="100%";c.style.display="grid";c.style.gap="5px 8px";c.style.gridAutoColumns="auto 1fr";c.style.boxSizing="border-box";c.style.padding="3px";var f=document.createElement("div");f.style.display="inline-flex";f.style.alignItems="center";f.style.justifyContent="flex-end";f.style.minWidth="0";var l=document.createElement("div");l.style.display="inline-block";
+l.style.textOverflow="ellipsis";l.style.whiteSpace="nowrap";l.style.overflow="hidden";l.style.fontSize="10pt";l.style.padding="2px 0";l.setAttribute("title",u||mxResources.get("filename"));mxUtils.write(l,(u||mxResources.get("filename"))+":");f.appendChild(l);c.appendChild(f);var t=document.createElement("input");t.setAttribute("value",e||"");t.style.flexGrow="1";var z=mxUtils.button(g,function(){if(null==p||p(t.value))T&&b.hideDialog(),m(t.value)});z.className="geBtn gePrimaryBtn";this.init=function(){if(null!=
u||null==B)if(null!=P?Editor.selectFilename(t):(t.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?t.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var C=c.parentNode;if(null!=C){var F=null;mxEvent.addListener(C,"dragleave",function(N){null!=F&&(F.style.backgroundColor="",F=null);N.stopPropagation();N.preventDefault()});mxEvent.addListener(C,"dragover",mxUtils.bind(this,function(N){null==F&&(!mxClient.IS_IE||10<document.documentMode)&&(F=t,F.style.backgroundColor=
"#ebf2f9");N.stopPropagation();N.preventDefault()}));mxEvent.addListener(C,"drop",mxUtils.bind(this,function(N){null!=F&&(F.style.backgroundColor="",F=null);0<=mxUtils.indexOf(N.dataTransfer.types,"text/uri-list")&&(t.value=decodeURIComponent(N.dataTransfer.getData("text/uri-list")),z.click());N.stopPropagation();N.preventDefault()}))}}};f=document.createElement("div");f.style.display="inline-flex";f.style.alignItems="center";f.style.gap="4px";f.style.whiteSpace="nowrap";f.appendChild(t);c.appendChild(f);
null==u&&null!=B||null==P||null==b.editor.diagramFileTypes||(f=document.createElement("div"),f.style.display="inline-flex",f.style.alignItems="center",f.style.textOverflow="ellipsis",f.style.justifyContent="flex-end",f.style.fontSize="10pt",mxUtils.write(f,mxResources.get("type")+":"),c.appendChild(f),f=document.createElement("div"),f.style.display="inline-flex",f.style.alignItems="center",f.style.whiteSpace="nowrap",c.appendChild(f),e=FilenameDialog.createFileTypes(b,t,b.editor.diagramFileTypes),
e.style.width="100%",f.appendChild(e));null!=B&&c.appendChild(B);row=document.createElement("div");row.style.gridColumn="1 / span 2";row.style.paddingTop=null!=P?"6px":"14px";row.style.whiteSpace="nowrap";row.style.display="inline-flex";row.style.alignItems="center";row.style.justifyContent="flex-end";row.setAttribute("align","right");f=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();null!=G&&G()});f.className="geBtn";null==H||b.isOffline()||row.appendChild(b.createHelpIcon(H));
b.editor.cancelFirst&&row.appendChild(f);mxEvent.addListener(t,"keypress",function(C){13==C.keyCode&&z.click()});row.appendChild(z);b.editor.cancelFirst||row.appendChild(f);c.appendChild(row);R.appendChild(c);this.container=R};FilenameDialog.filenameHelpLink=null;
FilenameDialog.createFileTypes=function(b,e,g){var m=document.createElement("select");for(b=0;b<g.length;b++){var u=document.createElement("option");u.setAttribute("value",b);mxUtils.write(u,mxResources.get(g[b].description)+" (."+g[b].extension+")");m.appendChild(u)}mxEvent.addListener(m,"change",function(p){p=g[m.value].extension;var B=e.value.lastIndexOf(".drawio.");B=0<B?B:e.value.lastIndexOf(".");"drawio"!=p&&(p="drawio."+p);e.value=0<B?e.value.substring(0,B+1)+p:e.value+"."+p;"createEvent"in
-document?(p=document.createEvent("HTMLEvents"),p.initEvent("change",!1,!0),e.dispatchEvent(p)):e.fireEvent("onchange")});b=function(p){p=e.value.toLowerCase();for(var B=0,H=0;H<g.length;H++){var S=g[H].extension,G=null;"drawio"!=S&&(G=S,S=".drawio."+S);if(p.substring(p.length-S.length-1)=="."+S||null!=G&&p.substring(p.length-G.length-1)=="."+G){B=H;break}}m.value=B};mxEvent.addListener(e,"change",b);mxEvent.addListener(e,"keyup",b);b();return m};
-var WrapperWindow=function(b,e,g,m,u,p,B){var H=b.createSidebarContainer();B(H);this.window=new mxWindow(e,H,g,m,u,p,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);b.installResizeHandler(this,!0);mxClient.IS_SF&&(this.window.div.onselectstart=mxUtils.bind(this,function(S){null==S&&(S=window.event);return null!=S&&b.isSelectionAllowed(S)}))};
-(function(){mxGraphView.prototype.validateBackgroundPage=function(){var B=this.graph;if(null!=B.container&&!B.transparentBackground){if(B.pageVisible){var H=this.getBackgroundPageBounds();if(null==this.backgroundPageShape){for(var S=B.container.firstChild;null!=S&&S.nodeType!=mxConstants.NODETYPE_ELEMENT;)S=S.nextSibling;null!=S&&(this.backgroundPageShape=this.createBackgroundPageShape(H),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,
-this.backgroundPageShape.init(B.container),S.style.position="absolute",B.container.insertBefore(this.backgroundPageShape.node,S),this.backgroundPageShape.redraw(),this.backgroundPageShape.node.className="geBackgroundPage",mxEvent.addListener(this.backgroundPageShape.node,"dblclick",mxUtils.bind(this,function(G){B.dblClick(G)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(G){B.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(G))}),mxUtils.bind(this,function(G){null!=
+document?(p=document.createEvent("HTMLEvents"),p.initEvent("change",!1,!0),e.dispatchEvent(p)):e.fireEvent("onchange")});b=function(p){p=e.value.toLowerCase();for(var B=0,H=0;H<g.length;H++){var T=g[H].extension,G=null;"drawio"!=T&&(G=T,T=".drawio."+T);if(p.substring(p.length-T.length-1)=="."+T||null!=G&&p.substring(p.length-G.length-1)=="."+G){B=H;break}}m.value=B};mxEvent.addListener(e,"change",b);mxEvent.addListener(e,"keyup",b);b();return m};
+var WrapperWindow=function(b,e,g,m,u,p,B){var H=b.createSidebarContainer();B(H);this.window=new mxWindow(e,H,g,m,u,p,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);b.installResizeHandler(this,!0);mxClient.IS_SF&&(this.window.div.onselectstart=mxUtils.bind(this,function(T){null==T&&(T=window.event);return null!=T&&b.isSelectionAllowed(T)}))};
+(function(){mxGraphView.prototype.validateBackgroundPage=function(){var B=this.graph;if(null!=B.container&&!B.transparentBackground){if(B.pageVisible){var H=this.getBackgroundPageBounds();if(null==this.backgroundPageShape){for(var T=B.container.firstChild;null!=T&&T.nodeType!=mxConstants.NODETYPE_ELEMENT;)T=T.nextSibling;null!=T&&(this.backgroundPageShape=this.createBackgroundPageShape(H),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,
+this.backgroundPageShape.init(B.container),T.style.position="absolute",B.container.insertBefore(this.backgroundPageShape.node,T),this.backgroundPageShape.redraw(),this.backgroundPageShape.node.className="geBackgroundPage",mxEvent.addListener(this.backgroundPageShape.node,"dblclick",mxUtils.bind(this,function(G){B.dblClick(G)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(G){B.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(G))}),mxUtils.bind(this,function(G){null!=
B.tooltipHandler&&B.tooltipHandler.isHideOnHover()&&B.tooltipHandler.hide();B.isMouseDown&&!mxEvent.isConsumed(G)&&B.fireMouseEvent(mxEvent.MOUSE_MOVE,new mxMouseEvent(G))}),mxUtils.bind(this,function(G){B.fireMouseEvent(mxEvent.MOUSE_UP,new mxMouseEvent(G))})))}else this.backgroundPageShape.scale=1,this.backgroundPageShape.bounds=H,this.backgroundPageShape.redraw()}else null!=this.backgroundPageShape&&(this.backgroundPageShape.destroy(),this.backgroundPageShape=null);this.validateBackgroundStyles()}};
-mxGraphView.prototype.validateBackgroundStyles=function(B,H,S){var G=this.graph;B=null!=B?B:1;var P=mxUtils.getLightDarkColor(null==G.background||G.background==mxConstants.NONE?G.defaultPageBackgroundColor:G.background).cssText,R=mxUtils.getLightDarkColor(G.defaultPageBorderColor).cssText,c=null!=P&&this.gridColor!=P.toLowerCase()?this.gridColor:"#ffffff",f="none",l="";"simple"==G.getAdaptiveColors()&&G.background!=mxConstants.NONE&&null!=G.background&&(P=G.background);if(G.isGridEnabled()||G.gridVisible){l=
-10;mxClient.IS_SVG?(f=unescape(encodeURIComponent(this.createSvgGrid(c,B))),f=window.btoa?btoa(f):Base64.encode(f,!0),f="url(data:image/svg+xml;base64,"+f+")",l=G.gridSize*this.scale*this.gridSteps*B):f="url("+this.gridImage+")";var t=c=0;H=null!=H?H-this.translate.x*this.scale:0;S=null!=S?S-this.translate.y*this.scale:0;var z=G.gridSize*this.scale*this.gridSteps,C=H%z;z=S%z;null!=G.view.backgroundPageShape&&(t=this.getBackgroundPageBounds(),c=1+t.x,t=1+t.y);l=-Math.round(l-mxUtils.mod(this.translate.x*
-this.scale-c+H,l)+C*B)+"px "+-Math.round(l-mxUtils.mod(this.translate.y*this.scale-t+S,l)+z*B)+"px"}B=G.view.canvas;null!=B.ownerSVGElement&&(B=B.ownerSVGElement);c=!Editor.isDarkMode()&&G.enableDiagramBackground;null!=G.view.backgroundPageShape?(G.view.backgroundPageShape.node.style.backgroundPosition=l,G.view.backgroundPageShape.node.style.backgroundImage=f,G.view.backgroundPageShape.node.style.backgroundColor=P,G.view.backgroundPageShape.node.style.borderColor=R,G.view.backgroundPageShape.node.style.colorScheme=
+mxGraphView.prototype.validateBackgroundStyles=function(B,H,T){var G=this.graph;B=null!=B?B:1;var P=mxUtils.getLightDarkColor(null==G.background||G.background==mxConstants.NONE?G.defaultPageBackgroundColor:G.background).cssText,R=mxUtils.getLightDarkColor(G.defaultPageBorderColor).cssText,c=null!=P&&this.gridColor!=P.toLowerCase()?this.gridColor:"#ffffff",f="none",l="";"simple"==G.getAdaptiveColors()&&G.background!=mxConstants.NONE&&null!=G.background&&(P=G.background);if(G.isGridEnabled()||G.gridVisible){l=
+10;mxClient.IS_SVG?(f=unescape(encodeURIComponent(this.createSvgGrid(c,B))),f=window.btoa?btoa(f):Base64.encode(f,!0),f="url(data:image/svg+xml;base64,"+f+")",l=G.gridSize*this.scale*this.gridSteps*B):f="url("+this.gridImage+")";var t=c=0;H=null!=H?H-this.translate.x*this.scale:0;T=null!=T?T-this.translate.y*this.scale:0;var z=G.gridSize*this.scale*this.gridSteps,C=H%z;z=T%z;null!=G.view.backgroundPageShape&&(t=this.getBackgroundPageBounds(),c=1+t.x,t=1+t.y);l=-Math.round(l-mxUtils.mod(this.translate.x*
+this.scale-c+H,l)+C*B)+"px "+-Math.round(l-mxUtils.mod(this.translate.y*this.scale-t+T,l)+z*B)+"px"}B=G.view.canvas;null!=B.ownerSVGElement&&(B=B.ownerSVGElement);c=!Editor.isDarkMode()&&G.enableDiagramBackground;null!=G.view.backgroundPageShape?(G.view.backgroundPageShape.node.style.backgroundPosition=l,G.view.backgroundPageShape.node.style.backgroundImage=f,G.view.backgroundPageShape.node.style.backgroundColor=P,G.view.backgroundPageShape.node.style.borderColor=R,G.view.backgroundPageShape.node.style.colorScheme=
"none"==G.getAdaptiveColors()?"light":"",G.container.classList.add("geDiagramBackdrop"),B.style.backgroundImage="none",B.style.backgroundColor="",G.container.style.backgroundColor=c?G.diagramBackgroundColor:""):(G.container.classList.remove("geDiagramBackdrop"),B.style.backgroundPosition=l,B.style.backgroundImage=f,"1"==urlParams.transparent?G.container.style.background="transparent":!c||null!=G.background&&G.background!=mxConstants.NONE?B.style.backgroundColor=P:(B.style.backgroundColor=G.diagramBackgroundColor,
-G.container.style.backgroundColor=""))};mxGraphView.prototype.createSvgGrid=function(B,H){for(var S=this.graph.gridSize*this.scale*(null!=H?H:1);S<this.minGridSize;)S*=2;H=this.gridSteps*S;for(var G=[],P=1;P<this.gridSteps;P++){var R=P*S;G.push("M 0 "+R+" L "+H+" "+R+" M "+R+" 0 L "+R+" "+H)}B=mxUtils.getLightDarkColor(B);S="color-scheme: light dark;";mxClient.IS_SF&&(S="color-scheme: "+("none"!=this.graph.getAdaptiveColors()&&Editor.isDarkMode()?"dark":"light"));return'<svg style="'+S+'" width="'+
+G.container.style.backgroundColor=""))};mxGraphView.prototype.createSvgGrid=function(B,H){for(var T=this.graph.gridSize*this.scale*(null!=H?H:1);T<this.minGridSize;)T*=2;H=this.gridSteps*T;for(var G=[],P=1;P<this.gridSteps;P++){var R=P*T;G.push("M 0 "+R+" L "+H+" "+R+" M "+R+" 0 L "+R+" "+H)}B=mxUtils.getLightDarkColor(B);T="color-scheme: light dark;";mxClient.IS_SF&&(T="color-scheme: "+("none"!=this.graph.getAdaptiveColors()&&Editor.isDarkMode()?"dark":"light"));return'<svg style="'+T+'" width="'+
H+'" height="'+H+'" xmlns="'+mxConstants.NS_SVG+'"><defs><pattern id="grid" width="'+H+'" height="'+H+'" patternUnits="userSpaceOnUse"><path d="'+G.join(" ")+'" fill="none" style="stroke:'+mxUtils.htmlEntities(B.cssText)+';" stroke="'+B.light+'" opacity="0.2" stroke-width="1"/><path d="M '+H+" 0 L 0 0 0 "+H+'" fill="none" style="stroke:'+mxUtils.htmlEntities(B.cssText)+';" stroke="'+B.light+'" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(#grid)"/></svg>'};var b=mxGraph.prototype.panGraph;
-mxGraph.prototype.panGraph=function(B,H){b.apply(this,arguments);if(null!=this.shiftPreview1){var S=this.view.canvas;null!=S.ownerSVGElement&&(S=S.ownerSVGElement);var G=this.gridSize*this.view.scale*this.view.gridSteps;G=-Math.round(G-mxUtils.mod(this.view.translate.x*this.view.scale+B,G))+"px "+-Math.round(G-mxUtils.mod(this.view.translate.y*this.view.scale+H,G))+"px";S.style.backgroundPosition=G}};mxGraph.prototype.updatePageBreaks=function(B,H,S){var G=this.view.scale,P=this.view.translate,R=
-this.pageFormat,c=G*this.pageScale,f=this.view.getBackgroundPageBounds();H=f.width;S=f.height;var l=new mxRectangle(G*P.x,G*P.y,R.width*c,R.height*c),t=(B=B&&Math.min(l.width,l.height)>this.minPageBreakDist)?Math.ceil(S/l.height)-1:0,z=B?Math.ceil(H/l.width)-1:0,C=f.x+H,F=f.y+S;null==this.horizontalPageBreaks&&0<t&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<z&&(this.verticalPageBreaks=[]);B=mxUtils.bind(this,function(N){if(null!=N){for(var K=N==this.horizontalPageBreaks?t:z,J=
+mxGraph.prototype.panGraph=function(B,H){b.apply(this,arguments);if(null!=this.shiftPreview1){var T=this.view.canvas;null!=T.ownerSVGElement&&(T=T.ownerSVGElement);var G=this.gridSize*this.view.scale*this.view.gridSteps;G=-Math.round(G-mxUtils.mod(this.view.translate.x*this.view.scale+B,G))+"px "+-Math.round(G-mxUtils.mod(this.view.translate.y*this.view.scale+H,G))+"px";T.style.backgroundPosition=G}};mxGraph.prototype.updatePageBreaks=function(B,H,T){var G=this.view.scale,P=this.view.translate,R=
+this.pageFormat,c=G*this.pageScale,f=this.view.getBackgroundPageBounds();H=f.width;T=f.height;var l=new mxRectangle(G*P.x,G*P.y,R.width*c,R.height*c),t=(B=B&&Math.min(l.width,l.height)>this.minPageBreakDist)?Math.ceil(T/l.height)-1:0,z=B?Math.ceil(H/l.width)-1:0,C=f.x+H,F=f.y+T;null==this.horizontalPageBreaks&&0<t&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<z&&(this.verticalPageBreaks=[]);B=mxUtils.bind(this,function(N){if(null!=N){for(var K=N==this.horizontalPageBreaks?t:z,J=
0;J<=K;J++){var da=N==this.horizontalPageBreaks?[new mxPoint(Math.round(f.x),Math.round(f.y+(J+1)*l.height)),new mxPoint(Math.round(C),Math.round(f.y+(J+1)*l.height))]:[new mxPoint(Math.round(f.x+(J+1)*l.width),Math.round(f.y)),new mxPoint(Math.round(f.x+(J+1)*l.width),Math.round(F))];null!=N[J]?(N[J].points=da,N[J].redraw()):(da=new mxPolyline(da,this.pageBreakColor),da.dialect=this.dialect,da.isDashed=this.pageBreakDashed,da.pointerEvents=!1,da.init(this.view.backgroundPane),da.redraw(),N[J]=da)}for(J=
-K;J<N.length;J++)null!=N[J]&&N[J].destroy();N.splice(K,N.length-K)}});B(this.horizontalPageBreaks);B(this.verticalPageBreaks)};var e=mxGraphHandler.prototype.shouldRemoveCellsFromParent;mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(B,H,S){for(var G=0;G<H.length;G++){if(this.graph.isTableCell(H[G])||this.graph.isTableRow(H[G]))return!1;if(this.graph.getModel().isVertex(H[G])){var P=this.graph.getCellGeometry(H[G]);if(null!=P&&P.relative)return!1}}return e.apply(this,arguments)};var g=
-mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var B=g.apply(this,arguments);B.intersects=mxUtils.bind(this,function(H,S){return this.isConnecting()?!0:mxCellMarker.prototype.intersects.apply(B,arguments)});return B};mxGraphView.prototype.createBackgroundPageShape=function(B){return new mxRectangleShape(B,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var B=this.getGraphBounds(),H=0<B.width?B.x/
-this.scale-this.translate.x:0,S=0<B.height?B.y/this.scale-this.translate.y:0,G=this.graph.pageFormat,P=this.graph.pageScale,R=G.width*P;G=G.height*P;P=Math.floor(Math.min(0,H)/R);var c=Math.floor(Math.min(0,S)/G);return new mxRectangle(this.scale*(this.translate.x+P*R),this.scale*(this.translate.y+c*G),this.scale*(Math.ceil(Math.max(1,H+B.width/this.scale)/R)-P)*R,this.scale*(Math.ceil(Math.max(1,S+B.height/this.scale)/G)-c)*G)};var m=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(B,
-H){m.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=B+"px",this.view.backgroundPageShape.node.style.marginTop=H+"px")};var u=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(B,H,S,G,P,R){var c=u.apply(this,arguments);null==R||R||mxEvent.addListener(c,"mousedown",function(f){mxEvent.consume(f)});return c};var p=
-mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=function(B,H,S){var G=this.graph.model.getParent(B);if(H){var P=this.graph.model.isEdge(B)?null:this.graph.getCellGeometry(B);P=!this.graph.model.isEdge(G)&&!this.graph.isSiblingSelected(B)&&(null!=P&&P.relative||!this.graph.isContainer(G)||this.graph.isPart(B))}else if(P=p.apply(this,arguments),this.graph.isTableCell(B)||this.graph.isTableRow(B))P=G,this.graph.isTable(P)||(P=this.graph.model.getParent(P)),
-P=!this.graph.selectionCellsHandler.isHandled(P)||this.graph.isCellSelected(P)&&this.graph.isToggleEvent(S.getEvent())||this.graph.isCellSelected(B)&&!this.graph.isToggleEvent(S.getEvent())||this.graph.isTableCell(B)&&this.graph.isCellSelected(G);return P};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(B){B=B.getCell();for(var H=this.graph.getModel(),S=H.getParent(B),G=this.graph.view.getState(S),P=this.graph.isCellSelected(B);null!=G&&(H.isVertex(S)||H.isEdge(S));){var R=this.graph.isCellSelected(S);
-P=P||R;if(R||!P&&(this.graph.isTableCell(B)||this.graph.isTableRow(B)))B=S;S=H.getParent(S)}return B}})();EditorUi=function(b,e,g){mxEventSource.call(this);this.destroyFunctions=[];this.editor=b||new Editor;this.container=e||document.body;var m=this,u=this.editor.graph;u.lightbox=g;var p=u.getGraphBounds;u.getGraphBounds=function(){var W=p.apply(this,arguments),ba=this.backgroundImage;if(null!=ba&&null!=ba.width&&null!=ba.height){var ha=this.view.translate,la=this.view.scale;W=mxRectangle.fromRectangle(W);W.add(new mxRectangle((ha.x+ba.x)*la,(ha.y+ba.y)*la,ba.width*la,ba.height*la))}return W};u.useCssTransforms&&
+K;J<N.length;J++)null!=N[J]&&N[J].destroy();N.splice(K,N.length-K)}});B(this.horizontalPageBreaks);B(this.verticalPageBreaks)};var e=mxGraphHandler.prototype.shouldRemoveCellsFromParent;mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(B,H,T){for(var G=0;G<H.length;G++){if(this.graph.isTableCell(H[G])||this.graph.isTableRow(H[G]))return!1;if(this.graph.getModel().isVertex(H[G])){var P=this.graph.getCellGeometry(H[G]);if(null!=P&&P.relative)return!1}}return e.apply(this,arguments)};var g=
+mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var B=g.apply(this,arguments);B.intersects=mxUtils.bind(this,function(H,T){return this.isConnecting()?!0:mxCellMarker.prototype.intersects.apply(B,arguments)});return B};mxGraphView.prototype.createBackgroundPageShape=function(B){return new mxRectangleShape(B,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var B=this.getGraphBounds(),H=0<B.width?B.x/
+this.scale-this.translate.x:0,T=0<B.height?B.y/this.scale-this.translate.y:0,G=this.graph.pageFormat,P=this.graph.pageScale,R=G.width*P;G=G.height*P;P=Math.floor(Math.min(0,H)/R);var c=Math.floor(Math.min(0,T)/G);return new mxRectangle(this.scale*(this.translate.x+P*R),this.scale*(this.translate.y+c*G),this.scale*(Math.ceil(Math.max(1,H+B.width/this.scale)/R)-P)*R,this.scale*(Math.ceil(Math.max(1,T+B.height/this.scale)/G)-c)*G)};var m=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(B,
+H){m.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=B+"px",this.view.backgroundPageShape.node.style.marginTop=H+"px")};var u=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(B,H,T,G,P,R){var c=u.apply(this,arguments);null==R||R||mxEvent.addListener(c,"mousedown",function(f){mxEvent.consume(f)});return c};var p=
+mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=function(B,H,T){var G=this.graph.model.getParent(B);if(H){var P=this.graph.model.isEdge(B)?null:this.graph.getCellGeometry(B);P=!this.graph.model.isEdge(G)&&!this.graph.isSiblingSelected(B)&&(null!=P&&P.relative||!this.graph.isContainer(G)||this.graph.isPart(B))}else if(P=p.apply(this,arguments),this.graph.isTableCell(B)||this.graph.isTableRow(B))P=G,this.graph.isTable(P)||(P=this.graph.model.getParent(P)),
+P=!this.graph.selectionCellsHandler.isHandled(P)||this.graph.isCellSelected(P)&&this.graph.isToggleEvent(T.getEvent())||this.graph.isCellSelected(B)&&!this.graph.isToggleEvent(T.getEvent())||this.graph.isTableCell(B)&&this.graph.isCellSelected(G);return P};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(B){B=B.getCell();for(var H=this.graph.getModel(),T=H.getParent(B),G=this.graph.view.getState(T),P=this.graph.isCellSelected(B);null!=G&&(H.isVertex(T)||H.isEdge(T));){var R=this.graph.isCellSelected(T);
+P=P||R;if(R||!P&&(this.graph.isTableCell(B)||this.graph.isTableRow(B)))B=T;T=H.getParent(T)}return B}})();EditorUi=function(b,e,g){mxEventSource.call(this);this.destroyFunctions=[];this.editor=b||new Editor;this.container=e||document.body;var m=this,u=this.editor.graph;u.lightbox=g;var p=u.getGraphBounds;u.getGraphBounds=function(){var W=p.apply(this,arguments),ba=this.backgroundImage;if(null!=ba&&null!=ba.width&&null!=ba.height){var ha=this.view.translate,la=this.view.scale;W=mxRectangle.fromRectangle(W);W.add(new mxRectangle((ha.x+ba.x)*la,(ha.y+ba.y)*la,ba.width*la,ba.height*la))}return W};u.useCssTransforms&&
(this.lazyZoomDelay=0);this.selectionStateListener=mxUtils.bind(this,function(W,ba){this.clearSelectionState()});u.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionStateListener);u.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);u.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);u.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);u.getView().addListener("unitChanged",this.selectionStateListener);if(this.editor.chromeless&&!this.editor.editable){this.footerHeight=
-0;u.isEnabled=function(){return!1};u.panningHandler.isForcePanningEvent=function(W){for(var ba=W.getSource();null!=ba&&ba!=u.container;){if("foreignObject"===ba.nodeName||"text"===ba.nodeName)return!1;ba=ba.parentNode}return!mxEvent.isPopupTrigger(W.getEvent())};var B=u.panningHandler.start;u.panningHandler.start=function(){B.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!u.standalone){var H=!1,S=!1;this.setDefaultStyle=function(W){try{u.getModel().isEdge(W)?
-S=u.pasteEdgeStyle=!1:H=!1;var ba=u.getCellStyle(W,!1),ha=[],la=[],Y;for(Y in ba)ha.push(ba[Y]),la.push(Y);u.getModel().isEdge(W)?u.currentEdgeStyle={}:u.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",la,"values",ha,"cells",[W],"force",!0));u.getModel().isEdge(W)?S=u.pasteEdgeStyle=!0:H=!0}catch(ma){this.handleError(ma)}};this.clearDefaultStyle=function(){u.currentEdgeStyle=mxUtils.clone(u.defaultEdgeStyle);u.currentVertexStyle=mxUtils.clone(u.defaultVertexStyle);H=S=
+0;u.isEnabled=function(){return!1};u.panningHandler.isForcePanningEvent=function(W){for(var ba=W.getSource();null!=ba&&ba!=u.container;){if("foreignObject"===ba.nodeName||"text"===ba.nodeName)return!1;ba=ba.parentNode}return!mxEvent.isPopupTrigger(W.getEvent())};var B=u.panningHandler.start;u.panningHandler.start=function(){B.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!u.standalone){var H=!1,T=!1;this.setDefaultStyle=function(W){try{u.getModel().isEdge(W)?
+T=u.pasteEdgeStyle=!1:H=!1;var ba=u.getCellStyle(W,!1),ha=[],la=[],Y;for(Y in ba)ha.push(ba[Y]),la.push(Y);u.getModel().isEdge(W)?u.currentEdgeStyle={}:u.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",la,"values",ha,"cells",[W],"force",!0));u.getModel().isEdge(W)?T=u.pasteEdgeStyle=!0:H=!0}catch(ma){this.handleError(ma)}};this.clearDefaultStyle=function(){u.currentEdgeStyle=mxUtils.clone(u.defaultEdgeStyle);u.currentVertexStyle=mxUtils.clone(u.defaultVertexStyle);H=T=
u.pasteEdgeStyle=!1;this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))};u.addListener("cellsInserted",function(W,ba){u.pasteCellStyles(u.includeDescendants(ba.getProperty("cells")))});u.addListener("textInserted",function(W,ba){u.pasteCellStyles(ba.getProperty("cells"))});this.createDivs();this.createUi();this.refresh();var G=mxUtils.bind(this,function(W){null==W&&(W=window.event);return u.isEditing()||null!=W&&this.isSelectionAllowed(W)});this.container!=document.body||
this.editor.chromeless&&!this.editor.editable||(this.menubarContainer.onselectstart=G,this.menubarContainer.onmousedown=G,this.toolbarContainer.onselectstart=G,this.toolbarContainer.onmousedown=G,this.diagramContainer.onselectstart=G,this.diagramContainer.onmousedown=G,this.sidebarContainer.onselectstart=G,this.sidebarContainer.onmousedown=G,this.formatContainer.onselectstart=G,this.formatContainer.onmousedown=G,this.footerContainer.onselectstart=G,this.footerContainer.onmousedown=G,null!=this.tabContainer&&
(this.tabContainer.onselectstart=G),mxClient.IS_IOS&&(e=function(){var W=null;if(/iP(hone|od|ad)/.test(navigator.platform)){var ba=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);try{W=[parseInt(ba[1],10),parseInt(ba[2],10),parseInt(ba[3]||0,10)]}catch(ha){}}return W}(),null!=e&&16<=e[0]&&(mxUtils.setPrefixedStyle(this.menubarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.diagramContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.sidebarContainer.style,"userSelect",
@@ -2060,7 +2060,7 @@ W=ha}W=this.toolbar.fontMenu;ha=this.toolbar.sizeMenu;if(null==F)this.toolbar.cr
null!=ha&&(ha=mxUtils.getCurrentStyle(ha),null!=ha&&null!=m.toolbar&&(m.toolbar.setFontName(mxUtils.getCssFontFamily(ha.fontFamily)),m.toolbar.setFontSize(parseInt(ha.fontSize))));W=!1},0))};mxEvent.addListener(u.cellEditor.textarea,"input",ba);mxEvent.addListener(u.cellEditor.textarea,"touchend",ba);mxEvent.addListener(u.cellEditor.textarea,"mouseup",ba);mxEvent.addListener(u.cellEditor.textarea,"keyup",ba);ba()}};var J=u.cellEditor.stopEditing;u.cellEditor.stopEditing=function(W,ba){try{J.apply(this,
arguments),N()}catch(ha){m.handleError(ha)}};u.container.setAttribute("tabindex","0");u.container.style.cursor="default";if(window.self===window.top&&null!=u.container.parentNode)try{u.container.focus()}catch(W){}var da=u.fireMouseEvent;u.fireMouseEvent=function(W,ba,ha){try{W==mxEvent.MOUSE_DOWN&&this.container.focus(),da.apply(this,arguments)}catch(la){m.handleError(la)}};var ea=u.foldCells;u.foldCells=function(W,ba,ha,la,Y){try{ea.apply(this,arguments)}catch(ma){m.handleError(ma)}};u.popupMenuHandler.autoExpand=
!0;null!=this.menus&&(u.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(W,ba,ha){this.menus.createPopupMenu(W,ba,ha)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(W){u.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(b);this.getKeyHandler=function(){return keyHandler};u.connectionHandler.addListener(mxEvent.CONNECT,function(W,ba){var ha=[ba.getProperty("cell")];ba.getProperty("terminalInserted")&&(ha.push(ba.getProperty("terminal")),window.setTimeout(function(){null!=
-m.hoverIcons&&m.hoverIcons.update(u.view.getState(ha[ha.length-1]))},0));u.pasteCellStyles(ha)});this.addListener("styleChanged",mxUtils.bind(this,function(W,ba){W=ba.getProperty("force");(this.updateDefaultStyle||W)&&u.copyCellStyles(ba.getProperty("cells"),ba.getProperty("keys"),ba.getProperty("values"),u.currentVertexStyle,u.currentEdgeStyle,H,S);null!=this.toolbar&&(this.toolbar.setFontName(u.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(u.currentVertexStyle.fontSize||
+m.hoverIcons&&m.hoverIcons.update(u.view.getState(ha[ha.length-1]))},0));u.pasteCellStyles(ha)});this.addListener("styleChanged",mxUtils.bind(this,function(W,ba){W=ba.getProperty("force");(this.updateDefaultStyle||W)&&u.copyCellStyles(ba.getProperty("cells"),ba.getProperty("keys"),ba.getProperty("values"),u.currentVertexStyle,u.currentEdgeStyle,H,T);null!=this.toolbar&&(this.toolbar.setFontName(u.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(u.currentVertexStyle.fontSize||
Menus.prototype.defaultFontSize),null!=this.toolbar.edgeStyleMenu&&(ba=this.toolbar.edgeStyleMenu.getElementsByTagName("div")[0],ba.style.backgroundPosition="left center",ba.style.backgroundRepeat="no-repeat",ba.className="geAdaptiveAsset",ba.style.height="100%",ba.style.width="100%",ba.style.backgroundImage="orthogonalEdgeStyle"==u.currentEdgeStyle.edgeStyle&&"1"==u.currentEdgeStyle.curved?"url("+Format.curvedImage.src+")":"straight"==u.currentEdgeStyle.edgeStyle||"none"==u.currentEdgeStyle.edgeStyle||
null==u.currentEdgeStyle.edgeStyle?"url("+Format.straightImage.src+")":"entityRelationEdgeStyle"==u.currentEdgeStyle.edgeStyle?"url("+Format.entityImage.src+")":"elbowEdgeStyle"==u.currentEdgeStyle.edgeStyle?"vertical"==u.currentEdgeStyle.elbow?"url("+Format.verticalElbowImage.src+")":"url("+Format.horizontalElbowImage.src+")":"isometricEdgeStyle"==u.currentEdgeStyle.edgeStyle?"vertical"==u.currentEdgeStyle.elbow?"url("+Format.verticalIsometricImage.src+")":"url("+Format.horizontalIsometricImage.src+
")":"url("+Format.orthogonalImage.src+")"),null!=this.toolbar.edgeShapeMenu&&(ba=this.toolbar.edgeShapeMenu.getElementsByTagName("div")[0],ba.style.backgroundPosition="left center",ba.style.backgroundRepeat="no-repeat",ba.className="geAdaptiveAsset",ba.style.height="100%",ba.style.width="100%",ba.style.backgroundImage="link"==u.currentEdgeStyle.shape?"url("+Format.linkEdgeImage.src+")":"flexArrow"==u.currentEdgeStyle.shape?"url("+Format.arrowImage.src+")":"arrow"==u.currentEdgeStyle.shape?"url("+
@@ -2069,7 +2069,7 @@ b),u.getModel().addListener(mxEvent.CHANGE,b));u.addListener(mxEvent.CELLS_ADDED
function(W){null!=this.currentMenu&&mxEvent.getSource(W)!=this.currentMenu.div&&this.hideCurrentMenu()});mxEvent.addGestureListeners(document,this.gestureHandler);var ca=null;this.resizeHandler=mxUtils.bind(this,function(){null!=ca&&window.clearTimeout(ca);ca=window.setTimeout(mxUtils.bind(this,function(){ca=null;this.windowResized()}),100)});mxEvent.addListener(window,"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});mxEvent.addListener(window,
"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&!window.navigator.standalone&&"undefined"!==typeof Menus&&(this.scrollHandler=mxUtils.bind(this,function(){window.scrollTo(0,0)}),mxEvent.addListener(window,"scroll",this.scrollHandler));this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.resetScrollbars()}));this.addListener("gridEnabledChanged",mxUtils.bind(this,function(){u.view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,
function(){u.view.validateBackground()}));u.addListener("gridSizeChanged",mxUtils.bind(this,function(){u.isGridEnabled()&&u.view.validateBackground()}));this.editor.resetGraph()}this.init();u.standalone||this.open()};EditorUi.compactUi=!0;
-EditorUi.parsePng=function(b,e,g){function m(H,S){var G=p;p+=S;return H.substring(G,p)}function u(H){H=m(H,4);return H.charCodeAt(3)+(H.charCodeAt(2)<<8)+(H.charCodeAt(1)<<16)+(H.charCodeAt(0)<<24)}var p=0;if(m(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=g&&g();else if(m(b,4),"IHDR"!=m(b,4))null!=g&&g();else{m(b,17);do{g=u(b);var B=m(b,4);if(null!=e&&e(p-8,B,g))break;value=m(b,g);m(b,4);if("IEND"==B)break}while(g)}};mxUtils.extend(EditorUi,mxEventSource);
+EditorUi.parsePng=function(b,e,g){function m(H,T){var G=p;p+=T;return H.substring(G,p)}function u(H){H=m(H,4);return H.charCodeAt(3)+(H.charCodeAt(2)<<8)+(H.charCodeAt(1)<<16)+(H.charCodeAt(0)<<24)}var p=0;if(m(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=g&&g();else if(m(b,4),"IHDR"!=m(b,4))null!=g&&g();else{m(b,17);do{g=u(b);var B=m(b,4);if(null!=e&&e(p-8,B,g))break;value=m(b,g);m(b,4);if("IEND"==B)break}while(g)}};mxUtils.extend(EditorUi,mxEventSource);
EditorUi.prototype.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.menubarHeight=30;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.toolbarHeight=38;EditorUi.prototype.footerHeight=28;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?212:240);EditorUi.prototype.hsplitPosition=screen.width<=Editor.smallScreenWidth?0:EditorUi.prototype.defaultSidebarWidth;
EditorUi.prototype.allowAnimation=!0;EditorUi.prototype.lightboxMaxFitScale=2;EditorUi.prototype.lightboxVerticalDivider=4;EditorUi.prototype.hsplitClickEnabled=!1;EditorUi.prototype.updateDefaultStyle=!1;EditorUi.prototype.spaceDown=!1;EditorUi.prototype.shiftDown=!1;
EditorUi.prototype.init=function(){var b=this.editor.graph;if(!b.standalone){"0"!=urlParams["shape-picker"]&&this.installShapePicker();mxEvent.addListener(b.container,"scroll",mxUtils.bind(this,function(){b.tooltipHandler.hide();null!=b.connectionHandler&&null!=b.connectionHandler.constraintHandler&&b.connectionHandler.constraintHandler.reset()}));b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){b.tooltipHandler.hide();var m=b.getRubberband();null!=m&&m.cancel()}));mxEvent.addListener(b.container,
@@ -2077,31 +2077,31 @@ EditorUi.prototype.init=function(){var b=this.editor.graph;if(!b.standalone){"0"
arguments);g.updateActionStates()};b.showLinkDialog=mxUtils.bind(g,g.showLinkDialog);b.editLink=g.actions.get("editLink").funct;this.updateActionStates();this.initClipboard();this.initCanvas();null!=this.format&&this.format.init()}};EditorUi.prototype.clearSelectionState=function(){this.selectionState=null};EditorUi.prototype.getSelectionState=function(){null==this.selectionState&&(this.selectionState=this.createSelectionState());return this.selectionState};
EditorUi.prototype.createSelectionState=function(){for(var b=this.editor.graph,e=b.getSelectionCells(),g=this.initSelectionState(),m=!0,u=0;u<e.length;u++){var p=b.getCurrentCellStyle(e[u]);"0"!=mxUtils.getValue(p,mxConstants.STYLE_EDITABLE,"1")&&(this.updateSelectionStateForCell(g,e[u],e,m),m=!1)}this.updateSelectionStateForTableCells(g);return g};
EditorUi.prototype.initSelectionState=function(){return{vertices:[],edges:[],cells:[],x:null,y:null,width:null,height:null,style:{},containsImage:!1,containsLabel:!1,fill:!0,glass:!0,html:!0,rounded:!0,autoSize:!1,image:!1,shadow:!0,lineJumps:!0,resizable:!0,table:!1,cell:!1,row:!1,movable:!0,rotatable:!0,stroke:!0,swimlane:!1,unlocked:this.editor.graph.isEnabled(),connections:!1}};
-EditorUi.prototype.updateSelectionStateForTableCells=function(b){if(1<b.cells.length&&b.cell){var e=mxUtils.sortCells(b.cells),g=this.editor.graph.model,m=g.getParent(e[0]),u=g.getParent(m);if(null!=m&&null!=u){for(var p=m.getIndex(e[0]),B=u.getIndex(m),H=null,S=1,G=1,P=0,R=B<u.getChildCount()-1?g.getChildAt(g.getChildAt(u,B+1),p):null;P<e.length-1;){var c=e[++P];null==R||R!=c||null!=H&&S!=H||(H=S,S=0,G++,m=g.getParent(R),R=B+G<u.getChildCount()?g.getChildAt(g.getChildAt(u,B+G),p):null);var f=this.editor.graph.view.getState(c);
-if(c==g.getChildAt(m,p+S)&&null!=f&&1==mxUtils.getValue(f.style,"colspan",1)&&1==mxUtils.getValue(f.style,"rowspan",1))S++;else break}P==G*S-1&&(b.mergeCell=e[0],b.colspan=S,b.rowspan=G)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),0)};
+EditorUi.prototype.updateSelectionStateForTableCells=function(b){if(1<b.cells.length&&b.cell){var e=mxUtils.sortCells(b.cells),g=this.editor.graph.model,m=g.getParent(e[0]),u=g.getParent(m);if(null!=m&&null!=u){for(var p=m.getIndex(e[0]),B=u.getIndex(m),H=null,T=1,G=1,P=0,R=B<u.getChildCount()-1?g.getChildAt(g.getChildAt(u,B+1),p):null;P<e.length-1;){var c=e[++P];null==R||R!=c||null!=H&&T!=H||(H=T,T=0,G++,m=g.getParent(R),R=B+G<u.getChildCount()?g.getChildAt(g.getChildAt(u,B+G),p):null);var f=this.editor.graph.view.getState(c);
+if(c==g.getChildAt(m,p+T)&&null!=f&&1==mxUtils.getValue(f.style,"colspan",1)&&1==mxUtils.getValue(f.style,"rowspan",1))T++;else break}P==G*T-1&&(b.mergeCell=e[0],b.colspan=T,b.rowspan=G)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),0)};
EditorUi.prototype.createTimeout=function(b,e,g){var m=!0,u=null,p=mxUtils.bind(this,function(H){u.clear()&&(m=!1,H=null!=H?H:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(b,e,g)})},null!=g?g(H):this.handleError(H))}),B=window.setTimeout(p,null!=b?b:this.timeout);u={clear:function(){window.clearTimeout(B);return m},isAlive:function(){return m}};null!=e&&this.tryAndHandle(mxUtils.bind(this,function(){e(u)}),p);return u};
EditorUi.prototype.tryAndHandle=function(b,e){try{b()}catch(g){null!=e?e(g):this.handleError(g)}};
-EditorUi.prototype.removeUserDefinedDarkColors=function(b,e,g){var m=this.editor.graph;b=null!=b?b:m.getSelectionCells();var u=Graph.colorStyles,p=document.createElement("div");m.model.beginUpdate();try{for(var B=0;B<b.length;B++)if(m.model.isEdge(b[B])||m.model.isVertex(b[B])){var H=m.getCellStyle(b[B],!1);if(null!=H)for(var S=0;S<u.length;S++)try{var G=H[u[S]];if(mxUtils.isLightDarkColor(G)){var P=mxUtils.getLightDarkColor(G);m.setCellStyles(u[S],P.light,[b[B]])}}catch(c){}e&&m.isHtmlLabel(b[B])&&
+EditorUi.prototype.removeUserDefinedDarkColors=function(b,e,g){var m=this.editor.graph;b=null!=b?b:m.getSelectionCells();var u=Graph.colorStyles,p=document.createElement("div");m.model.beginUpdate();try{for(var B=0;B<b.length;B++)if(m.model.isEdge(b[B])||m.model.isVertex(b[B])){var H=m.getCellStyle(b[B],!1);if(null!=H)for(var T=0;T<u.length;T++)try{var G=H[u[T]];if(mxUtils.isLightDarkColor(G)){var P=mxUtils.getLightDarkColor(G);m.setCellStyles(u[T],P.light,[b[B]])}}catch(c){}e&&m.isHtmlLabel(b[B])&&
"0"!=mxUtils.getValue(H,"html","0")&&(p.innerHTML=Graph.sanitizeHtml(m.getLabel(b[B])),Graph.addLightDarkColors(p,null,null,function(c,f,l){return mxUtils.isLightDarkColor(l)?(l=mxUtils.getLightDarkColor(l),c.style.setProperty(f,l.light),!0):!1})&&m.cellLabelChanged(b[B],p.innerHTML))}if(g&&mxUtils.isLightDarkColor(m.background)){P=mxUtils.getLightDarkColor(m.background);var R=new ChangePageSetup(this,P.light);R.ignoreImage=!0;m.model.execute(R)}}finally{m.model.endUpdate()}return b};
EditorUi.prototype.updateSelectionStateForCell=function(b,e,g,m){g=this.editor.graph;b.cells.push(e);if(g.getModel().isVertex(e)){b.connections=0<g.model.getEdgeCount(e);b.unlocked=b.unlocked&&!g.isCellLocked(e);b.resizable=b.resizable&&g.isCellResizable(e);b.rotatable=b.rotatable&&g.isCellRotatable(e);b.movable=b.movable&&g.isCellMovable(e)&&!g.isTableRow(e)&&!g.isTableCell(e);b.swimlane=b.swimlane||g.isSwimlane(e);b.table=b.table||g.isTable(e);b.cell=b.cell||g.isTableCell(e);b.row=b.row||g.isTableRow(e);
b.vertices.push(e);var u=g.getCellGeometry(e);if(null!=u&&(0<u.width?null==b.width?b.width=u.width:b.width!=u.width&&(b.width=""):b.containsLabel=!0,0<u.height?null==b.height?b.height=u.height:b.height!=u.height&&(b.height=""):b.containsLabel=!0,!u.relative||null!=u.offset)){var p=u.relative?u.offset.x:u.x;u=u.relative?u.offset.y:u.y;null==b.x?b.x=p:b.x!=p&&(b.x="");null==b.y?b.y=u:b.y!=u&&(b.y="")}}else g.getModel().isEdge(e)&&(b.edges.push(e),b.connections=!0,b.resizable=!1,b.rotatable=!1,b.movable=
!1);p=g.view.getState(e);null!=p&&(b.html=b.html&&g.isHtmlLabel(e),b.autoSize=b.autoSize||g.isAutoSizeState(p),b.glass=b.glass&&g.isGlassState(p),b.rounded=b.rounded&&g.isRoundedState(p),b.lineJumps=b.lineJumps&&g.isLineJumpState(p),b.image=b.image||g.isImageState(p),b.shadow=b.shadow&&g.isShadowState(p),b.fill=b.fill&&g.isFillState(p),b.gradient=b.fill&&g.isGradientState(p),b.stroke=b.stroke&&g.isStrokeState(p),e=mxUtils.getValue(p.style,mxConstants.STYLE_SHAPE,null),b.containsImage=b.containsImage||
"image"==e,g.mergeStyle(p.style,b.style,m))};
-EditorUi.prototype.installShapePicker=function(){var b=this.editor.graph,e=this;b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(S,G){"mouseDown"==G.getProperty("eventName")&&e.hideShapePicker()}));var g=mxUtils.bind(this,function(){e.hideShapePicker(!0)});b.addListener("wheel",g);b.addListener(mxEvent.ESCAPE,g);b.view.addListener(mxEvent.SCALE,g);b.view.addListener(mxEvent.SCALE_AND_TRANSLATE,g);b.getSelectionModel().addListener(mxEvent.CHANGE,g);var m=b.popupMenuHandler.isMenuShowing;
-b.popupMenuHandler.isMenuShowing=function(){return m.apply(this,arguments)||null!=e.shapePicker||null!=e.currentMenu};var u=b.dblClick;b.dblClick=function(S,G){if(this.isEnabled())if(null!=G||null==e.sidebar||mxEvent.isShiftDown(S)||b.isCellLocked(b.getDefaultParent()))u.apply(this,arguments);else{var P=mxUtils.convertPoint(this.container,mxEvent.getClientX(S),mxEvent.getClientY(S));mxEvent.consume(S);window.setTimeout(mxUtils.bind(this,function(){e.showShapePicker(P.x,P.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",
-g);var p=this.hoverIcons.drag;this.hoverIcons.drag=function(){e.hideShapePicker();p.apply(this,arguments)};var B=this.hoverIcons.execute;this.hoverIcons.execute=function(S,G,P){var R=P.getEvent();this.graph.isCloneEvent(R)||mxEvent.isShiftDown(R)?B.apply(this,arguments):this.graph.connectVertex(S.cell,G,this.graph.defaultEdgeLength,R,null,null,mxUtils.bind(this,function(c,f,l){var t=b.getCompositeParent(S.cell);c=b.getCellGeometry(t);for(P.consume();null!=t&&b.model.isVertex(t)&&null!=c&&c.relative;)cell=
-t,t=b.model.getParent(cell),c=b.getCellGeometry(t);window.setTimeout(mxUtils.bind(this,function(){e.showShapePicker(P.getGraphX(),P.getGraphY(),t,mxUtils.bind(this,function(z){l(z);null!=e.hoverIcons&&e.hoverIcons.update(b.view.getState(z))}),G)}),30)}),mxUtils.bind(this,function(c){this.graph.selectCellsForConnectVertex(c,R,this)}))};var H=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(S,G){null!=H&&window.clearTimeout(H);H=window.setTimeout(mxUtils.bind(this,function(){var P=
+EditorUi.prototype.installShapePicker=function(){var b=this.editor.graph,e=this;b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(T,G){"mouseDown"==G.getProperty("eventName")&&e.hideShapePicker()}));var g=mxUtils.bind(this,function(){e.hideShapePicker(!0)});b.addListener("wheel",g);b.addListener(mxEvent.ESCAPE,g);b.view.addListener(mxEvent.SCALE,g);b.view.addListener(mxEvent.SCALE_AND_TRANSLATE,g);b.getSelectionModel().addListener(mxEvent.CHANGE,g);var m=b.popupMenuHandler.isMenuShowing;
+b.popupMenuHandler.isMenuShowing=function(){return m.apply(this,arguments)||null!=e.shapePicker||null!=e.currentMenu};var u=b.dblClick;b.dblClick=function(T,G){if(this.isEnabled())if(null!=G||null==e.sidebar||mxEvent.isShiftDown(T)||b.isCellLocked(b.getDefaultParent()))u.apply(this,arguments);else{var P=mxUtils.convertPoint(this.container,mxEvent.getClientX(T),mxEvent.getClientY(T));mxEvent.consume(T);window.setTimeout(mxUtils.bind(this,function(){e.showShapePicker(P.x,P.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",
+g);var p=this.hoverIcons.drag;this.hoverIcons.drag=function(){e.hideShapePicker();p.apply(this,arguments)};var B=this.hoverIcons.execute;this.hoverIcons.execute=function(T,G,P){var R=P.getEvent();this.graph.isCloneEvent(R)||mxEvent.isShiftDown(R)?B.apply(this,arguments):this.graph.connectVertex(T.cell,G,this.graph.defaultEdgeLength,R,null,null,mxUtils.bind(this,function(c,f,l){var t=b.getCompositeParent(T.cell);c=b.getCellGeometry(t);for(P.consume();null!=t&&b.model.isVertex(t)&&null!=c&&c.relative;)cell=
+t,t=b.model.getParent(cell),c=b.getCellGeometry(t);window.setTimeout(mxUtils.bind(this,function(){e.showShapePicker(P.getGraphX(),P.getGraphY(),t,mxUtils.bind(this,function(z){l(z);null!=e.hoverIcons&&e.hoverIcons.update(b.view.getState(z))}),G)}),30)}),mxUtils.bind(this,function(c){this.graph.selectCellsForConnectVertex(c,R,this)}))};var H=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(T,G){null!=H&&window.clearTimeout(H);H=window.setTimeout(mxUtils.bind(this,function(){var P=
G.getProperty("arrow"),R=G.getProperty("direction"),c=G.getProperty("event");P=P.getBoundingClientRect();var f=mxUtils.getOffset(b.container),l=b.container.scrollLeft+P.x-f.x;f=b.container.scrollTop+P.y-f.y;var t=b.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),z=e.showShapePicker(l,f,t,mxUtils.bind(this,function(C){null!=C&&b.connectVertex(t,R,b.defaultEdgeLength,c,!0,!1,function(F,N,K){K(C);null!=e.hoverIcons&&e.hoverIcons.update(b.view.getState(C))},
-function(F){b.selectCellsForConnectVertex(F)},c,this.hoverIcons)}),R,!0);null!=z&&(this.centerShapePicker(z,P,l,f,R),mxUtils.setOpacity(z,30),mxEvent.addListener(z,"mouseenter",function(){mxUtils.setOpacity(z,100)}),mxEvent.addListener(z,"mouseleave",function(){e.hideShapePicker()}))}),Editor.shapePickerHoverDelay)}));this.hoverIcons.addListener("blur",mxUtils.bind(this,function(S,G){null!=H&&window.clearTimeout(H)}))}};
+function(F){b.selectCellsForConnectVertex(F)},c,this.hoverIcons)}),R,!0);null!=z&&(this.centerShapePicker(z,P,l,f,R),mxUtils.setOpacity(z,30),mxEvent.addListener(z,"mouseenter",function(){mxUtils.setOpacity(z,100)}),mxEvent.addListener(z,"mouseleave",function(){e.hideShapePicker()}))}),Editor.shapePickerHoverDelay)}));this.hoverIcons.addListener("blur",mxUtils.bind(this,function(T,G){null!=H&&window.clearTimeout(H)}))}};
EditorUi.prototype.centerShapePicker=function(b,e,g,m,u){if(u==mxConstants.DIRECTION_EAST||u==mxConstants.DIRECTION_WEST)b.style.width="40px";var p=b.getBoundingClientRect();u==mxConstants.DIRECTION_NORTH?(g-=p.width/2-10,m-=p.height+6):u==mxConstants.DIRECTION_SOUTH?(g-=p.width/2-10,m+=e.height+6):u==mxConstants.DIRECTION_WEST?(g-=p.width+6,m-=p.height/2-10):u==mxConstants.DIRECTION_EAST&&(g+=e.width+6,m-=p.height/2-10);b.style.left=g+"px";b.style.top=m+"px"};
-EditorUi.prototype.showShapePicker=function(b,e,g,m,u,p,B,H,S){var G=null;this.editor.graph.freehand.isDrawing()||(H=H||null==g,G=this.createShapePicker(b,e,g,m,u,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(g,p,H),p,B,H,S),null!=G&&(null==this.hoverIcons||p||this.hoverIcons.reset(),b=this.editor.graph,b.popupMenuHandler.hideMenu(),b.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=m,this.shapePicker=G));return G};
-EditorUi.prototype.createShapePicker=function(b,e,g,m,u,p,B,H,S,G,P){P=null!=P?P:!0;var R=this.editor.graph,c=null;S=null!=S?S:function(t){t=t[0];var z=0,C=0,F=t.geometry;null!=F&&(R.model.isEdge(t)&&(t=F.getTerminalPoint(!1),F=new mxRectangle(0,0,t.x,t.y)),z=F.width/2,C=F.height/2);return new mxPoint(R.snap(Math.round(b/R.view.scale)-R.view.translate.x-z),R.snap(Math.round(e/R.view.scale)-R.view.translate.y-C))};if(null!=B&&0<B.length){var f=this;R=this.editor.graph;c=document.createElement("div");
+EditorUi.prototype.showShapePicker=function(b,e,g,m,u,p,B,H,T){var G=null;this.editor.graph.freehand.isDrawing()||(H=H||null==g,G=this.createShapePicker(b,e,g,m,u,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(g,p,H),p,B,H,T),null!=G&&(null==this.hoverIcons||p||this.hoverIcons.reset(),b=this.editor.graph,b.popupMenuHandler.hideMenu(),b.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=m,this.shapePicker=G));return G};
+EditorUi.prototype.createShapePicker=function(b,e,g,m,u,p,B,H,T,G,P){P=null!=P?P:!0;var R=this.editor.graph,c=null;T=null!=T?T:function(t){t=t[0];var z=0,C=0,F=t.geometry;null!=F&&(R.model.isEdge(t)&&(t=F.getTerminalPoint(!1),F=new mxRectangle(0,0,t.x,t.y)),z=F.width/2,C=F.height/2);return new mxPoint(R.snap(Math.round(b/R.view.scale)-R.view.translate.x-z),R.snap(Math.round(e/R.view.scale)-R.view.translate.y-C))};if(null!=B&&0<B.length){var f=this;R=this.editor.graph;c=document.createElement("div");
u=R.view.getState(g);var l=null==g||null!=u&&R.isTransparentState(u)?null:R.copyStyle(g);u=6>B.length?35*B.length:140;c.className="geToolbarContainer geSidebarContainer geShapePicker";c.setAttribute("title",mxResources.get("sidebarTooltip"));c.style.left=Math.round(b)+"px";c.style.top=Math.round(e)+"px";c.style.width=u+"px";mxClient.IS_POINTER&&(c.style.touchAction="none");H||mxUtils.setPrefixedStyle(c.style,"transform","translate(-22px,-22px)");R.container.appendChild(c);u=mxUtils.bind(this,function(t){var z=
document.createElement("a");z.className="geToolbarButton";z.style.display="inline-block";z.style.position="relative";z.style.overflow="hidden";z.style.cursor="pointer";z.style.width="30px";z.style.height="30px";z.style.padding="1px";c.appendChild(z);null!=l&&"1"!=urlParams.sketch?this.sidebar.graph.pasteStyle(l,[t]):this.sidebar.graph.pasteCellStyles([t],R.currentVertexStyle,R.currentEdgeStyle);var C=t.geometry;R.model.isEdge(t)&&(C=C.getTerminalPoint(!1),C=new mxRectangle(0,0,C.x,C.y));null!=C&&
-z.appendChild(this.sidebar.createVertexTemplateFromCells([t],C.width,C.height,"",!0,!1,null,!1,mxUtils.bind(this,function(F){if(!mxEvent.isShiftDown(F)||null==g&&R.isSelectionEmpty()){var N=R.cloneCell(t);if(null!=m)m(N);else{var K=S([N]);R.model.isEdge(N)?N.geometry.translate(K.x,K.y):(N.geometry.x=K.x,N.geometry.y=K.y);R.model.beginUpdate();try{R.addCell(N),R.model.isVertex(N)&&R.isAutoSizeCell(N)&&R.updateCellSize(N)}finally{R.model.endUpdate()}R.setSelectionCell(N);R.scrollCellToVisible(N);P&&
+z.appendChild(this.sidebar.createVertexTemplateFromCells([t],C.width,C.height,"",!0,!1,null,!1,mxUtils.bind(this,function(F){if(!mxEvent.isShiftDown(F)||null==g&&R.isSelectionEmpty()){var N=R.cloneCell(t);if(null!=m)m(N);else{var K=T([N]);R.model.isEdge(N)?N.geometry.translate(K.x,K.y):(N.geometry.x=K.x,N.geometry.y=K.y);R.model.beginUpdate();try{R.addCell(N),R.model.isVertex(N)&&R.isAutoSizeCell(N)&&R.updateCellSize(N)}finally{R.model.endUpdate()}R.setSelectionCell(N);R.scrollCellToVisible(N);P&&
R.startEditing(N);null!=f.hoverIcons&&f.hoverIcons.update(R.view.getState(N))}}else N=R.getEditableCells(null!=g?[g]:R.getSelectionCells()),R.updateShapes(t,N);null!=p&&p(F);mxEvent.consume(F)}),25,25,null,null,g))});for(G=0;G<(H?Math.min(B.length,4):B.length);G++)u(B[G]);B=c.offsetTop+c.clientHeight-(R.container.scrollTop+R.container.offsetHeight);0<B&&(c.style.top=Math.max(R.container.scrollTop+22,e-B)+"px");B=c.offsetLeft+c.clientWidth-(R.container.scrollLeft+R.container.offsetWidth);0<B&&(c.style.left=
Math.max(R.container.scrollLeft+22,b-B)+"px")}return c};
-EditorUi.prototype.getCellsForShapePicker=function(b,e,g){var m=this.editor.graph,u=mxUtils.bind(this,function(p,B,H,S){return m.createVertex(null,null,S||"",0,0,B||120,H||60,p,!1)});e=mxUtils.bind(this,function(p,B,H){p=new mxCell(H||"",new mxGeometry(0,0,m.defaultEdgeLength+20,0),p);p.geometry.setTerminalPoint(new mxPoint(0,0),!0);p.geometry.setTerminalPoint(new mxPoint(p.geometry.width,null!=B?B:0),!1);p.geometry.points=null!=B?[new mxPoint(p.geometry.width/2,B)]:[];p.geometry.relative=!0;p.edge=
+EditorUi.prototype.getCellsForShapePicker=function(b,e,g){var m=this.editor.graph,u=mxUtils.bind(this,function(p,B,H,T){return m.createVertex(null,null,T||"",0,0,B||120,H||60,p,!1)});e=mxUtils.bind(this,function(p,B,H){p=new mxCell(H||"",new mxGeometry(0,0,m.defaultEdgeLength+20,0),p);p.geometry.setTerminalPoint(new mxPoint(0,0),!0);p.geometry.setTerminalPoint(new mxPoint(p.geometry.width,null!=B?B:0),!1);p.geometry.points=null!=B?[new mxPoint(p.geometry.width/2,B)]:[];p.geometry.relative=!0;p.edge=
!0;return p});if(null!=b)try{b=m.cloneCell(b),m.model.isVertex(b)&&null!=b.geometry&&(b.geometry.x=0,b.geometry.y=0)}catch(p){b=null}null==b&&(b=u(m.appendFontSize("text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;",m.vertexFontSize),40,20,"Text"),m.model.isVertex(b)&&m.isAutoSizeCell(b)&&Graph.createOffscreenGraph(m.getStylesheet()).updateCellSize(b));b=[b,u("whiteSpace=wrap;html=1;"),u("ellipse;whiteSpace=wrap;html=1;",80,80),u("rhombus;whiteSpace=wrap;html=1;",
80,80),u("rounded=1;whiteSpace=wrap;html=1;"),u("shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;"),u("shape=trapezoid;perimeter=trapezoidPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,60),u("shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;",120,80),u("shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,80),u("shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;"),u("triangle;whiteSpace=wrap;html=1;",
60,80),u("shape=document;whiteSpace=wrap;html=1;boundedLbl=1;",120,80),u("shape=tape;whiteSpace=wrap;html=1;",120,100),u("ellipse;shape=cloud;whiteSpace=wrap;html=1;",120,80),u("shape=singleArrow;whiteSpace=wrap;html=1;arrowWidth=0.4;arrowSize=0.4;",80,60),u("shape=waypoint;sketch=0;size=6;pointerEvents=1;points=[];fillColor=none;resizable=0;rotatable=0;perimeter=centerPerimeter;snapToPoint=1;",20,20)];g&&(b=b.concat([e("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;"),e("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;endArrow=classic;startArrow=classic;endSize=8;startSize=8;"),
@@ -2117,46 +2117,46 @@ e?Format.blockMarkerImage.src:Format.blockFilledMarkerImage.src:b==mxConstants.A
e?Format.doubleBlockMarkerImage.src:Format.doubleBlockFilledMarkerImage.src:"box"==b?Format.boxMarkerImage.src:"halfCircle"==b?Format.halfCircleMarkerImage.src:"openAsync"==b?Format.openAsyncFilledMarkerImage.src:"async"==b?"1"!=e?Format.asyncMarkerImage.src:Format.asyncFilledMarkerImage.src:"dash"==b?Format.dashMarkerImage.src:"baseDash"==b?Format.baseDashMarkerImage.src:"cross"==b?Format.crossMarkerImage.src:"circle"==b?Format.circleMarkerImage.src:"circlePlus"==b?Format.circlePlusMarkerImage.src:
"ERone"==b?Format.EROneMarkerImage.src:"ERmandOne"==b?Format.ERmandOneMarkerImage.src:"ERmany"==b?Format.ERmanyMarkerImage.src:"ERoneToMany"==b?Format.ERoneToManyMarkerImage.src:"ERzeroToOne"==b?Format.ERzeroToOneMarkerImage.src:"ERzeroToMany"==b?Format.ERzeroToManyMarkerImage.src:null};EditorUi.prototype.createMenus=function(){return null};
EditorUi.prototype.updatePasteActionStates=function(){var b=this.editor.graph,e=this.actions.get("paste"),g=this.actions.get("pasteHere");e.setEnabled(this.editor.graph.cellEditor.isContentEditing()||(!mxClient.IS_FF&&null!=navigator.clipboard||!mxClipboard.isEmpty())&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent()));g.setEnabled(e.isEnabled())};
-EditorUi.prototype.initClipboard=function(){var b=this,e=mxClipboard.cut;mxClipboard.cut=function(p){p.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):e.apply(this,arguments);b.updatePasteActionStates()};mxClipboard.copy=function(p){var B=null;if(p.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{B=B||p.getSelectionCells();B=p.getExportableCells(p.model.getTopmostCells(B));for(var H={},S=p.createCellLookup(B),G=p.cloneCells(B,null,H),P=new mxGraphModel,R=P.getChildAt(P.getRoot(),
-0),c=0;c<G.length;c++){P.add(R,G[c]);var f=p.view.getState(B[c]);if(null!=f){var l=p.getCellGeometry(G[c]);null!=l&&l.relative&&!P.isEdge(B[c])&&null==S[mxObjectIdentity.get(P.getParent(B[c]))]&&(l.offset=null,l.relative=!1,l.x=f.x/f.view.scale-f.view.translate.x,l.y=f.y/f.view.scale-f.view.translate.y)}}p.updateCustomLinks(p.createCellMapping(H,S),G);mxClipboard.insertCount=1;mxClipboard.setCells(G)}b.updatePasteActionStates();return B};var g=mxClipboard.paste;mxClipboard.paste=function(p){var B=
+EditorUi.prototype.initClipboard=function(){var b=this,e=mxClipboard.cut;mxClipboard.cut=function(p){p.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):e.apply(this,arguments);b.updatePasteActionStates()};mxClipboard.copy=function(p){var B=null;if(p.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{B=B||p.getSelectionCells();B=p.getExportableCells(p.model.getTopmostCells(B));for(var H={},T=p.createCellLookup(B),G=p.cloneCells(B,null,H),P=new mxGraphModel,R=P.getChildAt(P.getRoot(),
+0),c=0;c<G.length;c++){P.add(R,G[c]);var f=p.view.getState(B[c]);if(null!=f){var l=p.getCellGeometry(G[c]);null!=l&&l.relative&&!P.isEdge(B[c])&&null==T[mxObjectIdentity.get(P.getParent(B[c]))]&&(l.offset=null,l.relative=!1,l.x=f.x/f.view.scale-f.view.translate.x,l.y=f.y/f.view.scale-f.view.translate.y)}}p.updateCustomLinks(p.createCellMapping(H,T),G);mxClipboard.insertCount=1;mxClipboard.setCells(G)}b.updatePasteActionStates();return B};var g=mxClipboard.paste;mxClipboard.paste=function(p){var B=
null;p.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):B=g.apply(this,arguments);b.updatePasteActionStates();return B};var m=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){m.apply(this,arguments);b.updatePasteActionStates()};var u=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(p,B){u.apply(this,arguments);b.updatePasteActionStates()};this.updatePasteActionStates()};
EditorUi.prototype.lazyZoomDelay=20;EditorUi.prototype.wheelZoomDelay=500;EditorUi.prototype.buttonZoomDelay=600;
-EditorUi.prototype.initCanvas=function(){var b=this.editor.graph;b.timerAutoScroll=!0;b.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((b.container.offsetWidth-34)/b.view.scale)),Math.max(0,Math.round((b.container.offsetHeight-34)/b.view.scale)))};b.view.getBackgroundPageBounds=function(){var O=this.graph.getPageLayout(),T=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+O.x*T.width),this.scale*(this.translate.y+O.y*T.height),this.scale*O.width*T.width,
-this.scale*O.height*T.height)};b.getPreferredPageSize=function(O,T,X){O=this.getPageLayout();T=this.getPageSize();return new mxRectangle(0,0,O.width*T.width,O.height*T.height)};var e=null,g=this;if(this.editor.isChromelessView()){this.chromelessResize=e=mxUtils.bind(this,function(O,T,X,aa){if(null!=b.container&&!b.isViewer()){X=null!=X?X:0;aa=null!=aa?aa:0;var ja=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),pa=mxUtils.hasScrollbars(b.container),sa=b.view.translate,qa=b.view.scale,
-wa=mxRectangle.fromRectangle(ja);wa.x=wa.x/qa-sa.x;wa.y=wa.y/qa-sa.y;wa.width/=qa;wa.height/=qa;sa=b.container.scrollTop;var Ba=b.container.scrollLeft,za=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)za+=3;var Ea=b.container.offsetWidth-za;za=b.container.offsetHeight-za;O=O?Math.max(.3,Math.min(T||1,Ea/wa.width)):qa;T=(Ea-O*wa.width)/2/O;var ra=0==this.lightboxVerticalDivider?0:(za-O*wa.height)/this.lightboxVerticalDivider/O;pa&&(T=Math.max(T,0),ra=Math.max(ra,
-0));if(pa||ja.width<Ea||ja.height<za)b.view.scaleAndTranslate(O,Math.floor(T-wa.x),Math.floor(ra-wa.y)),b.container.scrollTop=sa*O/qa,b.container.scrollLeft=Ba*O/qa;else if(0!=X||0!=aa)ja=b.view.translate,b.view.setTranslate(Math.floor(ja.x+X/qa),Math.floor(ja.y+aa/qa))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var m=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",m);this.destroyFunctions.push(function(){mxEvent.removeListener(window,
+EditorUi.prototype.initCanvas=function(){var b=this.editor.graph;b.timerAutoScroll=!0;b.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((b.container.offsetWidth-34)/b.view.scale)),Math.max(0,Math.round((b.container.offsetHeight-34)/b.view.scale)))};b.view.getBackgroundPageBounds=function(){var O=this.graph.getPageLayout(),S=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+O.x*S.width),this.scale*(this.translate.y+O.y*S.height),this.scale*O.width*S.width,
+this.scale*O.height*S.height)};b.getPreferredPageSize=function(O,S,X){O=this.getPageLayout();S=this.getPageSize();return new mxRectangle(0,0,O.width*S.width,O.height*S.height)};var e=null,g=this;if(this.editor.isChromelessView()){this.chromelessResize=e=mxUtils.bind(this,function(O,S,X,aa){if(null!=b.container&&!b.isViewer()){X=null!=X?X:0;aa=null!=aa?aa:0;var ja=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),pa=mxUtils.hasScrollbars(b.container),sa=b.view.translate,qa=b.view.scale,
+wa=mxRectangle.fromRectangle(ja);wa.x=wa.x/qa-sa.x;wa.y=wa.y/qa-sa.y;wa.width/=qa;wa.height/=qa;sa=b.container.scrollTop;var Ba=b.container.scrollLeft,za=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)za+=3;var Ea=b.container.offsetWidth-za;za=b.container.offsetHeight-za;O=O?Math.max(.3,Math.min(S||1,Ea/wa.width)):qa;S=(Ea-O*wa.width)/2/O;var ra=0==this.lightboxVerticalDivider?0:(za-O*wa.height)/this.lightboxVerticalDivider/O;pa&&(S=Math.max(S,0),ra=Math.max(ra,
+0));if(pa||ja.width<Ea||ja.height<za)b.view.scaleAndTranslate(O,Math.floor(S-wa.x),Math.floor(ra-wa.y)),b.container.scrollTop=sa*O/qa,b.container.scrollLeft=Ba*O/qa;else if(0!=X||0!=aa)ja=b.view.translate,b.view.setTranslate(Math.floor(ja.x+X/qa),Math.floor(ja.y+aa/qa))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var m=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",m);this.destroyFunctions.push(function(){mxEvent.removeListener(window,
"resize",m)});this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.chromelessResize(!0)}));this.actions.get("zoomIn").funct=mxUtils.bind(this,function(O){b.zoomIn();this.chromelessResize(!1)});this.actions.get("zoomOut").funct=mxUtils.bind(this,function(O){b.zoomOut();this.chromelessResize(!1)});if("0"!=urlParams.toolbar){var u=JSON.parse(decodeURIComponent(urlParams["toolbar-config"]||"{}"));this.chromelessToolbar=document.createElement("div");this.chromelessToolbar.style.position=
"fixed";this.chromelessToolbar.style.overflow="hidden";this.chromelessToolbar.style.boxSizing="border-box";this.chromelessToolbar.style.whiteSpace="nowrap";this.chromelessToolbar.style.padding="10px 10px 8px 10px";this.chromelessToolbar.style.left=b.isViewer()?"0":"50%";mxClient.IS_IE||mxClient.IS_IE11?(this.chromelessToolbar.style.backgroundColor="#ffffff",this.chromelessToolbar.style.border="3px solid black"):this.chromelessToolbar.style.backgroundColor="#000000";mxUtils.setPrefixedStyle(this.chromelessToolbar.style,
-"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transition","opacity 600ms ease-in-out");var p=mxUtils.bind(this,function(){var O=mxUtils.getCurrentStyle(b.container);b.isViewer()?this.chromelessToolbar.style.top="0":this.chromelessToolbar.style.bottom=(null!=O?parseInt(O["margin-bottom"]||0):0)+(null!=this.tabContainer?20+parseInt(this.tabContainer.style.height):20)+"px"});this.editor.addListener("resetGraphView",p);p();var B=0;p=mxUtils.bind(this,function(O,T,X){B++;
-var aa=document.createElement("span");aa.style.paddingLeft="8px";aa.style.paddingRight="8px";aa.style.cursor="pointer";mxEvent.addListener(aa,"click",O);null!=X&&aa.setAttribute("title",X);O=document.createElement("img");O.setAttribute("border","0");O.setAttribute("src",T);O.style.width="36px";O.style.filter="invert(100%)";aa.appendChild(O);this.chromelessToolbar.appendChild(aa);return aa});if(null!=u.backBtn){var H=Graph.sanitizeLink(u.backBtn.url);null!=H&&p(mxUtils.bind(this,function(O){window.location.href=
-H;mxEvent.consume(O)}),Editor.backImage,mxResources.get("back",null,"Back"))}if(this.isPagesEnabled()){var S=p(mxUtils.bind(this,function(O){this.actions.get("previousPage").funct();mxEvent.consume(O)}),Editor.previousImage,mxResources.get("previousPage")),G=document.createElement("div");G.style.fontFamily=Editor.defaultHtmlFont;G.style.display="inline-block";G.style.verticalAlign="top";G.style.fontWeight="bold";G.style.marginTop="8px";G.style.fontSize="14px";G.style.cursor="default";G.style.color=
+"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transition","opacity 600ms ease-in-out");var p=mxUtils.bind(this,function(){var O=mxUtils.getCurrentStyle(b.container);b.isViewer()?this.chromelessToolbar.style.top="0":this.chromelessToolbar.style.bottom=(null!=O?parseInt(O["margin-bottom"]||0):0)+(null!=this.tabContainer?20+parseInt(this.tabContainer.style.height):20)+"px"});this.editor.addListener("resetGraphView",p);p();var B=0;p=mxUtils.bind(this,function(O,S,X){B++;
+var aa=document.createElement("span");aa.style.paddingLeft="8px";aa.style.paddingRight="8px";aa.style.cursor="pointer";mxEvent.addListener(aa,"click",O);null!=X&&aa.setAttribute("title",X);O=document.createElement("img");O.setAttribute("border","0");O.setAttribute("src",S);O.style.width="36px";O.style.filter="invert(100%)";aa.appendChild(O);this.chromelessToolbar.appendChild(aa);return aa});if(null!=u.backBtn){var H=Graph.sanitizeLink(u.backBtn.url);null!=H&&p(mxUtils.bind(this,function(O){window.location.href=
+H;mxEvent.consume(O)}),Editor.backImage,mxResources.get("back",null,"Back"))}if(this.isPagesEnabled()){var T=p(mxUtils.bind(this,function(O){this.actions.get("previousPage").funct();mxEvent.consume(O)}),Editor.previousImage,mxResources.get("previousPage")),G=document.createElement("div");G.style.fontFamily=Editor.defaultHtmlFont;G.style.display="inline-block";G.style.verticalAlign="top";G.style.fontWeight="bold";G.style.marginTop="8px";G.style.fontSize="14px";G.style.cursor="default";G.style.color=
mxClient.IS_IE||mxClient.IS_IE11?"#000000":"#ffffff";this.chromelessToolbar.appendChild(G);var P=p(mxUtils.bind(this,function(O){this.actions.get("nextPage").funct();mxEvent.consume(O)}),Editor.nextImage,mxResources.get("nextPage")),R=mxUtils.bind(this,function(){if(null!=this.pages&&1<this.pages.length&&null!=this.currentPage){G.innerText="";var O=mxUtils.indexOf(this.pages,this.currentPage);mxUtils.write(G,O+1+" / "+this.pages.length);G.setAttribute("title",mxResources.get("currentPage")+": "+this.currentPage.getName());
-S.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.mod(O-1,this.pages.length)].getName());P.setAttribute("title",mxResources.get("nextPage")+": "+this.pages[mxUtils.mod(O+1,this.pages.length)].getName())}});S.style.paddingLeft="0px";S.style.paddingRight="4px";P.style.paddingLeft="4px";P.style.paddingRight="0px";var c=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(P.style.display="",S.style.display="",G.style.display="inline-block"):
-(P.style.display="none",S.style.display="none",G.style.display="none");R()});if(null!=this.menus){var f=this.menus.get("pages");null!=f&&mxEvent.addListener(G,"click",mxUtils.bind(this,function(O){var T=new mxPopupMenu(f.funct);T.div.className+=" geMenubarMenu";T.smartSeparators=!0;T.showDisabled=!0;T.autoExpand=!0;T.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(T,arguments);T.destroy()});var X=mxUtils.getOffset(G);T.popup(X.x,X.y+G.offsetHeight,null,O);mxEvent.addListener(T.div,
-"mouseleave",mxUtils.bind(this,function(){T.hideMenu()}))}))}this.editor.addListener("resetGraphView",c);this.editor.addListener("pageSelected",R)}p(mxUtils.bind(this,function(O){this.actions.get("zoomOut").funct();mxEvent.consume(O)}),Editor.zoomOutImage,mxResources.get("zoomOut")+" (Alt+Mousewheel)");p(mxUtils.bind(this,function(O){this.actions.get("zoomIn").funct();mxEvent.consume(O)}),Editor.zoomInImage,mxResources.get("zoomIn")+" (Alt+Mousewheel)");p(mxUtils.bind(this,function(O){b.isLightboxView()?
+T.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.mod(O-1,this.pages.length)].getName());P.setAttribute("title",mxResources.get("nextPage")+": "+this.pages[mxUtils.mod(O+1,this.pages.length)].getName())}});T.style.paddingLeft="0px";T.style.paddingRight="4px";P.style.paddingLeft="4px";P.style.paddingRight="0px";var c=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(P.style.display="",T.style.display="",G.style.display="inline-block"):
+(P.style.display="none",T.style.display="none",G.style.display="none");R()});if(null!=this.menus){var f=this.menus.get("pages");null!=f&&mxEvent.addListener(G,"click",mxUtils.bind(this,function(O){var S=new mxPopupMenu(f.funct);S.div.className+=" geMenubarMenu";S.smartSeparators=!0;S.showDisabled=!0;S.autoExpand=!0;S.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(S,arguments);S.destroy()});var X=mxUtils.getOffset(G);S.popup(X.x,X.y+G.offsetHeight,null,O);mxEvent.addListener(S.div,
+"mouseleave",mxUtils.bind(this,function(){S.hideMenu()}))}))}this.editor.addListener("resetGraphView",c);this.editor.addListener("pageSelected",R)}p(mxUtils.bind(this,function(O){this.actions.get("zoomOut").funct();mxEvent.consume(O)}),Editor.zoomOutImage,mxResources.get("zoomOut")+" (Alt+Mousewheel)");p(mxUtils.bind(this,function(O){this.actions.get("zoomIn").funct();mxEvent.consume(O)}),Editor.zoomInImage,mxResources.get("zoomIn")+" (Alt+Mousewheel)");p(mxUtils.bind(this,function(O){b.isLightboxView()?
(1==b.view.scale?this.lightboxFit():b.zoomTo(1),this.chromelessResize(!1)):this.chromelessResize(!0);mxEvent.consume(O)}),Editor.zoomFitImage,mxResources.get("fit"));var l=null,t=null,z=mxUtils.bind(this,function(O){null!=l&&(window.clearTimeout(l),l=null);null!=t&&(window.clearTimeout(t),t=null);l=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(this.chromelessToolbar,0);l=null;t=window.setTimeout(mxUtils.bind(this,function(){this.chromelessToolbar.style.display="none";t=null}),
600)}),O||200)}),C=mxUtils.bind(this,function(O){null!=l&&(window.clearTimeout(l),l=null);null!=t&&(window.clearTimeout(t),t=null);this.chromelessToolbar.style.display="";mxUtils.setOpacity(this.chromelessToolbar,O||30)});if("1"==urlParams.layers){this.layersDialog=null;var F=p(mxUtils.bind(this,function(O){if(null!=this.layersDialog)this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null;else{this.layersDialog=b.createLayersDialog(mxUtils.bind(this,function(){this.chromelessResize&&
-this.chromelessResize()}),!0);mxEvent.addListener(this.layersDialog,"mouseleave",mxUtils.bind(this,function(){this.layersDialog.parentNode.removeChild(this.layersDialog);this.layersDialog=null}));var T=F.getBoundingClientRect();mxUtils.setPrefixedStyle(this.layersDialog.style,"borderRadius","5px");this.layersDialog.style.position="fixed";this.layersDialog.style.fontFamily=Editor.defaultHtmlFont;this.layersDialog.style.width="160px";this.layersDialog.style.padding="4px 2px 4px 2px";this.layersDialog.style.left=
-T.left+"px";this.layersDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";mxClient.IS_IE||mxClient.IS_IE11?(this.layersDialog.style.backgroundColor="#ffffff",this.layersDialog.style.border="2px solid black",this.layersDialog.style.color="#000000"):(this.layersDialog.style.backgroundColor="#000000",this.layersDialog.style.color="#ffffff",mxUtils.setOpacity(this.layersDialog,80));T=mxUtils.getCurrentStyle(this.editor.graph.container);this.layersDialog.style.zIndex=
-T.zIndex;document.body.appendChild(this.layersDialog);this.editor.fireEvent(new mxEventObject("layersDialogShown"))}mxEvent.consume(O)}),Editor.layersImage,mxResources.get("layers")),N=b.getModel();N.addListener(mxEvent.CHANGE,function(){F.style.display=1<N.getChildCount(N.root)?"":"none"})}("1"!=urlParams.openInSameWin||navigator.standalone)&&this.addChromelessToolbarItems(p);null==this.editor.editButtonLink&&null==this.editor.editButtonFunc||p(mxUtils.bind(this,function(O){null!=this.editor.editButtonFunc?
+this.chromelessResize()}),!0);mxEvent.addListener(this.layersDialog,"mouseleave",mxUtils.bind(this,function(){this.layersDialog.parentNode.removeChild(this.layersDialog);this.layersDialog=null}));var S=F.getBoundingClientRect();mxUtils.setPrefixedStyle(this.layersDialog.style,"borderRadius","5px");this.layersDialog.style.position="fixed";this.layersDialog.style.fontFamily=Editor.defaultHtmlFont;this.layersDialog.style.width="160px";this.layersDialog.style.padding="4px 2px 4px 2px";this.layersDialog.style.left=
+S.left+"px";this.layersDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";mxClient.IS_IE||mxClient.IS_IE11?(this.layersDialog.style.backgroundColor="#ffffff",this.layersDialog.style.border="2px solid black",this.layersDialog.style.color="#000000"):(this.layersDialog.style.backgroundColor="#000000",this.layersDialog.style.color="#ffffff",mxUtils.setOpacity(this.layersDialog,80));S=mxUtils.getCurrentStyle(this.editor.graph.container);this.layersDialog.style.zIndex=
+S.zIndex;document.body.appendChild(this.layersDialog);this.editor.fireEvent(new mxEventObject("layersDialogShown"))}mxEvent.consume(O)}),Editor.layersImage,mxResources.get("layers")),N=b.getModel();N.addListener(mxEvent.CHANGE,function(){F.style.display=1<N.getChildCount(N.root)?"":"none"})}("1"!=urlParams.openInSameWin||navigator.standalone)&&this.addChromelessToolbarItems(p);null==this.editor.editButtonLink&&null==this.editor.editButtonFunc||p(mxUtils.bind(this,function(O){null!=this.editor.editButtonFunc?
this.editor.editButtonFunc():"_blank"==this.editor.editButtonLink?this.editor.editAsNew(this.getEditBlankXml()):b.openLink(this.editor.editButtonLink,"editWindow");mxEvent.consume(O)}),Editor.editImage,mxResources.get("edit"));if(null!=this.lightboxToolbarActions)for(c=0;c<this.lightboxToolbarActions.length;c++){var K=this.lightboxToolbarActions[c];K.elem=p(K.fn,K.icon,K.tooltip)}if(null!=u.refreshBtn){var J=null==u.refreshBtn.url?null:Graph.sanitizeLink(u.refreshBtn.url);p(mxUtils.bind(this,function(O){null!=
J?window.location.href=J:window.location.reload();mxEvent.consume(O)}),Editor.refreshImage,mxResources.get("refresh",null,"Refresh"))}null!=u.fullscreenBtn&&window.self!==window.top&&p(mxUtils.bind(this,function(O){u.fullscreenBtn.url?b.openLink(u.fullscreenBtn.url):b.openLink(window.location.href);mxEvent.consume(O)}),Editor.fullscreenImage,mxResources.get("openInNewWindow",null,"Open in New Window"));!u.noCloseBtn&&(u.closeBtn&&window.self===window.top||b.lightbox&&("1"==urlParams.close||this.container!=
document.body))&&p(mxUtils.bind(this,function(O){"1"==urlParams.close||u.closeBtn?window.close():(this.destroy(),mxEvent.consume(O))}),Editor.closeImage,mxResources.get("close")+" (Escape)");this.chromelessToolbar.style.display="none";b.isViewer()||mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transform","translate(-50%,0)");b.container.appendChild(this.chromelessToolbar);mxEvent.addListener(b.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(O){mxEvent.isTouchEvent(O)||
(mxEvent.isShiftDown(O)||C(30),z())}));mxEvent.addListener(this.chromelessToolbar,mxClient.IS_POINTER?"pointermove":"mousemove",function(O){mxEvent.consume(O)});mxEvent.addListener(this.chromelessToolbar,"mouseenter",mxUtils.bind(this,function(O){b.tooltipHandler.resetTimer();b.tooltipHandler.hideTooltip();mxEvent.isShiftDown(O)?z():C(100)}));mxEvent.addListener(this.chromelessToolbar,"mousemove",mxUtils.bind(this,function(O){mxEvent.isShiftDown(O)?z():C(100);mxEvent.consume(O)}));mxEvent.addListener(this.chromelessToolbar,
-"mouseleave",mxUtils.bind(this,function(O){mxEvent.isTouchEvent(O)||C(30)}));var da=b.getTolerance();b.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(O,T){this.startX=T.getGraphX();this.startY=T.getGraphY();this.scrollLeft=b.container.scrollLeft;this.scrollTop=b.container.scrollTop},mouseMove:function(O,T){},mouseUp:function(O,T){mxEvent.isTouchEvent(T.getEvent())&&Math.abs(this.scrollLeft-b.container.scrollLeft)<da&&Math.abs(this.scrollTop-b.container.scrollTop)<
-da&&Math.abs(this.startX-T.getGraphX())<da&&Math.abs(this.startY-T.getGraphY())<da&&(0<parseFloat(g.chromelessToolbar.style.opacity||0)?z():C(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var ea=b.view.validate,ca=new mxPoint,W=!1,ba=null;b.view.validate=function(){if(null!=b.container&&mxUtils.hasScrollbars(b.container)){if(null!=g.currentPage&&ba!=g.currentPage){ba=g.currentPage;W=!0;var O=b.getBoundingBoxFromGeometry(b.model.getCells(),!0,null,
-!0);null==O&&(O=new mxRectangle(b.view.translate.x*b.view.scale,b.view.translate.y*b.view.scale));O=b.getPageLayout(O,ca,1);var T=b.getDefaultTranslate(O);this.x0=O.x;this.y0=O.y;if(T.x!=this.translate.x||T.y!=this.translate.y)this.invalidate(),this.translate.x=T.x,this.translate.y=T.y}T=b.getPagePadding();var X=b.getPageSize();O=T.x-(this.x0||0)*X.width;T=T.y-(this.y0||0)*X.height;if(this.translate.x!=O||this.translate.y!=T)this.invalidate(),this.translate.x=O,this.translate.y=T}ea.apply(this,arguments)};
-if(!b.isViewer()){var ha=b.sizeDidChange;b.sizeDidChange=function(){var O=W;W=!1;if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var T=this.getPageLayout(),X=this.getDefaultTranslate(T),aa=this.view.translate.x,ja=this.view.translate.y;if(X.x!=aa||X.y!=ja){this.view.x0=T.x;this.view.y0=T.y;this.autoTranslate=!0;this.view.setTranslate(X.x,X.y);this.autoTranslate=!1;O||(this.container.scrollLeft+=Math.round((X.x-aa)*this.view.scale),this.container.scrollTop+=
+"mouseleave",mxUtils.bind(this,function(O){mxEvent.isTouchEvent(O)||C(30)}));var da=b.getTolerance();b.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(O,S){this.startX=S.getGraphX();this.startY=S.getGraphY();this.scrollLeft=b.container.scrollLeft;this.scrollTop=b.container.scrollTop},mouseMove:function(O,S){},mouseUp:function(O,S){mxEvent.isTouchEvent(S.getEvent())&&Math.abs(this.scrollLeft-b.container.scrollLeft)<da&&Math.abs(this.scrollTop-b.container.scrollTop)<
+da&&Math.abs(this.startX-S.getGraphX())<da&&Math.abs(this.startY-S.getGraphY())<da&&(0<parseFloat(g.chromelessToolbar.style.opacity||0)?z():C(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var ea=b.view.validate,ca=new mxPoint,W=!1,ba=null;b.view.validate=function(){if(null!=b.container&&mxUtils.hasScrollbars(b.container)){if(null!=g.currentPage&&ba!=g.currentPage){ba=g.currentPage;W=!0;var O=b.getBoundingBoxFromGeometry(b.model.getCells(),!0,null,
+!0);null==O&&(O=new mxRectangle(b.view.translate.x*b.view.scale,b.view.translate.y*b.view.scale));O=b.getPageLayout(O,ca,1);var S=b.getDefaultTranslate(O);this.x0=O.x;this.y0=O.y;if(S.x!=this.translate.x||S.y!=this.translate.y)this.invalidate(),this.translate.x=S.x,this.translate.y=S.y}S=b.getPagePadding();var X=b.getPageSize();O=S.x-(this.x0||0)*X.width;S=S.y-(this.y0||0)*X.height;if(this.translate.x!=O||this.translate.y!=S)this.invalidate(),this.translate.x=O,this.translate.y=S}ea.apply(this,arguments)};
+if(!b.isViewer()){var ha=b.sizeDidChange;b.sizeDidChange=function(){var O=W;W=!1;if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var S=this.getPageLayout(),X=this.getDefaultTranslate(S),aa=this.view.translate.x,ja=this.view.translate.y;if(X.x!=aa||X.y!=ja){this.view.x0=S.x;this.view.y0=S.y;this.autoTranslate=!0;this.view.setTranslate(X.x,X.y);this.autoTranslate=!1;O||(this.container.scrollLeft+=Math.round((X.x-aa)*this.view.scale),this.container.scrollTop+=
Math.round((X.y-ja)*this.view.scale));return}}ha.apply(this,arguments)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var la=b.view.getBackgroundPane(),Y=b.view.getDrawPane();b.cumulativeZoomFactor=1;var ma=null,Z=null,k=null,A=null,I=null,U=function(O){null!=ma&&window.clearTimeout(ma);0<=O&&window.setTimeout(function(){if(!b.isMouseDown||A)ma=window.setTimeout(mxUtils.bind(this,function(){b.isFastZoomEnabled()&&(null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node&&
(mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,"transform-origin",null),mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,"transform",null)),Y.style.transformOrigin="",la.style.transformOrigin="",mxClient.IS_SF?(Y.style.transform="scale(1)",la.style.transform="scale(1)",window.setTimeout(function(){Y.style.transform="";la.style.transform=""},0)):(Y.style.transform="",la.style.transform=""),b.view.getDecoratorPane().style.opacity="",b.view.getOverlayPane().style.opacity=
-"");var T=new mxPoint(b.container.scrollLeft,b.container.scrollTop),X=mxUtils.getOffset(b.container),aa=b.view.scale,ja=0,pa=0;null!=Z&&(ja=b.container.offsetWidth/2-Z.x+X.x,pa=b.container.offsetHeight/2-Z.y+X.y);b.zoom(b.cumulativeZoomFactor,null,b.isFastZoomEnabled()?20:null);b.view.scale!=aa&&(null!=k&&(ja+=T.x-k.x,pa+=T.y-k.y),null!=e&&g.chromelessResize(!1,null,ja*(b.cumulativeZoomFactor-1),pa*(b.cumulativeZoomFactor-1)),!mxUtils.hasScrollbars(b.container)||0==ja&&0==pa||(b.container.scrollLeft-=
-ja*(b.cumulativeZoomFactor-1),b.container.scrollTop-=pa*(b.cumulativeZoomFactor-1)));null!=I&&Y.setAttribute("filter",I);b.cumulativeZoomFactor=1;I=A=Z=k=ma=null}),null!=O?O:b.isFastZoomEnabled()?g.wheelZoomDelay:g.lazyZoomDelay)},0)};b.lazyZoom=function(O,T,X,aa){aa=null!=aa?aa:this.zoomFactor;(T=T||!b.scrollbars)&&(Z=new mxPoint(b.container.offsetLeft+b.container.clientWidth/2,b.container.offsetTop+b.container.clientHeight/2));O?.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=
+"");var S=new mxPoint(b.container.scrollLeft,b.container.scrollTop),X=mxUtils.getOffset(b.container),aa=b.view.scale,ja=0,pa=0;null!=Z&&(ja=b.container.offsetWidth/2-Z.x+X.x,pa=b.container.offsetHeight/2-Z.y+X.y);b.zoom(b.cumulativeZoomFactor,null,b.isFastZoomEnabled()?20:null);b.view.scale!=aa&&(null!=k&&(ja+=S.x-k.x,pa+=S.y-k.y),null!=e&&g.chromelessResize(!1,null,ja*(b.cumulativeZoomFactor-1),pa*(b.cumulativeZoomFactor-1)),!mxUtils.hasScrollbars(b.container)||0==ja&&0==pa||(b.container.scrollLeft-=
+ja*(b.cumulativeZoomFactor-1),b.container.scrollTop-=pa*(b.cumulativeZoomFactor-1)));null!=I&&Y.setAttribute("filter",I);b.cumulativeZoomFactor=1;I=A=Z=k=ma=null}),null!=O?O:b.isFastZoomEnabled()?g.wheelZoomDelay:g.lazyZoomDelay)},0)};b.lazyZoom=function(O,S,X,aa){aa=null!=aa?aa:this.zoomFactor;(S=S||!b.scrollbars)&&(Z=new mxPoint(b.container.offsetLeft+b.container.clientWidth/2,b.container.offsetTop+b.container.clientHeight/2));O?.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=
(this.view.scale+.05)/this.view.scale:(this.cumulativeZoomFactor*=aa,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale):.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale-.05)/this.view.scale:(this.cumulativeZoomFactor/=aa,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale);this.cumulativeZoomFactor=Math.max(.05,Math.min(this.view.scale*this.cumulativeZoomFactor,
-160))/this.view.scale;if(b.isFastZoomEnabled()){null==I&&""!=Y.getAttribute("filter")&&(I=Y.getAttribute("filter"),Y.removeAttribute("filter"));k=new mxPoint(b.container.scrollLeft,b.container.scrollTop);O=Math.round(Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100*20)/(20*this.view.scale);aa=T||null==Z?b.container.scrollLeft+b.container.clientWidth/2:Z.x+b.container.scrollLeft-b.container.offsetLeft;var ja=T||null==Z?b.container.scrollTop+b.container.clientHeight/2:Z.y+b.container.scrollTop-
-b.container.offsetTop;Y.style.transformOrigin=aa+"px "+ja+"px";Y.style.transform="scale("+O+")";la.style.transformOrigin=aa+"px "+ja+"px";la.style.transform="scale("+O+")";null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node?(aa=b.view.backgroundPageShape.node,mxUtils.setPrefixedStyle(aa.style,"transform-origin",(T||null==Z?b.container.clientWidth/2+b.container.scrollLeft-aa.offsetLeft+"px":Z.x+b.container.scrollLeft-aa.offsetLeft-b.container.offsetLeft+"px")+" "+(T||null==Z?b.container.clientHeight/
+160))/this.view.scale;if(b.isFastZoomEnabled()){null==I&&""!=Y.getAttribute("filter")&&(I=Y.getAttribute("filter"),Y.removeAttribute("filter"));k=new mxPoint(b.container.scrollLeft,b.container.scrollTop);O=Math.round(Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100*20)/(20*this.view.scale);aa=S||null==Z?b.container.scrollLeft+b.container.clientWidth/2:Z.x+b.container.scrollLeft-b.container.offsetLeft;var ja=S||null==Z?b.container.scrollTop+b.container.clientHeight/2:Z.y+b.container.scrollTop-
+b.container.offsetTop;Y.style.transformOrigin=aa+"px "+ja+"px";Y.style.transform="scale("+O+")";la.style.transformOrigin=aa+"px "+ja+"px";la.style.transform="scale("+O+")";null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node?(aa=b.view.backgroundPageShape.node,mxUtils.setPrefixedStyle(aa.style,"transform-origin",(S||null==Z?b.container.clientWidth/2+b.container.scrollLeft-aa.offsetLeft+"px":Z.x+b.container.scrollLeft-aa.offsetLeft-b.container.offsetLeft+"px")+" "+(S||null==Z?b.container.clientHeight/
2+b.container.scrollTop-aa.offsetTop+"px":Z.y+b.container.scrollTop-aa.offsetTop-b.container.offsetTop+"px")),mxUtils.setPrefixedStyle(aa.style,"transform","scale("+O+")")):b.view.validateBackgroundStyles(O,aa,ja);b.view.getDecoratorPane().style.opacity="0";b.view.getOverlayPane().style.opacity="0";null!=g.hoverIcons&&g.hoverIcons.reset();b.fireEvent(new mxEventObject("zoomPreview","factor",O))}U(b.isFastZoomEnabled()?X:0)};mxEvent.addGestureListeners(b.container,function(O){null!=ma&&window.clearTimeout(ma)},
-null,function(O){1!=b.cumulativeZoomFactor&&U(0)});mxEvent.addListener(b.container,"scroll",function(O){null==ma||b.isMouseDown||1==b.cumulativeZoomFactor||U(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(O,T,X,aa,ja){b.fireEvent(new mxEventObject("wheel"));if(null==this.dialogs||0==this.dialogs.length)if(!b.scrollbars&&!X&&b.isScrollWheelEvent(O))X=b.view.getTranslate(),aa=40/b.view.scale,mxEvent.isShiftDown(O)?b.view.setTranslate(X.x+(T?-aa:aa),X.y):b.view.setTranslate(X.x,X.y+(T?
-aa:-aa));else if(X||b.isZoomWheelEvent(O))for(var pa=mxEvent.getSource(O);null!=pa;){if(pa==b.container)return b.tooltipHandler.hideTooltip(),Z=null!=aa&&null!=ja?new mxPoint(aa,ja):new mxPoint(mxEvent.getClientX(O),mxEvent.getClientY(O)),A=X,X=b.zoomFactor,aa=null,O.ctrlKey&&null!=O.deltaY&&40>Math.abs(O.deltaY)&&Math.round(O.deltaY)!=O.deltaY?X=1+Math.abs(O.deltaY)/20*(X-1):null!=O.movementY&&"pointermove"==O.type&&(X=1+Math.max(1,Math.abs(O.movementY))/20*(X-1),aa=-1),b.lazyZoom(T,null,aa,X),mxEvent.consume(O),
+null,function(O){1!=b.cumulativeZoomFactor&&U(0)});mxEvent.addListener(b.container,"scroll",function(O){null==ma||b.isMouseDown||1==b.cumulativeZoomFactor||U(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(O,S,X,aa,ja){b.fireEvent(new mxEventObject("wheel"));if(null==this.dialogs||0==this.dialogs.length)if(!b.scrollbars&&!X&&b.isScrollWheelEvent(O))X=b.view.getTranslate(),aa=40/b.view.scale,mxEvent.isShiftDown(O)?b.view.setTranslate(X.x+(S?-aa:aa),X.y):b.view.setTranslate(X.x,X.y+(S?
+aa:-aa));else if(X||b.isZoomWheelEvent(O))for(var pa=mxEvent.getSource(O);null!=pa;){if(pa==b.container)return b.tooltipHandler.hideTooltip(),Z=null!=aa&&null!=ja?new mxPoint(aa,ja):new mxPoint(mxEvent.getClientX(O),mxEvent.getClientY(O)),A=X,X=b.zoomFactor,aa=null,O.ctrlKey&&null!=O.deltaY&&40>Math.abs(O.deltaY)&&Math.round(O.deltaY)!=O.deltaY?X=1+Math.abs(O.deltaY)/20*(X-1):null!=O.movementY&&"pointermove"==O.type&&(X=1+Math.max(1,Math.abs(O.movementY))/20*(X-1),aa=-1),b.lazyZoom(S,null,aa,X),mxEvent.consume(O),
!1;pa=pa.parentNode}}),b.container);b.panningHandler.zoomGraph=function(O){b.cumulativeZoomFactor=O.scale;b.lazyZoom(0<O.scale,!0);mxEvent.consume(O)}};EditorUi.prototype.addChromelessToolbarItems=function(b){b(mxUtils.bind(this,function(e){this.actions.get("print").funct();mxEvent.consume(e)}),Editor.printImage,mxResources.get("print"))};EditorUi.prototype.isPagesEnabled=function(){return this.editor.editable||"1"!=urlParams["hide-pages"]};EditorUi.prototype.createTemporaryGraph=function(b){return Graph.createOffscreenGraph(b)};
EditorUi.prototype.addChromelessClickHandler=function(){var b=urlParams.highlight;null!=b&&0<b.length&&(b="#"+b);this.editor.graph.addClickHandler(b)};EditorUi.prototype.toggleFormatPanel=function(b){b=null!=b?b:0==this.formatWidth;null!=this.format&&(this.formatWidth=b?240:0,this.formatContainer.style.width=this.formatWidth+"px",this.refresh(),this.format.refresh(),this.fireEvent(new mxEventObject("formatWidthChanged")))};EditorUi.prototype.isFormatPanelVisible=function(){return 0<this.formatWidth};
EditorUi.prototype.lightboxFit=function(b){if(this.isDiagramEmpty())this.editor.graph.view.setScale(1);else{var e=urlParams.border,g=60;null!=e&&(g=parseInt(e));this.editor.graph.maxFitScale=this.lightboxMaxFitScale;this.editor.graph.fit(g,null,null,null,null,null,b);this.editor.graph.maxFitScale=null}};EditorUi.prototype.isDiagramEmpty=function(){var b=this.editor.graph.getModel();return 1==b.getChildCount(b.root)&&0==b.getChildCount(b.getChildAt(b.root,0))};
@@ -2177,7 +2177,7 @@ e.scrollTop=Math.floor(Math.max(0,g.y-Math.max(20,(e.clientHeight-m)/4)))}else{g
EditorUi.prototype.setPageVisible=function(b){var e=this.editor.graph,g=mxUtils.hasScrollbars(e.container),m=0,u=0;g&&(m=e.view.translate.x*e.view.scale-e.container.scrollLeft,u=e.view.translate.y*e.view.scale-e.container.scrollTop);e.pageVisible=b;e.pageBreaksVisible=b;e.preferPageSize=b;e.view.validateBackground();if(g){var p=e.getSelectionCells();e.clearSelection();e.setSelectionCells(p)}e.sizeDidChange();g&&(e.container.scrollLeft=e.view.translate.x*e.view.scale-m,e.container.scrollTop=e.view.translate.y*
e.view.scale-u);e.defaultPageVisible=b;this.fireEvent(new mxEventObject("pageViewChanged"))};
EditorUi.prototype.installResizeHandler=function(b,e,g){e&&(b.window.setSize=function(u,p){if(!this.minimized){var B=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;u=Math.min(u,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.getX());p=Math.min(p,B-this.getY())}mxWindow.prototype.setSize.apply(this,arguments)});b.window.setLocation=function(u,p){var B=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth,
-H=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,S=parseInt(this.div.style.width),G=parseInt(this.div.style.height);u=Math.max(0,Math.min(u,B-S));p=Math.max(0,Math.min(p,H-G));this.getX()==u&&this.getY()==p||mxWindow.prototype.setLocation.apply(this,arguments);e&&!this.minimized&&this.setSize(S,G)};var m=mxUtils.bind(this,function(){var u=b.window.getX(),p=b.window.getY();b.window.setLocation(u,p)});mxEvent.addListener(window,"resize",m);b.destroy=function(){mxEvent.removeListener(window,
+H=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,T=parseInt(this.div.style.width),G=parseInt(this.div.style.height);u=Math.max(0,Math.min(u,B-T));p=Math.max(0,Math.min(p,H-G));this.getX()==u&&this.getY()==p||mxWindow.prototype.setLocation.apply(this,arguments);e&&!this.minimized&&this.setSize(T,G)};var m=mxUtils.bind(this,function(){var u=b.window.getX(),p=b.window.getY();b.window.setLocation(u,p)});mxEvent.addListener(window,"resize",m);b.destroy=function(){mxEvent.removeListener(window,
"resize",m);b.window.destroy();null!=g&&g()}};function ChangeGridColor(b,e){this.ui=b;this.color=e}ChangeGridColor.prototype.execute=function(){var b=this.ui.editor.graph.view.gridColor;this.ui.setGridColor(this.color);this.color=b};(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);mxCodecRegistry.register(b)})();
function ChangePageSetup(b,e,g,m,u){this.ui=b;this.previousColor=this.color=e;this.previousImage=this.image=g;this.previousFormat=this.format=m;this.previousPageScale=this.pageScale=u;this.ignoreImage=this.ignoreColor=!1}
ChangePageSetup.prototype.execute=function(){var b=this.ui.editor.graph;if(!this.ignoreColor){this.color=this.previousColor;var e=b.background;this.ui.setBackgroundColor(this.previousColor);this.previousColor=e}if(!this.ignoreImage){this.image=this.previousImage;e=b.backgroundImage;var g=this.previousImage;null!=g&&Graph.isPageLink(g.src)&&(g=this.ui.createImageForPageLink(g.src,this.ui.currentPage));this.ui.setBackgroundImage(g);this.previousImage=e}null!=this.previousFormat&&(this.format=this.previousFormat,
@@ -2213,22 +2213,22 @@ EditorUi.prototype.setStatusText=function(b){this.statusContainer.innerHTML=Grap
"transition","all 0.2s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(g,100);mxUtils.setPrefixedStyle(g.style,"transform","scaleX(1)");mxUtils.setPrefixedStyle(g.style,"transition","all 1s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(g.style,"transform","scaleX(0)");mxUtils.setOpacity(g,0);window.setTimeout(mxUtils.bind(this,function(){null!=g.parentNode&&g.parentNode.removeChild(g)}),1E3)}),Editor.updateStatusInterval/2)}),0)})(b[e])};
EditorUi.prototype.createStatusDiv=function(b){var e=document.createElement("div");e.style.textOverflow="ellipsis";e.style.display="inline-block";e.style.whiteSpace="nowrap";e.style.overflow="hidden";e.style.minWidth="0";e.setAttribute("title",b);e.innerHTML=Graph.sanitizeHtml(b);return e};EditorUi.prototype.createToolbar=function(b){return new Toolbar(this,b)};EditorUi.prototype.createSidebar=function(b){return new Sidebar(this,b)};
EditorUi.prototype.createFormat=function(b){return new Format(this,b)};EditorUi.prototype.createFooter=function(){return this.createDiv("geFooter")};EditorUi.prototype.createDiv=function(b){var e=document.createElement("div");e.className=b;return e};
-EditorUi.prototype.addSplitHandler=function(b,e,g,m){function u(R){if(null!=B){var c=new mxPoint(mxEvent.getClientX(R),mxEvent.getClientY(R));m(Math.max(0,H+(e?c.x-B.x:B.y-c.y)-g));mxEvent.consume(R);H!=P()&&(S=!0,G=null)}}function p(R){u(R);B=H=null}var B=null,H=null,S=!0,G=null;mxClient.IS_POINTER&&(b.style.touchAction="none");var P=mxUtils.bind(this,function(){var R=parseInt(e?b.style.left:b.style.bottom);e||(R=R+g-this.footerHeight);return R});mxEvent.addGestureListeners(b,function(R){B=new mxPoint(mxEvent.getClientX(R),
-mxEvent.getClientY(R));H=P();S=!1;mxEvent.consume(R)});mxEvent.addListener(b,"click",mxUtils.bind(this,function(R){if(!S&&this.hsplitClickEnabled){var c=null!=G?G-g:0;G=P();m(c);mxEvent.consume(R)}}));mxEvent.addGestureListeners(document,null,u,p);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,u,p)})};
+EditorUi.prototype.addSplitHandler=function(b,e,g,m){function u(R){if(null!=B){var c=new mxPoint(mxEvent.getClientX(R),mxEvent.getClientY(R));m(Math.max(0,H+(e?c.x-B.x:B.y-c.y)-g));mxEvent.consume(R);H!=P()&&(T=!0,G=null)}}function p(R){u(R);B=H=null}var B=null,H=null,T=!0,G=null;mxClient.IS_POINTER&&(b.style.touchAction="none");var P=mxUtils.bind(this,function(){var R=parseInt(e?b.style.left:b.style.bottom);e||(R=R+g-this.footerHeight);return R});mxEvent.addGestureListeners(b,function(R){B=new mxPoint(mxEvent.getClientX(R),
+mxEvent.getClientY(R));H=P();T=!1;mxEvent.consume(R)});mxEvent.addListener(b,"click",mxUtils.bind(this,function(R){if(!T&&this.hsplitClickEnabled){var c=null!=G?G-g:0;G=P();m(c);mxEvent.consume(R)}}));mxEvent.addGestureListeners(document,null,u,p);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,u,p)})};
EditorUi.prototype.prompt=function(b,e,g){b=new FilenameDialog(this,e,mxResources.get("apply"),function(m){g(parseFloat(m))},b);this.showDialog(b.container,300,80,!0,!0);b.init()};
EditorUi.prototype.handleError=function(b,e,g,m,u){b=null!=b&&null!=b.error?b.error:b;if(null!=b||null!=e){u=mxUtils.htmlEntities(mxResources.get("unknownError"));var p=mxResources.get("ok");e=null!=e?e:mxResources.get("error");null!=b&&null!=b.message&&(u=mxUtils.htmlEntities(b.message));this.showError(e,u,p,g,null,null,null,null,null,null,null,null,m?g:null)}else null!=g&&g()};
-EditorUi.prototype.showError=function(b,e,g,m,u,p,B,H,S,G,P,R,c){b=new ErrorDialog(this,b,e,g||mxResources.get("ok"),m,u,p,B,R,H,S);e=Math.ceil(null!=e?e.length/50:1);this.showDialog(b.container,G||340,P||100+20*e,!0,!1,c);b.init()};EditorUi.prototype.showDialog=function(b,e,g,m,u,p,B,H,S,G){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,b,e,g,m,u,p,B,H,S,G);this.dialogs.push(this.dialog)};
+EditorUi.prototype.showError=function(b,e,g,m,u,p,B,H,T,G,P,R,c){b=new ErrorDialog(this,b,e,g||mxResources.get("ok"),m,u,p,B,R,H,T);e=Math.ceil(null!=e?e.length/50:1);this.showDialog(b.container,G||340,P||100+20*e,!0,!1,c);b.init()};EditorUi.prototype.showDialog=function(b,e,g,m,u,p,B,H,T,G){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,b,e,g,m,u,p,B,H,T,G);this.dialogs.push(this.dialog)};
EditorUi.prototype.hideDialog=function(b,e,g){var m=null;if(null!=this.dialogs&&0<this.dialogs.length)for(var u=this.dialogs.length-1;0<=u;u--)if(!this.dialogs[u].closing){m=this.dialogs[u];break}null==m||null!=g&&g!=this.dialog.container.firstChild||(m.closing=!0,0==m.close(b,e)?delete m.closing:(delete m.closing,b=mxUtils.lastIndexOf(this.dialogs,m),0<=b&&this.dialogs.splice(b,1),this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog",
"dialog",m)),null==this.dialog&&null!=this.editor.graph.container&&"hidden"!=this.editor.graph.container.style.visibility&&window.setTimeout(mxUtils.bind(this,function(){null==this.editor||null!=this.dialogs&&0!=this.dialogs.length||(this.editor.graph.isEditing()&&null!=this.editor.graph.cellEditor.textarea?this.editor.graph.cellEditor.textarea.focus():(mxUtils.clearSelection(),this.editor.graph.container.focus()))}),0)))};
EditorUi.prototype.ctrlEnter=function(){var b=this.editor.graph;if(b.isEnabled())try{for(var e=b.getSelectionCells(),g=new mxDictionary,m=[],u=0;u<e.length;u++){var p=b.isTableCell(e[u])?b.model.getParent(e[u]):e[u];null==p||g.get(p)||(g.put(p,!0),m.push(p))}b.setSelectionCells(b.duplicateCells(m,!1))}catch(B){this.handleError(B)}};
-EditorUi.prototype.pickColor=function(b,e,g,m,u){var p=this.editor.graph,B=p.cellEditor.saveSelection(),H=(u?240:290)+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));b=new ColorDialog(this,b,function(S){p.cellEditor.restoreSelection(B);e(S)},function(){p.cellEditor.restoreSelection(B)},g,m,u);this.showDialog(b.container,230,H,!0,!1);b.init()};
+EditorUi.prototype.pickColor=function(b,e,g,m,u){var p=this.editor.graph,B=p.cellEditor.saveSelection(),H=(u?240:290)+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));b=new ColorDialog(this,b,function(T){p.cellEditor.restoreSelection(B);e(T)},function(){p.cellEditor.restoreSelection(B)},g,m,u);this.showDialog(b.container,230,H,!0,!1);b.init()};
EditorUi.prototype.openFile=function(){window.openFile=new OpenFile(mxUtils.bind(this,function(b){this.hideDialog(b)}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:320,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null})};
-EditorUi.prototype.base64ToBlob=function(b,e){e=e||"";b=atob(b);for(var g=b.length,m=Math.ceil(g/1024),u=Array(m),p=0;p<m;++p){for(var B=1024*p,H=Math.min(B+1024,g),S=Array(H-B),G=0;B<H;++G,++B)S[G]=b[B].charCodeAt(0);u[p]=new Uint8Array(S)}return new Blob(u,{type:e})};
+EditorUi.prototype.base64ToBlob=function(b,e){e=e||"";b=atob(b);for(var g=b.length,m=Math.ceil(g/1024),u=Array(m),p=0;p<m;++p){for(var B=1024*p,H=Math.min(B+1024,g),T=Array(H-B),G=0;B<H;++G,++B)T[G]=b[B].charCodeAt(0);u[p]=new Uint8Array(T)}return new Blob(u,{type:e})};
EditorUi.prototype.writeImageToClipboard=function(b,e,g,m){var u=this.base64ToBlob(b.substring(b.indexOf(",")+1),"image/png");b=new ClipboardItem({"image/png":u,"text/html":new Blob(['<img src="'+b+'" width="'+e+'" height="'+g+'">'],{type:"text/html"})});navigator.clipboard.write([b])["catch"](m)};EditorUi.prototype.writeHtmlToClipboard=function(b,e){b=new ClipboardItem({"text/plain":new Blob([Editor.convertHtmlToText(b)],{type:"text/plain"}),"text/html":new Blob([b],{type:"text/html"})});navigator.clipboard.write([b])["catch"](e)};
EditorUi.prototype.writeTextToClipboard=function(b,e){navigator.clipboard.writeText(b)["catch"](e)};EditorUi.prototype.extractGraphModelFromHtml=function(b){var e=null;try{var g=b.indexOf("&lt;mxGraphModel ");if(0<=g){var m=b.lastIndexOf("&lt;/mxGraphModel&gt;");m>g&&(e=b.substring(g,m+21).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}}catch(u){}return e};
EditorUi.prototype.readGraphModelFromClipboard=function(b){this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(e){null!=e?b(e):this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(g){if(null!=g){var m=decodeURIComponent(g);this.isCompatibleString(m)&&(g=m)}b(g)}),"text")}),"html")};
EditorUi.prototype.readGraphModelFromClipboardWithType=function(b,e){navigator.clipboard.read().then(mxUtils.bind(this,function(g){if(null!=g&&0<g.length&&"html"==e&&0<=mxUtils.indexOf(g[0].types,"text/html"))g[0].getType("text/html").then(mxUtils.bind(this,function(m){m.text().then(mxUtils.bind(this,function(u){try{var p=this.parseHtmlData(u),B="text/plain"!=p.getAttribute("data-type")?p.innerHTML:mxUtils.trim(null==p.innerText?mxUtils.getTextContent(p):p.innerText);try{var H=B.lastIndexOf("%3E");
-0<=H&&H<B.length-3&&(B=B.substring(0,H+3))}catch(P){}try{var S=p.getElementsByTagName("span"),G=null!=S&&0<S.length?mxUtils.trim(decodeURIComponent(S[0].textContent)):decodeURIComponent(B);this.isCompatibleString(G)&&(B=G)}catch(P){}}catch(P){}b(this.isCompatibleString(B)?B:null)}))["catch"](function(u){b(null)})}))["catch"](function(m){b(null)});else if(null!=g&&0<g.length&&"text"==e&&0<=mxUtils.indexOf(g[0].types,"text/plain"))g[0].getType("text/plain").then(function(m){m.text().then(function(u){b(u)})["catch"](function(){b(null)})})["catch"](function(){b(null)});
+0<=H&&H<B.length-3&&(B=B.substring(0,H+3))}catch(P){}try{var T=p.getElementsByTagName("span"),G=null!=T&&0<T.length?mxUtils.trim(decodeURIComponent(T[0].textContent)):decodeURIComponent(B);this.isCompatibleString(G)&&(B=G)}catch(P){}}catch(P){}b(this.isCompatibleString(B)?B:null)}))["catch"](function(u){b(null)})}))["catch"](function(m){b(null)});else if(null!=g&&0<g.length&&"text"==e&&0<=mxUtils.indexOf(g[0].types,"text/plain"))g[0].getType("text/plain").then(function(m){m.text().then(function(u){b(u)})["catch"](function(){b(null)})})["catch"](function(){b(null)});
else b(null)}))["catch"](function(g){b(null)})};
EditorUi.prototype.parseHtmlData=function(b){var e=null;if(null!=b&&0<b.length){var g="<meta "==b.substring(0,6);e=document.createElement("div");e.innerHTML=(g?'<meta charset="utf-8">':"")+Graph.sanitizeHtml(b);asHtml=!0;b=e.getElementsByTagName("style");if(null!=b)for(;0<b.length;)b[0].parentNode.removeChild(b[0]);null!=e.firstChild&&e.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=e.firstChild.nextSibling&&e.firstChild.nextSibling.nodeType==mxConstants.NODETYPE_ELEMENT&&"META"==e.firstChild.nodeName&&
"A"==e.firstChild.nextSibling.nodeName&&null==e.firstChild.nextSibling.nextSibling&&(b=null==e.firstChild.nextSibling.innerText?mxUtils.getTextContent(e.firstChild.nextSibling):e.firstChild.nextSibling.innerText,b==e.firstChild.nextSibling.getAttribute("href")&&(mxUtils.setTextContent(e,b),asHtml=!1));g=g&&null!=e.firstChild?e.firstChild.nextSibling:e.firstChild;null!=g&&null==g.nextSibling&&g.nodeType==mxConstants.NODETYPE_ELEMENT&&"IMG"==g.nodeName?(b=g.getAttribute("src"),null!=b&&(Editor.isPngDataUrl(b)&&
@@ -2248,9 +2248,9 @@ EditorUi.prototype.createKeyHandler=function(b){function e(R,c,f){if(!m.isSelect
z))}}finally{m.getModel().endUpdate()}}else{z=m.model.getParent(t);var C=m.getView().scale;f=null;1==m.getSelectionCount()&&m.model.isVertex(t)&&null!=m.layoutManager&&!m.isCellLocked(t)&&(f=m.layoutManager.getLayout(z));if(null!=f&&f.constructor==mxStackLayout)c=z.getIndex(t),37==R||38==R?m.model.add(z,t,Math.max(0,c-1)):(39==R||40==R)&&m.model.add(z,t,Math.min(m.model.getChildCount(z),c+1));else{var F=m.graphHandler;null!=F&&(null==F.first&&F.start(t,0,0,m.getMovableCells(l)),null!=F.first&&(t=
l=0,37==R?l=-c:38==R?t=-c:39==R?l=c:40==R&&(t=c),F.currentDx+=l*C,F.currentDy+=t*C,F.checkPreview(),F.updatePreview()),null!=B&&window.clearTimeout(B),B=window.setTimeout(function(){if(null!=F.first){var N=F.roundLength(F.currentDx/C),K=F.roundLength(F.currentDy/C);F.moveCells(F.cells,N,K);F.reset()}},400))}}}}var g=this,m=this.editor.graph,u=new mxKeyHandler(m),p=u.isEventIgnored;u.isEventIgnored=function(R){return!(mxEvent.isShiftDown(R)&&9==R.keyCode)&&(!this.isControlDown(R)||mxEvent.isShiftDown(R)||
90!=R.keyCode&&89!=R.keyCode&&188!=R.keyCode&&190!=R.keyCode&&85!=R.keyCode&&83!=R.keyCode)&&(66!=R.keyCode&&73!=R.keyCode||!this.isControlDown(R)||this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&(109!=R.keyCode&&107!=R.keyCode||!this.isControlDown(R)&&!mxEvent.isShiftDown(R)||!this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&p.apply(this,arguments)};u.isEnabledForEvent=function(R){return!mxEvent.isConsumed(R)&&this.isGraphEvent(R)&&this.isEnabled()&&
-(null==g.dialogs||0==g.dialogs.length)};u.isControlDown=function(R){return mxEvent.isControlDown(R)||mxClient.IS_MAC&&R.metaKey};var B=null,H={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},S=u.getFunction;mxKeyHandler.prototype.getFunction=function(R){if(m.isEnabled()){var c=null;mxEvent.isShiftDown(R)&&this.isControlDown(R)&&mxEvent.isAltDown(R)?c=g.actions.get(g.ctrlAltShiftActions[R.keyCode]):mxEvent.isShiftDown(R)&&mxEvent.isAltDown(R)?
+(null==g.dialogs||0==g.dialogs.length)};u.isControlDown=function(R){return mxEvent.isControlDown(R)||mxClient.IS_MAC&&R.metaKey};var B=null,H={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},T=u.getFunction;mxKeyHandler.prototype.getFunction=function(R){if(m.isEnabled()){var c=null;mxEvent.isShiftDown(R)&&this.isControlDown(R)&&mxEvent.isAltDown(R)?c=g.actions.get(g.ctrlAltShiftActions[R.keyCode]):mxEvent.isShiftDown(R)&&mxEvent.isAltDown(R)?
c=g.actions.get(g.altShiftActions[R.keyCode]):this.isControlDown(R)&&mxEvent.isAltDown(R)&&(c=g.actions.get(g.ctrlAltActions[R.keyCode]));if(null!=c)return c.funct;if(null!=H[R.keyCode]&&!m.isSelectionEmpty())if(!this.isControlDown(R)&&mxEvent.isShiftDown(R)&&mxEvent.isAltDown(R)){if(m.model.isVertex(m.getSelectionCell()))return function(){var f=m.connectVertex(m.getSelectionCell(),H[R.keyCode],m.defaultEdgeLength,R,!0);null!=f&&0<f.length&&(1==f.length&&m.model.isEdge(f[0])?m.setSelectionCell(m.model.getTerminal(f[0],
-!1)):m.setSelectionCell(f[f.length-1]),m.scrollCellToVisible(m.getSelectionCell()),null!=g.hoverIcons&&g.hoverIcons.update(m.view.getState(m.getSelectionCell())))}}else return this.isControlDown(R)?function(){e(R.keyCode,mxEvent.isShiftDown(R)?m.gridSize:null,!0)}:function(){e(R.keyCode,mxEvent.isShiftDown(R)?m.gridSize:null)}}return S.apply(this,arguments)};u.bindAction=mxUtils.bind(this,function(R,c,f,l){var t=this.actions.get(f);null!=t&&(f=function(){t.isEnabled()&&t.funct.apply(this,arguments)},
+!1)):m.setSelectionCell(f[f.length-1]),m.scrollCellToVisible(m.getSelectionCell()),null!=g.hoverIcons&&g.hoverIcons.update(m.view.getState(m.getSelectionCell())))}}else return this.isControlDown(R)?function(){e(R.keyCode,mxEvent.isShiftDown(R)?m.gridSize:null,!0)}:function(){e(R.keyCode,mxEvent.isShiftDown(R)?m.gridSize:null)}}return T.apply(this,arguments)};u.bindAction=mxUtils.bind(this,function(R,c,f,l){var t=this.actions.get(f);null!=t&&(f=function(){t.isEnabled()&&t.funct.apply(this,arguments)},
c?l?u.bindControlShiftKey(R,f):u.bindControlKey(R,f):l?u.bindShiftKey(R,f):u.bindKey(R,f))});var G=this,P=u.escape;u.escape=function(R){P.apply(this,arguments)};u.enter=function(){};u.bindControlShiftKey(36,function(){m.exitGroup()});u.bindControlShiftKey(35,function(){m.enterGroup()});u.bindShiftKey(36,function(){m.home()});u.bindKey(35,function(){m.refresh()});u.bindAction(80,!0,"print");u.bindAction(107,!0,"zoomIn");u.bindAction(109,!0,"zoomOut");u.bindAction(61,!0,"zoomIn");u.bindAction(187,!0,
"zoomIn");u.bindAction(222,!0,"zoomIn");u.bindAction(173,!0,"zoomOut");u.bindAction(189,!0,"zoomOut");if(!this.editor.chromeless||this.editor.editable)u.bindAction(79,!0,"outline",!0),u.bindControlKey(36,function(){m.isEnabled()&&m.foldCells(!0)}),u.bindControlKey(35,function(){m.isEnabled()&&m.foldCells(!1)}),u.bindControlKey(13,function(){G.ctrlEnter()}),u.bindAction(8,!1,"delete"),u.bindAction(8,!0,"deleteAll"),u.bindAction(8,!1,"deleteLabels",!0),u.bindAction(46,!1,"delete"),u.bindAction(46,!0,
"deleteAll"),u.bindAction(46,!1,"deleteLabels",!0),u.bindAction(36,!1,"resetView"),u.bindAction(72,!0,"fitWindow",!0),u.bindAction(74,!0,"fitPage"),u.bindAction(74,!0,"fitTwoPages",!0),u.bindAction(48,!0,"customZoom"),u.bindAction(82,!0,"turn"),u.bindAction(82,!0,"clearDefaultStyle",!0),u.bindAction(83,!0,"save"),u.bindAction(83,!0,"saveAs",!0),u.bindAction(65,!0,"selectAll"),u.bindAction(65,!0,"selectNone",!0),u.bindAction(73,!0,"selectVertices",!0),u.bindAction(69,!0,"selectEdges",!0),u.bindAction(69,
@@ -2264,34 +2264,34 @@ null);null!=this.gestureHandler&&(mxEvent.removeGestureListeners(document,this.g
null}var e=[this.menubarContainer,this.toolbarContainer,this.sidebarContainer,this.formatContainer,this.diagramContainer,this.footerContainer,this.chromelessToolbar,this.hsplit,this.layersDialog];for(b=0;b<e.length;b++)null!=e[b]&&null!=e[b].parentNode&&e[b].parentNode.removeChild(e[b])};(function(){var b=[["nbsp","160"],["shy","173"]],e=mxUtils.parseXml;mxUtils.parseXml=function(m){for(var u=0;u<b.length;u++)m=m.replace(new RegExp("&"+b[u][0]+";","g"),"&#"+b[u][1]+";");return e(m)};var g=mxUtils.getSizeForString;mxUtils.getSizeForString=function(m,u,p,B){return g(Graph.sanitizeHtml(m),u,p,B)}})();
Date.prototype.toISOString||function(){function b(e){e=String(e);1===e.length&&(e="0"+e);return e}Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+b(this.getUTCMonth()+1)+"-"+b(this.getUTCDate())+"T"+b(this.getUTCHours())+":"+b(this.getUTCMinutes())+":"+b(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1E3).toFixed(3)).slice(2,5)+"Z"}}();Date.now||(Date.now=function(){return(new Date).getTime()});
Uint8Array.from||(Uint8Array.from=function(){var b=Object.prototype.toString,e=function(m){return"function"===typeof m||"[object Function]"===b.call(m)},g=Math.pow(2,53)-1;return function(m){var u=Object(m);if(null==m)throw new TypeError("Array.from requires an array-like object - not null or undefined");var p=1<arguments.length?arguments[1]:void 0,B;if("undefined"!==typeof p){if(!e(p))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(B=
-arguments[2])}var H=Number(u.length);H=isNaN(H)?0:0!==H&&isFinite(H)?(0<H?1:-1)*Math.floor(Math.abs(H)):H;H=Math.min(Math.max(H,0),g);for(var S=e(this)?Object(new this(H)):Array(H),G=0,P;G<H;)P=u[G],S[G]=p?"undefined"===typeof B?p(P,G):p.call(B,P,G):P,G+=1;S.length=H;return S}}());mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";mxConstants.VML_SHADOWCOLOR="#d0d0d0";mxCodec.allowlist="mxStylesheet Array mxGraphModel mxCell mxGeometry mxRectangle mxPoint mxChildChange mxRootChange mxTerminalChange mxValueChange mxStyleChange mxGeometryChange mxCollapseChange mxVisibleChange mxCellAttributeChange".split(" ");
+arguments[2])}var H=Number(u.length);H=isNaN(H)?0:0!==H&&isFinite(H)?(0<H?1:-1)*Math.floor(Math.abs(H)):H;H=Math.min(Math.max(H,0),g);for(var T=e(this)?Object(new this(H)):Array(H),G=0,P;G<H;)P=u[G],T[G]=p?"undefined"===typeof B?p(P,G):p.call(B,P,G):P,G+=1;T.length=H;return T}}());mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";mxConstants.VML_SHADOWCOLOR="#d0d0d0";mxCodec.allowlist="mxStylesheet Array mxGraphModel mxCell mxGeometry mxRectangle mxPoint mxChildChange mxRootChange mxTerminalChange mxValueChange mxStyleChange mxGeometryChange mxCollapseChange mxVisibleChange mxCellAttributeChange".split(" ");
mxGraph.prototype.pageBreakColor="#c0c0c0";mxGraph.prototype.pageScale=1;(function(){try{if(null!=navigator&&null!=navigator.language){var b=navigator.language.toLowerCase();mxGraph.prototype.pageFormat="en-us"===b||"en-ca"===b||"es-mx"===b?mxConstants.PAGE_FORMAT_LETTER_PORTRAIT:mxConstants.PAGE_FORMAT_A4_PORTRAIT}}catch(e){}})();mxText.prototype.baseSpacingTop=5;mxText.prototype.baseSpacingBottom=1;mxGraphModel.prototype.ignoreRelativeEdgeParent=!1;
mxGraphView.prototype.gridImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhCgAKAJEAAAAAAP///8zMzP///yH5BAEAAAMALAAAAAAKAAoAAAIJ1I6py+0Po2wFADs=":IMAGE_PATH+"/grid.gif";mxGraphView.prototype.gridSteps=4;mxGraphView.prototype.minGridSize=4;mxGraphView.prototype.defaultGridColor="#d0d0d0";mxGraphView.prototype.defaultDarkGridColor="#424242";mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultGridColor;mxGraphView.prototype.unit=mxConstants.POINTS;
mxGraphView.prototype.setUnit=function(b){this.unit!=b&&(this.unit=b,this.graph.refresh(),this.fireEvent(new mxEventObject("unitChanged","unit",b)))};mxSvgCanvas2D.prototype.foAltText="[Not supported by viewer]";mxShape.prototype.getConstraints=function(b,e,g){return null};
mxImageShape.prototype.getImageDataUri=function(){var b=String(this.image);if("data:image/svg+xml;base64,"==b.substring(0,26)&&null!=this.style&&"1"==mxUtils.getValue(this.style,"clipSvg","0")){if(null==this.clippedSvg||this.clippedImage!=b)this.clippedSvg=Graph.clipSvgDataUri(b),this.clippedImage=b;b=this.clippedSvg}return b};
(function(){var b=mxStencil.prototype.parseColor;mxStencil.prototype.parseColor=function(e,g,m,u,p){return"default"==u&&null!=p?"fillcolor"==m.nodeName?p.shapeBackgroundColor:p.shapeForegroundColor:b.apply(this,arguments)}})();(function(){var b=mxResources.get;mxResources.get=function(e,g,m){null==m&&(m=e);return b.apply(this,[e,g,m])}})();
-(function(){var b=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(e,g,m,u,p,B,H,S){var G=b.apply(this,arguments);if(null!=g){var P=G.getElementsByTagName("img");0<P.length&&(P[0].className="geToolbarButton geAdaptiveAsset",P[0].style.margin="4px",P[0].style.width="18px")}return G}})();
+(function(){var b=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(e,g,m,u,p,B,H,T){var G=b.apply(this,arguments);if(null!=g){var P=G.getElementsByTagName("img");0<P.length&&(P[0].className="geToolbarButton geAdaptiveAsset",P[0].style.margin="4px",P[0].style.width="18px")}return G}})();
Graph=function(b,e,g,m,u,p){mxGraph.call(this,b,e,g,m);this.themes=u||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=p?p:!1;b=this.baseUrl;e=b.indexOf("//");this.domainPathUrl=this.domainUrl="";0<e&&(e=b.indexOf("/",e+2),0<e&&(this.domainUrl=b.substring(0,e)),e=b.lastIndexOf("/"),0<e&&(this.domainPathUrl=b.substring(0,e+1)));this.isHtmlLabel=function(Z){Z=this.getCurrentCellStyle(Z);
-return null!=Z?"1"==Z.html||"wrap"==Z[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var B=null,H=null,S=null,G=null,P=!1,R=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(Z,k){if("mouseDown"==k.getProperty("eventName")&&this.isEnabled()){Z=k.getProperty("event");var A=Z.getState();k=this.view.scale;if(!mxEvent.isAltDown(Z.getEvent())&&null!=A&&(R=this.isCellSelected(A.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(Z.getEvent()))){var I=this.selectionCellsHandler.getHandler(A.cell);
+return null!=Z?"1"==Z.html||"wrap"==Z[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var B=null,H=null,T=null,G=null,P=!1,R=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(Z,k){if("mouseDown"==k.getProperty("eventName")&&this.isEnabled()){Z=k.getProperty("event");var A=Z.getState();k=this.view.scale;if(!mxEvent.isAltDown(Z.getEvent())&&null!=A&&(R=this.isCellSelected(A.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(Z.getEvent()))){var I=this.selectionCellsHandler.getHandler(A.cell);
if(null==I||null==I.getHandleForEvent(Z)){var U=new mxRectangle(Z.getGraphX()-1,Z.getGraphY()-1),O=mxEvent.isTouchEvent(Z.getEvent())?mxShape.prototype.svgStrokeTolerance-1:(mxShape.prototype.svgStrokeTolerance+2)/2;I=O+2;U.grow(O);if(this.isTableCell(A.cell)&&this.isCellMovable(A.cell)&&!this.isCellSelected(A.cell)&&!(mxUtils.contains(A,Z.getGraphX()-I,Z.getGraphY()-I)&&mxUtils.contains(A,Z.getGraphX()-I,Z.getGraphY()+I)&&mxUtils.contains(A,Z.getGraphX()+I,Z.getGraphY()+I)&&mxUtils.contains(A,Z.getGraphX()+
-I,Z.getGraphY()-I))){var T=this.model.getParent(A.cell);I=this.model.getParent(T);if(!this.isCellSelected(I)){O*=k;var X=2*O;if(this.model.getChildAt(I,0)!=T&&mxUtils.intersects(U,new mxRectangle(A.x,A.y-O,A.width,X))||this.model.getChildAt(T,0)!=A.cell&&mxUtils.intersects(U,new mxRectangle(A.x-O,A.y,X,A.height))||mxUtils.intersects(U,new mxRectangle(A.x,A.y+A.height-O,A.width,X))||mxUtils.intersects(U,new mxRectangle(A.x+A.width-O,A.y,X,A.height)))T=this.selectionCellsHandler.isHandled(I),this.selectCellForEvent(I,
-Z.getEvent()),I=this.selectionCellsHandler.getHandler(I),null!=I&&(O=I.getHandleForEvent(Z),null!=O&&(I.start(Z.getGraphX(),Z.getGraphY(),O),I.blockDelayedSelection=!T,Z.consume()))}}for(;!Z.isConsumed()&&null!=A&&(this.isTableCell(A.cell)||this.isTableRow(A.cell)||this.isTable(A.cell));)this.isSwimlane(A.cell)&&this.isCellMovable(A.cell)&&(I=this.getActualStartSize(A.cell),(0<I.x||0<I.width)&&mxUtils.intersects(U,new mxRectangle(A.x+(I.x-I.width-1)*k+(0==I.x?A.width:0),A.y,1,A.height))||(0<I.y||
+I,Z.getGraphY()-I))){var S=this.model.getParent(A.cell);I=this.model.getParent(S);if(!this.isCellSelected(I)){O*=k;var X=2*O;if(this.model.getChildAt(I,0)!=S&&mxUtils.intersects(U,new mxRectangle(A.x,A.y-O,A.width,X))||this.model.getChildAt(S,0)!=A.cell&&mxUtils.intersects(U,new mxRectangle(A.x-O,A.y,X,A.height))||mxUtils.intersects(U,new mxRectangle(A.x,A.y+A.height-O,A.width,X))||mxUtils.intersects(U,new mxRectangle(A.x+A.width-O,A.y,X,A.height)))S=this.selectionCellsHandler.isHandled(I),this.selectCellForEvent(I,
+Z.getEvent()),I=this.selectionCellsHandler.getHandler(I),null!=I&&(O=I.getHandleForEvent(Z),null!=O&&(I.start(Z.getGraphX(),Z.getGraphY(),O),I.blockDelayedSelection=!S,Z.consume()))}}for(;!Z.isConsumed()&&null!=A&&(this.isTableCell(A.cell)||this.isTableRow(A.cell)||this.isTable(A.cell));)this.isSwimlane(A.cell)&&this.isCellMovable(A.cell)&&(I=this.getActualStartSize(A.cell),(0<I.x||0<I.width)&&mxUtils.intersects(U,new mxRectangle(A.x+(I.x-I.width-1)*k+(0==I.x?A.width:0),A.y,1,A.height))||(0<I.y||
0<I.height)&&mxUtils.intersects(U,new mxRectangle(A.x,A.y+(I.y-I.height-1)*k+(0==I.y?A.height:0),A.width,1)))&&(this.selectCellForEvent(A.cell,Z.getEvent()),I=this.selectionCellsHandler.getHandler(A.cell),null!=I&&null!=I.customHandles&&(O=mxEvent.CUSTOM_HANDLE-I.customHandles.length+1,I.start(Z.getGraphX(),Z.getGraphY(),O),Z.consume())),A=this.view.getState(this.model.getParent(A.cell))}}}}));this.addListener(mxEvent.CONSUME_MOUSE_EVENT,mxUtils.bind(this,function(Z,k){if("mouseDown"==k.getProperty("eventName")&&
-this.isEnabled()){Z=k.getProperty("event");var A=Z.getState();mxEvent.isAltDown(Z.getEvent())||mxEvent.isControlDown(k)||mxEvent.isShiftDown(k)||R||null==A||!this.model.isEdge(A.cell)||(B=new mxPoint(Z.getGraphX(),Z.getGraphY()),P=this.isCellSelected(A.cell),S=A,H=Z,null!=A.text&&null!=A.text.boundingBox&&mxUtils.contains(A.text.boundingBox,Z.getGraphX(),Z.getGraphY())?G=mxEvent.LABEL_HANDLE:(k=this.selectionCellsHandler.getHandler(A.cell),null!=k&&null!=k.bends&&0<k.bends.length&&(G=k.getHandleForEvent(Z))))}}));
-this.addMouseListener({mouseDown:function(Z,k){},mouseMove:mxUtils.bind(this,function(Z,k){Z=this.selectionCellsHandler.handlers.map;for(var A in Z)if(null!=Z[A].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(k.getEvent())){var I=this.tolerance;if(null!=B&&null!=S&&null!=H){if(A=S,null!=G||Math.abs(B.x-k.getGraphX())>I||Math.abs(B.y-k.getGraphY())>I){var U=null;mxEvent.isShiftDown(k.getEvent())||(U=this.selectionCellsHandler.getHandler(A.cell));if(null!=U&&null!=
-U.bends&&0<U.bends.length){U.redrawHandles();var O=null!=G?G:U.getHandleForEvent(H),T=this.view.getEdgeStyle(A),X=T==mxEdgeStyle.EntityRelation;I=A.absolutePoints;P||(O=G);O!=mxEvent.LABEL_HANDLE&&null!=I&&(O=G,null==O&&(Z=new mxRectangle(B.x,B.y),Z.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(Z,I[0].x,I[0].y)?O=0:mxUtils.contains(Z,I[I.length-1].x,I[I.length-1].y)?O=U.bends.length-1:null!=I&&(null==T&&null==O||T==mxEdgeStyle.SegmentConnector||T==mxEdgeStyle.OrthConnector)&&
-(null!=T&&(2==I.length||3==I.length&&(0==Math.round(I[0].x-I[1].x)&&0==Math.round(I[1].x-I[2].x)||0==Math.round(I[0].y-I[1].y)&&0==Math.round(I[1].y-I[2].y)))?O=2:(O=mxUtils.findNearestSegment(A,B.x,B.y),O=null==T?mxEvent.VIRTUAL_HANDLE-O:O+1))),null==O&&(O=mxEvent.VIRTUAL_HANDLE));Z=O==mxEvent.LABEL_HANDLE||0==O||O==U.bends.length-1;if(!X&&(null!=A.visibleSourceState||null!=A.visibleTargetState)||Z)U.start(k.getGraphX(),k.getGraphX(),O),k.consume(),this.graphHandler.reset()}null!=U&&(this.selectionCellsHandler.isHandlerActive(U)?
-this.isCellSelected(A.cell)||(this.selectionCellsHandler.handlers.put(A.cell,U),this.selectCellForEvent(A.cell,k.getEvent())):this.isCellSelected(A.cell)||U.destroy());P=!1;B=H=S=G=null}}else if(A=k.getState(),null!=A&&this.isCellEditable(A.cell)){Z=this.model.getParent(A.cell);U=null;if(this.model.isEdge(A.cell)&&!this.isCellSelected(A.cell)&&!mxEvent.isAltDown(k.getEvent())&&!mxEvent.isShiftDown(k.getEvent())&&!this.isAncestorSelected(A.cell)&&(this.isSwimlane(Z)||this.model.isLayer(Z)||this.getCurrentRoot()==
-Z)){if(Z=new mxRectangle(k.getGraphX(),k.getGraphY()),Z.grow(mxEdgeHandler.prototype.handleImage.width/2),I=A.absolutePoints,null!=I)null!=A.text&&null!=A.text.boundingBox&&mxUtils.contains(A.text.boundingBox,k.getGraphX(),k.getGraphY())?U="move":mxUtils.contains(Z,I[0].x,I[0].y)||mxUtils.contains(Z,I[I.length-1].x,I[I.length-1].y)?U="pointer":(T=this.view.getEdgeStyle(A),T==mxEdgeStyle.EntityRelation||null==A.visibleSourceState&&null==A.visibleTargetState||(U="crosshair",T!=mxEdgeStyle.SegmentConnector&&
-T!=mxEdgeStyle.OrthConnector))||(k=mxUtils.findNearestSegment(A,k.getGraphX(),k.getGraphY()),k<I.length-1&&0<=k&&(U=0==Math.round(I[k].x-I[k+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(k.getEvent())){I=mxShape.prototype.svgStrokeTolerance/2;Z=new mxRectangle(k.getGraphX(),k.getGraphY());Z.grow(I);if(this.isTableCell(A.cell)&&this.isCellMovable(A.cell)&&(k=this.model.getParent(A.cell),I=this.model.getParent(k),!this.isCellSelected(I)))if(mxUtils.intersects(Z,new mxRectangle(A.x,
+this.isEnabled()){Z=k.getProperty("event");var A=Z.getState();mxEvent.isAltDown(Z.getEvent())||mxEvent.isControlDown(k)||mxEvent.isShiftDown(k)||R||null==A||!this.model.isEdge(A.cell)||(B=new mxPoint(Z.getGraphX(),Z.getGraphY()),P=this.isCellSelected(A.cell),T=A,H=Z,null!=A.text&&null!=A.text.boundingBox&&mxUtils.contains(A.text.boundingBox,Z.getGraphX(),Z.getGraphY())?G=mxEvent.LABEL_HANDLE:(k=this.selectionCellsHandler.getHandler(A.cell),null!=k&&null!=k.bends&&0<k.bends.length&&(G=k.getHandleForEvent(Z))))}}));
+this.addMouseListener({mouseDown:function(Z,k){},mouseMove:mxUtils.bind(this,function(Z,k){Z=this.selectionCellsHandler.handlers.map;for(var A in Z)if(null!=Z[A].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(k.getEvent())){var I=this.tolerance;if(null!=B&&null!=T&&null!=H){if(A=T,null!=G||Math.abs(B.x-k.getGraphX())>I||Math.abs(B.y-k.getGraphY())>I){var U=null;mxEvent.isShiftDown(k.getEvent())||(U=this.selectionCellsHandler.getHandler(A.cell));if(null!=U&&null!=
+U.bends&&0<U.bends.length){U.redrawHandles();var O=null!=G?G:U.getHandleForEvent(H),S=this.view.getEdgeStyle(A),X=S==mxEdgeStyle.EntityRelation;I=A.absolutePoints;P||(O=G);O!=mxEvent.LABEL_HANDLE&&null!=I&&(O=G,null==O&&(Z=new mxRectangle(B.x,B.y),Z.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(Z,I[0].x,I[0].y)?O=0:mxUtils.contains(Z,I[I.length-1].x,I[I.length-1].y)?O=U.bends.length-1:null!=I&&(null==S&&null==O||S==mxEdgeStyle.SegmentConnector||S==mxEdgeStyle.OrthConnector)&&
+(null!=S&&(2==I.length||3==I.length&&(0==Math.round(I[0].x-I[1].x)&&0==Math.round(I[1].x-I[2].x)||0==Math.round(I[0].y-I[1].y)&&0==Math.round(I[1].y-I[2].y)))?O=2:(O=mxUtils.findNearestSegment(A,B.x,B.y),O=null==S?mxEvent.VIRTUAL_HANDLE-O:O+1))),null==O&&(O=mxEvent.VIRTUAL_HANDLE));Z=O==mxEvent.LABEL_HANDLE||0==O||O==U.bends.length-1;if(!X&&(null!=A.visibleSourceState||null!=A.visibleTargetState)||Z)U.start(k.getGraphX(),k.getGraphX(),O),k.consume(),this.graphHandler.reset()}null!=U&&(this.selectionCellsHandler.isHandlerActive(U)?
+this.isCellSelected(A.cell)||(this.selectionCellsHandler.handlers.put(A.cell,U),this.selectCellForEvent(A.cell,k.getEvent())):this.isCellSelected(A.cell)||U.destroy());P=!1;B=H=T=G=null}}else if(A=k.getState(),null!=A&&this.isCellEditable(A.cell)){Z=this.model.getParent(A.cell);U=null;if(this.model.isEdge(A.cell)&&!this.isCellSelected(A.cell)&&!mxEvent.isAltDown(k.getEvent())&&!mxEvent.isShiftDown(k.getEvent())&&!this.isAncestorSelected(A.cell)&&(this.isSwimlane(Z)||this.model.isLayer(Z)||this.getCurrentRoot()==
+Z)){if(Z=new mxRectangle(k.getGraphX(),k.getGraphY()),Z.grow(mxEdgeHandler.prototype.handleImage.width/2),I=A.absolutePoints,null!=I)null!=A.text&&null!=A.text.boundingBox&&mxUtils.contains(A.text.boundingBox,k.getGraphX(),k.getGraphY())?U="move":mxUtils.contains(Z,I[0].x,I[0].y)||mxUtils.contains(Z,I[I.length-1].x,I[I.length-1].y)?U="pointer":(S=this.view.getEdgeStyle(A),S==mxEdgeStyle.EntityRelation||null==A.visibleSourceState&&null==A.visibleTargetState||(U="crosshair",S!=mxEdgeStyle.SegmentConnector&&
+S!=mxEdgeStyle.OrthConnector))||(k=mxUtils.findNearestSegment(A,k.getGraphX(),k.getGraphY()),k<I.length-1&&0<=k&&(U=0==Math.round(I[k].x-I[k+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(k.getEvent())){I=mxShape.prototype.svgStrokeTolerance/2;Z=new mxRectangle(k.getGraphX(),k.getGraphY());Z.grow(I);if(this.isTableCell(A.cell)&&this.isCellMovable(A.cell)&&(k=this.model.getParent(A.cell),I=this.model.getParent(k),!this.isCellSelected(I)))if(mxUtils.intersects(Z,new mxRectangle(A.x,
A.y-2,A.width,4))&&this.model.getChildAt(I,0)!=k||mxUtils.intersects(Z,new mxRectangle(A.x,A.y+A.height-2,A.width,4)))U="row-resize";else if(mxUtils.intersects(Z,new mxRectangle(A.x-2,A.y,4,A.height))&&this.model.getChildAt(k,0)!=A.cell||mxUtils.intersects(Z,new mxRectangle(A.x+A.width-2,A.y,4,A.height)))U="col-resize";for(k=A;null==U&&null!=k&&(this.isTableCell(k.cell)||this.isTableRow(k.cell)||this.isTable(k.cell));)this.isSwimlane(k.cell)&&this.isCellMovable(k.cell)&&(I=this.getActualStartSize(k.cell),
-O=this.view.scale,(0<I.x||0<I.width)&&mxUtils.intersects(Z,new mxRectangle(k.x+(I.x-I.width-1)*O+(0==I.x?k.width*O:0),k.y,1,k.height))?U="col-resize":(0<I.y||0<I.height)&&mxUtils.intersects(Z,new mxRectangle(k.x,k.y+(I.y-I.height-1)*O+(0==I.y?k.height:0),k.width,1))&&(U="row-resize")),k=this.view.getState(this.model.getParent(k.cell))}null!=U&&A.setCursor(U)}}}),mouseUp:mxUtils.bind(this,function(Z,k){G=B=H=S=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var c=document.createElement("div");this.cellRenderer.getLabelValue=
+O=this.view.scale,(0<I.x||0<I.width)&&mxUtils.intersects(Z,new mxRectangle(k.x+(I.x-I.width-1)*O+(0==I.x?k.width*O:0),k.y,1,k.height))?U="col-resize":(0<I.y||0<I.height)&&mxUtils.intersects(Z,new mxRectangle(k.x,k.y+(I.y-I.height-1)*O+(0==I.y?k.height:0),k.width,1))&&(U="row-resize")),k=this.view.getState(this.model.getParent(k.cell))}null!=U&&A.setCursor(U)}}}),mouseUp:mxUtils.bind(this,function(Z,k){G=B=H=T=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var c=document.createElement("div");this.cellRenderer.getLabelValue=
function(Z){var k=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);Z.view.graph.isHtmlLabel(Z.cell)&&("0"==mxUtils.getValue(Z.style,"html","0")?k=mxUtils.htmlEntities(k,!1):(Z.lastLabelValue!=k&&(Z.lastLabelValue=k,Z.lastSanitizedLabelValue=Graph.sanitizeHtml(k),c.innerHTML=Z.lastSanitizedLabelValue,Graph.addLightDarkColors(c,null,"simple"==Z.view.graph.getAdaptiveColors())&&(Z.lastSanitizedLabelValue=c.innerHTML)),k=Z.lastSanitizedLabelValue));return k};if("undefined"!==typeof mxVertexHandler){this.setConnectable(!0);
this.setDropEnabled(!0);this.setPanning(!0);this.setTooltips(!0);this.setAllowLoops(!0);this.allowAutoPanning=!0;this.constrainChildren=this.resetEdgesOnConnect=!1;this.constrainRelativeChildren=!0;this.graphHandler.scrollOnMove=!1;this.graphHandler.scaleGrid=!0;this.connectionHandler.setCreateTarget(!1);this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(Z,k){return!1};this.alternateEdgeStyle="vertical";null==m&&this.loadStylesheet();var f=this.graphHandler.getGuideStates;
-this.graphHandler.getGuideStates=function(){var Z=f.apply(this,arguments);if(this.graph.pageVisible){var k=[],A=this.graph.pageFormat,I=this.graph.pageScale,U=A.width*I;A=A.height*I;I=this.graph.view.translate;for(var O=this.graph.view.scale,T=this.graph.getPageLayout(),X=0;X<T.width;X++)k.push(new mxRectangle(((T.x+X)*U+I.x)*O,(T.y*A+I.y)*O,U*O,A*O));for(X=1;X<T.height;X++)k.push(new mxRectangle((T.x*U+I.x)*O,((T.y+X)*A+I.y)*O,U*O,A*O));Z=k.concat(Z)}return Z};mxDragSource.prototype.dragElementZIndex=
+this.graphHandler.getGuideStates=function(){var Z=f.apply(this,arguments);if(this.graph.pageVisible){var k=[],A=this.graph.pageFormat,I=this.graph.pageScale,U=A.width*I;A=A.height*I;I=this.graph.view.translate;for(var O=this.graph.view.scale,S=this.graph.getPageLayout(),X=0;X<S.width;X++)k.push(new mxRectangle(((S.x+X)*U+I.x)*O,(S.y*A+I.y)*O,U*O,A*O));for(X=1;X<S.height;X++)k.push(new mxRectangle((S.x*U+I.x)*O,((S.y+X)*A+I.y)*O,U*O,A*O));Z=k.concat(Z)}return Z};mxDragSource.prototype.dragElementZIndex=
mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(Z,k){return null==Z.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(Z){this.previewColor="#000000"==this.graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.createPreviewShape.apply(this,arguments)};var l=this.graphHandler.getCells;this.graphHandler.getCells=function(Z){for(var k=l.apply(this,arguments),A=new mxDictionary,I=[],U=0;U<k.length;U++){var O=
this.graph.isTableCell(Z)&&this.graph.isTableCell(k[U])&&this.graph.isCellSelected(k[U])?this.graph.model.getParent(k[U]):this.graph.isTableRow(Z)&&this.graph.isTableRow(k[U])&&this.graph.isCellSelected(k[U])?k[U]:this.graph.getCompositeParent(k[U]);null==O||A.get(O)||(A.put(O,!0),I.push(O))}return I};var t=this.graphHandler.start;this.graphHandler.start=function(Z,k,A,I){var U=!1;this.graph.isTableCell(Z)&&(this.graph.isCellSelected(Z)?U=!0:Z=this.graph.model.getParent(Z));U||this.graph.isTableRow(Z)&&
-this.graph.isCellSelected(Z)||(Z=this.graph.getCompositeParent(Z));t.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(Z,k){k=this.graph.getCompositeParent(k);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(Z,k,A,I,U,O){var T=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=I&&this.graph.applyNewEdgeStyle(I,[T]);return T};var z=new mxRubberband(this);this.getRubberband=function(){return z};
+this.graph.isCellSelected(Z)||(Z=this.graph.getCompositeParent(Z));t.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(Z,k){k=this.graph.getCompositeParent(k);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(Z,k,A,I,U,O){var S=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=I&&this.graph.applyNewEdgeStyle(I,[S]);return S};var z=new mxRubberband(this);this.getRubberband=function(){return z};
var C=(new Date).getTime(),F=0,N=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var Z=this.currentState;N.apply(this,arguments);Z!=this.currentState?(C=(new Date).getTime(),F=0):F=(new Date).getTime()-C};var K=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(Z){return mxEvent.isShiftDown(Z.getEvent())&&mxEvent.isAltDown(Z.getEvent())?!1:null!=this.currentState&&Z.getState()==this.currentState&&2E3<F||(null==this.currentState||
"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&K.apply(this,arguments)};var J=this.isToggleEvent;this.isToggleEvent=function(Z){return J.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(Z)};var da=z.isForceRubberbandEvent;z.isForceRubberbandEvent=function(Z){return da.apply(this,arguments)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(Z.getEvent())||mxUtils.hasScrollbars(this.graph.container)&&mxClient.IS_FF&&mxClient.IS_WIN&&null==Z.getState()&&mxEvent.isTouchEvent(Z.getEvent())};
var ea=null;this.panningHandler.addListener(mxEvent.PAN_START,mxUtils.bind(this,function(){this.isEnabled()&&(ea=this.container.style.cursor,this.container.style.cursor="move")}));this.panningHandler.addListener(mxEvent.PAN_END,mxUtils.bind(this,function(){this.isEnabled()&&(this.container.style.cursor=ea)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(Z){return mxEvent.isMouseEvent(Z.getEvent())};var ca=this.click;this.click=function(Z){var k=null==Z.state&&
@@ -2314,13 +2314,13 @@ Graph.createSvgImage=function(b,e,g,m,u){g=unescape(encodeURIComponent(Graph.svg
Graph.getSvgFromDataUri=function(b){return null!=b&&"data:image/svg"==b.substring(0,14)?Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+decodeURIComponent(escape(atob(b.substring(b.indexOf(",")+1)))):null};
Graph.createSvgNode=function(b,e,g,m,u){var p=mxUtils.createXmlDocument(),B=null!=p.createElementNS?p.createElementNS(mxConstants.NS_SVG,"svg"):p.createElement("svg");null!=u&&B.setAttribute("style","background: "+u.light+"; background-color: "+u.cssText+";");null==p.createElementNS?(B.setAttribute("xmlns",mxConstants.NS_SVG),B.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):B.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);B.setAttribute("version","1.1");B.setAttribute("width",
g+"px");B.setAttribute("height",m+"px");B.setAttribute("viewBox",b+" "+e+" "+g+" "+m);p.appendChild(B);return B};
-Graph.htmlToPng=function(b,e,g,m,u,p){u=null!=u?u:"";p=null!=p?p:Editor.htmlRasterScale;var B=document.createElement("canvas");B.width=e*p;B.height=g*p;var H=document.createElement("img");H.onload=mxUtils.bind(this,function(){try{var G=B.getContext("2d");G.scale(p,p);G.drawImage(H,0,0);m(B.toDataURL())}catch(P){m(null)}});var S=mxUtils.createXmlDocument();S=null!=S.createElementNS?S.createElementNS(mxConstants.NS_SVG,"svg"):S.createElement("svg");b=(new mxSvgCanvas2D(S)).convertHtml(b);H.onerror=
+Graph.htmlToPng=function(b,e,g,m,u,p){u=null!=u?u:"";p=null!=p?p:Editor.htmlRasterScale;var B=document.createElement("canvas");B.width=e*p;B.height=g*p;var H=document.createElement("img");H.onload=mxUtils.bind(this,function(){try{var G=B.getContext("2d");G.scale(p,p);G.drawImage(H,0,0);m(B.toDataURL())}catch(P){m(null)}});var T=mxUtils.createXmlDocument();T=null!=T.createElementNS?T.createElementNS(mxConstants.NS_SVG,"svg"):T.createElement("svg");b=(new mxSvgCanvas2D(T)).convertHtml(b);H.onerror=
function(G){m(null)};H.src="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+g+'">'+(""!=u?'<defs xmlns="http://www.w3.org/2000/svg"><style type="text/css">'+u+"</style></defs>":"")+'<foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml">'+b+"</div></foreignObject></svg>")};
-Graph.addLightDarkColors=function(b,e,g,m){function u(c,f,l){return null!=m?m(c,f,l):mxUtils.isValidColor(l)?(null==B&&null!=e&&(B={}),null!=B&&(B[f]=c.style.getPropertyValue(f)),l=mxUtils.getLightDarkColor(l,null,null,g),c.style.setProperty(f,l.cssText),!0):!1}for(var p=b.getElementsByTagName("*"),B=null,H=!1,S=0;S<p.length;S++)if(p[S]!=b&&null!=p[S].style){B=null;for(var G=0;G<p[S].style.length;G++){var P=p[S].style.item(G),R=p[S].style.getPropertyValue(P);H=u(p[S],P,R)||H}"FONT"==p[S].nodeName&&
-""==p[S].style.getPropertyValue("color")&&(R=p[S].getAttribute("color"),H=u(p[S],"color",R)||H);null!=e&&null!=B&&p[S].setAttribute(e,JSON.stringify(B))}return H};Graph.removeLightDarkColors=function(b,e){b=b.getElementsByTagName("*");for(var g=!1,m=0;m<b.length;m++)try{var u=b[m].getAttribute(e);if(null!=u){b[m].removeAttribute(e);var p=JSON.parse(u),B;for(B in p){var H=p[B];""==H?(b[m].style[B]=null,""==b[m].getAttribute("style")&&b[m].removeAttribute("style")):b[m].style[B]=H;g=!0}}}catch(S){}return g};
+Graph.addLightDarkColors=function(b,e,g,m){function u(c,f,l){return null!=m?m(c,f,l):mxUtils.isValidColor(l)?(null==B&&null!=e&&(B={}),null!=B&&(B[f]=c.style.getPropertyValue(f)),l=mxUtils.getLightDarkColor(l,null,null,g),c.style.setProperty(f,l.cssText),!0):!1}for(var p=b.getElementsByTagName("*"),B=null,H=!1,T=0;T<p.length;T++)if(p[T]!=b&&null!=p[T].style){B=null;for(var G=0;G<p[T].style.length;G++){var P=p[T].style.item(G),R=p[T].style.getPropertyValue(P);H=u(p[T],P,R)||H}"FONT"==p[T].nodeName&&
+""==p[T].style.getPropertyValue("color")&&(R=p[T].getAttribute("color"),H=u(p[T],"color",R)||H);null!=e&&null!=B&&p[T].setAttribute(e,JSON.stringify(B))}return H};Graph.removeLightDarkColors=function(b,e){b=b.getElementsByTagName("*");for(var g=!1,m=0;m<b.length;m++)try{var u=b[m].getAttribute(e);if(null!=u){b[m].removeAttribute(e);var p=JSON.parse(u),B;for(B in p){var H=p[B];""==H?(b[m].style[B]=null,""==b[m].getAttribute("style")&&b[m].removeAttribute("style")):b[m].style[B]=H;g=!0}}}catch(T){}return g};
Graph.getGivenColor=function(b,e){var g=null;if(b.nodeType==mxConstants.NODETYPE_ELEMENT){try{var m=b.getAttribute(Graph.backupStyleAttribute);if(null!=m){var u=JSON.parse(m);null!=u&&null!=u[e]&&("color"==e&&"FONT"==b.nodeName&&""==u[e]&&null!=b.getAttribute("color")?g=b.getAttribute("color"):""!=u[e]&&(g=u[e]))}}catch(p){}null==g&&""!=b.style[e]&&(g=b.style[e])}return g};
-Graph.setTextColor=function(b,e,g){for(var m=g?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,u=g?"color":"background-color",p=b.getElementsByTagName("*"),B=[],H=0;H<p.length;H++)B.push({node:p[H],value:p[H].style[u]});document.execCommand(g?"forecolor":"backcolor",!1,m);b=b.getElementsByTagName("*");for(H=0;H<b.length;H++){if(H<B.length&&B[H].node==b[H]&&B[H].value!=b[H].style[u]&&""==b[H].style[u])try{if(p=b[H].getAttribute(Graph.backupStyleAttribute),null!=p){var S=JSON.parse(p);S[u]=
-"";b[H].setAttribute(Graph.backupStyleAttribute,JSON.stringify(S))}}catch(G){}if(g&&b[H].getAttribute("color")==m||b[H].style[u]==m){g&&b[H].getAttribute("color")==m&&b[H].removeAttribute("color");b[H].style[u]=e!=mxConstants.NONE?mxUtils.getLightDarkColor(e).cssText:null;try{p=b[H].getAttribute(Graph.backupStyleAttribute),S=null!=p?JSON.parse(p):{},S[u]=e!=mxConstants.NONE?e:"",b[H].setAttribute(Graph.backupStyleAttribute,JSON.stringify(S))}catch(G){}if(g&&mxClient.IS_FF){e=b[H];g=e.firstChild;if(null!=
+Graph.setTextColor=function(b,e,g){for(var m=g?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,u=g?"color":"background-color",p=b.getElementsByTagName("*"),B=[],H=0;H<p.length;H++)B.push({node:p[H],value:p[H].style[u]});document.execCommand(g?"forecolor":"backcolor",!1,m);b=b.getElementsByTagName("*");for(H=0;H<b.length;H++){if(H<B.length&&B[H].node==b[H]&&B[H].value!=b[H].style[u]&&""==b[H].style[u])try{if(p=b[H].getAttribute(Graph.backupStyleAttribute),null!=p){var T=JSON.parse(p);T[u]=
+"";b[H].setAttribute(Graph.backupStyleAttribute,JSON.stringify(T))}}catch(G){}if(g&&b[H].getAttribute("color")==m||b[H].style[u]==m){g&&b[H].getAttribute("color")==m&&b[H].removeAttribute("color");b[H].style[u]=e!=mxConstants.NONE?mxUtils.getLightDarkColor(e).cssText:null;try{p=b[H].getAttribute(Graph.backupStyleAttribute),T=null!=p?JSON.parse(p):{},T[u]=e!=mxConstants.NONE?e:"",b[H].setAttribute(Graph.backupStyleAttribute,JSON.stringify(T))}catch(G){}if(g&&mxClient.IS_FF){e=b[H];g=e.firstChild;if(null!=
g&&"A"==g.nodeName&&null==g.nextSibling&&null!=g.firstChild){e.parentNode.insertBefore(g,e);for(m=g.firstChild;null!=m;)u=m.nextSibling,e.appendChild(m),m=u;g.appendChild(e)}break}}}};Graph.zapGremlins=function(b){return mxUtils.zapGremlins(b)};Graph.stringToBytes=function(b){for(var e=Array(b.length),g=0;g<b.length;g++)e[g]=b.charCodeAt(g);return e};Graph.bytesToString=function(b){for(var e=Array(b.length),g=0;g<b.length;g++)e[g]=String.fromCharCode(b[g]);return e.join("")};
Graph.base64EncodeUnicode=function(b){return btoa(encodeURIComponent(b).replace(/%([0-9A-F]{2})/g,function(e,g){return String.fromCharCode(parseInt(g,16))}))};Graph.base64DecodeUnicode=function(b){return decodeURIComponent(Array.prototype.map.call(atob(b),function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))};Graph.compressNode=function(b,e){b=mxUtils.getXml(b);return Graph.compress(e?b:Graph.zapGremlins(b))};
Graph.arrayBufferToString=function(b){var e="";b=new Uint8Array(b);for(var g=b.byteLength,m=0;m<g;m++)e+=String.fromCharCode(b[m]);return e};Graph.stringToArrayBuffer=function(b){return Uint8Array.from(b,function(e){return e.charCodeAt(0)})};
@@ -2333,9 +2333,9 @@ Graph.exploreFromCell=function(b,e,g){pageSize=null!=g&&null!=g.pageSize?g.pageS
" ("+Math.ceil((R.startIndex||0)/pageSize)+"/"+Math.ceil(z.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");da.referenceCell=l;da.startIndex=Math.max(0,(R.startIndex||0)-pageSize);K.splice(0,0,da)}if(z.length>(R.startIndex||0)+pageSize){var ea=P.createVertex(null,null,mxResources.get("nextPage")+" ("+(Math.ceil((R.startIndex||0)/pageSize)+2)+"/"+Math.ceil(z.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");
ea.referenceCell=l;ea.startIndex=(R.startIndex||0)+pageSize;K.splice(0,0,ea)}for(var ca in P.getModel().cells){var W=P.getModel().getCell(ca);W!=P.rootCell&&!P.getModel().isAncestor(P.rootCell,W)&&P.getModel().isVertex(W)&&P.removeCells([W])}P.addCells(K);var ba=P.getModel().getGeometry(P.rootCell);null!=ba&&(ba=ba.clone(),ba.x=c-ba.width/2,ba.y=f-ba.height/3,P.getModel().setGeometry(P.rootCell,ba));R=[];for(ca in P.getModel().cells)W=P.getModel().getCell(ca),W!=P.rootCell&&P.getModel().isVertex(W)&&
P.getModel().getParent(W)==P.getDefaultParent()&&(R.push(W),ba=P.getModel().getGeometry(W),null!=ba&&(ba.x=c-ba.width/2,ba.y=f-ba.height/2));var ha=R.length,la=2*Math.PI/ha,Y=Math.max(minSize,Math.min(P.container.scrollWidth/2.5-80,P.container.scrollHeight/2.5-80));for(c=0;c<ha;c++)ba=P.getModel().getGeometry(R[c]),null!=ba&&(ba=ba.clone(),ba.x+=Y*Math.sin(c*la),ba.y+=Y*Math.cos(c*la),P.getModel().setGeometry(R[c],ba))}finally{P.getModel().endUpdate()}}}var B=document.createElement("div");B.style.position=
-"absolute";B.style.display="block";B.style.background=Editor.isDarkMode()?Editor.darkColor:"#ffffff";B.style.width="100%";B.style.height="100%";B.style.left="0px";B.style.top="0px";B.style.zIndex=2;var H=document.createElement("img");H.setAttribute("src",Editor.closeBlackImage);H.style.position="absolute";H.style.cursor="pointer";H.style.right="10px";H.style.top="10px";B.appendChild(H);var S=document.createElement("div");S.style.position="absolute";S.style.cursor="pointer";S.style.right="38px";S.style.top=
-"14px";S.style.textAlign="right";S.style.verticalAlign="top";mxUtils.write(S,mxResources.get("close"));B.appendChild(S);document.body.appendChild(B);var G=function(P){27==P.keyCode&&H.click()};mxEvent.addListener(document,"keydown",G);(function(P){if(mxClient.isBrowserSupported()){var R=new Graph(P);R.keepEdgesInBackground=!0;R.isCellResizable=function(){return!1};R.isCellRotatable=function(){return!1};R.getCursorForCell=function(C){return this.model.isVertex(C)?"pointer":null};R.getFoldingImage=
-function(){return null};var c=function(){mxEvent.removeListener(document,"keydown",G);P.parentNode.removeChild(P);m.scrollCellToVisible(u)};mxEvent.addListener(H,"click",c);mxEvent.addListener(S,"click",c);R.setEnabled(!1);var f=R.click;R.click=function(C){var F=C.getCell(),N=null!=F?null!=F.referenceCell?F.referenceCell:F:null;null!=F&&R.rootCell!=F&&0<R.getEdges(N).length?p(R,F):f.apply(this,arguments)};c=R.container.scrollWidth/2;var l=R.container.scrollHeight/3;R.model.beginUpdate();var t=R.importCells([u])[0];
+"absolute";B.style.display="block";B.style.background=Editor.isDarkMode()?Editor.darkColor:"#ffffff";B.style.width="100%";B.style.height="100%";B.style.left="0px";B.style.top="0px";B.style.zIndex=2;var H=document.createElement("img");H.setAttribute("src",Editor.closeBlackImage);H.style.position="absolute";H.style.cursor="pointer";H.style.right="10px";H.style.top="10px";B.appendChild(H);var T=document.createElement("div");T.style.position="absolute";T.style.cursor="pointer";T.style.right="38px";T.style.top=
+"14px";T.style.textAlign="right";T.style.verticalAlign="top";mxUtils.write(T,mxResources.get("close"));B.appendChild(T);document.body.appendChild(B);var G=function(P){27==P.keyCode&&H.click()};mxEvent.addListener(document,"keydown",G);(function(P){if(mxClient.isBrowserSupported()){var R=new Graph(P);R.keepEdgesInBackground=!0;R.isCellResizable=function(){return!1};R.isCellRotatable=function(){return!1};R.getCursorForCell=function(C){return this.model.isVertex(C)?"pointer":null};R.getFoldingImage=
+function(){return null};var c=function(){mxEvent.removeListener(document,"keydown",G);P.parentNode.removeChild(P);m.scrollCellToVisible(u)};mxEvent.addListener(H,"click",c);mxEvent.addListener(T,"click",c);R.setEnabled(!1);var f=R.click;R.click=function(C){var F=C.getCell(),N=null!=F?null!=F.referenceCell?F.referenceCell:F:null;null!=F&&R.rootCell!=F&&0<R.getEdges(N).length?p(R,F):f.apply(this,arguments)};c=R.container.scrollWidth/2;var l=R.container.scrollHeight/3;R.model.beginUpdate();var t=R.importCells([u])[0];
t.sourceCellId=u.id;t.geometry.x=c-t.geometry.width/2;t.geometry.y=l-t.geometry.height/2;R.model.endUpdate();var z=!1;R.getModel().addListener(mxEvent.CHANGE,function(C,F){z||(C=F.getProperty("edit").changes,mxText.prototype.enableBoundingBox=!1,R.labelsVisible=!1,z=!0,mxEffects.animateChanges(R,C,function(){var N=new mxParallelEdgeLayout(R);N.spacing=60;var K=N.layout;N.layout=function(J){N.spacing=Math.min(60,Math.max(30,60-5*J.length));K.apply(this,arguments)};N.execute(R.getDefaultParent());mxText.prototype.enableBoundingBox=
!0;R.labelsVisible=!0;R.tooltipHandler.hide();R.refresh();z=!1}))});p(R,t)}else mxUtils.error("Browser is not supported!",200,!1)})(B)})(b,e)};Graph.removeKeys=function(b,e){for(var g in b)e(g)&&delete b[g]};Graph.setTransitionForNodes=function(b,e){for(var g=0;g<b.length;g++)mxUtils.setPrefixedStyle(b[g].style,"transition",e)};Graph.setOpacityForNodes=function(b,e){for(var g=0;g<b.length;g++)b[g].style.opacity=e};
Graph.removePasteFormatting=function(b,e){for(;null!=b;){null!=b.firstChild&&Graph.removePasteFormatting(b.firstChild,!0);var g=b.nextSibling;if(b.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=b.style){"#000000"==b.style.color&&(b.style.color="");if("SPAN"==b.nodeName&&"Apple-tab-span"==b.className){var m=Graph.createTabNode(4);b.parentNode.replaceChild(m,b);b=m}if("P"==b.nodeName&&"p1"==b.className){for(;null!=b.firstChild;)b.parentNode.insertBefore(b.firstChild,b);null!=g&&"P"==g.nodeName&&"p1"==
@@ -2343,7 +2343,7 @@ g.className&&b.parentNode.insertBefore(b.ownerDocument.createElement("br"),b);b.
Graph.sanitizeLink=function(b){if(null==b)return null;var e=document.createElement("a");e.setAttribute("href",b);Graph.sanitizeNode(e);return e.getAttribute("href")};Graph.sanitizeNode=function(b){return Graph.domPurify(b,!0)};DOMPurify.addHook("afterSanitizeAttributes",function(b){"use"==b.nodeName&&(null!=b.getAttribute("xlink:href")&&!b.getAttribute("xlink:href").startsWith("#")||null!=b.getAttribute("href")&&!b.getAttribute("href").startsWith("#"))&&b.remove()});
Graph.domPurify=function(b,e){window.DOM_PURIFY_CONFIG.IN_PLACE=e;return DOMPurify.sanitize(b,window.DOM_PURIFY_CONFIG)};
Graph.clipSvgDataUri=function(b){if(null!=b&&"data:image/svg+xml;base64,"==b.substring(0,26))try{var e=document.createElement("div");e.style.position="absolute";e.style.visibility="hidden";var g=decodeURIComponent(escape(atob(b.substring(26)))),m=g.indexOf("<svg");if(0<=m){e.innerHTML=Graph.sanitizeHtml(g.substring(m));var u=e.getElementsByTagName("svg");if(0<u.length){document.body.appendChild(e);try{m=g=1;var p=u[0].getAttribute("width"),B=u[0].getAttribute("height");p=null!=p&&"%"!=p.charAt(p.length-
-1)?parseFloat(p):NaN;B=null!=B&&"%"!=B.charAt(B.length-1)?parseFloat(B):NaN;var H=u[0].getAttribute("viewBox");if(null!=H&&!isNaN(p)&&!isNaN(B)){var S=H.split(" ");4<=H.length&&(g=parseFloat(S[2])/p,m=parseFloat(S[3])/B,new mxRectangle(parseFloat(S[0]),parseFloat(S[1]),parseFloat(S[2]),parseFloat(S[3])))}var G=u[0].getBBox();if(0<G.width&&0<G.height){p=0;var P=u[0].querySelectorAll("[stroke-width]");for(B=0;B<P.length;B++)p=Math.max(p,parseFloat(P[B].getAttribute("stroke-width")));G=new mxRectangle(G.x,
+1)?parseFloat(p):NaN;B=null!=B&&"%"!=B.charAt(B.length-1)?parseFloat(B):NaN;var H=u[0].getAttribute("viewBox");if(null!=H&&!isNaN(p)&&!isNaN(B)){var T=H.split(" ");4<=H.length&&(g=parseFloat(T[2])/p,m=parseFloat(T[3])/B,new mxRectangle(parseFloat(T[0]),parseFloat(T[1]),parseFloat(T[2]),parseFloat(T[3])))}var G=u[0].getBBox();if(0<G.width&&0<G.height){p=0;var P=u[0].querySelectorAll("[stroke-width]");for(B=0;B<P.length;B++)p=Math.max(p,parseFloat(P[B].getAttribute("stroke-width")));G=new mxRectangle(G.x,
G.y,G.width,G.height);G.grow(p/2);e.getElementsByTagName("svg")[0].setAttribute("viewBox",G.x+" "+G.y+" "+G.width+" "+G.height);e.getElementsByTagName("svg")[0].setAttribute("width",G.width/g);e.getElementsByTagName("svg")[0].setAttribute("height",G.height/m)}}catch(R){}finally{document.body.removeChild(e)}b=Editor.createSvgDataUri(mxUtils.getXml(u[0]))}}}catch(R){}return b};
Graph.createRemoveIcon=function(b,e){var g=document.createElement("img");g.setAttribute("src",Dialog.prototype.clearImage);g.setAttribute("title",b);g.setAttribute("width","13");g.setAttribute("height","10");g.style.marginLeft="4px";g.style.marginBottom="-1px";g.style.cursor="pointer";mxEvent.addListener(g,"click",e);return g};Graph.isPageLink=function(b){return null!=b&&"data:page/id,"==b.substring(0,13)};
Graph.rewritePageLinks=function(b,e){function g(u,p){var B=u.getAttribute(p);if(null!=B){Graph.isPageLink(B)&&(B="#"+B.substring(B.indexOf(":")+1));var H=p;e&&"xlink:href"==p&&(u.removeAttribute(p),H="href");u.setAttribute(H,B)}}b=b.getElementsByTagName("a");if(null!=b)for(var m=0;m<b.length;m++)g(b[m],"href"),g(b[m],"xlink:href")};Graph.isLink=function(b){return null!=b&&b.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g)};
@@ -2352,32 +2352,32 @@ Graph.prototype.diagramBackgroundColor="#f0f0f0";Graph.prototype.enableDiagramBa
Graph.prototype.scrollTileSize=new mxRectangle(0,0,400,400);Graph.prototype.transparentBackground=!0;Graph.prototype.selectParentAfterDelete=!1;Graph.prototype.defaultEdgeLength=80;Graph.prototype.immediateHandling=!0;Graph.prototype.connectionArrowsEnabled=!0;Graph.prototype.placeholderPattern=RegExp("%(date{.*}|[^%^{^}^ ^\"^ '^=^;]+)%","g");Graph.prototype.absoluteUrlPattern=RegExp("^(?:[a-z]+:)?//","i");Graph.prototype.defaultThemeName="default";Graph.prototype.defaultThemes={};
Graph.prototype.baseUrl=null!=urlParams.base?mxUtils.removeJavascriptProtocol(decodeURIComponent(urlParams.base)):(window!=window.top?document.referrer:document.location.toString()).split("#")[0];Graph.prototype.editAfterInsert=!1;Graph.prototype.builtInProperties=["label","tooltip","placeholders","placeholder"];Graph.prototype.standalone=!1;Graph.prototype.enableFlowAnimation=!1;Graph.prototype.roundableShapes="label rectangle internalStorage corner parallelogram swimlane triangle trapezoid ext step tee process link rhombus offPageConnector loopLimit hexagon manualInput card curlyBracket singleArrow callout doubleArrow flexArrow umlLifeline".split(" ");
Graph.prototype.vertexFontSize=null;Graph.prototype.edgeFontSize=null;Graph.prototype.adaptiveColors="auto";
-Graph.prototype.init=function(b){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(g,m){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var u=g.view.graph.tolerance,p=!0,B=null,H=mxUtils.bind(this,function(P){p=!0;B=new mxPoint(mxEvent.getClientX(P),mxEvent.getClientY(P))}),S=mxUtils.bind(this,function(P){p=p&&null!=B&&Math.abs(B.x-mxEvent.getClientX(P))<u&&Math.abs(B.y-mxEvent.getClientY(P))<u}),G=mxUtils.bind(this,function(P){if(p)for(var R=mxEvent.getSource(P);null!=
-R&&R!=m.node;){if("a"==R.nodeName.toLowerCase()){g.view.graph.labelLinkClicked(g,R,P);break}R=R.parentNode}});mxEvent.addGestureListeners(m.node,H,S,G);mxEvent.addListener(m.node,"click",function(P){mxEvent.consume(P)})};if(null!=this.tooltipHandler){var e=this.tooltipHandler.init;this.tooltipHandler.init=function(){e.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(g){var m=mxEvent.getSource(g);"A"==m.nodeName&&(m=m.getAttribute("href"),null!=
+Graph.prototype.init=function(b){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(g,m){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var u=g.view.graph.tolerance,p=!0,B=null,H=mxUtils.bind(this,function(P){p=!0;B=new mxPoint(mxEvent.getClientX(P),mxEvent.getClientY(P))}),T=mxUtils.bind(this,function(P){p=p&&null!=B&&Math.abs(B.x-mxEvent.getClientX(P))<u&&Math.abs(B.y-mxEvent.getClientY(P))<u}),G=mxUtils.bind(this,function(P){if(p)for(var R=mxEvent.getSource(P);null!=
+R&&R!=m.node;){if("a"==R.nodeName.toLowerCase()){g.view.graph.labelLinkClicked(g,R,P);break}R=R.parentNode}});mxEvent.addGestureListeners(m.node,H,T,G);mxEvent.addListener(m.node,"click",function(P){mxEvent.consume(P)})};if(null!=this.tooltipHandler){var e=this.tooltipHandler.init;this.tooltipHandler.init=function(){e.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(g){var m=mxEvent.getSource(g);"A"==m.nodeName&&(m=m.getAttribute("href"),null!=
m&&this.graph.isCustomLink(m)&&(mxEvent.isTouchEvent(g)||!mxEvent.isPopupTrigger(g))&&this.graph.customLinkClicked(m)&&mxEvent.consume(g))}))}}this.initLayoutManager()};
(function(){Graph.prototype.useCssTransforms=!1;Graph.prototype.currentScale=1;Graph.prototype.currentTranslate=new mxPoint(0,0);Graph.prototype.pasteEdgeStyle=!1;Graph.prototype.isFillState=function(B){return!this.isSpecialColor(B.style[mxConstants.STYLE_FILLCOLOR])&&"1"!=mxUtils.getValue(B.style,"lineShape",null)&&(this.model.isVertex(B.cell)||"arrow"==mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null)||"wire"==mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null)||"filledEdge"==mxUtils.getValue(B.style,
-mxConstants.STYLE_SHAPE,null)||"flexArrow"==mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null)||"mxgraph.arrows2.wedgeArrow"==mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isGradientState=function(B){return this.isFillState(B)&&"wire"!=mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null)};Graph.prototype.isStrokeState=function(B){return!0};Graph.prototype.getTextColor=function(B,H){for(var S=B==this.cellEditor.textarea&&H?"default":Graph.getGivenColor(B,H?"color":
-"background-color");null==S&&null!=B&&B!=this.cellEditor.textarea.parentNode;)S=B==this.cellEditor.textarea&&H?"default":Graph.getGivenColor(B,"color"),B=B.parentNode;if("rgba(0, 0, 0, 0)"==S||"transparent"==S)S=mxConstants.NONE;return S};Graph.prototype.isSpecialColor=function(B){return 0<=mxUtils.indexOf([mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_FILLCOLOR,"inherit","swimlane","indicated"],B)};Graph.prototype.isGlassState=function(B){B=mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null);
-return"label"==B||"rectangle"==B||"internalStorage"==B||"ext"==B||"umlLifeline"==B||"swimlane"==B||"process"==B};Graph.prototype.isRoundedState=function(B){return null!=B.shape?B.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isLineJumpState=function(B){var H=mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null);return!mxUtils.getValue(B.style,mxConstants.STYLE_CURVED,!1)&&("connector"==H||"filledEdge"==H||"wire"==
-H)};Graph.prototype.isAutoSizeState=function(B){return"1"==mxUtils.getValue(B.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(B){return null!=mxUtils.getValue(B.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(B){return!0};Graph.prototype.getVerticesAndEdges=function(B,H){B=null!=B?B:!0;H=null!=H?H:!0;var S=this.model;return S.filterDescendants(function(G){return B&&S.isVertex(G)||H&&S.isEdge(G)},S.getRoot())};Graph.prototype.applyNewEdgeStyle=
-function(B,H,S){B=this.getCellStyle(B).newEdgeStyle;if(null!=B){this.model.beginUpdate();try{var G=JSON.parse(B),P;for(P in G)this.setCellStyles(P,G[P],H),"edgeStyle"==P&&"elbowEdgeStyle"==G[P]&&null!=S&&this.setCellStyles("elbow",S==mxConstants.DIRECTION_SOUTH||S==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",H)}finally{this.model.endUpdate()}}};Graph.prototype.getCommonStyle=function(B){for(var H={},S=0;S<B.length;S++){var G=this.view.getState(B[S]);null!=G&&this.mergeStyle(G.style,H,0==S)}return H};
-Graph.prototype.mergeStyle=function(B,H,S){if(null!=B){var G={},P;for(P in B){var R=B[P];null!=R&&(G[P]=!0,null==H[P]&&S?H[P]=R:H[P]!=R&&delete H[P])}for(P in H)G[P]||delete H[P]}};Graph.prototype.getStartEditingCell=function(B,H){H=this.getCellStyle(B);H=parseInt(mxUtils.getValue(H,mxConstants.STYLE_STARTSIZE,0));this.isTable(B)&&(!this.isSwimlane(B)||0==H)&&""==this.getLabel(B)&&0<this.model.getChildCount(B)&&(B=this.model.getChildAt(B,0),H=this.getCellStyle(B),H=parseInt(mxUtils.getValue(H,mxConstants.STYLE_STARTSIZE,
-0)));if(this.isTableRow(B)&&(!this.isSwimlane(B)||0==H)&&""==this.getLabel(B)&&0<this.model.getChildCount(B))for(H=0;H<this.model.getChildCount(B);H++){var S=this.model.getChildAt(B,H);if(this.isCellEditable(S)){B=S;break}}return B};Graph.prototype.copyStyle=function(B){return this.getCellStyle(B,!1)};Graph.prototype.pasteStyle=function(B,H,S,G){null!=B&&(G||(S=null!=S?S:Graph.cellStyles,Graph.removeKeys(B,function(P){return 0>mxUtils.indexOf(S,P)})),this.updateCellStyles(B,H))};Graph.prototype.copyCellStyles=
-function(B,H,S,G,P,R,c){var f=!1,l=!1;if(0<B.length)for(var t=0;t<B.length&&(f=this.getModel().isVertex(B[t])||f,!(l=this.getModel().isEdge(B[t])||l)||!f);t++);else l=f=!0;f=f&&!R;l=l&&!c;for(t=0;t<H.length;t++)if(B=0<=mxUtils.indexOf(Graph.textStyles,H[t]),"strokeColor"!=H[t]||null!=S[t]&&"none"!=S[t])if(0<=mxUtils.indexOf(Graph.cellStyles,H[t])||"shape"==H[t])if("shape"!=H[t]&&(f||B)&&(null==S[t]?delete G[H[t]]:G[H[t]]=S[t]),l||B)null==S[t]?delete P[H[t]]:P[H[t]]=S[t]};Graph.prototype.includeDescendants=
-function(B){for(var H=[],S=0;S<B.length;S++)H=H.concat(this.model.getDescendants(B[S]));return H};Graph.prototype.pasteCellStyles=function(B,H,S,G,P){H=null!=H?H:this.currentVertexStyle;S=null!=S?S:this.currentEdgeStyle;P=null!=P?P:this.pasteEdgeStyle;this.model.beginUpdate();try{for(var R=0;R<B.length;R++){var c=B[R],f=this.model.getStyle(c),l=!1;null!=c.style&&(pairs=c.style.split(";"),l=l||0<=mxUtils.indexOf(pairs,"text"));if(l)var t=Graph.textStyles;else if(t=Graph.cellStyles.slice(),!G)for(var z=
-null!=f?f.split(";"):[],C=0;C<z.length;C++){var F=z[C],N=F.indexOf("=");if(0<=N){var K=F.substring(0,N),J=mxUtils.indexOf(t,K);0<=J&&t.splice(J,1);for(l=0;l<Graph.cellStyleGroups.length;l++){var da=Graph.cellStyleGroups[l];if(0<=mxUtils.indexOf(da,K))for(var ea=0;ea<da.length;ea++){var ca=mxUtils.indexOf(t,da[ea]);0<=ca&&t.splice(ca,1)}}}}var W=this.model.isEdge(c);l=W?S:H;for(C=0;C<t.length;C++){K=t[C];var ba=l[K];null!=ba&&("edgeStyle"!=K||P)&&(W||!W&&0>mxUtils.indexOf(Graph.edgeStyles,K))&&(f=
-mxUtils.setStyle(f,K,ba),"fontFamily"==K&&null==l.fontSource&&(f=mxUtils.setStyle(f,"fontSource",null)),W&&"rounded"==K&&"1"==ba&&null==l.curved&&(f=mxUtils.setStyle(f,"curved",null)))}Editor.simpleLabels&&(f=mxUtils.setStyle(mxUtils.setStyle(f,"html",null),"whiteSpace",null));this.model.setStyle(c,f)}}finally{this.model.endUpdate()}return B};Graph.prototype.updateCellStyles=function(B,H){this.model.beginUpdate();try{for(var S=0;S<H.length;S++)if(this.model.isVertex(H[S])||this.model.isEdge(H[S])){var G=
-this.getCellStyle(H[S],!1),P=G[mxConstants.STYLE_PERIMETER],R=!1;for(f in B){var c=B[f];if(G[f]!=c){if(f==mxConstants.STYLE_SHAPE&&"umlLifeline"==G[f]&&"umlLifeline"!=c){R=!0;var f="participant"}this.setCellStyles(f,c,[H[S]])}}R&&this.setCellStyles(mxConstants.STYLE_PERIMETER,P,[H[S]])}}finally{this.model.endUpdate()}};Graph.prototype.isFastZoomEnabled=function(){return"nocss"!=urlParams.zoom&&!mxClient.NO_FO&&!mxClient.IS_EDGE&&!this.useCssTransforms&&(this.isCssTransformsSupported()||mxClient.IS_IOS)};
-Graph.prototype.isCssTransformsSupported=function(){return this.dialect==mxConstants.DIALECT_SVG&&!mxClient.NO_FO&&(!this.lightbox||!mxClient.IS_SF)};Graph.prototype.getCellAt=function(B,H,S,G,P,R){this.useCssTransforms&&(B=B/this.currentScale-this.currentTranslate.x,H=H/this.currentScale-this.currentTranslate.y);return this.getScaledCellAt.apply(this,arguments)};Graph.prototype.getScaledCellAt=function(B,H,S,G,P,R){G=null!=G?G:!0;P=null!=P?P:!0;null==S&&(S=this.getCurrentRoot(),null==S&&(S=this.getModel().getRoot()));
-if(null!=S)for(var c=this.model.getChildCount(S)-1;0<=c;c--){var f=this.model.getChildAt(S,c),l=this.getScaledCellAt(B,H,f,G,P,R);if(null!=l)return l;if(this.isCellVisible(f)&&(P&&this.model.isEdge(f)||G&&this.model.isVertex(f))&&(l=this.view.getState(f),null!=l&&(null==R||!R(l,B,H))&&this.intersects(l,B,H)))return f}return null};Graph.prototype.isRecursiveVertexResize=function(B){return!this.isSwimlane(B.cell)&&0<this.model.getChildCount(B.cell)&&!this.isCellCollapsed(B.cell)&&"1"==mxUtils.getValue(B.style,
-"recursiveResize","1")&&null==mxUtils.getValue(B.style,"childLayout",null)};Graph.prototype.getAbsoluteParent=function(B){for(var H=this.getCellGeometry(B);null!=H&&H.relative;)B=this.getModel().getParent(B),H=this.getCellGeometry(B);return B};Graph.prototype.isPart=function(B){return"1"==mxUtils.getValue(this.getCurrentCellStyle(B),"part","0")||this.isTableCell(B)||this.isTableRow(B)};Graph.prototype.getCompositeParents=function(B){for(var H=new mxDictionary,S=[],G=0;G<B.length;G++){var P=this.getCompositeParent(B[G]);
-this.isTableCell(P)&&(P=this.graph.model.getParent(P));this.isTableRow(P)&&(P=this.graph.model.getParent(P));null==P||H.get(P)||(H.put(P,!0),S.push(P))}return S};Graph.prototype.getReferenceTerminal=function(B){if(null!=B){var H=this.getCellGeometry(B);null!=H&&H.relative&&(B=this.model.getParent(B))}null!=B&&this.model.isEdge(B)&&(B=this.model.getParent(B));null!=B&&(B=this.getCompositeParent(B));return B};Graph.prototype.getCompositeParent=function(B){for(;this.isPart(B);){var H=this.model.getParent(B);
-if(!this.model.isVertex(H))break;B=H}return B};Graph.prototype.filterSelectionCells=function(B){var H=this.getSelectionCells();if(null!=B){for(var S=[],G=0;G<H.length;G++)B(H[G])||S.push(H[G]);H=S}return H};var b=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(B){if(this.useCssTransforms){var H=this.currentScale,S=this.currentTranslate;B=new mxRectangle((B.x+2*S.x)*H-S.x,(B.y+2*S.y)*H-S.y,B.width*H,B.height*H)}b.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=
-function(B){B=this.strokeWidth;this.graph.useCssTransforms&&(B/=this.graph.currentScale);return B};mxGraphView.prototype.getGraphBounds=function(){var B=this.graphBounds;if(this.graph.useCssTransforms){var H=this.graph.currentTranslate,S=this.graph.currentScale;B=new mxRectangle((B.x+H.x)*S,(B.y+H.y)*S,B.width*S,B.height*S)}return B};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var e=mxGraphView.prototype.validate;
+mxConstants.STYLE_SHAPE,null)||"flexArrow"==mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null)||"mxgraph.arrows2.wedgeArrow"==mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isGradientState=function(B){return this.isFillState(B)&&"wire"!=mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null)};Graph.prototype.isStrokeState=function(B){return!0};Graph.prototype.getTextColor=function(B,H){for(var T=H?"color":"background-color",G=B==this.cellEditor.textarea&&H?"default":Graph.getGivenColor(B,
+T);null==G&&null!=B&&B!=this.cellEditor.textarea.parentNode;)G=B==this.cellEditor.textarea&&H?"default":Graph.getGivenColor(B,T),B=B.parentNode;if("rgba(0, 0, 0, 0)"==G||"transparent"==G)G=mxConstants.NONE;return G};Graph.prototype.isSpecialColor=function(B){return 0<=mxUtils.indexOf([mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_FILLCOLOR,"inherit","swimlane","indicated"],B)};Graph.prototype.isGlassState=function(B){B=mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null);return"label"==B||"rectangle"==
+B||"internalStorage"==B||"ext"==B||"umlLifeline"==B||"swimlane"==B||"process"==B};Graph.prototype.isRoundedState=function(B){return null!=B.shape?B.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isLineJumpState=function(B){var H=mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null);return!mxUtils.getValue(B.style,mxConstants.STYLE_CURVED,!1)&&("connector"==H||"filledEdge"==H||"wire"==H)};Graph.prototype.isAutoSizeState=
+function(B){return"1"==mxUtils.getValue(B.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(B){return null!=mxUtils.getValue(B.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(B){return!0};Graph.prototype.getVerticesAndEdges=function(B,H){B=null!=B?B:!0;H=null!=H?H:!0;var T=this.model;return T.filterDescendants(function(G){return B&&T.isVertex(G)||H&&T.isEdge(G)},T.getRoot())};Graph.prototype.applyNewEdgeStyle=function(B,H,T){B=this.getCellStyle(B).newEdgeStyle;
+if(null!=B){this.model.beginUpdate();try{var G=JSON.parse(B),P;for(P in G)this.setCellStyles(P,G[P],H),"edgeStyle"==P&&"elbowEdgeStyle"==G[P]&&null!=T&&this.setCellStyles("elbow",T==mxConstants.DIRECTION_SOUTH||T==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",H)}finally{this.model.endUpdate()}}};Graph.prototype.getCommonStyle=function(B){for(var H={},T=0;T<B.length;T++){var G=this.view.getState(B[T]);null!=G&&this.mergeStyle(G.style,H,0==T)}return H};Graph.prototype.mergeStyle=function(B,H,T){if(null!=
+B){var G={},P;for(P in B){var R=B[P];null!=R&&(G[P]=!0,null==H[P]&&T?H[P]=R:H[P]!=R&&delete H[P])}for(P in H)G[P]||delete H[P]}};Graph.prototype.getStartEditingCell=function(B,H){H=this.getCellStyle(B);H=parseInt(mxUtils.getValue(H,mxConstants.STYLE_STARTSIZE,0));this.isTable(B)&&(!this.isSwimlane(B)||0==H)&&""==this.getLabel(B)&&0<this.model.getChildCount(B)&&(B=this.model.getChildAt(B,0),H=this.getCellStyle(B),H=parseInt(mxUtils.getValue(H,mxConstants.STYLE_STARTSIZE,0)));if(this.isTableRow(B)&&
+(!this.isSwimlane(B)||0==H)&&""==this.getLabel(B)&&0<this.model.getChildCount(B))for(H=0;H<this.model.getChildCount(B);H++){var T=this.model.getChildAt(B,H);if(this.isCellEditable(T)){B=T;break}}return B};Graph.prototype.copyStyle=function(B){return this.getCellStyle(B,!1)};Graph.prototype.pasteStyle=function(B,H,T,G){null!=B&&(G||(T=null!=T?T:Graph.cellStyles,Graph.removeKeys(B,function(P){return 0>mxUtils.indexOf(T,P)})),this.updateCellStyles(B,H))};Graph.prototype.copyCellStyles=function(B,H,T,
+G,P,R,c){var f=!1,l=!1;if(0<B.length)for(var t=0;t<B.length&&(f=this.getModel().isVertex(B[t])||f,!(l=this.getModel().isEdge(B[t])||l)||!f);t++);else l=f=!0;f=f&&!R;l=l&&!c;for(t=0;t<H.length;t++)if(B=0<=mxUtils.indexOf(Graph.textStyles,H[t]),"strokeColor"!=H[t]||null!=T[t]&&"none"!=T[t])if(0<=mxUtils.indexOf(Graph.cellStyles,H[t])||"shape"==H[t])if("shape"!=H[t]&&(f||B)&&(null==T[t]?delete G[H[t]]:G[H[t]]=T[t]),l||B)null==T[t]?delete P[H[t]]:P[H[t]]=T[t]};Graph.prototype.includeDescendants=function(B){for(var H=
+[],T=0;T<B.length;T++)H=H.concat(this.model.getDescendants(B[T]));return H};Graph.prototype.pasteCellStyles=function(B,H,T,G,P){H=null!=H?H:this.currentVertexStyle;T=null!=T?T:this.currentEdgeStyle;P=null!=P?P:this.pasteEdgeStyle;this.model.beginUpdate();try{for(var R=0;R<B.length;R++){var c=B[R],f=this.model.getStyle(c),l=!1;null!=c.style&&(pairs=c.style.split(";"),l=l||0<=mxUtils.indexOf(pairs,"text"));if(l)var t=Graph.textStyles;else if(t=Graph.cellStyles.slice(),!G)for(var z=null!=f?f.split(";"):
+[],C=0;C<z.length;C++){var F=z[C],N=F.indexOf("=");if(0<=N){var K=F.substring(0,N),J=mxUtils.indexOf(t,K);0<=J&&t.splice(J,1);for(l=0;l<Graph.cellStyleGroups.length;l++){var da=Graph.cellStyleGroups[l];if(0<=mxUtils.indexOf(da,K))for(var ea=0;ea<da.length;ea++){var ca=mxUtils.indexOf(t,da[ea]);0<=ca&&t.splice(ca,1)}}}}var W=this.model.isEdge(c);l=W?T:H;for(C=0;C<t.length;C++){K=t[C];var ba=l[K];null!=ba&&("edgeStyle"!=K||P)&&(W||!W&&0>mxUtils.indexOf(Graph.edgeStyles,K))&&(f=mxUtils.setStyle(f,K,
+ba),"fontFamily"==K&&null==l.fontSource&&(f=mxUtils.setStyle(f,"fontSource",null)),W&&"rounded"==K&&"1"==ba&&null==l.curved&&(f=mxUtils.setStyle(f,"curved",null)))}Editor.simpleLabels&&(f=mxUtils.setStyle(mxUtils.setStyle(f,"html",null),"whiteSpace",null));this.model.setStyle(c,f)}}finally{this.model.endUpdate()}return B};Graph.prototype.updateCellStyles=function(B,H){this.model.beginUpdate();try{for(var T=0;T<H.length;T++)if(this.model.isVertex(H[T])||this.model.isEdge(H[T])){var G=this.getCellStyle(H[T],
+!1),P=G[mxConstants.STYLE_PERIMETER],R=!1;for(f in B){var c=B[f];if(G[f]!=c){if(f==mxConstants.STYLE_SHAPE&&"umlLifeline"==G[f]&&"umlLifeline"!=c){R=!0;var f="participant"}this.setCellStyles(f,c,[H[T]])}}R&&this.setCellStyles(mxConstants.STYLE_PERIMETER,P,[H[T]])}}finally{this.model.endUpdate()}};Graph.prototype.isFastZoomEnabled=function(){return"nocss"!=urlParams.zoom&&!mxClient.NO_FO&&!mxClient.IS_EDGE&&!this.useCssTransforms&&(this.isCssTransformsSupported()||mxClient.IS_IOS)};Graph.prototype.isCssTransformsSupported=
+function(){return this.dialect==mxConstants.DIALECT_SVG&&!mxClient.NO_FO&&(!this.lightbox||!mxClient.IS_SF)};Graph.prototype.getCellAt=function(B,H,T,G,P,R){this.useCssTransforms&&(B=B/this.currentScale-this.currentTranslate.x,H=H/this.currentScale-this.currentTranslate.y);return this.getScaledCellAt.apply(this,arguments)};Graph.prototype.getScaledCellAt=function(B,H,T,G,P,R){G=null!=G?G:!0;P=null!=P?P:!0;null==T&&(T=this.getCurrentRoot(),null==T&&(T=this.getModel().getRoot()));if(null!=T)for(var c=
+this.model.getChildCount(T)-1;0<=c;c--){var f=this.model.getChildAt(T,c),l=this.getScaledCellAt(B,H,f,G,P,R);if(null!=l)return l;if(this.isCellVisible(f)&&(P&&this.model.isEdge(f)||G&&this.model.isVertex(f))&&(l=this.view.getState(f),null!=l&&(null==R||!R(l,B,H))&&this.intersects(l,B,H)))return f}return null};Graph.prototype.isRecursiveVertexResize=function(B){return!this.isSwimlane(B.cell)&&0<this.model.getChildCount(B.cell)&&!this.isCellCollapsed(B.cell)&&"1"==mxUtils.getValue(B.style,"recursiveResize",
+"1")&&null==mxUtils.getValue(B.style,"childLayout",null)};Graph.prototype.getAbsoluteParent=function(B){for(var H=this.getCellGeometry(B);null!=H&&H.relative;)B=this.getModel().getParent(B),H=this.getCellGeometry(B);return B};Graph.prototype.isPart=function(B){return"1"==mxUtils.getValue(this.getCurrentCellStyle(B),"part","0")||this.isTableCell(B)||this.isTableRow(B)};Graph.prototype.getCompositeParents=function(B){for(var H=new mxDictionary,T=[],G=0;G<B.length;G++){var P=this.getCompositeParent(B[G]);
+this.isTableCell(P)&&(P=this.graph.model.getParent(P));this.isTableRow(P)&&(P=this.graph.model.getParent(P));null==P||H.get(P)||(H.put(P,!0),T.push(P))}return T};Graph.prototype.getReferenceTerminal=function(B){if(null!=B){var H=this.getCellGeometry(B);null!=H&&H.relative&&(B=this.model.getParent(B))}null!=B&&this.model.isEdge(B)&&(B=this.model.getParent(B));null!=B&&(B=this.getCompositeParent(B));return B};Graph.prototype.getCompositeParent=function(B){for(;this.isPart(B);){var H=this.model.getParent(B);
+if(!this.model.isVertex(H))break;B=H}return B};Graph.prototype.filterSelectionCells=function(B){var H=this.getSelectionCells();if(null!=B){for(var T=[],G=0;G<H.length;G++)B(H[G])||T.push(H[G]);H=T}return H};var b=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(B){if(this.useCssTransforms){var H=this.currentScale,T=this.currentTranslate;B=new mxRectangle((B.x+2*T.x)*H-T.x,(B.y+2*T.y)*H-T.y,B.width*H,B.height*H)}b.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=
+function(B){B=this.strokeWidth;this.graph.useCssTransforms&&(B/=this.graph.currentScale);return B};mxGraphView.prototype.getGraphBounds=function(){var B=this.graphBounds;if(this.graph.useCssTransforms){var H=this.graph.currentTranslate,T=this.graph.currentScale;B=new mxRectangle((B.x+H.x)*T,(B.y+H.y)*T,B.width*T,B.height*T)}return B};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var e=mxGraphView.prototype.validate;
mxGraphView.prototype.validate=function(B){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y,this.scale=1,this.translate.x=0,this.translate.y=0);e.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,this.translate.y=this.graph.currentTranslate.y)};var g=mxGraph.prototype.getCellsForGroup;
-Graph.prototype.getCellsForGroup=function(B){B=g.apply(this,arguments);for(var H=[],S=0;S<B.length;S++)this.isTableRow(B[S])||this.isTableCell(B[S])||H.push(B[S]);return H};var m=mxGraph.prototype.getCellsForUngroup;Graph.prototype.getCellsForUngroup=function(B){B=m.apply(this,arguments);for(var H=[],S=0;S<B.length;S++)this.isTable(B[S])||this.isTableRow(B[S])||this.isTableCell(B[S])||H.push(B[S]);return H};Graph.prototype.updateCssTransform=function(){var B=this.view.getDrawPane();if(null!=B)if(B=
-B.parentNode,this.useCssTransforms){var H=B.getAttribute("transform");B.setAttribute("transformOrigin","0 0");var S=Math.round(100*this.currentScale)/100;B.setAttribute("transform","scale("+S+","+S+")translate("+Math.round(100*this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");H!=B.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",B.getAttribute("transform"))}else B.removeAttribute("transformOrigin"),B.removeAttribute("transform")};
-var u=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var B=this.graph.useCssTransforms,H=this.scale,S=this.translate;B&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);u.apply(this,arguments);B&&(this.scale=H,this.translate=S)};var p=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(B,H,S){var G=this.useCssTransforms,P=this.view.scale,R=this.view.translate;G&&(this.view.scale=1,this.view.translate=
+Graph.prototype.getCellsForGroup=function(B){B=g.apply(this,arguments);for(var H=[],T=0;T<B.length;T++)this.isTableRow(B[T])||this.isTableCell(B[T])||H.push(B[T]);return H};var m=mxGraph.prototype.getCellsForUngroup;Graph.prototype.getCellsForUngroup=function(B){B=m.apply(this,arguments);for(var H=[],T=0;T<B.length;T++)this.isTable(B[T])||this.isTableRow(B[T])||this.isTableCell(B[T])||H.push(B[T]);return H};Graph.prototype.updateCssTransform=function(){var B=this.view.getDrawPane();if(null!=B)if(B=
+B.parentNode,this.useCssTransforms){var H=B.getAttribute("transform");B.setAttribute("transformOrigin","0 0");var T=Math.round(100*this.currentScale)/100;B.setAttribute("transform","scale("+T+","+T+")translate("+Math.round(100*this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");H!=B.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",B.getAttribute("transform"))}else B.removeAttribute("transformOrigin"),B.removeAttribute("transform")};
+var u=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var B=this.graph.useCssTransforms,H=this.scale,T=this.translate;B&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);u.apply(this,arguments);B&&(this.scale=H,this.translate=T)};var p=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(B,H,T){var G=this.useCssTransforms,P=this.view.scale,R=this.view.translate;G&&(this.view.scale=1,this.view.translate=
new mxPoint(0,0),this.useCssTransforms=!1);p.apply(this,arguments);G&&(this.view.scale=P,this.view.translate=R,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox};Graph.prototype.isViewer=function(){return!1};
Graph.prototype.labelLinkClicked=function(b,e,g){var m=e.getAttribute("href");m!=Graph.sanitizeLink(m)&&Graph.sanitizeNode(e);if(null!=m&&!this.isCustomLink(m)&&(mxEvent.isLeftMouseButton(g)&&!mxEvent.isPopupTrigger(g)||mxEvent.isTouchEvent(g))){if(!this.isEnabled()||this.isCellLocked(b.cell))b=this.isBlankLink(m)?this.linkTarget:"_top",this.openLink(this.getAbsoluteUrl(m),b);mxEvent.consume(g)}};
Graph.prototype.openLink=function(b,e,g){var m=window;try{if(b=Graph.sanitizeLink(b),null!=b)if("_self"==e&&window!=window.top)window.location.href=b;else if(b.substring(0,this.baseUrl.length)==this.baseUrl&&"#"==b.charAt(this.baseUrl.length)&&"_top"==e&&window==window.top){var u=b.split("#")[1];window.location.hash=="#"+u&&(window.location.hash="");window.location.hash=u}else m=window.open(b,null!=e?e:"_blank",g?null:"noopener,noreferrer"),null==m||g||(m.opener=null)}catch(p){}return m};
@@ -2393,7 +2393,7 @@ Graph.prototype.createLayouts=function(b){for(var e=[],g=0;g<b.length;g++)if(0<=
Graph.prototype.getDataForCells=function(b,e){for(var g=[],m=0;m<b.length;m++){var u={};u.id=b[m].id;var p=null!=b[m].value?b[m].value.attributes:null;this.isReplacePlaceholders(b[m])&&e&&(u.value=this.getLabel(b[m]));if(null!=p)for(var B=0;B<p.length;B++)u[p[B].nodeName]=p[B].nodeValue;else u.label=this.convertValueToString(b[m]);g.push(u)}return g};
Graph.prototype.getNodesForCells=function(b){for(var e=[],g=0;g<b.length;g++){var m=this.view.getState(b[g]);if(null!=m){for(var u=this.cellRenderer.getShapesForState(m),p=0;p<u.length;p++)null!=u[p]&&null!=u[p].node&&e.push(u[p].node);null!=m.control&&null!=m.control.node&&e.push(m.control.node)}}return e};
Graph.prototype.createWipeAnimations=function(b,e){for(var g=[],m=0;m<b.length;m++){var u=this.view.getState(b[m]);null!=u&&null!=u.shape&&(this.model.isEdge(u.cell)&&null!=u.absolutePoints&&1<u.absolutePoints.length?g.push(this.createEdgeWipeAnimation(u,e)):this.model.isVertex(u.cell)&&null!=u.shape.bounds&&g.push(this.createVertexWipeAnimation(u,e)))}return g};
-Graph.prototype.createEdgeWipeAnimation=function(b,e){var g=b.absolutePoints.slice(),m=b.segments,u=b.length,p=g.length;return{execute:mxUtils.bind(this,function(B,H){if(null!=b.shape){var S=[g[0]];H=B/H;e||(H=1-H);for(var G=u*H,P=1;P<p;P++)if(G<=m[P-1]){S.push(new mxPoint(g[P-1].x+(g[P].x-g[P-1].x)*G/m[P-1],g[P-1].y+(g[P].y-g[P-1].y)*G/m[P-1]));break}else G-=m[P-1],S.push(g[P]);b.shape.points=S;b.shape.redraw();0==B&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1);null!=b.text&&null!=
+Graph.prototype.createEdgeWipeAnimation=function(b,e){var g=b.absolutePoints.slice(),m=b.segments,u=b.length,p=g.length;return{execute:mxUtils.bind(this,function(B,H){if(null!=b.shape){var T=[g[0]];H=B/H;e||(H=1-H);for(var G=u*H,P=1;P<p;P++)if(G<=m[P-1]){T.push(new mxPoint(g[P-1].x+(g[P].x-g[P-1].x)*G/m[P-1],g[P-1].y+(g[P].y-g[P-1].y)*G/m[P-1]));break}else G-=m[P-1],T.push(g[P]);b.shape.points=T;b.shape.redraw();0==B&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1);null!=b.text&&null!=
b.text.node&&(b.text.node.style.opacity=H)}}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.points=g,b.shape.redraw(),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),e?1:0))})}};
Graph.prototype.createVertexWipeAnimation=function(b,e){var g=new mxRectangle.fromRectangle(b.shape.bounds);return{execute:mxUtils.bind(this,function(m,u){null!=b.shape&&(u=m/u,e||(u=1-u),b.shape.bounds=new mxRectangle(g.x,g.y,g.width*u,g.height),b.shape.redraw(),0==m&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=u))}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.bounds=g,b.shape.redraw(),null!=b.text&&null!=b.text.node&&
(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),e?1:0))})}};Graph.prototype.executeAnimations=function(b,e,g,m){g=null!=g?g:30;m=null!=m?m:30;var u=null,p=0,B=mxUtils.bind(this,function(){if(p==g||this.stoppingCustomActions){window.clearInterval(u);for(var H=0;H<b.length;H++)b[H].stop();null!=e&&e()}else for(H=0;H<b.length;H++)b[H].execute(p,g);p++});u=window.setInterval(B,m);B()};
@@ -2408,17 +2408,17 @@ Graph.prototype.isLabelMovable=function(b){var e=this.getCurrentCellStyle(b);ret
Graph.prototype.getClickableLinkForCell=function(b){do{var e=this.getLinkForCell(b);if(null!=e)return e;b=this.model.getParent(b)}while(null!=b);return null};Graph.prototype.getGlobalVariable=function(b){var e=null;"date"==b?e=(new Date).toLocaleDateString():"time"==b?e=(new Date).toLocaleTimeString():"timestamp"==b?e=(new Date).toLocaleString():"date{"==b.substring(0,5)&&(b=b.substring(5,b.length-1),e=this.formatDate(new Date,b));return e};
Graph.prototype.formatDate=function(b,e,g){null==this.dateFormatCache&&(this.dateFormatCache={i18n:{dayNames:"Sun Mon Tue Wed Thu Fri Sat Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),monthNames:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec January February March April May June July August September October November December".split(" ")},masks:{"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",
shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"}});var m=this.dateFormatCache,u=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,p=/[^-+\dA-Z]/g,B=function(C,F){C=String(C);for(F=F||2;C.length<F;)C="0"+C;return C};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(b)||
-/\d/.test(b)||(e=b,b=void 0);b=b?new Date(b):new Date;if(isNaN(b))throw SyntaxError("invalid date");e=String(m.masks[e]||e||m.masks["default"]);"UTC:"==e.slice(0,4)&&(e=e.slice(4),g=!0);var H=g?"getUTC":"get",S=b[H+"Date"](),G=b[H+"Day"](),P=b[H+"Month"](),R=b[H+"FullYear"](),c=b[H+"Hours"](),f=b[H+"Minutes"](),l=b[H+"Seconds"]();H=b[H+"Milliseconds"]();var t=g?0:b.getTimezoneOffset(),z={d:S,dd:B(S),ddd:m.i18n.dayNames[G],dddd:m.i18n.dayNames[G+7],m:P+1,mm:B(P+1),mmm:m.i18n.monthNames[P],mmmm:m.i18n.monthNames[P+
-12],yy:String(R).slice(2),yyyy:R,h:c%12||12,hh:B(c%12||12),H:c,HH:B(c),M:f,MM:B(f),s:l,ss:B(l),l:B(H,3),L:B(99<H?Math.round(H/10):H),t:12>c?"a":"p",tt:12>c?"am":"pm",T:12>c?"A":"P",TT:12>c?"AM":"PM",Z:g?"UTC":(String(b).match(u)||[""]).pop().replace(p,""),o:(0<t?"-":"+")+B(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4),S:["th","st","nd","rd"][3<S%10?0:(10!=S%100-S%10)*S%10]};return e.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(C){return C in z?z[C]:C.slice(1,
+/\d/.test(b)||(e=b,b=void 0);b=b?new Date(b):new Date;if(isNaN(b))throw SyntaxError("invalid date");e=String(m.masks[e]||e||m.masks["default"]);"UTC:"==e.slice(0,4)&&(e=e.slice(4),g=!0);var H=g?"getUTC":"get",T=b[H+"Date"](),G=b[H+"Day"](),P=b[H+"Month"](),R=b[H+"FullYear"](),c=b[H+"Hours"](),f=b[H+"Minutes"](),l=b[H+"Seconds"]();H=b[H+"Milliseconds"]();var t=g?0:b.getTimezoneOffset(),z={d:T,dd:B(T),ddd:m.i18n.dayNames[G],dddd:m.i18n.dayNames[G+7],m:P+1,mm:B(P+1),mmm:m.i18n.monthNames[P],mmmm:m.i18n.monthNames[P+
+12],yy:String(R).slice(2),yyyy:R,h:c%12||12,hh:B(c%12||12),H:c,HH:B(c),M:f,MM:B(f),s:l,ss:B(l),l:B(H,3),L:B(99<H?Math.round(H/10):H),t:12>c?"a":"p",tt:12>c?"am":"pm",T:12>c?"A":"P",TT:12>c?"AM":"PM",Z:g?"UTC":(String(b).match(u)||[""]).pop().replace(p,""),o:(0<t?"-":"+")+B(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4),S:["th","st","nd","rd"][3<T%10?0:(10!=T%100-T%10)*T%10]};return e.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(C){return C in z?z[C]:C.slice(1,
C.length-1)})};Graph.prototype.getLayerForCell=function(b){for(;null!=b&&!this.model.isLayer(b);)b=this.model.getParent(b);return b};Graph.prototype.getLayerForCells=function(b){var e=null;if(0<b.length){e=this.getLayerForCell(b[0]);for(var g=1;g<b.length;g++)if(!this.model.isAncestor(e,b[g])){e=null;break}}return e};
-Graph.prototype.createLayersDialog=function(b,e){var g=document.createElement("div");g.style.position="absolute";for(var m=this.getModel(),u=m.getChildCount(m.root),p=0;p<u;p++)mxUtils.bind(this,function(B){function H(){m.isVisible(B)?(P.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(G,75)):(P.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(G,25))}var S=this.convertValueToString(B)||mxResources.get("background")||"Background",G=document.createElement("div");G.style.overflow=
-"hidden";G.style.textOverflow="ellipsis";G.style.padding="2px";G.style.whiteSpace="nowrap";G.style.cursor="pointer";G.setAttribute("title",mxResources.get(m.isVisible(B)?"hideIt":"show",[S]));var P=document.createElement("img");P.setAttribute("draggable","false");P.setAttribute("align","absmiddle");P.setAttribute("border","0");P.style.position="relative";P.style.width="16px";P.style.padding="0px 6px 0 4px";e&&(P.style.filter="invert(100%)",P.style.top="-2px");G.appendChild(P);mxUtils.write(G,S);g.appendChild(G);
+Graph.prototype.createLayersDialog=function(b,e){var g=document.createElement("div");g.style.position="absolute";for(var m=this.getModel(),u=m.getChildCount(m.root),p=0;p<u;p++)mxUtils.bind(this,function(B){function H(){m.isVisible(B)?(P.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(G,75)):(P.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(G,25))}var T=this.convertValueToString(B)||mxResources.get("background")||"Background",G=document.createElement("div");G.style.overflow=
+"hidden";G.style.textOverflow="ellipsis";G.style.padding="2px";G.style.whiteSpace="nowrap";G.style.cursor="pointer";G.setAttribute("title",mxResources.get(m.isVisible(B)?"hideIt":"show",[T]));var P=document.createElement("img");P.setAttribute("draggable","false");P.setAttribute("align","absmiddle");P.setAttribute("border","0");P.style.position="relative";P.style.width="16px";P.style.padding="0px 6px 0 4px";e&&(P.style.filter="invert(100%)",P.style.top="-2px");G.appendChild(P);mxUtils.write(G,T);g.appendChild(G);
mxEvent.addListener(G,"click",function(){m.setVisible(B,!m.isVisible(B));H();null!=b&&b(B)});H()})(m.getChildAt(m.root,p));return g};
-Graph.prototype.replacePlaceholders=function(b,e,g,m){m=[];if(null!=e){for(var u=0;match=this.placeholderPattern.exec(e);){var p=match[0];if(2<p.length&&"%label%"!=p&&"%tooltip%"!=p){var B=null;if(match.index>u&&"%"==e.charAt(match.index-1))B=p.substring(1);else{var H=p.substring(1,p.length-1),S={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==H)B=b.id;else if("width"===H.substring(0,5)&&this.model.isVertex(b)){var G=this.getCellGeometry(b);
-null!=G&&(B=G.width,5<H.length&&(B=Editor.toUnit(B,S[H.substring(6)])))}else if("height"==H.substring(0,6)&&this.model.isVertex(b))G=this.getCellGeometry(b),null!=G&&(B=G.height,6<H.length&&(B=Editor.toUnit(B,S[H.substring(7)])));else if("length"==H.substring(0,6)){for(G=b;null!=G&&!this.model.isEdge(G);)G=this.model.getParent(G);G=this.view.getState(G);null!=G&&(B=Math.round(G.length/this.view.scale),6<H.length&&(B=Editor.toUnit(B,S[H.substring(7)])))}else if(0>H.indexOf("{"))for(S=b;null==B&&null!=
-S;)null!=S.value&&"object"==typeof S.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(B=S.getAttribute(H+"_"+Graph.diagramLanguage)),null==B&&(B=S.hasAttribute(H)?null!=S.getAttribute(H)?S.getAttribute(H):"":null)),S=this.model.getParent(S);null==B&&(B=this.getGlobalVariable(H));null==B&&null!=g&&(B=g[H])}m.push(e.substring(u,match.index)+(null!=B?B:p));u=match.index+p.length}}m.push(e.substring(u))}return m.join("")};
+Graph.prototype.replacePlaceholders=function(b,e,g,m){m=[];if(null!=e){for(var u=0;match=this.placeholderPattern.exec(e);){var p=match[0];if(2<p.length&&"%label%"!=p&&"%tooltip%"!=p){var B=null;if(match.index>u&&"%"==e.charAt(match.index-1))B=p.substring(1);else{var H=p.substring(1,p.length-1),T={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==H)B=b.id;else if("width"===H.substring(0,5)&&this.model.isVertex(b)){var G=this.getCellGeometry(b);
+null!=G&&(B=G.width,5<H.length&&(B=Editor.toUnit(B,T[H.substring(6)])))}else if("height"==H.substring(0,6)&&this.model.isVertex(b))G=this.getCellGeometry(b),null!=G&&(B=G.height,6<H.length&&(B=Editor.toUnit(B,T[H.substring(7)])));else if("length"==H.substring(0,6)){for(G=b;null!=G&&!this.model.isEdge(G);)G=this.model.getParent(G);G=this.view.getState(G);null!=G&&(B=Math.round(G.length/this.view.scale),6<H.length&&(B=Editor.toUnit(B,T[H.substring(7)])))}else if(0>H.indexOf("{"))for(T=b;null==B&&null!=
+T;)null!=T.value&&"object"==typeof T.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(B=T.getAttribute(H+"_"+Graph.diagramLanguage)),null==B&&(B=T.hasAttribute(H)?null!=T.getAttribute(H)?T.getAttribute(H):"":null)),T=this.model.getParent(T);null==B&&(B=this.getGlobalVariable(H));null==B&&null!=g&&(B=g[H])}m.push(e.substring(u,match.index)+(null!=B?B:p));u=match.index+p.length}}m.push(e.substring(u))}return m.join("")};
Graph.prototype.restoreSelection=function(b){if(null!=b&&0<b.length){for(var e=[],g=0;g<b.length;g++){var m=this.model.getCell(b[g].id);null!=m&&e.push(m)}this.setSelectionCells(e)}else this.clearSelection()};Graph.prototype.selectCellForEvent=function(b,e){mxEvent.isShiftDown(e)&&!this.isSelectionEmpty()&&this.selectTableRange(this.getSelectionCell(),b)||mxGraph.prototype.selectCellForEvent.apply(this,arguments)};
-Graph.prototype.selectTableRange=function(b,e){var g=!1;if(this.isTableCell(b)&&this.isTableCell(e)){var m=this.model.getParent(b),u=this.model.getParent(m),p=this.model.getParent(e);if(u==this.model.getParent(p)){b=m.getIndex(b);m=u.getIndex(m);var B=p.getIndex(e),H=u.getIndex(p);p=Math.max(m,H);e=Math.min(b,B);b=Math.max(b,B);B=[];for(m=Math.min(m,H);m<=p;m++){H=this.model.getChildAt(u,m);for(var S=e;S<=b;S++)B.push(this.model.getChildAt(H,S))}0<B.length&&(1<B.length||1<this.getSelectionCount()||
+Graph.prototype.selectTableRange=function(b,e){var g=!1;if(this.isTableCell(b)&&this.isTableCell(e)){var m=this.model.getParent(b),u=this.model.getParent(m),p=this.model.getParent(e);if(u==this.model.getParent(p)){b=m.getIndex(b);m=u.getIndex(m);var B=p.getIndex(e),H=u.getIndex(p);p=Math.max(m,H);e=Math.min(b,B);b=Math.max(b,B);B=[];for(m=Math.min(m,H);m<=p;m++){H=this.model.getChildAt(u,m);for(var T=e;T<=b;T++)B.push(this.model.getChildAt(H,T))}0<B.length&&(1<B.length||1<this.getSelectionCount()||
!this.isCellSelected(B[0]))&&(this.setSelectionCells(B),g=!0)}}return g};
Graph.prototype.snapCellsToGrid=function(b,e){this.getModel().beginUpdate();try{for(var g=0;g<b.length;g++){var m=b[g],u=this.getCellGeometry(m);if(null!=u){u=u.clone();if(this.getModel().isVertex(m))u.x=Math.round(u.x/e)*e,u.y=Math.round(u.y/e)*e,u.width=Math.round(u.width/e)*e,u.height=Math.round(u.height/e)*e;else if(this.getModel().isEdge(m)&&null!=u.points)for(var p=0;p<u.points.length;p++)u.points[p].x=Math.round(u.points[p].x/e)*e,u.points[p].y=Math.round(u.points[p].y/e)*e;this.getModel().setGeometry(m,
u)}}}finally{this.getModel().endUpdate()}};Graph.prototype.removeChildCells=function(b){this.model.beginUpdate();try{for(var e=this.model.getChildCount(b);0<=e;e--)this.model.remove(this.model.getChildAt(b,e))}finally{this.model.endUpdate()}};
@@ -2426,13 +2426,13 @@ Graph.prototype.updateShapes=function(b,e,g){this.model.beginUpdate();try{var m=
this.model.isEdge(b)&&this.model.isEdge(e[p]))if(g){var B=this.model.getStyle(e[p]);if(null!=B){var H=B.split(";");0<H.length&&0>H[0].indexOf("=")&&(H=H.slice(1));this.model.setStyle(e[p],H.join(";"))}this.setCellStyles(mxConstants.STYLE_PERIMETER,null,[e[p]]);this.setCellStyles("points",null,[e[p]]);this.pasteStyle(u,[e[p]],null,!0)}else u=this.copyStyle(e[p]),this.model.setStyle(e[p],m),this.pasteStyle(u,[e[p]]);"1"==mxUtils.getValue(this.getCellStyle(e[p],!1),"composite","0")&&this.removeChildCells(e[p])}}finally{this.model.endUpdate()}};
Graph.prototype.selectCellsForConnectVertex=function(b,e,g){2==b.length&&this.model.isVertex(b[1])?(this.setSelectionCell(b[1]),this.scrollCellToVisible(b[1]),null!=g&&(mxEvent.isTouchEvent(e)?g.update(g.getState(this.view.getState(b[1]))):g.reset())):this.setSelectionCells(b)};Graph.prototype.isCloneConnectSource=function(b){var e=null;null!=this.layoutManager&&(e=this.layoutManager.getLayout(this.model.getParent(b)));return this.isTableRow(b)||this.isTableCell(b)||null!=e&&e.constructor==mxStackLayout};
Graph.prototype.insertEdgeBeforeCell=function(b,e){for(var g=e;null!=g.parent&&null!=g.geometry&&g.geometry.relative&&g.parent!=b.parent;)g=this.model.getParent(g);null!=g&&null!=g.parent&&g.parent==b.parent&&(e=g.parent.getIndex(g),this.model.add(g.parent,b,e))};
-Graph.prototype.connectVertex=function(b,e,g,m,u,p,B,H){p=p?p:!1;if(b.geometry.relative&&this.model.isEdge(b.parent))return[];for(;b.geometry.relative&&this.model.isVertex(b.parent);)b=b.parent;var S=this.isCloneConnectSource(b),G=S?b:this.getCompositeParent(b),P=b.geometry.relative&&null!=b.parent.geometry?new mxPoint(b.parent.geometry.width*b.geometry.x,b.parent.geometry.height*b.geometry.y):new mxPoint(G.geometry.x,G.geometry.y);e==mxConstants.DIRECTION_NORTH?(P.x+=G.geometry.width/2,P.y-=g):e==
+Graph.prototype.connectVertex=function(b,e,g,m,u,p,B,H){p=p?p:!1;if(b.geometry.relative&&this.model.isEdge(b.parent))return[];for(;b.geometry.relative&&this.model.isVertex(b.parent);)b=b.parent;var T=this.isCloneConnectSource(b),G=T?b:this.getCompositeParent(b),P=b.geometry.relative&&null!=b.parent.geometry?new mxPoint(b.parent.geometry.width*b.geometry.x,b.parent.geometry.height*b.geometry.y):new mxPoint(G.geometry.x,G.geometry.y);e==mxConstants.DIRECTION_NORTH?(P.x+=G.geometry.width/2,P.y-=g):e==
mxConstants.DIRECTION_SOUTH?(P.x+=G.geometry.width/2,P.y+=G.geometry.height+g):(P.x=e==mxConstants.DIRECTION_WEST?P.x-g:P.x+(G.geometry.width+g),P.y+=G.geometry.height/2);var R=this.view.getState(this.model.getParent(b));g=this.view.scale;var c=this.view.translate;G=c.x*g;c=c.y*g;null!=R&&this.model.isVertex(R.cell)&&(G=R.x,c=R.y);this.model.isVertex(b.parent)&&b.geometry.relative&&(P.x+=b.parent.geometry.x,P.y+=b.parent.geometry.y);p=p?null:(new mxRectangle(G+P.x*g,c+P.y*g)).grow(40*g);p=null!=p?
this.getCells(0,0,0,0,null,null,p,null,!0):null;R=this.view.getState(b);var f=null,l=null;if(null!=p){p=p.reverse();for(var t=0;t<p.length;t++)if(!this.isCellLocked(p[t])&&!this.model.isEdge(p[t])&&p[t]!=b)if(!this.model.isAncestor(b,p[t])&&this.isContainer(p[t])&&(null==f||p[t]==this.model.getParent(b)))f=p[t];else if(null==l&&this.isCellConnectable(p[t])&&!this.model.isAncestor(p[t],b)&&!this.isSwimlane(p[t])){var z=this.view.getState(p[t]);null==R||null==z||mxUtils.intersects(R,z)||(l=p[t])}}var C=
-!mxEvent.isShiftDown(m)||mxEvent.isControlDown(m)||u;C&&("1"!=urlParams.sketch||u)&&(e==mxConstants.DIRECTION_NORTH?P.y-=b.geometry.height/2:e==mxConstants.DIRECTION_SOUTH?P.y+=b.geometry.height/2:P.x=e==mxConstants.DIRECTION_WEST?P.x-b.geometry.width/2:P.x+b.geometry.width/2);var F=[],N=l;l=f;u=mxUtils.bind(this,function(K){if(null==B||null!=K||null==l&&S){this.model.beginUpdate();try{if(null==N&&C){var J=this.getAbsoluteParent(null!=K?K:b);J=S?b:this.getCompositeParent(J);N=null!=K?K:this.duplicateCells([J],
-!1)[0];null!=K&&this.addCells([N],this.model.getParent(b),null,null,null,!0);var da=this.getCellGeometry(N);null!=da&&(null!=K&&"1"==urlParams.sketch&&(e==mxConstants.DIRECTION_NORTH?P.y-=da.height/2:e==mxConstants.DIRECTION_SOUTH?P.y+=da.height/2:P.x=e==mxConstants.DIRECTION_WEST?P.x-da.width/2:P.x+da.width/2),da.x=P.x-da.width/2,da.y=P.y-da.height/2);null!=f?(this.addCells([N],f,null,null,null,!0),l=null):C&&!S&&this.addCells([N],this.getDefaultParent(),null,null,null,!0)}var ea=mxEvent.isControlDown(m)&&
-mxEvent.isShiftDown(m)&&C||null==l&&S?null:this.insertEdge(this.model.getParent(b),null,"",b,N,this.createCurrentEdgeStyle());null!=ea&&(F.push(ea),this.applyNewEdgeStyle(b,[ea],e),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(ea,b));if(null==l&&null!=N&&null!=b.parent&&S&&e==mxConstants.DIRECTION_WEST){var ca=b.parent.getIndex(b);this.model.add(b.parent,N,ca)}null==l&&null!=N&&F.push(N);null==N&&null!=ea&&ea.geometry.setTerminalPoint(P,!1);null!=ea&&this.fireEvent(new mxEventObject("cellsInserted",
-"cells",[ea]))}finally{this.model.endUpdate()}}if(null!=H)H(F);else return F});if(null==B||null!=N||!C||null==l&&S)return u(N);B(G+P.x*g,c+P.y*g,u)};
+!mxEvent.isShiftDown(m)||mxEvent.isControlDown(m)||u;C&&("1"!=urlParams.sketch||u)&&(e==mxConstants.DIRECTION_NORTH?P.y-=b.geometry.height/2:e==mxConstants.DIRECTION_SOUTH?P.y+=b.geometry.height/2:P.x=e==mxConstants.DIRECTION_WEST?P.x-b.geometry.width/2:P.x+b.geometry.width/2);var F=[],N=l;l=f;u=mxUtils.bind(this,function(K){if(null==B||null!=K||null==l&&T){this.model.beginUpdate();try{if(null==N&&C){var J=this.getAbsoluteParent(null!=K?K:b);J=T?b:this.getCompositeParent(J);N=null!=K?K:this.duplicateCells([J],
+!1)[0];null!=K&&this.addCells([N],this.model.getParent(b),null,null,null,!0);var da=this.getCellGeometry(N);null!=da&&(null!=K&&"1"==urlParams.sketch&&(e==mxConstants.DIRECTION_NORTH?P.y-=da.height/2:e==mxConstants.DIRECTION_SOUTH?P.y+=da.height/2:P.x=e==mxConstants.DIRECTION_WEST?P.x-da.width/2:P.x+da.width/2),da.x=P.x-da.width/2,da.y=P.y-da.height/2);null!=f?(this.addCells([N],f,null,null,null,!0),l=null):C&&!T&&this.addCells([N],this.getDefaultParent(),null,null,null,!0)}var ea=mxEvent.isControlDown(m)&&
+mxEvent.isShiftDown(m)&&C||null==l&&T?null:this.insertEdge(this.model.getParent(b),null,"",b,N,this.createCurrentEdgeStyle());null!=ea&&(F.push(ea),this.applyNewEdgeStyle(b,[ea],e),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(ea,b));if(null==l&&null!=N&&null!=b.parent&&T&&e==mxConstants.DIRECTION_WEST){var ca=b.parent.getIndex(b);this.model.add(b.parent,N,ca)}null==l&&null!=N&&F.push(N);null==N&&null!=ea&&ea.geometry.setTerminalPoint(P,!1);null!=ea&&this.fireEvent(new mxEventObject("cellsInserted",
+"cells",[ea]))}finally{this.model.endUpdate()}}if(null!=H)H(F);else return F});if(null==B||null!=N||!C||null==l&&T)return u(N);B(G+P.x*g,c+P.y*g,u)};
Graph.prototype.getIndexableText=function(b){b=null!=b?b:this.model.getDescendants(this.model.root);for(var e=document.createElement("div"),g=[],m,u=0;u<b.length;u++)if(m=b[u],this.model.isVertex(m)||this.model.isEdge(m))this.isHtmlLabel(m)?(e.innerHTML=Graph.sanitizeHtml(this.getLabel(m)),m=mxUtils.extractTextWithWhitespace([e])):m=this.getLabel(m),m=mxUtils.trim(m.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")),0<m.length&&g.push(m);return g.join(" ")};
Graph.prototype.convertValueToString=function(b){var e=this.model.getValue(b);if(null!=e&&"object"==typeof e){var g=null;if(this.isReplacePlaceholders(b)&&null!=b.getAttribute("placeholder")){e=b.getAttribute("placeholder");for(var m=b;null==g&&null!=m;)null!=m.value&&"object"==typeof m.value&&(g=m.hasAttribute(e)?null!=m.getAttribute(e)?m.getAttribute(e):"":null),m=this.model.getParent(m)}else g=null,Graph.translateDiagram&&null!=Graph.diagramLanguage&&(g=e.getAttribute("label_"+Graph.diagramLanguage)),
null==g&&(g=e.getAttribute("label")||"");return g||""}return mxGraph.prototype.convertValueToString.apply(this,arguments)};Graph.prototype.getLinksForState=function(b){return null!=b&&null!=b.text&&null!=b.text.node?b.text.node.getElementsByTagName("a"):null};Graph.prototype.getLinkForCell=function(b,e){return null!=b.value&&"object"==typeof b.value?(b=b.value.getAttribute("link"),e||(b=mxUtils.removeJavascriptProtocol(b)),b):null};
@@ -2443,8 +2443,8 @@ mxConstants.STYLE_IMAGE_BACKGROUND,b);this.replaceDefaultColor(e,mxConstants.STY
Graph.prototype.getDefaultColor=function(b,e,g){e="default"+e.charAt(0).toUpperCase()+e.substring(1);"invert"==b[e]&&(b=mxUtils.getLightDarkColor(g),g="light-dark("+b.dark+", "+b.light+")");return g};
Graph.prototype.setAdaptiveColors=function(b){this.adaptiveColors="default"==b?null:b;"1"==urlParams.embedInline?null!=this.container&&(this.container.style.colorScheme="none"==this.getAdaptiveColors()?"light":""):(b=this.view.getDrawPane().ownerSVGElement,null!=b&&(b.style.colorScheme="none"==this.getAdaptiveColors()?"light":""))};Graph.prototype.getAdaptiveColors=function(){return null!=this.adaptiveColors?this.adaptiveColors:Graph.defaultAdaptiveColors};
Graph.prototype.updateAlternateBounds=function(b,e,g){if(null!=b&&null!=e&&null!=this.layoutManager&&null!=e.alternateBounds){var m=this.layoutManager.getLayout(this.model.getParent(b));null!=m&&m.constructor==mxStackLayout&&(m.horizontal?e.alternateBounds.height=0:e.alternateBounds.width=0)}mxGraph.prototype.updateAlternateBounds.apply(this,arguments)};Graph.prototype.isMoveCellsEvent=function(b,e){return mxEvent.isShiftDown(b)||"1"==mxUtils.getValue(e.style,"moveCells","0")};
-Graph.prototype.foldCells=function(b,e,g,m,u){e=null!=e?e:!1;null==g&&(g=this.getFoldableCells(this.getSelectionCells(),b));if(null!=g){this.model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutManager)for(var p=0;p<g.length;p++){var B=this.view.getState(g[p]),H=this.getCellGeometry(g[p]);if(null!=B&&null!=H){var S=0,G=0;if(H.alternateBounds)S=H.width-H.alternateBounds.width,G=H.height-H.alternateBounds.height;else{var P=this.useCssTransforms?1:this.view.scale;
-S=Math.round(H.width-B.width/P);G=Math.round(H.height-B.height/P)}if(0!=G||0!=S){var R=this.model.getParent(g[p]),c=this.layoutManager.getLayout(R);null==c?null!=u&&this.isMoveCellsEvent(u,B)&&this.moveSiblings(B,R,S,G):null!=u&&mxEvent.isAltDown(u)||c.constructor!=mxStackLayout||c.resizeLast||this.resizeParentStacks(R,c,S,G)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(g)}};
+Graph.prototype.foldCells=function(b,e,g,m,u){e=null!=e?e:!1;null==g&&(g=this.getFoldableCells(this.getSelectionCells(),b));if(null!=g){this.model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutManager)for(var p=0;p<g.length;p++){var B=this.view.getState(g[p]),H=this.getCellGeometry(g[p]);if(null!=B&&null!=H){var T=0,G=0;if(H.alternateBounds)T=H.width-H.alternateBounds.width,G=H.height-H.alternateBounds.height;else{var P=this.useCssTransforms?1:this.view.scale;
+T=Math.round(H.width-B.width/P);G=Math.round(H.height-B.height/P)}if(0!=G||0!=T){var R=this.model.getParent(g[p]),c=this.layoutManager.getLayout(R);null==c?null!=u&&this.isMoveCellsEvent(u,B)&&this.moveSiblings(B,R,T,G):null!=u&&mxEvent.isAltDown(u)||c.constructor!=mxStackLayout||c.resizeLast||this.resizeParentStacks(R,c,T,G)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(g)}};
Graph.prototype.moveSiblings=function(b,e,g,m){this.model.beginUpdate();try{var u=this.getCellsBeyond(b.x,b.y,e,!0,!0);for(e=0;e<u.length;e++)if(u[e]!=b.cell){var p=this.view.getState(u[e]),B=this.getCellGeometry(u[e]);null!=p&&null!=B&&(B=B.clone(),B.translate(Math.round(g*Math.max(0,Math.min(1,(p.x-b.x)/b.width))),Math.round(m*Math.max(0,Math.min(1,(p.y-b.y)/b.height)))),this.model.setGeometry(u[e],B))}}finally{this.model.endUpdate()}};
Graph.prototype.resizeParentStacks=function(b,e,g,m){if(null!=this.layoutManager&&null!=e&&e.constructor==mxStackLayout&&!e.resizeLast){this.model.beginUpdate();try{for(var u=e.horizontal;null!=b&&null!=e&&e.constructor==mxStackLayout&&e.horizontal==u&&!e.resizeLast;){var p=this.getCellGeometry(b),B=this.view.getState(b);null!=B&&null!=p&&(p=p.clone(),e.horizontal?p.width+=g+Math.min(0,B.width/this.view.scale-p.width):p.height+=m+Math.min(0,B.height/this.view.scale-p.height),this.model.setGeometry(b,
p));b=this.model.getParent(b);e=this.layoutManager.getLayout(b)}}finally{this.model.endUpdate()}}};Graph.prototype.isContainer=function(b){var e=this.getCurrentCellStyle(b);return this.isSwimlane(b)?"0"!=e.container:"1"==e.container};Graph.prototype.isCellConnectable=function(b){var e=this.getCurrentCellStyle(b);return!this.isCellLocked(this.getLayerForCell(b))&&(null!=e.connectable?"0"!=e.connectable:mxGraph.prototype.isCellConnectable.apply(this,arguments))};
@@ -2486,10 +2486,10 @@ HoverIcons.prototype.click=function(b,e,g){var m=g.getEvent(),u=g.getGraphX(),p=
HoverIcons.prototype.execute=function(b,e,g){g=g.getEvent();this.graph.selectCellsForConnectVertex(this.graph.connectVertex(b.cell,e,this.graph.defaultEdgeLength,g,this.graph.isCloneEvent(g),this.graph.isCloneEvent(g)),g,this)};HoverIcons.prototype.reset=function(b){null!=b&&!b||null==this.updateThread||window.clearTimeout(this.updateThread);this.activeArrow=this.currentState=this.mouseDownPoint=null;this.removeNodes();this.bbox=null;this.fireEvent(new mxEventObject("reset"))};
HoverIcons.prototype.repaint=function(){this.bbox=null;if(null!=this.currentState){this.currentState=this.getState(this.currentState);if(null!=this.currentState&&this.graph.model.isVertex(this.currentState.cell)&&this.graph.isCellConnectable(this.currentState.cell)){var b=mxRectangle.fromRectangle(this.currentState);null!=this.currentState.shape&&null!=this.currentState.shape.boundingBox&&(b=mxRectangle.fromRectangle(this.currentState.shape.boundingBox));b.grow(this.graph.tolerance);b.grow(this.arrowSpacing);
var e=this.graph.selectionCellsHandler.getHandler(this.currentState.cell);this.graph.isTableRow(this.currentState.cell)&&(e=this.graph.selectionCellsHandler.getHandler(this.graph.model.getParent(this.currentState.cell)));var g=null;null!=e&&(b.x-=e.horizontalOffset/2,b.y-=e.verticalOffset/2,b.width+=e.horizontalOffset,b.height+=e.verticalOffset,null!=e.rotationShape&&null!=e.rotationShape.node&&"hidden"!=e.rotationShape.node.style.visibility&&"none"!=e.rotationShape.node.style.display&&null!=e.rotationShape.boundingBox&&
-(g=e.rotationShape.boundingBox));e=mxUtils.bind(this,function(H,S,G){if(null!=g){var P=new mxRectangle(S,G,H.clientWidth,H.clientHeight);mxUtils.intersects(P,g)&&(H==this.arrowUp?G-=P.y+P.height-g.y:H==this.arrowRight?S+=g.x+g.width-P.x:H==this.arrowDown?G+=g.y+g.height-P.y:H==this.arrowLeft&&(S-=P.x+P.width-g.x))}H.style.left=S+"px";H.style.top=G+"px";mxUtils.setOpacity(H,this.inactiveOpacity)});e(this.arrowUp,Math.round(this.currentState.getCenterX()-this.triangleUp.width/2-this.tolerance),Math.round(b.y-
+(g=e.rotationShape.boundingBox));e=mxUtils.bind(this,function(H,T,G){if(null!=g){var P=new mxRectangle(T,G,H.clientWidth,H.clientHeight);mxUtils.intersects(P,g)&&(H==this.arrowUp?G-=P.y+P.height-g.y:H==this.arrowRight?T+=g.x+g.width-P.x:H==this.arrowDown?G+=g.y+g.height-P.y:H==this.arrowLeft&&(T-=P.x+P.width-g.x))}H.style.left=T+"px";H.style.top=G+"px";mxUtils.setOpacity(H,this.inactiveOpacity)});e(this.arrowUp,Math.round(this.currentState.getCenterX()-this.triangleUp.width/2-this.tolerance),Math.round(b.y-
this.triangleUp.height-this.tolerance));e(this.arrowRight,Math.round(b.x+b.width-this.tolerance),Math.round(this.currentState.getCenterY()-this.triangleRight.height/2-this.tolerance));e(this.arrowDown,parseInt(this.arrowUp.style.left),Math.round(b.y+b.height-this.tolerance));e(this.arrowLeft,Math.round(b.x-this.triangleLeft.width-this.tolerance),parseInt(this.arrowRight.style.top));if(this.checkCollisions){e=this.graph.getCellAt(b.x+b.width+this.triangleRight.width/2,this.currentState.getCenterY());
-var m=this.graph.getCellAt(b.x-this.triangleLeft.width/2,this.currentState.getCenterY()),u=this.graph.getCellAt(this.currentState.getCenterX(),b.y-this.triangleUp.height/2);b=this.graph.getCellAt(this.currentState.getCenterX(),b.y+b.height+this.triangleDown.height/2);null!=e&&e==m&&m==u&&u==b&&(b=u=m=e=null);var p=this.graph.getCellGeometry(this.currentState.cell),B=mxUtils.bind(this,function(H,S){var G=this.graph.model.isVertex(H)&&this.graph.getCellGeometry(H);null==H||this.graph.model.isAncestor(H,
-this.currentState.cell)||this.graph.isSwimlane(H)||!(null==G||null==p||G.height<3*p.height&&G.width<3*p.width)?S.style.visibility="visible":S.style.visibility="hidden"});B(e,this.arrowRight);B(m,this.arrowLeft);B(u,this.arrowUp);B(b,this.arrowDown)}else this.arrowLeft.style.visibility="visible",this.arrowRight.style.visibility="visible",this.arrowUp.style.visibility="visible",this.arrowDown.style.visibility="visible";this.graph.tooltipHandler.isEnabled()?(this.arrowLeft.setAttribute("title",mxResources.get("plusTooltip")),
+var m=this.graph.getCellAt(b.x-this.triangleLeft.width/2,this.currentState.getCenterY()),u=this.graph.getCellAt(this.currentState.getCenterX(),b.y-this.triangleUp.height/2);b=this.graph.getCellAt(this.currentState.getCenterX(),b.y+b.height+this.triangleDown.height/2);null!=e&&e==m&&m==u&&u==b&&(b=u=m=e=null);var p=this.graph.getCellGeometry(this.currentState.cell),B=mxUtils.bind(this,function(H,T){var G=this.graph.model.isVertex(H)&&this.graph.getCellGeometry(H);null==H||this.graph.model.isAncestor(H,
+this.currentState.cell)||this.graph.isSwimlane(H)||!(null==G||null==p||G.height<3*p.height&&G.width<3*p.width)?T.style.visibility="visible":T.style.visibility="hidden"});B(e,this.arrowRight);B(m,this.arrowLeft);B(u,this.arrowUp);B(b,this.arrowDown)}else this.arrowLeft.style.visibility="visible",this.arrowRight.style.visibility="visible",this.arrowUp.style.visibility="visible",this.arrowDown.style.visibility="visible";this.graph.tooltipHandler.isEnabled()?(this.arrowLeft.setAttribute("title",mxResources.get("plusTooltip")),
this.arrowRight.setAttribute("title",mxResources.get("plusTooltip")),this.arrowUp.setAttribute("title",mxResources.get("plusTooltip")),this.arrowDown.setAttribute("title",mxResources.get("plusTooltip"))):(this.arrowLeft.removeAttribute("title"),this.arrowRight.removeAttribute("title"),this.arrowUp.removeAttribute("title"),this.arrowDown.removeAttribute("title"))}else this.reset();null!=this.currentState&&(this.bbox=this.computeBoundingBox(),null!=this.bbox&&this.bbox.grow(10))}};
HoverIcons.prototype.computeBoundingBox=function(){var b=this.graph.model.isEdge(this.currentState.cell)?null:mxRectangle.fromRectangle(this.currentState);this.visitNodes(function(e){null!=e.parentNode&&(e=new mxRectangle(e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight),null==b?b=e:b.add(e))});return b};
HoverIcons.prototype.getState=function(b){if(null!=b)if(b=b.cell,this.graph.getModel().contains(b)){if(this.graph.getModel().isVertex(b)&&!this.graph.isCellConnectable(b)){var e=this.graph.getModel().getParent(b);this.graph.getModel().isVertex(e)&&this.graph.isCellConnectable(e)&&(b=e)}if(this.graph.isCellLocked(b)||this.graph.model.isEdge(b))b=null;b=this.graph.view.getState(b);null!=b&&null==b.style&&(b=null)}else b=null;return b};
@@ -2499,26 +2499,26 @@ b||null==this.bbox||null==e||null==g||!mxUtils.contains(this.bbox,e,g))&&(null!=
HoverIcons.prototype.setCurrentState=function(b){"eastwest"!=b.style.portConstraint&&(this.graph.container.appendChild(this.arrowUp),this.graph.container.appendChild(this.arrowDown));this.graph.container.appendChild(this.arrowRight);this.graph.container.appendChild(this.arrowLeft);this.currentState=b};
Graph.prototype.removeTextStyleForCell=function(b,e){var g=this.getCurrentCellStyle(b),m=!1;this.getModel().beginUpdate();try{if("1"==mxUtils.getValue(g,"html","0")){var u=this.convertValueToString(b);"0"!=mxUtils.getValue(g,"nl2Br","1")&&(u=u.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n"));u=Editor.convertHtmlToText(u);this.cellLabelChanged(b,u);m=!0}e&&(this.setCellStyles("fontSource",null,[b]),this.setCellStyles(mxConstants.STYLE_FONTFAMILY,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSIZE,
null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSTYLE,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BORDERCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null,[b]))}finally{this.getModel().endUpdate()}return m};Graph.prototype.createParent=function(b,e,g,m,u){b=this.cloneCell(b);for(var p=0;p<g;p++){var B=this.cloneCell(e),H=this.getCellGeometry(B);null!=H&&(H.x+=p*m,H.y+=p*u);b.insert(B)}return b};
-Graph.prototype.createTable=function(b,e,g,m,u,p,B,H,S){g=null!=g?g:60;m=null!=m?m:40;p=null!=p?p:30;H=null!=H?H:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;";S=null!=S?S:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";return this.createParent(this.createVertex(null,
-null,null!=u?u:"",0,0,e*g,b*m+(null!=u?p:0),null!=B?B:"shape=table;startSize="+(null!=u?p:"0")+";container=1;collapsible=0;childLayout=tableLayout;"),this.createParent(this.createVertex(null,null,"",0,0,e*g,m,H),this.createVertex(null,null,"",0,0,g,m,S),e,g,0),b,0,m)};
+Graph.prototype.createTable=function(b,e,g,m,u,p,B,H,T){g=null!=g?g:60;m=null!=m?m:40;p=null!=p?p:30;H=null!=H?H:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;";T=null!=T?T:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";return this.createParent(this.createVertex(null,
+null,null!=u?u:"",0,0,e*g,b*m+(null!=u?p:0),null!=B?B:"shape=table;startSize="+(null!=u?p:"0")+";container=1;collapsible=0;childLayout=tableLayout;"),this.createParent(this.createVertex(null,null,"",0,0,e*g,m,H),this.createVertex(null,null,"",0,0,g,m,T),e,g,0),b,0,m)};
Graph.prototype.setTableValues=function(b,e,g){for(var m=this.model.getChildCells(b,!0),u=0;u<m.length;u++)if(null!=g&&(m[u].value=g[u]),null!=e)for(var p=this.model.getChildCells(m[u],!0),B=0;B<p.length;B++)null!=e[u][B]&&(p[B].value=e[u][B]);return b};
-Graph.prototype.createCrossFunctionalSwimlane=function(b,e,g,m,u,p,B,H,S){g=null!=g?g:120;m=null!=m?m:120;B=null!=B?B:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;collapsible=0;recursiveResize=0;expand=0;";H=null!=H?H:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
-S=null!=S?S:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";u=this.createVertex(null,null,null!=u?u:"",0,0,e*g,b*m,null!=p?p:"shape=table;childLayout=tableLayout;"+(null==u?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");p=mxUtils.getValue(this.getCellStyle(u),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);u.geometry.width+=p;u.geometry.height+=
-p;B=this.createVertex(null,null,"",0,p,e*g+p,m,B);u.insert(this.createParent(B,this.createVertex(null,null,"",p,0,g,m,H),e,g,0));return 1<b?(B.geometry.y=m+p,this.createParent(u,this.createParent(B,this.createVertex(null,null,"",p,0,g,m,S),e,g,0),b-1,0,m)):u};
-Graph.prototype.visitTableCells=function(b,e){var g=null,m=this.model.getChildCells(b,!0);b=this.getActualStartSize(b,!0);for(var u=0;u<m.length;u++){for(var p=this.getActualStartSize(m[u],!0),B=this.model.getChildCells(m[u],!0),H=this.getCellStyle(m[u],!0),S=null,G=[],P=0;P<B.length;P++){var R=this.getCellGeometry(B[P]),c={cell:B[P],rospan:1,colspan:1,row:u,col:P,geo:R};R=null!=R.alternateBounds?R.alternateBounds:R;c.point=new mxPoint(R.width+(null!=S?S.point.x:b.x+p.x),R.height+(null!=g&&null!=
-g[0]?g[0].point.y:b.y+p.y));c.actual=c;null!=g&&null!=g[P]&&1<g[P].rowspan?(c.rowspan=g[P].rowspan-1,c.colspan=g[P].colspan,c.actual=g[P].actual):null!=S&&1<S.colspan?(c.rowspan=S.rowspan,c.colspan=S.colspan-1,c.actual=S.actual):(S=this.getCurrentCellStyle(B[P],!0),null!=S&&(c.rowspan=parseInt(S.rowspan||1),c.colspan=parseInt(S.colspan||1)));S=1==mxUtils.getValue(H,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(H,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;e(c,B.length,
-m.length,b.x+(S?p.x:0),b.y+(S?p.y:0));G.push(c);S=c}g=G}};Graph.prototype.getTableLines=function(b,e,g){var m=[],u=[];(e||g)&&this.visitTableCells(b,mxUtils.bind(this,function(p,B,H,S,G){e&&p.row<H-1&&(null==m[p.row]&&(m[p.row]=[new mxPoint(S,p.point.y)]),1<p.rowspan&&m[p.row].push(null),m[p.row].push(p.point));g&&p.col<B-1&&(null==u[p.col]&&(u[p.col]=[new mxPoint(p.point.x,G)]),1<p.colspan&&u[p.col].push(null),u[p.col].push(p.point))}));return m.concat(u)};
+Graph.prototype.createCrossFunctionalSwimlane=function(b,e,g,m,u,p,B,H,T){g=null!=g?g:120;m=null!=m?m:120;B=null!=B?B:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;collapsible=0;recursiveResize=0;expand=0;";H=null!=H?H:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
+T=null!=T?T:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";u=this.createVertex(null,null,null!=u?u:"",0,0,e*g,b*m,null!=p?p:"shape=table;childLayout=tableLayout;"+(null==u?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");p=mxUtils.getValue(this.getCellStyle(u),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);u.geometry.width+=p;u.geometry.height+=
+p;B=this.createVertex(null,null,"",0,p,e*g+p,m,B);u.insert(this.createParent(B,this.createVertex(null,null,"",p,0,g,m,H),e,g,0));return 1<b?(B.geometry.y=m+p,this.createParent(u,this.createParent(B,this.createVertex(null,null,"",p,0,g,m,T),e,g,0),b-1,0,m)):u};
+Graph.prototype.visitTableCells=function(b,e){var g=null,m=this.model.getChildCells(b,!0);b=this.getActualStartSize(b,!0);for(var u=0;u<m.length;u++){for(var p=this.getActualStartSize(m[u],!0),B=this.model.getChildCells(m[u],!0),H=this.getCellStyle(m[u],!0),T=null,G=[],P=0;P<B.length;P++){var R=this.getCellGeometry(B[P]),c={cell:B[P],rospan:1,colspan:1,row:u,col:P,geo:R};R=null!=R.alternateBounds?R.alternateBounds:R;c.point=new mxPoint(R.width+(null!=T?T.point.x:b.x+p.x),R.height+(null!=g&&null!=
+g[0]?g[0].point.y:b.y+p.y));c.actual=c;null!=g&&null!=g[P]&&1<g[P].rowspan?(c.rowspan=g[P].rowspan-1,c.colspan=g[P].colspan,c.actual=g[P].actual):null!=T&&1<T.colspan?(c.rowspan=T.rowspan,c.colspan=T.colspan-1,c.actual=T.actual):(T=this.getCurrentCellStyle(B[P],!0),null!=T&&(c.rowspan=parseInt(T.rowspan||1),c.colspan=parseInt(T.colspan||1)));T=1==mxUtils.getValue(H,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(H,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;e(c,B.length,
+m.length,b.x+(T?p.x:0),b.y+(T?p.y:0));G.push(c);T=c}g=G}};Graph.prototype.getTableLines=function(b,e,g){var m=[],u=[];(e||g)&&this.visitTableCells(b,mxUtils.bind(this,function(p,B,H,T,G){e&&p.row<H-1&&(null==m[p.row]&&(m[p.row]=[new mxPoint(T,p.point.y)]),1<p.rowspan&&m[p.row].push(null),m[p.row].push(p.point));g&&p.col<B-1&&(null==u[p.col]&&(u[p.col]=[new mxPoint(p.point.x,G)]),1<p.colspan&&u[p.col].push(null),u[p.col].push(p.point))}));return m.concat(u)};
Graph.prototype.isTableCell=function(b){return this.model.isVertex(b)&&this.isTableRow(this.model.getParent(b))};Graph.prototype.isTableRow=function(b){return this.model.isVertex(b)&&this.isTable(this.model.getParent(b))};Graph.prototype.isTable=function(b){b=this.getCellStyle(b);return null!=b&&"tableLayout"==b.childLayout};Graph.prototype.isStack=function(b){b=this.getCellStyle(b);return null!=b&&"stackLayout"==b.childLayout};
Graph.prototype.isStackChild=function(b){return this.model.isVertex(b)&&this.isStack(this.model.getParent(b))};
-Graph.prototype.setTableRowHeight=function(b,e,g){g=null!=g?g:!0;var m=this.getModel();m.beginUpdate();try{var u=this.getCellGeometry(b);if(null!=u){u=u.clone();u.height+=e;m.setGeometry(b,u);var p=m.getParent(b),B=m.getChildCells(p,!0);if(!g){var H=mxUtils.indexOf(B,b);if(H<B.length-1){var S=B[H+1],G=this.getCellGeometry(S);null!=G&&(G=G.clone(),G.y+=e,G.height-=e,m.setGeometry(S,G))}}var P=this.getCellGeometry(p);null!=P&&(g||(g=b==B[B.length-1]),g&&(P=P.clone(),P.height+=e,m.setGeometry(p,P)))}}finally{m.endUpdate()}};
-Graph.prototype.setTableColumnWidth=function(b,e,g){g=null!=g?g:!1;var m=this.getModel(),u=m.getParent(b),p=m.getParent(u),B=m.getChildCells(u,!0);b=mxUtils.indexOf(B,b);var H=b==B.length-1;m.beginUpdate();try{for(var S=m.getChildCells(p,!0),G=0;G<S.length;G++){u=S[G];B=m.getChildCells(u,!0);var P=B[b],R=this.getCellGeometry(P);null!=R&&(R=R.clone(),R.width+=e,null!=R.alternateBounds&&(R.alternateBounds.width+=e),m.setGeometry(P,R));b<B.length-1&&(P=B[b+1],R=this.getCellGeometry(P),null!=R&&(R=R.clone(),
+Graph.prototype.setTableRowHeight=function(b,e,g){g=null!=g?g:!0;var m=this.getModel();m.beginUpdate();try{var u=this.getCellGeometry(b);if(null!=u){u=u.clone();u.height+=e;m.setGeometry(b,u);var p=m.getParent(b),B=m.getChildCells(p,!0);if(!g){var H=mxUtils.indexOf(B,b);if(H<B.length-1){var T=B[H+1],G=this.getCellGeometry(T);null!=G&&(G=G.clone(),G.y+=e,G.height-=e,m.setGeometry(T,G))}}var P=this.getCellGeometry(p);null!=P&&(g||(g=b==B[B.length-1]),g&&(P=P.clone(),P.height+=e,m.setGeometry(p,P)))}}finally{m.endUpdate()}};
+Graph.prototype.setTableColumnWidth=function(b,e,g){g=null!=g?g:!1;var m=this.getModel(),u=m.getParent(b),p=m.getParent(u),B=m.getChildCells(u,!0);b=mxUtils.indexOf(B,b);var H=b==B.length-1;m.beginUpdate();try{for(var T=m.getChildCells(p,!0),G=0;G<T.length;G++){u=T[G];B=m.getChildCells(u,!0);var P=B[b],R=this.getCellGeometry(P);null!=R&&(R=R.clone(),R.width+=e,null!=R.alternateBounds&&(R.alternateBounds.width+=e),m.setGeometry(P,R));b<B.length-1&&(P=B[b+1],R=this.getCellGeometry(P),null!=R&&(R=R.clone(),
R.x+=e,g||(R.width-=e,null!=R.alternateBounds&&(R.alternateBounds.width-=e)),m.setGeometry(P,R)))}if(H||g){var c=this.getCellGeometry(p);null!=c&&(c=c.clone(),c.width+=e,m.setGeometry(p,c))}null!=this.layoutManager&&this.layoutManager.executeLayout(p)}finally{m.endUpdate()}};function TableLayout(b){mxGraphLayout.call(this,b)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!1};
TableLayout.prototype.isVertexIgnored=function(b){return!this.graph.getModel().isVertex(b)||!this.graph.isCellVisible(b)};TableLayout.prototype.getSize=function(b,e){for(var g=0,m=0;m<b.length;m++)if(!this.isVertexIgnored(b[m])){var u=this.graph.getCellGeometry(b[m]);null!=u&&(g+=e?u.width:u.height)}return g};
TableLayout.prototype.getRowLayout=function(b,e){var g=this.graph.model.getChildCells(b,!0),m=this.graph.getActualStartSize(b,!0);b=this.getSize(g,!0);e=e-m.x-m.width;var u=[];m=m.x;for(var p=0;p<g.length;p++){var B=this.graph.getCellGeometry(g[p]);null!=B&&(m+=(null!=B.alternateBounds?B.alternateBounds.width:B.width)*e/b,u.push(Math.round(m)))}return u};
-TableLayout.prototype.layoutRow=function(b,e,g,m){var u=this.graph.getModel(),p=u.getChildCells(b,!0);b=this.graph.getActualStartSize(b,!0);var B=b.x,H=0;null!=e&&(e=e.slice(),e.splice(0,0,b.x));for(var S=0;S<p.length;S++){var G=this.graph.getCellGeometry(p[S]);null!=G&&(G=G.clone(),G.y=b.y,G.height=g-b.y-b.height,null!=e?(G.x=e[S],G.width=e[S+1]-G.x,S==p.length-1&&S<e.length-2&&(G.width=m-G.x-b.x-b.width)):(G.x=B,B+=G.width,S==p.length-1?G.width=m-b.x-b.width-H:H+=G.width),G.alternateBounds=new mxRectangle(0,
-0,G.width,G.height),u.setGeometry(p[S],G))}return H};
-TableLayout.prototype.execute=function(b){if(null!=b){var e=this.graph.getActualStartSize(b,!0),g=this.graph.getCellGeometry(b),m=this.graph.getCellStyle(b),u="1"==mxUtils.getValue(m,"resizeLastRow","0"),p="1"==mxUtils.getValue(m,"resizeLast","0");m="1"==mxUtils.getValue(m,"fixedRows","0");var B=this.graph.getModel(),H=0;B.beginUpdate();try{for(var S=g.height-e.y-e.height,G=g.width-e.x-e.width,P=B.getChildCells(b,!0),R=0;R<P.length;R++)B.setVisible(P[R],!0);var c=this.getSize(P,!1);if(0<S&&0<G&&0<
-P.length&&0<c){if(u){var f=this.graph.getCellGeometry(P[P.length-1]);null!=f&&(f=f.clone(),f.height=S-c+f.height,B.setGeometry(P[P.length-1],f))}var l=p?null:this.getRowLayout(P[0],G),t=[],z=e.y;for(R=0;R<P.length;R++)f=this.graph.getCellGeometry(P[R]),null!=f&&(f=f.clone(),f.x=e.x,f.width=G,f.y=Math.round(z),z=u||m?z+f.height:z+f.height/c*S,f.height=Math.round(z)-f.y,B.setGeometry(P[R],f)),H=Math.max(H,this.layoutRow(P[R],l,f.height,G,t));m&&S<c&&(g=g.clone(),g.height=z+e.height,B.setGeometry(b,
+TableLayout.prototype.layoutRow=function(b,e,g,m){var u=this.graph.getModel(),p=u.getChildCells(b,!0);b=this.graph.getActualStartSize(b,!0);var B=b.x,H=0;null!=e&&(e=e.slice(),e.splice(0,0,b.x));for(var T=0;T<p.length;T++){var G=this.graph.getCellGeometry(p[T]);null!=G&&(G=G.clone(),G.y=b.y,G.height=g-b.y-b.height,null!=e?(G.x=e[T],G.width=e[T+1]-G.x,T==p.length-1&&T<e.length-2&&(G.width=m-G.x-b.x-b.width)):(G.x=B,B+=G.width,T==p.length-1?G.width=m-b.x-b.width-H:H+=G.width),G.alternateBounds=new mxRectangle(0,
+0,G.width,G.height),u.setGeometry(p[T],G))}return H};
+TableLayout.prototype.execute=function(b){if(null!=b){var e=this.graph.getActualStartSize(b,!0),g=this.graph.getCellGeometry(b),m=this.graph.getCellStyle(b),u="1"==mxUtils.getValue(m,"resizeLastRow","0"),p="1"==mxUtils.getValue(m,"resizeLast","0");m="1"==mxUtils.getValue(m,"fixedRows","0");var B=this.graph.getModel(),H=0;B.beginUpdate();try{for(var T=g.height-e.y-e.height,G=g.width-e.x-e.width,P=B.getChildCells(b,!0),R=0;R<P.length;R++)B.setVisible(P[R],!0);var c=this.getSize(P,!1);if(0<T&&0<G&&0<
+P.length&&0<c){if(u){var f=this.graph.getCellGeometry(P[P.length-1]);null!=f&&(f=f.clone(),f.height=T-c+f.height,B.setGeometry(P[P.length-1],f))}var l=p?null:this.getRowLayout(P[0],G),t=[],z=e.y;for(R=0;R<P.length;R++)f=this.graph.getCellGeometry(P[R]),null!=f&&(f=f.clone(),f.x=e.x,f.width=G,f.y=Math.round(z),z=u||m?z+f.height:z+f.height/c*T,f.height=Math.round(z)-f.y,B.setGeometry(P[R],f)),H=Math.max(H,this.layoutRow(P[R],l,f.height,G,t));m&&T<c&&(g=g.clone(),g.height=z+e.height,B.setGeometry(b,
g));p&&G<H+Graph.minTableColumnWidth&&(g=g.clone(),g.width=H+e.width+e.x+Graph.minTableColumnWidth,B.setGeometry(b,g));this.graph.visitTableCells(b,mxUtils.bind(this,function(C){B.setVisible(C.cell,C.actual.cell==C.cell);if(C.actual.cell!=C.cell){if(C.actual.row==C.row){var F=null!=C.geo.alternateBounds?C.geo.alternateBounds:C.geo;C.actual.geo.width+=F.width}C.actual.col==C.col&&(F=null!=C.geo.alternateBounds?C.geo.alternateBounds:C.geo,C.actual.geo.height+=F.height)}}))}else for(R=0;R<P.length;R++)B.setVisible(P[R],
!1)}finally{B.endUpdate()}}};
(function(){var b=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){b.apply(this,arguments);this.validEdges=[]};var e=mxGraphView.prototype.validateCellState;mxGraphView.prototype.validateCellState=function(R,c){c=null!=c?c:!0;var f=this.getState(R);null!=f&&c&&this.graph.model.isEdge(f.cell)&&null!=f.style&&1!=f.style[mxConstants.STYLE_CURVED]&&!f.invalid&&this.updateLineJumps(f)&&this.graph.cellRenderer.redraw(f,!1,this.isRendering());f=e.apply(this,
@@ -2532,7 +2532,7 @@ la.distSq){K.splice(J,0,la);la=null;break}null==la||0!=K.length&&K[K.length-1].x
arguments);else{var l=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,t=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,z=mxUtils.getValue(this.style,"jumpStyle","none"),C=!0,F=null,N=null,K=[],J=null;R.begin();for(var da=0;da<this.state.routedPoints.length;da++){var ea=this.state.routedPoints[da],ca=new mxPoint(ea.x/this.scale,ea.y/this.scale);0==da?ca=c[0]:da==this.state.routedPoints.length-1&&(ca=c[c.length-1]);var W=
!1;if(null!=F&&1==ea.type){var ba=this.state.routedPoints[da+1];ea=ba.x/this.scale-ca.x;ba=ba.y/this.scale-ca.y;ea=ea*ea+ba*ba;null==J&&(J=new mxPoint(ca.x-F.x,ca.y-F.y),N=Math.sqrt(J.x*J.x+J.y*J.y),0<N?(J.x=J.x*t/N,J.y=J.y*t/N):J=null);ea>t*t&&0<N&&(ea=F.x-ca.x,ba=F.y-ca.y,ea=ea*ea+ba*ba,ea>t*t&&(W=new mxPoint(ca.x-J.x,ca.y-J.y),ea=new mxPoint(ca.x+J.x,ca.y+J.y),K.push(W),this.addPoints(R,K,f,l,!1,null,C),K=0>Math.round(J.x)||0==Math.round(J.x)&&0>=Math.round(J.y)?1:-1,C=!1,"sharp"==z?(R.lineTo(W.x-
J.y*K,W.y+J.x*K),R.lineTo(ea.x-J.y*K,ea.y+J.x*K),R.lineTo(ea.x,ea.y)):"line"==z?(R.moveTo(W.x+J.y*K,W.y-J.x*K),R.lineTo(W.x-J.y*K,W.y+J.x*K),R.moveTo(ea.x-J.y*K,ea.y+J.x*K),R.lineTo(ea.x+J.y*K,ea.y-J.x*K),R.moveTo(ea.x,ea.y)):"arc"==z?(K*=1.3,R.curveTo(W.x-J.y*K,W.y+J.x*K,ea.x-J.y*K,ea.y+J.x*K,ea.x,ea.y)):(R.moveTo(ea.x,ea.y),C=!0),K=[ea],W=!0))}else J=null;W||(K.push(ca),F=ca)}this.addPoints(R,K,f,l,!1,null,C);R.stroke()}};var H=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=
-function(R,c,f,l){return null!=c&&"centerPerimeter"==c.style[mxConstants.STYLE_PERIMETER]?new mxPoint(c.getCenterX(),c.getCenterY()):H.apply(this,arguments)};var S=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(R,c,f,l){if(null==c||null==R||"1"!=c.style.snapToPoint&&"1"!=R.style.snapToPoint)S.apply(this,arguments);else{c=this.getTerminalPort(R,c,l);var t=this.getNextPoint(R,f,l),z=this.graph.isOrthogonal(R),C=mxUtils.toRadians(Number(c.style[mxConstants.STYLE_ROTATION]||
+function(R,c,f,l){return null!=c&&"centerPerimeter"==c.style[mxConstants.STYLE_PERIMETER]?new mxPoint(c.getCenterX(),c.getCenterY()):H.apply(this,arguments)};var T=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(R,c,f,l){if(null==c||null==R||"1"!=c.style.snapToPoint&&"1"!=R.style.snapToPoint)T.apply(this,arguments);else{c=this.getTerminalPort(R,c,l);var t=this.getNextPoint(R,f,l),z=this.graph.isOrthogonal(R),C=mxUtils.toRadians(Number(c.style[mxConstants.STYLE_ROTATION]||
"0")),F=new mxPoint(c.getCenterX(),c.getCenterY());if(0!=C){var N=Math.cos(-C),K=Math.sin(-C);t=mxUtils.getRotatedPoint(t,N,K,F)}N=parseFloat(R.style[mxConstants.STYLE_PERIMETER_SPACING]||0);N+=parseFloat(R.style[l?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);t=this.getPerimeterPoint(c,t,0==C&&z,N);0!=C&&(N=Math.cos(C),K=Math.sin(C),t=mxUtils.getRotatedPoint(t,N,K,F));R.setAbsoluteTerminalPoint(this.snapToAnchorPoint(R,c,f,l,t),l)}};mxGraphView.prototype.snapToAnchorPoint=
function(R,c,f,l,t){if(null!=c&&null!=R){R=this.graph.getAllConnectionConstraints(c);l=f=null;if(null!=R)for(var z=0;z<R.length;z++){var C=this.graph.getConnectionPoint(c,R[z]);if(null!=C){var F=(C.x-t.x)*(C.x-t.x)+(C.y-t.y)*(C.y-t.y);if(null==l||F<l)f=C,l=F}}null!=f&&(t=f)}return t};var G=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(R,c,f){var l=G.apply(this,arguments);"1"==R.getAttribute("placeholders")&&null!=f.state&&(l=f.state.view.graph.replacePlaceholders(f.state.cell,
l));return l};var P=mxCellRenderer.prototype.createShape;mxCellRenderer.prototype.createShape=function(R){if(null!=R.style&&"undefined"!==typeof pako){var c=mxUtils.getValue(R.style,mxConstants.STYLE_SHAPE,null);if(null!=c&&"string"===typeof c&&"stencil("==c.substring(0,8))try{var f=c.substring(8,c.length-1),l=mxUtils.parseXml(Graph.decompress(f));return new mxShape(new mxStencil(l.documentElement))}catch(t){null!=window.console&&console.log("Error in shape: "+t)}}return P.apply(this,arguments)}})();
@@ -2559,7 +2559,7 @@ M,Q,V){M=null!=M?M:0;Q=null!=Q?Q:0;var ia=new mxCodec(x.ownerDocument),ka=new mx
ka.getChildren(xa[0]);null!=ua&&(x=this.moveCells(ua,M,Q,!1,this.getDefaultParent()),oa[ka.getChildAt(ka.root,0).getId()]=this.getDefaultParent().getId())}if(null!=x&&(this.createCellMapping(ia,ta,oa),this.updateCustomLinks(oa,x),V)){this.isGridEnabled()&&(M=this.snap(M),Q=this.snap(Q));var Fa=this.getBoundingBoxFromGeometry(x,!0);null!=Fa&&this.moveCells(x,M-Fa.x,Q-Fa.y)}}finally{this.model.endUpdate()}}return x};Graph.prototype.encodeCells=function(x){for(var M={},Q=this.cloneCells(x,null,M),V=
new mxDictionary,ia=0;ia<x.length;ia++)V.put(x[ia],!0);var ka=new mxCodec,oa=new mxGraphModel,xa=oa.getChildAt(oa.getRoot(),0);for(ia=0;ia<Q.length;ia++){oa.add(xa,Q[ia]);var ta=this.view.getState(x[ia]);if(null!=ta){var ua=this.getCellGeometry(Q[ia]);null!=ua&&ua.relative&&!this.model.isEdge(x[ia])&&null==V.get(this.model.getParent(x[ia]))&&(ua.offset=null,ua.relative=!1,ua.x=ta.x/ta.view.scale-ta.view.translate.x,ua.y=ta.y/ta.view.scale-ta.view.translate.y)}}this.updateCustomLinks(this.createCellMapping(M,
this.createCellLookup(x)),Q);return ka.encode(oa)};Graph.prototype.isSwimlane=function(x,M){var Q=null;null==x||this.model.isEdge(x)||this.model.getParent(x)==this.model.getRoot()||(Q=this.getCurrentCellStyle(x,M)[mxConstants.STYLE_SHAPE]);return Q==mxConstants.SHAPE_SWIMLANE||"table"==Q||"tableRow"==Q};var H=Graph.prototype.isCellEditable;Graph.prototype.isCellEditable=function(x){return null!=x&&H.apply(this,arguments)?this.isTableCell(x)||this.isTableRow(x)?this.isCellEditable(this.model.getParent(x)):
-!0:!1};var S=Graph.prototype.isCellMovable;Graph.prototype.isCellMovable=function(x){return null!=x&&S.apply(this,arguments)?this.isTableCell(x)||this.isTableRow(x)?this.isCellMovable(this.model.getParent(x)):!0:!1};var G=Graph.prototype.isExtendParent;Graph.prototype.isExtendParent=function(x){var M=this.model.getParent(x);if(null!=M){var Q=this.getCurrentCellStyle(M);if(null!=Q.expand)return"0"!=Q.expand}return G.apply(this,arguments)&&(null==M||!this.isTable(M))};var P=Graph.prototype.splitEdge;
+!0:!1};var T=Graph.prototype.isCellMovable;Graph.prototype.isCellMovable=function(x){return null!=x&&T.apply(this,arguments)?this.isTableCell(x)||this.isTableRow(x)?this.isCellMovable(this.model.getParent(x)):!0:!1};var G=Graph.prototype.isExtendParent;Graph.prototype.isExtendParent=function(x){var M=this.model.getParent(x);if(null!=M){var Q=this.getCurrentCellStyle(M);if(null!=Q.expand)return"0"!=Q.expand}return G.apply(this,arguments)&&(null==M||!this.isTable(M))};var P=Graph.prototype.splitEdge;
Graph.prototype.splitEdge=function(x,M,Q,V,ia,ka,oa,xa){null==xa&&(xa=this.model.getParent(x),this.isTable(xa)||this.isTableRow(xa))&&(xa=this.getCellAt(ka,oa,null,!0,!1));Q=null;this.model.beginUpdate();try{Q=P.apply(this,[x,M,Q,V,ia,ka,oa,xa]);this.model.setValue(Q,"");var ta=this.getChildCells(Q,!0);for(M=0;M<ta.length;M++){var ua=this.getCellGeometry(ta[M]);null!=ua&&ua.relative&&0<ua.x&&this.model.remove(ta[M])}var Fa=this.getChildCells(x,!0);for(M=0;M<Fa.length;M++)ua=this.getCellGeometry(Fa[M]),
null!=ua&&ua.relative&&0>=ua.x&&this.model.remove(Fa[M]);var Na=this.model.getTerminal(Q,!1);if(null!=Na){var Wa=this.getCurrentCellStyle(Na);null!=Wa&&"1"==Wa.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[x]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[x]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[Q]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[Q]))}}finally{this.model.endUpdate()}return Q};var R=Graph.prototype.selectCell;Graph.prototype.selectCell=function(x,
M,Q){if(M||Q)R.apply(this,arguments);else{var V=this.getSelectionCell(),ia=null,ka=[],oa=mxUtils.bind(this,function(xa){if(null!=this.view.getState(xa)&&(this.model.isVertex(xa)||this.model.isEdge(xa)))if(ka.push(xa),xa==V)ia=ka.length-1;else if(x&&null==V&&0<ka.length||null!=ia&&x&&ka.length>ia||!x&&0<ia)return;for(var ta=0;ta<this.model.getChildCount(xa);ta++)oa(this.model.getChildAt(xa,ta))});oa(this.model.root);0<ka.length&&(ia=null!=ia?mxUtils.mod(ia+(x?1:-1),ka.length):0,this.setSelectionCell(ka[ia]))}};
@@ -2692,7 +2692,7 @@ x=this.graph.getLinkForCell(this.state.cell);M=this.graph.getLinksForState(this.
this.customHandles[V]&&null!=this.customHandles[V].shape&&null!=this.customHandles[V].shape.bounds){var ia=this.customHandles[V].shape.bounds,ka=ia.getCenterX(),oa=ia.getCenterY();if(Math.abs(this.state.x-ka)<ia.width/2||Math.abs(this.state.y-oa)<ia.height/2||Math.abs(this.state.x+this.state.width-ka)<ia.width/2||Math.abs(this.state.y+this.state.height-oa)<ia.height/2){Q=!0;break}}Q&&null!=this.sizers&&0<this.sizers.length&&null!=this.sizers[0]?(M/=2,this.graph.isTable(this.state.cell)&&(M+=7),x.x=
this.sizers[0].bounds.width+M,x.y=this.sizers[0].bounds.height+M):x=O.apply(this,arguments);return x};mxVertexHandler.prototype.updateHint=function(x){if(this.index!=mxEvent.LABEL_HANDLE){null==this.hint&&(this.hint=b(),this.state.view.graph.container.appendChild(this.hint));if(this.index==mxEvent.ROTATION_HANDLE)this.hint.innerHTML=this.currentAlpha+"&deg;";else{x=this.state.view.scale;var M=this.state.view.unit;this.hint.innerHTML=e(this.roundLength(this.bounds.width/x),M)+" x "+e(this.roundLength(this.bounds.height/
x),M)}x=mxUtils.getBoundingBox(this.bounds,null!=this.currentAlpha?this.currentAlpha:this.state.style[mxConstants.STYLE_ROTATION]||"0");null==x&&(x=this.bounds);this.hint.style.left=x.x+Math.round((x.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=x.y+x.height+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")}};mxVertexHandler.prototype.removeHint=function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display=
-"")};var T=mxEdgeHandler.prototype.refresh;mxEdgeHandler.prototype.refresh=function(){T.apply(this,arguments);var x=this.graph.getLinkForCell(this.state.cell),M=this.graph.getLinksForState(this.state);this.updateLinkHint(x,M)};var X=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(x,M){X.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display="none")};
+"")};var S=mxEdgeHandler.prototype.refresh;mxEdgeHandler.prototype.refresh=function(){S.apply(this,arguments);var x=this.graph.getLinkForCell(this.state.cell),M=this.graph.getLinksForState(this.state);this.updateLinkHint(x,M)};var X=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(x,M){X.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display="none")};
var aa=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(x,M){aa.apply(this,arguments);null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="")};mxEdgeHandler.prototype.updateHint=function(x,M,Q){null==this.hint&&(this.hint=b(),this.state.view.graph.container.appendChild(this.hint));var V=this.graph.view.translate,ia=this.graph.view.scale,ka=this.roundLength(M.x/ia-V.x);V=this.roundLength(M.y/ia-V.y);var oa=
this.graph.view.unit;this.hint.innerHTML=e(ka,oa)+", "+e(V,oa);this.hint.style.visibility="visible";null!=Q&&(Q.view.updateEdgeBounds(Q),this.hint.innerHTML+=" ("+(oa==mxConstants.POINTS?Math.round(Q.length/ia):e(Q.length/ia,oa))+")");if(this.isSource||this.isTarget)null!=this.constraintHandler&&null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus?(Q=this.constraintHandler.currentConstraint.point,this.hint.innerHTML="["+Math.round(100*Q.x)+"%, "+Math.round(100*
Q.y)+"%]"):this.marker.hasValidState()&&(this.hint.style.visibility="hidden");this.hint.style.left=Math.round(x.getGraphX()-this.hint.clientWidth/2)+"px";this.hint.style.top=Math.max(x.getGraphY(),M.y)+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")};Graph.prototype.expandedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="50%" y1="0%" x2="50%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 2 4.5 L 7 4.5 z" stroke="#000"/>');
@@ -2736,11 +2736,11 @@ mxResources.get("rotateTooltip")),this.rotationShape.node.style.display=null!=th
this.state.style[mxConstants.STYLE_ROTATION]||"0"):this.state,M=null!=this.state.text?this.state.text.boundingBox:null,null==Q&&(Q=this.state),Q=Q.y+Q.height,null!=M&&(Q=Math.max(Q,M.y+M.height)),this.linkHint.style.left=x.x+x.width/2+"px",this.linkHint.style.top=Math.round(Q+this.verticalOffset/2+Editor.hintOffset)+"px",this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var Za=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){Za.apply(this,arguments);
this.destroyMoveHandles();this.destroyCornerHandles();null!=this.linkHint&&(null!=this.linkHint.parentNode&&this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getSelectionModel().removeListener(this.changeHandler),this.graph.getModel().removeListener(this.changeHandler),this.changeHandler=null);null!=this.editingHandler&&(this.graph.removeListener(this.editingHandler),this.editingHandler=null)};var La=mxEdgeHandler.prototype.redrawHandles;
mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(La.apply(this),null!=this.state&&null!=this.linkHint)){var x=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(x=new mxRectangle(x.x,x.y,x.width,x.height),x.add(this.state.text.bounds));this.linkHint.style.left=x.x+x.width/2+"px";this.linkHint.style.top=Math.round(x.y+x.height+Editor.hintOffset)+"px";this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":""}};var $a=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=
-function(){$a.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var Da=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){Da.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();(function(){function b(d,n,y){mxShape.call(this);this.line=d;this.stroke=n;this.strokewidth=null!=y?y:1;this.updateBoundsFromLine()}function e(){mxSwimlane.call(this)}function g(){mxSwimlane.call(this)}function m(){mxCylinder.call(this)}function u(){mxConnector.call(this)}function p(){mxCylinder.call(this)}function B(){mxActor.call(this)}function H(){mxCylinder.call(this)}function S(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function P(){mxCylinder.call(this)}function R(){mxShape.call(this)}
+function(){$a.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var Da=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){Da.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();(function(){function b(d,n,y){mxShape.call(this);this.line=d;this.stroke=n;this.strokewidth=null!=y?y:1;this.updateBoundsFromLine()}function e(){mxSwimlane.call(this)}function g(){mxSwimlane.call(this)}function m(){mxCylinder.call(this)}function u(){mxConnector.call(this)}function p(){mxCylinder.call(this)}function B(){mxActor.call(this)}function H(){mxCylinder.call(this)}function T(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function P(){mxCylinder.call(this)}function R(){mxShape.call(this)}
function c(){mxShape.call(this)}function f(d,n,y,q){mxShape.call(this);this.bounds=d;this.fill=n;this.stroke=y;this.strokewidth=null!=q?q:1}function l(){mxActor.call(this)}function t(){mxCylinder.call(this)}function z(){mxCylinder.call(this)}function C(){mxActor.call(this)}function F(){mxActor.call(this)}function N(){mxActor.call(this)}function K(){mxActor.call(this)}function J(){mxActor.call(this)}function da(){mxActor.call(this)}function ea(){mxActor.call(this)}function ca(d,n){this.canvas=d;this.canvas.setLineJoin("round");
this.canvas.setLineCap("round");this.defaultVariation=n;this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,ca.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,ca.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,ca.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,ca.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=
mxUtils.bind(this,ca.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,ca.prototype.arcTo)}function W(){mxRectangleShape.call(this)}function ba(){mxRectangleShape.call(this)}function ha(){mxActor.call(this)}function la(){mxActor.call(this)}function Y(){mxActor.call(this)}function ma(){mxRectangleShape.call(this)}function Z(){mxRectangleShape.call(this)}function k(){mxCylinder.call(this)}function A(){mxShape.call(this)}function I(){mxShape.call(this)}function U(){mxEllipse.call(this)}
-function O(){mxShape.call(this)}function T(){mxShape.call(this)}function X(){mxRectangleShape.call(this)}function aa(){mxShape.call(this)}function ja(){mxShape.call(this)}function pa(){mxShape.call(this)}function sa(){mxShape.call(this)}function qa(){mxShape.call(this)}function wa(){mxCylinder.call(this)}function Ba(){mxCylinder.call(this)}function za(){mxRectangleShape.call(this)}function Ea(){mxDoubleEllipse.call(this)}function ra(){mxDoubleEllipse.call(this)}function ya(){mxArrowConnector.call(this);
+function O(){mxShape.call(this)}function S(){mxShape.call(this)}function X(){mxRectangleShape.call(this)}function aa(){mxShape.call(this)}function ja(){mxShape.call(this)}function pa(){mxShape.call(this)}function sa(){mxShape.call(this)}function qa(){mxShape.call(this)}function wa(){mxCylinder.call(this)}function Ba(){mxCylinder.call(this)}function za(){mxRectangleShape.call(this)}function Ea(){mxDoubleEllipse.call(this)}function ra(){mxDoubleEllipse.call(this)}function ya(){mxArrowConnector.call(this);
this.spacing=0}function Ca(){mxArrowConnector.call(this);this.spacing=0}function Ma(){mxActor.call(this)}function Ha(){mxRectangleShape.call(this)}function Aa(){mxActor.call(this)}function Ra(){mxActor.call(this)}function Za(){mxActor.call(this)}function La(){mxActor.call(this)}function $a(){mxActor.call(this)}function Da(){mxActor.call(this)}function x(){mxActor.call(this)}function M(){mxActor.call(this)}function Q(){mxActor.call(this)}function V(){mxActor.call(this)}function ia(){mxEllipse.call(this)}
function ka(){mxEllipse.call(this)}function oa(){mxEllipse.call(this)}function xa(){mxRhombus.call(this)}function ta(){mxEllipse.call(this)}function ua(){mxEllipse.call(this)}function Fa(){mxEllipse.call(this)}function Na(){mxEllipse.call(this)}function Wa(){mxActor.call(this)}function Xa(){mxActor.call(this)}function ab(){mxActor.call(this)}function Oa(d,n,y,q){mxShape.call(this);this.bounds=d;this.fill=n;this.stroke=y;this.strokewidth=null!=q?q:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=
!0;this.indent=2;this.rectOutline="single"}function Qa(){mxConnector.call(this)}function kb(d,n,y,q,v,D,E,fa,L,va){E+=L;var na=q.clone();q.x-=v*(2*E+L);q.y-=D*(2*E+L);v*=E+L;D*=E+L;return function(){d.ellipse(na.x-v-E,na.y-D-E,2*E,2*E);va?d.fillAndStroke():d.stroke()}}mxUtils.extend(b,mxShape);b.prototype.updateBoundsFromLine=function(){var d=null;if(null!=this.line)for(var n=0;n<this.line.length;n++){var y=this.line[n];null!=y&&(y=new mxRectangle(y.x,y.y,this.strokewidth,this.strokewidth),null==
@@ -2754,8 +2754,8 @@ d.lineTo(D,D),d.close(),d.fill()),0!=fa&&(d.setFillAlpha(Math.abs(fa)),d.setFill
m);var cb=Math.tan(mxUtils.toRadians(30)),Ya=(.5-cb)/2;mxCellRenderer.registerShape("isoRectangle",B);mxUtils.extend(u,mxConnector);u.prototype.paintEdgeShape=function(d,n){var y=this.createMarker(d,n,!0),q=this.createMarker(d,n,!1);d.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&d.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);d.setShadow(!1);d.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,
arguments);d.setStrokeColor(this.stroke);d.setFillColor(this.stroke);d.setDashed(!1);null!=y&&y();null!=q&&q()};mxCellRenderer.registerShape("wire",u);mxUtils.extend(p,mxCylinder);p.prototype.size=6;p.prototype.paintVertexShape=function(d,n,y,q,v){d.setFillColor(this.stroke);var D=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;d.ellipse(n+.5*(q-D),y+.5*(v-D),D,D);d.fill();d.setFillColor(mxConstants.NONE);d.rect(n,y,q,v);d.fill()};mxCellRenderer.registerShape("waypoint",
p);mxUtils.extend(B,mxActor);B.prototype.size=20;B.prototype.redrawPath=function(d,n,y,q,v){n=Math.min(q,v/cb);d.translate((q-n)/2,(v-n)/2+n/4);d.moveTo(0,.25*n);d.lineTo(.5*n,n*Ya);d.lineTo(n,.25*n);d.lineTo(.5*n,(.5-Ya)*n);d.lineTo(0,.25*n);d.close();d.end()};mxCellRenderer.registerShape("isoRectangle",B);mxUtils.extend(H,mxCylinder);H.prototype.size=20;H.prototype.redrawPath=function(d,n,y,q,v,D){n=Math.min(q,v/(.5+cb));D?(d.moveTo(0,.25*n),d.lineTo(.5*n,(.5-Ya)*n),d.lineTo(n,.25*n),d.moveTo(.5*
-n,(.5-Ya)*n),d.lineTo(.5*n,(1-Ya)*n)):(d.translate((q-n)/2,(v-n)/2),d.moveTo(0,.25*n),d.lineTo(.5*n,n*Ya),d.lineTo(n,.25*n),d.lineTo(n,.75*n),d.lineTo(.5*n,(1-Ya)*n),d.lineTo(0,.75*n),d.close());d.end()};mxCellRenderer.registerShape("isoCube",H);mxUtils.extend(S,mxCylinder);S.prototype.redrawPath=function(d,n,y,q,v,D){n=Math.min(v/2,Math.round(v/8)+this.strokewidth-1);if(D&&null!=this.fill||!D&&null==this.fill)d.moveTo(0,n),d.curveTo(0,2*n,q,2*n,q,n),D||(d.stroke(),d.begin()),d.translate(0,n/2),d.moveTo(0,
-n),d.curveTo(0,2*n,q,2*n,q,n),D||(d.stroke(),d.begin()),d.translate(0,n/2),d.moveTo(0,n),d.curveTo(0,2*n,q,2*n,q,n),D||(d.stroke(),d.begin()),d.translate(0,-n);D||(d.moveTo(0,n),d.curveTo(0,-n/3,q,-n/3,q,n),d.lineTo(q,v-n),d.curveTo(q,v+n/3,0,v+n/3,0,v-n),d.close())};S.prototype.getLabelMargins=function(d){return new mxRectangle(0,2.5*Math.min(d.height/2,Math.round(d.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",S);mxUtils.extend(G,mxCylinder);G.prototype.size=30;G.prototype.darkOpacity=
+n,(.5-Ya)*n),d.lineTo(.5*n,(1-Ya)*n)):(d.translate((q-n)/2,(v-n)/2),d.moveTo(0,.25*n),d.lineTo(.5*n,n*Ya),d.lineTo(n,.25*n),d.lineTo(n,.75*n),d.lineTo(.5*n,(1-Ya)*n),d.lineTo(0,.75*n),d.close());d.end()};mxCellRenderer.registerShape("isoCube",H);mxUtils.extend(T,mxCylinder);T.prototype.redrawPath=function(d,n,y,q,v,D){n=Math.min(v/2,Math.round(v/8)+this.strokewidth-1);if(D&&null!=this.fill||!D&&null==this.fill)d.moveTo(0,n),d.curveTo(0,2*n,q,2*n,q,n),D||(d.stroke(),d.begin()),d.translate(0,n/2),d.moveTo(0,
+n),d.curveTo(0,2*n,q,2*n,q,n),D||(d.stroke(),d.begin()),d.translate(0,n/2),d.moveTo(0,n),d.curveTo(0,2*n,q,2*n,q,n),D||(d.stroke(),d.begin()),d.translate(0,-n);D||(d.moveTo(0,n),d.curveTo(0,-n/3,q,-n/3,q,n),d.lineTo(q,v-n),d.curveTo(q,v+n/3,0,v+n/3,0,v-n),d.close())};T.prototype.getLabelMargins=function(d){return new mxRectangle(0,2.5*Math.min(d.height/2,Math.round(d.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",T);mxUtils.extend(G,mxCylinder);G.prototype.size=30;G.prototype.darkOpacity=
0;G.prototype.paintVertexShape=function(d,n,y,q,v){var D=Math.max(0,Math.min(q,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),E=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));d.translate(n,y);d.begin();d.moveTo(0,0);d.lineTo(q-D,0);d.lineTo(q,D);d.lineTo(q,v);d.lineTo(0,v);d.lineTo(0,0);d.close();d.end();d.fillAndStroke();this.outline||(d.setShadow(!1),0!=E&&(d.setFillAlpha(Math.abs(E)),d.setFillColor(0>E?"#FFFFFF":"#000000"),
d.begin(),d.moveTo(q-D,0),d.lineTo(q-D,D),d.lineTo(q,D),d.close(),d.fill()),d.begin(),d.moveTo(q-D,0),d.lineTo(q-D,D),d.lineTo(q,D),d.end(),d.stroke())};mxCellRenderer.registerShape("note",G);mxUtils.extend(P,G);mxCellRenderer.registerShape("note2",P);P.prototype.getLabelMargins=function(d){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var n=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(d.height*this.scale,n*this.scale),0,0)}return null};mxUtils.extend(R,mxShape);R.prototype.isoAngle=
15;R.prototype.paintVertexShape=function(d,n,y,q,v){var D=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;D=Math.min(q*Math.tan(D),.5*v);d.translate(n,y);d.begin();d.moveTo(.5*q,0);d.lineTo(q,D);d.lineTo(q,v-D);d.lineTo(.5*q,v);d.lineTo(0,v-D);d.lineTo(0,D);d.close();d.fillAndStroke();d.setShadow(!1);d.begin();d.moveTo(0,D);d.lineTo(.5*q,2*D);d.lineTo(q,D);d.moveTo(.5*q,2*D);d.lineTo(.5*q,v);d.stroke()};mxCellRenderer.registerShape("isoCube2",
@@ -2802,8 +2802,8 @@ Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||
Va,bb=this.style["symbol"+D+"ArcSpacing"];null!=bb&&(bb*=this.getArcSize(q+this.strokewidth,v+this.strokewidth),Va+=bb,fb+=bb);bb=n;var Ga=y;bb=fa==mxConstants.ALIGN_CENTER?bb+(q-va)/2:fa==mxConstants.ALIGN_RIGHT?bb+(q-va-Va):bb+Va;Ga=L==mxConstants.ALIGN_MIDDLE?Ga+(v-na)/2:L==mxConstants.ALIGN_BOTTOM?Ga+(v-na-fb):Ga+fb;d.save();fa=new E;fa.style=this.style;E.prototype.paintVertexShape.call(fa,d,bb,Ga,va,na);d.restore()}D++}while(null!=E)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};
mxCellRenderer.registerShape("ext",Z);mxUtils.extend(k,mxCylinder);k.prototype.redrawPath=function(d,n,y,q,v,D){D?(d.moveTo(0,0),d.lineTo(q/2,v/2),d.lineTo(q,0),d.end()):(d.moveTo(0,0),d.lineTo(q,0),d.lineTo(q,v),d.lineTo(0,v),d.close())};mxCellRenderer.registerShape("message",k);mxUtils.extend(A,mxShape);A.prototype.paintBackground=function(d,n,y,q,v){d.translate(n,y);d.ellipse(q/4,0,q/2,v/4);d.fillAndStroke();d.begin();d.moveTo(q/2,v/4);d.lineTo(q/2,2*v/3);d.moveTo(q/2,v/3);d.lineTo(0,v/3);d.moveTo(q/
2,v/3);d.lineTo(q,v/3);d.moveTo(q/2,2*v/3);d.lineTo(0,v);d.moveTo(q/2,2*v/3);d.lineTo(q,v);d.end();d.stroke()};mxCellRenderer.registerShape("umlActor",A);mxUtils.extend(I,mxShape);I.prototype.getLabelMargins=function(d){return new mxRectangle(d.width/6,0,0,0)};I.prototype.paintBackground=function(d,n,y,q,v){d.translate(n,y);d.begin();d.moveTo(0,v/4);d.lineTo(0,3*v/4);d.end();d.stroke();d.begin();d.moveTo(0,v/2);d.lineTo(q/6,v/2);d.end();d.stroke();d.ellipse(q/6,0,5*q/6,v);d.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",
-I);mxUtils.extend(U,mxEllipse);U.prototype.paintVertexShape=function(d,n,y,q,v){mxEllipse.prototype.paintVertexShape.apply(this,arguments);d.begin();d.moveTo(n+q/8,y+v);d.lineTo(n+7*q/8,y+v);d.end();d.stroke()};mxCellRenderer.registerShape("umlEntity",U);mxUtils.extend(O,mxShape);O.prototype.paintVertexShape=function(d,n,y,q,v){d.translate(n,y);d.begin();d.moveTo(q,0);d.lineTo(0,v);d.moveTo(0,0);d.lineTo(q,v);d.end();d.stroke()};mxCellRenderer.registerShape("umlDestroy",O);mxUtils.extend(T,mxShape);
-T.prototype.getLabelBounds=function(d){return new mxRectangle(d.x,d.y+d.height/8,d.width,7*d.height/8)};T.prototype.paintBackground=function(d,n,y,q,v){d.translate(n,y);d.begin();d.moveTo(3*q/8,v/8*1.1);d.lineTo(5*q/8,0);d.end();d.stroke();d.ellipse(0,v/8,q,7*v/8);d.fillAndStroke()};T.prototype.paintForeground=function(d,n,y,q,v){d.begin();d.moveTo(3*q/8,v/8*1.1);d.lineTo(5*q/8,v/4);d.end();d.stroke()};mxCellRenderer.registerShape("umlControl",T);mxUtils.extend(X,mxRectangleShape);X.prototype.size=
+I);mxUtils.extend(U,mxEllipse);U.prototype.paintVertexShape=function(d,n,y,q,v){mxEllipse.prototype.paintVertexShape.apply(this,arguments);d.begin();d.moveTo(n+q/8,y+v);d.lineTo(n+7*q/8,y+v);d.end();d.stroke()};mxCellRenderer.registerShape("umlEntity",U);mxUtils.extend(O,mxShape);O.prototype.paintVertexShape=function(d,n,y,q,v){d.translate(n,y);d.begin();d.moveTo(q,0);d.lineTo(0,v);d.moveTo(0,0);d.lineTo(q,v);d.end();d.stroke()};mxCellRenderer.registerShape("umlDestroy",O);mxUtils.extend(S,mxShape);
+S.prototype.getLabelBounds=function(d){return new mxRectangle(d.x,d.y+d.height/8,d.width,7*d.height/8)};S.prototype.paintBackground=function(d,n,y,q,v){d.translate(n,y);d.begin();d.moveTo(3*q/8,v/8*1.1);d.lineTo(5*q/8,0);d.end();d.stroke();d.ellipse(0,v/8,q,7*v/8);d.fillAndStroke()};S.prototype.paintForeground=function(d,n,y,q,v){d.begin();d.moveTo(3*q/8,v/8*1.1);d.lineTo(5*q/8,v/4);d.end();d.stroke()};mxCellRenderer.registerShape("umlControl",S);mxUtils.extend(X,mxRectangleShape);X.prototype.size=
40;X.prototype.isHtmlAllowed=function(){return!1};X.prototype.getLabelBounds=function(d){var n=Math.max(0,Math.min(d.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(d.x,d.y,d.width,n)};X.prototype.paintBackground=function(d,n,y,q,v){var D=Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),E=mxUtils.getValue(this.style,"participant");null==E||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,d,n,
y,q,D):(E=this.state.view.graph.cellRenderer.getShape(E),null!=E&&E!=X&&(E=new E,E.apply(this.state),d.save(),E.paintVertexShape(d,n,y,q,D),d.restore()));D<v&&(d.setDashed("1"==mxUtils.getValue(this.style,"lifelineDashed","1")),d.begin(),d.moveTo(n+q/2,y+D),d.lineTo(n+q/2,y+v),d.end(),d.stroke())};X.prototype.paintForeground=function(d,n,y,q,v){var D=Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.size))));mxRectangleShape.prototype.paintForeground.call(this,d,n,y,q,Math.min(v,
D))};mxCellRenderer.registerShape("umlLifeline",X);mxUtils.extend(aa,mxShape);aa.prototype.width=60;aa.prototype.height=30;aa.prototype.corner=10;aa.prototype.configurePointerEvents=function(d){var n=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);null==this.style||null!=n&&n!=mxConstants.NONE&&0!=this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(d.pointerEvents=!1)};aa.prototype.getLabelMargins=function(d){return new mxRectangle(0,
@@ -3044,7 +3044,7 @@ H.setEnabled(!1);H=this.addAction("animations",function(){Editor.enableAnimation
H=this.addAction("collapseExpand",function(){var G=new ChangePageSetup(m);G.ignoreColor=!0;G.ignoreImage=!0;G.foldingEnabled=!p.foldingEnabled;p.model.execute(G)});H.setToggleAction(!0);H.setSelectedCallback(function(){return p.foldingEnabled});H.isEnabled=B;H=this.addAction("pageView",mxUtils.bind(this,function(){m.setPageVisible(!p.pageVisible)}));H.setToggleAction(!0);H.setSelectedCallback(function(){return p.pageVisible});H=this.addAction("connectionArrows",function(){p.connectionArrowsEnabled=
!p.connectionArrowsEnabled;m.fireEvent(new mxEventObject("connectionArrowsChanged"))},null,null,"Alt+Shift+A");H.setToggleAction(!0);H.setSelectedCallback(function(){return p.connectionArrowsEnabled});H=this.addAction("connectionPoints",function(){p.setConnectable(!p.connectionHandler.isEnabled());m.fireEvent(new mxEventObject("connectionPointsChanged"))},null,null,"Alt+Shift+O");H.setToggleAction(!0);H.setSelectedCallback(function(){return p.connectionHandler.isEnabled()});H=this.addAction("copyConnect",
function(){p.connectionHandler.setCreateTarget(!p.connectionHandler.isCreateTarget());m.fireEvent(new mxEventObject("copyConnectChanged"))});H.setToggleAction(!0);H.setSelectedCallback(function(){return p.connectionHandler.isCreateTarget()});H.isEnabled=B;H=this.addAction("autosave",function(){m.editor.setAutosave(!m.editor.autosave)});H.setToggleAction(!0);H.setSelectedCallback(function(){return m.editor.autosave});H.isEnabled=B;H.visible=!1;this.addAction("help",function(){var G="";mxResources.isLanguageSupported(mxClient.language)&&
-(G="_"+mxClient.language);p.openLink(RESOURCES_PATH+"/help"+G+".html")});var S=!1;this.put("about",new Action(mxResources.get("about")+" Graph Editor...",function(){S||(m.showDialog((new AboutDialog(m)).container,320,280,!0,!0,function(){S=!1}),S=!0)}));H=mxUtils.bind(this,function(G,P,R,c){return this.addAction(G,function(){if(null!=R&&p.cellEditor.isContentEditing())R();else{p.stopEditing(!1);p.getModel().beginUpdate();try{var f=p.getEditableCells(p.getSelectionCells());p.toggleCellStyleFlags(mxConstants.STYLE_FONTSTYLE,
+(G="_"+mxClient.language);p.openLink(RESOURCES_PATH+"/help"+G+".html")});var T=!1;this.put("about",new Action(mxResources.get("about")+" Graph Editor...",function(){T||(m.showDialog((new AboutDialog(m)).container,320,280,!0,!0,function(){T=!1}),T=!0)}));H=mxUtils.bind(this,function(G,P,R,c){return this.addAction(G,function(){if(null!=R&&p.cellEditor.isContentEditing())R();else{p.stopEditing(!1);p.getModel().beginUpdate();try{var f=p.getEditableCells(p.getSelectionCells());p.toggleCellStyleFlags(mxConstants.STYLE_FONTSTYLE,
P,f);(P&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD?p.updateLabelElements(f,function(t){t.style.fontWeight=null;"B"==t.nodeName&&p.replaceElement(t)}):(P&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC?p.updateLabelElements(f,function(t){t.style.fontStyle=null;"I"==t.nodeName&&p.replaceElement(t)}):(P&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&p.updateLabelElements(f,function(t){t.style.textDecoration=null;"U"==t.nodeName&&p.replaceElement(t)});for(var l=0;l<f.length;l++)0==p.model.getChildCount(f[l])&&
p.autoSizeCell(f[l],!1)}finally{p.getModel().endUpdate()}}},null,null,c)});H("bold",mxConstants.FONT_BOLD,function(){document.execCommand("bold",!1,null)},Editor.ctrlKey+"+B");H("italic",mxConstants.FONT_ITALIC,function(){document.execCommand("italic",!1,null)},Editor.ctrlKey+"+I");H("underline",mxConstants.FONT_UNDERLINE,function(){document.execCommand("underline",!1,null)},Editor.ctrlKey+"+U");this.addAction("fontColor...",function(){m.menus.pickColor(mxConstants.STYLE_FONTCOLOR,"forecolor","000000",
"default",p.shapeForegroundColor)});this.addAction("strokeColor...",function(){m.menus.pickColor(mxConstants.STYLE_STROKECOLOR,null,null,"default",p.shapeForegroundColor)});this.addAction("fillColor...",function(){m.menus.pickColor(mxConstants.STYLE_FILLCOLOR,null,null,"default",p.shapeBackgroundColor)});this.addAction("gradientColor...",function(){m.menus.pickColor(mxConstants.STYLE_GRADIENTCOLOR,null,null,"default",p.shapeForegroundColor)});this.addAction("backgroundColor...",function(){m.menus.pickColor(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,
@@ -3079,25 +3079,25 @@ DrawioFile.prototype.synchronizeFile=function(b,e){if(this.savingFile)null!=e&&e
function(B){g&&(window.clearTimeout(m),this.sync.cleanup(b,e,B))}),u,p):this.updateFile(mxUtils.bind(this,function(){g&&(window.clearTimeout(m),null!=b&&b())}),u,p)}};
DrawioFile.prototype.updateFile=function(b,e,g,m,u){null!=g&&g()||(EditorUi.debug("DrawioFile.updateFile",[this],"immediate",u,"invalidChecksum",this.invalidChecksum),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=e&&e():this.getLatestVersion(mxUtils.bind(this,function(p){try{null!=g&&g()||(EditorUi.debug("DrawioFile.updateFile",[this],"invalidChecksum",this.invalidChecksum,"latestFile",[p]),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=e&&e():null!=p?this.mergeFile(p,b,e,
m,u):this.reloadFile(b,e))}catch(B){null!=e&&e(B)}}),e))};
-DrawioFile.prototype.mergeFile=function(b,e,g,m,u){try{var p=b.getShadowPages();if(null!=p&&0<p.length){var B=this.getShadowPages(),H=[this.ui.diffPages(null!=m?m:B,p)],S=this.ignorePatches(H);if(S)this.inConflictState=this.invalidChecksum=!1,this.setDescriptor(b.getDescriptor()),this.descriptorChanged(),EditorUi.debug("File.mergeFile",[this],"file",[b],"ignored",S),null!=e&&e();else try{this.stats.fileMerged++;null!=this.sync&&this.sync.sendLocalChanges();var G=this.isModified()?this.ui.diffPages(B,
+DrawioFile.prototype.mergeFile=function(b,e,g,m,u){try{var p=b.getShadowPages();if(null!=p&&0<p.length){var B=this.getShadowPages(),H=[this.ui.diffPages(null!=m?m:B,p)],T=this.ignorePatches(H);if(T)this.inConflictState=this.invalidChecksum=!1,this.setDescriptor(b.getDescriptor()),this.descriptorChanged(),EditorUi.debug("File.mergeFile",[this],"file",[b],"ignored",T),null!=e&&e();else try{this.stats.fileMerged++;null!=this.sync&&this.sync.sendLocalChanges();var G=this.isModified()?this.ui.diffPages(B,
this.isRealtime()?this.ownPages:this.ui.pages):null,P=this.ui.patchPages(this.ui.clonePages(B),H[0]),R=this.ui.getHashValueForPages(P,{}),c=this.ui.getHashValueForPages(p,{});EditorUi.debug("File.mergeFile",[this],"file",[b],"ui",this.ui.pages,"shadow",B,"pages",p,"patched",P,"patches",H,"changes",G,"checksum",R,"current",c,"valid",R==c,"from",this.getCurrentRevisionId(),"to",b.getCurrentRevisionId(),"modified",this.isModified(),"immediate",u);if(null!=R&&R!=c)this.checksumError(g,H,null,null,"mergeFile",
R,c,b.getCurrentRevisionId());else{this.setShadowPages(p);if(null!=this.sync){var f=this.sync.patchRealtime(H,DrawioFile.LAST_WRITE_WINS?G:null,null,u);null==f||mxUtils.isEmptyObject(f)||H.push(f)}this.patch(H,DrawioFile.LAST_WRITE_WINS?G:null);this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(b.getDescriptor());this.descriptorChanged();null!=e&&e()}}catch(z){this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=g&&g(z);try{var l=this.getCurrentUser(),t=null!=l?
l.id:"unknown";EditorUi.logError("Error in mergeFile",null,this.getMode()+"."+this.getId(),t,z)}catch(C){}}}else throw Error(mxResources.get("notADiagramFile"));}catch(z){null!=g&&g(z)}};
DrawioFile.prototype.getAnonymizedXmlForPages=function(b){var e=new mxCodec(mxUtils.createXmlDocument()),g=e.document.createElement("mxfile");if(null!=b)for(var m=0;m<b.length;m++){var u=e.encode(new mxGraphModel(b[m].root));"1"!=urlParams.dev&&(u=this.ui.anonymizeNode(u,!0));u.setAttribute("id",b[m].getId());b[m].viewState&&this.ui.editor.graph.saveViewState(b[m].viewState,u,!0);g.appendChild(u)}return mxUtils.getPrettyXml(g)};
DrawioFile.prototype.compressReportData=function(b,e,g){e=null!=e?e:1E4;null!=g&&null!=b&&b.length>g?b=b.substring(0,g)+"[...]":null!=b&&b.length>e&&(b=Graph.compress(b)+"\n");return b};
-DrawioFile.prototype.checksumError=function(b,e,g,m,u,p,B,H){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var S=this.getCurrentUser(),G=null!=S?S.id:"unknown",P=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",R=JSON.stringify(e).length,c=null;if(null!=e&&1E3>R){for(b=0;b<e.length;b++)this.ui.anonymizePatch(e[b]);c=JSON.stringify(e);c=null!=c&&1E3>c.length?Graph.compress(c):
+DrawioFile.prototype.checksumError=function(b,e,g,m,u,p,B,H){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var T=this.getCurrentUser(),G=null!=T?T.id:"unknown",P=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",R=JSON.stringify(e).length,c=null;if(null!=e&&1E3>R){for(b=0;b<e.length;b++)this.ui.anonymizePatch(e[b]);c=JSON.stringify(e);c=null!=c&&1E3>c.length?Graph.compress(c):
null}this.getLatestVersion(mxUtils.bind(this,function(f){try{var l=null!=c?"report":"error",t=this.ui.getHashValueForPages(f.getShadowPages()),z="unknown",C="unknown",F="unknown";try{var N=null!=f.initialData&&0<f.initialData.length?mxUtils.parseXml(f.initialData).documentElement:null;null!=N&&(null!=N.getAttribute("version")&&(z=N.getAttribute("version")),null!=N.getAttribute("agent")&&(C=N.getAttribute("agent")),null!=N.getAttribute("type")&&(F=N.getAttribute("type")))}catch(K){}EditorUi.logError("Checksum "+
l+" in "+u,null,this.getMode()+"."+P,"user_"+G+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+R+"-patches_"+e.length+(null!=c?"-json_"+c:"")+"-size_"+this.getSize()+(null!=p?"-expected_"+p:"")+(null!=B?"-current_"+B:"")+(null!=H?"-rev_"+this.ui.hashValue(H):"")+(null!=t?"-latest_"+t:"")+"-latestRev_"+this.ui.hashValue(f.getCurrentRevisionId())+("-latestVersion_"+z)+("-latestAgent_"+C)+("-latestType_"+F));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+P,action:u,label:"user_"+
G+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+R+"-patches_"+e.length+"-size_"+this.getSize()})}catch(K){}}),function(){})}catch(f){}};
-DrawioFile.prototype.sendErrorReport=function(b,e,g,m){try{var u=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),p=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),B=this.getCurrentUser(),H=null!=B?this.ui.hashValue(B.id):"unknown",S=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",G=this.getTitle(),P=G.lastIndexOf(".");B="xml";0<P&&(B=G.substring(P));var R=null!=g?g.stack:Error().stack;EditorUi.sendReport(b+" "+(new Date).toISOString()+
-":\n\nAppVersion="+navigator.appVersion+"\nFile="+this.ui.hashValue(this.getId())+" ("+this.getMode()+")"+(this.isModified()?" modified":"")+"\nSize/Type="+this.getSize()+" ("+B+")\nUser="+H+S+"\nPrefix="+this.ui.editor.graph.model.prefix+"\nSync="+DrawioFile.SYNC+(null!=this.sync?(this.sync.enabled?" enabled":"")+(this.sync.isConnected()?" connected":""):"")+"\nPlugins="+(null!=mxSettings.settings?mxSettings.getPlugins():"null")+"\n\nStats:\n"+JSON.stringify(this.stats,null,2)+(null!=e?"\n\n"+e:
+DrawioFile.prototype.sendErrorReport=function(b,e,g,m){try{var u=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),p=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),B=this.getCurrentUser(),H=null!=B?this.ui.hashValue(B.id):"unknown",T=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",G=this.getTitle(),P=G.lastIndexOf(".");B="xml";0<P&&(B=G.substring(P));var R=null!=g?g.stack:Error().stack;EditorUi.sendReport(b+" "+(new Date).toISOString()+
+":\n\nAppVersion="+navigator.appVersion+"\nFile="+this.ui.hashValue(this.getId())+" ("+this.getMode()+")"+(this.isModified()?" modified":"")+"\nSize/Type="+this.getSize()+" ("+B+")\nUser="+H+T+"\nPrefix="+this.ui.editor.graph.model.prefix+"\nSync="+DrawioFile.SYNC+(null!=this.sync?(this.sync.enabled?" enabled":"")+(this.sync.isConnected()?" connected":""):"")+"\nPlugins="+(null!=mxSettings.settings?mxSettings.getPlugins():"null")+"\n\nStats:\n"+JSON.stringify(this.stats,null,2)+(null!=e?"\n\n"+e:
"")+(null!=g?"\n\nError: "+g.message:"")+"\n\nStack:\n"+R+"\n\nShadow:\n"+u+"\n\nData:\n"+p,m)}catch(c){}};
DrawioFile.prototype.reloadFile=function(b,e){try{this.stats.fileReloaded++;var g=this.ui.diffPages(this.getShadowPages(),this.isRealtime()?this.ownPages:this.ui.pages),m=this.ui.editor.graph,u=m.getSelectionCells(),p=m.getViewState(),B=this.ui.currentPage;this.getLatestVersion(mxUtils.bind(this,function(H){EditorUi.debug("DrawioFile.reloadFile",[this],"modified",this.isModified(),"rev",this.getCurrentRevisionId(),"changes",[g],"viewState",[p],"latestFile",H);null!=H?(this.ui.replaceFileData(H.getData(),
-[g]),this.ui.restoreViewState(B,p,u),this.setDescriptor(H.getDescriptor()),this.descriptorChanged(),null!=b&&b()):(this.ui.spinner.stop(),this.ui.loadFile(this.getHash(),!0,null,mxUtils.bind(this,function(){if(null==this.ui.fileLoadedError){var S=this.ui.getCurrentFile();null!=S&&(S.stats=this.stats,S.patch([g]),S.fileChanged());this.ui.restoreViewState(B,p,u);null!=b&&b()}else null!=e&&e(this.ui.fileLoadedError)}),!0))}),e)}catch(H){null!=e&&e(H)}};
+[g]),this.ui.restoreViewState(B,p,u),this.setDescriptor(H.getDescriptor()),this.descriptorChanged(),null!=b&&b()):(this.ui.spinner.stop(),this.ui.loadFile(this.getHash(),!0,null,mxUtils.bind(this,function(){if(null==this.ui.fileLoadedError){var T=this.ui.getCurrentFile();null!=T&&(T.stats=this.stats,T.patch([g]),T.fileChanged());this.ui.restoreViewState(B,p,u);null!=b&&b()}else null!=e&&e(this.ui.fileLoadedError)}),!0))}),e)}catch(H){null!=e&&e(H)}};
DrawioFile.prototype.copyFile=function(b,e){this.ui.editor.editAsNew(this.ui.getFileData(!0),this.ui.getCopyFilename(this))};DrawioFile.prototype.ignorePatches=function(b){var e=!0;if(null!=b)for(var g=0;g<b.length&&e;g++)e=e&&mxUtils.isEmptyObject(b[g]);return e};
-DrawioFile.prototype.patch=function(b,e,g,m){if(null!=b){var u=this.ui.editor.undoManager,p=u.history.slice(),B=u.indexOfNextAdd,H=this.ui.editor.graph;H.container.style.visibility="hidden";var S=this.changeListenerEnabled;this.changeListenerEnabled=g;var G=H.foldingEnabled,P=H.mathEnabled,R=H.cellRenderer.redraw;H.cellRenderer.redraw=function(C){C.view.graph.isEditing(C.cell)&&(C.view.graph.scrollCellToVisible(C.cell),C.view.graph.cellEditor.resize());R.apply(this,arguments)};H.model.beginUpdate();
+DrawioFile.prototype.patch=function(b,e,g,m){if(null!=b){var u=this.ui.editor.undoManager,p=u.history.slice(),B=u.indexOfNextAdd,H=this.ui.editor.graph;H.container.style.visibility="hidden";var T=this.changeListenerEnabled;this.changeListenerEnabled=g;var G=H.foldingEnabled,P=H.mathEnabled,R=H.cellRenderer.redraw;H.cellRenderer.redraw=function(C){C.view.graph.isEditing(C.cell)&&(C.view.graph.scrollCellToVisible(C.cell),C.view.graph.cellEditor.resize());R.apply(this,arguments)};H.model.beginUpdate();
try{if(g){for(var c=this.ui.pages.slice(),f=this.ui.currentPage,l=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified()),t=0;t<l.length;t++){var z=mxUtils.indexOf(this.ui.pages,l[t]);0>z?this.ui.insertPage(l[t],Math.min(t,this.ui.pages.length)):this.ui.movePage(z,t)}for(t=0;t<c.length;t++)0>mxUtils.indexOf(l,c[t])&&this.ui.removePage(c[t]);0<=mxUtils.indexOf(this.ui.pages,f)&&this.ui.selectPage(f,!0)}else this.ui.pages=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified());0==this.ui.pages.length&&
-this.ui.pages.push(this.ui.createPage());0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0);H.checkDefaultParent()}finally{H.container.style.visibility="";H.model.endUpdate();H.cellRenderer.redraw=R;this.changeListenerEnabled=S;g||(u.history=p,u.indexOfNextAdd=B,u.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)P!=H.mathEnabled?(this.ui.editor.updateGraphComponents(),H.refresh()):(G!=H.foldingEnabled?
+this.ui.pages.push(this.ui.createPage());0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0);H.checkDefaultParent()}finally{H.container.style.visibility="";H.model.endUpdate();H.cellRenderer.redraw=R;this.changeListenerEnabled=T;g||(u.history=p,u.indexOfNextAdd=B,u.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)P!=H.mathEnabled?(this.ui.editor.updateGraphComponents(),H.refresh()):(G!=H.foldingEnabled?
H.view.revalidate():H.view.validate(),H.sizeDidChange());null!=this.sync&&this.isRealtime()&&!m&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages));this.ui.editor.fireEvent(new mxEventObject("pagesPatched","patches",b))}EditorUi.debug("DrawioFile.patch",[this],"patches",b,"resolver",e,"undoable",g)}return b};
DrawioFile.prototype.save=function(b,e,g,m,u,p){try{if(EditorUi.debug("DrawioFile.save",[this],"revision",b,"unloading",m,"overwrite",u,"manual",p,"saving",this.savingFile,"editable",this.isEditable(),"invalidChecksum",this.invalidChecksum),this.isEditable())if(!u&&this.invalidChecksum)if(null!=g)g({message:mxResources.get("checksum")});else throw Error(mxResources.get("checksum"));else this.updateFileData(),this.clearAutosave(),null!=e&&e();else if(null!=g)g({message:mxResources.get("readOnly")});
else throw Error(mxResources.get("readOnly"));}catch(B){if(null!=g)g(B);else throw B;}};DrawioFile.prototype.createData=function(){var b=this.ui.pages;if(this.isRealtime()&&(this.ui.pages=this.ownPages,null!=this.ui.currentPage)){var e=this.ui.getPageById(this.ui.currentPage.getId(),this.ownPages);null!=e&&(e.viewState=this.ui.editor.graph.getViewState(),e.needsUpdate=!0)}e=this.ui.getFileData(null,null,null,null,null,null,null,null,this,!this.isCompressed());this.ui.pages=b;return e};
@@ -3148,7 +3148,7 @@ DrawioFile.prototype.fileChanged=function(b){b=null!=b?b:!0;this.lastChanged=new
mxUtils.bind(this,function(e){this.ui.stopSanityCheck();null==this.autosaveThread?(this.handleFileSuccess(!0),this.ageStart=null):this.isModified()&&(this.ui.scheduleSanityCheck(),this.ageStart=this.lastChanged)}),mxUtils.bind(this,function(e){this.handleFileError(e)}))):(this.ageStart=null,this.isAutosaveOptional()&&this.ui.editor.autosave||this.inConflictState||this.addUnsavedStatus());null!=this.sync&&b&&this.sync.localFileChanged()};
DrawioFile.prototype.createSecret=function(b){var e=Editor.guid(32);Editor.enableRealtimeCache&&null!=this.sync&&!this.isOptimisticSync()?this.sync.createToken(e,mxUtils.bind(this,function(g){EditorUi.debug("DrawioFile.createSecret",[this],"secret",e,"token",g);b(e,g)}),mxUtils.bind(this,function(){b(e)})):b(e)};DrawioFile.prototype.fileSaving=function(){null!=this.sync&&this.sync.fileSaving()};
DrawioFile.prototype.fileSaved=function(b,e,g,m,u,p,B){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;p=null!=p?p:this.ui.getPagesForXml(b);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(p),null!=this.sync&&(this.sync.lastModified=this.getLastModifiedDate(),this.sync.resetUpdateStatusThread(),this.isRealtime()&&this.sync.scheduleCleanup()),null!=g&&g()):this.sync.fileSaved(p,e,g,m,u,B)}catch(G){this.invalidChecksum=
-this.inConflictState=!0;this.descriptorChanged();null!=m&&m(G);try{var H=this.getCurrentUser(),S=null!=H?H.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),S,G)}catch(P){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"desc",[e],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(G){this.descriptorChanged(),null!=m&&m(G)}};
+this.inConflictState=!0;this.descriptorChanged();null!=m&&m(G);try{var H=this.getCurrentUser(),T=null!=H?H.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),T,G)}catch(P){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"desc",[e],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(G){this.descriptorChanged(),null!=m&&m(G)}};
DrawioFile.prototype.autosave=function(b,e,g,m){null==this.lastAutosave&&(this.lastAutosave=Date.now());var u=Date.now()-this.lastAutosave<e?b:0;this.clearAutosave();var p=window.setTimeout(mxUtils.bind(this,function(){try{if(this.lastAutosave=null,this.autosaveThread==p&&(this.autosaveThread=null),EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"modified",this.isModified(),"now",this.isAutosaveNow(),"saving",this.savingFile),this.isModified()&&this.isAutosaveNow()){var B=this.isAutosaveRevision();
B&&(this.lastAutosaveRevision=(new Date).getTime());this.save(B,mxUtils.bind(this,function(H){this.autosaveCompleted();null!=g&&g(H)}),mxUtils.bind(this,function(H){null!=m&&m(H)}))}else this.isModified()||this.ui.editor.setStatus(""),null!=g&&g(null)}catch(H){null!=m&&m(H)}}),u);this.autosaveThread=p;EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"delay",b,"maxDelay",e,"actualDelay",u,"lastAutosave",this.lastAutosave,"saving",this.savingFile)};DrawioFile.prototype.isAutosaveNow=function(){return!0};
DrawioFile.prototype.autosaveCompleted=function(){};DrawioFile.prototype.clearAutosave=function(){null!=this.autosaveThread&&(window.clearTimeout(this.autosaveThread),this.autosaveThread=null)};DrawioFile.prototype.isAutosaveRevision=function(){var b=(new Date).getTime();return null==this.lastAutosaveRevision||b-this.lastAutosaveRevision>this.maxAutosaveRevisionDelay};DrawioFile.prototype.descriptorChanged=function(){this.fireEvent(new mxEventObject("descriptorChanged"))};
@@ -3157,10 +3157,10 @@ DrawioFile.prototype.removeListeners=function(){null!=this.changeListener&&(this
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,m,u,p,B){DrawioFile.call(this,b,e);this.title=g;this.mode=m?null:App.MODE_DEVICE;this.fileHandle=u;this.desc=p;this.editable=B};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};
LocalFile.prototype.getTitle=function(){return this.title};LocalFile.prototype.isRenamable=function(){return!0};LocalFile.prototype.isEditable=function(){return DrawioFile.prototype.isEditable.apply(this,arguments)&&(null==this.editable||this.editable)};LocalFile.prototype.setEditable=function(b){this.editable=b;this.descriptorChanged()};LocalFile.prototype.save=function(b,e,g,m,u){this.saveAs(this.title,e,g,m,u)};LocalFile.prototype.saveAs=function(b,e,g,m,u){this.saveFile(b,!1,e,g,null,m,u)};
LocalFile.prototype.getDescriptor=function(){return this.desc};LocalFile.prototype.setDescriptor=function(b){this.desc=b};LocalFile.prototype.getLatestVersion=function(b,e){null==this.fileHandle?null!=e&&e({message:mxResources.get("cannotOpenFile")}):this.ui.loadFileSystemEntry(this.fileHandle,b,e)};
-LocalFile.prototype.saveFile=function(b,e,g,m,u,p,B){b!=this.title&&(this.editable=this.desc=this.fileHandle=null);this.title=b;u||this.updateFileData();var H=this.ui.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var S=this.getData(),G=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=g&&g()}),P=mxUtils.bind(this,function(R){if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=
-!0;var c=mxUtils.bind(this,function(l){this.savingFile=!1;null!=m&&m({error:l})});this.saveDraft(S);this.fileHandle.createWritable().then(mxUtils.bind(this,function(l){this.fileHandle.getFile().then(mxUtils.bind(this,function(t){this.invalidFileHandle=null;EditorUi.debug("LocalFile.saveFile",[this],"desc",[this.desc],"newDesc",[t],"conflict",this.desc.lastModified!=t.lastModified);B||this.desc.lastModified==t.lastModified?l.write(H?this.ui.base64ToBlob(R,"image/png"):R).then(mxUtils.bind(this,function(){l.close().then(mxUtils.bind(this,
-function(){this.fileHandle.getFile().then(mxUtils.bind(this,function(z){try{var C=this.desc;this.savingFile=!1;this.desc=z;this.fileSaved(S,C,G,c);this.removeDraft()}catch(F){c(F)}}),c)}),c)}),c):(this.inConflictState=!0,c())}),mxUtils.bind(this,function(t){this.invalidFileHandle=!0;c(t)}))}),c)}}else{if(this.ui.isOfflineApp()||this.ui.isLocalFileSave())this.ui.doSaveLocalFile(R,b,H?"image/png":"text/xml",H);else if(R.length<MAX_REQUEST_SIZE){var f=b.lastIndexOf(".");f=0<f?b.substring(f+1):"xml";
-(new mxXmlRequest(SAVE_URL,"format="+f+"&xml="+encodeURIComponent(R)+"&filename="+encodeURIComponent(b)+(H?"&binary=1":""))).simulate(document,"_blank")}else this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(R)}));G()}});H?(e=this.ui.getPngFileProperties(this.ui.fileNode),this.ui.getEmbeddedPng(mxUtils.bind(this,function(R){P(R)}),m,this.ui.getCurrentFile()!=this?S:null,e.scale,e.border)):P(S)};
+LocalFile.prototype.saveFile=function(b,e,g,m,u,p,B){b!=this.title&&(this.editable=this.desc=this.fileHandle=null);this.title=b;u||this.updateFileData();var H=this.ui.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var T=this.getData(),G=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=g&&g()}),P=mxUtils.bind(this,function(R){if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=
+!0;var c=mxUtils.bind(this,function(l){this.savingFile=!1;null!=m&&m({error:l})});this.saveDraft(T);this.fileHandle.createWritable().then(mxUtils.bind(this,function(l){this.fileHandle.getFile().then(mxUtils.bind(this,function(t){this.invalidFileHandle=null;EditorUi.debug("LocalFile.saveFile",[this],"desc",[this.desc],"newDesc",[t],"conflict",this.desc.lastModified!=t.lastModified);B||this.desc.lastModified==t.lastModified?l.write(H?this.ui.base64ToBlob(R,"image/png"):R).then(mxUtils.bind(this,function(){l.close().then(mxUtils.bind(this,
+function(){this.fileHandle.getFile().then(mxUtils.bind(this,function(z){try{var C=this.desc;this.savingFile=!1;this.desc=z;this.fileSaved(T,C,G,c);this.removeDraft()}catch(F){c(F)}}),c)}),c)}),c):(this.inConflictState=!0,c())}),mxUtils.bind(this,function(t){this.invalidFileHandle=!0;c(t)}))}),c)}}else{if(this.ui.isOfflineApp()||this.ui.isLocalFileSave())this.ui.doSaveLocalFile(R,b,H?"image/png":"text/xml",H);else if(R.length<MAX_REQUEST_SIZE){var f=b.lastIndexOf(".");f=0<f?b.substring(f+1):"xml";
+(new mxXmlRequest(SAVE_URL,"format="+f+"&xml="+encodeURIComponent(R)+"&filename="+encodeURIComponent(b)+(H?"&binary=1":""))).simulate(document,"_blank")}else this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(R)}));G()}});H?(e=this.ui.getPngFileProperties(this.ui.fileNode),this.ui.getEmbeddedPng(mxUtils.bind(this,function(R){P(R)}),m,this.ui.getCurrentFile()!=this?T:null,e.scale,e.border)):P(T)};
LocalFile.prototype.rename=function(b,e,g){this.title=b;this.descriptorChanged();null!=e&&e()};(function(){"undefined"!==typeof html4&&(html4.ATTRIBS["span::data-lucid-content"]=0,html4.ATTRIBS["span::data-lucid-type"]=0,html4.ATTRIBS["font::data-font-src"]=0);Editor.sketchFontFamily="Architects Daughter";Editor.sketchFontSource="https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter";Editor.sketchFonts=[{fontFamily:Editor.sketchFontFamily,fontUrl:decodeURIComponent(Editor.sketchFontSource)}];Editor.sketchDefaultCurveFitting="1";Editor.sketchDefaultJiggle="2";Editor.thinFormatImage=
"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHdpZHRoPSI0OCI+PHBhdGggZD0ibTM2LjUgMTguMzUtNi44NS02Ljg1IDMuMjUtMy4ycS44NS0uODUgMi4wMjUtLjg1IDEuMTc1IDAgMi4wMjUuODVsMi43NSAyLjhxLjg1LjguODUgMnQtLjg1IDJaTTYuODUgNDEuMXYtNi45bDkuNTUtOS41NUw1LjUgMTMuN2w3LjgtNy44NSAxMSAxMSA1LjM1LTUuMzUgNi44NSA2Ljg1LTUuMzUgNS4zNSAxMSAxMS03Ljg1IDcuNzUtMTAuOTUtMTAuOS05LjYgOS41NVptMTEuMi0xOC4wNSA0LjY1LTQuNi00LjA1LTQuMDUtMi4zNSAyLjQtMS42LTEuNiAyLjM1LTIuNC0zLjc1LTMuNzUtNC42IDQuNjVabTE2LjIgMTYuMjUgNC42NS00LjY1LTMuNzUtMy43NS0yLjQgMi40LTEuNi0xLjYgMi40LTIuNC00LjA1LTQtNC42IDQuNjVabS0yNS4xLS40NWgzLjZsMjAuNS0yMC40NS0zLjY1LTMuNjVMOS4xNSAzNS4yWiIvPjwvc3ZnPg==";
Editor.thinGestureImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHdpZHRoPSI0OCI+PHBhdGggZD0iTTI4IDQxLjZxLTIuNSAwLTQuMDc1LTEuNjUtMS41NzUtMS42NS0xLjU3NS00LjM1IDAtMi4zNSAxLjEtNC4xIDEuMS0xLjc1IDIuODI1LTIuOTUgMS43MjUtMS4yIDMuNy0xLjgyNVQzMy42NSAyNnEtLjE1LTMuMDUtMS4yNS00LjQyNVQyOS4yNSAyMC4ycS0yLjMgMC00LjE3NSAxLjV0LTQuNDI1IDQuOTVxLTIuNjUgMy40NS00LjYgNS4xLTEuOTUgMS42NS00LjM1IDEuNjUtMi4xIDAtMy42NS0xLjM3NVE2LjUgMzAuNjUgNi41IDI3LjQ1cTAtMiAxLjItNC41MjUgMS4yLTIuNTI1IDMuNS02LjE3NSAxLjMtMS44NSAxLjk3NS0zLjIyNXQuNjc1LTIuMzc1cTAtLjctLjM1LTEuMDUtLjM1LS4zNS0xLjA1LS4zNS0uNzUgMC0xLjYuNDc1UTEwIDEwLjcgOSAxMS45TDcgOS44cTEuMzUtMS41NSAyLjcyNS0yLjI3NVExMS4xIDYuOCAxMi41IDYuOHExLjkgMCAzLjEgMS4yNSAxLjIgMS4yNSAxLjIgMy4yIDAgMS44LS45NzUgMy41NzVRMTQuODUgMTYuNiAxMy4wNSAxOS4zcS0xLjk1IDIuOTUtMi43NzUgNC43dC0uODI1IDMuNjVxMCAxLjYuNzUgMi4yLjc1LjYgMS43NS42IDEuNDUgMCAyLjgyNS0xLjMgMS4zNzUtMS4zIDMuNTc1LTQuMTUgMi45NS0zLjggNS41MjUtNS43NzUgMi41NzUtMS45NzUgNS42NzUtMS45NzUgMy4xNSAwIDUgMi4zMjVUMzYuNiAyNS45aDQuOXYyLjk1aC00LjlxLS40NSA3LjM1LTMuMiAxMC4wNS0yLjc1IDIuNy01LjQgMi43Wm0uMS0yLjk1cTEuODUgMCAzLjY1LTIuMjUgMS44LTIuMjUgMi03LjUtMi44LjE1LTUuNjI1IDIuMDI1VDI1LjMgMzUuOXEwIDEuMy43NSAyLjAyNS43NS43MjUgMi4wNS43MjVaIi8+PC9zdmc+";
@@ -3241,34 +3241,34 @@ type:"bool",defVal:!1,isVisible:function(k,A){A=A.editorUi.editor.graph.model;re
defVal:!1},{name:"resizable",dispName:"Resizable",type:"bool",defVal:!0},{name:"resizeWidth",dispName:"Resize Width",type:"bool",defVal:!1},{name:"resizeHeight",dispName:"Resize Height",type:"bool",defVal:!1},{name:"rotatable",dispName:"Rotatable",type:"bool",defVal:!0},{name:"cloneable",dispName:"Cloneable",type:"bool",defVal:!0},{name:"deletable",dispName:"Deletable",type:"bool",defVal:!0},{name:"treeFolding",dispName:"Tree Folding",type:"bool",defVal:!1},{name:"treeMoving",dispName:"Tree Moving",
type:"bool",defVal:!1},{name:"pointerEvents",dispName:"Pointer Events",type:"bool",defVal:!0,isVisible:function(k,A){var I=mxUtils.getValue(k.style,mxConstants.STYLE_FILLCOLOR,null);return!mxShape.forceFilledPointerEvents||A.editorUi.editor.graph.isSwimlane(k.vertices[0])||null==I||I==mxConstants.NONE||0==mxUtils.getValue(k.style,mxConstants.STYLE_FILL_OPACITY,100)||0==mxUtils.getValue(k.style,mxConstants.STYLE_OPACITY,100)||null!=k.style.pointerEvents}},{name:"moveCells",dispName:"Move Cells on Fold",
type:"bool",defVal:!1,isVisible:function(k,A){return 0<k.vertices.length&&A.editorUi.editor.graph.isContainer(k.vertices[0])}}].concat(Editor.commonProperties);Editor.defaultCsvValue='##\n## Example CSV import. Use ## for comments and # for configuration. Paste CSV below.\n## The following names are reserved and should not be used (or ignored):\n## id, tooltip, placeholder(s), link and label (see below)\n##\n#\n## Node label with placeholders and HTML.\n## Default is \'%name_of_first_column%\'.\n#\n# label: %name%<br><i style="color:gray;">%position%</i><br><a href="mailto:%email%">Email</a>\n#\n## Node style (placeholders are replaced once).\n## Default is the current style for nodes.\n#\n# style: label;image=%image%;whiteSpace=wrap;html=1;rounded=1;fillColor=%fill%;strokeColor=%stroke%;\n#\n## Parent style for nodes with child nodes (placeholders are replaced once).\n#\n# parentstyle: swimlane;whiteSpace=wrap;html=1;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeLast=0;collapsible=1;\n#\n## Style to be used for objects not in the CSV. If this is - then such objects are ignored,\n## else they are created using this as their style, eg. whiteSpace=wrap;html=1;\n#\n# unknownStyle: -\n#\n## Optional column name that contains a reference to a named style in styles.\n## Default is the current style for nodes.\n#\n# stylename: -\n#\n## JSON for named styles of the form {"name": "style", "name": "style"} where style is a cell style with\n## placeholders that are replaced once.\n#\n# styles: -\n#\n## JSON for variables in styles of the form {"name": "value", "name": "value"} where name is a string\n## that will replace a placeholder in a style.\n#\n# vars: -\n#\n## Optional column name that contains a reference to a named label in labels.\n## Default is the current label.\n#\n# labelname: -\n#\n## JSON for named labels of the form {"name": "label", "name": "label"} where label is a cell label with\n## placeholders.\n#\n# labels: -\n#\n## Uses the given column name as the identity for cells (updates existing cells).\n## Default is no identity (empty value or -).\n#\n# identity: -\n#\n## Uses the given column name as the parent reference for cells. Default is no parent (empty or -).\n## The identity above is used for resolving the reference so it must be specified.\n#\n# parent: -\n#\n## Adds a prefix to the identity of cells to make sure they do not collide with existing cells (whose\n## IDs are numbers from 0..n, sometimes with a GUID prefix in the context of realtime collaboration).\n## Default is csvimport-.\n#\n# namespace: csvimport-\n#\n## Connections between rows ("from": source colum, "to": target column).\n## Label, style and invert are optional. Defaults are \'\', current style and false.\n## If placeholders are used in the style, they are replaced with data from the source.\n## An optional placeholders can be set to target to use data from the target instead.\n## In addition to label, an optional fromlabel and tolabel can be used to name the column\n## that contains the text for the label in the edges source or target (invert ignored).\n## In addition to those, an optional source and targetlabel can be used to specify a label\n## that contains placeholders referencing the respective columns in the source or target row.\n## The label is created in the form fromlabel + sourcelabel + label + tolabel + targetlabel.\n## Additional labels can be added by using an optional labels array with entries of the\n## form {"label": string, "x": number, "y": number, "dx": number, "dy": number} where\n## x is from -1 to 1 along the edge, y is orthogonal, and dx/dy are offsets in pixels.\n## An optional placeholders with the string value "source" or "target" can be specified\n## to replace placeholders in the additional label with data from the source or target.\n## An optional data object can be specified to define the metadata for the connector.\n## The target column may contain a comma-separated list of values.\n## Multiple connect entries are allowed.\n#\n# connect: {"from": "manager", "to": "name", "invert": true, "label": "manages", \\\n# "style": "curved=1;endArrow=blockThin;endFill=1;fontSize=11;"}\n# connect: {"from": "refs", "to": "id", "style": "curved=1;fontSize=11;"}\n#\n## Node x-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# left: \n#\n## Node y-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# top: \n#\n## Node width. Possible value is a number (in px), auto or an @ sign followed by a column\n## name that contains the value for the width. Default is auto.\n#\n# width: auto\n#\n## Node height. Possible value is a number (in px), auto, width or an @ sign followed by a column\n## name that contains the value for the height. Default is auto.\n#\n# height: auto\n#\n## Collapsed state for vertices. Possible values are true or false. Default is false.\n#\n# collapsed: false\n#\n## Padding for autosize. Default is 0.\n#\n# padding: -12\n#\n## Comma-separated list of ignored columns for metadata. (These can be\n## used for connections and styles but will not be added as metadata.)\n#\n# ignore: id,image,fill,stroke,refs,manager\n#\n## Column to be renamed to link attribute (used as link).\n#\n# link: url\n#\n## Spacing between nodes. Default is 40.\n#\n# nodespacing: 40\n#\n## Spacing between levels of hierarchical layouts. Default is 100.\n#\n# levelspacing: 100\n#\n## Spacing between parallel edges. Default is 40. Use 0 to disable.\n#\n# edgespacing: 40\n#\n## Name or JSON of layout. Possible values are auto, none, verticaltree, horizontaltree,\n## verticalflow, horizontalflow, organic, circle, orgchart or a JSON string as used in\n## Layout, Apply. Default is auto.\n#\n# layout: auto\n#\n## ---- CSV below this line. First line are column names. ----\nname,position,id,location,manager,email,fill,stroke,refs,url,image\nTessa Miller,CFO,emi,Office 1,,[email protected],default,#6c8ebf,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-3-128.png\nEdward Morrison,Brand Manager,emo,Office 2,Tessa Miller,[email protected],default,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-10-3-128.png\nAlison Donovan,System Admin,rdo,Office 3,Tessa Miller,[email protected],default,#82b366,"emo,tva",https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-2-128.png\nEvan Valet,HR Director,tva,Office 4,Tessa Miller,[email protected],default,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-9-2-128.png\n';
-Editor.createRoughCanvas=function(k){var A=rough.canvas({getContext:function(){return k}});A.draw=function(I){var U=I.sets||[];I=I.options||this.getDefaultOptions();for(var O=0;O<U.length;O++){var T=U[O];switch(T.type){case "path":null!=I.stroke&&this._drawToContext(k,T,I);break;case "fillPath":this._drawToContext(k,T,I);break;case "fillSketch":this.fillSketch(k,T,I)}}};A.fillSketch=function(I,U,O){var T=k.state.strokeColor,X=k.state.strokeWidth,aa=k.state.strokeAlpha,ja=k.state.dashed,pa=O.fillWeight;
-0>pa&&(pa=O.strokeWidth/2);k.setStrokeAlpha(k.state.fillAlpha);k.setStrokeColor(O.fill||"");k.setStrokeWidth(pa);k.setDashed(!1);this._drawToContext(I,U,O);k.setDashed(ja);k.setStrokeWidth(X);k.setStrokeColor(T);k.setStrokeAlpha(aa)};A._drawToContext=function(I,U,O){I.begin();for(var T=0;T<U.ops.length;T++){var X=U.ops[T],aa=X.data;switch(X.op){case "move":I.moveTo(aa[0],aa[1]);break;case "bcurveTo":I.curveTo(aa[0],aa[1],aa[2],aa[3],aa[4],aa[5]);break;case "lineTo":I.lineTo(aa[0],aa[1])}}I.end();
-"fillPath"===U.type&&O.filled?I.fill():I.stroke()};return A};(function(){function k(T,X,aa){this.canvas=T;this.rc=X;this.shape=aa;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,k.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,k.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,k.prototype.rect);this.originalRoundrect=this.canvas.roundrect;
+Editor.createRoughCanvas=function(k){var A=rough.canvas({getContext:function(){return k}});A.draw=function(I){var U=I.sets||[];I=I.options||this.getDefaultOptions();for(var O=0;O<U.length;O++){var S=U[O];switch(S.type){case "path":null!=I.stroke&&this._drawToContext(k,S,I);break;case "fillPath":this._drawToContext(k,S,I);break;case "fillSketch":this.fillSketch(k,S,I)}}};A.fillSketch=function(I,U,O){var S=k.state.strokeColor,X=k.state.strokeWidth,aa=k.state.strokeAlpha,ja=k.state.dashed,pa=O.fillWeight;
+0>pa&&(pa=O.strokeWidth/2);k.setStrokeAlpha(k.state.fillAlpha);k.setStrokeColor(O.fill||"");k.setStrokeWidth(pa);k.setDashed(!1);this._drawToContext(I,U,O);k.setDashed(ja);k.setStrokeWidth(X);k.setStrokeColor(S);k.setStrokeAlpha(aa)};A._drawToContext=function(I,U,O){I.begin();for(var S=0;S<U.ops.length;S++){var X=U.ops[S],aa=X.data;switch(X.op){case "move":I.moveTo(aa[0],aa[1]);break;case "bcurveTo":I.curveTo(aa[0],aa[1],aa[2],aa[3],aa[4],aa[5]);break;case "lineTo":I.lineTo(aa[0],aa[1])}}I.end();
+"fillPath"===U.type&&O.filled?I.fill():I.stroke()};return A};(function(){function k(S,X,aa){this.canvas=S;this.rc=X;this.shape=aa;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,k.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,k.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,k.prototype.rect);this.originalRoundrect=this.canvas.roundrect;
this.canvas.roundrect=mxUtils.bind(this,k.prototype.roundrect);this.originalEllipse=this.canvas.ellipse;this.canvas.ellipse=mxUtils.bind(this,k.prototype.ellipse);this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,k.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,k.prototype.moveTo);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,k.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=
mxUtils.bind(this,k.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,k.prototype.arcTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,k.prototype.close);this.originalFill=this.canvas.fill;this.canvas.fill=mxUtils.bind(this,k.prototype.fill);this.originalStroke=this.canvas.stroke;this.canvas.stroke=mxUtils.bind(this,k.prototype.stroke);this.originalFillAndStroke=this.canvas.fillAndStroke;this.canvas.fillAndStroke=mxUtils.bind(this,
-k.prototype.fillAndStroke);this.path=[];this.passThrough=!1}k.prototype.moveOp="M";k.prototype.lineOp="L";k.prototype.quadOp="Q";k.prototype.curveOp="C";k.prototype.closeOp="Z";k.prototype.getStyle=function(T,X){var aa=1;if(null!=this.shape.state){var ja=this.shape.state.cell.id;if(null!=ja)for(var pa=0;pa<ja.length;pa++)aa=(aa<<5)-aa+ja.charCodeAt(pa)<<0}aa={strokeWidth:this.canvas.state.strokeWidth,seed:aa,preserveVertices:!0};ja=this.rc.getDefaultOptions();aa.stroke=T?this.canvas.state.strokeColor===
-mxConstants.NONE?"transparent":this.canvas.state.strokeColor:mxConstants.NONE;T=null;(aa.filled=X)?(aa.fill=this.canvas.state.fillColor===mxConstants.NONE?"":this.canvas.state.fillColor,T=this.canvas.state.gradientColor===mxConstants.NONE?null:this.canvas.state.gradientColor):aa.fill="";aa.bowing=mxUtils.getValue(this.shape.style,"bowing",ja.bowing);aa.hachureAngle=mxUtils.getValue(this.shape.style,"hachureAngle",ja.hachureAngle);aa.curveFitting=mxUtils.getValue(this.shape.style,"curveFitting",ja.curveFitting);
+k.prototype.fillAndStroke);this.path=[];this.passThrough=!1}k.prototype.moveOp="M";k.prototype.lineOp="L";k.prototype.quadOp="Q";k.prototype.curveOp="C";k.prototype.closeOp="Z";k.prototype.getStyle=function(S,X){var aa=1;if(null!=this.shape.state){var ja=this.shape.state.cell.id;if(null!=ja)for(var pa=0;pa<ja.length;pa++)aa=(aa<<5)-aa+ja.charCodeAt(pa)<<0}aa={strokeWidth:this.canvas.state.strokeWidth,seed:aa,preserveVertices:!0};ja=this.rc.getDefaultOptions();aa.stroke=S?this.canvas.state.strokeColor===
+mxConstants.NONE?"transparent":this.canvas.state.strokeColor:mxConstants.NONE;S=null;(aa.filled=X)?(aa.fill=this.canvas.state.fillColor===mxConstants.NONE?"":this.canvas.state.fillColor,S=this.canvas.state.gradientColor===mxConstants.NONE?null:this.canvas.state.gradientColor):aa.fill="";aa.bowing=mxUtils.getValue(this.shape.style,"bowing",ja.bowing);aa.hachureAngle=mxUtils.getValue(this.shape.style,"hachureAngle",ja.hachureAngle);aa.curveFitting=mxUtils.getValue(this.shape.style,"curveFitting",ja.curveFitting);
aa.roughness=mxUtils.getValue(this.shape.style,"jiggle",ja.roughness);aa.simplification=mxUtils.getValue(this.shape.style,"simplification",ja.simplification);aa.disableMultiStroke=mxUtils.getValue(this.shape.style,"disableMultiStroke",ja.disableMultiStroke);aa.disableMultiStrokeFill=mxUtils.getValue(this.shape.style,"disableMultiStrokeFill",ja.disableMultiStrokeFill);X=mxUtils.getValue(this.shape.style,"hachureGap",-1);aa.hachureGap="auto"==X?-1:X;aa.dashGap=mxUtils.getValue(this.shape.style,"dashGap",
X);aa.dashOffset=mxUtils.getValue(this.shape.style,"dashOffset",X);aa.zigzagOffset=mxUtils.getValue(this.shape.style,"zigzagOffset",X);X=mxUtils.getValue(this.shape.style,"fillWeight",-1);aa.fillWeight="auto"==X?-1:X;X=mxUtils.getValue(this.shape.style,"fillStyle","auto");"dots"==X&&(X="auto");"auto"==X&&(X=[mxUtils.hex2rgb("#ffffff")],null!=this.shape.state&&X.push(mxUtils.hex2rgb(this.shape.state.view.graph.shapeBackgroundColor)),Editor.isDarkMode()&&X.push(mxUtils.hex2rgb(Editor.darkColor)),X=
-null!=aa.fill&&(null!=T||0<=mxUtils.indexOf(X,mxUtils.hex2rgb(aa.fill)))?"solid":ja.fillStyle);aa.fillStyle=X;return aa};k.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};k.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};k.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var T=2;T<arguments.length;T+=2)this.lastX=arguments[T-1],this.lastY=arguments[T],
-this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};k.prototype.lineTo=function(T,X){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,T,X),this.lastX=T,this.lastY=X)};k.prototype.moveTo=function(T,X){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,T,X),this.lastX=T,this.lastY=X,this.firstX=T,this.firstY=X)};k.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,
-arguments):this.addOp(this.closeOp)};k.prototype.quadTo=function(T,X,aa,ja){this.passThrough?this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,T,X,aa,ja),this.lastX=aa,this.lastY=ja)};k.prototype.curveTo=function(T,X,aa,ja,pa,sa){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,T,X,aa,ja,pa,sa),this.lastX=pa,this.lastY=sa)};k.prototype.arcTo=function(T,X,aa,ja,pa,sa,qa){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);
-else{var wa=mxUtils.arcToCurves(this.lastX,this.lastY,T,X,aa,ja,pa,sa,qa);if(null!=wa)for(var Ba=0;Ba<wa.length;Ba+=6)this.curveTo(wa[Ba],wa[Ba+1],wa[Ba+2],wa[Ba+3],wa[Ba+4],wa[Ba+5]);this.lastX=sa;this.lastY=qa}};k.prototype.rect=function(T,X,aa,ja){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(T,X,aa,ja,this.getStyle(!0,!0)))};k.prototype.ellipse=function(T,X,aa,ja){this.passThrough?this.originalEllipse.apply(this.canvas,
-arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(T+aa/2,X+ja/2,aa,ja,this.getStyle(!0,!0)))};k.prototype.roundrect=function(T,X,aa,ja,pa,sa){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(T+pa,X),this.lineTo(T+aa-pa,X),this.quadTo(T+aa,X,T+aa,X+sa),this.lineTo(T+aa,X+ja-sa),this.quadTo(T+aa,X+ja,T+aa-pa,X+ja),this.lineTo(T+pa,X+ja),this.quadTo(T,X+ja,T,X+ja-sa),this.lineTo(T,X+sa),this.quadTo(T,X,T+pa,X))};k.prototype.drawPath=function(T){if(0<
-this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),T)}catch(aa){}this.passThrough=!1}else if(null!=this.nextShape){for(var X in T)this.nextShape.options[X]=T[X];T.stroke!=mxConstants.NONE&&null!=T.stroke||delete this.nextShape.options.stroke;T.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};k.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,
+null!=aa.fill&&(null!=S||0<=mxUtils.indexOf(X,mxUtils.hex2rgb(aa.fill)))?"solid":ja.fillStyle);aa.fillStyle=X;return aa};k.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};k.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};k.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var S=2;S<arguments.length;S+=2)this.lastX=arguments[S-1],this.lastY=arguments[S],
+this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};k.prototype.lineTo=function(S,X){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,S,X),this.lastX=S,this.lastY=X)};k.prototype.moveTo=function(S,X){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,S,X),this.lastX=S,this.lastY=X,this.firstX=S,this.firstY=X)};k.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,
+arguments):this.addOp(this.closeOp)};k.prototype.quadTo=function(S,X,aa,ja){this.passThrough?this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,S,X,aa,ja),this.lastX=aa,this.lastY=ja)};k.prototype.curveTo=function(S,X,aa,ja,pa,sa){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,S,X,aa,ja,pa,sa),this.lastX=pa,this.lastY=sa)};k.prototype.arcTo=function(S,X,aa,ja,pa,sa,qa){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);
+else{var wa=mxUtils.arcToCurves(this.lastX,this.lastY,S,X,aa,ja,pa,sa,qa);if(null!=wa)for(var Ba=0;Ba<wa.length;Ba+=6)this.curveTo(wa[Ba],wa[Ba+1],wa[Ba+2],wa[Ba+3],wa[Ba+4],wa[Ba+5]);this.lastX=sa;this.lastY=qa}};k.prototype.rect=function(S,X,aa,ja){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(S,X,aa,ja,this.getStyle(!0,!0)))};k.prototype.ellipse=function(S,X,aa,ja){this.passThrough?this.originalEllipse.apply(this.canvas,
+arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(S+aa/2,X+ja/2,aa,ja,this.getStyle(!0,!0)))};k.prototype.roundrect=function(S,X,aa,ja,pa,sa){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(S+pa,X),this.lineTo(S+aa-pa,X),this.quadTo(S+aa,X,S+aa,X+sa),this.lineTo(S+aa,X+ja-sa),this.quadTo(S+aa,X+ja,S+aa-pa,X+ja),this.lineTo(S+pa,X+ja),this.quadTo(S,X+ja,S,X+ja-sa),this.lineTo(S,X+sa),this.quadTo(S,X,S+pa,X))};k.prototype.drawPath=function(S){if(0<
+this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),S)}catch(aa){}this.passThrough=!1}else if(null!=this.nextShape){for(var X in S)this.nextShape.options[X]=S[X];S.stroke!=mxConstants.NONE&&null!=S.stroke||delete this.nextShape.options.stroke;S.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};k.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,
!1))};k.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};k.prototype.fillAndStroke=function(){this.passThrough?this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};k.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;
-this.canvas.arcTo=this.originalArcTo;this.canvas.close=this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(T){return new k(T,Editor.createRoughCanvas(T),this)};var A=mxShape.prototype.createHandJiggle;
-mxShape.prototype.createHandJiggle=function(T){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?A.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(T):this.createRoughCanvas(T)};var I=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(T,X,aa,ja,pa){null!=T.handJiggle&&T.handJiggle.passThrough||I.apply(this,arguments)};var U=mxShape.prototype.paint;mxShape.prototype.paint=
-function(T){var X=T.addTolerance,aa=!0;null!=this.style&&(aa="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=T.handJiggle&&T.handJiggle.constructor==k&&!this.outline){T.save();var ja=this.fill,pa=this.stroke;this.stroke=this.fill=null;var sa=this.configurePointerEvents,qa=T.setStrokeColor;T.setStrokeColor=function(){};var wa=T.setFillColor;T.setFillColor=function(){};aa||null==ja||(this.configurePointerEvents=function(){});T.handJiggle.passThrough=!0;U.apply(this,
-arguments);T.handJiggle.passThrough=!1;T.setFillColor=wa;T.setStrokeColor=qa;this.configurePointerEvents=sa;this.stroke=pa;this.fill=ja;T.restore();aa&&null!=ja&&(T.addTolerance=function(){})}U.apply(this,arguments);T.addTolerance=X};var O=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(T,X,aa,ja,pa,sa){null!=T.handJiggle&&T.handJiggle.constructor==k?(T.handJiggle.passThrough=!0,O.apply(this,arguments),T.handJiggle.passThrough=!1):O.apply(this,arguments)}})();Editor.fastCompress=
-function(k){return null==k||0==k.length||"undefined"===typeof pako?k:Graph.arrayBufferToString(pako.deflateRaw(k))};Editor.fastDecompress=function(k){return null==k||0==k.length||"undefined"===typeof pako?k:pako.inflateRaw(Graph.stringToArrayBuffer(atob(k)),{to:"string"})};Editor.extractGraphModel=function(k,A,I){if(null!=k&&"undefined"!==typeof pako){var U=k.ownerDocument.getElementsByTagName("div"),O=[];if(null!=U&&0<U.length)for(var T=0;T<U.length;T++)if("mxgraph"==U[T].getAttribute("class")){O.push(U[T]);
+this.canvas.arcTo=this.originalArcTo;this.canvas.close=this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(S){return new k(S,Editor.createRoughCanvas(S),this)};var A=mxShape.prototype.createHandJiggle;
+mxShape.prototype.createHandJiggle=function(S){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?A.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(S):this.createRoughCanvas(S)};var I=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(S,X,aa,ja,pa){null!=S.handJiggle&&S.handJiggle.passThrough||I.apply(this,arguments)};var U=mxShape.prototype.paint;mxShape.prototype.paint=
+function(S){var X=S.addTolerance,aa=!0;null!=this.style&&(aa="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=S.handJiggle&&S.handJiggle.constructor==k&&!this.outline){S.save();var ja=this.fill,pa=this.stroke;this.stroke=this.fill=null;var sa=this.configurePointerEvents,qa=S.setStrokeColor;S.setStrokeColor=function(){};var wa=S.setFillColor;S.setFillColor=function(){};aa||null==ja||(this.configurePointerEvents=function(){});S.handJiggle.passThrough=!0;U.apply(this,
+arguments);S.handJiggle.passThrough=!1;S.setFillColor=wa;S.setStrokeColor=qa;this.configurePointerEvents=sa;this.stroke=pa;this.fill=ja;S.restore();aa&&null!=ja&&(S.addTolerance=function(){})}U.apply(this,arguments);S.addTolerance=X};var O=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(S,X,aa,ja,pa,sa){null!=S.handJiggle&&S.handJiggle.constructor==k?(S.handJiggle.passThrough=!0,O.apply(this,arguments),S.handJiggle.passThrough=!1):O.apply(this,arguments)}})();Editor.fastCompress=
+function(k){return null==k||0==k.length||"undefined"===typeof pako?k:Graph.arrayBufferToString(pako.deflateRaw(k))};Editor.fastDecompress=function(k){return null==k||0==k.length||"undefined"===typeof pako?k:pako.inflateRaw(Graph.stringToArrayBuffer(atob(k)),{to:"string"})};Editor.extractGraphModel=function(k,A,I){if(null!=k&&"undefined"!==typeof pako){var U=k.ownerDocument.getElementsByTagName("div"),O=[];if(null!=U&&0<U.length)for(var S=0;S<U.length;S++)if("mxgraph"==U[S].getAttribute("class")){O.push(U[S]);
break}0<O.length&&(U=O[0].getAttribute("data-mxgraph"),null!=U?(O=JSON.parse(U),null!=O&&null!=O.xml&&(k=mxUtils.parseXml(O.xml),k=k.documentElement)):(O=O[0].getElementsByTagName("div"),0<O.length&&(U=mxUtils.getTextContent(O[0]),U=Graph.decompress(U,null,I),0<U.length&&(k=mxUtils.parseXml(U),k=k.documentElement))))}if(null!=k&&"svg"==k.nodeName)if(U=k.getAttribute("content"),null!=U&&"<"!=U.charAt(0)&&"%"!=U.charAt(0)&&(U=unescape(window.atob?atob(U):Base64.decode(cont,U))),null!=U&&"%"==U.charAt(0)&&
(U=decodeURIComponent(U)),null!=U&&0<U.length)k=mxUtils.parseXml(U).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==k||A||(O=null,"diagram"==k.nodeName?O=k:"mxfile"==k.nodeName&&(U=k.getElementsByTagName("diagram"),0<U.length&&(O=U[Math.max(0,Math.min(U.length-1,urlParams.page||0))])),null!=O&&(k=Editor.parseDiagramNode(O,I)));null==k||"mxGraphModel"==k.nodeName||A&&"mxfile"==k.nodeName||(k=null);return k};Editor.parseDiagramNode=function(k,A,I){Editor.validateDiagramNode(k);
var U=mxUtils.trim(mxUtils.getTextContent(k)),O=null;0<U.length?(A=Graph.decompress(U,null,A),null!=A&&0<A.length&&(O=mxUtils.parseXml(A).documentElement)):(k=mxUtils.getChildNodes(k),0<k.length&&(O=k[0],I&&(O=Editor.parseDiagramNode(O,A,!1)),A=mxUtils.createXmlDocument(),A.appendChild(A.importNode(O,!0)),O=A.documentElement));return O};Editor.getDiagramNodeXml=function(k){Editor.validateDiagramNode(k);var A=mxUtils.getNodeValue(k),I=null;0<A.length?I=Graph.decompress(A):(k=k.getElementsByTagName("mxGraphModel"),
null!=k&&0<k.length&&(I=mxUtils.getXml(k[0])));return I};Editor.validateDiagramNode=function(k){if(0==mxUtils.trim(mxUtils.getTextContent(k)).length&&0==mxUtils.getChildNodes(k).length){var A=new mxCodec,I=new mxGraphModel;k.appendChild(A.encode(I))}return k};Editor.extractGraphModelFromPdf=function(k){var A=null;k=k.substring(k.indexOf(",")+1);k=window.atob&&!mxClient.IS_SF?atob(k):Base64.decode(k,!0);if("%PDF-1.7"==k.substring(0,8)){var I=k.indexOf("EmbeddedFile");if(-1<I){var U=k.indexOf("stream",
I)+9;if(0<k.substring(I,U).indexOf("application#2Fvnd.jgraph.mxfile")){var O=k.indexOf("endstream",U-1);return pako.inflateRaw(Graph.stringToArrayBuffer(k.substring(U,O)),{to:"string"})}}for(I=k.indexOf("/ObjStm");0<I;){U=k.indexOf("stream",I)+9;O=k.indexOf("endstream",U-1);U=pako.inflateRaw(Graph.stringToArrayBuffer(k.substring(U,O)),{to:"string"});O=U.indexOf("/Subject <");if(0<O){I=U.substring(O+14,U.indexOf(">",O));if(null!=I){A=I;I=[];for(U=0;U<A.length;U+=2)O=A.substr(U,2),"00"!=O&&I.push(String.fromCharCode(parseInt(O,
-16)));A=I.join("")}break}I=k.indexOf("/ObjStm",I+1)}}if(null==A&&"%PDF-1.4"==k.substring(0,8)){I="";O=U=0;for(var T=[],X=null;O<k.length;){var aa=k.charCodeAt(O);O+=1;10!=aa&&(I+=String.fromCharCode(aa));aa=="/Subject (%3Cmxfile".charCodeAt(U)?U++:U=0;if(19==U){var ja=k.indexOf("%3C%2Fmxfile%3E",O)+15;O-=9;if(ja>O){A=k.substring(O,ja);break}}10==aa&&("endobj"==I?X=null:"obj"==I.substring(I.length-3,I.length)||"xref"==I||"trailer"==I?(X=[],T[I.split(" ")[0]]=X):null!=X&&X.push(I),I="")}}null==A&&null!=
-T&&(A=Editor.extractGraphModelFromXref(T));null!=A&&(A=decodeURIComponent(A.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return A};Editor.extractGraphModelFromXref=function(k){var A=k.trailer,I=null;null!=A&&(A=/.* \/Info (\d+) (\d+) R/g.exec(A.join("\n")),null!=A&&0<A.length&&(A=k[A[1]],null!=A&&(A=/.* \/Subject (\d+) (\d+) R/g.exec(A.join("\n")),null!=A&&0<A.length&&(k=k[A[1]],null!=k&&(k=k.join("\n"),I=k.substring(1,k.length-1))))));return I};Editor.extractParserError=function(k,A){var I=null;k=
+16)));A=I.join("")}break}I=k.indexOf("/ObjStm",I+1)}}if(null==A&&"%PDF-1.4"==k.substring(0,8)){I="";O=U=0;for(var S=[],X=null;O<k.length;){var aa=k.charCodeAt(O);O+=1;10!=aa&&(I+=String.fromCharCode(aa));aa=="/Subject (%3Cmxfile".charCodeAt(U)?U++:U=0;if(19==U){var ja=k.indexOf("%3C%2Fmxfile%3E",O)+15;O-=9;if(ja>O){A=k.substring(O,ja);break}}10==aa&&("endobj"==I?X=null:"obj"==I.substring(I.length-3,I.length)||"xref"==I||"trailer"==I?(X=[],S[I.split(" ")[0]]=X):null!=X&&X.push(I),I="")}}null==A&&null!=
+S&&(A=Editor.extractGraphModelFromXref(S));null!=A&&(A=decodeURIComponent(A.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return A};Editor.extractGraphModelFromXref=function(k){var A=k.trailer,I=null;null!=A&&(A=/.* \/Info (\d+) (\d+) R/g.exec(A.join("\n")),null!=A&&0<A.length&&(A=k[A[1]],null!=A&&(A=/.* \/Subject (\d+) (\d+) R/g.exec(A.join("\n")),null!=A&&0<A.length&&(k=k[A[1]],null!=k&&(k=k.join("\n"),I=k.substring(1,k.length-1))))));return I};Editor.extractParserError=function(k,A){var I=null;k=
null!=k?k.getElementsByTagName("parsererror"):null;null!=k&&0<k.length&&(I=A||mxResources.get("invalidChars"),A=k[0].getElementsByTagName("div"),0<A.length&&(I=mxUtils.getTextContent(A[0])));return null!=I?mxUtils.trim(I):I};Editor.addRetryToError=function(k,A){null!=k&&(k=null!=k.error?k.error:k,null==k.retry&&(k.retry=A))};Editor.mermaidToDrawio=function(k,A,I){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(k,A,I)};Editor.configure=function(k){if(null!=k){Editor.config=k;Editor.configVersion=
k.version;k.debug&&(urlParams.test="1");null!=k.defaultFonts&&(Menus.prototype.defaultFonts=k.defaultFonts);null!=k.presetColors&&(ColorDialog.prototype.presetColors=k.presetColors);null!=k.defaultColors&&(ColorDialog.prototype.defaultColors=k.defaultColors);null!=k.colorNames&&(ColorDialog.prototype.colorNames=k.colorNames);null!=k.defaultColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=k.defaultColorSchemes);null!=k.defaultEdgeLength&&(Graph.prototype.defaultEdgeLength=k.defaultEdgeLength);
null!=k.selectParentLayer&&(Graph.selectParentLayer=k.selectParentLayer);null!=k.autosaveDelay&&(DrawioFile.prototype.autosaveDelay=k.autosaveDelay);null!=k.templateFile&&(EditorUi.templateFile=k.templateFile);null!=k.styles&&(Array.isArray(k.styles)?Editor.styles=k.styles:EditorUi.debug("Configuration Error: Array expected for styles"));null!=k.globalVars&&(Editor.globalVars=k.globalVars);null!=k.compressXml&&(Editor.defaultCompressed=k.compressXml,Editor.compressXml=k.compressXml);null!=k.includeDiagram&&
@@ -3297,39 +3297,39 @@ null!=A&&0<A.length)){var I=mxUtils.parseXml(A).documentElement;return"mxfile"==
this.graph.isCssTransformsSupported();this.graph.updateCssTransform();g.apply(this,arguments)};var m=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){m.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.initMath=function(k,A){if("undefined"===typeof window.MathJax&&!mxClient.IS_IE&&!mxClient.IS_IE11){var I=function(){U=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());
else Editor.onMathJaxDone()};k=null!=k?k:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var U=null;Editor.doMathJaxRender=function(X){try{null==U?(MathJax.typesetClear([X]),MathJax.typeset([X]),I()):U!=X&&Editor.mathJaxQueue.push(X)}catch(aa){MathJax.typesetClear([X]),null!=aa.retry?(U=X,aa.retry.then(function(){MathJax.typesetPromise([X]).then(I)["catch"](function(ja){console.log("Error in MathJax.typesetPromise: "+ja.toString());I()})})["catch"](function(ja){console.log("Error in MathJax.retry: "+
ja.toString());I()})):null!=window.console&&console.log("Error in MathJax.typeset: "+aa.toString())}};window.MathJax=null!=A?A:{options:{skipHtmlTags:{"[+]":["text"]},ignoreHtmlClass:"geDisableMathJax"},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe"]},startup:{pageReady:function(){for(var X=0;X<Editor.mathJaxQueue.length;X++)Editor.doMathJaxRender(Editor.mathJaxQueue[X])}}};Editor.MathJaxRender=function(X){"undefined"!==typeof MathJax&&
-"function"===typeof MathJax.typeset?Editor.doMathJaxRender(X):Editor.mathJaxQueue.push(X)};Editor.onMathJaxDone=function(){};var O=Editor.prototype.init;Editor.prototype.init=function(){O.apply(this,arguments);var X=mxUtils.bind(this,function(aa,ja){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,X);this.graph.addListener(mxEvent.REFRESH,X)};A=document.getElementsByTagName("script");if(null!=A&&0<A.length){var T=
-document.createElement("script");T.setAttribute("type","text/javascript");T.setAttribute("src",k);A[0].parentNode.appendChild(T)}}};Editor.prototype.csvToArray=function(k){if(0<k.length){var A="",I=[""],U=0,O=!0,T;k=$jscomp.makeIterator(k);for(T=k.next();!T.done;T=k.next())T=T.value,'"'===T?(O&&T===A&&(I[U]+=T),O=!O):","===T&&O?T=I[++U]="":I[U]+=T,A=T;return I}return[]};Editor.prototype.getProxiedUrl=function(k){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&
+"function"===typeof MathJax.typeset?Editor.doMathJaxRender(X):Editor.mathJaxQueue.push(X)};Editor.onMathJaxDone=function(){};var O=Editor.prototype.init;Editor.prototype.init=function(){O.apply(this,arguments);var X=mxUtils.bind(this,function(aa,ja){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,X);this.graph.addListener(mxEvent.REFRESH,X)};A=document.getElementsByTagName("script");if(null!=A&&0<A.length){var S=
+document.createElement("script");S.setAttribute("type","text/javascript");S.setAttribute("src",k);A[0].parentNode.appendChild(S)}}};Editor.prototype.csvToArray=function(k){if(0<k.length){var A="",I=[""],U=0,O=!0,S;k=$jscomp.makeIterator(k);for(S=k.next();!S.done;S=k.next())S=S.value,'"'===S?(O&&S===A&&(I[U]+=S),O=!O):","===S&&O?S=I[++U]="":I[U]+=S,A=S;return I}return[]};Editor.prototype.getProxiedUrl=function(k){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&
!this.isCorsEnabledForUrl(k)){var A=EditorUi.isVisioFilename(k);A=/\.png$/i.test(k)||/\.pdf$/i.test(k)||A;var I="t="+(new Date).getTime();k=PROXY_URL+"?url="+encodeURIComponent(k)+"&"+I+(A?"&base64=1":"")}return k};Editor.prototype.isCorsEnabledForUrl=function(k){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||k.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));
return null!=this.corsRegExp&&this.corsRegExp.test(k)||"https://raw.githubusercontent.com/"===k.substring(0,34)||"https://fonts.googleapis.com/"===k.substring(0,29)||"https://fonts.gstatic.com/"===k.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var k=new mxUrlConverter;k.updateBaseUrl();var A=k.convert,I=this;k.convert=function(U){null!=U&&navigator.onLine&&("http://"!=U.substring(0,7)&&"https://"!=U.substring(0,8)||U.substring(0,k.baseUrl.length)==k.baseUrl||I.crossOriginImages&&
-I.isCorsEnabledForUrl(U)?"chrome-extension://"!=U.substring(0,19)&&(U=A.apply(this,arguments)):U=PROXY_URL+"?url="+encodeURIComponent(U));return U};return k};Editor.createSvgDataUri=function(k){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(k)))};Editor.prototype.convertImageToDataUri=function(k,A,I,U,O){try{var T=!0,X=window.setTimeout(mxUtils.bind(this,function(){T=!1;A(k)}),this.timeout),aa=mxUtils.bind(this,function(){null!=U?this.convertImageToDataUri(k,A,I,U,!0):A(k)});
-if(/(\.svg)$/i.test(k)&&!O)mxUtils.get(k,mxUtils.bind(this,function(pa){window.clearTimeout(X);T&&(200>pa.getStatus()||299<pa.getStatus()?aa():A(Editor.createSvgDataUri(pa.getText())))}),mxUtils.bind(this,function(){window.clearTimeout(X);T&&aa()}));else{var ja=new Image;this.crossOriginImages&&(ja.crossOrigin="anonymous");ja.onload=function(){window.clearTimeout(X);if(T)try{U=null!=U&&O?U:1;var pa=document.createElement("canvas"),sa=pa.getContext("2d");sa.scale(U,U);pa.height=ja.height*U;pa.width=
-ja.width*U;sa.drawImage(ja,0,0);A(pa.toDataURL())}catch(qa){A(k)}};ja.onerror=function(){window.clearTimeout(X);T&&(null!=I?I():A(k))};ja.src=k}}catch(pa){null!=I?I():A(k)}};Editor.prototype.convertImages=function(k,A,I,U){function O(){0<T.length?T.shift()():A(k)}null==U&&(U=this.createImageUrlConverter());var T=[],X=I||{};I=mxUtils.bind(this,function(aa,ja){aa=k.getElementsByTagName(aa);for(var pa=0;pa<aa.length;pa++)mxUtils.bind(this,function(sa){T.push(mxUtils.bind(this,function(){try{if(null!=
-sa){var qa=U.convert(sa.getAttribute(ja));if(null!=qa&&"data:"!=qa.substring(0,5)){var wa=X[qa];null==wa?this.convertImageToDataUri(qa,function(Ba){null!=Ba&&(X[qa]=Ba,sa.setAttribute(ja,Ba));O()},null,Editor.svgRasterScale):(sa.setAttribute(ja,wa),O())}else null!=qa&&sa.setAttribute(ja,qa),O()}}catch(Ba){O()}}))})(aa[pa])});I("image","xlink:href");I("img","src");O()};Editor.base64Encode=function(k){for(var A="",I=0,U=k.length,O,T,X;I<U;){O=k.charCodeAt(I++)&255;if(I==U){A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>
-2);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&3)<<4);A+="==";break}T=k.charCodeAt(I++);if(I==U){A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>2);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&3)<<4|(T&240)>>4);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&15)<<2);A+="=";break}X=k.charCodeAt(I++);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>
-2);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&3)<<4|(T&240)>>4);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&15)<<2|(X&192)>>6);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(X&63)}return A};Editor.prototype.loadUrl=function(k,A,I,U,O,T,X,aa){try{var ja=!X&&(U||/(\.png)($|\?)/i.test(k)||/(\.jpe?g)($|\?)/i.test(k)||/(\.gif)($|\?)/i.test(k)||/(\.pdf)($|\?)/i.test(k));O=null!=O?O:!0;var pa=mxUtils.bind(this,
-function(){mxUtils.get(k,mxUtils.bind(this,function(sa){if(200<=sa.getStatus()&&299>=sa.getStatus()){if(null!=A){var qa=sa.getText();if(ja){if((9==document.documentMode||10==document.documentMode)&&"undefined"!==typeof window.mxUtilsBinaryToArray){sa=mxUtilsBinaryToArray(sa.request.responseBody).toArray();qa=Array(sa.length);for(var wa=0;wa<sa.length;wa++)qa[wa]=String.fromCharCode(sa[wa]);qa=qa.join("")}T=null!=T?T:"data:image/png;base64,";qa=T+Editor.base64Encode(qa)}A(qa)}}else null!=I&&(0==sa.getStatus()?
+I.isCorsEnabledForUrl(U)?"chrome-extension://"!=U.substring(0,19)&&(U=A.apply(this,arguments)):U=PROXY_URL+"?url="+encodeURIComponent(U));return U};return k};Editor.createSvgDataUri=function(k){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(k)))};Editor.prototype.convertImageToDataUri=function(k,A,I,U,O){try{var S=!0,X=window.setTimeout(mxUtils.bind(this,function(){S=!1;A(k)}),this.timeout),aa=mxUtils.bind(this,function(){null!=U?this.convertImageToDataUri(k,A,I,U,!0):A(k)});
+if(/(\.svg)$/i.test(k)&&!O)mxUtils.get(k,mxUtils.bind(this,function(pa){window.clearTimeout(X);S&&(200>pa.getStatus()||299<pa.getStatus()?aa():A(Editor.createSvgDataUri(pa.getText())))}),mxUtils.bind(this,function(){window.clearTimeout(X);S&&aa()}));else{var ja=new Image;this.crossOriginImages&&(ja.crossOrigin="anonymous");ja.onload=function(){window.clearTimeout(X);if(S)try{U=null!=U&&O?U:1;var pa=document.createElement("canvas"),sa=pa.getContext("2d");sa.scale(U,U);pa.height=ja.height*U;pa.width=
+ja.width*U;sa.drawImage(ja,0,0);A(pa.toDataURL())}catch(qa){A(k)}};ja.onerror=function(){window.clearTimeout(X);S&&(null!=I?I():A(k))};ja.src=k}}catch(pa){null!=I?I():A(k)}};Editor.prototype.convertImages=function(k,A,I,U){function O(){0<S.length?S.shift()():A(k)}null==U&&(U=this.createImageUrlConverter());var S=[],X=I||{};I=mxUtils.bind(this,function(aa,ja){aa=k.getElementsByTagName(aa);for(var pa=0;pa<aa.length;pa++)mxUtils.bind(this,function(sa){S.push(mxUtils.bind(this,function(){try{if(null!=
+sa){var qa=U.convert(sa.getAttribute(ja));if(null!=qa&&"data:"!=qa.substring(0,5)){var wa=X[qa];null==wa?this.convertImageToDataUri(qa,function(Ba){null!=Ba&&(X[qa]=Ba,sa.setAttribute(ja,Ba));O()},null,Editor.svgRasterScale):(sa.setAttribute(ja,wa),O())}else null!=qa&&sa.setAttribute(ja,qa),O()}}catch(Ba){O()}}))})(aa[pa])});I("image","xlink:href");I("img","src");O()};Editor.base64Encode=function(k){for(var A="",I=0,U=k.length,O,S,X;I<U;){O=k.charCodeAt(I++)&255;if(I==U){A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>
+2);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&3)<<4);A+="==";break}S=k.charCodeAt(I++);if(I==U){A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>2);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&3)<<4|(S&240)>>4);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((S&15)<<2);A+="=";break}X=k.charCodeAt(I++);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>
+2);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&3)<<4|(S&240)>>4);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((S&15)<<2|(X&192)>>6);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(X&63)}return A};Editor.prototype.loadUrl=function(k,A,I,U,O,S,X,aa){try{var ja=!X&&(U||/(\.png)($|\?)/i.test(k)||/(\.jpe?g)($|\?)/i.test(k)||/(\.gif)($|\?)/i.test(k)||/(\.pdf)($|\?)/i.test(k));O=null!=O?O:!0;var pa=mxUtils.bind(this,
+function(){mxUtils.get(k,mxUtils.bind(this,function(sa){if(200<=sa.getStatus()&&299>=sa.getStatus()){if(null!=A){var qa=sa.getText();if(ja){if((9==document.documentMode||10==document.documentMode)&&"undefined"!==typeof window.mxUtilsBinaryToArray){sa=mxUtilsBinaryToArray(sa.request.responseBody).toArray();qa=Array(sa.length);for(var wa=0;wa<sa.length;wa++)qa[wa]=String.fromCharCode(sa[wa]);qa=qa.join("")}S=null!=S?S:"data:image/png;base64,";qa=S+Editor.base64Encode(qa)}A(qa)}}else null!=I&&(0==sa.getStatus()?
I({message:mxResources.get("accessDenied")},sa):404==sa.getStatus()?I({message:mxResources.get("fileNotFound"),code:sa.getStatus()},sa):I({message:this.getErrorMessage(sa)},sa))}),function(sa){null!=I&&I({message:mxResources.get("error")+" "+sa.getStatus()})},ja,this.timeout,function(){O&&null!=I&&I({code:App.ERROR_TIMEOUT,retry:pa})},aa)});pa()}catch(sa){null!=I&&I(sa)}};Editor.prototype.getErrorMessage=function(k){var A=mxResources.get("error")+" "+k.getStatus();try{var I=k.getText(),U=JSON.parse(I);
-null!=U&&null!=U.error&&null!=U.error.message&&(A=U.error.message+" ("+A+")")}catch(O){}return A};Editor.prototype.absoluteCssFonts=function(k){var A=null;if(null!=k){var I=k.split("url(");if(0<I.length){A=[I[0]];k=window.location.pathname;var U=null!=k?k.lastIndexOf("/"):-1;0<=U&&(k=k.substring(0,U+1));U=document.getElementsByTagName("base");var O=null;null!=U&&0<U.length&&(O=U[0].getAttribute("href"));for(var T=1;T<I.length;T++)if(U=I[T].indexOf(")"),0<U){var X=Editor.trimCssUrl(I[T].substring(0,
-U));this.graph.isRelativeUrl(X)&&(X=null!=O?O+X:window.location.protocol+"//"+window.location.hostname+("/"==X.charAt(0)?"":k)+X);A.push('url("'+X+'"'+I[T].substring(U))}else A.push(I[T])}else A=[k]}return null!=A?A.join(""):null};Editor.prototype.mapFontUrl=function(k,A,I){/^https?:\/\//.test(A)&&!this.isCorsEnabledForUrl(A)&&(A=PROXY_URL+"?url="+encodeURIComponent(A));I(k,A)};Editor.prototype.embedCssFonts=function(k,A){var I=k.split("url("),U=0;null==this.cachedFonts&&(this.cachedFonts={});var O=
-mxUtils.bind(this,function(){if(0==U){for(var ja=[I[0]],pa=1;pa<I.length;pa++){var sa=I[pa].indexOf(")");ja.push('url("');ja.push(this.cachedFonts[Editor.trimCssUrl(I[pa].substring(0,sa))]);ja.push('"'+I[pa].substring(sa))}A(ja.join(""))}});if(0<I.length){for(k=1;k<I.length;k++){var T=I[k].indexOf(")"),X=null,aa=I[k].indexOf("format(",T);0<aa&&(X=Editor.trimCssUrl(I[k].substring(aa+7,I[k].indexOf(")",aa))));mxUtils.bind(this,function(ja){if(null==this.cachedFonts[ja]){this.cachedFonts[ja]=ja;U++;
+null!=U&&null!=U.error&&null!=U.error.message&&(A=U.error.message+" ("+A+")")}catch(O){}return A};Editor.prototype.absoluteCssFonts=function(k){var A=null;if(null!=k){var I=k.split("url(");if(0<I.length){A=[I[0]];k=window.location.pathname;var U=null!=k?k.lastIndexOf("/"):-1;0<=U&&(k=k.substring(0,U+1));U=document.getElementsByTagName("base");var O=null;null!=U&&0<U.length&&(O=U[0].getAttribute("href"));for(var S=1;S<I.length;S++)if(U=I[S].indexOf(")"),0<U){var X=Editor.trimCssUrl(I[S].substring(0,
+U));this.graph.isRelativeUrl(X)&&(X=null!=O?O+X:window.location.protocol+"//"+window.location.hostname+("/"==X.charAt(0)?"":k)+X);A.push('url("'+X+'"'+I[S].substring(U))}else A.push(I[S])}else A=[k]}return null!=A?A.join(""):null};Editor.prototype.mapFontUrl=function(k,A,I){/^https?:\/\//.test(A)&&!this.isCorsEnabledForUrl(A)&&(A=PROXY_URL+"?url="+encodeURIComponent(A));I(k,A)};Editor.prototype.embedCssFonts=function(k,A){var I=k.split("url("),U=0;null==this.cachedFonts&&(this.cachedFonts={});var O=
+mxUtils.bind(this,function(){if(0==U){for(var ja=[I[0]],pa=1;pa<I.length;pa++){var sa=I[pa].indexOf(")");ja.push('url("');ja.push(this.cachedFonts[Editor.trimCssUrl(I[pa].substring(0,sa))]);ja.push('"'+I[pa].substring(sa))}A(ja.join(""))}});if(0<I.length){for(k=1;k<I.length;k++){var S=I[k].indexOf(")"),X=null,aa=I[k].indexOf("format(",S);0<aa&&(X=Editor.trimCssUrl(I[k].substring(aa+7,I[k].indexOf(")",aa))));mxUtils.bind(this,function(ja){if(null==this.cachedFonts[ja]){this.cachedFonts[ja]=ja;U++;
var pa="application/x-font-ttf";if("svg"==X||/(\.svg)($|\?)/i.test(ja))pa="image/svg+xml";else if("otf"==X||"embedded-opentype"==X||/(\.otf)($|\?)/i.test(ja))pa="application/x-font-opentype";else if("woff"==X||/(\.woff)($|\?)/i.test(ja))pa="application/font-woff";else if("woff2"==X||/(\.woff2)($|\?)/i.test(ja))pa="application/font-woff2";else if("eot"==X||/(\.eot)($|\?)/i.test(ja))pa="application/vnd.ms-fontobject";else if("sfnt"==X||/(\.sfnt)($|\?)/i.test(ja))pa="application/font-sfnt";this.mapFontUrl(pa,
-ja,mxUtils.bind(this,function(sa,qa){this.loadUrl(qa,mxUtils.bind(this,function(wa){this.cachedFonts[ja]=wa;U--;O()}),mxUtils.bind(this,function(wa){U--;O()}),!0,null,"data:"+sa+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(I[k].substring(0,T)),X)}O()}else A(k)};Editor.prototype.loadFonts=function(k){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(A){this.resolvedFontCss=A;null!=k&&k()})):null!=k&&k()};Editor.prototype.createGoogleFontCache=
-function(){var k={},A;for(A in Graph.fontMapping)Graph.isCssFontUrl(A)&&(k[A]=Graph.fontMapping[A]);return k};Editor.prototype.embedExtFonts=function(k){var A=this.graph.getCustomFonts();if(0<A.length){var I=[],U=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var O=mxUtils.bind(this,function(){0==U&&this.embedCssFonts(I.join(""),k)}),T=0;T<A.length;T++)mxUtils.bind(this,function(X,aa){Graph.isCssFontUrl(aa)?null==this.cachedGoogleFonts[aa]?(U++,this.loadUrl(Graph.rewriteGoogleFontUrl(aa),
-mxUtils.bind(this,function(ja){this.cachedGoogleFonts[aa]=ja;I.push(ja+"\n");U--;O()}),mxUtils.bind(this,function(ja){U--;I.push("@import url("+aa+");\n");O()}))):I.push(this.cachedGoogleFonts[aa]+"\n"):I.push('@font-face {font-family: "'+X+'";src: url("'+aa+'")}\n')})(A[T].name,A[T].url);O()}else k()};Editor.prototype.addMathCss=function(k){k=k.getElementsByTagName("defs");if(null!=k&&0<k.length)for(var A=document.getElementsByTagName("style"),I=0;I<A.length;I++){var U=mxUtils.getTextContent(A[I]);
-0>U.indexOf("mxPageSelector")&&0<U.indexOf("MathJax")&&k[0].appendChild(A[I].cloneNode(!0))}};Editor.prototype.addFontCss=function(k,A){A=null!=A?A:this.absoluteCssFonts(this.fontCss);if(null!=A){var I=mxUtils.getSvgDefs(k),U=A.split("\n");A=[];for(var O=[],T=0;T<U.length;T++)"@import"==U[T].substring(0,7)?A.push(U[T]):O.push(U[T]);k=k.ownerDocument;k=null!=k.createElementNS?k.createElementNS(mxConstants.NS_SVG,"style"):k.createElement("style");k.setAttribute("type","text/css");0<A.length&&(mxUtils.setTextContent(k,
-A.join("\n")),I.appendChild(k));0<O.length&&(k=k.cloneNode(!1),mxUtils.setTextContent(k,O.join("\n")),I.appendChild(k))}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(k,A,I){var U=mxClient.IS_FF?8192:16384;return Math.min(I,Math.min(U/k,U/A))};Editor.prototype.exportToCanvas=function(k,A,I,U,O,T,X,aa,ja,pa,sa,qa,wa,Ba,za,Ea,ra,ya){try{T=null!=T?T:!0;X=null!=X?X:!0;qa=null!=qa?qa:this.graph;wa=null!=
+ja,mxUtils.bind(this,function(sa,qa){this.loadUrl(qa,mxUtils.bind(this,function(wa){this.cachedFonts[ja]=wa;U--;O()}),mxUtils.bind(this,function(wa){U--;O()}),!0,null,"data:"+sa+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(I[k].substring(0,S)),X)}O()}else A(k)};Editor.prototype.loadFonts=function(k){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(A){this.resolvedFontCss=A;null!=k&&k()})):null!=k&&k()};Editor.prototype.createGoogleFontCache=
+function(){var k={},A;for(A in Graph.fontMapping)Graph.isCssFontUrl(A)&&(k[A]=Graph.fontMapping[A]);return k};Editor.prototype.embedExtFonts=function(k){var A=this.graph.getCustomFonts();if(0<A.length){var I=[],U=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var O=mxUtils.bind(this,function(){0==U&&this.embedCssFonts(I.join(""),k)}),S=0;S<A.length;S++)mxUtils.bind(this,function(X,aa){Graph.isCssFontUrl(aa)?null==this.cachedGoogleFonts[aa]?(U++,this.loadUrl(Graph.rewriteGoogleFontUrl(aa),
+mxUtils.bind(this,function(ja){this.cachedGoogleFonts[aa]=ja;I.push(ja+"\n");U--;O()}),mxUtils.bind(this,function(ja){U--;I.push("@import url("+aa+");\n");O()}))):I.push(this.cachedGoogleFonts[aa]+"\n"):I.push('@font-face {font-family: "'+X+'";src: url("'+aa+'")}\n')})(A[S].name,A[S].url);O()}else k()};Editor.prototype.addMathCss=function(k){k=k.getElementsByTagName("defs");if(null!=k&&0<k.length)for(var A=document.getElementsByTagName("style"),I=0;I<A.length;I++){var U=mxUtils.getTextContent(A[I]);
+0>U.indexOf("mxPageSelector")&&0<U.indexOf("MathJax")&&k[0].appendChild(A[I].cloneNode(!0))}};Editor.prototype.addFontCss=function(k,A){A=null!=A?A:this.absoluteCssFonts(this.fontCss);if(null!=A){var I=mxUtils.getSvgDefs(k),U=A.split("\n");A=[];for(var O=[],S=0;S<U.length;S++)"@import"==U[S].substring(0,7)?A.push(U[S]):O.push(U[S]);k=k.ownerDocument;k=null!=k.createElementNS?k.createElementNS(mxConstants.NS_SVG,"style"):k.createElement("style");k.setAttribute("type","text/css");0<A.length&&(mxUtils.setTextContent(k,
+A.join("\n")),I.appendChild(k));0<O.length&&(k=k.cloneNode(!1),mxUtils.setTextContent(k,O.join("\n")),I.appendChild(k))}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(k,A,I){var U=mxClient.IS_FF?8192:16384;return Math.min(I,Math.min(U/k,U/A))};Editor.prototype.exportToCanvas=function(k,A,I,U,O,S,X,aa,ja,pa,sa,qa,wa,Ba,za,Ea,ra,ya){try{S=null!=S?S:!0;X=null!=X?X:!0;qa=null!=qa?qa:this.graph;wa=null!=
wa?wa:0;var Ca=ja?null:qa.background;Ca==mxConstants.NONE&&(Ca=null);null==Ca&&(Ca=U);null==Ca&&0==ja&&(Ca="dark"==Ea&&"none"!=qa.getAdaptiveColors()?Editor.darkColor:"#ffffff");this.convertImages(qa.getSvg(null,null,wa,Ba,null,X,null,null,null,pa,null,Ea,ra,ya),mxUtils.bind(this,function(Ma){try{var Ha=new Image;Ha.onload=mxUtils.bind(this,function(){try{var Ra=function(){mxClient.IS_SF?window.setTimeout(function(){Da.drawImage(Ha,0,0);k(Za,Ma)},0):(Da.drawImage(Ha,0,0),k(Za,Ma))},Za=document.createElement("canvas"),
-La=parseInt(Ma.getAttribute("width")),$a=parseInt(Ma.getAttribute("height"));aa=null!=aa?aa:1;null!=A&&(aa=T?Math.min(1,Math.min(3*A/(4*$a),A/La)):A/La);aa=this.getMaxCanvasScale(La,$a,aa);La=Math.ceil(aa*La);$a=Math.ceil(aa*$a);Za.setAttribute("width",La);Za.setAttribute("height",$a);var Da=Za.getContext("2d");null!=Ca&&(Da.beginPath(),Da.rect(0,0,La,$a),Da.fillStyle=Ca,Da.fill());1!=aa&&Da.scale(aa,aa);if(za){var x=qa.view,M=x.scale;x.scale=1;var Q=btoa(unescape(encodeURIComponent(x.createSvgGrid(x.gridColor))));
+La=parseInt(Ma.getAttribute("width")),$a=parseInt(Ma.getAttribute("height"));aa=null!=aa?aa:1;null!=A&&(aa=S?Math.min(1,Math.min(3*A/(4*$a),A/La)):A/La);aa=this.getMaxCanvasScale(La,$a,aa);La=Math.ceil(aa*La);$a=Math.ceil(aa*$a);Za.setAttribute("width",La);Za.setAttribute("height",$a);var Da=Za.getContext("2d");null!=Ca&&(Da.beginPath(),Da.rect(0,0,La,$a),Da.fillStyle=Ca,Da.fill());1!=aa&&Da.scale(aa,aa);if(za){var x=qa.view,M=x.scale;x.scale=1;var Q=btoa(unescape(encodeURIComponent(x.createSvgGrid(x.gridColor))));
x.scale=M;Q="data:image/svg+xml;base64,"+Q;var V=qa.gridSize*x.gridSteps*aa,ia=qa.getGraphBounds(),ka=x.translate.x*M,oa=x.translate.y*M,xa=ka+(ia.x-ka)/M-wa,ta=oa+(ia.y-oa)/M-wa,ua=new Image;ua.onload=function(){try{for(var Fa=-Math.round(V-mxUtils.mod((ka-xa)*aa,V)),Na=-Math.round(V-mxUtils.mod((oa-ta)*aa,V));Fa<La;Fa+=V)for(var Wa=Na;Wa<$a;Wa+=V)Da.drawImage(ua,Fa/aa,Wa/aa);Ra()}catch(Xa){null!=O&&O(Xa)}};ua.onerror=function(Fa){null!=O&&O(Fa)};ua.src=Q}else Ra()}catch(Fa){null!=O&&O(Fa)}});Ha.onerror=
function(Ra){null!=O&&O(Ra)};pa&&this.graph.addSvgShadow(Ma);this.graph.mathEnabled&&this.addMathCss(Ma);var Aa=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(Ma,this.resolvedFontCss),Ha.src=Editor.createSvgDataUri(mxUtils.getXml(Ma))}catch(Ra){null!=O&&O(Ra)}});this.embedExtFonts(mxUtils.bind(this,function(Ra){try{null!=Ra&&this.addFontCss(Ma,Ra),this.loadFonts(Aa)}catch(Za){null!=O&&O(Za)}}))}catch(Ra){null!=O&&O(Ra)}}),I,sa)}catch(Ma){null!=O&&O(Ma)}};Editor.crcTable=
-[];for(var u=0;256>u;u++)for(var p=u,B=0;8>B;B++)p=1==(p&1)?3988292384^p>>>1:p>>>1,Editor.crcTable[u]=p;Editor.updateCRC=function(k,A,I,U){for(var O=0;O<U;O++)k=Editor.crcTable[(k^A.charCodeAt(I+O))&255]^k>>>8;return k};Editor.crc32=function(k){for(var A=-1,I=0;I<k.length;I++)A=A>>>8^Editor.crcTable[(A^k.charCodeAt(I))&255];return(A^-1)>>>0};Editor.writeGraphModelToPng=function(k,A,I,U,O){function T(sa,qa){var wa=ja;ja+=qa;return sa.substring(wa,ja)}function X(sa){sa=T(sa,4);return sa.charCodeAt(3)+
-(sa.charCodeAt(2)<<8)+(sa.charCodeAt(1)<<16)+(sa.charCodeAt(0)<<24)}function aa(sa){return String.fromCharCode(sa>>24&255,sa>>16&255,sa>>8&255,sa&255)}k=k.substring(k.indexOf(",")+1);k=window.atob?atob(k):Base64.decode(k,!0);var ja=0;if(T(k,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=O&&O();else if(T(k,4),"IHDR"!=T(k,4))null!=O&&O();else{T(k,17);O=k.substring(0,ja);do{var pa=X(k);if("IDAT"==T(k,4)){O=k.substring(0,ja-8);"pHYs"==A&&"dpi"==I?(I=Math.round(U/.0254),I=aa(I)+
-aa(I)+String.fromCharCode(1)):I=I+String.fromCharCode(0)+("zTXt"==A?String.fromCharCode(0):"")+U;U=4294967295;U=Editor.updateCRC(U,A,0,4);U=Editor.updateCRC(U,I,0,I.length);O+=aa(I.length)+A+I+aa(U^4294967295);O+=k.substring(ja-8,k.length);break}O+=k.substring(ja-8,ja-4+pa);T(k,pa);T(k,4)}while(pa);return"data:image/png;base64,"+(window.btoa?btoa(O):Base64.encode(O,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var H=ColorDialog.addRecentColor;
-ColorDialog.addRecentColor=function(k,A){H.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var S=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){S.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(k,A){var I=null;null!=k.editor.graph.getModel().getParent(A)?I=A.getId():null!=k.currentPage&&(I=k.currentPage.getId());
+[];for(var u=0;256>u;u++)for(var p=u,B=0;8>B;B++)p=1==(p&1)?3988292384^p>>>1:p>>>1,Editor.crcTable[u]=p;Editor.updateCRC=function(k,A,I,U){for(var O=0;O<U;O++)k=Editor.crcTable[(k^A.charCodeAt(I+O))&255]^k>>>8;return k};Editor.crc32=function(k){for(var A=-1,I=0;I<k.length;I++)A=A>>>8^Editor.crcTable[(A^k.charCodeAt(I))&255];return(A^-1)>>>0};Editor.writeGraphModelToPng=function(k,A,I,U,O){function S(sa,qa){var wa=ja;ja+=qa;return sa.substring(wa,ja)}function X(sa){sa=S(sa,4);return sa.charCodeAt(3)+
+(sa.charCodeAt(2)<<8)+(sa.charCodeAt(1)<<16)+(sa.charCodeAt(0)<<24)}function aa(sa){return String.fromCharCode(sa>>24&255,sa>>16&255,sa>>8&255,sa&255)}k=k.substring(k.indexOf(",")+1);k=window.atob?atob(k):Base64.decode(k,!0);var ja=0;if(S(k,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=O&&O();else if(S(k,4),"IHDR"!=S(k,4))null!=O&&O();else{S(k,17);O=k.substring(0,ja);do{var pa=X(k);if("IDAT"==S(k,4)){O=k.substring(0,ja-8);"pHYs"==A&&"dpi"==I?(I=Math.round(U/.0254),I=aa(I)+
+aa(I)+String.fromCharCode(1)):I=I+String.fromCharCode(0)+("zTXt"==A?String.fromCharCode(0):"")+U;U=4294967295;U=Editor.updateCRC(U,A,0,4);U=Editor.updateCRC(U,I,0,I.length);O+=aa(I.length)+A+I+aa(U^4294967295);O+=k.substring(ja-8,k.length);break}O+=k.substring(ja-8,ja-4+pa);S(k,pa);S(k,4)}while(pa);return"data:image/png;base64,"+(window.btoa?btoa(O):Base64.encode(O,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var H=ColorDialog.addRecentColor;
+ColorDialog.addRecentColor=function(k,A){H.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var T=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){T.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(k,A){var I=null;null!=k.editor.graph.getModel().getParent(A)?I=A.getId():null!=k.currentPage&&(I=k.currentPage.getId());
return I});if(null!=window.StyleFormatPanel){var G=Format.prototype.init;Format.prototype.init=function(){G.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var P=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?P.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(k){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||
"min"==Editor.currentTheme};var R=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(k){k=R.apply(this,arguments);var A=this.editorUi,I=A.editor.graph;if(I.isEnabled()){var U=A.getCurrentFile();null!=U&&U.isAutosaveOptional()&&k.appendChild(this.createOption(mxResources.get("autosave"),function(){return A.editor.autosave},function(X){A.editor.setAutosave(X);A.editor.autosave&&U.isModified()&&U.fileChanged()},{install:function(X){this.listener=function(){X(A.editor.autosave)};
A.editor.addListener("autosaveChanged",this.listener)},destroy:function(){A.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&I.isEnabled()&&"undefined"!==typeof MathJax){var O=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return I.mathEnabled},function(X){A.actions.get("mathematicalTypesetting").funct()},{install:function(X){this.listener=function(){X(I.mathEnabled)};A.addListener("mathEnabledChanged",this.listener)},destroy:function(){A.removeListener(this.listener)}});
-k.appendChild(O);if(!A.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp){var T=A.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting");T.style.position="absolute";T.style.left="85%";O.appendChild(T)}}return k};mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.link.prototype.customProperties=
+k.appendChild(O);if(!A.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp){var S=A.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting");S.style.position="absolute";S.style.left="85%";O.appendChild(S)}}return k};mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.link.prototype.customProperties=
[{name:"width",dispName:"Width",type:"float",min:0,defVal:4}];mxCellRenderer.defaultShapes.flexArrow.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,defVal:10},{name:"startWidth",dispName:"Start Width",type:"float",min:0,defVal:20},{name:"endWidth",dispName:"End Width",type:"float",min:0,defVal:20}];mxCellRenderer.defaultShapes.process.prototype.customProperties=[{name:"size",dispName:"Indent",type:"float",min:0,max:.5,defVal:.1}];mxCellRenderer.defaultShapes.rhombus.prototype.customProperties=
[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,max:50,defVal:mxConstants.LINE_ARCSIZE},{name:"double",dispName:"Double",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.partialRectangle.prototype.customProperties=[{name:"top",dispName:"Top Line",type:"bool",defVal:!0},{name:"bottom",dispName:"Bottom Line",type:"bool",defVal:!0},{name:"left",dispName:"Left Line",type:"bool",defVal:!0},{name:"right",dispName:"Right Line",type:"bool",defVal:!0}];mxCellRenderer.defaultShapes.parallelogram.prototype.customProperties=
[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"size",dispName:"Slope Angle",type:"float",min:0,max:1,defVal:.2,isVisible:function(k){return"0"==mxUtils.getValue(k.style,"fixedSize","0")}},{name:"size",dispName:"Slope Angle",type:"float",min:0,defVal:20,isVisible:function(k){return"1"==mxUtils.getValue(k.style,"fixedSize","0")}}];mxCellRenderer.defaultShapes.hexagon.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},
@@ -3353,30 +3353,30 @@ defVal:"none",enumList:[{val:"none",dispName:"Default"},{val:"umlActor",dispName
stroke:"#3700CC",font:"#ffffff"},{fill:"#d80073",stroke:"#A50040",font:"#ffffff"},{fill:"#a20025",stroke:"#6F0000",font:"#ffffff"}],[{fill:"#e51400",stroke:"#B20000",font:"#ffffff"},{fill:"#fa6800",stroke:"#C73500",font:"#000000"},{fill:"#f0a30a",stroke:"#BD7000",font:"#000000"},{fill:"#e3c800",stroke:"#B09500",font:"#000000"},{fill:"#6d8764",stroke:"#3A5431",font:"#ffffff"},{fill:"#647687",stroke:"#314354",font:"#ffffff"},{fill:"#76608a",stroke:"#432D57",font:"#ffffff"},{fill:"#a0522d",stroke:"#6D1F00",
font:"#ffffff"}],[{fill:"",stroke:""},{fill:mxConstants.NONE,stroke:""},{fill:"#fad7ac",stroke:"#b46504"},{fill:"#fad9d5",stroke:"#ae4132"},{fill:"#b0e3e6",stroke:"#0e8088"},{fill:"#b1ddf0",stroke:"#10739e"},{fill:"#d0cee2",stroke:"#56517e"},{fill:"#bac8d3",stroke:"#23445d"}],[{fill:"",stroke:""},{fill:"#f5f5f5",stroke:"#666666",gradient:"#b3b3b3"},{fill:"#dae8fc",stroke:"#6c8ebf",gradient:"#7ea6e0"},{fill:"#d5e8d4",stroke:"#82b366",gradient:"#97d077"},{fill:"#ffcd28",stroke:"#d79b00",gradient:"#ffa500"},
{fill:"#fff2cc",stroke:"#d6b656",gradient:"#ffd966"},{fill:"#f8cecc",stroke:"#b85450",gradient:"#ea6b66"},{fill:"#e6d0de",stroke:"#996185",gradient:"#d5739d"}],[{fill:"",stroke:""},{fill:"#eeeeee",stroke:"#36393d"},{fill:"#f9f7ed",stroke:"#36393d"},{fill:"#ffcc99",stroke:"#36393d"},{fill:"#cce5ff",stroke:"#36393d"},{fill:"#ffff88",stroke:"#36393d"},{fill:"#cdeb8b",stroke:"#36393d"},{fill:"#ffcccc",stroke:"#36393d"}]];StyleFormatPanel.prototype.customColorSchemes=null;StyleFormatPanel.prototype.findCommonProperties=
-function(k,A,I,U){if(null!=A){var O=mxUtils.bind(this,function(X){if(null!=X)if(I)for(var aa=0;aa<X.length;aa++){if("function"!==typeof X[aa].isVisible||X[aa].isVisible(U,this))A[X[aa].name]=X[aa]}else for(var ja in A){var pa=!1;for(aa=0;aa<X.length;aa++)if(X[aa].name==ja&&X[aa].type==A[ja].type){pa=!0;break}pa||delete A[ja]}}),T=this.editorUi.editor.graph.view.getState(k);null!=T&&null!=T.shape&&(T.shape.commonCustomPropAdded||(T.shape.commonCustomPropAdded=!0,T.shape.customProperties=T.shape.customProperties||
-[],T.cell.vertex?Array.prototype.push.apply(T.shape.customProperties,Editor.commonVertexProperties):Array.prototype.push.apply(T.shape.customProperties,Editor.commonEdgeProperties)),O(T.shape.customProperties));k=k.getAttribute("customProperties");if(null!=k)try{O(JSON.parse(k))}catch(X){}}};var c=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init=function(){var k=this.editorUi.getSelectionState();null!=this.defaultColorSchemes&&0<this.defaultColorSchemes.length&&"image"!=k.style.shape&&
+function(k,A,I,U){if(null!=A){var O=mxUtils.bind(this,function(X){if(null!=X)if(I)for(var aa=0;aa<X.length;aa++){if("function"!==typeof X[aa].isVisible||X[aa].isVisible(U,this))A[X[aa].name]=X[aa]}else for(var ja in A){var pa=!1;for(aa=0;aa<X.length;aa++)if(X[aa].name==ja&&X[aa].type==A[ja].type){pa=!0;break}pa||delete A[ja]}}),S=this.editorUi.editor.graph.view.getState(k);null!=S&&null!=S.shape&&(S.shape.commonCustomPropAdded||(S.shape.commonCustomPropAdded=!0,S.shape.customProperties=S.shape.customProperties||
+[],S.cell.vertex?Array.prototype.push.apply(S.shape.customProperties,Editor.commonVertexProperties):Array.prototype.push.apply(S.shape.customProperties,Editor.commonEdgeProperties)),O(S.shape.customProperties));k=k.getAttribute("customProperties");if(null!=k)try{O(JSON.parse(k))}catch(X){}}};var c=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init=function(){var k=this.editorUi.getSelectionState();null!=this.defaultColorSchemes&&0<this.defaultColorSchemes.length&&"image"!=k.style.shape&&
!k.containsLabel&&0<k.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));c.apply(this,arguments);if(Editor.enableCustomProperties){for(var A={},I=k.vertices,U=k.edges,O=0;O<I.length;O++)this.findCommonProperties(I[O],A,0==O,k);for(O=0;O<U.length;O++)this.findCommonProperties(U[O],A,0==I.length&&0==O,k);null!=Object.getOwnPropertyNames&&0<Object.getOwnPropertyNames(A).length&&this.container.appendChild(this.addProperties(this.createPanel(),A,k))}};var f=StyleFormatPanel.prototype.addStyleOps;
StyleFormatPanel.prototype.addStyleOps=function(k){var A=this.editorUi.getSelectionState();1==A.cells.length?this.addActions(k,["copyStyle","pasteStyle"]):1<=A.cells.length&&this.addActions(k,["pasteStyle","pasteData"]);f.apply(this,arguments);return k};EditorUi.prototype.propertiesCollapsed=!0;BaseFormatPanel.prototype.addProperties=function(k,A,I,U){function O(Da,x,M,Q,V){if(null!=M.valueChanged)M.valueChanged(x,V);else{wa.getModel().beginUpdate();try{V=[];var ia=[];if(null!=M.index){for(var ka=
[],oa=M.parentRow.nextSibling;oa&&oa.getAttribute("data-pName")==Da;)ka.push(oa.getAttribute("data-pValue")),oa=oa.nextSibling;M.index<ka.length?null!=Q?ka.splice(Q,1):ka[M.index]=x:ka.push(x);null!=M.size&&ka.length>M.size&&(ka=ka.slice(0,M.size));x=ka.join(",");null!=M.countProperty&&(wa.setCellStyles(M.countProperty,ka.length,wa.getSelectionCells()),V.push(M.countProperty),ia.push(ka.length))}wa.setCellStyles(Da,x,wa.getSelectionCells());V.push(Da);ia.push(x);if(null!=M.dependentProps)for(Da=0;Da<
-M.dependentProps.length;Da++){var xa=M.dependentPropsDefVal[Da],ta=M.dependentPropsVals[Da];if(ta.length>x)ta=ta.slice(0,x);else for(var ua=ta.length;ua<x;ua++)ta.push(xa);ta=ta.join(",");wa.setCellStyles(M.dependentProps[Da],ta,wa.getSelectionCells());V.push(M.dependentProps[Da]);ia.push(ta)}if("function"==typeof M.onChange)M.onChange(wa,x);qa.editorUi.fireEvent(new mxEventObject("styleChanged","keys",V,"values",ia,"cells",wa.getSelectionCells()))}finally{wa.getModel().endUpdate()}}}function T(Da,
+M.dependentProps.length;Da++){var xa=M.dependentPropsDefVal[Da],ta=M.dependentPropsVals[Da];if(ta.length>x)ta=ta.slice(0,x);else for(var ua=ta.length;ua<x;ua++)ta.push(xa);ta=ta.join(",");wa.setCellStyles(M.dependentProps[Da],ta,wa.getSelectionCells());V.push(M.dependentProps[Da]);ia.push(ta)}if("function"==typeof M.onChange)M.onChange(wa,x);qa.editorUi.fireEvent(new mxEventObject("styleChanged","keys",V,"values",ia,"cells",wa.getSelectionCells()))}finally{wa.getModel().endUpdate()}}}function S(Da,
x,M){var Q=mxUtils.getOffset(k,!0),V=mxUtils.getOffset(Da,!0);x.style.position="absolute";x.style.left=V.x-Q.x+"px";x.style.top=V.y-Q.y+"px";x.style.width=Da.offsetWidth+"px";x.style.height=Da.offsetHeight-(M?4:0)+"px";x.style.zIndex=5}function X(Da,x,M){function Q(ia){if(null==ia||ia==mxConstants.NONE)V.style.background="url('"+Dialog.prototype.noColorImage+"')";else if("default"==ia)V.style.background="";else{var ka=mxUtils.getLightDarkColor(ia);mxUtils.isLightDarkColor(ia)&&ka.light!=ka.dark?V.style.background=
"linear-gradient(to right bottom, "+ka.cssText+" 50%, "+mxUtils.invertLightDarkColor(ka).cssText+" 50.3%)":V.style.background=ia}}var V=document.createElement("div");V.style.width="32px";V.style.height="8px";V.style.margin="2px";V.style.borderStyle="solid";V.style.borderWidth="1px";Q(x);btn=mxUtils.button("",mxUtils.bind(qa,function(ia){this.editorUi.pickColor(x,function(ka){O(Da,ka,M);Q(ka)});mxEvent.consume(ia)}));btn.style.height="18px";btn.style.width="40px";btn.style.marginTop="1px";btn.style.marginLeft=
"1px";btn.className="geColorBtn";btn.appendChild(V);return btn}function aa(Da,x,M,Q,V,ia,ka){null!=x&&(x=x.split(","),Ba.push({name:Da,values:x,type:M,defVal:Q,countProperty:V,parentRow:ia,isDeletable:!0,flipBkg:ka}));btn=mxUtils.button("+",mxUtils.bind(qa,function(oa){for(var xa=ia,ta=0;null!=xa.nextSibling;)if(xa.nextSibling.getAttribute("data-pName")==Da)xa=xa.nextSibling,ta++;else break;var ua={type:M,parentRow:ia,index:ta,isDeletable:!0,defVal:Q,countProperty:V};ta=sa(Da,"",ua,0==ta%2,ka);O(Da,
Q,ua);xa.parentNode.insertBefore(ta,xa.nextSibling);mxEvent.consume(oa)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function ja(Da,x,M,Q,V,ia,ka){if(0<V){var oa=Array(V);x=null!=x?x.split(","):[];for(var xa=0;xa<V;xa++)oa[xa]=null!=x[xa]?x[xa]:null!=Q?Q:"";Ba.push({name:Da,values:oa,type:M,defVal:Q,parentRow:ia,flipBkg:ka,size:V})}return document.createElement("div")}function pa(Da,x,M){var Q=document.createElement("input");Q.type="checkbox";Q.checked="1"==
x;mxEvent.addListener(Q,"change",function(){O(Da,Q.checked?"1":"0",M)});return Q}function sa(Da,x,M,Q,V){var ia=M.dispName,ka=M.type,oa=document.createElement("tr");oa.className="gePropRow"+(V?"Dark":"")+(Q?"Alt":"")+" gePropNonHeaderRow";oa.setAttribute("data-pName",Da);oa.setAttribute("data-pValue",x);Q=!1;null!=M.index&&(oa.setAttribute("data-index",M.index),ia=(null!=ia?ia:"")+"["+M.index+"]",Q=!0);var xa=document.createElement("td");xa.className="gePropRowCell";ia=mxResources.get(ia,null,ia);
mxUtils.write(xa,ia);xa.setAttribute("title",ia);Q&&(xa.style.textAlign="right");oa.appendChild(xa);xa=document.createElement("td");xa.className="gePropRowCell";xa.setAttribute("title",null!=x?x:mxResources.get("none"));if("color"==ka)xa.appendChild(X(Da,x,M));else if("bool"==ka||"boolean"==ka)xa.appendChild(pa(Da,x,M));else if("enum"==ka){var ta=M.enumList;for(V=0;V<ta.length;V++)if(ia=ta[V],ia.val==x){mxUtils.write(xa,mxResources.get(ia.dispName,null,ia.dispName));break}mxEvent.addListener(xa,"click",
-mxUtils.bind(qa,function(){var ua=document.createElement("select"),Fa=null;T(xa,ua);for(var Na=0;Na<ta.length;Na++){var Wa=ta[Na],Xa=document.createElement("option");Xa.value=mxUtils.htmlEntities(Wa.val);mxUtils.write(Xa,mxResources.get(Wa.dispName,null,Wa.dispName));ua.appendChild(Xa);null==Wa.val&&(Xa.value="null",Fa=Xa)}ua.value=null==x&&null!=Fa?"null":x;k.appendChild(ua);mxEvent.addListener(ua,"change",function(){var ab=mxUtils.htmlEntities(ua.value);if(ua[ua.selectedIndex]==Fa||"null"==ab.value)ab=
+mxUtils.bind(qa,function(){var ua=document.createElement("select"),Fa=null;S(xa,ua);for(var Na=0;Na<ta.length;Na++){var Wa=ta[Na],Xa=document.createElement("option");Xa.value=mxUtils.htmlEntities(Wa.val);mxUtils.write(Xa,mxResources.get(Wa.dispName,null,Wa.dispName));ua.appendChild(Xa);null==Wa.val&&(Xa.value="null",Fa=Xa)}ua.value=null==x&&null!=Fa?"null":x;k.appendChild(ua);mxEvent.addListener(ua,"change",function(){var ab=mxUtils.htmlEntities(ua.value);if(ua[ua.selectedIndex]==Fa||"null"==ab.value)ab=
null;O(Da,ab,M)});ua.focus();mxEvent.addListener(ua,"blur",function(){k.removeChild(ua)})}))}else"dynamicArr"==ka?xa.appendChild(aa(Da,x,M.subType,M.subDefVal,M.countProperty,oa,V)):"staticArr"==ka?xa.appendChild(ja(Da,x,M.subType,M.subDefVal,M.size,oa,V)):"readOnly"==ka?(V=document.createElement("input"),V.setAttribute("readonly",""),V.value=x,V.style.borderWidth="0px","id"==Da?(V.style.width="190px",V.style.position="relative",V.style.right="6px",V.style.float="right",V.style.background="none",
V.style.textAlign="right",oa.firstChild.setAttribute("colspan","2"),V.setAttribute("title",x),oa.firstChild.appendChild(V)):(V.style.width="96px",xa.appendChild(V))):(xa.innerHTML=mxUtils.htmlEntities(decodeURIComponent(x)),mxEvent.addListener(xa,"click",mxUtils.bind(qa,function(){function ua(){var Na=Fa.value;Na=0==Na.length&&"string"!=ka&&"numbers"!=ka?0:Na;M.allowAuto&&(null!=Na.trim&&"auto"==Na.trim().toLowerCase()?(Na="auto",ka="string"):(Na=parseFloat(Na),Na=isNaN(Na)?0:Na));null!=M.min&&Na<
-M.min?Na=M.min:null!=M.max&&Na>M.max&&(Na=M.max);var Wa=null;try{Wa="numbers"==ka?Na.match(/\d+/g).map(Number).join(" "):encodeURIComponent(("int"==ka?parseInt(Na):Na)+"")}catch(Xa){}O(Da,Wa,M,null,Fa)}var Fa=document.createElement("input");T(xa,Fa,!0);Fa.value=decodeURIComponent(x);Fa.className="gePropEditor";"int"!=ka&&"float"!=ka||M.allowAuto||(Fa.type="number",Fa.step="int"==ka?"1":"any",null!=M.min&&(Fa.min=parseFloat(M.min)),null!=M.max&&(Fa.max=parseFloat(M.max)));k.appendChild(Fa);mxEvent.addListener(Fa,
+M.min?Na=M.min:null!=M.max&&Na>M.max&&(Na=M.max);var Wa=null;try{Wa="numbers"==ka?Na.match(/\d+/g).map(Number).join(" "):encodeURIComponent(("int"==ka?parseInt(Na):Na)+"")}catch(Xa){}O(Da,Wa,M,null,Fa)}var Fa=document.createElement("input");S(xa,Fa,!0);Fa.value=decodeURIComponent(x);Fa.className="gePropEditor";"int"!=ka&&"float"!=ka||M.allowAuto||(Fa.type="number",Fa.step="int"==ka?"1":"any",null!=M.min&&(Fa.min=parseFloat(M.min)),null!=M.max&&(Fa.max=parseFloat(M.max)));k.appendChild(Fa);mxEvent.addListener(Fa,
"keypress",function(Na){13==Na.keyCode&&ua()});Fa.focus();mxEvent.addListener(Fa,"blur",function(){ua()})})));M.isDeletable&&(V=mxUtils.button("-",mxUtils.bind(qa,function(ua){O(Da,"",M,M.index);mxEvent.consume(ua)})),V.style.height="16px",V.style.width="25px",V.style.float="right",V.className="geColorBtn",xa.appendChild(V));oa.appendChild(xa);return oa}var qa=this,wa=this.editorUi.editor.graph,Ba=[];k.style.position="relative";k.style.padding="0";var za=document.createElement("table");za.className=
"geProperties";za.style.whiteSpace="nowrap";za.style.width="100%";var Ea=document.createElement("tr");Ea.className="gePropHeader";var ra=document.createElement("th");ra.className="gePropHeaderCell";ra.style.paddingLeft="16px";ra.style.backgroundRepeat="no-repeat";ra.style.backgroundPosition="-2px 50%";ra.style.backgroundSize="20px";mxUtils.write(ra,mxResources.get("property"));Ea.style.cursor="pointer";var ya=function(){var Da=za.querySelectorAll(".gePropNonHeaderRow");if(qa.editorUi.propertiesCollapsed){ra.style.backgroundImage=
"url('"+Editor.arrowRightImage+"')";var x="none";for(var M=k.childNodes.length-1;0<=M;M--)try{var Q=k.childNodes[M],V=Q.nodeName.toUpperCase();"INPUT"!=V&&"SELECT"!=V||k.removeChild(Q)}catch(ia){}}else ra.style.backgroundImage="url('"+Editor.arrowDownImage+"')",x="";for(M=0;M<Da.length;M++)Da[M].style.display=x};mxEvent.addListener(Ea,"click",function(){qa.editorUi.propertiesCollapsed=!qa.editorUi.propertiesCollapsed;ya()});Ea.appendChild(ra);var Ca=document.createElement("th");Ca.className="gePropHeaderCell";
Ca.style.paddingLeft="4px";mxUtils.write(Ca,mxResources.get("value"));Ea.appendChild(Ca);za.appendChild(Ea);var Ma=Ca=!1;Ea=null;1==I.vertices.length&&0==I.edges.length?Ea=I.vertices[0].id:0==I.vertices.length&&1==I.edges.length&&(Ea=I.edges[0].id);null==Ea||U||za.appendChild(sa("id",mxUtils.htmlEntities(Ea),{dispName:"id",type:"readOnly"},!0,!1));for(var Ha in A)if(U=A[Ha],"function"!=typeof U.isVisible||U.isVisible(I,this)){var Aa=null!=U.getValue?U.getValue():null!=I.style[Ha]?mxUtils.htmlEntities(I.style[Ha]+
""):null!=U.getDefaultValue?U.getDefaultValue(I,this):U.defVal;if("separator"==U.type)Ma=!Ma;else{if("staticArr"==U.type)U.size=parseInt(I.style[U.sizeProperty]||A[U.sizeProperty].defVal)||0;else if(null!=U.dependentProps){var Ra=U.dependentProps,Za=[],La=[];for(Ea=0;Ea<Ra.length;Ea++){var $a=I.style[Ra[Ea]];La.push(A[Ra[Ea]].subDefVal);Za.push(null!=$a?$a.split(","):[])}U.dependentPropsDefVal=La;U.dependentPropsVals=Za}za.appendChild(sa(Ha,Aa,U,Ca,Ma));Ca=!Ca}}for(Ea=0;Ea<Ba.length;Ea++)for(U=Ba[Ea],
A=U.parentRow,I=0;I<U.values.length;I++)Ha=sa(U.name,U.values[I],{type:U.type,parentRow:U.parentRow,isDeletable:U.isDeletable,index:I,defVal:U.defVal,countProperty:U.countProperty,size:U.size},0==I%2,U.flipBkg),A.parentNode.insertBefore(Ha,A.nextSibling),A=Ha;k.appendChild(za);ya();return k};StyleFormatPanel.prototype.addStyles=function(k){if(null!=this.defaultColorSchemes){var A=function(Ba){mxEvent.addListener(Ba,"mouseenter",function(){Ba.style.opacity="1"});mxEvent.addListener(Ba,"mouseleave",
-function(){Ba.style.opacity="0.5"})},I=this.editorUi,U=I.editor.graph,O=document.createElement("div");O.style.whiteSpace="nowrap";O.style.paddingLeft="24px";O.style.paddingRight="20px";k.style.paddingLeft="16px";k.style.paddingBottom="6px";k.style.position="relative";k.appendChild(O);var T=document.createElement("div");T.style.whiteSpace="nowrap";T.style.position="relative";T.style.textAlign="center";T.style.width="210px";for(var X=[],aa=0;aa<this.defaultColorSchemes.length;aa++){var ja=document.createElement("div");
-ja.style.display="inline-block";ja.style.width="6px";ja.style.height="6px";ja.style.marginLeft="4px";ja.style.marginRight="3px";ja.style.borderRadius="3px";ja.style.cursor="pointer";ja.style.background="transparent";ja.style.border="1px solid #b5b6b7";mxUtils.bind(this,function(Ba){mxEvent.addListener(ja,"click",mxUtils.bind(this,function(){pa(Ba)}))})(aa);X.push(ja);T.appendChild(ja)}var pa=mxUtils.bind(this,function(Ba){null!=X[Ba]&&(null!=this.format.currentScheme&&null!=X[this.format.currentScheme]&&
+function(){Ba.style.opacity="0.5"})},I=this.editorUi,U=I.editor.graph,O=document.createElement("div");O.style.whiteSpace="nowrap";O.style.paddingLeft="24px";O.style.paddingRight="20px";k.style.paddingLeft="16px";k.style.paddingBottom="6px";k.style.position="relative";k.appendChild(O);var S=document.createElement("div");S.style.whiteSpace="nowrap";S.style.position="relative";S.style.textAlign="center";S.style.width="210px";for(var X=[],aa=0;aa<this.defaultColorSchemes.length;aa++){var ja=document.createElement("div");
+ja.style.display="inline-block";ja.style.width="6px";ja.style.height="6px";ja.style.marginLeft="4px";ja.style.marginRight="3px";ja.style.borderRadius="3px";ja.style.cursor="pointer";ja.style.background="transparent";ja.style.border="1px solid #b5b6b7";mxUtils.bind(this,function(Ba){mxEvent.addListener(ja,"click",mxUtils.bind(this,function(){pa(Ba)}))})(aa);X.push(ja);S.appendChild(ja)}var pa=mxUtils.bind(this,function(Ba){null!=X[Ba]&&(null!=this.format.currentScheme&&null!=X[this.format.currentScheme]&&
(X[this.format.currentScheme].style.background="transparent"),this.format.currentScheme=Ba,sa(this.defaultColorSchemes[this.format.currentScheme]),X[this.format.currentScheme].style.background="#84d7ff")}),sa=mxUtils.bind(this,function(Ba){var za=mxUtils.clone(U.defaultVertexStyle);za[mxConstants.STYLE_STROKECOLOR]=null!=za[mxConstants.STYLE_STROKECOLOR]?za[mxConstants.STYLE_STROKECOLOR]:"default";za[mxConstants.STYLE_FILLCOLOR]=null!=za[mxConstants.STYLE_FILLCOLOR]?za[mxConstants.STYLE_FILLCOLOR]:
"default";za[mxConstants.STYLE_FONTCOLOR]=null!=za[mxConstants.STYLE_FONTCOLOR]?za[mxConstants.STYLE_FONTCOLOR]:"default";U.replaceDefaultColors(new mxCell,za);var Ea=mxUtils.bind(this,function(ya){var Ca=mxUtils.button("",mxUtils.bind(this,function(Aa){U.getModel().beginUpdate();try{for(var Ra=I.getSelectionState().cells,Za=0;Za<Ra.length;Za++){var La=U.getModel().getStyle(Ra[Za]);null!=ya?(mxEvent.isShiftDown(Aa)||(La=""==ya.fill||null==ya.fill?mxUtils.setStyle(La,mxConstants.STYLE_FILLCOLOR,null):
mxUtils.setStyle(La,mxConstants.STYLE_FILLCOLOR,ya.fill),La=""==ya.gradient||null==ya.gradient?mxUtils.setStyle(La,mxConstants.STYLE_GRADIENTCOLOR,null):mxUtils.setStyle(La,mxConstants.STYLE_GRADIENTCOLOR,ya.gradient),mxEvent.isControlDown(Aa)||mxClient.IS_MAC&&mxEvent.isMetaDown(Aa)||!U.getModel().isVertex(Ra[Za])||(La=""==ya.font||null==ya.font?mxUtils.setStyle(La,mxConstants.STYLE_FONTCOLOR,null):mxUtils.setStyle(La,mxConstants.STYLE_FONTCOLOR,ya.font))),mxEvent.isAltDown(Aa)||(La=""==ya.stroke||
@@ -3387,21 +3387,21 @@ Ma+" "+Ha.cssText,Ca.style.borderRightColor=Ha.light,Ca.style.borderBottomColor=
mxUtils.getLightDarkColor(ya.fill).light+") 0px, light-dark(transparent, "+mxUtils.getLightDarkColor(ya.gradient).light+") 100%)",Ma.style.clipPath="polygon(0 100%, 100% 0, 100% 100%)",Ma.style.backgroundColor="transparent",O.appendChild(Ma),Ma.style.marginLeft="-42px",mxEvent.addListener(Ma,"click",function(){Ca.click()}))});O.innerText="";if(null!=Ba)for(var ra=0;ra<Ba.length;ra++)0<ra&&0==mxUtils.mod(ra,4)&&mxUtils.br(O),Ea(Ba[ra])});null==this.format.currentScheme?pa(Math.min(X.length-1,Editor.isDarkMode()?
1:"1"==urlParams.sketch?5:0)):pa(this.format.currentScheme);aa=10>=this.defaultColorSchemes.length?28:8;var qa=document.createElement("div");qa.style.cssText="position:absolute;left:10px;top:8px;bottom:"+aa+"px;width:20px;margin:4px;opacity:0.5;background-repeat:no-repeat;background-position:center center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAIVBMVEUAAAB2dnZ4eHh3d3d1dXVxcXF2dnZ2dnZ2dnZxcXF2dnYmb3w1AAAACnRSTlMAfCTkhhvb7cQSPH2JPgAAADRJREFUCNdjwACMAmBKaiGYs2oJmLPKAZ3DabU8AMRTXpUKopislqFyVzCAuUZgikkBZjoAcMYLnp53P/UAAAAASUVORK5CYII=);";
mxEvent.addListener(qa,"click",mxUtils.bind(this,function(){pa(mxUtils.mod(this.format.currentScheme-1,this.defaultColorSchemes.length))}));var wa=document.createElement("div");wa.style.cssText="position:absolute;left:202px;top:8px;bottom:"+aa+"px;width:20px;margin:4px;opacity:0.5;background-repeat:no-repeat;background-position:center center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAIVBMVEUAAAB2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnYBuwCcAAAACnRSTlMAfCTkhhvb7cQSPH2JPgAAADZJREFUCNdjQAOMAmBKaiGY8loF5rKswsZlrVo8AUiFrTICcbIWK8A5DF1gDoMymMPApIAwHwCS0Qx/U7qCBQAAAABJRU5ErkJggg==);";
-1<this.defaultColorSchemes.length&&(k.appendChild(qa),k.appendChild(wa));mxEvent.addListener(wa,"click",mxUtils.bind(this,function(){pa(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));A(qa);A(wa);sa(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&k.appendChild(T)}return k}}Graph.fontMapping={"https://fonts.googleapis.com/css?family=Architects+Daughter":'@font-face { font-family: "Architects Daughter"; src: url('+STYLE_PATH+'/fonts/ArchitectsDaughter-Regular.ttf) format("truetype"); }'};
+1<this.defaultColorSchemes.length&&(k.appendChild(qa),k.appendChild(wa));mxEvent.addListener(wa,"click",mxUtils.bind(this,function(){pa(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));A(qa);A(wa);sa(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&k.appendChild(S)}return k}}Graph.fontMapping={"https://fonts.googleapis.com/css?family=Architects+Daughter":'@font-face { font-family: "Architects Daughter"; src: url('+STYLE_PATH+'/fonts/ArchitectsDaughter-Regular.ttf) format("truetype"); }'};
Graph.customFontElements={};Graph.isGoogleFontUrl=function(k){return k.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS||k.substring(0,Editor.GOOGLE_FONTS_CSS2.length)==Editor.GOOGLE_FONTS_CSS2};Graph.isCssFontUrl=function(k){return Graph.isGoogleFontUrl(k)};Graph.rewriteGoogleFontUrl=function(k){null!=k&&k.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS&&(k=Editor.GOOGLE_FONTS_CSS2+k.substring(Editor.GOOGLE_FONTS.length)+":wght@400;500");return k};Graph.createFontElement=
function(k,A){var I=Graph.fontMapping[A];null==I&&Graph.isCssFontUrl(A)?(k=document.createElement("link"),k.setAttribute("rel","stylesheet"),k.setAttribute("type","text/css"),k.setAttribute("charset","UTF-8"),k.setAttribute("href",Graph.rewriteGoogleFontUrl(A))):(null==I&&(I='@font-face {\nfont-family: "'+k+'";\nsrc: url("'+A+'");\n}'),k=document.createElement("style"),mxUtils.write(k,I));return k};Graph.addRecentCustomFont=function(k,A){};Graph.addFont=function(k,A,I){if(null!=k&&0<k.length&&null!=
A&&0<A.length){var U=k.toLowerCase();if("helvetica"!=U&&"arial"!=k&&"sans-serif"!=U){var O=Graph.customFontElements[U];null!=O&&O.url!=A&&(O.elt.parentNode.removeChild(O.elt),O=null);null==O?(O=A,"http:"==A.substring(0,5)&&(O=PROXY_URL+"?url="+encodeURIComponent(A)),O={name:k,url:A,elt:Graph.createFontElement(k,O)},Graph.customFontElements[U]=O,A=document.getElementsByTagName("head")[0],null!=I&&("link"==O.elt.nodeName.toLowerCase()?(O.elt.onload=I,O.elt.onerror=I):I()),null!=A&&A.appendChild(O.elt)):
null!=I&&I()}else null!=I&&I()}else null!=I&&I();return k};Graph.getFontUrl=function(k,A){k=Graph.customFontElements[k.toLowerCase()];null!=k&&(A=k.url);return A};Graph.processFontAttributes=function(k){k=k.getElementsByTagName("*");for(var A=0;A<k.length;A++){var I=k[A].getAttribute("data-font-src");if(null!=I){var U="FONT"==k[A].nodeName?k[A].getAttribute("face"):k[A].style.fontFamily;null!=U&&Graph.addFont(U,I)}}};Graph.processFontStyle=function(k){if(null!=k){var A=mxUtils.getValue(k,"fontSource",
null);if(null!=A){var I=mxUtils.getValue(k,mxConstants.STYLE_FONTFAMILY,null);if(null!=I)try{Graph.addFont(I,decodeURIComponent(A))}catch(U){}}}return k};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible="0"!=urlParams.pv;Graph.prototype.shadowId="drawio-drop-shadow";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur=
"1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var l=Graph.prototype.init;Graph.prototype.init=function(){function k(O){A=O}l.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var A=null;mxEvent.addListener(this.container,"mouseenter",k);mxEvent.addListener(this.container,"mousemove",k);mxEvent.addListener(this.container,"mouseleave",function(O){A=null});this.isMouseInsertPoint=function(){return null!=
-A};var I=this.getInsertPoint;this.getInsertPoint=function(){return null!=A?this.getPointForEvent(A):I.apply(this,arguments)};var U=this.layoutManager.getLayout;this.layoutManager.getLayout=function(O){var T=this.graph.getCellStyle(O);if(null!=T&&"rack"==T.childLayout){var X=new mxStackLayout(this.graph,!1);X.gridSize=null!=T.rackUnitSize?parseFloat(T.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;X.marginLeft=T.marginLeft||0;X.marginRight=T.marginRight||0;X.marginTop=
-T.marginTop||0;X.marginBottom=T.marginBottom||0;X.allowGaps=T.allowGaps||0;X.horizontal="1"==mxUtils.getValue(T,"horizontalRack","0");X.resizeParent=!1;X.fill=!0;return X}return U.apply(this,arguments)};this.updateGlobalUrlVariables()};var t=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(k,A){return Graph.processFontStyle(t.apply(this,arguments))};var z=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(k,A,I,U,O,T,X,aa,ja,
-pa,sa,qa){z.apply(this,arguments);Graph.processFontAttributes(qa)};var C=mxText.prototype.redraw;mxText.prototype.redraw=function(){C.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(k,A,I,U){function O(){for(var Ea=aa.getSelectionCells(),ra=[],ya=0;ya<Ea.length;ya++)aa.isCellVisible(Ea[ya])&&ra.push(Ea[ya]);aa.setSelectionCells(ra)}function T(Ea){aa.setHiddenTags(Ea?[]:ja.slice());O();aa.refresh()}
+A};var I=this.getInsertPoint;this.getInsertPoint=function(){return null!=A?this.getPointForEvent(A):I.apply(this,arguments)};var U=this.layoutManager.getLayout;this.layoutManager.getLayout=function(O){var S=this.graph.getCellStyle(O);if(null!=S&&"rack"==S.childLayout){var X=new mxStackLayout(this.graph,!1);X.gridSize=null!=S.rackUnitSize?parseFloat(S.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;X.marginLeft=S.marginLeft||0;X.marginRight=S.marginRight||0;X.marginTop=
+S.marginTop||0;X.marginBottom=S.marginBottom||0;X.allowGaps=S.allowGaps||0;X.horizontal="1"==mxUtils.getValue(S,"horizontalRack","0");X.resizeParent=!1;X.fill=!0;return X}return U.apply(this,arguments)};this.updateGlobalUrlVariables()};var t=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(k,A){return Graph.processFontStyle(t.apply(this,arguments))};var z=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(k,A,I,U,O,S,X,aa,ja,
+pa,sa,qa){z.apply(this,arguments);Graph.processFontAttributes(qa)};var C=mxText.prototype.redraw;mxText.prototype.redraw=function(){C.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(k,A,I,U){function O(){for(var Ea=aa.getSelectionCells(),ra=[],ya=0;ya<Ea.length;ya++)aa.isCellVisible(Ea[ya])&&ra.push(Ea[ya]);aa.setSelectionCells(ra)}function S(Ea){aa.setHiddenTags(Ea?[]:ja.slice());O();aa.refresh()}
function X(Ea,ra){sa.innerText="";if(0<Ea.length){var ya=document.createElement("table");ya.setAttribute("cellpadding","2");ya.style.boxSizing="border-box";ya.style.tableLayout="fixed";ya.style.width="100%";var Ca=document.createElement("tbody");if(null!=Ea&&0<Ea.length)for(var Ma=0;Ma<Ea.length;Ma++)(function(Ha){function Aa(){var x=aa.getCellsForTags([Ha],null,null,!0);aa.isEnabled()?aa.setSelectionCells(x):aa.highlightCells(x,null,null,70)}var Ra=0>mxUtils.indexOf(aa.hiddenTags,Ha),Za=document.createElement("tr"),
La=document.createElement("td");La.style.align="center";La.style.width="16px";var $a=document.createElement("img");$a.setAttribute("src",Ra?Editor.visibleImage:Editor.hiddenImage);$a.setAttribute("title",mxResources.get(Ra?"hideIt":"show",[Ha]));mxUtils.setOpacity($a,Ra?75:25);$a.className="geAdaptiveAsset";$a.style.verticalAlign="middle";$a.style.cursor="pointer";$a.style.width="16px";if(A||Editor.isDarkMode())$a.style.filter="invert(100%)";La.appendChild($a);mxEvent.addListener($a,"click",function(x){mxEvent.isShiftDown(x)?
-T(0<=mxUtils.indexOf(aa.hiddenTags,Ha)):(aa.toggleHiddenTag(Ha),O(),aa.refresh());mxEvent.consume(x)});Za.appendChild(La);La=document.createElement("td");La.style.align="center";La.style.width="16px";$a=document.createElement("img");$a.setAttribute("src",Editor.selectImage);$a.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity($a,Ra?75:25);$a.className="geAdaptiveAsset";$a.style.verticalAlign="middle";$a.style.cursor="pointer";$a.style.width="16px";if(A||Editor.isDarkMode())$a.style.filter=
-"invert(100%)";mxEvent.addListener($a,"click",function(x){T(!0);Aa();mxEvent.consume(x)});La.appendChild($a);Za.appendChild(La);La=document.createElement("td");La.style.overflow="hidden";La.style.whiteSpace="nowrap";La.style.textOverflow="ellipsis";La.style.verticalAlign="middle";La.style.cursor="pointer";La.setAttribute("title",Ha);a=document.createElement("a");mxUtils.write(a,Ha);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,Ra?100:40);La.appendChild(a);mxEvent.addListener(La,
-"click",function(x){if(mxEvent.isShiftDown(x))T(!0),Aa();else if(Ra&&0<aa.hiddenTags.length)T(!0);else{var M=ja.slice(),Q=mxUtils.indexOf(M,Ha);M.splice(Q,1);aa.setHiddenTags(M);O();aa.refresh()}mxEvent.consume(x)});Za.appendChild(La);if(aa.isEnabled()){La=document.createElement("td");La.style.verticalAlign="middle";La.style.textAlign="center";La.style.width="18px";if(null==ra){La.style.align="center";La.style.width="16px";$a=document.createElement("img");$a.setAttribute("src",Editor.trashImage);
+S(0<=mxUtils.indexOf(aa.hiddenTags,Ha)):(aa.toggleHiddenTag(Ha),O(),aa.refresh());mxEvent.consume(x)});Za.appendChild(La);La=document.createElement("td");La.style.align="center";La.style.width="16px";$a=document.createElement("img");$a.setAttribute("src",Editor.selectImage);$a.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity($a,Ra?75:25);$a.className="geAdaptiveAsset";$a.style.verticalAlign="middle";$a.style.cursor="pointer";$a.style.width="16px";if(A||Editor.isDarkMode())$a.style.filter=
+"invert(100%)";mxEvent.addListener($a,"click",function(x){S(!0);Aa();mxEvent.consume(x)});La.appendChild($a);Za.appendChild(La);La=document.createElement("td");La.style.overflow="hidden";La.style.whiteSpace="nowrap";La.style.textOverflow="ellipsis";La.style.verticalAlign="middle";La.style.cursor="pointer";La.setAttribute("title",Ha);a=document.createElement("a");mxUtils.write(a,Ha);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,Ra?100:40);La.appendChild(a);mxEvent.addListener(La,
+"click",function(x){if(mxEvent.isShiftDown(x))S(!0),Aa();else if(Ra&&0<aa.hiddenTags.length)S(!0);else{var M=ja.slice(),Q=mxUtils.indexOf(M,Ha);M.splice(Q,1);aa.setHiddenTags(M);O();aa.refresh()}mxEvent.consume(x)});Za.appendChild(La);if(aa.isEnabled()){La=document.createElement("td");La.style.verticalAlign="middle";La.style.textAlign="center";La.style.width="18px";if(null==ra){La.style.align="center";La.style.width="16px";$a=document.createElement("img");$a.setAttribute("src",Editor.trashImage);
$a.setAttribute("title",mxResources.get("removeIt",[Ha]));mxUtils.setOpacity($a,Ra?75:25);$a.className="geAdaptiveAsset";$a.style.verticalAlign="middle";$a.style.cursor="pointer";$a.style.width="16px";if(A||Editor.isDarkMode())$a.style.filter="invert(100%)";mxEvent.addListener($a,"click",function(x){var M=mxUtils.indexOf(ja,Ha);0<=M&&ja.splice(M,1);aa.removeTagsForCells(aa.model.getDescendants(aa.model.getRoot()),[Ha]);aa.refresh();mxEvent.consume(x)});La.appendChild($a)}else{var Da=document.createElement("input");
Da.setAttribute("type","checkbox");Da.style.margin="0px";Da.defaultChecked=null!=ra&&0<=mxUtils.indexOf(ra,Ha);Da.checked=Da.defaultChecked;Da.style.background="transparent";Da.setAttribute("title",mxResources.get(Da.defaultChecked?"removeIt":"add",[Ha]));mxEvent.addListener(Da,"change",function(x){Da.checked?aa.addTagsForCells(aa.getSelectionCells(),[Ha]):aa.removeTagsForCells(aa.getSelectionCells(),[Ha]);mxEvent.consume(x)});La.appendChild(Da)}Za.appendChild(La)}Ca.appendChild(Za)})(Ea[Ma]);ya.appendChild(Ca);
sa.appendChild(ya)}}var aa=this,ja=aa.hiddenTags.slice(),pa=document.createElement("div");pa.style.userSelect="none";pa.style.overflow="hidden";pa.style.padding="10px";pa.style.height="100%";var sa=document.createElement("div");sa.style.position="absolute";sa.style.boxSizing="border-box";sa.style.userSelect="none";sa.style.overflow="auto";sa.style.padding="3px";sa.style.left="0px";sa.style.right="0px";sa.style.top="0px";sa.style.bottom="0px";pa.appendChild(sa);aa.addListener(mxEvent.ROOT,function(){ja=
@@ -3409,9 +3409,9 @@ aa.hiddenTags.slice()});var qa=mxUtils.bind(this,function(Ea,ra){if(k()){Ea=aa.g
"flex";wa.style.bottom="0px";wa.style.left="0px";wa.style.right="0px";wa.style.height="26px";wa.style.overflow="hidden";wa.style.padding="3px 4px 4px 4px";wa.style.borderWidth="1px 0px 0px 0px";wa.style.borderStyle="solid";wa.style.whiteSpace="nowrap";if(aa.isEnabled()){sa.style.bottom="34px";var Ba=document.createElement("a");Ba.className="geToolbarButton geAdaptiveAsset geToggleItem";Ba.style.width="16px";Ba.style.height="18px";Ba.style.backgroundPosition="center center";Ba.style.backgroundRepeat=
"no-repeat";Ba.style.backgroundSize="20px";Ba.style.margin="0 2px";Ba.style.display="inline-block";Ba.style.cursor="pointer";var za=Ba.cloneNode(!1);za.style.backgroundImage="url("+Editor.visibleImage+")";za.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(za,"click",function(Ea){aa.setHiddenTags([]);mxEvent.isShiftDown(Ea)||(ja=aa.hiddenTags.slice());O();aa.refresh();mxEvent.consume(Ea)});wa.appendChild(za);null!=I&&(Ba=Ba.cloneNode(!1),Ba.style.backgroundImage="url("+Editor.plusImage+
")",Ba.setAttribute("title",mxResources.get("add")),mxEvent.addListener(Ba,"click",function(Ea){I(ja,function(ra){ja=ra;qa()});mxEvent.consume(Ea)}),wa.appendChild(Ba));pa.appendChild(wa)}null!=U&&wa.appendChild(U);return{div:pa,refresh:qa}};Graph.prototype.getCustomFonts=function(){var k=this.extFonts;k=null!=k?k.slice():[];for(var A in Graph.customFontElements){var I=Graph.customFontElements[A];k.push({name:I.name,url:I.url})}return k};Graph.prototype.setFont=function(k,A){Graph.addFont(k,A);var I=
-Editor.guid();document.execCommand("fontname",!1,I);for(var U=this.cellEditor.textarea.getElementsByTagName("font"),O=!1,T=0;T<U.length;T++)U[T].getAttribute("face")==I&&(O=!0,U[T].setAttribute("face",k),null!=A?U[T].setAttribute("data-font-src",A):U[T].removeAttribute("data-font-src"));O||document.execCommand("fontname",!1,k)};var F=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return F.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=
+Editor.guid();document.execCommand("fontname",!1,I);for(var U=this.cellEditor.textarea.getElementsByTagName("font"),O=!1,S=0;S<U.length;S++)U[S].getAttribute("face")==I&&(O=!0,U[S].setAttribute("face",k),null!=A?U[S].setAttribute("data-font-src",A):U[S].removeAttribute("data-font-src"));O||document.execCommand("fontname",!1,k)};var F=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return F.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=
function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var k=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=k)for(var A in k)this.globalVars[A]=k[A]}catch(I){null!=window.console&&console.log("Error in vars URL parameter: "+I)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var N=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=
-function(k){var A=N.apply(this,arguments);null==A&&null!=this.globalVars&&(A=this.globalVars[k]);return A};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var k=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(k.ownerDocument)).decode(k)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var K=Graph.prototype.getSvg;Graph.prototype.getSvg=function(k,A,I,U,O,T,X,aa,ja,pa,sa,qa,wa,Ba,za,Ea){var ra=K.apply(this,
+function(k){var A=N.apply(this,arguments);null==A&&null!=this.globalVars&&(A=this.globalVars[k]);return A};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var k=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(k.ownerDocument)).decode(k)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var K=Graph.prototype.getSvg;Graph.prototype.getSvg=function(k,A,I,U,O,S,X,aa,ja,pa,sa,qa,wa,Ba,za,Ea){var ra=K.apply(this,
arguments);if(null!=qa){var ya=ra.getAttribute("style");null==ya&&(ya="");qa="auto"==qa||"none"==this.getAdaptiveColors()?"none"==this.getAdaptiveColors()?"light":"light dark":qa;ra.setAttribute("style",ya+(" color-scheme: "+qa+";"))}var Ca=this.getCustomFonts();if(sa&&0<Ca.length){var Ma=ra.ownerDocument;ya=null!=Ma.createElementNS?Ma.createElementNS(mxConstants.NS_SVG,"style"):Ma.createElement("style");null!=Ma.setAttributeNS?ya.setAttributeNS("type","text/css"):ya.setAttribute("type","text/css");
for(var Ha="",Aa="",Ra=0;Ra<Ca.length;Ra++){var Za=Ca[Ra].name,La=Ca[Ra].url;Graph.isCssFontUrl(La)?Ha+="@import url("+Graph.rewriteGoogleFontUrl(La)+");\n":Aa+='@font-face {\nfont-family: "'+Za+'";\nsrc: url("'+La+'");\n}\n'}ya.appendChild(Ma.createTextNode(Ha+Aa));ra.getElementsByTagName("defs")[0].appendChild(ya)}Editor.replaceSvgDataUris&&null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&EditorUi.embedSvgImages(ra);this.mathEnabled&&(document.body.appendChild(ra),Editor.MathJaxRender(ra),
ra.parentNode.removeChild(ra),ya=ra.ownerDocument.getElementById("MJX-SVG-styles"),null!=ya&&ra.getElementsByTagName("defs")[0].appendChild(ya.cloneNode(!0)));return ra};var J=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(k){J.apply(this,arguments);null!=k.secondLabel&&(k.secondLabel.destroy(),k.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(k){return[k.shape,k.text,k.secondLabel,k.control]};var da=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=
@@ -3419,28 +3419,28 @@ function(){da.apply(this,arguments);this.enumerationState=0};var ea=mxGraphView.
"</div>"};mxGraphView.prototype.redrawEnumerationState=function(k){var A="1"==mxUtils.getValue(k.style,"enumerate",0);A&&null==k.secondLabel?(k.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),k.secondLabel.size=12,k.secondLabel.state=k,k.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(k,k.secondLabel)):A||null==k.secondLabel||(k.secondLabel.destroy(),k.secondLabel=null);A=k.secondLabel;if(null!=A){var I=k.view.scale,
U=this.createEnumerationValue(k);k=this.graph.model.isVertex(k.cell)?new mxRectangle(k.x+k.width-4*I,k.y+4*I,0,0):mxRectangle.fromPoint(k.view.getPoint(k));A.bounds.equals(k)&&A.value==U&&A.scale==I||(A.bounds=k,A.value=U,A.scale=I,A.redraw())}};var ca=Graph.prototype.refresh;Graph.prototype.refresh=function(){this.refreshBackgroundImage();ca.apply(this,arguments)};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),
this.view.validateBackgroundImage())};var W=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){W.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=function(k,A){"data:action/json,"==k.substring(0,17)&&(k=JSON.parse(k.substring(17)),null!=k.actions&&this.executeCustomActions(k.actions,null,A))};Graph.prototype.executeCustomActions=function(k,A,I){if(this.executingCustomActions)this.stoppingCustomActions=!0,null!=this.pendingWaitThread&&
-window.clearTimeout(this.pendingWaitThread),null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions"));else{this.executingCustomActions=!0;var U=!1,O=0,T=0,X=mxUtils.bind(this,function(){U||(U=!0,this.model.beginUpdate())}),aa=mxUtils.bind(this,function(){U&&(U=!1,this.model.endUpdate())}),ja=mxUtils.bind(this,function(){0<O&&O--;0==O&&pa()}),pa=mxUtils.bind(this,function(){if(T<k.length){var sa=this.stoppingCustomActions,qa=
-k[T++],wa=[];if(null!=qa.open)if(aa(),this.isCustomLink(qa.open)){if(!this.customLinkClicked(qa.open,I))return}else this.openLink(qa.open);null==qa.wait||sa||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;ja()}),O++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=qa.wait?parseInt(qa.wait):1E3),aa());null!=qa.opacity&&null!=qa.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(qa.opacity,
+window.clearTimeout(this.pendingWaitThread),null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions"));else{this.executingCustomActions=!0;var U=!1,O=0,S=0,X=mxUtils.bind(this,function(){U||(U=!0,this.model.beginUpdate())}),aa=mxUtils.bind(this,function(){U&&(U=!1,this.model.endUpdate())}),ja=mxUtils.bind(this,function(){0<O&&O--;0==O&&pa()}),pa=mxUtils.bind(this,function(){if(S<k.length){var sa=this.stoppingCustomActions,qa=
+k[S++],wa=[];if(null!=qa.open)if(aa(),this.isCustomLink(qa.open)){if(!this.customLinkClicked(qa.open,I))return}else this.openLink(qa.open);null==qa.wait||sa||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;ja()}),O++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=qa.wait?parseInt(qa.wait):1E3),aa());null!=qa.opacity&&null!=qa.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(qa.opacity,
!0)),qa.opacity.value);null!=qa.fadeIn&&(O++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(qa.fadeIn,!0)),0,1,ja,sa?0:qa.fadeIn.delay));null!=qa.fadeOut&&(O++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(qa.fadeOut,!0)),1,0,ja,sa?0:qa.fadeOut.delay));null!=qa.wipeIn&&(wa=wa.concat(this.createWipeAnimations(this.getCellsForAction(qa.wipeIn,!0),!0)));null!=qa.wipeOut&&(wa=wa.concat(this.createWipeAnimations(this.getCellsForAction(qa.wipeOut,!0),!1)));null!=qa.toggle&&
(X(),this.toggleCells(this.getCellsForAction(qa.toggle,!0)));if(null!=qa.show){X();var Ba=this.getCellsForAction(qa.show,!0);Graph.setOpacityForNodes(this.getNodesForCells(Ba),1);this.setCellsVisible(Ba,!0)}null!=qa.hide&&(X(),Ba=this.getCellsForAction(qa.hide,!0),Graph.setOpacityForNodes(this.getNodesForCells(Ba),0),this.setCellsVisible(Ba,!1));null!=qa.toggleStyle&&null!=qa.toggleStyle.key&&(X(),this.toggleCellStyles(qa.toggleStyle.key,null!=qa.toggleStyle.defaultValue?qa.toggleStyle.defaultValue:
"0",this.getCellsForAction(qa.toggleStyle,!0)));null!=qa.style&&null!=qa.style.key&&(X(),this.setCellStyles(qa.style.key,qa.style.value,this.getCellsForAction(qa.style,!0)));Ba=[];null!=qa.select&&this.isEnabled()&&(Ba=this.getCellsForAction(qa.select),this.setSelectionCells(Ba));null!=qa.highlight&&(Ba=this.getCellsForAction(qa.highlight),this.highlightCells(Ba,qa.highlight.color,qa.highlight.duration,qa.highlight.opacity));null!=qa.scroll&&(Ba=this.getCellsForAction(qa.scroll));null!=qa.viewbox&&
this.fitWindow(qa.viewbox,qa.viewbox.border);0<Ba.length&&this.scrollCellToVisible(Ba[0]);null!=I&&null!=qa.explore&&Graph.exploreFromCell(this,I,qa.explore);if(null!=qa.tags){if(null!=qa.tags.toggle){var za=qa.tags.toggle;0==za.length&&(za=this.getAllTags());for(Ba=0;Ba<za.length;Ba++)this.toggleHiddenTag(za[Ba])}za=null;null!=qa.tags.hidden&&(null==za&&(za=[]),za=za.concat(qa.tags.hidden));if(null!=qa.tags.visible){null==za&&(za=[]);var Ea=this.getAllTags();for(Ba=0;Ba<Ea.length;Ba++)0>mxUtils.indexOf(qa.tags.visible,
Ea[Ba])&&0>mxUtils.indexOf(za,Ea[Ba])&&za.push(Ea[Ba])}null!=za&&this.setHiddenTags(za);this.refresh()}0<wa.length&&(O++,this.executeAnimations(wa,ja,sa?1:qa.steps,sa?0:qa.delay));0==O?pa():aa()}else this.stoppingCustomActions=this.executingCustomActions=!1,aa(),null!=A&&A()});pa()}};Graph.prototype.doUpdateCustomLinksForCell=function(k,A){var I=this.getLinkForCell(A);null!=I&&"data:action/json,"==I.substring(0,17)&&this.setLinkForCell(A,this.updateCustomLink(k,I));if(this.isHtmlLabel(A)){var U=document.createElement("div");
-U.innerHTML=Graph.sanitizeHtml(this.getLabel(A));for(var O=U.getElementsByTagName("a"),T=!1,X=0;X<O.length;X++)I=O[X].getAttribute("href"),null!=I&&"data:action/json,"==I.substring(0,17)&&(O[X].setAttribute("href",this.updateCustomLink(k,I)),T=!0);T&&this.labelChanged(A,U.innerHTML)}};Graph.prototype.updateCustomLink=function(k,A){if("data:action/json,"==A.substring(0,17))try{var I=JSON.parse(A.substring(17));null!=I.actions&&(this.updateCustomLinkActions(k,I.actions),A="data:action/json,"+JSON.stringify(I))}catch(U){}return A};
-Graph.prototype.updateCustomLinkActions=function(k,A){for(var I=0;I<A.length;I++){var U=A[I],O;for(O in U)this.updateCustomLinkAction(k,U[O],"cells"),this.updateCustomLinkAction(k,U[O],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(k,A,I){if(null!=A&&null!=A[I]){for(var U=[],O=0;O<A[I].length;O++)if("*"==A[I][O])U.push(A[I][O]);else{var T=k[A[I][O]];null!=T?""!=T&&U.push(T):U.push(A[I][O])}A[I]=U}};Graph.prototype.getCellsForAction=function(k,A){A=this.getCellsById(k.cells).concat(this.getCellsForTags(k.tags,
-null,A));if(null!=k.excludeCells){for(var I=[],U=0;U<A.length;U++)0>k.excludeCells.indexOf(A[U].id)&&I.push(A[U]);A=I}return A};Graph.prototype.getCellsById=function(k){var A=[];if(null!=k)for(var I=0;I<k.length;I++)if("*"==k[I]){var U=this.model.getRoot();A=A.concat(this.model.filterDescendants(function(T){return T!=U},U))}else{var O=this.model.getCell(k[I]);null!=O&&A.push(O)}return A};var ba=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(k){return ba.apply(this,arguments)&&
+U.innerHTML=Graph.sanitizeHtml(this.getLabel(A));for(var O=U.getElementsByTagName("a"),S=!1,X=0;X<O.length;X++)I=O[X].getAttribute("href"),null!=I&&"data:action/json,"==I.substring(0,17)&&(O[X].setAttribute("href",this.updateCustomLink(k,I)),S=!0);S&&this.labelChanged(A,U.innerHTML)}};Graph.prototype.updateCustomLink=function(k,A){if("data:action/json,"==A.substring(0,17))try{var I=JSON.parse(A.substring(17));null!=I.actions&&(this.updateCustomLinkActions(k,I.actions),A="data:action/json,"+JSON.stringify(I))}catch(U){}return A};
+Graph.prototype.updateCustomLinkActions=function(k,A){for(var I=0;I<A.length;I++){var U=A[I],O;for(O in U)this.updateCustomLinkAction(k,U[O],"cells"),this.updateCustomLinkAction(k,U[O],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(k,A,I){if(null!=A&&null!=A[I]){for(var U=[],O=0;O<A[I].length;O++)if("*"==A[I][O])U.push(A[I][O]);else{var S=k[A[I][O]];null!=S?""!=S&&U.push(S):U.push(A[I][O])}A[I]=U}};Graph.prototype.getCellsForAction=function(k,A){A=this.getCellsById(k.cells).concat(this.getCellsForTags(k.tags,
+null,A));if(null!=k.excludeCells){for(var I=[],U=0;U<A.length;U++)0>k.excludeCells.indexOf(A[U].id)&&I.push(A[U]);A=I}return A};Graph.prototype.getCellsById=function(k){var A=[];if(null!=k)for(var I=0;I<k.length;I++)if("*"==k[I]){var U=this.model.getRoot();A=A.concat(this.model.filterDescendants(function(S){return S!=U},U))}else{var O=this.model.getCell(k[I]);null!=O&&A.push(O)}return A};var ba=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(k){return ba.apply(this,arguments)&&
!this.isAllTagsHidden(this.getTagsForCell(k))};Graph.prototype.setHiddenTags=function(k){this.hiddenTags=k;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(k){var A=mxUtils.indexOf(this.hiddenTags,k);0>A?this.hiddenTags.push(k):0<=A&&this.hiddenTags.splice(A,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(k){if(null==k||0==k.length||0==this.hiddenTags.length)return!1;k=k.split(" ");if(k.length>this.hiddenTags.length)return!1;
-for(var A=0;A<k.length;A++)if(0>mxUtils.indexOf(this.hiddenTags,k[A]))return!1;return!0};Graph.prototype.getCellsForTags=function(k,A,I,U){var O=[];if(null!=k){A=null!=A?A:this.model.getDescendants(this.model.getRoot());for(var T=0,X={},aa=0;aa<k.length;aa++)0<k[aa].length&&(X[k[aa]]=!0,T++);for(aa=0;aa<A.length;aa++)if(I&&this.model.getParent(A[aa])==this.model.root||this.model.isVertex(A[aa])||this.model.isEdge(A[aa])){var ja=this.getTagsForCell(A[aa]),pa=!1;if(0<ja.length&&(ja=ja.split(" "),ja.length>=
-k.length)){for(var sa=pa=0;sa<ja.length&&pa<T;sa++)null!=X[ja[sa]]&&pa++;pa=pa==T}pa&&(1!=U||this.isCellVisible(A[aa]))&&O.push(A[aa])}}return O};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(k){for(var A=null,I=[],U=0;U<k.length;U++){var O=this.getTagsForCell(k[U]);I=[];if(0<O.length){O=O.split(" ");for(var T={},X=0;X<O.length;X++)if(null==A||null!=A[O[X]])T[O[X]]=!0,I.push(O[X]);
-A=T}else return[]}return I};Graph.prototype.getTagsForCells=function(k){for(var A=[],I={},U=0;U<k.length;U++){var O=this.getTagsForCell(k[U]);if(0<O.length){O=O.split(" ");for(var T=0;T<O.length;T++)null==I[O[T]]&&(I[O[T]]=!0,A.push(O[T]))}}return A};Graph.prototype.getTagsForCell=function(k){return this.getAttributeForCell(k,"tags","")};Graph.prototype.addTagsForCells=function(k,A){if(0<k.length&&0<A.length){this.model.beginUpdate();try{for(var I=0;I<k.length;I++){for(var U=this.getTagsForCell(k[I]),
-O=U.split(" "),T=!1,X=0;X<A.length;X++){var aa=mxUtils.trim(A[X]);""!=aa&&0>mxUtils.indexOf(O,aa)&&(U=0<U.length?U+" "+aa:aa,T=!0)}T&&this.setAttributeForCell(k[I],"tags",U)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(k,A){if(0<k.length&&0<A.length){this.model.beginUpdate();try{for(var I=0;I<k.length;I++){var U=this.getTagsForCell(k[I]);if(0<U.length){for(var O=U.split(" "),T=!1,X=0;X<A.length;X++){var aa=mxUtils.indexOf(O,A[X]);0<=aa&&(O.splice(aa,1),T=!0)}T&&this.setAttributeForCell(k[I],
+for(var A=0;A<k.length;A++)if(0>mxUtils.indexOf(this.hiddenTags,k[A]))return!1;return!0};Graph.prototype.getCellsForTags=function(k,A,I,U){var O=[];if(null!=k){A=null!=A?A:this.model.getDescendants(this.model.getRoot());for(var S=0,X={},aa=0;aa<k.length;aa++)0<k[aa].length&&(X[k[aa]]=!0,S++);for(aa=0;aa<A.length;aa++)if(I&&this.model.getParent(A[aa])==this.model.root||this.model.isVertex(A[aa])||this.model.isEdge(A[aa])){var ja=this.getTagsForCell(A[aa]),pa=!1;if(0<ja.length&&(ja=ja.split(" "),ja.length>=
+k.length)){for(var sa=pa=0;sa<ja.length&&pa<S;sa++)null!=X[ja[sa]]&&pa++;pa=pa==S}pa&&(1!=U||this.isCellVisible(A[aa]))&&O.push(A[aa])}}return O};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(k){for(var A=null,I=[],U=0;U<k.length;U++){var O=this.getTagsForCell(k[U]);I=[];if(0<O.length){O=O.split(" ");for(var S={},X=0;X<O.length;X++)if(null==A||null!=A[O[X]])S[O[X]]=!0,I.push(O[X]);
+A=S}else return[]}return I};Graph.prototype.getTagsForCells=function(k){for(var A=[],I={},U=0;U<k.length;U++){var O=this.getTagsForCell(k[U]);if(0<O.length){O=O.split(" ");for(var S=0;S<O.length;S++)null==I[O[S]]&&(I[O[S]]=!0,A.push(O[S]))}}return A};Graph.prototype.getTagsForCell=function(k){return this.getAttributeForCell(k,"tags","")};Graph.prototype.addTagsForCells=function(k,A){if(0<k.length&&0<A.length){this.model.beginUpdate();try{for(var I=0;I<k.length;I++){for(var U=this.getTagsForCell(k[I]),
+O=U.split(" "),S=!1,X=0;X<A.length;X++){var aa=mxUtils.trim(A[X]);""!=aa&&0>mxUtils.indexOf(O,aa)&&(U=0<U.length?U+" "+aa:aa,S=!0)}S&&this.setAttributeForCell(k[I],"tags",U)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(k,A){if(0<k.length&&0<A.length){this.model.beginUpdate();try{for(var I=0;I<k.length;I++){var U=this.getTagsForCell(k[I]);if(0<U.length){for(var O=U.split(" "),S=!1,X=0;X<A.length;X++){var aa=mxUtils.indexOf(O,A[X]);0<=aa&&(O.splice(aa,1),S=!0)}S&&this.setAttributeForCell(k[I],
"tags",O.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(k){this.model.beginUpdate();try{for(var A=0;A<k.length;A++)this.model.setVisible(k[A],!this.model.isVisible(k[A]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(k,A){this.model.beginUpdate();try{for(var I=0;I<k.length;I++)this.model.setVisible(k[I],A)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=function(k,A,I,U){for(var O=0;O<k.length;O++)this.highlightCell(k[O],
-A,I,U)};Graph.prototype.highlightCell=function(k,A,I,U,O){A=null!=A?A:mxConstants.DEFAULT_VALID_COLOR;I=null!=I?I:1E3;k=this.view.getState(k);var T=null;null!=k&&(O=null!=O?O:4,O=Math.max(O+1,mxUtils.getValue(k.style,mxConstants.STYLE_STROKEWIDTH,1)+O),T=new mxCellHighlight(this,A,O,!1),null!=U&&(T.opacity=U),T.highlight(k),window.setTimeout(function(){null!=T.shape&&(mxUtils.setPrefixedStyle(T.shape.node.style,"transition","all 1200ms ease-in-out"),T.shape.node.style.opacity=0);window.setTimeout(function(){T.destroy()},
-1200)},I));return T};Graph.prototype.addSvgShadow=function(k,A,I,U){I=null!=I?I:!1;U=null!=U?U:!0;var O=k.ownerDocument,T=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"filter"):O.createElement("filter");T.setAttribute("id",this.shadowId);var X=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feGaussianBlur"):O.createElement("feGaussianBlur");X.setAttribute("in","SourceAlpha");X.setAttribute("stdDeviation",this.svgShadowBlur);X.setAttribute("result","blur");T.appendChild(X);
-X=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feOffset"):O.createElement("feOffset");X.setAttribute("in","blur");X.setAttribute("dx",this.svgShadowSize);X.setAttribute("dy",this.svgShadowSize);X.setAttribute("result","offsetBlur");T.appendChild(X);X=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feFlood"):O.createElement("feFlood");X.setAttribute("flood-color",this.svgShadowColor);X.setAttribute("flood-opacity",this.svgShadowOpacity);X.setAttribute("result","offsetColor");
-T.appendChild(X);X=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feComposite"):O.createElement("feComposite");X.setAttribute("in","offsetColor");X.setAttribute("in2","offsetBlur");X.setAttribute("operator","in");X.setAttribute("result","offsetBlur");T.appendChild(X);X=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feBlend"):O.createElement("feBlend");X.setAttribute("in","SourceGraphic");X.setAttribute("in2","offsetBlur");T.appendChild(X);X=k.getElementsByTagName("defs");
-0==X.length?(O=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"defs"):O.createElement("defs"),null!=k.firstChild?k.insertBefore(O,k.firstChild):k.appendChild(O)):O=X[0];O.appendChild(T);I||(A=null!=A?A:k.getElementsByTagName("g")[0],null!=A&&(A.setAttribute("filter","url(#"+this.shadowId+")"),!isNaN(parseInt(k.getAttribute("width")))&&U&&(k.setAttribute("width",parseInt(k.getAttribute("width"))+6),k.setAttribute("height",parseInt(k.getAttribute("height"))+6),A=k.getAttribute("viewBox"),
-null!=A&&0<A.length&&(A=A.split(" "),3<A.length&&(w=parseFloat(A[2])+6,h=parseFloat(A[3])+6,k.setAttribute("viewBox",A[0]+" "+A[1]+" "+w+" "+h))))));return T};Graph.prototype.setShadowVisible=function(k,A){mxClient.IS_SVG&&!mxClient.IS_SF&&(A=null!=A?A:!0,(this.shadowVisible=k)?this.view.getDrawPane().setAttribute("filter","url(#"+this.shadowId+")"):this.view.getDrawPane().removeAttribute("filter"),A&&this.fireEvent(new mxEventObject("shadowVisibleChanged")))};Graph.prototype.checkDefaultParent=function(){null==
+A,I,U)};Graph.prototype.highlightCell=function(k,A,I,U,O){A=null!=A?A:mxConstants.DEFAULT_VALID_COLOR;I=null!=I?I:1E3;k=this.view.getState(k);var S=null;null!=k&&(O=null!=O?O:4,O=Math.max(O+1,mxUtils.getValue(k.style,mxConstants.STYLE_STROKEWIDTH,1)+O),S=new mxCellHighlight(this,A,O,!1),null!=U&&(S.opacity=U),S.highlight(k),window.setTimeout(function(){null!=S.shape&&(mxUtils.setPrefixedStyle(S.shape.node.style,"transition","all 1200ms ease-in-out"),S.shape.node.style.opacity=0);window.setTimeout(function(){S.destroy()},
+1200)},I));return S};Graph.prototype.addSvgShadow=function(k,A,I,U){I=null!=I?I:!1;U=null!=U?U:!0;var O=k.ownerDocument,S=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"filter"):O.createElement("filter");S.setAttribute("id",this.shadowId);var X=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feGaussianBlur"):O.createElement("feGaussianBlur");X.setAttribute("in","SourceAlpha");X.setAttribute("stdDeviation",this.svgShadowBlur);X.setAttribute("result","blur");S.appendChild(X);
+X=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feOffset"):O.createElement("feOffset");X.setAttribute("in","blur");X.setAttribute("dx",this.svgShadowSize);X.setAttribute("dy",this.svgShadowSize);X.setAttribute("result","offsetBlur");S.appendChild(X);X=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feFlood"):O.createElement("feFlood");X.setAttribute("flood-color",this.svgShadowColor);X.setAttribute("flood-opacity",this.svgShadowOpacity);X.setAttribute("result","offsetColor");
+S.appendChild(X);X=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feComposite"):O.createElement("feComposite");X.setAttribute("in","offsetColor");X.setAttribute("in2","offsetBlur");X.setAttribute("operator","in");X.setAttribute("result","offsetBlur");S.appendChild(X);X=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feBlend"):O.createElement("feBlend");X.setAttribute("in","SourceGraphic");X.setAttribute("in2","offsetBlur");S.appendChild(X);X=k.getElementsByTagName("defs");
+0==X.length?(O=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"defs"):O.createElement("defs"),null!=k.firstChild?k.insertBefore(O,k.firstChild):k.appendChild(O)):O=X[0];O.appendChild(S);I||(A=null!=A?A:k.getElementsByTagName("g")[0],null!=A&&(A.setAttribute("filter","url(#"+this.shadowId+")"),!isNaN(parseInt(k.getAttribute("width")))&&U&&(k.setAttribute("width",parseInt(k.getAttribute("width"))+6),k.setAttribute("height",parseInt(k.getAttribute("height"))+6),A=k.getAttribute("viewBox"),
+null!=A&&0<A.length&&(A=A.split(" "),3<A.length&&(w=parseFloat(A[2])+6,h=parseFloat(A[3])+6,k.setAttribute("viewBox",A[0]+" "+A[1]+" "+w+" "+h))))));return S};Graph.prototype.setShadowVisible=function(k,A){mxClient.IS_SVG&&!mxClient.IS_SF&&(A=null!=A?A:!0,(this.shadowVisible=k)?this.view.getDrawPane().setAttribute("filter","url(#"+this.shadowId+")"):this.view.getDrawPane().removeAttribute("filter"),A&&this.fireEvent(new mxEventObject("shadowVisibleChanged")))};Graph.prototype.checkDefaultParent=function(){null==
this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer())};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var k=this.model.getChildCount(this.model.root),A=0;do var I=this.model.getChildAt(this.model.root,A);while(A++<k&&"1"==mxUtils.getValue(this.getCellStyle(I),"locked","0"));null!=I&&this.setDefaultParent(I)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=
[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.bpmn2=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.c4=[SHAPES_PATH+"/mxC4.js"];mxStencilRegistry.libraries.cisco19=[SHAPES_PATH+"/mxCisco19.js",STENCIL_PATH+
"/cisco19.xml"];mxStencilRegistry.libraries.cisco_safe=[SHAPES_PATH+"/mxCiscoSafe.js",STENCIL_PATH+"/cisco_safe/architecture.xml",STENCIL_PATH+"/cisco_safe/business_icons.xml",STENCIL_PATH+"/cisco_safe/capability.xml",STENCIL_PATH+"/cisco_safe/design.xml",STENCIL_PATH+"/cisco_safe/iot_things_icons.xml",STENCIL_PATH+"/cisco_safe/people_places_things_icons.xml",STENCIL_PATH+"/cisco_safe/security_icons.xml",STENCIL_PATH+"/cisco_safe/technology_icons.xml",STENCIL_PATH+"/cisco_safe/threat.xml"];mxStencilRegistry.libraries.dfd=
@@ -3453,33 +3453,33 @@ this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultPar
"/ibm.xml"];mxStencilRegistry.libraries.ibmcloud=[STENCIL_PATH+"/ibm_cloud.xml"];mxStencilRegistry.libraries.cabinets=[SHAPES_PATH+"/mxCabinets.js",STENCIL_PATH+"/cabinets.xml"];mxStencilRegistry.libraries.archimate=[SHAPES_PATH+"/mxArchiMate.js"];mxStencilRegistry.libraries.archimate3=[SHAPES_PATH+"/mxArchiMate3.js"];mxStencilRegistry.libraries.sysml=[SHAPES_PATH+"/mxSysML.js"];mxStencilRegistry.libraries.eip=[SHAPES_PATH+"/mxEip.js",STENCIL_PATH+"/eip.xml"];mxStencilRegistry.libraries.networks=
[SHAPES_PATH+"/mxNetworks.js",STENCIL_PATH+"/networks.xml"];mxStencilRegistry.libraries.aws3d=[SHAPES_PATH+"/mxAWS3D.js",STENCIL_PATH+"/aws3d.xml"];mxStencilRegistry.libraries.aws4=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.aws4b=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.uml25=[SHAPES_PATH+"/mxUML25.js"];mxStencilRegistry.libraries.veeam=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam.xml"];
mxStencilRegistry.libraries.veeam2=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam2.xml"];mxStencilRegistry.libraries.pid2inst=[SHAPES_PATH+"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxStencilRegistry.libraries.salesforce=
-[STENCIL_PATH+"/salesforce.xml"];mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=function(k){var A=null;null!=k&&0<k.length&&("ER"==k.substring(0,2)?A="mxgraph.er":"sysML"==k.substring(0,5)&&(A="mxgraph.sysml"));return A};var ha=mxMarker.createMarker;mxMarker.createMarker=function(k,A,I,U,O,T,X,aa,ja,pa){if(null!=I&&null==mxMarker.markers[I]){var sa=this.getPackageForType(I);
-null!=sa&&mxStencilRegistry.getStencil(sa)}return ha.apply(this,arguments)};var la=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(k,A,I,U,O,T){"1"==mxUtils.getValue(A.style,"lineShape",null)&&k.setFillColor(mxUtils.getValue(A.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return la.apply(this,arguments)};PrintDialog.prototype.create=function(k,A,I){function U(){Ba.value=Math.max(1,Math.min(pa,Math.max(parseInt(Ba.value),parseInt(wa.value))));wa.value=Math.max(1,Math.min(pa,
+[STENCIL_PATH+"/salesforce.xml"];mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=function(k){var A=null;null!=k&&0<k.length&&("ER"==k.substring(0,2)?A="mxgraph.er":"sysML"==k.substring(0,5)&&(A="mxgraph.sysml"));return A};var ha=mxMarker.createMarker;mxMarker.createMarker=function(k,A,I,U,O,S,X,aa,ja,pa){if(null!=I&&null==mxMarker.markers[I]){var sa=this.getPackageForType(I);
+null!=sa&&mxStencilRegistry.getStencil(sa)}return ha.apply(this,arguments)};var la=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(k,A,I,U,O,S){"1"==mxUtils.getValue(A.style,"lineShape",null)&&k.setFillColor(mxUtils.getValue(A.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return la.apply(this,arguments)};PrintDialog.prototype.create=function(k,A,I){function U(){Ba.value=Math.max(1,Math.min(pa,Math.max(parseInt(Ba.value),parseInt(wa.value))));wa.value=Math.max(1,Math.min(pa,
Math.min(parseInt(Ba.value),parseInt(wa.value))))}function O(ua){k.lastPrintPagesRadioChecked=qa.checked;k.lastPrintSelectionOnlyChecked=Ea.checked;k.lastPrintCropRadioChecked=ya.checked;k.lastPrintFitRadioChecked=Ca.checked;qa.checked&&wa.value<Ba.value?(k.lastPrintPagesFromInput=wa.value,k.lastPrintPagesToInput=Ba.value):(k.lastPrintPagesFromInput=null,k.lastPrintPagesToInput=null);V.value=Math.max(1,Math.min(1600,parseInt(V.value)))+"%";k.lastPrintZoom=V.value;k.lastPrintBorder=Q.value;k.lastPrintGrid=
ia.checked;k.lastPrintTransparent=ka.checked;k.lastPrintInclude=oa.checked;k.lastPrintSheetsAcross=x.value;k.lastPrintSheetsDown=M.value;var Fa={};Fa.border=parseInt(Q.value);Fa.scale=parseInt(V.value)/100;Fa.grid=ia.checked;Fa.transparent=ka.checked;Fa.includeCopy=oa.checked;Fa.sheetsAcross=parseInt(x.value);Fa.sheetsDown=parseInt(M.value);Fa.pagesFrom=parseInt(wa.value);Fa.pagesTo=parseInt(Ba.value);Fa.allPages=sa.checked;Fa.selection=Ea.checked;Fa.pageView=ra.checked;Fa.crop=ya.checked;Fa.fit=
-Ca.checked;return null!=I?I(!ua,Fa):k.print(!ua,Fa)}var T=k.editor.graph,X=document.createElement("div"),aa=document.createElement("h3");aa.style.width="100%";aa.style.textAlign="center";aa.style.marginTop="0px";mxUtils.write(aa,A||mxResources.get("print"));X.appendChild(aa);var ja=1,pa=1;aa=document.createElement("div");aa.style.whiteSpace="nowrap";var sa=document.createElement("input");sa.style.marginRight="8px";sa.style.marginBottom="8px";sa.setAttribute("type","radio");sa.setAttribute("name",
+Ca.checked;return null!=I?I(!ua,Fa):k.print(!ua,Fa)}var S=k.editor.graph,X=document.createElement("div"),aa=document.createElement("h3");aa.style.width="100%";aa.style.textAlign="center";aa.style.marginTop="0px";mxUtils.write(aa,A||mxResources.get("print"));X.appendChild(aa);var ja=1,pa=1;aa=document.createElement("div");aa.style.whiteSpace="nowrap";var sa=document.createElement("input");sa.style.marginRight="8px";sa.style.marginBottom="8px";sa.setAttribute("type","radio");sa.setAttribute("name",
"pages-printdialog");aa.appendChild(sa);A=document.createElement("span");mxUtils.write(A,mxResources.get("allPages"));mxEvent.addListener(A,"click",function(){sa.checked=!0});aa.appendChild(A);mxUtils.br(aa);var qa=sa.cloneNode(!0);aa.appendChild(qa);A=document.createElement("span");mxUtils.write(A,mxResources.get("pages")+":");aa.appendChild(A);mxEvent.addListener(A,"click",function(){qa.checked=!0});var wa=document.createElement("input");wa.style.margin="0 4px";wa.setAttribute("value","1");wa.setAttribute("type",
"number");wa.setAttribute("min","1");wa.style.width="40px";aa.appendChild(wa);A=document.createElement("span");mxUtils.write(A,mxResources.get("to"));aa.appendChild(A);var Ba=wa.cloneNode(!0);aa.appendChild(Ba);mxEvent.addListener(wa,"focus",function(){qa.checked=!0});mxEvent.addListener(Ba,"focus",function(){qa.checked=!0});mxEvent.addListener(wa,"change",U);mxEvent.addListener(Ba,"change",U);if(null!=k.pages&&(pa=k.pages.length,null!=k.currentPage))for(var za=0;za<pa;za++)if(k.currentPage==k.pages[za]){ja=
za+1;break}null!=k.lastPrintPagesFromInput&&null!=k.lastPrintPagesToInput?(wa.value=Math.min(pa,Math.max(1,k.lastPrintPagesFromInput)),Ba.value=Math.min(pa,Math.max(1,k.lastPrintPagesToInput))):(wa.value=ja,Ba.value=ja);wa.setAttribute("max",pa);Ba.setAttribute("max",pa);za=mxUtils.button(mxResources.get("currentPage"),function(ua){wa.value=ja;Ba.value=ja;qa.checked=!0});za.setAttribute("title",mxResources.get("currentPage"));za.style.marginLeft="4px";za.style.maxWidth="100px";za.style.overflow="hidden";
-za.style.textOverflow="ellipsis";za.style.whiteSpace="nowrap";aa.appendChild(za);1<pa&&X.appendChild(aa);aa=document.createElement("div");aa.style.borderBottom="1px solid lightGray";aa.style.paddingBottom="12px";aa.style.marginBottom="12px";aa.style.whiteSpace="nowrap";var Ea=document.createElement("input");Ea.setAttribute("name","pages-printdialog");Ea.setAttribute("type",1==pa?"checkbox":"radio");Ea.style.marginRight="8px";T.isSelectionEmpty()&&Ea.setAttribute("disabled","disabled");T.isEnabled()&&
-(aa.appendChild(Ea),A=document.createElement("span"),mxUtils.write(A,mxResources.get("selectionOnly")),aa.appendChild(A));(T.isEnabled()||1<pa)&&X.appendChild(aa);!k.isPagesEnabled()||k.lastPrintPagesRadioChecked?qa.checked=!0:!T.isSelectionEmpty()&&k.lastPrintSelectionOnlyChecked?Ea.checked=!0:sa.checked=!0;T.isSelectionEmpty()||mxEvent.addListener(A,"click",function(){Ea.checked=!Ea.checked});T=document.createElement("div");T.style.whiteSpace="nowrap";var ra=document.createElement("input");ra.style.marginBottom=
-"8px";ra.style.marginRight="8px";ra.setAttribute("type","radio");ra.setAttribute("name","printSize");T.appendChild(ra);A=document.createElement("span");mxUtils.write(A,mxResources.get("pageView"));T.appendChild(A);mxEvent.addListener(T,"click",function(){ra.checked=!0});X.appendChild(T);T=document.createElement("div");T.style.whiteSpace="nowrap";var ya=document.createElement("input");ya.style.marginBottom="8px";ya.style.marginRight="8px";ya.setAttribute("type","radio");ya.setAttribute("name","printSize");
-T.appendChild(ya);A=document.createElement("span");mxUtils.write(A,mxResources.get("crop"));T.appendChild(A);mxEvent.addListener(T,"click",function(){ya.checked=!0});X.appendChild(T);T=document.createElement("div");T.style.whiteSpace="nowrap";var Ca=document.createElement("input");Ca.style.marginBottom="8px";Ca.style.marginRight="8px";Ca.setAttribute("type","radio");Ca.setAttribute("name","printSize");A=document.createElement("div");A.style.display="inline-block";A.style.verticalAlign="top";A.style.paddingTop=
-"2px";A.appendChild(Ca);T.appendChild(A);aa=document.createElement("table");aa.style.display="inline-block";aa.style.borderSpacing="0";za=document.createElement("tbody");var Ma=document.createElement("tr"),Ha=Ma.cloneNode(!0),Aa=document.createElement("td"),Ra=Aa.cloneNode(!0),Za=Aa.cloneNode(!0),La=Aa.cloneNode(!0),$a=Aa.cloneNode(!0),Da=Aa.cloneNode(!0);Aa.style.textAlign="right";La.style.textAlign="right";mxUtils.write(Aa,mxResources.get("fitTo"));mxEvent.addListener(T,"click",function(ua){mxEvent.getSource(ua)!=
+za.style.textOverflow="ellipsis";za.style.whiteSpace="nowrap";aa.appendChild(za);1<pa&&X.appendChild(aa);aa=document.createElement("div");aa.style.borderBottom="1px solid lightGray";aa.style.paddingBottom="12px";aa.style.marginBottom="12px";aa.style.whiteSpace="nowrap";var Ea=document.createElement("input");Ea.setAttribute("name","pages-printdialog");Ea.setAttribute("type",1==pa?"checkbox":"radio");Ea.style.marginRight="8px";S.isSelectionEmpty()&&Ea.setAttribute("disabled","disabled");S.isEnabled()&&
+(aa.appendChild(Ea),A=document.createElement("span"),mxUtils.write(A,mxResources.get("selectionOnly")),aa.appendChild(A));(S.isEnabled()||1<pa)&&X.appendChild(aa);!k.isPagesEnabled()||k.lastPrintPagesRadioChecked?qa.checked=!0:!S.isSelectionEmpty()&&k.lastPrintSelectionOnlyChecked?Ea.checked=!0:sa.checked=!0;S.isSelectionEmpty()||mxEvent.addListener(A,"click",function(){Ea.checked=!Ea.checked});S=document.createElement("div");S.style.whiteSpace="nowrap";var ra=document.createElement("input");ra.style.marginBottom=
+"8px";ra.style.marginRight="8px";ra.setAttribute("type","radio");ra.setAttribute("name","printSize");S.appendChild(ra);A=document.createElement("span");mxUtils.write(A,mxResources.get("pageView"));S.appendChild(A);mxEvent.addListener(S,"click",function(){ra.checked=!0});X.appendChild(S);S=document.createElement("div");S.style.whiteSpace="nowrap";var ya=document.createElement("input");ya.style.marginBottom="8px";ya.style.marginRight="8px";ya.setAttribute("type","radio");ya.setAttribute("name","printSize");
+S.appendChild(ya);A=document.createElement("span");mxUtils.write(A,mxResources.get("crop"));S.appendChild(A);mxEvent.addListener(S,"click",function(){ya.checked=!0});X.appendChild(S);S=document.createElement("div");S.style.whiteSpace="nowrap";var Ca=document.createElement("input");Ca.style.marginBottom="8px";Ca.style.marginRight="8px";Ca.setAttribute("type","radio");Ca.setAttribute("name","printSize");A=document.createElement("div");A.style.display="inline-block";A.style.verticalAlign="top";A.style.paddingTop=
+"2px";A.appendChild(Ca);S.appendChild(A);aa=document.createElement("table");aa.style.display="inline-block";aa.style.borderSpacing="0";za=document.createElement("tbody");var Ma=document.createElement("tr"),Ha=Ma.cloneNode(!0),Aa=document.createElement("td"),Ra=Aa.cloneNode(!0),Za=Aa.cloneNode(!0),La=Aa.cloneNode(!0),$a=Aa.cloneNode(!0),Da=Aa.cloneNode(!0);Aa.style.textAlign="right";La.style.textAlign="right";mxUtils.write(Aa,mxResources.get("fitTo"));mxEvent.addListener(S,"click",function(ua){mxEvent.getSource(ua)!=
Ca&&(Ca.checked=!Ca.checked)});var x=document.createElement("input");x.style.margin="0 2px";x.style.boxSizing="border-box";x.setAttribute("value",k.lastPrintSheetsAcross||"1");x.setAttribute("min","1");x.setAttribute("type","number");x.style.width="40px";Ra.appendChild(x);A=document.createElement("span");mxUtils.write(A,mxResources.get("fitToSheetsAcross"));Za.appendChild(A);mxUtils.write(La,mxResources.get("fitToBy"));var M=x.cloneNode(!0);M.setAttribute("value",k.lastPrintSheetsDown||"1");$a.appendChild(M);
mxEvent.addListener(x,"click",function(ua){Ca.checked=!0;mxEvent.consume(ua)});mxEvent.addListener(M,"click",function(ua){Ca.checked=!0;mxEvent.consume(ua)});k.lastPrintCropRadioChecked?ya.checked=!0:k.lastPrintFitRadioChecked?Ca.checked=!0:ra.checked=!0;A=document.createElement("span");mxUtils.write(A,mxResources.get("fitToSheetsDown"));Da.appendChild(A);Ma.appendChild(Aa);Ma.appendChild(Ra);Ma.appendChild(Za);Ha.appendChild(La);Ha.appendChild($a);Ha.appendChild(Da);za.appendChild(Ma);za.appendChild(Ha);
-aa.appendChild(za);T.appendChild(aa);X.appendChild(T);T=document.createElement("div");T.style.borderTop="1px solid lightGray";T.style.whiteSpace="nowrap";T.style.paddingTop="12px";T.style.marginTop="12px";T.style.paddingLeft="8px";mxUtils.write(T,mxResources.get("borderWidth")+":");var Q=document.createElement("input");Q.setAttribute("type","number");Q.setAttribute("min","0");Q.style.width="40px";Q.style.marginLeft="4px";Q.value=null!=k.lastPrintBorder?k.lastPrintBorder:mxPrintPreview.prototype.pageMargin;
-T.appendChild(Q);A=document.createElement("span");A.style.marginLeft="8px";mxUtils.write(A,mxResources.get("zoom")+":");T.appendChild(A);var V=document.createElement("input");V.style.width="60px";V.style.marginLeft="4px";V.value=null!=k.lastPrintZoom?k.lastPrintZoom:"100%";T.appendChild(V);mxUtils.br(T);var ia=document.createElement("input");ia.setAttribute("type","checkbox");ia.style.marginTop="12px";ia.checked=null!=k.lastPrintGrid?k.lastPrintGrid:!1;T.appendChild(ia);A=document.createElement("span");
-A.style.marginLeft="4px";A.style.marginRight="8px";mxUtils.write(A,mxResources.get("grid"));T.appendChild(A);mxEvent.addListener(A,"click",function(ua){ia.checked=!0;mxEvent.consume(ua)});var ka=document.createElement("input");ka.setAttribute("type","checkbox");ka.style.marginTop="10px";ka.checked=null!=k.lastPrintTransparent?k.lastPrintTransparent:!1;null!=I&&(T.appendChild(ka),A=document.createElement("span"),A.style.marginLeft="4px",mxUtils.write(A,mxResources.get("transparentBackground")),T.appendChild(A),
-mxEvent.addListener(A,"click",function(ua){ka.checked=!0;mxEvent.consume(ua)}));var oa=document.createElement("input");oa.setAttribute("type","checkbox");oa.style.marginTop="10px";oa.checked=null!=k.lastPrintInclude?k.lastPrintInclude:Editor.defaultIncludeDiagram;null==I||mxClient.IS_CHROMEAPP||"draw.io"!=k.getServiceName()||(mxUtils.br(T),T.appendChild(oa),A=document.createElement("span"),A.style.marginLeft="4px",mxUtils.write(A,mxResources.get("includeCopyOfMyDiagram")),T.appendChild(A),mxEvent.addListener(A,
-"click",function(ua){oa.checked=!0;mxEvent.consume(ua)}));X.appendChild(T);A=document.createElement("div");A.style.marginTop="40px";A.style.textAlign="right";A.style.whiteSpace="nowrap";k.isOffline()||null!=I||A.appendChild(k.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));T=mxUtils.button(mxResources.get("cancel"),function(){k.hideDialog()});T.className="geBtn";k.editor.cancelFirst&&A.appendChild(T);PrintDialog.previewEnabled&&null==I&&(aa=mxUtils.button(mxResources.get("preview"),
-function(){try{k.hideDialog(),O(!1)}catch(ua){k.handleError(ua)}}),aa.className="geBtn",A.appendChild(aa));aa=mxUtils.button(mxResources.get(null!=I?"export":PrintDialog.previewEnabled?"print":"ok"),function(){try{k.hideDialog(),O(!0)}catch(ua){k.handleError(ua)}});aa.className="geBtn gePrimaryBtn";A.appendChild(aa);k.editor.cancelFirst||A.appendChild(T);X.appendChild(A);if(k.editor.isChromelessView()){var xa=function(){Editor.isDarkMode()?(X.classList.add("geDarkMode"),X.style.colorScheme="dark"):
+aa.appendChild(za);S.appendChild(aa);X.appendChild(S);S=document.createElement("div");S.style.borderTop="1px solid lightGray";S.style.whiteSpace="nowrap";S.style.paddingTop="12px";S.style.marginTop="12px";S.style.paddingLeft="8px";mxUtils.write(S,mxResources.get("borderWidth")+":");var Q=document.createElement("input");Q.setAttribute("type","number");Q.setAttribute("min","0");Q.style.width="40px";Q.style.marginLeft="4px";Q.value=null!=k.lastPrintBorder?k.lastPrintBorder:mxPrintPreview.prototype.pageMargin;
+S.appendChild(Q);A=document.createElement("span");A.style.marginLeft="8px";mxUtils.write(A,mxResources.get("zoom")+":");S.appendChild(A);var V=document.createElement("input");V.style.width="60px";V.style.marginLeft="4px";V.value=null!=k.lastPrintZoom?k.lastPrintZoom:"100%";S.appendChild(V);mxUtils.br(S);var ia=document.createElement("input");ia.setAttribute("type","checkbox");ia.style.marginTop="12px";ia.checked=null!=k.lastPrintGrid?k.lastPrintGrid:!1;S.appendChild(ia);A=document.createElement("span");
+A.style.marginLeft="4px";A.style.marginRight="8px";mxUtils.write(A,mxResources.get("grid"));S.appendChild(A);mxEvent.addListener(A,"click",function(ua){ia.checked=!0;mxEvent.consume(ua)});var ka=document.createElement("input");ka.setAttribute("type","checkbox");ka.style.marginTop="10px";ka.checked=null!=k.lastPrintTransparent?k.lastPrintTransparent:!1;null!=I&&(S.appendChild(ka),A=document.createElement("span"),A.style.marginLeft="4px",mxUtils.write(A,mxResources.get("transparentBackground")),S.appendChild(A),
+mxEvent.addListener(A,"click",function(ua){ka.checked=!0;mxEvent.consume(ua)}));var oa=document.createElement("input");oa.setAttribute("type","checkbox");oa.style.marginTop="10px";oa.checked=null!=k.lastPrintInclude?k.lastPrintInclude:Editor.defaultIncludeDiagram;null==I||mxClient.IS_CHROMEAPP||"draw.io"!=k.getServiceName()||(mxUtils.br(S),S.appendChild(oa),A=document.createElement("span"),A.style.marginLeft="4px",mxUtils.write(A,mxResources.get("includeCopyOfMyDiagram")),S.appendChild(A),mxEvent.addListener(A,
+"click",function(ua){oa.checked=!0;mxEvent.consume(ua)}));X.appendChild(S);A=document.createElement("div");A.style.marginTop="40px";A.style.textAlign="right";A.style.whiteSpace="nowrap";k.isOffline()||null!=I||A.appendChild(k.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));S=mxUtils.button(mxResources.get("cancel"),function(){k.hideDialog()});S.className="geBtn";k.editor.cancelFirst&&A.appendChild(S);PrintDialog.previewEnabled&&null==I&&(aa=mxUtils.button(mxResources.get("preview"),
+function(){try{k.hideDialog(),O(!1)}catch(ua){k.handleError(ua)}}),aa.className="geBtn",A.appendChild(aa));aa=mxUtils.button(mxResources.get(null!=I?"export":PrintDialog.previewEnabled?"print":"ok"),function(){try{k.hideDialog(),O(!0)}catch(ua){k.handleError(ua)}});aa.className="geBtn gePrimaryBtn";A.appendChild(aa);k.editor.cancelFirst||A.appendChild(S);X.appendChild(A);if(k.editor.isChromelessView()){var xa=function(){Editor.isDarkMode()?(X.classList.add("geDarkMode"),X.style.colorScheme="dark"):
(X.classList.remove("geDarkMode"),X.style.colorScheme="light")};k.addListener("darkModeChanged",xa);xa();var ta=function(ua,Fa){ua=Fa.getProperty("dialog");X.parentNode==ua.container&&(k.editor.removeListener(ta),k.removeListener(xa))};k.editor.addListener("hideDialog",ta)}this.container=X};var Y=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=function(){null==this.page&&(this.page=this.ui.currentPage);if(this.page!=this.ui.currentPage){if(null!=this.page.viewState){this.ignoreColor||
(this.page.viewState.background=this.color);if(!this.ignoreImage){var k=this.image;null!=k&&null!=k.src&&Graph.isPageLink(k.src)&&(k={originalSrc:k.src});this.page.viewState.backgroundImage=k}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.adaptiveColors&&(this.page.viewState.adaptiveColors=this.adaptiveColors);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else Y.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&&(k=this.ui.editor.graph.adaptiveColors,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 ma=document.createElement("canvas"),Z=new Image;Z.onload=function(){try{ma.getContext("2d").drawImage(Z,0,0);var k=ma.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=k&&6<k.length}catch(A){}};Z.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.0.15";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.0.16";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"}};
@@ -3539,7 +3539,7 @@ null!=t.pageId&&f.getId()==t.pageId)z=f;if(null==l[f.getId()])l[f.getId()]=f;els
this.editor.setGraphXml(f);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,this.currentPage.setDiagramModified(!1),this.scrollToPage());if(null!=urlParams["layer-ids"])try{var F=decodeURIComponent(urlParams["layer-ids"]).split(" ");f={};for(C=0;C<F.length;C++)f[F[C]]=!0;var N=this.editor.graph.getModel(),K=N.getChildren(N.root);for(C=0;C<K.length;C++){var J=K[C];N.setVisible(J,f[J.id]||!1)}}catch(da){}};EditorUi.prototype.getBaseFilename=function(c){var f=this.getCurrentFile();
f=null!=f&&null!=f.getTitle()?f.getTitle():this.defaultFilename;if(/(\.xml)$/i.test(f)||/(\.html)$/i.test(f)||/(\.svg)$/i.test(f)||/(\.png)$/i.test(f))f=f.substring(0,f.lastIndexOf("."));/(\.drawio)$/i.test(f)&&(f=f.substring(0,f.lastIndexOf(".")));!c&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&0<this.currentPage.getName().length&&(f=f+"-"+this.currentPage.getName());return f};EditorUi.prototype.downloadFile=function(c,f,l,t,z,
C,F,N,K,J,da,ea,ca,W,ba,ha){try{t=null!=t?t:this.editor.graph.isSelectionEmpty();var la=this.getBaseFilename(!z),Y=la+("xml"==c||"pdf"==c&&da?".drawio":"")+"."+c;if("xml"==c){var ma=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,t,z,null,null,null,f);this.saveData(Y,c,ma,"text/xml")}else if("html"==c)ma=this.getHtml2(this.getFileData(!0),this.editor.graph,la),this.saveData(Y,c,ma,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))"xmlpng"==
-c?Y=la+".png":"jpeg"==c&&(Y=la+".jpg"),this.saveRequest(Y,c,mxUtils.bind(this,function(U,O){try{return this.createDownloadRequest(U,c,t,O,F,z,N,K,J,da,ea,void 0,void 0,!C,ca,W,ba,ha)}catch(T){this.handleError(T)}}));else{var Z=null,k=mxUtils.bind(this,function(U){U.length<=MAX_REQUEST_SIZE?this.saveData(Y,"svg",U,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(Z)}))});if("svg"==c){var A=this.editor.graph.background;
+c?Y=la+".png":"jpeg"==c&&(Y=la+".jpg"),this.saveRequest(Y,c,mxUtils.bind(this,function(U,O){try{return this.createDownloadRequest(U,c,t,O,F,z,N,K,J,da,ea,void 0,void 0,!C,ca,W,ba,ha)}catch(S){this.handleError(S)}}));else{var Z=null,k=mxUtils.bind(this,function(U){U.length<=MAX_REQUEST_SIZE?this.saveData(Y,"svg",U,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(Z)}))});if("svg"==c){var A=this.editor.graph.background;
if(F||A==mxConstants.NONE)A=null;var I=this.editor.graph.getSvg(A,null,null,null,null,t);l&&this.editor.graph.addSvgShadow(I);this.editor.convertImages(I,mxUtils.bind(this,mxUtils.bind(this,function(U){this.spinner.stop();k(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(U))})))}else Y=la+".svg",Z=this.getFileData(!1,!0,null,mxUtils.bind(this,function(U){this.spinner.stop();k(U)}),t)}}catch(U){this.handleError(U)}};EditorUi.prototype.createDownloadRequest=function(c,f,l,t,z,C,F,N,K,
J,da,ea,ca,W,ba,ha,la,Y){c=this.downloadRequestBuilder(c,f,l,t,z,C,F,N,K,J,da,ea,ca,W,ba,ha,la,Y);f="";for(var ma in c)l=c[ma],null!=l&&(f+=ma+"="+encodeURIComponent(l)+"&");return new mxXmlRequest(EXPORT_URL,f)};EditorUi.prototype.downloadRequestBuilder=function(c,f,l,t,z,C,F,N,K,J,da,ea,ca,W,ba,ha,la,Y){var ma=this.editor.graph,Z=ma.getGraphBounds();l=this.getFileData(!0,null,null,null,l,0==C?!1:"xmlpng"!=f,null,null,null,!Editor.defaultCompressed,"pdf"==f);var k=null,A=null,I=null;if(!EditorUi.isElectronApp&&
(Z.width*Z.height>MAX_AREA||l.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};J=J?"1":"0";"pdf"==f&&(null!=da?(k=da.from,A=da.to):0==C&&(I="1"));"xmlpng"==f&&(J="1",f="png");if(("xmlpng"==f||"svg"==f)&&null!=this.pages&&null!=this.currentPage)for(C=0;C<this.pages.length;C++)if(this.pages[C]==this.currentPage){k=C;break}C=ma.background;"png"!=f&&"pdf"!=f&&"svg"!=f||!z?z||null!=C&&C!=mxConstants.NONE||(C="#ffffff"):C=mxConstants.NONE;z={globalVars:ma.getExportVariables()};
@@ -3579,7 +3579,7 @@ F=null)}),la=mxUtils.bind(this,function(Y){if(ca.isSelectionEmpty())ca.getRubber
mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(Y)});mxEvent.addGestureListeners(K,function(){},mxUtils.bind(this,function(Y){ca.isMouseDown&&null!=ca.panningManager&&null!=ca.graphHandler.first&&(ca.graphHandler.suspend(),null!=ca.graphHandler.hint&&(ca.graphHandler.hint.style.visibility="hidden"),K.style.backgroundColor="light-dark(#fefefe, #000000)",K.style.cursor="copy",ca.panningManager.stop(),ca.autoScroll=!1,mxEvent.consume(Y))}),mxUtils.bind(this,function(Y){ca.isMouseDown&&
null!=ca.panningManager&&null!=ca.graphHandler&&(K.style.backgroundColor="",K.style.cursor="default",this.sidebar.showTooltips=!0,ca.panningManager.stop(),ca.graphHandler.reset(),ca.isMouseDown=!1,ca.autoScroll=!0,la(Y),mxEvent.consume(Y))}));mxEvent.addListener(K,"mouseleave",mxUtils.bind(this,function(Y){ca.isMouseDown&&null!=ca.graphHandler.first&&(ca.graphHandler.resume(),null!=ca.graphHandler.hint&&(ca.graphHandler.hint.style.visibility="visible"),K.style.backgroundColor="",K.style.cursor="",
ca.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(K,"dragover",mxUtils.bind(this,function(Y){K.style.backgroundColor="light-dark(#fefefe, #000000)";Y.dataTransfer.dropEffect="copy";K.style.cursor="copy";this.sidebar.hideTooltip();Y.stopPropagation();Y.preventDefault()})),mxEvent.addListener(K,"drop",mxUtils.bind(this,function(Y){K.style.cursor="";K.style.backgroundColor="";0<Y.dataTransfer.files.length&&this.importFiles(Y.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(ma,
-Z,k,A,I,U,O,T,X){if(null!=ma&&"image/"==Z.substring(0,6))ma="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(ma),ma=[new mxCell("",new mxGeometry(0,0,I,U),ma)],ma[0].vertex=!0,ha(ma,new mxRectangle(0,0,I,U),Y,mxEvent.isAltDown(Y)?null:O.substring(0,O.lastIndexOf(".")).replace(/_/g," ")),null!=F&&null!=F.parentNode&&0<f.length&&(F.parentNode.removeChild(F),F=null);else{var aa=!1,ja=mxUtils.bind(this,function(pa,sa){null!=pa&&"application/pdf"==
+Z,k,A,I,U,O,S,X){if(null!=ma&&"image/"==Z.substring(0,6))ma="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(ma),ma=[new mxCell("",new mxGeometry(0,0,I,U),ma)],ma[0].vertex=!0,ha(ma,new mxRectangle(0,0,I,U),Y,mxEvent.isAltDown(Y)?null:O.substring(0,O.lastIndexOf(".")).replace(/_/g," ")),null!=F&&null!=F.parentNode&&0<f.length&&(F.parentNode.removeChild(F),F=null);else{var aa=!1,ja=mxUtils.bind(this,function(pa,sa){null!=pa&&"application/pdf"==
sa&&(sa=Editor.extractGraphModelFromPdf(pa),null!=sa&&0<sa.length&&(pa=sa));if(null!=pa)if(pa=mxUtils.parseXml(pa),"mxlibrary"==pa.documentElement.nodeName)try{var qa=JSON.parse(mxUtils.getTextContent(pa.documentElement));N(qa,K);f=f.concat(qa);ba(Y);this.spinner.stop();aa=!0}catch(Ea){}else if("mxfile"==pa.documentElement.nodeName)try{var wa=pa.documentElement.getElementsByTagName("diagram");for(qa=0;qa<wa.length;qa++){var Ba=this.stringToCells(Editor.getDiagramNodeXml(wa[qa])),za=this.editor.graph.getBoundingBoxFromGeometry(Ba);
null!=za&&ha(Ba,new mxRectangle(0,0,za.width,za.height),Y)}aa=!0}catch(Ea){null!=window.console&&console.log("error in drop handler:",Ea)}aa||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=F&&null!=F.parentNode&&0<f.length&&(F.parentNode.removeChild(F),F=null)});null!=X&&null!=O&&EditorUi.isVisioFilename(O)?this.importVisio(X,function(pa){ja(pa,"text/xml")},null,O):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(ma,O)&&null!=X?this.isExternalDataComms()?
this.parseFile(X,mxUtils.bind(this,function(pa){4==pa.readyState&&(this.spinner.stop(),200<=pa.status&&299>=pa.status?ja(pa.responseText,"text/xml"):this.handleError({message:mxResources.get(413==pa.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):ja(ma,Z)}}));Y.stopPropagation();Y.preventDefault()})),mxEvent.addListener(K,"dragleave",function(Y){K.style.cursor=
@@ -3630,15 +3630,15 @@ this.exportDialog=null);this.handleError(N)}),null,null,null,null,null,null,null
function(J,da,ea,ca){if("_blank"==da||null!=J&&0<J.length){var W=l("_blank"==da?null:J,da==App.MODE_DEVICE||"download"==da||null==da||"_blank"==da?"0":"1");null!=W&&(da==App.MODE_DEVICE||"download"==da||"_blank"==da?W.simulate(document,"_blank"):(ea=mxUtils.bind(this,function(ba){C=null!=C?C:"pdf"==f?"application/pdf":"image/"+f;if(null!=t)try{this.exportFile(t,J,C,!0,da,ba)}catch(ha){this.handleError(ha)}else this.spinner.spin(document.body,mxResources.get("saving"))&&W.send(mxUtils.bind(this,function(){this.spinner.stop();
if(200<=W.getStatus()&&299>=W.getStatus())try{this.exportFile(W.getText(),J,C,!0,da,ba)}catch(ha){this.handleError(ha)}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(ha){this.spinner.stop();this.handleError(ha)}))}),null!=ca?ea(ca):this.pickFolder(da,ea)))}});z=[App.MODE_BROWSER];F||z.push("_blank");var K=new SaveDialog(this,c,mxUtils.bind(this,function(J,da,ea){N(J.value,da,J,ea);this.hideDialog(null,null,K.container)}),z,null,"application/pdf");
this.showDialog(K.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));K.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(c,f,l,t,z,C){};EditorUi.prototype.getServiceForName=function(c){return null};EditorUi.prototype.getTitleForService=function(c){return mxResources.get(c)};EditorUi.prototype.pickFolder=function(c,f,l){f(null)};EditorUi.prototype.exportSvg=
-function(c,f,l,t,z,C,F,N,K,J,da,ea,ca,W){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(T){Editor.addRetryToError(T,mxUtils.bind(this,function(){this.exportSvg(c,f,l,t,z,C,F,N,K,J,da,ea,ca,W)}));this.handleError(T)})))try{var ba=this.editor.graph.isSelectionEmpty();l=null!=l?l:ba;var ha=f?null:this.editor.graph.background;ha==mxConstants.NONE&&(ha=null);null==ha&&0==f&&(ha=this.editor.graph.shapeBackgroundColor);var la=this.editor.graph.addForeignObjectWarning;
+function(c,f,l,t,z,C,F,N,K,J,da,ea,ca,W){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(S){Editor.addRetryToError(S,mxUtils.bind(this,function(){this.exportSvg(c,f,l,t,z,C,F,N,K,J,da,ea,ca,W)}));this.handleError(S)})))try{var ba=this.editor.graph.isSelectionEmpty();l=null!=l?l:ba;var ha=f?null:this.editor.graph.background;ha==mxConstants.NONE&&(ha=null);null==ha&&0==f&&(ha=this.editor.graph.shapeBackgroundColor);var la=this.editor.graph.addForeignObjectWarning;
Editor.foreignObjectImages&&(this.editor.graph.addForeignObjectWarning=function(){});var Y=mxUtils.lightDarkColorSupported,ma=mxUtils.preferDarkColor;if("light"==da||"dark"==da)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor="dark"==da;var Z=this.editor.graph.createSvgImageExport(z),k=this.editor.graph.getSvg(ha,c,F,N,null,l,null,Z,"blank"==J?"_blank":"self"==J?"_top":null,null,!ca,da,ea);mxUtils.lightDarkColorSupported=Y;mxUtils.preferDarkColor=ma;this.editor.graph.addForeignObjectWarning=
-la;t&&this.editor.graph.addSvgShadow(k);var A=this.getBaseFilename()+(z?".drawio":"")+".svg";W=null!=W?W:mxUtils.bind(this,function(T){this.isLocalFileSave()||T.length<=MAX_REQUEST_SIZE?this.saveData(A,"svg",T,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(T)}))});var I=mxUtils.bind(this,function(T){this.spinner.stop();z&&T.setAttribute("content",this.getFileData(!0,null,null,null,l,K,null,null,null,
-null,null,c,F));W(Graph.xmlDeclaration+"\n"+(z?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(T))});this.editor.graph.mathEnabled&&this.editor.addMathCss(k);var U=mxUtils.bind(this,function(T){Editor.replaceSvgDataUris&&C&&EditorUi.embedSvgImages(T);Editor.foreignObjectImages&&ca?this.replaceAlternateContent(T,da,I):I(T)}),O=mxUtils.bind(this,function(T){C&&!this.isOffline()&&this.canvasSupported?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(T,
-U,this.thumbImageCache)):U(T)});ca?this.embedFonts(k,O):(this.editor.addFontCss(k),O(k))}catch(T){this.handleError(T)}};EditorUi.prototype.replaceAlternateContent=function(c,f,l){function t(ea,ca,W,ba,ha){var la=mxUtils.createElementNs(c.ownerDocument,mxConstants.NS_SVG,"image");la.setAttribute("x",ca);la.setAttribute("y",W+.5);la.setAttribute("width",ba.width);la.setAttribute("height",ba.height);null==la.setAttributeNS?la.setAttribute("xlink:href",ha):la.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",
+la;t&&this.editor.graph.addSvgShadow(k);var A=this.getBaseFilename()+(z?".drawio":"")+".svg";W=null!=W?W:mxUtils.bind(this,function(S){this.isLocalFileSave()||S.length<=MAX_REQUEST_SIZE?this.saveData(A,"svg",S,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(S)}))});var I=mxUtils.bind(this,function(S){this.spinner.stop();z&&S.setAttribute("content",this.getFileData(!0,null,null,null,l,K,null,null,null,
+null,null,c,F));W(Graph.xmlDeclaration+"\n"+(z?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(S))});this.editor.graph.mathEnabled&&this.editor.addMathCss(k);var U=mxUtils.bind(this,function(S){Editor.replaceSvgDataUris&&C&&EditorUi.embedSvgImages(S);Editor.foreignObjectImages&&ca?this.replaceAlternateContent(S,da,I):I(S)}),O=mxUtils.bind(this,function(S){C&&!this.isOffline()&&this.canvasSupported?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(S,
+U,this.thumbImageCache)):U(S)});ca?this.embedFonts(k,O):(this.editor.addFontCss(k),O(k))}catch(S){this.handleError(S)}};EditorUi.prototype.replaceAlternateContent=function(c,f,l){function t(ea,ca,W,ba,ha){var la=mxUtils.createElementNs(c.ownerDocument,mxConstants.NS_SVG,"image");la.setAttribute("x",ca);la.setAttribute("y",W+.5);la.setAttribute("width",ba.width);la.setAttribute("height",ba.height);null==la.setAttributeNS?la.setAttribute("xlink:href",ha):la.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",
ha);ea.replaceChild(la,ea.lastChild);N()}function z(){if(F<da.length)da[F++](z)}var C="";f=c.getElementsByTagName("style");for(var F=0;F<f.length;F++)C+=f[F].innerHTML;f=c.getElementsByTagName("switch");counter=f.length;var N=mxUtils.bind(this,function(){counter--;0==counter&&l(c)}),K={},J={},da=[];for(F=0;F<f.length;F++)mxUtils.bind(this,function(ea){var ca=ea.getElementsByTagName("div");if(0<ca.length)try{var W=ca[0].cloneNode(!0),ba=parseInt(W.style.marginLeft),ha=parseInt(W.style.paddingTop),
la=W.getElementsByTagName("div")[1],Y=ca=!1,ma=W.style.alignItems,Z=W.style.justifyContent;if(null!=W.style.writingMode){var k=W.style.writingMode;Y="vertical-"==k.substring(0,9);ca="-rl"==k.substring(k.length-3)}var A=!Y&&"1px"==W.style.width||Y&&"1px"==W.style.height;if(!Y&&"1px"==W.style.height||Y&&"1px"==W.style.width)W.style.alignItems=Y&&ca?"unsafe flex-end":"unsafe flex-start";A&&(W.style.justifyContent="unsafe flex-start");W.style.paddingTop="";W.style.marginLeft="";var I=W.outerHTML,U=K[I];
null==U&&(W.style.position="absolute",W.style.visibility="hidden",document.body.appendChild(W),k=1,k="1px"==W.style.width?la.offsetWidth:parseInt(W.style.width),A=1,A="1px"==W.style.height?la.offsetHeight:parseInt(W.style.height),document.body.removeChild(W),U=new mxRectangle(ba,ha,k,A),K[I]=U);"1px"==W.style.height&&("unsafe center"==ma?ha-=U.height/2:"unsafe flex-end"==ma&&(ha-=U.height));if("1px"==W.style.width)if(!Y&&"unsafe center"==Z||Y&&"unsafe center"==ma)ba-=U.width/2;else if(!Y&&"unsafe flex-end"==
-Z||Y&&(!ca&&"unsafe flex-end"==ma||ca&&"unsafe flex-start"==ma))ba-=U.width;U=new mxRectangle(ba,ha,U.width,U.height+parseInt(la.style.fontSize)/4);da.push(mxUtils.bind(this,function(O){var T=J[I];null==T?Graph.htmlToPng(I,U.width,U.height,mxUtils.bind(this,function(X){t(ea,ba,ha,U,X);J[I]=X;O()}),C):(t(ea,ba,ha,U,T),O())}))}catch(O){N()}else N()})(f[F]);0==counter&&l(c);F=0;z()};EditorUi.prototype.addRadiobox=function(c,f,l,t,z,C,F){return this.addCheckbox(c,l,t,z,C,F,!0,f)};EditorUi.prototype.addCheckbox=
+Z||Y&&(!ca&&"unsafe flex-end"==ma||ca&&"unsafe flex-start"==ma))ba-=U.width;U=new mxRectangle(ba,ha,U.width,U.height+parseInt(la.style.fontSize)/4);da.push(mxUtils.bind(this,function(O){var S=J[I];null==S?Graph.htmlToPng(I,U.width,U.height,mxUtils.bind(this,function(X){t(ea,ba,ha,U,X);J[I]=X;O()}),C):(t(ea,ba,ha,U,S),O())}))}catch(O){N()}else N()})(f[F]);0==counter&&l(c);F=0;z()};EditorUi.prototype.addRadiobox=function(c,f,l,t,z,C,F){return this.addCheckbox(c,l,t,z,C,F,!0,f)};EditorUi.prototype.addCheckbox=
function(c,f,l,t,z,C,F,N){C=null!=C?C:!0;var K=document.createElement("input");K.style.marginRight="8px";K.style.marginTop="16px";K.setAttribute("type",F?"radio":"checkbox");F="geCheckbox-"+Editor.guid();K.id=F;null!=N&&K.setAttribute("name",N);l&&(K.setAttribute("checked","checked"),K.defaultChecked=!0);t&&K.setAttribute("disabled","disabled");C&&(c.appendChild(K),l=document.createElement("label"),mxUtils.write(l,f),l.setAttribute("for",F),c.appendChild(l),z||mxUtils.br(c));return K};EditorUi.prototype.addEditButton=
function(c,f){var l=this.addCheckbox(c,mxResources.get("edit")+":",!0,null,!0);l.style.marginLeft="24px";var t=this.getCurrentFile(),z="";null!=t&&t.getMode()!=App.MODE_DEVICE&&t.getMode()!=App.MODE_BROWSER&&(z=window.location.href);var C=document.createElement("select");C.style.maxWidth="200px";C.style.width="auto";C.style.marginLeft="8px";C.style.marginRight="10px";C.className="geBtn";t=document.createElement("option");t.setAttribute("value","blank");mxUtils.write(t,mxResources.get("makeCopy"));
C.appendChild(t);var F=document.createElement("option");F.setAttribute("value","custom");mxUtils.write(F,mxResources.get("custom")+"...");C.appendChild(F);c.appendChild(C);mxEvent.addListener(C,"change",mxUtils.bind(this,function(){if("custom"==C.value){var N=new FilenameDialog(this,z,mxResources.get("ok"),function(K){null!=K?(z=K,F.setAttribute("title",K)):(C.value="blank",F.removeAttribute("title"))},mxResources.get("url"),null,null,null,null,function(){C.value="blank"});this.showDialog(N.container,
@@ -3676,10 +3676,10 @@ Y.value&&(ha.checked=!0)})):C&&(J.appendChild(la),mxUtils.write(J,mxResources.ge
ha.checked?"selectionOnly":"diagram"}));var Z=this.addCheckbox(J,mxResources.get("transparentBackground"),!1,null,null,"jpeg"!=N&&"webp"!=N),k=document.createElement("select");k.style.maxWidth="260px";k.style.marginLeft="8px";k.style.marginTop="16px";C=document.createElement("option");C.setAttribute("value","light");mxUtils.write(C,mxResources.get("light"));k.appendChild(C);K=document.createElement("option");K.setAttribute("value","dark");mxUtils.write(K,mxResources.get("dark"));k.appendChild(K);
"svg"==N&&mxUtils.lightDarkColorSupported?(C=document.createElement("option"),C.setAttribute("value","auto"),mxUtils.write(C,mxResources.get("automatic")),C.setAttribute("selected","selected"),k.appendChild(C)):Editor.isDarkMode()?K.setAttribute("selected","selected"):C.setAttribute("selected","selected");mxUtils.write(J,mxResources.get("appearance")+":");J.appendChild(k);mxUtils.br(J);ea+=26;var A=this.addCheckbox(J,mxResources.get("shadow"),da.shadowVisible),I=null;if("png"==N||"jpeg"==N||"webp"==
N)I=this.addCheckbox(J,mxResources.get("grid"),!1,this.isOffline()||!this.canvasSupported,!1,!0),ea+=30;var U=this.addCheckbox(J,mxResources.get("includeCopyOfMyDiagram")+":",F,null,null,"jpeg"!=N&&"webp"!=N),O=document.createElement("select");O.style.maxWidth="260px";O.style.marginLeft="28px";"png"==N||"svg"==N?(F=function(){U.checked?O.removeAttribute("disabled"):O.setAttribute("disabled","disabled")},da=document.createElement("option"),da.setAttribute("value","allPages"),mxUtils.write(da,mxResources.get("allPages")),
-O.appendChild(da),da=document.createElement("option"),da.setAttribute("value","currentPage"),mxUtils.write(da,mxResources.get("currentPage")),O.appendChild(da),U.style.marginBottom="12px",O.style.marginBottom="16px",J.appendChild(O),mxUtils.br(J),ea+=20,null!=this.lastEmbedInclude&&(O.value=this.lastEmbedInclude),mxEvent.addListener(U,"change",F),F()):U.style.marginBottom="16px";var T=document.createElement("input");T.style.marginBottom="16px";T.style.marginRight="8px";T.setAttribute("type","checkbox");
-var X=document.createElement("input");X.style.marginBottom="16px";X.style.marginRight="8px";X.setAttribute("type","checkbox");f&&(T.checked=null!=this.lastEmbedImages?this.lastEmbedImages:!0,J.appendChild(T),mxUtils.write(J,mxResources.get("embedImages")),mxUtils.br(J),X.checked=null!=this.lastEmbedFonts?this.lastEmbedImages:!0,J.appendChild(X),mxUtils.write(J,mxResources.get("embedFonts")),mxUtils.br(J),ea+=50);var aa=document.createElement("select");aa.style.maxWidth="260px";aa.style.marginLeft=
+O.appendChild(da),da=document.createElement("option"),da.setAttribute("value","currentPage"),mxUtils.write(da,mxResources.get("currentPage")),O.appendChild(da),U.style.marginBottom="12px",O.style.marginBottom="16px",J.appendChild(O),mxUtils.br(J),ea+=20,null!=this.lastEmbedInclude&&(O.value=this.lastEmbedInclude),mxEvent.addListener(U,"change",F),F()):U.style.marginBottom="16px";var S=document.createElement("input");S.style.marginBottom="16px";S.style.marginRight="8px";S.setAttribute("type","checkbox");
+var X=document.createElement("input");X.style.marginBottom="16px";X.style.marginRight="8px";X.setAttribute("type","checkbox");f&&(S.checked=null!=this.lastEmbedImages?this.lastEmbedImages:!0,J.appendChild(S),mxUtils.write(J,mxResources.get("embedImages")),mxUtils.br(J),X.checked=null!=this.lastEmbedFonts?this.lastEmbedImages:!0,J.appendChild(X),mxUtils.write(J,mxResources.get("embedFonts")),mxUtils.br(J),ea+=50);var aa=document.createElement("select");aa.style.maxWidth="260px";aa.style.marginLeft=
"8px";C=document.createElement("option");C.setAttribute("value","auto");mxUtils.write(C,mxResources.get("automatic"));aa.appendChild(C);F=document.createElement("option");F.setAttribute("value","blank");mxUtils.write(F,mxResources.get("openInNewWindow"));aa.appendChild(F);F=document.createElement("option");F.setAttribute("value","self");mxUtils.write(F,mxResources.get("openInThisWindow"));aa.appendChild(F);F=document.createElement("div");mxUtils.write(F,mxResources.get("LinksLost"));F.style.margin=
-"7px";F.style.display="none";"svg"==N&&(mxUtils.write(J,mxResources.get("links")+":"),J.appendChild(aa),J.appendChild(F),mxUtils.br(J),mxUtils.br(J),ea+=50);l=new CustomDialog(this,J,mxUtils.bind(this,function(){this.lastExportBorder=ba.value;this.lastExportZoom=W.value;this.lastEmbedImages=T.checked;this.lastEmbedFonts=X.checked;this.lastEmbedInclude=O.value;z(W.value,Z.checked,!ha.checked,A.checked,U.checked,T.checked&&f,ba.value,la.checked,("png"==N||"svg"==N)&&"currentPage"==O.value,aa.value,
+"7px";F.style.display="none";"svg"==N&&(mxUtils.write(J,mxResources.get("links")+":"),J.appendChild(aa),J.appendChild(F),mxUtils.br(J),mxUtils.br(J),ea+=50);l=new CustomDialog(this,J,mxUtils.bind(this,function(){this.lastExportBorder=ba.value;this.lastExportZoom=W.value;this.lastEmbedImages=S.checked;this.lastEmbedFonts=X.checked;this.lastEmbedInclude=O.value;z(W.value,Z.checked,!ha.checked,A.checked,U.checked,S.checked&&f,ba.value,la.checked,("png"==N||"svg"==N)&&"currentPage"==O.value,aa.value,
null!=I?I.checked:null,null!=k?k.value:null,Y.value,X.checked)}),null,l,t);this.showDialog(l.container,340,ea,!0,!0,null,null,null,null,!0);W.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?W.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(c,f,l,t,z){var C=document.createElement("div");C.style.whiteSpace="nowrap";var F=this.editor.graph;if(null!=f){var N=document.createElement("h3");mxUtils.write(N,f);N.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";
C.appendChild(N)}var K=this.addCheckbox(C,mxResources.get("fit"),!0),J=this.addCheckbox(C,mxResources.get("shadow"),F.shadowVisible&&t,!t),da=this.addCheckbox(C,l),ea=this.addCheckbox(C,mxResources.get("lightbox"),!0),ca=this.addEditButton(C,ea),W=ca.getEditInput(),ba=1<F.model.getChildCount(F.model.getRoot()),ha=this.addCheckbox(C,mxResources.get("layers"),ba,!ba);ha.style.marginLeft=W.style.marginLeft;ha.style.marginBottom="12px";ha.style.marginTop="8px";mxEvent.addListener(ea,"change",function(){ea.checked?
(ba&&ha.removeAttribute("disabled"),W.removeAttribute("disabled")):(ha.setAttribute("disabled","disabled"),W.setAttribute("disabled","disabled"));W.checked&&ea.checked?ca.getEditSelect().removeAttribute("disabled"):ca.getEditSelect().setAttribute("disabled","disabled")});f=new CustomDialog(this,C,mxUtils.bind(this,function(){c(K.checked,J.checked,da.checked,ea.checked,ca.getLink(),ha.checked)}),null,mxResources.get("embed"),z);this.showDialog(f.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=
@@ -3744,14 +3744,14 @@ W=[K.insertVertex(null,null,"",l,t,z,C,da+"image="+c+";")])):/(\.*<graphml )/.te
413==ha.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))))}),null!=c?this.parseFileData(c,f,F):this.parseFile(K,f,F)):0==c.indexOf("PK")&&null!=K?(ca=!0,this.importZipFile(K,ba,mxUtils.bind(this,function(){W=this.insertTextAt(this.validateFileData(c),l,t,!0,null,J);N(W)}))):/(\.v(sd|dx))($|\?)/i.test(F)||/(\.vs(s|x))($|\?)/i.test(F)||(W=this.insertTextAt(this.validateFileData(c),l,t,!0,null,J,null,null!=ea?mxEvent.isControlDown(ea):null));ca||null==N||N(W);return W};EditorUi.prototype.importFiles=
function(c,f,l,t,z,C,F,N,K,J,da,ea,ca){t=null!=t?t:this.maxImageSize;J=null!=J?J:this.maxImageBytes;var W=null!=f&&null!=l,ba=!0;f=null!=f?f:0;l=null!=l?l:0;var ha=!1;if(!mxClient.IS_CHROMEAPP&&null!=c)for(var la=da||this.resampleThreshold,Y=0;Y<c.length;Y++)if("image/svg"!==c[Y].type.substring(0,9)&&"image/"===c[Y].type.substring(0,6)&&c[Y].size>la){ha=!0;break}var ma=mxUtils.bind(this,function(){var Z=this.editor.graph,k=Z.gridSize;z=null!=z?z:mxUtils.bind(this,function(X,aa,ja,pa,sa,qa,wa,Ba,za){try{if(null!=
X&&"<mxlibrary"==X.substring(0,10))return this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,X,wa)),this.showSidebar(),null;this.isCompatibleString(X)&&1==c.length&&null!=ca&&"drop"==ca.type&&this.isBlankFile()&&!this.canUndo()&&(W=!1,pa=ja=0);return this.importFile(X,aa,ja,pa,sa,qa,wa,Ba,za,W,ea,ca)}catch(Ea){return this.handleError(Ea),null}});C=null!=C?C:mxUtils.bind(this,function(X){Z.setSelectionCells(X)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var A=c.length,
-I=A,U=[],O=mxUtils.bind(this,function(X,aa){U[X]=aa;if(0==--I){this.spinner.stop();if(null!=N)N(U);else{var ja=[];Z.getModel().beginUpdate();try{for(X=0;X<U.length;X++){var pa=U[X]();null!=pa&&(ja=ja.concat(pa))}}finally{Z.getModel().endUpdate()}}C(ja)}}),T=0;T<A;T++)mxUtils.bind(this,function(X){var aa=c[X];if(null!=aa){var ja=new FileReader;ja.onload=mxUtils.bind(this,function(pa){if(null==F||F(aa))try{if("image/"==aa.type.substring(0,6))if("image/svg"==aa.type.substring(0,9)){var sa=Graph.clipSvgDataUri(pa.target.result),
+I=A,U=[],O=mxUtils.bind(this,function(X,aa){U[X]=aa;if(0==--I){this.spinner.stop();if(null!=N)N(U);else{var ja=[];Z.getModel().beginUpdate();try{for(X=0;X<U.length;X++){var pa=U[X]();null!=pa&&(ja=ja.concat(pa))}}finally{Z.getModel().endUpdate()}}C(ja)}}),S=0;S<A;S++)mxUtils.bind(this,function(X){var aa=c[X];if(null!=aa){var ja=new FileReader;ja.onload=mxUtils.bind(this,function(pa){if(null==F||F(aa))try{if("image/"==aa.type.substring(0,6))if("image/svg"==aa.type.substring(0,9)){var sa=Graph.clipSvgDataUri(pa.target.result),
qa=sa.indexOf(","),wa=decodeURIComponent(escape(atob(sa.substring(qa+1)))),Ba=mxUtils.parseXml(wa),za=Ba.getElementsByTagName("svg");if(0<za.length){var Ea=za[0],ra=ea?null:Ea.getAttribute("content");null!=ra&&"<"!=ra.charAt(0)&&"%"!=ra.charAt(0)&&(ra=unescape(window.atob?atob(ra):Base64.decode(ra,!0)));null!=ra&&"%"==ra.charAt(0)&&(ra=decodeURIComponent(ra));null==ra||"<mxfile "!==ra.substring(0,8)&&"<mxGraphModel "!==ra.substring(0,14)?O(X,mxUtils.bind(this,function(){try{if(null!=Ba){var Ma=Ba.getElementsByTagName("svg");
if(0<Ma.length){var Ha=Ma[0],Aa=Ha.getAttribute("width"),Ra=Ha.getAttribute("height");Aa=null!=Aa&&"%"!=Aa.charAt(Aa.length-1)?parseFloat(Aa):NaN;Ra=null!=Ra&&"%"!=Ra.charAt(Ra.length-1)?parseFloat(Ra):NaN;var Za=Ha.getAttribute("viewBox");if(null==Za||0==Za.length)Ha.setAttribute("viewBox","0 0 "+Aa+" "+Ra);else if(isNaN(Aa)||isNaN(Ra)){var La=Za.split(" ");3<La.length&&(Aa=parseFloat(La[2]),Ra=parseFloat(La[3]))}sa=Editor.createSvgDataUri(mxUtils.getXml(Ha));var $a=Math.min(1,Math.min(t/Math.max(1,
Aa)),t/Math.max(1,Ra)),Da=z(sa,aa.type,f+X*k,l+X*k,Math.max(1,Math.round(Aa*$a)),Math.max(1,Math.round(Ra*$a)),aa.name);if(null!=Da&&(isNaN(Aa)||isNaN(Ra))){var x=new Image;x.onload=mxUtils.bind(this,function(){Aa=Math.max(1,x.width);Ra=Math.max(1,x.height);Da[0].geometry.width=Aa;Da[0].geometry.height=Ra;Ha.setAttribute("viewBox","0 0 "+Aa+" "+Ra);sa=Editor.createSvgDataUri(mxUtils.getXml(Ha));var M=sa.indexOf(";");0<M&&(sa=sa.substring(0,M)+sa.substring(sa.indexOf(",",M+1)));Z.setCellStyles("image",
sa,[Da[0]])});x.src=Editor.createSvgDataUri(mxUtils.getXml(Ha))}return Da}}}catch(M){}return null})):O(X,mxUtils.bind(this,function(){return z(ra,"text/xml",f+X*k,l+X*k,0,0,aa.name)}))}else O(X,mxUtils.bind(this,function(){return null}))}else{qa=!1;if("image/png"==aa.type){var ya=ea?null:this.extractGraphModelFromPng(pa.target.result);if(null!=ya&&0<ya.length){var Ca=new Image;Ca.src=pa.target.result;O(X,mxUtils.bind(this,function(){return z(ya,"text/xml",f+X*k,l+X*k,Ca.width,Ca.height,aa.name)}));
qa=!0}}qa||(mxClient.IS_CHROMEAPP?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("dragAndDropNotSupported"),mxResources.get("cancel"),mxUtils.bind(this,function(){}),null,mxResources.get("ok"),mxUtils.bind(this,function(){this.actions.get("import").funct()}))):this.loadImage(pa.target.result,mxUtils.bind(this,function(Ma){this.resizeImage(Ma,pa.target.result,mxUtils.bind(this,function(Ha,Aa,Ra){O(X,mxUtils.bind(this,function(){if(null!=Ha&&Ha.length<J){var Za=ba&&this.isResampleImageSize(aa.size,
da)?Math.min(1,Math.min(t/Aa,t/Ra)):1;return z(Ha,aa.type,f+X*k,l+X*k,Math.round(Aa*Za),Math.round(Ra*Za),aa.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),ba,t,da,aa.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else sa=pa.target.result,z(sa,aa.type,f+X*k,l+X*k,240,160,aa.name,function(Ma){O(X,function(){return Ma})},aa)}catch(Ma){O(X,mxUtils.bind(this,function(){return null})),null!=window.console&&
-console.error(Ma,aa)}else O(X,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(aa.name)?z(null,aa.type,f+X*k,l+X*k,240,160,aa.name,function(pa){O(X,function(){return pa})},aa):"image"==aa.type.substring(0,5)||"application/pdf"==aa.type?ja.readAsDataURL(aa):ja.readAsText(aa)}})(T)});if(ha){ha=[];for(Y=0;Y<c.length;Y++)ha.push(c[Y]);c=ha;this.confirmImageResize(function(Z){ba=Z;ma()},K)}else ma()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&
+console.error(Ma,aa)}else O(X,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(aa.name)?z(null,aa.type,f+X*k,l+X*k,240,160,aa.name,function(pa){O(X,function(){return pa})},aa):"image"==aa.type.substring(0,5)||"application/pdf"==aa.type?ja.readAsDataURL(aa):ja.readAsText(aa)}})(S)});if(ha){ha=[];for(Y=0;Y<c.length;Y++)ha.push(c[Y]);c=ha;this.confirmImageResize(function(Z){ba=Z;ma()},K)}else ma()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&
this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(c,f){f=null!=f?f:!1;var l=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},t=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,z=function(C,F){if(C||f)mxSettings.setResizeImages(C?F:null),mxSettings.save();l();c(F)};null==t||f?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(C){z(C,
!0)},function(C){z(C,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?226:200,!0,!0):z(!1,t)};EditorUi.prototype.parseFile=function(c,f,l){l=null!=l?l:c.name;var t=new FileReader;t.onload=mxUtils.bind(this,function(){this.parseFileData(t.result,f,l)});t.readAsText(c)};EditorUi.prototype.parseFileData=
function(c,f,l){var t=new XMLHttpRequest;t.open("POST",OPEN_URL);t.setRequestHeader("Content-Type","application/x-www-form-urlencoded");t.onreadystatechange=function(){f(t)};t.send("format=xml&filename="+encodeURIComponent(l)+"&data="+encodeURIComponent(c));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(z){}};EditorUi.prototype.isResampleImageSize=function(c,f){f=null!=f?f:this.resampleThreshold;return c>f};EditorUi.prototype.resizeImage=function(c,f,l,t,z,C,
@@ -3759,15 +3759,15 @@ F){z=null!=z?z:this.maxImageSize;var N=Math.max(1,c.width),K=Math.max(1,c.height
this.maxImageSize/2&&f.length>this.maxImageBytes?this.resizeImage(c,f,l,t,z/1.5,C,F):l(f,N,K)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};EditorUi.prototype.loadImage=function(c,f,l){try{var t=new Image;t.onload=function(){t.width=0<t.width?t.width:120;t.height=0<t.height?t.height:120;f(t)};null!=l&&(t.onerror=l);t.src=c}catch(z){if(null!=l)l(z);else throw z;}};EditorUi.prototype.getDefaultSketchMode=function(){var c="1"==urlParams.sketch;return"0"!=
(null!=urlParams.rough?urlParams.rough:c)};var u=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());u.apply(this,arguments);Editor.isSettingsEnabled()&&this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?mxSettings.settings.sketchMode:this.getDefaultSketchMode())};
var p=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();var c=this,f=this.editor.graph,l=f.isEnabled;f.isEnabled=function(){return l.apply(this,arguments)&&!c.isLocked()};Graph.touchStyle&&(f.panningHandler.isPanningTrigger=function(k){var A=k.getEvent();return null==k.getState()&&!mxEvent.isMouseEvent(A)&&!f.freehand.isDrawing()||mxEvent.isPopupTrigger(A)&&(null==k.getState()||mxEvent.isControlDown(A)||mxEvent.isShiftDown(A))});
-f.cellEditor.editPlantUmlData=function(k,A,I){var U=JSON.parse(I);A=new TextareaDialog(c,mxResources.get("plantUml")+":",U.data,function(O){null!=O&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generatePlantUmlImage(O,U.format,function(T,X,aa){c.spinner.stop();f.getModel().beginUpdate();try{if("txt"==U.format)f.labelChanged(k,"<pre>"+T+"</pre>"),f.updateCellSize(k,!0);else{f.setCellStyles("image",c.convertDataUri(T),[k]);var ja=f.model.getGeometry(k);null!=ja&&(ja=ja.clone(),ja.width=
-X,ja.height=aa,f.cellsResized([k],[ja],!1))}f.setAttributeForCell(k,"plantUmlData",JSON.stringify({data:O,format:U.format}))}finally{f.getModel().endUpdate()}},function(T){c.handleError(T)})},null,null,400,220);c.showDialog(A.container,420,300,!0,!0);A.init()};f.cellEditor.editMermaidData=function(k,A,I){var U=JSON.parse(I);A=new TextareaDialog(c,mxResources.get("mermaid")+":",U.data,function(O){null!=O&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generateMermaidImage(O,U.config,
-function(T,X,aa){c.spinner.stop();f.getModel().beginUpdate();try{f.setCellStyles("image",T,[k]);var ja=f.model.getGeometry(k);null!=ja&&(ja=ja.clone(),ja.width=Math.max(ja.width,X),ja.height=Math.max(ja.height,aa),f.cellsResized([k],[ja],!1));f.setAttributeForCell(k,"mermaidData",JSON.stringify({data:O,config:U.config},null,2))}finally{f.getModel().endUpdate()}},function(T){c.handleError(T)})},null,null,400,220);c.showDialog(A.container,420,300,!0,!0);A.init()};var t=f.cellEditor.startEditing;f.cellEditor.startEditing=
+f.cellEditor.editPlantUmlData=function(k,A,I){var U=JSON.parse(I);A=new TextareaDialog(c,mxResources.get("plantUml")+":",U.data,function(O){null!=O&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generatePlantUmlImage(O,U.format,function(S,X,aa){c.spinner.stop();f.getModel().beginUpdate();try{if("txt"==U.format)f.labelChanged(k,"<pre>"+S+"</pre>"),f.updateCellSize(k,!0);else{f.setCellStyles("image",c.convertDataUri(S),[k]);var ja=f.model.getGeometry(k);null!=ja&&(ja=ja.clone(),ja.width=
+X,ja.height=aa,f.cellsResized([k],[ja],!1))}f.setAttributeForCell(k,"plantUmlData",JSON.stringify({data:O,format:U.format}))}finally{f.getModel().endUpdate()}},function(S){c.handleError(S)})},null,null,400,220);c.showDialog(A.container,420,300,!0,!0);A.init()};f.cellEditor.editMermaidData=function(k,A,I){var U=JSON.parse(I);A=new TextareaDialog(c,mxResources.get("mermaid")+":",U.data,function(O){null!=O&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generateMermaidImage(O,U.config,
+function(S,X,aa){c.spinner.stop();f.getModel().beginUpdate();try{f.setCellStyles("image",S,[k]);var ja=f.model.getGeometry(k);null!=ja&&(ja=ja.clone(),ja.width=Math.max(ja.width,X),ja.height=Math.max(ja.height,aa),f.cellsResized([k],[ja],!1));f.setAttributeForCell(k,"mermaidData",JSON.stringify({data:O,config:U.config},null,2))}finally{f.getModel().endUpdate()}},function(S){c.handleError(S)})},null,null,400,220);c.showDialog(A.container,420,300,!0,!0);A.init()};var t=f.cellEditor.startEditing;f.cellEditor.startEditing=
function(k,A){try{var I=this.graph.getAttributeForCell(k,"plantUmlData");if(null!=I)this.editPlantUmlData(k,A,I);else if(I=this.graph.getAttributeForCell(k,"mermaidData"),null!=I&&window.isMermaidEnabled)this.editMermaidData(k,A,I);else{var U=f.getCellStyle(k);"1"==mxUtils.getValue(U,"metaEdit","0")?c.showDataDialog(k):t.apply(this,arguments)}}catch(O){c.handleError(O)}};f.getLinkTitle=function(k){return c.getLinkTitle(k)};f.customLinkClicked=function(k,A){var I=!1;try{var U=this.getGraphBounds();
c.handleCustomLink(k,A);I=!0;c.chromelessResize&&!U.equals(this.getGraphBounds())&&(c.chromelessResize(),this.scrollCellToVisible(A))}catch(O){c.handleError(O)}return I};var z=f.parseBackgroundImage;f.parseBackgroundImage=function(k){var A=z.apply(this,arguments);null!=A&&null!=A.src&&Graph.isPageLink(A.src)&&(A={originalSrc:A.src});return A};var C=f.setBackgroundImage;f.setBackgroundImage=function(k){null!=k&&null!=k.originalSrc&&(k=c.createImageForPageLink(k.originalSrc,c.currentPage,this));C.apply(this,
arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){f.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){f.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",mxUtils.bind(this,function(k,A){k=null!=f.backgroundImage?f.backgroundImage.originalSrc:null;if(null!=k){var I=k.indexOf(",");if(0<I)for(k=k.substring(I+1),A=A.getProperty("patches"),I=0;I<A.length;I++)if(null!=A[I][EditorUi.DIFF_UPDATE]&&null!=A[I][EditorUi.DIFF_UPDATE][k]||
null!=A[I][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(A[I][EditorUi.DIFF_REMOVE],k)){f.refreshBackgroundImage();break}}}));var F=f.getBackgroundImageObject;f.getBackgroundImageObject=function(k,A){var I=F.apply(this,arguments);null!=I&&null!=I.originalSrc&&(I=A?c.createImageForPageLink(I.originalSrc,null,null,!0):{src:I.originalSrc});return I};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://www.drawio.com/doc/faq/predefined-placeholders");
-if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var N=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(k){k=null!=k?k:"";"1"==urlParams.dev&&(k+=(0<k.length?"&":"?")+"dev=1");return N.apply(this,arguments)};var K=f.addClickHandler;f.addClickHandler=function(k,A,I){var U=A;A=function(O,T,X){if(null==T){var aa=mxEvent.getSource(O);"a"==aa.nodeName.toLowerCase()&&(T=aa.getAttribute("href"))}null!=
-T&&f.isCustomLink(T)&&(mxEvent.isTouchEvent(O)||!mxEvent.isPopupTrigger(O))&&f.customLinkClicked(T,X)&&mxEvent.consume(O);null!=U&&U(O,T,X)};K.call(this,k,A,I)};p.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(f.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var J=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(k,A,I){f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(k,["zoomIn","zoomOut","-"],null,I);J.apply(this,arguments);
+if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var N=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(k){k=null!=k?k:"";"1"==urlParams.dev&&(k+=(0<k.length?"&":"?")+"dev=1");return N.apply(this,arguments)};var K=f.addClickHandler;f.addClickHandler=function(k,A,I){var U=A;A=function(O,S,X){if(null==S){var aa=mxEvent.getSource(O);"a"==aa.nodeName.toLowerCase()&&(S=aa.getAttribute("href"))}null!=
+S&&f.isCustomLink(S)&&(mxEvent.isTouchEvent(O)||!mxEvent.isPopupTrigger(O))&&f.customLinkClicked(S,X)&&mxEvent.consume(O);null!=U&&U(O,S,X)};K.call(this,k,A,I)};p.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(f.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var J=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(k,A,I){f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(k,["zoomIn","zoomOut","-"],null,I);J.apply(this,arguments);
f.isSelectionEmpty()||null==c.addSelectionToScratchpad||this.addMenuItems(k,["-","addToScratchpad"],null,I);f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(k,["-","exitGroup","home"],null,I)};var da=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(k,A,I){if(c.editor.graph.isSelectionEmpty())da.apply(this,arguments),c.menus.addMenuItems(k,["copyAsImage"],null,I);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(k,A,I):this.addPopupMenuArrangeItems(k,
A,I),this.addMenuItems(k,"- cut copy copyAsImage duplicate -".split(" "),null,I),this.isShowCellEditItems()||this.addPopupDeleteItem(k,A,I),this.addMenuItems(k,["lockUnlock","-"],null,I),!this.isShowStyleItems()){if(1==f.getSelectionCount()&&!f.isCellLocked(A)&&f.isCellEditable(A)&&(this.addSubmenu("editCell",k,null,mxResources.get("edit")),k.addSeparator(),f.getModel().isEdge(A))){this.addSubmenu("line",k);var U=f.getModel().getGeometry(A);null!=U&&null!=U.points&&0<U.points.length&&this.addMenuItems(k,
["clearWaypoints"],null,I)}1==f.getSelectionCount()&&this.addMenuItems(k,["enterGroup"],null,I);U=c.getSelectionState();null!=U.mergeCell?this.addMenuItem(k,"mergeCells"):(1<U.style.colspan||1<U.style.rowspan)&&this.addMenuItem(k,"unmergeCells")}};this.menus.isShowStyleItems=function(){return"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme};this.menus.isShowHistoryItems=function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;
@@ -3777,20 +3777,20 @@ f.view.validate());W=A;ba=k}));var ha=f.labelLinkClicked;f.labelLinkClicked=func
var la=this.actions.get("print");la.setEnabled(!mxClient.IS_IOS||!navigator.standalone);la.visible=la.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(77,!0,"editGeometry",!0),this.keyHandler.bindAction(75,!0,"tags"),this.keyHandler.bindAction(65,!1,"insertText"),this.keyHandler.bindAction(83,!1,"insertNote"),this.keyHandler.bindAction(68,!1,"insertRectangle"),this.keyHandler.bindAction(70,!1,"insertEllipse"),this.keyHandler.bindAction(76,
!1,"insertLink"),this.keyHandler.bindAction(82,!1,"insertRhombus"),this.keyHandler.bindAction(67,!1,"insertEdge"),this.keyHandler.bindAction(88,!1,"insertFreehand"),this.keyHandler.bindAction(75,!0,"toggleShapes",!0),this.keyHandler.bindAction(54,!0,"adaptiveColors",!0),this.altShiftActions[81]="copyStyle",this.altShiftActions[87]="pasteStyle",this.altShiftActions[83]="synchronize","1"==urlParams.embedInline&&f.addListener(mxEvent.ESCAPE,function(k,A){null!=A&&f.isEnabled()&&!f.isEditing()&&null!=
A.getProperty("event")&&c.actions.get("exit").funct()}),this.installImagePasteHandler(),this.installNativeClipboardHandler();this.addListener("realtimeStateChanged",mxUtils.bind(this,function(){this.updateUserElement()}));this.spinner=this.createSpinner(null,null,24);Graph.fileSupport&&f.addListener(mxEvent.EDITING_STARTED,mxUtils.bind(this,function(k){var A=f.cellEditor.text2,I=null;null!=A&&(mxEvent.addListener(A,"dragleave",function(U){null!=I&&(I.parentNode.removeChild(I),I=null);U.stopPropagation();
-U.preventDefault()}),mxEvent.addListener(A,"dragover",mxUtils.bind(this,function(U){null==I&&(!mxClient.IS_IE||10<document.documentMode)&&(I=this.highlightElement(A));U.stopPropagation();U.preventDefault()})),mxEvent.addListener(A,"drop",mxUtils.bind(this,function(U){null!=I&&(I.parentNode.removeChild(I),I=null);if(0<U.dataTransfer.files.length)this.importFiles(U.dataTransfer.files,0,0,this.maxImageSize,function(T,X,aa,ja,pa,sa){f.insertImage(T,pa,sa)},function(){},function(T){return"image/"==T.type.substring(0,
-6)},function(T){for(var X=0;X<T.length;X++)T[X]()},mxEvent.isControlDown(U));else if(0<=mxUtils.indexOf(U.dataTransfer.types,"text/uri-list")){var O=U.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(O)?this.loadImage(decodeURIComponent(O),mxUtils.bind(this,function(T){var X=Math.max(1,T.width);T=Math.max(1,T.height);var aa=this.maxImageSize;aa=Math.min(1,Math.min(aa/Math.max(1,X)),aa/Math.max(1,T));f.insertImage(decodeURIComponent(O),X*aa,T*aa)})):document.execCommand("insertHTML",
+U.preventDefault()}),mxEvent.addListener(A,"dragover",mxUtils.bind(this,function(U){null==I&&(!mxClient.IS_IE||10<document.documentMode)&&(I=this.highlightElement(A));U.stopPropagation();U.preventDefault()})),mxEvent.addListener(A,"drop",mxUtils.bind(this,function(U){null!=I&&(I.parentNode.removeChild(I),I=null);if(0<U.dataTransfer.files.length)this.importFiles(U.dataTransfer.files,0,0,this.maxImageSize,function(S,X,aa,ja,pa,sa){f.insertImage(S,pa,sa)},function(){},function(S){return"image/"==S.type.substring(0,
+6)},function(S){for(var X=0;X<S.length;X++)S[X]()},mxEvent.isControlDown(U));else if(0<=mxUtils.indexOf(U.dataTransfer.types,"text/uri-list")){var O=U.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(O)?this.loadImage(decodeURIComponent(O),mxUtils.bind(this,function(S){var X=Math.max(1,S.width);S=Math.max(1,S.height);var aa=this.maxImageSize;aa=Math.min(1,Math.min(aa/Math.max(1,X)),aa/Math.max(1,S));f.insertImage(decodeURIComponent(O),X*aa,S*aa)})):document.execCommand("insertHTML",
!1,U.dataTransfer.getData("text/plain"))}else 0<=mxUtils.indexOf(U.dataTransfer.types,"text/html")?document.execCommand("insertHTML",!1,U.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(U.dataTransfer.types,"text/plain")&&document.execCommand("insertHTML",!1,U.dataTransfer.getData("text/plain"));U.stopPropagation();U.preventDefault()})))}));if(Editor.isSettingsEnabled()){la=this.editor.graph.view;var Y=mxSettings.getUnit();la.setUnit(Y);Editor.pageSizeUnit=Y==mxConstants.METERS?mxConstants.MILLIMETERS:
Y;la.addListener("unitChanged",function(k,A){k=A.getProperty("unit");mxSettings.setUnit(k);mxSettings.save();Editor.pageSizeUnit=k==mxConstants.METERS?mxConstants.MILLIMETERS:k});this.ruler=!this.canvasSupported||9==document.documentMode||"1"!=urlParams.ruler&&!mxSettings.isRulerOn()||this.editor.isChromelessView()&&!this.editor.editable?null:new mxDualRuler(this,la.unit);this.refresh()}if("1"==urlParams.styledev){la=document.getElementById("geFooter");null!=la&&(this.styleInput=document.createElement("input"),
this.styleInput.setAttribute("type","text"),this.styleInput.style.position="absolute",this.styleInput.style.top="14px",this.styleInput.style.left="2px",this.styleInput.style.width="98%",this.styleInput.style.visibility="hidden",this.styleInput.style.opacity="0.9",mxEvent.addListener(this.styleInput,"change",mxUtils.bind(this,function(){this.editor.graph.getModel().setStyle(this.editor.graph.getSelectionCell(),this.styleInput.value)})),la.appendChild(this.styleInput),this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,
mxUtils.bind(this,function(k,A){0<this.editor.graph.getSelectionCount()?(k=this.editor.graph.getSelectionCell(),k=this.editor.graph.getModel().getStyle(k),this.styleInput.value=k||"",this.styleInput.style.visibility="visible"):this.styleInput.style.visibility="hidden"})));var ma=this.isSelectionAllowed;this.isSelectionAllowed=function(k){return mxEvent.getSource(k)==this.styleInput?!0:ma.apply(this,arguments)}}la=document.getElementById("geInfo");null!=la&&la.parentNode.removeChild(la);if(Graph.fileSupport&&
(!this.editor.chromeless||this.editor.editable)){var Z=null;mxEvent.addListener(f.container,"dragleave",function(k){f.isEnabled()&&(null!=Z&&(Z.parentNode.removeChild(Z),Z=null),k.stopPropagation(),k.preventDefault())});mxEvent.addListener(f.container,"dragover",mxUtils.bind(this,function(k){null==Z&&(!mxClient.IS_IE||10<document.documentMode)&&(Z=this.highlightElement(f.container));null!=this.sidebar&&this.sidebar.hideTooltip();k.stopPropagation();k.preventDefault()}));mxEvent.addListener(f.container,
-"drop",mxUtils.bind(this,function(k){null!=Z&&(Z.parentNode.removeChild(Z),Z=null);if(f.isEnabled()){var A=mxUtils.convertPoint(f.container,mxEvent.getClientX(k),mxEvent.getClientY(k)),I=k.dataTransfer.files,U=f.view.translate,O=f.view.scale,T=A.x/O-U.x,X=A.y/O-U.y;if(0<I.length)"1"!=urlParams.embed&&mxEvent.isShiftDown(k)?(this.isBlankFile()&&!this.canUndo()&&null!=this.getCurrentFile()&&this.fileLoaded(null),this.openFiles(I,!0)):(mxEvent.isAltDown(k)&&(X=T=null),this.importFiles(I,T,X,this.maxImageSize,
-null,null,null,null,mxEvent.isControlDown(k),null,null,mxEvent.isShiftDown(k),k));else{mxEvent.isAltDown(k)&&(X=T=0);var aa=0<=mxUtils.indexOf(k.dataTransfer.types,"text/uri-list")?k.dataTransfer.getData("text/uri-list"):null;A=this.extractGraphModelFromEvent(k,null!=this.pages);if(null!=A)f.setSelectionCells(this.importXml(A,T,X,!0));else if(0<=mxUtils.indexOf(k.dataTransfer.types,"text/html")){var ja=k.dataTransfer.getData("text/html");A=document.createElement("div");A.innerHTML=Graph.sanitizeHtml(ja);
-var pa=null;I=A.getElementsByTagName("img");null!=I&&1==I.length?(ja=I[0].getAttribute("src"),null==ja&&(ja=I[0].getAttribute("srcset")),/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(ja)||(pa=!0)):(I=A.getElementsByTagName("a"),null!=I&&1==I.length?ja=I[0].getAttribute("href"):(A=A.getElementsByTagName("pre"),null!=A&&1==A.length&&(ja=mxUtils.getTextContent(A[0]))));var sa=!0,qa=mxUtils.bind(this,function(){f.setSelectionCells(this.insertTextAt(ja,T,X,!0,pa,null,sa,mxEvent.isControlDown(k)))});pa&&null!=
-ja&&ja.length>this.resampleThreshold?this.confirmImageResize(function(wa){sa=wa;qa()},mxEvent.isControlDown(k)):qa()}else null!=aa&&/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(aa)?this.loadImage(decodeURIComponent(aa),mxUtils.bind(this,function(wa){var Ba=Math.max(1,wa.width);wa=Math.max(1,wa.height);var za=this.maxImageSize;za=Math.min(1,Math.min(za/Math.max(1,Ba)),za/Math.max(1,wa));f.setSelectionCell(f.insertVertex(null,null,"",T,X,Ba*za,wa*za,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+
-aa+";"))}),mxUtils.bind(this,function(wa){f.setSelectionCells(this.insertTextAt(aa,T,X,!0))})):0<=mxUtils.indexOf(k.dataTransfer.types,"text/plain")&&f.setSelectionCells(this.insertTextAt(k.dataTransfer.getData("text/plain"),T,X,!0))}}k.stopPropagation();k.preventDefault()}),!1)}this.initPages();"1"==urlParams.embed&&this.initializeEmbedMode();this.addListener("currentThemeChanged",mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.updateEntries();this.updateButtonContainer();this.updateDocumentTitle();
+"drop",mxUtils.bind(this,function(k){null!=Z&&(Z.parentNode.removeChild(Z),Z=null);if(f.isEnabled()){var A=mxUtils.convertPoint(f.container,mxEvent.getClientX(k),mxEvent.getClientY(k)),I=k.dataTransfer.files,U=f.view.translate,O=f.view.scale,S=A.x/O-U.x,X=A.y/O-U.y;if(0<I.length)"1"!=urlParams.embed&&mxEvent.isShiftDown(k)?(this.isBlankFile()&&!this.canUndo()&&null!=this.getCurrentFile()&&this.fileLoaded(null),this.openFiles(I,!0)):(mxEvent.isAltDown(k)&&(X=S=null),this.importFiles(I,S,X,this.maxImageSize,
+null,null,null,null,mxEvent.isControlDown(k),null,null,mxEvent.isShiftDown(k),k));else{mxEvent.isAltDown(k)&&(X=S=0);var aa=0<=mxUtils.indexOf(k.dataTransfer.types,"text/uri-list")?k.dataTransfer.getData("text/uri-list"):null;A=this.extractGraphModelFromEvent(k,null!=this.pages);if(null!=A)f.setSelectionCells(this.importXml(A,S,X,!0));else if(0<=mxUtils.indexOf(k.dataTransfer.types,"text/html")){var ja=k.dataTransfer.getData("text/html");A=document.createElement("div");A.innerHTML=Graph.sanitizeHtml(ja);
+var pa=null;I=A.getElementsByTagName("img");null!=I&&1==I.length?(ja=I[0].getAttribute("src"),null==ja&&(ja=I[0].getAttribute("srcset")),/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(ja)||(pa=!0)):(I=A.getElementsByTagName("a"),null!=I&&1==I.length?ja=I[0].getAttribute("href"):(A=A.getElementsByTagName("pre"),null!=A&&1==A.length&&(ja=mxUtils.getTextContent(A[0]))));var sa=!0,qa=mxUtils.bind(this,function(){f.setSelectionCells(this.insertTextAt(ja,S,X,!0,pa,null,sa,mxEvent.isControlDown(k)))});pa&&null!=
+ja&&ja.length>this.resampleThreshold?this.confirmImageResize(function(wa){sa=wa;qa()},mxEvent.isControlDown(k)):qa()}else null!=aa&&/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(aa)?this.loadImage(decodeURIComponent(aa),mxUtils.bind(this,function(wa){var Ba=Math.max(1,wa.width);wa=Math.max(1,wa.height);var za=this.maxImageSize;za=Math.min(1,Math.min(za/Math.max(1,Ba)),za/Math.max(1,wa));f.setSelectionCell(f.insertVertex(null,null,"",S,X,Ba*za,wa*za,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+
+aa+";"))}),mxUtils.bind(this,function(wa){f.setSelectionCells(this.insertTextAt(aa,S,X,!0))})):0<=mxUtils.indexOf(k.dataTransfer.types,"text/plain")&&f.setSelectionCells(this.insertTextAt(k.dataTransfer.getData("text/plain"),S,X,!0))}}k.stopPropagation();k.preventDefault()}),!1)}this.initPages();"1"==urlParams.embed&&this.initializeEmbedMode();this.addListener("currentThemeChanged",mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.updateEntries();this.updateButtonContainer();this.updateDocumentTitle();
this.refresh()}));this.addListener("darkModeChanged",function(){mxClient.IS_SF&&f.view.validateBackground()});f.addListener("enabledChanged",mxUtils.bind(this,function(){f.isEnabled()||this.hideShapePicker()}));c=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==c.embedViewport)mxUtils.fit(this.div);else{var k=parseInt(this.div.offsetLeft),A=parseInt(this.div.offsetWidth),I=c.embedViewport.x+c.embedViewport.width,U=parseInt(this.div.offsetTop),O=parseInt(this.div.offsetHeight),
-T=c.embedViewport.y+c.embedViewport.height;this.div.style.left=Math.max(c.embedViewport.x,Math.min(k,I-A))+"px";this.div.style.top=Math.max(c.embedViewport.y,Math.min(U,T-O))+"px";this.div.style.height=Math.min(c.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(c.embedViewport.width,parseInt(this.div.style.width))+"px"}};if(!this.editor.chromeless||this.editor.editable)if(la=Editor.currentTheme,"simple"==la||"sketch"==la)Editor.currentTheme="",this.doSetCurrentTheme(la,
+S=c.embedViewport.y+c.embedViewport.height;this.div.style.left=Math.max(c.embedViewport.x,Math.min(k,I-A))+"px";this.div.style.top=Math.max(c.embedViewport.y,Math.min(U,S-O))+"px";this.div.style.height=Math.min(c.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(c.embedViewport.width,parseInt(this.div.style.width))+"px"}};if(!this.editor.chromeless||this.editor.editable)if(la=Editor.currentTheme,"simple"==la||"sketch"==la)Editor.currentTheme="",this.doSetCurrentTheme(la,
mxUtils.bind(this,function(){"1"==urlParams.embedInline?this.initializeInlineEmbedMode():(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<Editor.smallScreenWidth&&this.toggleFormatPanel(!1);this.fireEvent(new mxEventObject("themeInitialized"))}),!0);la=!1;null!=urlParams.dark?la=urlParams.dark:(la="dark"==Editor.currentTheme,!Editor.isSettingsEnabled()||"1"==urlParams.embed||la&&"auto"!=mxSettings.settings.darkMode||(la=mxSettings.settings.darkMode));"auto"==la&&
this.isAutoDarkModeSupported()&&(la=window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode("string"===typeof la?"1"==la:la);if(this.isAutoDarkModeSupported())try{window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",mxUtils.bind(this,function(k){this.isAutoDarkMode()&&this.setDarkMode(k.matches)}))}catch(k){this.actions.get("autoMode").setEnabled(!1)}"1"==urlParams["high-contrast"]?this.setHighContrast(!0):Editor.isSettingsEnabled()&&!this.editor.graph.isLightboxView()&&
null!=mxSettings.settings.highContrast&&this.setHighContrast(mxSettings.settings.highContrast);this.installSettings();this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(k,A){f.enableFlowAnimation=Editor.enableAnimations;f.refresh()}));f.enableFlowAnimation=Editor.enableAnimations;screen.width<=Editor.smallScreenWidth&&(this.formatWidth=0);"1"==urlParams.prefetchFonts&&c.editor.loadFonts()};var B=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=function(){if("simple"==
@@ -3835,7 +3835,7 @@ this.div.style.left=parseInt(this.div.style.left)+t-140+"px"):(this.div.style.wi
(c=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,(1200>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)||708>c)&&this.formatWindow.window.toggleMinimized()):this.formatWindow.window.setVisible(!1)}};var H=EditorUi.prototype.toggleFormatPanel;EditorUi.prototype.toggleFormatPanel=function(c){var f=this.formatWindow;null!=f?f.window.setVisible(null!=c?c:!this.isFormatPanelVisible()):H.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=
function(c){if(this.isShapesPanelVisible()!=c){var f=EditorUi.prototype.hsplitPosition;0==f&&(f=this.defaultSidebarWidth);var l=this.hsplitPosition,t=mxUtils.bind(this,function(){this.hsplitPosition=z;this.refresh();this.diagramContainer.scrollLeft-=l-this.hsplitPosition}),z=c?f:0;mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==z?"translateX(0)":"translateX(-100%)");0!=z&&t();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",
0==z?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition","transform 0.3s ease-in-out");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin","top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin",null);0==z&&t()}),
-300)}),10)}};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var S=EditorUi.prototype.isFormatPanelVisible;EditorUi.prototype.isFormatPanelVisible=function(){var c=this.formatWindow;return null!=c?c.window.isVisible():S.apply(this,arguments)};var G=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(c){if(null!=this.sketchWrapperElt&&null!=this.sketchWrapperElt.parentNode){c=null!=c?c:!0;if("1"!=urlParams.embedInline){var f=this.container.clientWidth;this.container==
+300)}),10)}};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var T=EditorUi.prototype.isFormatPanelVisible;EditorUi.prototype.isFormatPanelVisible=function(){var c=this.formatWindow;return null!=c?c.window.isVisible():T.apply(this,arguments)};var G=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(c){if(null!=this.sketchWrapperElt&&null!=this.sketchWrapperElt.parentNode){c=null!=c?c:!0;if("1"!=urlParams.embedInline){var f=this.container.clientWidth;this.container==
document.body&&(f=document.body.clientWidth||document.documentElement.clientWidth);var l=this.getDiagramContainerOffset();var t=l.x;var z=l.y;"simple"==Editor.currentTheme&&(z+=this.sketchMainMenuElt.offsetHeight);this.diagramContainer.style.top=z+"px";this.diagramContainer.style.bottom="0";"simple"==Editor.currentTheme?(this.hsplit.style.top=this.sketchMainMenuElt.offsetHeight+"px",this.sidebarContainer.style.top=this.hsplit.style.top,this.formatContainer.style.top=this.hsplit.style.top,f=Math.max(0,
Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-this.formatWidth,Math.min(this.hsplitPosition,f-this.splitSize-40))),this.sidebarContainer.style.width=f+"px",this.diagramContainer.style.left=f+t+"px",this.tabContainer.style.left=f+"px",this.tabContainer.style.right=this.formatWidth+1+"px",this.sketchMainMenuElt.style.left="0px",this.sketchMainMenuElt.style.right="0px",this.hsplit.style.left=f+"px",this.diagramContainer.style.right=this.formatWidth+"px",
this.formatContainer.style.width=this.formatWidth+"px",this.hsplit.style.bottom=this.tabContainer.offsetHeight+"px",this.diagramContainer.style.bottom=this.hsplit.style.bottom,this.checkTabScrollerOverflow()):(this.diagramContainer.style.left=l.x+"px",this.diagramContainer.style.right="0")}c&&this.editor.graph.sizeDidChange()}else G.apply(this,arguments)};EditorUi.prototype.createShapesPanel=function(c){var f=mxUtils.bind(this,function(t){t=this.createMenu(t,null,"geTitle");t.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";
@@ -3877,12 +3877,12 @@ this.editor.graph;ha.lastPasteXml==ba?ha.pasteCounter++:(ha.lastPasteXml=ba,ha.p
z.textContent.substring(z.textContent.length-15)?z.textContent.replace(/\u00a0/g," "):z.innerHTML:mxUtils.trim(null==z.innerText?mxUtils.getTextContent(z):z.innerText);try{var ea=da.lastIndexOf("%3E");0<=ea&&ea<da.length-3&&(da=da.substring(0,ea+3))}catch(ba){}try{F=z.getElementsByTagName("span"),(K=null!=F&&0<F.length?mxUtils.trim(decodeURIComponent(F[0].textContent)):decodeURIComponent(da))&&(this.isCompatibleString(K)||0==K.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":'))&&(J=!0,da=
K)}catch(ba){}try{if(null!=da&&0<da.length){if(0==da.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":')){var ca=mxUtils.bind(this,function(){try{da=(new MiroImporter).importMiroJson(JSON.parse(da)),this.pasteXml(da,t,J,c)}catch(ba){console.log("Miro import error:",ba)}});"undefined"===typeof MiroImporter?mxscript("js/diagramly/miro/MiroImporter.js",ca):ca()}else this.pasteXml(da,t,J,c,C);try{mxEvent.consume(c)}catch(ba){}}else if(!l){var W=this.editor.graph;W.lastPasteXml=null;W.pasteCounter=
0}}catch(ba){this.handleError(ba)}}}f.innerHTML="&nbsp;"};EditorUi.prototype.showPrintDialog=function(c,f){var l=320;this.editor.graph.isEnabled()&&(l+=40);null!=this.pages&&1<this.pages.length&&(l+=40,this.editor.graph.isEnabled()||(l+=10));null==f||mxClient.IS_CHROMEAPP||"draw.io"!=this.getServiceName()||(l+=20);this.showDialog((new PrintDialog(this,c,f)).container,320,l,!0,!0)};EditorUi.prototype.print=function(c,f){var l=this.editor,t=l.graph,z=this.getPageIndex(this.currentPage),C=null!=z?z+
-1:1,F=mxUtils.bind(this,function(la,Y,ma,Z){var k=la.useCssTransforms,A=la.currentTranslate,I=la.currentScale,U=la.view.translate,O=la.view.scale;la.useCssTransforms&&(la.useCssTransforms=!1,la.currentTranslate=new mxPoint(0,0),la.currentScale=1,la.view.translate=new mxPoint(0,0),la.view.scale=1);var T=la.getGraphBounds(),X=0,aa=0,ja=mxRectangle.fromRectangle(la.pageFormat),pa=f.fit||f.crop||!la.pageVisible,sa=f.scale;ja.width=Math.ceil(ja.width*la.pageScale);ja.height=Math.ceil(ja.height*la.pageScale);
-var qa=1;if(f.fit){qa=f.sheetsAcross;var wa=f.sheetsDown;isNaN(sa)||(ja.width=Math.ceil(ja.width*sa),ja.height=Math.ceil(ja.height*sa));qa=Math.min(ja.height*wa/(T.height/la.view.scale),ja.width*qa/(T.width/la.view.scale))}else qa=isNaN(sa)?1:sa;qa*=1;!pa&&la.pageVisible?(sa=la.getPageLayout(),X-=sa.x*ja.width,aa-=sa.y*ja.height):pa=!0;f.crop&&(f.selection&&(T=t.getBoundingBox(t.getSelectionCells())),ja.width=(T.width+1)*qa/la.view.scale,ja.height=(T.height+1)*qa/la.view.scale);ja.width=Math.ceil(1*
+1:1,F=mxUtils.bind(this,function(la,Y,ma,Z){var k=la.useCssTransforms,A=la.currentTranslate,I=la.currentScale,U=la.view.translate,O=la.view.scale;la.useCssTransforms&&(la.useCssTransforms=!1,la.currentTranslate=new mxPoint(0,0),la.currentScale=1,la.view.translate=new mxPoint(0,0),la.view.scale=1);var S=la.getGraphBounds(),X=0,aa=0,ja=mxRectangle.fromRectangle(la.pageFormat),pa=f.fit||f.crop||!la.pageVisible,sa=f.scale;ja.width=Math.ceil(ja.width*la.pageScale);ja.height=Math.ceil(ja.height*la.pageScale);
+var qa=1;if(f.fit){qa=f.sheetsAcross;var wa=f.sheetsDown;isNaN(sa)||(ja.width=Math.ceil(ja.width*sa),ja.height=Math.ceil(ja.height*sa));qa=Math.min(ja.height*wa/(S.height/la.view.scale),ja.width*qa/(S.width/la.view.scale))}else qa=isNaN(sa)?1:sa;qa*=1;!pa&&la.pageVisible?(sa=la.getPageLayout(),X-=sa.x*ja.width,aa-=sa.y*ja.height):pa=!0;f.crop&&(f.selection&&(S=t.getBoundingBox(t.getSelectionCells())),ja.width=(S.width+1)*qa/la.view.scale,ja.height=(S.height+1)*qa/la.view.scale);ja.width=Math.ceil(1*
ja.width);ja.height=Math.ceil(1*ja.height);Z=null!=Z?"page/id,"+Z:null;if(null==Y){Y=PrintDialog.createPrintPreview(la,qa,null,0,X,aa,pa);Y.title=this.getBaseFilename(!0);Y.pageSelector=!1;Y.mathEnabled=!1;X=f.border;isNaN(X)||(Y.pageMargin=X);f.selection&&(Y.isCellVisible=function(ra){return la.isCellSelected(ra)});var Ba=Y.writeHead;Y.writeHead=function(ra){Ba.apply(this,arguments);mxClient.IS_GC&&(ra.writeln('<style type="text/css">'),ra.writeln("@media print {"),ra.writeln(".MathJax svg { shape-rendering: crispEdges; }"),
ra.writeln("}"),ra.writeln("</style>"));null!=l.fontCss&&(ra.writeln('<style type="text/css">'),ra.writeln(mxUtils.htmlEntities(l.fontCss,!1,!1,!1)),ra.writeln("</style>"));for(var ya=la.getCustomFonts(),Ca=0;Ca<ya.length;Ca++){var Ma=ya[Ca].name,Ha=ya[Ca].url;Graph.isCssFontUrl(Ha)?ra.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(Ha))+'" charset="UTF-8" type="text/css">'):(ra.writeln('<style type="text/css">'),ra.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Ma)+
'";\nsrc: url("'+mxUtils.htmlEntities(Ha)+'");\n}'),ra.writeln("</style>"))}};if(Editor.replaceSvgDataUris){var za=Y.drawBackgroundImage;Y.drawBackgroundImage=function(ra){za.apply(this,arguments);null!=ra.node&&(EditorUi.embedSvgImages(ra.node),t.disableSvgLinks(ra.node,function(ya){ya.setAttribute("href","javascript:void(0)")}))}}var Ea=Y.addGraphFragment;Y.addGraphFragment=function(ra,ya,Ca,Ma,Ha,Aa){Ea.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:Ha.classList.add("geDisableMathJax")};
-f.grid&&(Y.gridSize=la.gridSize,Y.gridSteps=la.view.gridSteps,Y.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:la.view.gridColor);Y.open(null,null,ma,!0,Z,ja,f.selection?la.getSelectionCells():null)}else{T=la.background;if(null==T||""==T||T==mxConstants.NONE)T="#ffffff";Y.backgroundColor=T;Y.autoOrigin=pa;f.grid&&(Y.gridSize=la.gridSize,Y.gridSteps=la.view.gridSteps,Y.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:la.view.gridColor);Y.appendGraph(la,qa,
+f.grid&&(Y.gridSize=la.gridSize,Y.gridSteps=la.view.gridSteps,Y.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:la.view.gridColor);Y.open(null,null,ma,!0,Z,ja,f.selection?la.getSelectionCells():null)}else{S=la.background;if(null==S||""==S||S==mxConstants.NONE)S="#ffffff";Y.backgroundColor=S;Y.autoOrigin=pa;f.grid&&(Y.gridSize=la.gridSize,Y.gridSteps=la.view.gridSteps,Y.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:la.view.gridColor);Y.appendGraph(la,qa,
X,aa,ma,!0,Z,ja,f.selection?la.getSelectionCells():null);ma=la.getCustomFonts();if(null!=Y.wnd)for(ja=0;ja<ma.length;ja++)X=ma[ja].name,aa=ma[ja].url,Graph.isCssFontUrl(aa)?Y.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(aa)+'" charset="UTF-8" type="text/css">'):(Y.wnd.document.writeln('<style type="text/css">'),Y.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(X)+'";\nsrc: url("'+mxUtils.htmlEntities(aa)+'");\n}'),Y.wnd.document.writeln("</style>"))}k&&
(la.useCssTransforms=k,la.currentTranslate=A,la.currentScale=I,la.view.translate=U,la.view.scale=O);return Y}),N=f.pagesFrom,K=f.pagesTo,J=!f.allPages;z=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,f);else{J&&(J=f.selection||N==C&&K==C);if(!J&&null!=this.pages&&this.pages.length){J=0;C=this.pages.length-1;f.allPages||(J=parseInt(N)-1,C=parseInt(K)-1);for(var da=J;da<=C;da++){var ea=this.pages[da];N=ea==this.currentPage?t:null;if(null==N){N=this.createTemporaryGraph(t.stylesheet);
N.shapeForegroundColor=t.shapeForegroundColor;N.shapeBackgroundColor=t.shapeBackgroundColor;K=!0;J=!1;var ca=null,W=null;null==ea.viewState&&null==ea.root&&this.updatePageRoot(ea);null!=ea.viewState&&(K=ea.viewState.pageVisible,J=ea.viewState.mathEnabled,ca=ea.viewState.background,W=ea.viewState.backgroundImage,N.pageFormat=ea.viewState.pageFormat,N.gridSize=ea.viewState.gridSize);null!=W&&null!=W.originalSrc&&(W=this.createImageForPageLink(W.originalSrc,ea));N.background=ca;N.backgroundImage=null!=
@@ -3922,10 +3922,10 @@ docUrl:ra,info:ya,name:Ca}),"*")}),null,null,Y?mxUtils.bind(this,function(ra){th
J.action){null!=J.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(J.messageKey))):null!=J.message&&this.editor.setStatus(mxUtils.htmlEntities(J.message));null!=J.modified&&(this.editor.modified=J.modified);return}if("spinner"==J.action){var Z=null!=J.messageKey?mxResources.get(J.messageKey):J.message;null==J.show||J.show?this.spinner.spin(document.body,Z):this.spinner.stop();return}if("exit"==J.action){this.actions.get("exit").funct();return}if("viewport"==J.action){null!=J.viewport&&
(this.embedViewport=J.viewport,this.editor.graph.refresh(),this.fireEvent(new mxEventObject("embedViewportChanged")));return}if("fullscreenChanged"==J.action){W=null;try{var k=this.diagramContainer.getAttribute("data-scrollState");null!=k&&(this.diagramContainer.removeAttribute("data-scrollState"),W=JSON.parse(k))}catch(ra){}Editor.inlineFullscreen=J.value;this.fireEvent(new mxEventObject("inlineFullscreenChanged"));null!=W&&this.restoreScrollState(W);return}if("snapshot"==J.action){this.sendEmbeddedSvgExport(!0);
return}if("export"==J.action){if("png"==J.format||"xmlpng"==J.format){if(null==J.spin&&null==J.spinKey||this.spinner.spin(document.body,null!=J.spinKey?mxResources.get(J.spinKey):J.spin)){var A=null!=J.xml?J.xml:this.getFileData(!0);this.editor.graph.setEnabled(!1);var I=this.editor.graph,U=mxUtils.bind(this,function(ra,ya){if(J.withSvg)J.withSvg=!1,this.getEmbeddedSvg(A,this.editor.graph,null,!0,function(Ma){U(ra,Ma)},null,null,J.embedImages,this.editor.graph.background,J.scale,J.border,J.shadow,
-"auto");else{this.editor.graph.setEnabled(!0);this.spinner.stop();var Ca=this.createLoadMessage("export");Ca.format=J.format;Ca.message=J;Ca.data=ra;Ca.svg=ya;Ca.xml=A;F.postMessage(JSON.stringify(Ca),"*")}}),O=mxUtils.bind(this,function(ra){null==ra&&(ra=Editor.blankImage);"xmlpng"==J.format&&(ra=Editor.writeGraphModelToPng(ra,"tEXt","mxfile",encodeURIComponent(A)));I!=this.editor.graph&&I.container.parentNode.removeChild(I.container);U(ra)}),T=J.pageId||(null!=this.pages?J.currentPage?this.currentPage.getId():
-this.pages[0].getId():null);if(this.isExportToCanvas()){var X=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=T){var ra=I.getGlobalVariable;I=this.createTemporaryGraph(I.getStylesheet());for(var ya,Ca=0;Ca<this.pages.length;Ca++)if(this.pages[Ca].getId()==T){ya=this.updatePageRoot(this.pages[Ca]);break}null==ya&&(ya=this.currentPage);I.getGlobalVariable=function(Ra){return"page"==Ra?ya.getName():"pagenumber"==Ra?1:ra.apply(this,arguments)};document.body.appendChild(I.container);
+"auto");else{this.editor.graph.setEnabled(!0);this.spinner.stop();var Ca=this.createLoadMessage("export");Ca.format=J.format;Ca.message=J;Ca.data=ra;Ca.svg=ya;Ca.xml=A;F.postMessage(JSON.stringify(Ca),"*")}}),O=mxUtils.bind(this,function(ra){null==ra&&(ra=Editor.blankImage);"xmlpng"==J.format&&(ra=Editor.writeGraphModelToPng(ra,"tEXt","mxfile",encodeURIComponent(A)));I!=this.editor.graph&&I.container.parentNode.removeChild(I.container);U(ra)}),S=J.pageId||(null!=this.pages?J.currentPage?this.currentPage.getId():
+this.pages[0].getId():null);if(this.isExportToCanvas()){var X=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=S){var ra=I.getGlobalVariable;I=this.createTemporaryGraph(I.getStylesheet());for(var ya,Ca=0;Ca<this.pages.length;Ca++)if(this.pages[Ca].getId()==S){ya=this.updatePageRoot(this.pages[Ca]);break}null==ya&&(ya=this.currentPage);I.getGlobalVariable=function(Ra){return"page"==Ra?ya.getName():"pagenumber"==Ra?1:ra.apply(this,arguments)};document.body.appendChild(I.container);
I.model.setRoot(ya.root)}if(null!=J.layerIds){var Ma=I.model,Ha=Ma.getChildCells(Ma.getRoot()),Aa={};for(Ca=0;Ca<J.layerIds.length;Ca++)Aa[J.layerIds[Ca]]=!0;for(Ca=0;Ca<Ha.length;Ca++)Ma.setVisible(Ha[Ca],Aa[Ha[Ca].id]||!1)}Ca=null;J.keepTheme&&(Ca=Editor.isDarkMode()?"dark":"light");this.editor.exportToCanvas(mxUtils.bind(this,function(Ra){O(Ra.toDataURL("image/png"))}),J.width,null,J.background,mxUtils.bind(this,function(){O(null)}),null,null,J.scale,J.transparent,J.shadow,null,I,J.border,null,
-J.grid,Ca)});null!=J.xml&&0<J.xml.length&&(l=!0,this.setFileData(A),l=!1);X()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==J.format?"1":"0")+(null!=T?"&pageId="+T:"")+(null!=J.layerIds&&0<J.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:J.layerIds})):"")+(null!=J.scale?"&scale="+J.scale:"")+"&base64=1&xml="+encodeURIComponent(A))).send(mxUtils.bind(this,function(ra){200<=ra.getStatus()&&299>=ra.getStatus()?U("data:image/png;base64,"+ra.getText()):O(null)}),
+J.grid,Ca)});null!=J.xml&&0<J.xml.length&&(l=!0,this.setFileData(A),l=!1);X()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==J.format?"1":"0")+(null!=S?"&pageId="+S:"")+(null!=J.layerIds&&0<J.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:J.layerIds})):"")+(null!=J.scale?"&scale="+J.scale:"")+"&base64=1&xml="+encodeURIComponent(A))).send(mxUtils.bind(this,function(ra){200<=ra.getStatus()&&299>=ra.getStatus()?U("data:image/png;base64,"+ra.getText()):O(null)}),
mxUtils.bind(this,function(){O(null)}))}}else if(X=mxUtils.bind(this,function(){var ra=this.createLoadMessage("export");ra.message=J;if("html2"==J.format||"html"==J.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var ya=this.getXmlFileData();ra.xml=mxUtils.getXml(ya);ra.data=this.getFileData(null,null,!0,null,null,null,ya);ra.format=J.format}else if("html"==J.format)ya=this.editor.getGraphXml(),ra.data=this.getHtml(ya,this.editor.graph),ra.xml=mxUtils.getXml(ya),ra.format=J.format;
else{mxSvgCanvas2D.prototype.foAltText=null;ya=null!=J.background?J.background:this.editor.graph.background;ya==mxConstants.NONE&&(ya=null);ra.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);ra.format="svg";var Ca=mxUtils.bind(this,function(Ha){this.editor.graph.setEnabled(!0);this.spinner.stop();ra.data=Editor.createSvgDataUri(Ha);F.postMessage(JSON.stringify(ra),"*")}),Ma="auto";J.keepTheme&&(Ma=Editor.isDarkMode()?"dark":"light");null!=J.theme&&(Ma=J.theme);if("xmlsvg"==J.format){if(null==
J.spin&&null==J.spinKey||this.spinner.spin(document.body,null!=J.spinKey?mxResources.get(J.spinKey):J.spin)){Ma=null;if(this.isAutoDarkMode()||Editor.isDarkMode())Ma="auto";null!=J.theme&&(Ma=J.theme);this.getEmbeddedSvg(ra.xml,this.editor.graph,null,!0,Ca,null,null,J.embedImages,ya,J.scale,J.border,J.shadow,Ma)}}else if(null==J.spin&&null==J.spinKey||this.spinner.spin(document.body,null!=J.spinKey?mxResources.get(J.spinKey):J.spin))this.editor.graph.setEnabled(!1),ya=this.editor.graph.getSvg(ya,
@@ -3952,10 +3952,10 @@ new TextareaDialog(this,mxResources.get("layout"),c,mxUtils.bind(this,function(l
t.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");this.alert(mxResources.get("copiedToClipboard"));t.value=C}catch(F){this.handleError(F)}}));z.setAttribute("title","copy");z.className="geBtn";l.appendChild(z)}),!0,null,null,"https://www.drawio.com/doc/faq/apply-layouts");this.showDialog(f.container,620,460,!0,!0);f.init()}))};EditorUi.prototype.loadOrgChartLayouts=function(c){this.createTimeout(null,mxUtils.bind(this,function(f){var l=mxUtils.bind(this,function(){this.loadingOrgChart=
!1;f.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),this.spinner.stop(),c())}),t=mxUtils.bind(this,function(z){this.loadingOrgChart=!1;f.clear()&&this.handleError(z)});"undefined"!==typeof mxOrgChartLayout||this.loadingOrgChart||this.isOffline(!0)?l():this.spinner.spin(document.body,mxResources.get("loading"))&&(this.loadingOrgChart=!0,"1"==urlParams.dev?mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",
function(){mxscript("js/orgchart/mxOrgChartLayout.js",l,null,null,null,t)},null,null,null,t)},null,null,null,t)},null,null,null,t):mxscript(window.DRAWIO_SERVER_URL+"js/orgchart.min.js",l,null,null,null,t))}),onerror)};EditorUi.prototype.importCsv=function(c,f){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c,f)}))};EditorUi.prototype.doImportCsv=function(c,f){try{var l=c.split("\n"),t=[],z=[],C=[],F={};if(0<l.length){var N={},K=this.editor.graph,J=null,da=null,ea=null,ca=
-null,W=null,ba=null,ha=null,la="whiteSpace=wrap;html=1;",Y=null,ma=null,Z="",k="auto",A="auto",I=!1,U=null,O=null,T=40,X=40,aa=100,ja=0,pa=mxUtils.bind(this,function(){null!=f?f(ua):(K.setSelectionCells(ua),K.scrollCellToVisible(K.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),0)}),sa=K.getFreeInsertPoint(),qa=sa.x,wa=sa.y;sa=wa;var Ba=null,za="auto";ma=null;for(var Ea=[],ra=null,ya=null,Ca=0;Ca<l.length&&"#"==l[Ca].charAt(0);){c=
+null,W=null,ba=null,ha=null,la="whiteSpace=wrap;html=1;",Y=null,ma=null,Z="",k="auto",A="auto",I=!1,U=null,O=null,S=40,X=40,aa=100,ja=0,pa=mxUtils.bind(this,function(){null!=f?f(ua):(K.setSelectionCells(ua),K.scrollCellToVisible(K.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),0)}),sa=K.getFreeInsertPoint(),qa=sa.x,wa=sa.y;sa=wa;var Ba=null,za="auto";ma=null;for(var Ea=[],ra=null,ya=null,Ca=0;Ca<l.length&&"#"==l[Ca].charAt(0);){c=
l[Ca].replace(/\r$/,"");for(Ca++;Ca<l.length&&"\\"==c.charAt(c.length-1)&&"#"==l[Ca].charAt(0);)c=c.substring(0,c.length-1)+mxUtils.trim(l[Ca].substring(1)),Ca++;if("#"!=c.charAt(1)){var Ma=c.indexOf(":");if(0<Ma){var Ha=mxUtils.trim(c.substring(1,Ma)),Aa=mxUtils.trim(c.substring(Ma+1));"label"==Ha?Ba=Graph.sanitizeHtml(Aa):"labelname"==Ha&&0<Aa.length&&"-"!=Aa?W=Aa:"labels"==Ha&&0<Aa.length&&"-"!=Aa?ha=JSON.parse(Aa):"style"==Ha?da=Aa:"parentstyle"==Ha?la=Aa:"unknownStyle"==Ha&&"-"!=Aa?ba=Aa:"stylename"==
Ha&&0<Aa.length&&"-"!=Aa?ca=Aa:"styles"==Ha&&0<Aa.length&&"-"!=Aa?ea=JSON.parse(Aa):"vars"==Ha&&0<Aa.length&&"-"!=Aa?J=JSON.parse(Aa):"identity"==Ha&&0<Aa.length&&"-"!=Aa?Y=Aa:"parent"==Ha&&0<Aa.length&&"-"!=Aa?ma=Aa:"namespace"==Ha&&0<Aa.length&&"-"!=Aa?Z=Aa:"width"==Ha?k=Aa:"height"==Ha?A=Aa:"collapsed"==Ha&&"-"!=Aa?I="true"==Aa:"left"==Ha&&0<Aa.length?U=Aa:"top"==Ha&&0<Aa.length?O=Aa:"ignore"==Ha?ya=Aa.split(","):"connect"==Ha?Ea.push(JSON.parse(Aa)):"link"==Ha?ra=Aa:"padding"==Ha?ja=parseFloat(Aa):
-"edgespacing"==Ha?T=parseFloat(Aa):"nodespacing"==Ha?X=parseFloat(Aa):"levelspacing"==Ha?aa=parseFloat(Aa):"layout"==Ha&&(za=Aa)}}}if(null==l[Ca])throw Error(mxResources.get("invalidOrMissingFile"));var Ra=this.editor.csvToArray(l[Ca].replace(/\r$/,""));Ma=c=null;Ha=[];for(Aa=0;Aa<Ra.length;Aa++)Y==Ra[Aa]&&(c=Aa),ma==Ra[Aa]&&(Ma=Aa),Ha.push(mxUtils.trim(Ra[Aa]).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,""));null==Ba&&(Ba="%"+Ha[0]+"%");if(null!=Ea)for(var Za=0;Za<Ea.length;Za++)null==
+"edgespacing"==Ha?S=parseFloat(Aa):"nodespacing"==Ha?X=parseFloat(Aa):"levelspacing"==Ha?aa=parseFloat(Aa):"layout"==Ha&&(za=Aa)}}}if(null==l[Ca])throw Error(mxResources.get("invalidOrMissingFile"));var Ra=this.editor.csvToArray(l[Ca].replace(/\r$/,""));Ma=c=null;Ha=[];for(Aa=0;Aa<Ra.length;Aa++)Y==Ra[Aa]&&(c=Aa),ma==Ra[Aa]&&(Ma=Aa),Ha.push(mxUtils.trim(Ra[Aa]).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,""));null==Ba&&(Ba="%"+Ha[0]+"%");if(null!=Ea)for(var Za=0;Za<Ea.length;Za++)null==
N[Ea[Za].to]&&(N[Ea[Za].to]={});Y=[];for(Aa=Ca+1;Aa<l.length;Aa++){var La=this.editor.csvToArray(l[Aa].replace(/\r$/,""));if(null==La){var $a=40<l[Aa].length?l[Aa].substring(0,40)+"...":l[Aa];throw Error($a+" ("+Aa+"):\n"+mxResources.get("containsValidationErrors"));}0<La.length&&Y.push(La)}K.model.beginUpdate();try{for(Aa=0;Aa<Y.length;Aa++){La=Y[Aa];var Da=null,x=null!=c?Z+La[c]:null;l=!1;null!=x&&(Da=K.model.getCell(x),l=null==Da||0<=mxUtils.indexOf(t,Da));var M=new mxCell(Ba,new mxGeometry(qa,
sa,0,0),da||"whiteSpace=wrap;html=1;");M.collapsed=I;M.vertex=!0;M.id=x;null==Da||l||K.model.setCollapsed(Da,I);for(var Q=0;Q<La.length;Q++)K.setAttributeForCell(M,Ha[Q],La[Q]),null==Da||l||K.setAttributeForCell(Da,Ha[Q],La[Q]);if(null!=W&&null!=ha){var V=ha[M.getAttribute(W)];null!=V&&(K.labelChanged(M,V),null==Da||l||K.cellLabelChanged(Da,V))}if(null!=ca&&null!=ea){var ia=ea[M.getAttribute(ca)];null!=ia&&(M.style=ia)}K.setAttributeForCell(M,"placeholders","1");M.style=K.replacePlaceholders(M,M.style,
J);null==Da||l?K.fireEvent(new mxEventObject("cellsInserted","cells",[M])):(K.model.setStyle(Da,M.style),0>mxUtils.indexOf(C,Da)&&C.push(Da),K.fireEvent(new mxEventObject("cellsInserted","cells",[Da])));l=null!=Da;Da=M;if(!l)for(Za=0;Za<Ea.length;Za++)N[Ea[Za].to][Da.getAttribute(Ea[Za].to)]=Da;null!=ra&&"link"!=ra&&(K.setLinkForCell(Da,Da.getAttribute(ra)),K.setAttributeForCell(Da,ra,null));var ka=this.editor.graph.getPreferredSizeForCell(Da);ma=null!=Ma?K.model.getCell(Z+La[Ma]):null;if(Da.vertex){$a=
@@ -3964,10 +3964,10 @@ A?parseFloat(xa):"auto"==A||"auto"==xa?ka.height+ja:"width"==A?Da.geometry.width
var ta=C.slice(),ua=C.slice();for(Za=0;Za<Ea.length;Za++){var Fa=Ea[Za];for(Aa=0;Aa<t.length;Aa++){Da=t[Aa];var Na=mxUtils.bind(this,function(mb,pb,db){var qb=pb.getAttribute(db.from);if(null!=qb&&""!=qb){qb=qb.split(",");for(var nb=0;nb<qb.length;nb++){var lb=N[db.to][qb[nb]];if(null==lb&&null!=ba){lb=new mxCell(qb[nb],new mxGeometry(qa,wa,0,0),ba);lb.style=K.replacePlaceholders(pb,lb.style,J);var eb=this.editor.graph.getPreferredSizeForCell(lb);lb.geometry.width=eb.width+ja;lb.geometry.height=eb.height+
ja;N[db.to][qb[nb]]=lb;lb.vertex=!0;lb.id=qb[nb];C.push(K.addCell(lb))}if(null!=lb){eb=db.label;null!=db.fromlabel&&(eb=(pb.getAttribute(db.fromlabel)||"")+(eb||""));null!=db.sourcelabel&&(eb=K.replacePlaceholders(pb,db.sourcelabel,J)+(eb||""));null!=db.tolabel&&(eb=(eb||"")+(lb.getAttribute(db.tolabel)||""));null!=db.targetlabel&&(eb=(eb||"")+K.replacePlaceholders(lb,db.targetlabel,J));var tb="target"==db.placeholders==!db.invert?lb:mb;tb=null!=db.style?K.replacePlaceholders(tb,db.style,J):K.createCurrentEdgeStyle();
eb=K.insertEdge(null,null,eb||"",db.invert?lb:mb,db.invert?mb:lb,tb);if(null!=db.labels)for(tb=0;tb<db.labels.length;tb++){var ob=db.labels[tb],ub=new mxCell(ob.label||tb,new mxGeometry(null!=ob.x?ob.x:0,null!=ob.y?ob.y:0,0,0),"resizable=0;html=1;");ub.vertex=!0;ub.connectable=!1;ub.geometry.relative=!0;null!=ob.placeholders&&(ub.value=K.replacePlaceholders("target"==ob.placeholders==!db.invert?lb:mb,ub.value,J));if(null!=ob.dx||null!=ob.dy)ub.geometry.offset=new mxPoint(null!=ob.dx?ob.dx:0,null!=
-ob.dy?ob.dy:0);eb.insert(ub)}if(null!=db.data)for(var Ab in db.data)K.setAttributeForCell(eb,Ab,db.data[Ab]);ua.push(eb);mxUtils.remove(db.invert?mb:lb,ta)}}}});Na(Da,Da,Fa);if(null!=F[Da.id])for(Q=0;Q<F[Da.id].length;Q++)Na(Da,F[Da.id][Q],Fa)}}if(null!=ya)for(Aa=0;Aa<t.length;Aa++)for(Da=t[Aa],Q=0;Q<ya.length;Q++)K.setAttributeForCell(Da,mxUtils.trim(ya[Q]),null);if(0<C.length){var Wa=new mxParallelEdgeLayout(K);Wa.spacing=T;Wa.checkOverlap=!0;var Xa=function(){0<Wa.spacing&&Wa.execute(K.getDefaultParent());
+ob.dy?ob.dy:0);eb.insert(ub)}if(null!=db.data)for(var Ab in db.data)K.setAttributeForCell(eb,Ab,db.data[Ab]);ua.push(eb);mxUtils.remove(db.invert?mb:lb,ta)}}}});Na(Da,Da,Fa);if(null!=F[Da.id])for(Q=0;Q<F[Da.id].length;Q++)Na(Da,F[Da.id][Q],Fa)}}if(null!=ya)for(Aa=0;Aa<t.length;Aa++)for(Da=t[Aa],Q=0;Q<ya.length;Q++)K.setAttributeForCell(Da,mxUtils.trim(ya[Q]),null);if(0<C.length){var Wa=new mxParallelEdgeLayout(K);Wa.spacing=S;Wa.checkOverlap=!0;var Xa=function(){0<Wa.spacing&&Wa.execute(K.getDefaultParent());
for(var mb=0;mb<C.length;mb++){var pb=K.getCellGeometry(C[mb]);pb.x=Math.round(K.snap(pb.x));pb.y=Math.round(K.snap(pb.y));"auto"==k&&(pb.width=Math.round(K.snap(pb.width)));"auto"==A&&(pb.height=Math.round(K.snap(pb.height)))}};if("["==za.charAt(0)){var ab=pa;K.view.validate();this.executeLayouts(K.createLayouts(JSON.parse(za)),function(){Xa();ab()});pa=null}else if("circle"==za){var Oa=new mxCircleLayout(K);Oa.disableEdgeStyle=!1;Oa.resetEdges=!1;var Qa=Oa.isVertexIgnored;Oa.isVertexIgnored=function(mb){return Qa.apply(this,
arguments)||0>mxUtils.indexOf(C,mb)};this.executeLayout(function(){Oa.execute(K.getDefaultParent());Xa()},!0,pa);pa=null}else if("horizontaltree"==za||"verticaltree"==za||"auto"==za&&ua.length==2*C.length-1&&1==ta.length){K.view.validate();var kb=new mxCompactTreeLayout(K,"horizontaltree"==za);kb.levelDistance=X;kb.edgeRouting=!1;kb.resetEdges=!1;kb.sortEdges=!0;this.executeLayout(function(){kb.execute(K.getDefaultParent(),0<ta.length?ta[0]:null)},!0,pa);pa=null}else if("horizontalflow"==za||"verticalflow"==
-za||"auto"==za&&1==ta.length){K.view.validate();var cb=new mxHierarchicalLayout(K,"horizontalflow"==za?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);cb.intraCellSpacing=X;cb.parallelEdgeSpacing=T;cb.interRankCellSpacing=aa;cb.disableEdgeStyle=!1;this.executeLayout(function(){cb.execute(K.getDefaultParent(),ua);K.moveCells(ua,qa,wa)},!0,pa);pa=null}else if("orgchart"==za){K.view.validate();var Ya=new mxOrgChartLayout(K,2,aa,X),gb=Ya.isVertexIgnored;Ya.isVertexIgnored=function(mb){return gb.apply(this,
+za||"auto"==za&&1==ta.length){K.view.validate();var cb=new mxHierarchicalLayout(K,"horizontalflow"==za?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);cb.intraCellSpacing=X;cb.parallelEdgeSpacing=S;cb.interRankCellSpacing=aa;cb.disableEdgeStyle=!1;this.executeLayout(function(){cb.execute(K.getDefaultParent(),ua);K.moveCells(ua,qa,wa)},!0,pa);pa=null}else if("orgchart"==za){K.view.validate();var Ya=new mxOrgChartLayout(K,2,aa,X),gb=Ya.isVertexIgnored;Ya.isVertexIgnored=function(mb){return gb.apply(this,
arguments)||0>mxUtils.indexOf(C,mb)};this.executeLayout(function(){Ya.execute(K.getDefaultParent());Xa()},!0,pa);pa=null}else if("organic"==za||"auto"==za&&ua.length>C.length){K.view.validate();var hb=new mxFastOrganicLayout(K);hb.forceConstant=3*X;hb.disableEdgeStyle=!1;hb.resetEdges=!1;var vb=hb.isVertexIgnored;hb.isVertexIgnored=function(mb){return vb.apply(this,arguments)||0>mxUtils.indexOf(C,mb)};this.executeLayout(function(){hb.execute(K.getDefaultParent());Xa()},!0,pa);pa=null}}this.hideDialog()}finally{K.model.endUpdate()}null!=
pa&&pa()}}catch(mb){this.handleError(mb)}};EditorUi.prototype.getSearch=function(c){var f="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=c&&0<window.location.search.length){var l="?",t;for(t in urlParams)0>mxUtils.indexOf(c,t)&&null!=urlParams[t]&&(f+=l+t+"="+urlParams[t],l="&")}else f=window.location.search;return f};EditorUi.prototype.getUrl=function(c){c=null!=c?c:window.location.pathname;var f=0<c.indexOf("?")?1:0;if("1"==urlParams.offline)c+=window.location.search;else{var l="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),
t;for(t in urlParams)0>mxUtils.indexOf(l,t)&&(c=0==f?c+"?":c+"&",null!=urlParams[t]&&(c+=t+"="+urlParams[t],f++))}return c};EditorUi.prototype.showLinkDialog=function(c,f,l,t,z){c=new LinkDialog(this,c,f,l,!0,t,z);this.showDialog(c.container,440,120,!0,!0);c.init()};EditorUi.prototype.getServiceCount=function(c){var f=1;null==this.drive&&"function"!==typeof window.DriveClient||f++;null==this.dropbox&&"function"!==typeof window.DropboxClient||f++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient||
@@ -4012,12 +4012,12 @@ return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,f,l,t
"<mxfile "===t.substring(0,8)||"<?xml"===t.substring(0,5)||"\x3c!--[if IE]>"===t.substring(0,12);t="<mxlibrary>"===t.substring(0,11);(z||t)&&c.push(l)}}return c};EditorUi.prototype.getLocalStorageFile=function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;var f=localStorage.getItem(c);return{title:c,data:f,isLib:"<mxlibrary>"===f.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();
var CommentsWindow=function(b,e,g,m,u,p){function B(){for(var ba=F.getElementsByTagName("div"),ha=0,la=0;la<ba.length;la++)"none"!=ba[la].style.display&&ba[la].parentNode==F&&ha++;N.style.display=0==ha?"block":"none"}function H(ba,ha,la,Y){function ma(){ha.removeChild(A);ha.removeChild(I);k.style.display="block";Z.style.display="block"}t={div:ha,comment:ba,saveCallback:la,deleteOnCancel:Y};var Z=ha.querySelector(".geCommentTxt"),k=ha.querySelector(".geCommentActionsList"),A=document.createElement("textarea");
A.className="geCommentEditTxtArea";A.style.minHeight=Z.offsetHeight+"px";A.value=ba.content;ha.insertBefore(A,Z);var I=document.createElement("div");I.className="geCommentEditBtns";var U=mxUtils.button(mxResources.get("cancel"),function(){Y?(ha.parentNode.removeChild(ha),B()):ma();t=null});U.className="geCommentEditBtn";I.appendChild(U);var O=mxUtils.button(mxResources.get("save"),function(){Z.innerText="";ba.content=A.value;mxUtils.write(Z,ba.content);ma();la(ba);t=null});mxEvent.addListener(A,"keydown",
-mxUtils.bind(this,function(T){mxEvent.isConsumed(T)||((mxEvent.isControlDown(T)||mxClient.IS_MAC&&mxEvent.isMetaDown(T))&&13==T.keyCode?(O.click(),mxEvent.consume(T)):27==T.keyCode&&(U.click(),mxEvent.consume(T)))}));O.focus();O.className="geCommentEditBtn gePrimaryBtn";I.appendChild(O);ha.insertBefore(I,Z);k.style.display="none";Z.style.display="none";A.focus()}function S(ba,ha){ha.innerText="";ba=new Date(ba.modifiedDate);var la=b.timeSince(ba);null==la&&(la=mxResources.get("lessThanAMinute"));
+mxUtils.bind(this,function(S){mxEvent.isConsumed(S)||((mxEvent.isControlDown(S)||mxClient.IS_MAC&&mxEvent.isMetaDown(S))&&13==S.keyCode?(O.click(),mxEvent.consume(S)):27==S.keyCode&&(U.click(),mxEvent.consume(S)))}));O.focus();O.className="geCommentEditBtn gePrimaryBtn";I.appendChild(O);ha.insertBefore(I,Z);k.style.display="none";Z.style.display="none";A.focus()}function T(ba,ha){ha.innerText="";ba=new Date(ba.modifiedDate);var la=b.timeSince(ba);null==la&&(la=mxResources.get("lessThanAMinute"));
mxUtils.write(ha,mxResources.get("timeAgo",[la],"{1} ago"));ha.setAttribute("title",ba.toLocaleDateString()+" "+ba.toLocaleTimeString())}function G(ba){var ha=document.createElement("img");ha.className="geCommentBusyImg";ha.src=IMAGE_PATH+"/spin.gif";ba.appendChild(ha);ba.busyImg=ha}function P(ba){ba.style.border="1px solid red";ba.busyImg.parentNode==ba&&ba.removeChild(ba.busyImg)}function R(ba){ba.style.border="";ba.busyImg.parentNode==ba&&ba.removeChild(ba.busyImg)}function c(ba,ha,la,Y,ma){function Z(aa,
ja,pa){var sa=document.createElement("li");sa.className="geCommentAction";var qa=document.createElement("a");qa.className="geCommentActionLnk";mxUtils.write(qa,aa);sa.appendChild(qa);mxEvent.addListener(qa,"click",function(wa){ja(wa,ba);wa.preventDefault();mxEvent.consume(wa)});X.appendChild(sa);pa&&(sa.style.display="none")}function k(){function aa(sa){ja.push(pa);if(null!=sa.replies)for(var qa=0;qa<sa.replies.length;qa++)pa=pa.nextSibling,aa(sa.replies[qa])}var ja=[],pa=I;aa(ba);return{pdiv:pa,
replies:ja}}function A(aa,ja,pa,sa,qa){function wa(){G(ra);ba.addReply(Ea,function(ya){Ea.id=ya;ba.replies.push(Ea);R(ra);pa&&pa()},function(ya){Ba();P(ra);b.handleError(ya,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},sa,qa)}function Ba(){H(Ea,ra,function(ya){wa()},!0)}var za=k().pdiv,Ea=b.newComment(aa,b.getCurrentUser());Ea.pCommentId=ba.id;null==ba.replies&&(ba.replies=[]);var ra=c(Ea,ba.replies,za,Y+1);ja?Ba():wa()}if(ma||!ba.isResolved){N.style.display="none";var I=
-document.createElement("div");I.className="geCommentContainer";I.setAttribute("data-commentId",ba.id);I.style.marginLeft=20*Y+5+"px";ba.isResolved&&(z.style.opacity="0.7");var U=document.createElement("div");U.className="geCommentHeader";var O=document.createElement("img");O.className="geCommentUserImg";O.src=null!=ba.user&&null!=ba.user.pictureUrl?ba.user.pictureUrl:Editor.userImage;U.appendChild(O);O=document.createElement("div");O.className="geCommentHeaderTxt";U.appendChild(O);var T=document.createElement("div");
-T.className="geCommentUsername";mxUtils.write(T,null!=ba.user?ba.user.displayName:mxResources.get("unknownUser"));O.appendChild(T);T=document.createElement("div");T.className="geCommentDate";T.setAttribute("data-commentId",ba.id);S(ba,T);O.appendChild(T);I.appendChild(U);U=document.createElement("div");U.className="geCommentTxt";mxUtils.write(U,ba.content||"");I.appendChild(U);ba.isLocked&&(I.style.opacity="0.5");U=document.createElement("div");U.className="geCommentActions";var X=document.createElement("ul");
+document.createElement("div");I.className="geCommentContainer";I.setAttribute("data-commentId",ba.id);I.style.marginLeft=20*Y+5+"px";ba.isResolved&&(z.style.opacity="0.7");var U=document.createElement("div");U.className="geCommentHeader";var O=document.createElement("img");O.className="geCommentUserImg";O.src=null!=ba.user&&null!=ba.user.pictureUrl?ba.user.pictureUrl:Editor.userImage;U.appendChild(O);O=document.createElement("div");O.className="geCommentHeaderTxt";U.appendChild(O);var S=document.createElement("div");
+S.className="geCommentUsername";mxUtils.write(S,null!=ba.user?ba.user.displayName:mxResources.get("unknownUser"));O.appendChild(S);S=document.createElement("div");S.className="geCommentDate";S.setAttribute("data-commentId",ba.id);T(ba,S);O.appendChild(S);I.appendChild(U);U=document.createElement("div");U.className="geCommentTxt";mxUtils.write(U,ba.content||"");I.appendChild(U);ba.isLocked&&(I.style.opacity="0.5");U=document.createElement("div");U.className="geCommentActions";var X=document.createElement("ul");
X.className="geCommentActionsList";U.appendChild(X);f||ba.isLocked||0!=Y&&!l||Z(mxResources.get("reply"),function(){A("",!0)},ba.isResolved);O=b.getCurrentUser();null==O||null==ba.user||O.id!=ba.user.id||f||ba.isLocked||(Z(mxResources.get("edit"),function(){function aa(){H(ba,I,function(){G(I);ba.editComment(ba.content,function(){R(I)},function(ja){P(I);aa();b.handleError(ja,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}aa()},ba.isResolved),Z(mxResources.get("delete"),
function(){b.confirm(mxResources.get("areYouSure"),function(){G(I);ba.deleteComment(function(aa){if(!0===aa){aa=I.querySelector(".geCommentTxt");aa.innerText="";mxUtils.write(aa,mxResources.get("msgDeleted"));var ja=I.querySelectorAll(".geCommentAction");for(aa=0;aa<ja.length;aa++)ja[aa].parentNode.removeChild(ja[aa]);R(I);I.style.opacity="0.5"}else{ja=k(ba).replies;for(aa=0;aa<ja.length;aa++)F.removeChild(ja[aa]);for(aa=0;aa<ha.length;aa++)if(ha[aa]==ba){ha.splice(aa,1);break}N.style.display=0==
F.getElementsByTagName("div").length?"block":"none"}},function(aa){P(I);b.handleError(aa,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},ba.isResolved));f||ba.isLocked||0!=Y||Z(ba.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(aa){function ja(){var pa=aa.target;pa.innerText="";ba.isResolved=!ba.isResolved;mxUtils.write(pa,ba.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var sa=ba.isResolved?"none":"",qa=k(ba).replies,wa=
@@ -4030,11 +4030,11 @@ var ea=!1;mxEvent.addListener(da,"click",function(ba){(ea=!ea)?da.classList.add(
'<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',C.setAttribute("title",mxResources.get("save")),C.className="geButton geAdaptiveAsset",mxEvent.addListener(C,"click",function(ba){p();ba.preventDefault();mxEvent.consume(ba)}),K.appendChild(C));z.appendChild(K);var ca=[],W=mxUtils.bind(this,function(){this.hasError=!1;if(null!=t)try{t.div=t.div.cloneNode(!0);var ba=t.div.querySelector(".geCommentEditTxtArea"),ha=t.div.querySelector(".geCommentEditBtns");t.comment.content=ba.value;
ba.parentNode.removeChild(ba);ha.parentNode.removeChild(ha)}catch(la){b.handleError(la)}F.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>";l=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(la){function Y(ma){if(null!=ma){ma.sort(function(k,A){return new Date(k.modifiedDate)-new Date(A.modifiedDate)});for(var Z=0;Z<ma.length;Z++)Y(ma[Z].replies)}}la.sort(function(ma,
Z){return new Date(ma.modifiedDate)-new Date(Z.modifiedDate)});F.innerText="";F.appendChild(N);N.style.display="block";ca=la;for(la=0;la<ca.length;la++)Y(ca[la].replies),c(ca[la],ca,null,0,ea);null!=t&&null==t.comment.id&&null==t.comment.pCommentId&&(F.appendChild(t.div),H(t.comment,t.div,t.saveCallback,t.deleteOnCancel))},mxUtils.bind(this,function(la){F.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(la&&la.message?": "+la.message:""));this.hasError=!0})):F.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});
-W();this.refreshComments=W;K=mxUtils.bind(this,function(){function ba(Z){var k=la[Z.id];if(null!=k)for(S(Z,k),k=0;null!=Z.replies&&k<Z.replies.length;k++)ba(Z.replies[k])}if(this.window.isVisible()){for(var ha=F.querySelectorAll(".geCommentDate"),la={},Y=0;Y<ha.length;Y++){var ma=ha[Y];la[ma.getAttribute("data-commentId")]=ma}for(Y=0;Y<ca.length;Y++)ba(ca[Y])}});setInterval(K,6E4);this.refreshCommentsTime=K;this.window=new mxWindow(mxResources.get("comments"),z,e,g,m,u,!0,!0);this.window.minimumSize=
-new mxRectangle(0,0,260,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!0)},ConfirmDialog=function(b,e,g,m,u,p,B,H,S,G,P){var R=document.createElement("div");R.style.textAlign="center";P=null!=P?P:44;var c=document.createElement("div");c.style.padding="6px";c.style.overflow="auto";c.style.maxHeight=
+W();this.refreshComments=W;K=mxUtils.bind(this,function(){function ba(Z){var k=la[Z.id];if(null!=k)for(T(Z,k),k=0;null!=Z.replies&&k<Z.replies.length;k++)ba(Z.replies[k])}if(this.window.isVisible()){for(var ha=F.querySelectorAll(".geCommentDate"),la={},Y=0;Y<ha.length;Y++){var ma=ha[Y];la[ma.getAttribute("data-commentId")]=ma}for(Y=0;Y<ca.length;Y++)ba(ca[Y])}});setInterval(K,6E4);this.refreshCommentsTime=K;this.window=new mxWindow(mxResources.get("comments"),z,e,g,m,u,!0,!0);this.window.minimumSize=
+new mxRectangle(0,0,260,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!0)},ConfirmDialog=function(b,e,g,m,u,p,B,H,T,G,P){var R=document.createElement("div");R.style.textAlign="center";P=null!=P?P:44;var c=document.createElement("div");c.style.padding="6px";c.style.overflow="auto";c.style.maxHeight=
P+"px";c.style.lineHeight="1.2em";mxUtils.write(c,e);R.appendChild(c);null!=G&&(c=document.createElement("div"),c.style.padding="6px 0 6px 0",e=document.createElement("img"),e.setAttribute("src",G),c.appendChild(e),R.appendChild(c));G=document.createElement("div");G.style.textAlign="center";G.style.whiteSpace="nowrap";var f=document.createElement("input");f.setAttribute("type","checkbox");p=mxUtils.button(p||mxResources.get("cancel"),function(){b.hideDialog();null!=m&&m(f.checked)});p.className="geBtn";
null!=H&&(p.innerHTML=H+"<br>"+p.innerHTML,p.style.paddingBottom="8px",p.style.paddingTop="8px",p.style.height="auto",p.style.width="40%");b.editor.cancelFirst&&G.appendChild(p);var l=mxUtils.button(u||mxResources.get("ok"),function(){b.hideDialog();null!=g&&g(f.checked)});G.appendChild(l);null!=B?(l.innerHTML=B+"<br>"+l.innerHTML+"<br>",l.style.paddingBottom="8px",l.style.paddingTop="8px",l.style.height="auto",l.className="geBtn",l.style.width="40%"):l.className="geBtn gePrimaryBtn";b.editor.cancelFirst||
-G.appendChild(p);R.appendChild(G);S?(G.style.marginTop="10px",c=document.createElement("p"),c.style.marginTop="20px",c.style.marginBottom="0px",c.appendChild(f),u=document.createElement("span"),mxUtils.write(u," "+mxResources.get("rememberThisSetting")),c.appendChild(u),R.appendChild(c),mxEvent.addListener(u,"click",function(t){f.checked=!f.checked;mxEvent.consume(t)})):G.style.marginTop="12px";this.init=function(){l.focus()};this.container=R},HeadlessEditorUi=function(){EditorUi.call(this,new Editor(!0),
+G.appendChild(p);R.appendChild(G);T?(G.style.marginTop="10px",c=document.createElement("p"),c.style.marginTop="20px",c.style.marginBottom="0px",c.appendChild(f),u=document.createElement("span"),mxUtils.write(u," "+mxResources.get("rememberThisSetting")),c.appendChild(u),R.appendChild(c),mxEvent.addListener(u,"click",function(t){f.checked=!f.checked;mxEvent.consume(t)})):G.style.marginTop="12px";this.init=function(){l.focus()};this.container=R},HeadlessEditorUi=function(){EditorUi.call(this,new Editor(!0),
document.createElement("div"),!0)};mxUtils.extend(HeadlessEditorUi,EditorUi);HeadlessEditorUi.prototype.createUi=function(){};HeadlessEditorUi.prototype.addTrees=function(){};HeadlessEditorUi.prototype.onBeforeUnload=function(){};HeadlessEditorUi.prototype.updateActionStates=function(){};function DiagramPage(b,e){this.node=b;null!=e?this.node.setAttribute("id",e):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.diagramModified=!1;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")};
DiagramPage.prototype.setName=function(b){null==b?this.node.removeAttribute("name"):this.node.setAttribute("name",b)};DiagramPage.prototype.setDiagramModified=function(b){this.diagramModified=b};DiagramPage.prototype.isDiagramModified=function(){return this.diagramModified};function RenamePage(b,e,g){this.ui=b;this.page=e;this.previous=this.name=g}
RenamePage.prototype.execute=function(){var b=this.page.getName();this.page.setName(this.previous);this.name=this.previous;this.previous=b;this.ui.editor.graph.updatePlaceholders();this.ui.editor.fireEvent(new mxEventObject("pageRenamed"))};function MovePage(b,e,g){this.ui=b;this.oldIndex=e;this.newIndex=g}
@@ -4056,7 +4056,7 @@ function(){b.checkDefaultParent()}));var p=mxUtils.bind(this,function(){this.upd
this.toolbar&&this.toolbar.updateZoom()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(B,H){this.scrollToPage();this.updateHashObject()}));mxEvent.addListener(window,"resize",mxUtils.bind(this,function(){this.checkTabScrollerOverflow()}))}};
EditorUi.prototype.scrollToPage=function(b,e){var g=null!=b?this.getPageIndex(b):this.getSelectedPageIndex(),m=null!=b?b:this.currentPage;null!=g&&null!=this.tabScroller&&this.tabScroller.children.length>g&&null!=this.tabScroller.children[g]&&(m!=this.lastScrollPage||e)&&(this.tabScroller.children[g].scrollIntoView({block:"nearest",inline:null!=b?"nearest":"center"}),this.tabScroller.children[g].className="geTab gePageTab geActivePage",this.lastScrollPage=m)};
EditorUi.prototype.restoreViewState=function(b,e,g){b=null!=b?this.getPageById(b.getId()):null;var m=this.editor.graph;null!=b&&null!=this.currentPage&&null!=this.pages&&(b!=this.currentPage?this.selectPage(b,!0,e):(m.setViewState(e),this.editor.updateGraphComponents(),m.view.revalidate(),m.sizeDidChange()),m.container.scrollLeft=m.view.translate.x*m.view.scale+e.scrollLeft,m.container.scrollTop=m.view.translate.y*m.view.scale+e.scrollTop,m.restoreSelection(g))};
-Graph.prototype.createViewState=function(b){var e=b.getAttribute("page"),g=parseFloat(b.getAttribute("pageScale")),m=parseFloat(b.getAttribute("pageWidth")),u=parseFloat(b.getAttribute("pageHeight")),p=b.getAttribute("background"),B=this.parseBackgroundImage(b.getAttribute("backgroundImage")),H=b.getAttribute("extFonts");if(H)try{H=H.split("|").map(function(S){S=S.split("^");return{name:S[0],url:S[1]}})}catch(S){console.log("ExtFonts format error: "+S.message)}return{gridEnabled:"0"!=b.getAttribute("grid"),
+Graph.prototype.createViewState=function(b){var e=b.getAttribute("page"),g=parseFloat(b.getAttribute("pageScale")),m=parseFloat(b.getAttribute("pageWidth")),u=parseFloat(b.getAttribute("pageHeight")),p=b.getAttribute("background"),B=this.parseBackgroundImage(b.getAttribute("backgroundImage")),H=b.getAttribute("extFonts");if(H)try{H=H.split("|").map(function(T){T=T.split("^");return{name:T[0],url:T[1]}})}catch(T){console.log("ExtFonts format error: "+T.message)}return{gridEnabled:"0"!=b.getAttribute("grid"),
gridSize:parseFloat(b.getAttribute("gridSize"))||mxGraph.prototype.gridSize,guidesEnabled:"0"!=b.getAttribute("guides"),foldingEnabled:"0"!=b.getAttribute("fold"),shadowVisible:"1"==b.getAttribute("shadow"),pageVisible:this.isLightboxView()?!1:null!=e?"0"!=e:this.defaultPageVisible,background:null!=p&&0<p.length?p:null,backgroundImage:B,pageScale:isNaN(g)?mxGraph.prototype.pageScale:g,pageFormat:isNaN(m)||isNaN(u)?"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:
mxSettings.getPageFormat():new mxRectangle(0,0,m,u),tooltips:"0"!=b.getAttribute("tooltips"),connect:"0"!=b.getAttribute("connect"),arrows:"0"!=b.getAttribute("arrows"),mathEnabled:"1"==b.getAttribute("math"),adaptiveColors:b.getAttribute("adaptiveColors"),selectionCells:null,defaultParent:null,scrollbars:this.defaultScrollbars,scale:1,hiddenTags:[],extFonts:H||[]}};
Graph.prototype.saveViewState=function(b,e,g,m){g||(e.setAttribute("grid",(null==b?this.defaultGridEnabled:b.gridEnabled)?"1":"0"),e.setAttribute("page",(null==b?this.defaultPageVisible:b.pageVisible)?"1":"0"),e.setAttribute("gridSize",null!=b?b.gridSize:mxGraph.prototype.gridSize),e.setAttribute("guides",null==b||b.guidesEnabled?"1":"0"),e.setAttribute("tooltips",null==b||b.tooltips?"1":"0"),e.setAttribute("connect",null==b||b.connect?"1":"0"),e.setAttribute("arrows",null==b||b.arrows?"1":"0"),e.setAttribute("fold",
@@ -4080,7 +4080,7 @@ EditorUi.prototype.insertPage=function(b,e,g){this.editor.graph.isEnabled()&&(th
EditorUi.prototype.createPage=function(b,e,g){e=new DiagramPage((null!=this.fileNode?this.fileNode.ownerDocument:document).createElement("diagram"),e);e.setName(null!=b?b:this.createPageName());this.initDiagramNode(e,g);return e};EditorUi.prototype.createPageName=function(){for(var b={},e=0;e<this.pages.length;e++){var g=this.pages[e].getName();null!=g&&0<g.length&&(b[g]=g)}e=this.pages.length;do g=mxResources.get("pageWithNumber",[++e]);while(null!=b[g]);return g};
EditorUi.prototype.removePage=function(b){try{var e=this.editor.graph,g=mxUtils.indexOf(this.pages,b);if(e.isEnabled()&&0<=g){this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1);e.model.beginUpdate();try{var m=this.currentPage;m==b&&1<this.pages.length?(g==this.pages.length-1?g--:g++,m=this.pages[g]):1>=this.pages.length&&(m=this.insertPage(),e.model.execute(new RenamePage(this,m,mxResources.get("pageWithNumber",[1]))));e.model.execute(new ChangePage(this,b,m))}finally{e.model.endUpdate()}}}catch(u){this.handleError(u)}return b};
EditorUi.prototype.duplicatePage=function(b,e){var g=null;try{var m=this.editor.graph;if(m.isEnabled()){m.isEditing()&&m.stopEditing();var u=b.node.cloneNode(!1);u.removeAttribute("id");var p={},B=m.createCellLookup([m.model.root]);g=new DiagramPage(u);g.root=m.cloneCell(m.model.root,null,p);var H=new mxGraphModel;H.prefix=Editor.guid()+"-";H.setRoot(g.root);m.updateCustomLinks(m.createCellMapping(p,B),[g.root]);g.viewState=b==this.currentPage?m.getViewState():b.viewState;this.initDiagramNode(g);
-g.viewState.scale=1;delete g.viewState.scrollLeft;delete g.viewState.scrollTop;delete g.viewState.currentRoot;delete g.viewState.defaultParent;g.setName(e);g=this.insertPage(g,mxUtils.indexOf(this.pages,b)+1)}}catch(S){this.handleError(S)}return g};EditorUi.prototype.initDiagramNode=function(b,e){null==e&&(e=(new mxCodec(mxUtils.createXmlDocument())).encode(new mxGraphModel(b.root)));this.editor.graph.saveViewState(b.viewState,e);EditorUi.removeChildNodes(b.node);b.node.appendChild(e)};
+g.viewState.scale=1;delete g.viewState.scrollLeft;delete g.viewState.scrollTop;delete g.viewState.currentRoot;delete g.viewState.defaultParent;g.setName(e);g=this.insertPage(g,mxUtils.indexOf(this.pages,b)+1)}}catch(T){this.handleError(T)}return g};EditorUi.prototype.initDiagramNode=function(b,e){null==e&&(e=(new mxCodec(mxUtils.createXmlDocument())).encode(new mxGraphModel(b.root)));this.editor.graph.saveViewState(b.viewState,e);EditorUi.removeChildNodes(b.node);b.node.appendChild(e)};
EditorUi.prototype.clonePages=function(b){for(var e=[],g=[],m=0;m<b.length;m++)try{g.push(this.clonePage(b[m]))}catch(u){e.push(mxResources.get("pageWithNumber",[m+1])+": "+u.toString())}if(0<e.length){b=Error(e.join("\n"));try{0<g.length&&(b.fallbackFileData=this.getXmlForPages(g))}catch(u){}throw b;}return g};
EditorUi.prototype.clonePage=function(b){this.updatePageRoot(b);var e=new DiagramPage(b.node.cloneNode(!0)),g=b==this.currentPage?this.editor.graph.getViewState():b.viewState;e.viewState=mxUtils.clone(g,EditorUi.transientViewStateProperties);e.root=this.editor.graph.model.cloneCell(b.root,null,!0);e.diagramModified=b.diagramModified;return e};
EditorUi.prototype.renamePage=function(b){if(this.editor.graph.isEnabled()){var e=new FilenameDialog(this,b.getName(),mxResources.get("rename"),mxUtils.bind(this,function(g){null!=g&&0<g.length&&this.editor.graph.model.execute(new RenamePage(this,b,g))}),mxResources.get("rename"));this.showDialog(e.container,300,80,!0,!0);e.init()}return b};EditorUi.prototype.movePage=function(b,e){this.editor.graph.model.execute(new MovePage(this,b,e))};
@@ -4098,25 +4098,25 @@ EditorUi.prototype.createLeftScrollTab=function(){return this.createControlTab(n
EditorUi.prototype.createRightScrollTab=function(){return this.createControlTab(null,Editor.thinArrowRightImage,mxUtils.bind(this,function(b){var e=Math.max(60,this.tabScroller.clientWidth/2);null!=this.tabScroller.scrollBy?this.tabScroller.scrollBy({left:e,top:0,behavior:"smooth"}):this.tabScroller.scrollLeft+=e;mxEvent.consume(b)}))};
EditorUi.prototype.createPageMenuTab=function(){return this.createControlTab(mxResources.get("pages"),Editor.verticalDotsImage,mxUtils.bind(this,function(b){this.editor.graph.popupMenuHandler.hideMenu();var e=new mxPopupMenu(mxUtils.bind(this,function(u,p){this.menus.get("pages").funct(u,p)}));e.div.className+=" geMenubarMenu";e.smartSeparators=!0;e.showDisabled=!0;e.autoExpand=!0;e.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(e,arguments);e.destroy()});var g=mxEvent.getClientX(b),
m=mxEvent.getClientY(b);e.popup(g,m,null,b);this.setCurrentMenu(e);mxEvent.consume(b)}))};EditorUi.prototype.createTabForPage=function(b,e){var g=this.createTab(),m=b.getName()||mxResources.get("untitled"),u=b.getId();g.setAttribute("title",m+(null!=u?" ("+u+")":"")+" ["+e+"]");e=document.createElement("span");e.style.maxWidth="160px";e.style.textOverflow="ellipsis";e.style.overflow="hidden";mxUtils.write(e,m);g.appendChild(e);this.addTabListeners(b,g);return g};
-EditorUi.prototype.addTabListeners=function(b,e){mxEvent.disableContextMenu(e);var g=this.editor.graph;mxEvent.addListener(e,"dblclick",mxUtils.bind(this,function(S){this.renamePage(b);mxEvent.consume(S)}));var m=document.createElement("div");m.className="geTabMenuButton";m.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";m.style.backgroundPosition="center center";m.style.backgroundRepeat="no-repeat";m.style.backgroundSize="10px";e.appendChild(m);var u=!1,p=!1,B=mxUtils.bind(this,
-function(S){u=null!=this.currentMenu;p=b==this.currentPage;this.scrollToPage(b);g.isMouseDown||p||this.selectPage(b)}),H=mxUtils.bind(this,function(S){if(g.isEnabled()&&!g.isMouseDown&&(p&&(mxEvent.isTouchEvent(S)||mxEvent.getSource(S)==m)||mxEvent.isPopupTrigger(S))&&(g.popupMenuHandler.hideMenu(),this.hideCurrentMenu(),!mxEvent.isTouchEvent(S)||!u)){var G=new mxPopupMenu(this.createPageMenu(b));G.div.className+=" geMenubarMenu";G.smartSeparators=!0;G.showDisabled=!0;G.autoExpand=!0;G.hideMenu=mxUtils.bind(this,
-function(){mxPopupMenu.prototype.hideMenu.apply(G,arguments);this.resetCurrentMenu();G.destroy()});var P=mxEvent.getClientX(S),R=mxEvent.getClientY(S);G.popup(P,R,null,S);this.setCurrentMenu(G,e)}mxEvent.consume(S)});mxEvent.addGestureListeners(m,B,null,H);mxEvent.addGestureListeners(e,B,null,H)};
+EditorUi.prototype.addTabListeners=function(b,e){mxEvent.disableContextMenu(e);var g=this.editor.graph;mxEvent.addListener(e,"dblclick",mxUtils.bind(this,function(T){this.renamePage(b);mxEvent.consume(T)}));var m=document.createElement("div");m.className="geTabMenuButton";m.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";m.style.backgroundPosition="center center";m.style.backgroundRepeat="no-repeat";m.style.backgroundSize="10px";e.appendChild(m);var u=!1,p=!1,B=mxUtils.bind(this,
+function(T){u=null!=this.currentMenu;p=b==this.currentPage;this.scrollToPage(b);g.isMouseDown||p||this.selectPage(b)}),H=mxUtils.bind(this,function(T){if(g.isEnabled()&&!g.isMouseDown&&(p&&(mxEvent.isTouchEvent(T)||mxEvent.getSource(T)==m)||mxEvent.isPopupTrigger(T))&&(g.popupMenuHandler.hideMenu(),this.hideCurrentMenu(),!mxEvent.isTouchEvent(T)||!u)){var G=new mxPopupMenu(this.createPageMenu(b));G.div.className+=" geMenubarMenu";G.smartSeparators=!0;G.showDisabled=!0;G.autoExpand=!0;G.hideMenu=mxUtils.bind(this,
+function(){mxPopupMenu.prototype.hideMenu.apply(G,arguments);this.resetCurrentMenu();G.destroy()});var P=mxEvent.getClientX(T),R=mxEvent.getClientY(T);G.popup(P,R,null,T);this.setCurrentMenu(G,e)}mxEvent.consume(T)});mxEvent.addGestureListeners(m,B,null,H);mxEvent.addGestureListeners(e,B,null,H)};
EditorUi.prototype.createPageMenu=function(b,e){return mxUtils.bind(this,function(g,m){1!=urlParams.embed&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=this.getServiceName()||g.addItem(mxResources.get("openInNewWindow"),null,mxUtils.bind(this,function(){this.editor.editAsNew(this.getFileData(!0,null,null,null,!0,!0))}),m));g.addItem(mxResources.get("duplicate"),null,mxUtils.bind(this,function(){this.duplicatePage(b,mxResources.get("copyOf",[b.getName()]))}),m);g.addSeparator(m);this.currentPage==
b&&1<this.pages.length&&this.menus.addSubmenu("movePage",g,m,mxResources.get("move"));g.addItem(mxResources.get("delete"),null,mxUtils.bind(this,function(){this.removePage(b)}),m);g.addItem(mxResources.get("rename")+"...",null,mxUtils.bind(this,function(){this.renamePage(b,e)}),m)})};(function(){mxCodecRegistry.getCodec(ChangePageSetup).exclude.push("page")})();
(function(){var b=new mxObjectCodec(new MovePage,["ui"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};b.afterDecode=function(e,g,m){e=m.oldIndex;m.oldIndex=m.newIndex;m.newIndex=e;return m};mxCodecRegistry.register(b)})();(function(){var b=new mxObjectCodec(new RenamePage,["ui","page"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};b.afterDecode=function(e,g,m){e=m.previous;m.previous=m.name;m.name=e;return m};mxCodecRegistry.register(b)})();
(function(){var b=new mxObjectCodec(new ChangePage,["ui","relatedPage","index","page","previousPage"]);b.afterEncode=function(e,g,m){m.setAttribute("relatedPage",g.relatedPage.getId());null==g.index&&(m.setAttribute("name",g.relatedPage.getName()),null!=g.relatedPage.viewState&&m.setAttribute("viewState",JSON.stringify(g.relatedPage.viewState,function(u,p){return 0>mxUtils.indexOf(EditorUi.transientViewStateProperties,u)?p:void 0})),null!=g.relatedPage.root&&e.encodeCell(g.relatedPage.root,m));return m};
b.beforeDecode=function(e,g,m){m.ui=e.ui;m.relatedPage=m.ui.getPageById(g.getAttribute("relatedPage"));if(null==m.relatedPage){var u=g.ownerDocument.createElement("diagram");u.setAttribute("id",g.getAttribute("relatedPage"));u.setAttribute("name",g.getAttribute("name"));m.relatedPage=new DiagramPage(u);u=g.getAttribute("viewState");null!=u&&(m.relatedPage.viewState=JSON.parse(u),g.removeAttribute("viewState"));g=g.cloneNode(!0);u=g.firstChild;if(null!=u)for(m.relatedPage.root=e.decodeCell(u,!1),m=
-u.nextSibling,u.parentNode.removeChild(u),u=m;null!=u;){m=u.nextSibling;if(u.nodeType==mxConstants.NODETYPE_ELEMENT){var p=u.getAttribute("id");null==e.lookup(p)&&e.decodeCell(u)}u.parentNode.removeChild(u);u=m}}return g};b.afterDecode=function(e,g,m){m.index=m.previousIndex;return m};mxCodecRegistry.register(b)})();(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(m,u,p,B,H){u=null!=u?u:!1;null==p&&(p=this.getFoldableCells(this.getSelectionCells(),m));this.stopEditing();this.model.beginUpdate();try{for(var S=p.slice(),G=0;G<p.length;G++)"1"==mxUtils.getValue(this.getCurrentCellStyle(p[G]),"treeFolding","0")&&this.foldTreeCell(m,p[G]);p=S;p=b.apply(this,arguments)}finally{this.model.endUpdate()}return p};Graph.prototype.foldTreeCell=function(m,u){this.model.beginUpdate();try{var p=
-[];this.traverse(u,!0,mxUtils.bind(this,function(H,S){var G=null!=S&&this.isTreeEdge(S);G&&p.push(S);H==u||null!=S&&!G||p.push(H);return(null==S||G)&&(H==u||!this.model.isCollapsed(H))}));this.model.setCollapsed(u,m);for(var B=0;B<p.length;B++)this.model.setVisible(p[B],!m)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(m){return!this.isEdgeIgnored(m)};Graph.prototype.getTreeEdges=function(m,u,p,B,H,S){return this.model.filterCells(this.getEdges(m,u,p,B,H,S),mxUtils.bind(this,
+u.nextSibling,u.parentNode.removeChild(u),u=m;null!=u;){m=u.nextSibling;if(u.nodeType==mxConstants.NODETYPE_ELEMENT){var p=u.getAttribute("id");null==e.lookup(p)&&e.decodeCell(u)}u.parentNode.removeChild(u);u=m}}return g};b.afterDecode=function(e,g,m){m.index=m.previousIndex;return m};mxCodecRegistry.register(b)})();(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(m,u,p,B,H){u=null!=u?u:!1;null==p&&(p=this.getFoldableCells(this.getSelectionCells(),m));this.stopEditing();this.model.beginUpdate();try{for(var T=p.slice(),G=0;G<p.length;G++)"1"==mxUtils.getValue(this.getCurrentCellStyle(p[G]),"treeFolding","0")&&this.foldTreeCell(m,p[G]);p=T;p=b.apply(this,arguments)}finally{this.model.endUpdate()}return p};Graph.prototype.foldTreeCell=function(m,u){this.model.beginUpdate();try{var p=
+[];this.traverse(u,!0,mxUtils.bind(this,function(H,T){var G=null!=T&&this.isTreeEdge(T);G&&p.push(T);H==u||null!=T&&!G||p.push(H);return(null==T||G)&&(H==u||!this.model.isCollapsed(H))}));this.model.setCollapsed(u,m);for(var B=0;B<p.length;B++)this.model.setVisible(p[B],!m)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(m){return!this.isEdgeIgnored(m)};Graph.prototype.getTreeEdges=function(m,u,p,B,H,T){return this.model.filterCells(this.getEdges(m,u,p,B,H,T),mxUtils.bind(this,
function(G){return this.isTreeEdge(G)}))};Graph.prototype.getIncomingTreeEdges=function(m,u){return this.getTreeEdges(m,u,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(m,u){return this.getTreeEdges(m,u,!1,!0,!1)};var e=EditorUi.prototype.init;EditorUi.prototype.init=function(){e.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function m(Y){return t.isVertex(Y)&&p(Y)}function u(Y){var ma=!1;null!=Y&&(ma=
"1"==l.getCurrentCellStyle(Y).treeMoving);return ma}function p(Y){var ma=!1;null!=Y&&(Y=t.getParent(Y),ma=l.view.getState(Y),ma="tree"==(null!=ma?ma.style:l.getCellStyle(Y)).containerType);return ma}function B(Y){var ma=!1;null!=Y&&(Y=t.getParent(Y),ma=l.view.getState(Y),l.view.getState(Y),ma=null!=(null!=ma?ma.style:l.getCellStyle(Y)).childLayout);return ma}function H(Y){Y=l.view.getState(Y);if(null!=Y){var ma=l.getIncomingTreeEdges(Y.cell);if(0<ma.length&&(ma=l.view.getState(ma[0]),null!=ma&&(ma=
-ma.absolutePoints,null!=ma&&0<ma.length&&(ma=ma[ma.length-1],null!=ma)))){if(ma.y==Y.y&&Math.abs(ma.x-Y.getCenterX())<Y.width/2)return mxConstants.DIRECTION_SOUTH;if(ma.y==Y.y+Y.height&&Math.abs(ma.x-Y.getCenterX())<Y.width/2)return mxConstants.DIRECTION_NORTH;if(ma.x>Y.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function S(Y,ma){ma=null!=ma?ma:!0;l.model.beginUpdate();try{var Z=l.model.getParent(Y),k=l.getIncomingTreeEdges(Y),A=l.cloneCells([k[0],Y]);l.model.setTerminal(A[0],
-l.model.getTerminal(k[0],!0),!0);var I=H(Y),U=Z.geometry;I==mxConstants.DIRECTION_SOUTH||I==mxConstants.DIRECTION_NORTH?A[1].geometry.x+=ma?Y.geometry.width+10:-A[1].geometry.width-10:A[1].geometry.y+=ma?Y.geometry.height+10:-A[1].geometry.height-10;l.view.currentRoot!=Z&&(A[1].geometry.x-=U.x,A[1].geometry.y-=U.y);var O=l.view.getState(Y),T=l.view.scale;if(null!=O){var X=mxRectangle.fromRectangle(O);I==mxConstants.DIRECTION_SOUTH||I==mxConstants.DIRECTION_NORTH?X.x+=(ma?Y.geometry.width+10:-A[1].geometry.width-
-10)*T:X.y+=(ma?Y.geometry.height+10:-A[1].geometry.height-10)*T;var aa=l.getOutgoingTreeEdges(l.model.getTerminal(k[0],!0));if(null!=aa){for(var ja=I==mxConstants.DIRECTION_SOUTH||I==mxConstants.DIRECTION_NORTH,pa=U=k=0;pa<aa.length;pa++){var sa=l.model.getTerminal(aa[pa],!1);if(I==H(sa)){var qa=l.view.getState(sa);sa!=Y&&null!=qa&&(ja&&ma!=qa.getCenterX()<O.getCenterX()||!ja&&ma!=qa.getCenterY()<O.getCenterY())&&mxUtils.intersects(X,qa)&&(k=10+Math.max(k,(Math.min(X.x+X.width,qa.x+qa.width)-Math.max(X.x,
-qa.x))/T),U=10+Math.max(U,(Math.min(X.y+X.height,qa.y+qa.height)-Math.max(X.y,qa.y))/T))}}ja?U=0:k=0;for(pa=0;pa<aa.length;pa++)if(sa=l.model.getTerminal(aa[pa],!1),I==H(sa)&&(qa=l.view.getState(sa),sa!=Y&&null!=qa&&(ja&&ma!=qa.getCenterX()<O.getCenterX()||!ja&&ma!=qa.getCenterY()<O.getCenterY()))){var wa=[];l.traverse(qa.cell,!0,function(Ba,za){var Ea=null!=za&&l.isTreeEdge(za);Ea&&wa.push(za);(null==za||Ea)&&wa.push(Ba);return null==za||Ea});l.moveCells(wa,(ma?1:-1)*k,(ma?1:-1)*U)}}}return l.addCells(A,
+ma.absolutePoints,null!=ma&&0<ma.length&&(ma=ma[ma.length-1],null!=ma)))){if(ma.y==Y.y&&Math.abs(ma.x-Y.getCenterX())<Y.width/2)return mxConstants.DIRECTION_SOUTH;if(ma.y==Y.y+Y.height&&Math.abs(ma.x-Y.getCenterX())<Y.width/2)return mxConstants.DIRECTION_NORTH;if(ma.x>Y.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function T(Y,ma){ma=null!=ma?ma:!0;l.model.beginUpdate();try{var Z=l.model.getParent(Y),k=l.getIncomingTreeEdges(Y),A=l.cloneCells([k[0],Y]);l.model.setTerminal(A[0],
+l.model.getTerminal(k[0],!0),!0);var I=H(Y),U=Z.geometry;I==mxConstants.DIRECTION_SOUTH||I==mxConstants.DIRECTION_NORTH?A[1].geometry.x+=ma?Y.geometry.width+10:-A[1].geometry.width-10:A[1].geometry.y+=ma?Y.geometry.height+10:-A[1].geometry.height-10;l.view.currentRoot!=Z&&(A[1].geometry.x-=U.x,A[1].geometry.y-=U.y);var O=l.view.getState(Y),S=l.view.scale;if(null!=O){var X=mxRectangle.fromRectangle(O);I==mxConstants.DIRECTION_SOUTH||I==mxConstants.DIRECTION_NORTH?X.x+=(ma?Y.geometry.width+10:-A[1].geometry.width-
+10)*S:X.y+=(ma?Y.geometry.height+10:-A[1].geometry.height-10)*S;var aa=l.getOutgoingTreeEdges(l.model.getTerminal(k[0],!0));if(null!=aa){for(var ja=I==mxConstants.DIRECTION_SOUTH||I==mxConstants.DIRECTION_NORTH,pa=U=k=0;pa<aa.length;pa++){var sa=l.model.getTerminal(aa[pa],!1);if(I==H(sa)){var qa=l.view.getState(sa);sa!=Y&&null!=qa&&(ja&&ma!=qa.getCenterX()<O.getCenterX()||!ja&&ma!=qa.getCenterY()<O.getCenterY())&&mxUtils.intersects(X,qa)&&(k=10+Math.max(k,(Math.min(X.x+X.width,qa.x+qa.width)-Math.max(X.x,
+qa.x))/S),U=10+Math.max(U,(Math.min(X.y+X.height,qa.y+qa.height)-Math.max(X.y,qa.y))/S))}}ja?U=0:k=0;for(pa=0;pa<aa.length;pa++)if(sa=l.model.getTerminal(aa[pa],!1),I==H(sa)&&(qa=l.view.getState(sa),sa!=Y&&null!=qa&&(ja&&ma!=qa.getCenterX()<O.getCenterX()||!ja&&ma!=qa.getCenterY()<O.getCenterY()))){var wa=[];l.traverse(qa.cell,!0,function(Ba,za){var Ea=null!=za&&l.isTreeEdge(za);Ea&&wa.push(za);(null==za||Ea)&&wa.push(Ba);return null==za||Ea});l.moveCells(wa,(ma?1:-1)*k,(ma?1:-1)*U)}}}return l.addCells(A,
Z)}finally{l.model.endUpdate()}}function G(Y){l.model.beginUpdate();try{var ma=H(Y),Z=l.getIncomingTreeEdges(Y),k=l.cloneCells([Z[0],Y]);l.model.setTerminal(Z[0],k[1],!1);l.model.setTerminal(k[0],k[1],!0);l.model.setTerminal(k[0],Y,!1);var A=l.model.getParent(Y),I=A.geometry,U=[];l.view.currentRoot!=A&&(k[1].geometry.x-=I.x,k[1].geometry.y-=I.y);l.traverse(Y,!0,function(X,aa){var ja=null!=aa&&l.isTreeEdge(aa);ja&&U.push(aa);(null==aa||ja)&&U.push(X);return null==aa||ja});var O=Y.geometry.width+40,
-T=Y.geometry.height+40;ma==mxConstants.DIRECTION_SOUTH?O=0:ma==mxConstants.DIRECTION_NORTH?(O=0,T=-T):ma==mxConstants.DIRECTION_WEST?(O=-O,T=0):ma==mxConstants.DIRECTION_EAST&&(T=0);l.moveCells(U,O,T);return l.addCells(k,A)}finally{l.model.endUpdate()}}function P(Y,ma){l.model.beginUpdate();try{var Z=l.model.getParent(Y),k=l.getIncomingTreeEdges(Y),A=H(Y);0==k.length&&(k=[l.createEdge(Z,null,"",null,null,l.createCurrentEdgeStyle())],A=ma);var I=l.cloneCells([k[0],Y]);l.model.setTerminal(I[0],Y,!0);
-null==l.model.getTerminal(I[0],!1)&&(l.model.setTerminal(I[0],I[1],!1),l.applyNewEdgeStyle(I[1],[I[0]],A));k=l.getOutgoingTreeEdges(Y);var U=Z.geometry;ma=[];l.view.currentRoot==Z&&(U=new mxRectangle);for(var O=0;O<k.length;O++){var T=l.model.getTerminal(k[O],!1);null!=T&&ma.push(T)}var X=l.view.getBounds(ma),aa=l.view.translate,ja=l.view.scale;A==mxConstants.DIRECTION_SOUTH?(I[1].geometry.x=null==X?Y.geometry.x+(Y.geometry.width-I[1].geometry.width)/2:(X.x+X.width)/ja-aa.x-U.x+10,I[1].geometry.y+=
+S=Y.geometry.height+40;ma==mxConstants.DIRECTION_SOUTH?O=0:ma==mxConstants.DIRECTION_NORTH?(O=0,S=-S):ma==mxConstants.DIRECTION_WEST?(O=-O,S=0):ma==mxConstants.DIRECTION_EAST&&(S=0);l.moveCells(U,O,S);return l.addCells(k,A)}finally{l.model.endUpdate()}}function P(Y,ma){l.model.beginUpdate();try{var Z=l.model.getParent(Y),k=l.getIncomingTreeEdges(Y),A=H(Y);0==k.length&&(k=[l.createEdge(Z,null,"",null,null,l.createCurrentEdgeStyle())],A=ma);var I=l.cloneCells([k[0],Y]);l.model.setTerminal(I[0],Y,!0);
+null==l.model.getTerminal(I[0],!1)&&(l.model.setTerminal(I[0],I[1],!1),l.applyNewEdgeStyle(I[1],[I[0]],A));k=l.getOutgoingTreeEdges(Y);var U=Z.geometry;ma=[];l.view.currentRoot==Z&&(U=new mxRectangle);for(var O=0;O<k.length;O++){var S=l.model.getTerminal(k[O],!1);null!=S&&ma.push(S)}var X=l.view.getBounds(ma),aa=l.view.translate,ja=l.view.scale;A==mxConstants.DIRECTION_SOUTH?(I[1].geometry.x=null==X?Y.geometry.x+(Y.geometry.width-I[1].geometry.width)/2:(X.x+X.width)/ja-aa.x-U.x+10,I[1].geometry.y+=
I[1].geometry.height-U.y+40):A==mxConstants.DIRECTION_NORTH?(I[1].geometry.x=null==X?Y.geometry.x+(Y.geometry.width-I[1].geometry.width)/2:(X.x+X.width)/ja-aa.x+-U.x+10,I[1].geometry.y-=I[1].geometry.height+U.y+40):(I[1].geometry.x=A==mxConstants.DIRECTION_WEST?I[1].geometry.x-(I[1].geometry.width+U.x+40):I[1].geometry.x+(I[1].geometry.width-U.x+40),I[1].geometry.y=null==X?Y.geometry.y+(Y.geometry.height-I[1].geometry.height)/2:(X.y+X.height)/ja-aa.y+-U.y+10);return l.addCells(I,Z)}finally{l.model.endUpdate()}}
function R(Y,ma,Z){Y=l.getOutgoingTreeEdges(Y);Z=l.view.getState(Z);var k=[];if(null!=Z&&null!=Y){for(var A=0;A<Y.length;A++){var I=l.view.getState(l.model.getTerminal(Y[A],!1));null!=I&&(!ma&&Math.min(I.x+I.width,Z.x+Z.width)>=Math.max(I.x,Z.x)||ma&&Math.min(I.y+I.height,Z.y+Z.height)>=Math.max(I.y,Z.y))&&k.push(I)}k.sort(function(U,O){return ma?U.x+U.width-O.x-O.width:U.y+U.height-O.y-O.height})}return k}function c(Y,ma){var Z=H(Y),k=ma==mxConstants.DIRECTION_EAST||ma==mxConstants.DIRECTION_WEST;
(Z==mxConstants.DIRECTION_EAST||Z==mxConstants.DIRECTION_WEST)==k&&Z!=ma?f.actions.get("selectParent").funct():Z==ma?(ma=l.getOutgoingTreeEdges(Y),null!=ma&&0<ma.length&&l.setSelectionCell(l.model.getTerminal(ma[0],!1))):(Z=l.getIncomingTreeEdges(Y),null!=Z&&0<Z.length&&(k=R(l.model.getTerminal(Z[0],!0),k,Y),Y=l.view.getState(Y),null!=Y&&(Y=mxUtils.indexOf(k,Y),0<=Y&&(Y+=ma==mxConstants.DIRECTION_NORTH||ma==mxConstants.DIRECTION_WEST?-1:1,0<=Y&&Y<=k.length-1&&l.setSelectionCell(k[Y].cell)))))}var f=
@@ -4124,37 +4124,37 @@ this,l=f.editor.graph,t=l.getModel(),z=f.menus.createPopupMenu;f.menus.createPop
Z)):0<l.model.getEdgeCount(ma)&&this.addMenuItems(Y,["selectConnections"],null,Z)}};f.actions.addAction("selectChildren",function(Y){if(l.isEnabled()&&1==l.getSelectionCount()){var ma=l.getSelectionCell();Y=mxEvent.isControlDown(Y)?null:l.getOutgoingTreeEdges(ma);if(null!=Y&&0<Y.length){ma=[];for(var Z=0;Z<Y.length;Z++)ma.push(l.model.getTerminal(Y[Z],!1));l.setSelectionCells(ma)}else l.setSelectionCells(l.model.getChildren(ma))}},null,null,"Alt+Shift+C");f.actions.addAction("selectDescendants",function(Y){var ma=
l.getSelectionCell();if(l.isEnabled()&&null!=ma){var Z=[];mxEvent.isControlDown(Y)||l.traverse(ma,!0,function(k,A){var I=null!=A&&l.isTreeEdge(A);I&&mxEvent.isControlDown(Y)&&Z.push(A);(null==A||I)&&Z.push(k);return null==A||I});if(0==Z.length||1==Z.length&&Z[0]==ma)Z=l.model.getDescendants(ma);l.setSelectionCells(Z)}},null,null,"Alt+Shift+X");f.actions.addAction("selectParent",function(Y){var ma=l.getSelectionCell();l.isEnabled()&&null!=ma&&(Y=mxEvent.isControlDown(Y)?null:l.getIncomingTreeEdges(ma),
null!=Y&&0<Y.length?l.setSelectionCell(l.model.getTerminal(Y[0],!0)):l.selectParentCell())},null,null,"Alt+Shift+P");f.actions.addAction("selectSiblings",function(Y){if(l.isEnabled()&&1==l.getSelectionCount()){var ma=l.getSelectionCell(),Z=mxEvent.isControlDown(Y)?null:l.getIncomingTreeEdges(ma);Y=[];if(null!=Z&&0<Z.length&&(Z=l.getOutgoingTreeEdges(l.model.getTerminal(Z[0],!0)),null!=Z))for(var k=0;k<Z.length;k++)Y.push(l.model.getTerminal(Z[k],!1));0==Y.length&&(Y=l.model.getChildren(l.model.getParent(ma)));
-l.setSelectionCells(Y)}},null,null,"Alt+Shift+S");var C=l.removeCells;l.removeCells=function(Y,ma){ma=null!=ma?ma:!0;null==Y&&(Y=this.getDeletableCells(this.getSelectionCells()));ma&&(Y=this.getDeletableCells(this.addAllEdges(Y)));for(var Z=[],k=0;k<Y.length;k++){var A=Y[k];t.isEdge(A)&&p(A)&&(Z.push(A),A=t.getTerminal(A,!1));if(m(A)){var I=[];l.traverse(A,!0,function(U,O){var T=null!=O&&l.isTreeEdge(O);T&&I.push(O);(null==O||T)&&I.push(U);return null==O||T});0<I.length&&(Z=Z.concat(I),A=l.getIncomingTreeEdges(Y[k]),
+l.setSelectionCells(Y)}},null,null,"Alt+Shift+S");var C=l.removeCells;l.removeCells=function(Y,ma){ma=null!=ma?ma:!0;null==Y&&(Y=this.getDeletableCells(this.getSelectionCells()));ma&&(Y=this.getDeletableCells(this.addAllEdges(Y)));for(var Z=[],k=0;k<Y.length;k++){var A=Y[k];t.isEdge(A)&&p(A)&&(Z.push(A),A=t.getTerminal(A,!1));if(m(A)){var I=[];l.traverse(A,!0,function(U,O){var S=null!=O&&l.isTreeEdge(O);S&&I.push(O);(null==O||S)&&I.push(U);return null==O||S});0<I.length&&(Z=Z.concat(I),A=l.getIncomingTreeEdges(Y[k]),
Y=Y.concat(A))}else null!=A&&Z.push(Y[k])}Y=Z;return C.apply(this,arguments)};f.hoverIcons.getStateAt=function(Y,ma,Z){return m(Y.cell)?null:this.graph.view.getState(this.graph.getCellAt(ma,Z))};var F=l.duplicateCells;l.duplicateCells=function(Y,ma){Y=null!=Y?Y:this.getSelectionCells();for(var Z=Y.slice(0),k=0;k<Z.length;k++){var A=l.view.getState(Z[k]);if(null!=A&&m(A.cell)){var I=l.getIncomingTreeEdges(A.cell);for(A=0;A<I.length;A++)mxUtils.remove(I[A],Y)}}this.model.beginUpdate();try{var U=F.call(this,
-Y,ma);if(U.length==Y.length)for(k=0;k<Y.length;k++)if(m(Y[k])){var O=l.getIncomingTreeEdges(U[k]);I=l.getIncomingTreeEdges(Y[k]);if(0==O.length&&0<I.length){var T=this.cloneCell(I[0]);this.addEdge(T,l.getDefaultParent(),this.model.getTerminal(I[0],!0),U[k])}}}finally{this.model.endUpdate()}return U};var N=l.moveCells;l.moveCells=function(Y,ma,Z,k,A,I,U){for(var O=null,T=[],X=0;X<Y.length;X++)(u(Y[X])||m(Y[X]))&&!B(Y[X])&&this.isCellCollapsed(Y[X])?T=T.concat(this.getSubtree(Y[X])):T.push(Y[X]);Y=
-mxUtils.removeDuplicates(T);this.model.beginUpdate();try{T=A;var aa=this.getCurrentCellStyle(A);if(null!=Y&&m(A)&&"1"==mxUtils.getValue(aa,"treeFolding","0")){for(X=0;X<Y.length;X++)if(m(Y[X])||l.model.isEdge(Y[X])&&null==l.model.getTerminal(Y[X],!0)){A=l.model.getParent(Y[X]);break}if(null!=T&&A!=T&&null!=this.view.getState(Y[0])){var ja=l.getIncomingTreeEdges(Y[0]);if(0<ja.length){var pa=l.view.getState(l.model.getTerminal(ja[0],!0));if(null!=pa){var sa=l.view.getState(T);null!=sa&&(ma=(sa.getCenterX()-
-pa.getCenterX())/l.view.scale,Z=(sa.getCenterY()-pa.getCenterY())/l.view.scale)}}}}O=N.apply(this,arguments);if(null!=O&&null!=Y&&O.length==Y.length)for(X=0;X<O.length;X++)if(this.model.isEdge(O[X]))m(T)&&0>mxUtils.indexOf(O,this.model.getTerminal(O[X],!0))&&this.model.setTerminal(O[X],T,!0);else if(m(Y[X])&&(ja=l.getIncomingTreeEdges(Y[X]),0<ja.length))if(!k)m(T)&&0>mxUtils.indexOf(Y,this.model.getTerminal(ja[0],!0))&&this.model.setTerminal(ja[0],T,!0);else if(0==l.getIncomingTreeEdges(O[X]).length){aa=
-T;if(null==aa||aa==l.model.getParent(Y[X]))aa=l.model.getTerminal(ja[0],!0);k=this.cloneCell(ja[0]);this.addEdge(k,l.getDefaultParent(),aa,O[X])}}finally{this.model.endUpdate()}return O};if(null!=f.sidebar){var K=f.sidebar.dropAndConnect;f.sidebar.dropAndConnect=function(Y,ma,Z,k){var A=l.model,I=null;A.beginUpdate();try{if(I=K.apply(this,arguments),m(Y))for(var U=0;U<I.length;U++)if(A.isEdge(I[U])&&null==A.getTerminal(I[U],!0)){A.setTerminal(I[U],Y,!0);var O=l.getCellGeometry(I[U]);O.points=null;
+Y,ma);if(U.length==Y.length)for(k=0;k<Y.length;k++)if(m(Y[k])){var O=l.getIncomingTreeEdges(U[k]);I=l.getIncomingTreeEdges(Y[k]);if(0==O.length&&0<I.length){var S=this.cloneCell(I[0]);this.addEdge(S,l.getDefaultParent(),this.model.getTerminal(I[0],!0),U[k])}}}finally{this.model.endUpdate()}return U};var N=l.moveCells;l.moveCells=function(Y,ma,Z,k,A,I,U){for(var O=null,S=[],X=0;X<Y.length;X++)(u(Y[X])||m(Y[X]))&&!B(Y[X])&&this.isCellCollapsed(Y[X])?S=S.concat(this.getSubtree(Y[X])):S.push(Y[X]);Y=
+mxUtils.removeDuplicates(S);this.model.beginUpdate();try{S=A;var aa=this.getCurrentCellStyle(A);if(null!=Y&&m(A)&&"1"==mxUtils.getValue(aa,"treeFolding","0")){for(X=0;X<Y.length;X++)if(m(Y[X])||l.model.isEdge(Y[X])&&null==l.model.getTerminal(Y[X],!0)){A=l.model.getParent(Y[X]);break}if(null!=S&&A!=S&&null!=this.view.getState(Y[0])){var ja=l.getIncomingTreeEdges(Y[0]);if(0<ja.length){var pa=l.view.getState(l.model.getTerminal(ja[0],!0));if(null!=pa){var sa=l.view.getState(S);null!=sa&&(ma=(sa.getCenterX()-
+pa.getCenterX())/l.view.scale,Z=(sa.getCenterY()-pa.getCenterY())/l.view.scale)}}}}O=N.apply(this,arguments);if(null!=O&&null!=Y&&O.length==Y.length)for(X=0;X<O.length;X++)if(this.model.isEdge(O[X]))m(S)&&0>mxUtils.indexOf(O,this.model.getTerminal(O[X],!0))&&this.model.setTerminal(O[X],S,!0);else if(m(Y[X])&&(ja=l.getIncomingTreeEdges(Y[X]),0<ja.length))if(!k)m(S)&&0>mxUtils.indexOf(Y,this.model.getTerminal(ja[0],!0))&&this.model.setTerminal(ja[0],S,!0);else if(0==l.getIncomingTreeEdges(O[X]).length){aa=
+S;if(null==aa||aa==l.model.getParent(Y[X]))aa=l.model.getTerminal(ja[0],!0);k=this.cloneCell(ja[0]);this.addEdge(k,l.getDefaultParent(),aa,O[X])}}finally{this.model.endUpdate()}return O};if(null!=f.sidebar){var K=f.sidebar.dropAndConnect;f.sidebar.dropAndConnect=function(Y,ma,Z,k){var A=l.model,I=null;A.beginUpdate();try{if(I=K.apply(this,arguments),m(Y))for(var U=0;U<I.length;U++)if(A.isEdge(I[U])&&null==A.getTerminal(I[U],!0)){A.setTerminal(I[U],Y,!0);var O=l.getCellGeometry(I[U]);O.points=null;
null!=O.getTerminalPoint(!0)&&O.setTerminalPoint(null,!0)}}finally{A.endUpdate()}return I}}var J={67:f.actions.get("selectChildren"),88:f.actions.get("selectDescendants"),80:f.actions.get("selectParent"),83:f.actions.get("selectSiblings")},da={67:f.actions.get("copyStyle"),86:f.actions.get("pasteStyle")},ea=f.onKeyDown;f.onKeyDown=function(Y){try{var ma=l.getSelectionCell();if(l.isEnabled()&&!l.isEditing()&&null!=ma){var Z=mxEvent.isAltDown(Y)&&mxEvent.isShiftDown(Y)?J[Y.keyCode]:mxEvent.isAltDown(Y)?
-da[Y.keyCode]:null;null!=Z?(Z.funct(Y),mxEvent.consume(Y)):m(ma)&&(Z=null,0<l.getIncomingTreeEdges(ma).length&&(9==Y.which?Z=mxEvent.isShiftDown(Y)?G(ma):P(ma):13==Y.which&&(Z=S(ma,!mxEvent.isShiftDown(Y)))),null!=Z&&0<Z.length?(1==Z.length&&l.model.isEdge(Z[0])?l.setSelectionCell(l.model.getTerminal(Z[0],!1)):l.setSelectionCell(Z[Z.length-1]),null!=f.hoverIcons&&f.hoverIcons.update(l.view.getState(ma)),l.startEditingAtCell(ma),mxEvent.consume(Y)):37==Y.keyCode?(c(ma,mxConstants.DIRECTION_WEST),mxEvent.consume(Y)):
-38==Y.keyCode?(c(ma,mxConstants.DIRECTION_NORTH),mxEvent.consume(Y)):39==Y.keyCode?(c(ma,mxConstants.DIRECTION_EAST),mxEvent.consume(Y)):40==Y.keyCode&&(c(ma,mxConstants.DIRECTION_SOUTH),mxEvent.consume(Y)))}}catch(k){f.handleError(k)}mxEvent.isConsumed(Y)||ea.apply(this,arguments)};var ca=l.connectVertex;l.connectVertex=function(Y,ma,Z,k,A,I,U){var O=l.getIncomingTreeEdges(Y);if(m(Y)){var T=H(Y),X=T==mxConstants.DIRECTION_EAST||T==mxConstants.DIRECTION_WEST,aa=ma==mxConstants.DIRECTION_EAST||ma==
-mxConstants.DIRECTION_WEST;return T==ma||0==O.length?P(Y,ma):X==aa?G(Y):S(Y,ma!=mxConstants.DIRECTION_NORTH&&ma!=mxConstants.DIRECTION_WEST)}return ca.apply(this,arguments)};l.getSubtree=function(Y){var ma=[Y];!u(Y)&&!m(Y)||B(Y)||l.traverse(Y,!0,function(Z,k){var A=null!=k&&l.isTreeEdge(k);A&&0>mxUtils.indexOf(ma,k)&&ma.push(k);(null==k||A)&&0>mxUtils.indexOf(ma,Z)&&ma.push(Z);return null==k||A});return ma};var W=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){W.apply(this,
+da[Y.keyCode]:null;null!=Z?(Z.funct(Y),mxEvent.consume(Y)):m(ma)&&(Z=null,0<l.getIncomingTreeEdges(ma).length&&(9==Y.which?Z=mxEvent.isShiftDown(Y)?G(ma):P(ma):13==Y.which&&(Z=T(ma,!mxEvent.isShiftDown(Y)))),null!=Z&&0<Z.length?(1==Z.length&&l.model.isEdge(Z[0])?l.setSelectionCell(l.model.getTerminal(Z[0],!1)):l.setSelectionCell(Z[Z.length-1]),null!=f.hoverIcons&&f.hoverIcons.update(l.view.getState(ma)),l.startEditingAtCell(ma),mxEvent.consume(Y)):37==Y.keyCode?(c(ma,mxConstants.DIRECTION_WEST),mxEvent.consume(Y)):
+38==Y.keyCode?(c(ma,mxConstants.DIRECTION_NORTH),mxEvent.consume(Y)):39==Y.keyCode?(c(ma,mxConstants.DIRECTION_EAST),mxEvent.consume(Y)):40==Y.keyCode&&(c(ma,mxConstants.DIRECTION_SOUTH),mxEvent.consume(Y)))}}catch(k){f.handleError(k)}mxEvent.isConsumed(Y)||ea.apply(this,arguments)};var ca=l.connectVertex;l.connectVertex=function(Y,ma,Z,k,A,I,U){var O=l.getIncomingTreeEdges(Y);if(m(Y)){var S=H(Y),X=S==mxConstants.DIRECTION_EAST||S==mxConstants.DIRECTION_WEST,aa=ma==mxConstants.DIRECTION_EAST||ma==
+mxConstants.DIRECTION_WEST;return S==ma||0==O.length?P(Y,ma):X==aa?G(Y):T(Y,ma!=mxConstants.DIRECTION_NORTH&&ma!=mxConstants.DIRECTION_WEST)}return ca.apply(this,arguments)};l.getSubtree=function(Y){var ma=[Y];!u(Y)&&!m(Y)||B(Y)||l.traverse(Y,!0,function(Z,k){var A=null!=k&&l.isTreeEdge(k);A&&0>mxUtils.indexOf(ma,k)&&ma.push(k);(null==k||A)&&0>mxUtils.indexOf(ma,Z)&&ma.push(Z);return null==k||A});return ma};var W=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){W.apply(this,
arguments);(u(this.state.cell)||m(this.state.cell))&&!B(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&!this.graph.isCellCollapsed(this.state.cell)?null==this.moveHandle&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title","Move Subtree"),this.moveHandle.style.position="absolute",this.moveHandle.style.cursor="pointer",this.moveHandle.style.width="24px",this.moveHandle.style.height="24px",this.graph.container.appendChild(this.moveHandle),
this.redrawMoveHandle(),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(Y){this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(Y),mxEvent.getClientY(Y),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(Y);this.graph.isMouseDown=!0;f.hoverIcons.reset();mxEvent.consume(Y)}))):null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)};var ba=mxVertexHandler.prototype.redrawHandles;
mxVertexHandler.prototype.redrawHandles=function(){ba.apply(this,arguments);this.redrawMoveHandle()};mxVertexHandler.prototype.redrawMoveHandle=function(){null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:0)+2+"px",this.moveHandle.style.top=this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var ha=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(Y){ha.apply(this,arguments);null!=
this.moveHandle&&(this.moveHandle.style.display=Y?"":"none")};var la=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(Y,ma){la.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)}};if("undefined"!==typeof Sidebar){var g=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var m=g.apply(this,arguments),u=this.graph,p=this;return m.concat([this.addEntry("tree container",
-function(){var B=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");B.vertex=!0;var H=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');H.vertex=!0;var S=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
-S.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");G.geometry.relative=!0;G.edge=!0;H.insertEdge(G,!0);S.insertEdge(G,!1);B.insert(G);B.insert(H);B.insert(S);return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var B=new mxCell("Mindmap",new mxGeometry(0,
-0,420,126),"swimlane;startSize=20;horizontal=1;containerType=tree;");B.vertex=!0;var H=new mxCell("Central Idea",new mxGeometry(160,60,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');H.vertex=!0;var S=new mxCell("Topic",new mxGeometry(320,40,80,20),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
-S.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");G.geometry.relative=!0;G.edge=!0;H.insertEdge(G,!0);S.insertEdge(G,!1);var P=new mxCell("Branch",new mxGeometry(320,80,72,26),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
+function(){var B=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");B.vertex=!0;var H=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');H.vertex=!0;var T=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
+T.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");G.geometry.relative=!0;G.edge=!0;H.insertEdge(G,!0);T.insertEdge(G,!1);B.insert(G);B.insert(H);B.insert(T);return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var B=new mxCell("Mindmap",new mxGeometry(0,
+0,420,126),"swimlane;startSize=20;horizontal=1;containerType=tree;");B.vertex=!0;var H=new mxCell("Central Idea",new mxGeometry(160,60,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');H.vertex=!0;var T=new mxCell("Topic",new mxGeometry(320,40,80,20),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
+T.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");G.geometry.relative=!0;G.edge=!0;H.insertEdge(G,!0);T.insertEdge(G,!1);var P=new mxCell("Branch",new mxGeometry(320,80,72,26),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
P.vertex=!0;var R=new mxCell("",new mxGeometry(0,0,0,0),G.style);R.geometry.relative=!0;R.edge=!0;H.insertEdge(R,!0);P.insertEdge(R,!1);var c=new mxCell("Topic",new mxGeometry(20,40,80,20),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
c.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,0,0),G.style);f.geometry.relative=!0;f.edge=!0;H.insertEdge(f,!0);c.insertEdge(f,!1);var l=new mxCell("Branch",new mxGeometry(20,80,72,26),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
-l.vertex=!0;var t=new mxCell("",new mxGeometry(0,0,0,0),G.style);t.geometry.relative=!0;t.edge=!0;H.insertEdge(t,!0);l.insertEdge(t,!1);B.insert(G);B.insert(R);B.insert(f);B.insert(t);B.insert(H);B.insert(S);B.insert(P);B.insert(c);B.insert(l);return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var B=new mxCell("Central Idea",new mxGeometry(0,0,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};treeFolding=1;treeMoving=1;');
+l.vertex=!0;var t=new mxCell("",new mxGeometry(0,0,0,0),G.style);t.geometry.relative=!0;t.edge=!0;H.insertEdge(t,!0);l.insertEdge(t,!1);B.insert(G);B.insert(R);B.insert(f);B.insert(t);B.insert(H);B.insert(T);B.insert(P);B.insert(c);B.insert(l);return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var B=new mxCell("Central Idea",new mxGeometry(0,0,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};treeFolding=1;treeMoving=1;');
B.vertex=!0;return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree mindmap mindmaps branch",function(){var B=new mxCell("Branch",new mxGeometry(0,0,80,20),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;recursiveResize=0;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
B.vertex=!0;var H=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");H.geometry.setTerminalPoint(new mxPoint(-40,40),!0);H.geometry.relative=!0;H.edge=!0;B.insertEdge(H,!1);return p.createVertexTemplateFromCells([B,H],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree mindmap mindmaps sub topic",function(){var B=new mxCell("Sub Topic",new mxGeometry(0,0,80,26),
'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');B.vertex=!0;var H=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");
H.geometry.setTerminalPoint(new mxPoint(-40,40),!0);H.geometry.relative=!0;H.edge=!0;B.insertEdge(H,!1);return p.createVertexTemplateFromCells([B,H],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree orgchart organization division",function(){var B=new mxCell("Orgchart",new mxGeometry(0,0,280,220),'swimlane;startSize=20;horizontal=1;containerType=tree;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');B.vertex=!0;var H=new mxCell("Organization",new mxGeometry(80,
-40,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');u.setAttributeForCell(H,"treeRoot","1");H.vertex=!0;var S=new mxCell("Division",new mxGeometry(20,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');S.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
-G.geometry.relative=!0;G.edge=!0;H.insertEdge(G,!0);S.insertEdge(G,!1);var P=new mxCell("Division",new mxGeometry(160,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');P.vertex=!0;var R=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");R.geometry.relative=
-!0;R.edge=!0;H.insertEdge(R,!0);P.insertEdge(R,!1);B.insert(G);B.insert(R);B.insert(H);B.insert(S);B.insert(P);return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree root",function(){var B=new mxCell("Organization",new mxGeometry(0,0,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');u.setAttributeForCell(B,"treeRoot","1");B.vertex=!0;return p.createVertexTemplateFromCells([B],
+40,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');u.setAttributeForCell(H,"treeRoot","1");H.vertex=!0;var T=new mxCell("Division",new mxGeometry(20,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');T.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
+G.geometry.relative=!0;G.edge=!0;H.insertEdge(G,!0);T.insertEdge(G,!1);var P=new mxCell("Division",new mxGeometry(160,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');P.vertex=!0;var R=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");R.geometry.relative=
+!0;R.edge=!0;H.insertEdge(R,!0);P.insertEdge(R,!1);B.insert(G);B.insert(R);B.insert(H);B.insert(T);B.insert(P);return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree root",function(){var B=new mxCell("Organization",new mxGeometry(0,0,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');u.setAttributeForCell(B,"treeRoot","1");B.vertex=!0;return p.createVertexTemplateFromCells([B],
B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree division",function(){var B=new mxCell("Division",new mxGeometry(20,40,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');B.vertex=!0;var H=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
H.geometry.setTerminalPoint(new mxPoint(0,0),!0);H.geometry.relative=!0;H.edge=!0;B.insertEdge(H,!1);return p.createVertexTemplateFromCells([B,H],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree sub sections",function(){var B=new mxCell("Sub Section",new mxGeometry(0,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");B.vertex=!0;var H=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;targetPortConstraint=eastwest;sourcePortConstraint=northsouth;curved=0;rounded=0;");
-H.geometry.setTerminalPoint(new mxPoint(110,-40),!0);H.geometry.relative=!0;H.edge=!0;B.insertEdge(H,!1);var S=new mxCell("Sub Section",new mxGeometry(120,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");S.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),H.style);G.geometry.setTerminalPoint(new mxPoint(110,-40),!0);G.geometry.relative=!0;G.edge=!0;S.insertEdge(G,!1);return p.createVertexTemplateFromCells([H,G,B,S],220,60,"Sub Sections")})])}}})();Editor.themes.push("min");EditorUi.windowed="0"!=urlParams.windows;
+H.geometry.setTerminalPoint(new mxPoint(110,-40),!0);H.geometry.relative=!0;H.edge=!0;B.insertEdge(H,!1);var T=new mxCell("Sub Section",new mxGeometry(120,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");T.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),H.style);G.geometry.setTerminalPoint(new mxPoint(110,-40),!0);G.geometry.relative=!0;G.edge=!0;T.insertEdge(G,!1);return p.createVertexTemplateFromCells([H,G,B,T],220,60,"Sub Sections")})])}}})();Editor.themes.push("min");EditorUi.windowed="0"!=urlParams.windows;
EditorUi.initMinimalTheme=function(){function b(c,f){if(EditorUi.windowed){var l=c.editor.graph;l.popupMenuHandler.hideMenu();null==c.formatWindow?(f=Math.max(10,c.diagramContainer.clientWidth-248),l=Math.min(566,l.container.clientHeight-10),c.formatWindow=new WrapperWindow(c,mxResources.get("format"),f,60,240,l,function(t){c.createFormat(t).init()}),c.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){c.formatWindow.window.fit()})),c.formatWindow.window.minimumSize=new mxRectangle(0,
0,240,80)):c.formatWindow.window.setVisible(null!=f?f:!c.formatWindow.window.isVisible())}else null==c.formatElt&&(c.formatElt=c.createSidebarContainer(),c.createFormat(c.formatElt).init(),c.formatElt.style.border="none",c.formatElt.style.width="240px",c.formatElt.style.borderLeftWidth="1px",c.formatElt.style.borderLeftStyle="solid",c.formatElt.style.right="0px"),l=c.diagramContainer.parentNode,null!=c.formatElt.parentNode?(c.formatElt.parentNode.removeChild(c.formatElt),l.style.right="0px"):(l.parentNode.appendChild(c.formatElt),
l.style.right=c.formatElt.style.width)}function e(c,f){function l(C,F){var N=c.menus.get(C);C=t.addMenu(F,mxUtils.bind(this,function(){N.funct.apply(this,arguments)}));C.setAttribute("title",F);C.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";C.className="geTitle";f.appendChild(C);return C}var t=new Menubar(c,f);if(Editor.enableCustomLibraries&&
@@ -4166,8 +4166,8 @@ l.style.left="0px"):(l.parentNode.appendChild(c.sidebarElt),l.style.left=c.sideb
mxOutline.prototype.sizerImage=null;mxConstants.VERTEX_SELECTION_COLOR="#C0C0C0";mxConstants.EDGE_SELECTION_COLOR="#C0C0C0";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.DEFAULT_VALID_COLOR="#29b6f2";mxConstants.GUIDE_COLOR="#C0C0C0";mxConstants.OUTLINE_COLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_FILLCOLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#fff";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowSize="0.6";Graph.prototype.svgShadowBlur=
"1.2";mxRubberband.prototype.defaultOpacity=50;HoverIcons.prototype.inactiveOpacity=25;Format.prototype.showCloseButton=!1;EditorUi.prototype.closableScratchpad=!1;EditorUi.prototype.toolbarHeight=46;EditorUi.prototype.footerHeight=0;Graph.prototype.editAfterInsert=!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.prototype.isChromelessView=function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var u=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(c){u.apply(this,arguments);
null!=this.tabContainer&&(this.tabContainer.style.right="62px",this.diagramContainer.style.bottom=this.tabContainerHeight+"px")};var p=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){p.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var B=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(c,f){null!=f.shortcut&&900>m&&!mxClient.IS_IOS?c.firstChild.nextSibling.setAttribute("title",f.shortcut):
-B.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(c){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=c?c:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0<this.formatWidth};var H=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();H.apply(this,arguments)};var S=EditorUi.prototype.setGraphEnabled;
-EditorUi.prototype.setGraphEnabled=function(c){S.apply(this,arguments);if(c){var f=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=f&&null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=f&&this.formatWindow.window.setVisible(!0)}else null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!1),null!=this.formatWindow&&this.formatWindow.window.setVisible(!1)};EditorUi.prototype.chromelessWindowResize=function(){};
+B.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(c){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=c?c:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0<this.formatWidth};var H=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();H.apply(this,arguments)};var T=EditorUi.prototype.setGraphEnabled;
+EditorUi.prototype.setGraphEnabled=function(c){T.apply(this,arguments);if(c){var f=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=f&&null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=f&&this.formatWindow.window.setVisible(!0)}else null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!1),null!=this.formatWindow&&this.formatWindow.window.setVisible(!1)};EditorUi.prototype.chromelessWindowResize=function(){};
var G=Menus.prototype.init;Menus.prototype.init=function(){G.apply(this,arguments);var c=this.editorUi;EditorUi.enablePlantUml&&!c.isOffline()&&c.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var t=new ParseDialog(c,mxResources.get("plantUml")+"...","plantUml");c.showDialog(t.container,620,420,!0,!1);t.init()}));c.actions.put("mermaid",new Action(mxResources.get("mermaid")+"...",function(){var t=new ParseDialog(c,mxResources.get("mermaid")+"...","mermaid");c.showDialog(t.container,
620,420,!0,!1);t.init()}));var f="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),l=function(t,z,C,F){t.addItem(C,null,mxUtils.bind(this,function(){var N=new CreateGraphDialog(c,C,F);c.showDialog(N.container,620,420,!0,!1);N.init()}),z)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(t,z){for(var C=0;C<f.length;C++)"-"==f[C]?t.addSeparator(z):l(t,z,mxResources.get(f[C])+"...",f[C])})))};EditorUi.prototype.installFormatToolbar=function(c){var f=
this.editor.graph,l=document.createElement("div");l.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";f.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(t,z){0<f.getSelectionCount()?(c.appendChild(l),l.innerHTML="Selected: "+f.getSelectionCount()):null!=l.parentNode&&l.parentNode.removeChild(l)}))};var P=!1;EditorUi.prototype.initFormatWindow=
@@ -4179,20 +4179,20 @@ mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,
function(){wa.isEnabled()?(za.removeAttribute("disabled"),za.style.cursor="pointer"):(za.setAttribute("disabled","disabled"),za.style.cursor="default")},wa.addListener("stateChanged",ja),N.addListener("enabledChanged",ja),ja());return za}function l(ja,pa,sa){sa=document.createElement("div");sa.className="geMenuItem";sa.style.display="inline-block";sa.style.verticalAlign="top";sa.style.marginRight="6px";sa.style.padding="0 4px 0 4px";sa.style.height="30px";sa.style.position="relative";sa.style.top=
"0px";for(var qa=0;qa<ja.length;qa++)null!=ja[qa]&&(ja[qa].style.margin="0px",ja[qa].style.boxShadow="none",sa.appendChild(ja[qa]));null!=pa&&mxUtils.setOpacity(sa,pa);null!=F.statusContainer?K.insertBefore(sa,F.statusContainer):K.appendChild(sa);return sa}function t(){for(var ja=K.firstChild;null!=ja;){var pa=ja.nextSibling;"geMenuItem"!=ja.className&&"geItem"!=ja.className||ja.parentNode.removeChild(ja);ja=pa}J=K.firstChild;m=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
ja=1E3>m;var sa=null;ja||(sa=c("diagram"));pa=ja?c("diagram",null,Editor.menuImage):null;null!=pa&&(sa=pa);l([sa,f(mxResources.get("shapes"),F.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),F.actions.get("image"),ja?Editor.shapesImage:null),f(mxResources.get("format"),F.actions.get("format").funct,null,mxResources.get("format")+" ("+F.actions.get("format").shortcut+")",F.actions.get("image"),ja?Editor.formatImage:null)],ja?60:null);pa=c("insert",!0,ja?W:null);l([pa,f(mxResources.get("delete"),
-F.actions.get("delete").funct,null,mxResources.get("delete"),F.actions.get("delete"),ja?Editor.trashImage:null)],ja?60:null);N.isEnabled()||pa.classList.add("mxDisabled");411<=m&&(l([U,O],60),520<=m&&l([T,640<=m?f("",ma.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",ma,Editor.zoomInImage):null,640<=m?f("",Z.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",Z,Editor.zoomOutImage):null],60))}R.apply(this,arguments);var z=mxUtils.isAncestorNode(document.body,this.container)?
+F.actions.get("delete").funct,null,mxResources.get("delete"),F.actions.get("delete"),ja?Editor.trashImage:null)],ja?60:null);N.isEnabled()||pa.classList.add("mxDisabled");411<=m&&(l([U,O],60),520<=m&&l([S,640<=m?f("",ma.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",ma,Editor.zoomInImage):null,640<=m?f("",Z.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",Z,Editor.zoomOutImage):null],60))}R.apply(this,arguments);var z=mxUtils.isAncestorNode(document.body,this.container)?
this.container:this.editor.graph.container;null!=z&&(z.classList.add("geSimple"),z.classList.add("geMinimal"));z=Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries);var C=document.createElement("div");C.style.cssText="position:absolute;left:0px;right:0px;top:0px;overflow-y:auto;overflow-x:hidden;";C.style.bottom=z?"32px":"0px";this.sidebar=this.createSidebar(C);if(1E3<=m||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])g(this,!0),null!=this.sidebar&&
null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes&&(this.sidebar.searchShapes(urlParams["search-shapes"]),this.sidebar.showEntries("search"));EditorUi.windowed&&1E3<=m&&(b(this,!0),this.formatWindow.window.setVisible(!0));var F=this,N=F.editor.graph;F.toolbar=this.createToolbar(F.createDiv("geToolbar"));F.defaultLibraryName=mxResources.get("untitledLibrary");var K=document.createElement("div");K.className="geMenubarContainer";var J=null,da=new Menubar(F,K);F.statusContainer=F.createStatusContainer();
F.statusContainer.style.position="relative";F.statusContainer.style.maxWidth="";F.statusContainer.style.cursor="default";var ea=F.hideCurrentMenu;F.hideCurrentMenu=function(){ea.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var ca=F.descriptorChanged;F.descriptorChanged=function(){ca.apply(this,arguments);var ja=F.getCurrentFile();if(null!=ja&&null!=ja.getTitle()){var pa=ja.getMode();"google"==pa?pa="googleDrive":"github"==pa?pa="gitHub":"gitlab"==pa?pa="gitLab":"onedrive"==
pa&&(pa="oneDrive");pa=mxResources.get(pa);K.setAttribute("title",ja.getTitle()+(null!=pa?" ("+pa+")":""))}else K.removeAttribute("title")};F.setStatusText(F.editor.getStatus());K.appendChild(F.statusContainer);F.buttonContainer=document.createElement("div");F.buttonContainer.style.cssText="display:flex;justify-content:flex-end;padding-right:10px;gap:6px;white-space:nowrap;background-color:inherit;align-items:center;min-width:0;margin-left:auto;";K.appendChild(F.buttonContainer);F.menubarContainer=
F.buttonContainer;F.tabContainer=document.createElement("div");F.tabContainer.className="geTabContainer geTabItem";F.tabContainer.style.cssText="position:absolute;left:0px;right:0px;bottom:0px;height:30px;white-space:nowrap;visibility:hidden;";z=F.diagramContainer.parentNode;C=document.createElement("div");C.style.cssText="position:absolute;top:0px;left:0px;right:0px;bottom:0px;overflow:hidden;";F.diagramContainer.style.top="47px";var W=Editor.addBoxImage;if(null!=F.hoverIcons){var ba=F.hoverIcons.update;
F.hoverIcons.update=function(){N.freehand.isDrawing()||ba.apply(this,arguments)}}if(null!=N.freehand){var ha=N.freehand.createStyle;N.freehand.createStyle=function(ja){return ha.apply(this,arguments)+"sketch=0;"}}F.editor.addListener("statusChanged",mxUtils.bind(this,function(){F.setStatusText(F.editor.getStatus())}));F.setStatusText(F.editor.getStatus());var la=F.menus.get("viewZoom");if(null!=la){var Y=function(ja){if(mxEvent.isAltDown(ja))F.hideCurrentMenu(),F.actions.get("customZoom").funct(),
-mxEvent.consume(ja);else if("geMenuItem"==mxEvent.getSource(ja).className||mxEvent.isShiftDown(ja))F.hideCurrentMenu(),F.actions.get("smartFit").funct(),mxEvent.consume(ja)},ma=F.actions.get("zoomIn"),Z=F.actions.get("zoomOut"),k=F.actions.get("resetView"),A=F.actions.get("undo"),I=F.actions.get("redo"),U=f("",A.funct,null,mxResources.get("undo")+" ("+A.shortcut+")",A,Editor.undoImage),O=f("",I.funct,null,mxResources.get("redo")+" ("+I.shortcut+")",I,Editor.redoImage),T=f("",Y,!0,mxResources.get("fit")+
+mxEvent.consume(ja);else if("geMenuItem"==mxEvent.getSource(ja).className||mxEvent.isShiftDown(ja))F.hideCurrentMenu(),F.actions.get("smartFit").funct(),mxEvent.consume(ja)},ma=F.actions.get("zoomIn"),Z=F.actions.get("zoomOut"),k=F.actions.get("resetView"),A=F.actions.get("undo"),I=F.actions.get("redo"),U=f("",A.funct,null,mxResources.get("undo")+" ("+A.shortcut+")",A,Editor.undoImage),O=f("",I.funct,null,mxResources.get("redo")+" ("+I.shortcut+")",I,Editor.redoImage),S=f("",Y,!0,mxResources.get("fit")+
" ("+Editor.ctrlKey+"+H)",k,Editor.zoomFitImage);K.style.cssText="position:absolute;left:0px;right:0px;top:0px;height:30px;padding:8px;text-align:left;white-space:nowrap;";this.tabContainer.style.right="70px";var X=da.addMenu("100%",la.funct);X.setAttribute("title",mxResources.get("zoom")+" (Alt+Mousewheel)");X.className="geTabItem";X.style.height=F.tabContainerHeight+"px";X.style.position="absolute";X.style.display="0"!=urlParams.pages?"flex":"none";X.style.alignItems="center";X.style.justifyContent=
"center";X.style.paddingRight="11px";X.style.whiteSpace="nowrap";X.style.overflow="hidden";X.style.fontSize="11px";X.style.width="51px";X.style.right="0px";X.style.bottom="0px";X.style.boxSizing="content-box";X.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";X.style.backgroundPosition="right 6px top 15px";X.style.backgroundRepeat="no-repeat";X.style.backgroundSize="10px";X.style.zIndex="1";C.appendChild(X);(function(ja){mxEvent.addListener(ja,"click",Y);var pa=mxUtils.bind(this,
function(sa,qa,wa){ja.innerText="";mxUtils.write(ja,Math.round(100*F.editor.graph.view.scale*(null!=wa?wa:1))+"%")});F.editor.graph.view.addListener(mxEvent.EVENT_SCALE,pa);F.editor.addListener("resetGraphView",pa);F.editor.addListener("pageSelected",pa);F.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(sa,qa){pa(sa,qa,qa.getProperty("factor"))}))})(X);var aa=F.setGraphEnabled;F.setGraphEnabled=function(){aa.apply(this,arguments);null!=this.tabContainer&&(X.style.visibility=this.tabContainer.style.visibility,
this.diagramContainer.style.bottom="0"!=urlParams.pages&&"hidden"!=this.tabContainer.style.visibility?this.tabContainerHeight+"px":"0px")}}C.appendChild(K);C.appendChild(F.diagramContainer);z.appendChild(C);F.updateTabContainer();!EditorUi.windowed&&1E3<=m&&b(this,!0);C.appendChild(F.tabContainer);t();F.addListener("lockedChanged",t);mxEvent.addListener(window,"resize",function(){t();null!=F.sidebarWindow&&F.sidebarWindow.window.fit();null!=F.formatWindow&&F.formatWindow.window.fit();null!=F.actions.outlineWindow&&
F.actions.outlineWindow.window.fit();null!=F.actions.layersWindow&&F.actions.layersWindow.window.fit();null!=F.menus.chatWindow&&F.menus.chatWindow.window.fit();null!=F.menus.tagsWindow&&F.menus.tagsWindow.window.fit();null!=F.menus.findWindow&&F.menus.findWindow.window.fit();null!=F.menus.findReplaceWindow&&F.menus.findReplaceWindow.window.fit()})}}};
-(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var e=EditorUi.initTheme;EditorUi.initTheme=function(){e.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,e,g,m,u,p,B){this.file=b;this.id=e;this.content=g;this.modifiedDate=m;this.createdDate=u;this.isResolved=p;this.user=B;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,e,g,m,u){e()};DrawioComment.prototype.editComment=function(b,e,g){e()};DrawioComment.prototype.deleteComment=function(b,e){b()};DrawioUser=function(b,e,g,m,u){this.id=b;this.email=e;this.displayName=g;this.pictureUrl=m;this.locale=u};mxResources.parse('# *DO NOT DIRECTLY EDIT THIS FILE, IT IS AUTOMATICALLY GENERATED AND IT IS BASED ON:*\n# https://docs.google.com/spreadsheet/ccc?key=0AmQEO36liL4FdDJLWVNMaVV2UmRKSnpXU09MYkdGbEE\nabout=About\naboutDrawio=About draw.io\naccessDenied=Access Denied\naccounts=Accounts\naction=Action\nactualSize=Actual Size\nadaptiveColors=Adaptive Colors\nadd=Add\naddAccount=Add account\naddedFile=Added {1}\naddImages=Add Images\naddImageUrl=Add Image URL\naddLayer=Add Layer\naddProperty=Add Property\naddress=Address\naddToExistingDrawing=Add to Existing Drawing\naddToScratchpad=Add to Scratchpad\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nsmartTemplate=Smart Template\nalign=Align\nalignment=Alignment\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\nanimations=Animations\narc=Arc\nareYouSure=Are you sure?\nensureDataSaved=Please ensure your data is saved before closing.\nallChangesSaved=All changes saved\nallChangesSavedInDrive=All changes saved in Drive\nallowPopups=Allow pop-ups to avoid this dialog.\nallowRelativeUrl=Allow relative URL\nalreadyConnected=Nodes already connected\nappearance=Appearance\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narrow=Arrow\narrows=Arrows\naskMeAnything=Ask me anything\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosize=Autosize\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nbeta=beta\nblankDrawing=Blank Drawing\nblankDiagram=Blank Diagram\nblock=Block\nblockquote=Blockquote\nblog=Blog\nbold=Bold\nbootstrap=Bootstrap\nborder=Border\nborderColor=Border Color\nborderWidth=Border Width\nbottom=Bottom\nbottomAlign=Bottom Align\nbottomLeft=Bottom Left\nbottomRight=Bottom Right\nbpmn=BPMN\nbringForward=Bring Forward\nbrowser=Browser\nbulletedList=Bulleted List\nbusiness=Business\nbusy=Operation in progress\ncabinets=Cabinets\ncancel=Cancel\ncenter=Center\ncannotLoad=Load attempts failed. Please try again later.\ncannotLogin=Log in attempts failed. Please try again later.\ncannotOpenFile=Cannot open file\nchange=Change\nchangeOrientation=Change Orientation\nchangeUser=Change user\nchangeStorage=Change storage\nchangesNotSaved=Changes have not been saved\nclassDiagram=Class Diagram\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nchromeApp=Chrome App\ncollaborativeEditingNotice=Important Notice for Collaborative Editing\ncompare=Compare\ncompressed=Compressed\ncommitMessage=Commit Message\nconfigLinkWarn=This link configures draw.io. Only click OK if you trust whoever gave you it!\nconfigLinkConfirm=Click OK to configure and restart draw.io.\ncontainer=Container\ncsv=CSV\ndark=Dark\ndiagramLanguage=Diagram Language\ndiagramType=Diagram type\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndisabled=Disabled\ndraftFound=A draft for \'{1}\' has been found. Load it into the editor or discard it to continue.\ndraftRevisionMismatch=There is a different version of this diagram on a shared draft of this page. Please edit the diagram from the draft to ensure you are working with the latest version.\nselectDraft=Select a draft to continue editing:\ndragAndDropNotSupported=Drag and drop not supported for images. Would you like to import instead?\ndropboxCharsNotAllowed=The following characters are not allowed: / : ? * " |\ncheck=Check\nchecksum=Checksum\ncircle=Circle\ncisco=Cisco\nclassic=Classic\nclearDefaultStyle=Clear Default Style\nclearWaypoints=Clear Waypoints\nclipart=Clipart\nclose=Close\nclosingFile=Closing file\nrealtimeCollaboration=Real-Time Collaboration\ncollaborate=Collaborate\ncollaborator=Collaborator\ncollaborators=Collaborators\ncollapse=Collapse\ncollapseExpand=Collapse/Expand\ncollapse-expand=Click to collapse/expand\nShift-click to move neighbors \nAlt-click to protect group size\ncollapsible=Collapsible\ncomic=Comic\ncomment=Comment\ncommentsNotes=Comments/Notes\ncompress=Compress\nconfiguration=Configuration\nconnect=Connect\nconnecting=Connecting\nconnectWithDrive=Connect with Google Drive\nconnection=Connection\nconnectionArrows=Connection Arrows\nconnectionPoints=Connection Points\nconstrainProportions=Constrain Proportions\ncontainsValidationErrors=Contains validation errors\ncopiedToClipboard=Copied to clipboard\ncopy=Copy\ncopyConnect=Copy on connect\ncopyCreated=A copy of the file was created.\ncopyData=Copy Data\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySize=Copy Size\ncopyStyle=Copy Style\ncreate=Create\ncreateBlankDiagram=Create Blank Diagram\ncreateNewDiagram=Create New Diagram\ncreateRevision=Create Revision\ncreateShape=Create Shape\ncrop=Crop\ncurved=Curved\ncustom=Custom\ncurrent=Current\ncurrentPage=Current page\ncut=Cut\ndashed=Dashed\ndecideLater=Decide later\ndefault=Default\ndelete=Delete\ndeleteAll=Delete all\ndeleteColumn=Delete column\ndeleteLibrary401=Insufficient permissions to delete this library\ndeleteLibrary404=Selected library could not be found\ndeleteLibrary500=Error deleting library\ndeleteLibraryConfirm=You are about to permanently delete this library. Are you sure you want to do this?\ndeleteRow=Delete Row\ndescription=Description\ndescribeYourDiagram=Describe your diagram\ndevice=Device\ndiagram=Diagram\ndiagramContent=Diagram Content\ndiagramLocked=Diagram has been locked to prevent further data loss.\ndiagramLockedBySince=The diagram is locked by {1} since {2} ago\ndiagramName=Diagram Name\ndiagramIsPublic=Diagram is public\ndiagramIsNotPublic=Diagram is not public\ndiamond=Diamond\ndiamondThin=Diamond (thin)\ndidYouKnow=Did you know...\ndirection=Direction\ndiscard=Discard\ndiscardChangesAndReconnect=Discard Changes and Reconnect\ngoogleDriveMissingClickHere=Google Drive missing? Click here!\ndiscardChanges=Discard Changes\ndisconnected=Disconnected\ndistribute=Distribute\ndone=Done\ndoNotShowAgain=Do not show again\ndotted=Dotted\ndoubleClickOrientation=Doubleclick to change orientation\ndoubleClickTooltip=Doubleclick to insert text\ndoubleClickChangeProperty=Doubleclick to change property name\ndownload=Download\ndownloadDesktop=Get Desktop\ndownloadAs=Download as\nclickHereToSave=Click here to save.\ndpi=DPI\ndraftDiscarded=Draft discarded\ndraftSaved=Draft saved\ndragElementsHere=Drag elements here\ndragImagesHere=Drag images or URLs here\ndragUrlsHere=Drag URLs here\ndraw.io=draw.io\ndrawing=Drawing{1}\ndrawingEmpty=Drawing is empty\ndrawingTooLarge=Drawing is too large\ndrawioForWork=Draw.io for GSuite\ndropbox=Dropbox\nduplicate=Duplicate\nduplicateIt=Duplicate {1}\ndivider=Divider\ndx=Dx\ndy=Dy\neast=East\nedit=Edit\neditData=Edit Data\neditDiagram=Edit Diagram\neditGeometry=Edit Geometry\neditImage=Edit Image\neditImageUrl=Edit Image URL\neditLink=Edit Link\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\nembed=Embed\nembedFonts=Embed Fonts\nembedImages=Embed Images\nmainEmbedNotice=Paste this into the page\nelectrical=Electrical\nellipse=Ellipse\nembedNotice=Paste this once at the end of the page\nenterGroup=Enter Group\nenterName=Enter Name\nenterPropertyName=Enter Property Name\nenterValue=Enter Value\nentityRelation=Entity Relation\nentityRelationshipDiagram=Entity Relationship Diagram\nerror=Error\nerrorDeletingFile=Error deleting file\nerrorLoadingFile=Error loading file\nerrorRenamingFile=Error renaming file\nerrorRenamingFileNotFound=Error renaming file. File was not found.\nerrorRenamingFileForbidden=Error renaming file. Insufficient access rights.\nerrorSavingDraft=Error saving draft\nerrorSavingFile=Error saving file\nerrorSavingFileUnknown=Error authorizing with Google\'s servers. Please refresh the page to re-attempt.\nerrorSavingFileForbidden=Error saving file. Insufficient access rights.\nerrorSavingFileNameConflict=Could not save diagram. Current page already contains file named \'{1}\'.\nerrorSavingFileNotFound=Error saving file. File was not found.\nerrorSavingFileReadOnlyMode=Could not save diagram while read-only mode is active.\nerrorSavingFileSessionTimeout=Your session has ended. Please <a target=\'_blank\' href=\'{1}\'>{2}</a> and return to this tab to try to save again.\nerrorSendingFeedback=Error sending feedback.\nerrorUpdatingPreview=Error updating preview.\nexit=Exit\nexitGroup=Exit Group\nexpand=Expand\nexplore=Explore\nexport=Export\nexporting=Exporting\nexportAs=Export as\nexportOptionsDisabled=Export options disabled\nexportOptionsDisabledDetails=The owner has disabled options to download, print or copy for commenters and viewers on this file.\nexternalChanges=External Changes\nextras=Extras\nfacebook=Facebook\nfailedToSaveTryReconnect=Failed to save, trying to reconnect\nfeatureRequest=Feature Request\nfeedback=Feedback\nfeedbackSent=Feedback successfully sent.\nfloorplans=Floorplans\nfile=File\nfileChangedOverwriteDialog=The file has been modified. Do you want to save the file and overwrite those changes?\nfileChangedSyncDialog=The file has been modified.\nfileChangedSync=The file has been modified. Click here to synchronize.\noverwrite=Overwrite\nsynchronize=Synchronize\nfilename=Filename\nfileExists=File already exists\nfileMovedToTrash=File was moved to trash\nfileNearlyFullSeeFaq=File nearly full, please see FAQ\nfileNotFound=File not found\nrepositoryNotFound=Repository not found\nfileNotFoundOrDenied=The file was not found. It does not exist or you do not have access.\nfileNotLoaded=File not loaded\nfileNotSaved=File not saved\nfileOpenLocation=How would you like to open these file(s)?\nfiletypeHtml=.html causes file to save as HTML with redirect to cloud URL\nfiletypePng=.png causes file to save as PNG with embedded data\nfiletypeSvg=.svg causes file to save as SVG with embedded data\nfileWillBeSavedInAppFolder={1} will be saved in the app folder.\nfill=Fill\nfillColor=Fill Color\nfilterCards=Filter Cards\nfind=Find\nfit=Fit\nfitContainer=Resize Container\nfitIntoContainer=Fit into Container\nfitPage=Fit Page\nfitPageWidth=Fit Page Width\nfitTo=Fit to\nfitToSheetsAcross=sheet(s) across\nfitToBy=by\nfitToSheetsDown=sheet(s) down\nfitTwoPages=Two Pages\nfitWindow=Fit Window\nflip=Flip\nflipH=Flip Horizontal\nflipV=Flip Vertical\nflowAnimation=Flow Animation\nflowchart=Flowchart\nfolder=Folder\nfont=Font\nfontColor=Font Color\nfontFamily=Font Family\nfontSize=Font Size\nforbidden=You are not authorized to access this file\nformat=Format\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatSvgEmbedded=SVG (with XML)\nformatVsdx=VSDX\nformatVssx=VSSX\nformatWebp=WebP\nformatXmlPlain=XML (Plain)\nformatXml=XML\nforum=Discussion/Help Forums\nfreehand=Freehand\nfromTemplate=From Template\nfromTemplateUrl=From Template URL\nfromText=From Text\nfromUrl=From URL\nfromThisPage=From this page\nfullscreen=Fullscreen\ngap=Gap\ngcp=GCP\ngeneral=General\ngetNotionChromeExtension=Get the Notion Chrome Extension\ngithub=GitHub\ngitlab=GitLab\ngliffy=Gliffy\nglobal=Global\ngoogleDocs=Google Docs\ngoogleDrive=Google Drive\ngoogleGadget=Google Gadget\ngoogleSharingNotAvailable=Sharing is only available via Google Drive. Please click Open below and share from the more actions menu:\ngoogleSlides=Google Slides\ngoogleSites=Google Sites\ngoogleSheets=Google Sheets\ngradient=Gradient\ngradientColor=Color\ngrid=Grid\ngridColor=Grid Color\ngridSize=Grid Size\ngroup=Group\nguides=Guides\nhateApp=I hate draw.io\nheading=Heading\nheight=Height\nhelp=Help\nhelpTranslate=Help us translate this application\nhide=Hide\nhideIt=Hide {1}\nhidden=Hidden\nhighContrast=High Contrast\nhome=Home\nhorizontal=Horizontal\nhorizontalFlow=Horizontal Flow\nhorizontalTree=Horizontal Tree\nhowTranslate=How good is the translation in your language?\nhtml=HTML\nhtmlText=HTML Text\nid=ID\niframe=IFrame\nignore=Ignore\nimage=Image\nimageUrl=Image URL\nimages=Images\nimagePreviewError=This image couldn\'t be loaded for preview. Please check the URL.\nimageTooBig=Image too big\nimgur=Imgur\nimport=Import\nimportFrom=Import from\nimproveContrast=Improve Contrast\nincludeCopyOfMyDiagram=Include a copy of my diagram\nincreaseIndent=Increase Indent\ndecreaseIndent=Decrease Indent\ninsert=Insert\ninsertColumnBefore=Insert Column Left\ninsertColumnAfter=Insert Column Right\ninsertEllipse=Insert Ellipse\ninsertImage=Insert Image\ninsertHorizontalRule=Insert Horizontal Rule\ninsertLink=Insert Link\ninsertPage=Insert Page\ninsertRectangle=Insert Rectangle\ninsertRhombus=Insert Rhombus\ninsertRowBefore=Insert Row Above\ninsertRowAfter=Insert Row After\ninsertText=Insert Text\ninserting=Inserting\ninstallApp=Install App\ninvalidFilename=Diagram names must not contain the following characters: / | : ; { } < > & + ? = "\ninvalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://www.drawio.com/doc/faq/license-drawio-confluence-jira-cloud">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\nisometric=Isometric\nios=iOS\nitalic=Italic\nkennedy=Kennedy\nkeyboardShortcuts=Keyboard Shortcuts\nlabels=Labels\nlayers=Layers\nlandscape=Landscape\nlanguage=Language\nleanMapping=Lean Mapping\nlastChange=Last change {1} ago\nlessThanAMinute=less than a minute\nlicensingError=Licensing Error\nlicenseHasExpired=The license for {1} has expired on {2}. Click here.\nlicenseRequired=This feature requires draw.io to be licensed.\nlicenseWillExpire=The license for {1} will expire on {2}. Click here.\nlight=Light\nlineJumps=Line jumps\nlinkAccountRequired=If the diagram is not public a Google account is required to view the link.\nlinkText=Link Text\nlist=List\nminute=minute\nminutes=minutes\nhours=hours\ndays=days\nmonths=months\nyears=years\nrestartForChangeRequired=Changes will take effect after a restart of the application.\nlaneColor=Lanecolor\nlanguageCode=Language Code\nlastModified=Last modified\nlayout=Layout\nleft=Left\nleftAlign=Left Align\nleftToRight=Left to right\nlibraryTooltip=Drag and drop shapes here or click + to insert. Double click to edit.\nlightbox=Lightbox\nline=Line\nlineend=Line end\nlineheight=Line Height\nlinestart=Line start\nlinewidth=Linewidth\nlink=Link\nlinks=Links\nloading=Loading\nlocked=Locked\nlockUnlock=Lock/Unlock\nloggedOut=Logged Out\nlogIn=log in\nloveIt=I love {1}\nlucidchart=Lucidchart\nmaps=Maps\nmathematicalTypesetting=Mathematical Typesetting\nmakeCopy=Make a Copy\nmanual=Manual\nmerge=Merge\nmermaid=Mermaid\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nmisc=Misc\nmockups=Mockups\nmodern=Modern\nmodificationDate=Modification date\nmodifiedBy=Modified by\nmore=More\nmoreResults=More Results\nmoreShapes=More Shapes\nmove=Move\nmoveToFolder=Move to Folder\nmoving=Moving\nmoveSelectionTo=Move selection to {1}\nmyDrive=My Drive\nmyFiles=My Files\nname=Name\nnavigation=Navigation\nnetwork=Network\nnetworking=Networking\nnew=New\nnewLibrary=New Library\nnextPage=Next Page\nno=No\nnoPickFolder=No, pick folder\nnoAttachments=No attachments found\nnoColor=No Color\nnoFiles=No Files\nnoFileSelected=No file selected\nnoLibraries=No libraries found\nnoMoreResults=No more results\nnone=None\nnoOtherViewers=No other viewers\nnoPlugins=No plugins\nnoPreview=No preview\nnoResponse=No response from server\nnoResultsFor=No results for \'{1}\'\nnoRevisions=No revisions\nnoSearchResults=No search results found\nnoPageContentOrNotSaved=No anchors found on this page or it hasn\'t been saved yet\nnormal=Normal\nnorth=North\nnotADiagramFile=Not a diagram file\nnotALibraryFile=Not a library file\nnotAvailable=Not available\nnotAUtf8File=Not a UTF-8 file\nnotConnected=Not connected\nnote=Note\nnotion=Notion\nnotSatisfiedWithImport=Not satisfied with the import?\nnotUsingService=Not using {1}?\nnumberedList=Numbered list\noffline=Offline\nok=OK\noneDrive=OneDrive\nonline=Online\nopacity=Opacity\nopen=Open\nopenArrow=Open Arrow\nopenExistingDiagram=Open Existing Diagram\nopenFile=Open File\nopenFrom=Open from\nopenLibrary=Open Library\nopenLibraryFrom=Open Library from\nopenLink=Open Link\nopenInNewWindow=Open in New Window\nopenInThisWindow=Open in This Window\nopenIt=Open {1}\nopenRecent=Open Recent\nopenSupported=Supported formats are files saved from this software (.xml), .vsdx and .gliffy\noptions=Options\norganic=Organic\norgChart=Org Chart\northogonal=Orthogonal\notherViewer=other viewer\notherViewers=other viewers\noutline=Outline\noval=Oval\npage=Page\npageContent=Page Content\npageNotFound=Page not found\npageWithNumber=Page-{1}\npages=Pages\npageTabs=Page Tabs\npageView=Page View\npageSetup=Page Setup\npageScale=Page Scale\npan=Pan\npanTooltip=Space+Drag to pan\npaperSize=Paper Size\npattern=Pattern\nparallels=Parallels\npaste=Paste\npasteData=Paste Data\npasteHere=Paste here\npasteSize=Paste Size\npasteStyle=Paste Style\nperimeter=Perimeter\npermissionAnyone=Anyone can edit\npermissionAuthor=Owner and admins can edit\npickFolder=Pick a folder\npickLibraryDialogTitle=Select Library\npublicDiagramUrl=Public URL of the diagram\nplaceholders=Placeholders\nplantUml=PlantUML\nplugins=Plugins\npluginUrl=Plugin URL\npluginWarning=The page has requested to load the following plugin(s):\n \n {1}\n \n Would you like to load these plugin(s) now?\n \n NOTE : Only allow plugins to run if you fully understand the security implications of doing so.\n\nplusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone).\nportrait=Portrait\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\npresentationMode=Presentation Mode\nprint=Print\nprocEng=Proc. Eng.\nproject=Project\npriority=Priority\nprocessForHiringNewEmployee=Process for hiring a new employee\nproperties=Properties\npublish=Publish\nquickStart=Quick Start Video\nrack=Rack\nradial=Radial\nradialTree=Radial Tree\nreadOnly=Read-only\nreconnecting=Reconnecting\nrecentlyUpdated=Recently Updated\nrecentlyViewed=Recently Viewed\nrectangle=Rectangle\nredirectToNewApp=This file was created or modified in a newer version of this app. You will be redirected now.\nrealtimeTimeout=It looks like you\'ve made a few changes while offline. We\'re sorry, these changes cannot be saved.\nredo=Redo\nrefresh=Refresh\nregularExpression=Regular Expression\nrelative=Relative\nrelativeUrlNotAllowed=Relative URL not allowed\nrememberMe=Remember me\nrememberThisSetting=Remember this setting\nremoveFormat=Clear Formatting\nremoveFromGroup=Remove from Group\nremoveIt=Remove {1}\nremoveWaypoint=Remove Waypoint\nrename=Rename\nrenamed=Renamed\nrenameIt=Rename {1}\nrenaming=Renaming\nreplace=Replace\nreplaceIt={1} already exists. Do you want to replace it?\nreplaceExistingDrawing=Replace existing drawing\nrequired=required\nrequirementDiagram=Requirement Diagram\nreset=Reset\nresetView=Reset View\nresize=Resize\nresizeLargeImages=Do you want to resize large images to make the application run faster?\nretina=Retina\nresponsive=Responsive\nrestore=Restore\nrestoring=Restoring\nretryingIn=Retrying in {1} second(s)\nretryingLoad=Load failed. Retrying...\nretryingLogin=Login time out. Retrying...\nreverse=Reverse\nrevision=Revision\nrevisionHistory=Revision History\nrhombus=Rhombus\nright=Right\nrightAlign=Right Align\nrightToLeft=Right to left\nrotate=Rotate\nrotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees\nrotation=Rotation\nrounded=Rounded\nsave=Save\nsaveAndExit=Save & Exit\nsaveAs=Save As\nsaveAsXmlFile=Save as XML file?\nsaved=Saved\nsaveDiagramFirst=Please save the diagram first\nsaveDiagramsTo=Save diagrams to\nsaveLibrary403=Insufficient permissions to edit this library\nsaveLibrary500=There was an error while saving the library\nsaveLibraryReadOnly=Could not save library while read-only mode is active\nsaving=Saving\nscratchpad=Scratchpad\nscrollbars=Scrollbars\nsearch=Search\nsearchShapes=Search Shapes\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectedPage=Selected Page\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselectNone=Select None\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nsequenceDiagram=Sequence Diagram\nserviceUnavailableOrBlocked=Service unavailable or blocked\nsessionExpired=Your session has expired. Please refresh the browser window.\nsessionTimeoutOnSave=Your session has timed out and you have been disconnected from the Google Drive. Press OK to login and save.\nsetAsDefaultStyle=Set as Default Style\nsettings=Settings\nshadow=Shadow\nshape=Shape\nshapes=Shapes\nshare=Share\nshareCursor=Share Mouse Cursor\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsaveItToGoogleDriveToCollaborate=You\'ll need to save "{1}" to Google Drive before you can collaborate.\nsaveToGoogleDrive=Save to Google Drive\nsharp=Sharp\nshow=Show\nshowRemoteCursors=Show Remote Mouse Cursors\nshowStartScreen=Show Start Screen\nsidebarTooltip=Click or drag and drop shapes. Shift+click to change selection. Alt+click to insert and connect.\nsigns=Signs\nsignOut=Sign out\nsimple=Simple\nsimpleArrow=Simple Arrow\nsimpleViewer=Simple Viewer\nsize=Size\nsketch=Sketch\nsmoothing=Smoothing\nsnapToGrid=Snap to Grid\nsolid=Solid\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstateDiagram=State Diagram\nstandard=Standard\nstartDrawing=Start drawing\nstopDrawing=Stop drawing\nstarting=Starting\nstraight=Straight\nstrikethrough=Strikethrough\nstrokeColor=Line Color\nstyle=Style\nsubscript=Subscript\nsummary=Summary\nsuperscript=Superscript\nsupport=Support\nswap=Swap\nswimlaneDiagram=Swimlane Diagram\nsysml=SysML\ntags=Tags\ntable=Table\ntables=Tables\ntakeOver=Take Over\ntargetSpacing=Target Spacing\ntemplate=Template\ntemplates=Templates\ntext=Text\ntextAlignment=Text Alignment\ntextOpacity=Text Opacity\ntheme=Theme\ntimeout=Timeout\ntitle=Title\nto=to\ntoBack=To Back\ntoFront=To Front\ntooLargeUseDownload=Too large, use download instead.\ntoolbar=Toolbar\ntooltips=Tooltips\ntop=Top\ntopAlign=Top Align\ntopLeft=Top Left\ntopRight=Top Right\ntransparent=Transparent\ntransparentBackground=Transparent Background\ntrello=Trello\ntryAgain=Try again\ntryOpeningViaThisPage=Try opening via this page\nturn=Rotate shape only by 90°\ntype=Type\ntwitter=Twitter\numl=UML\nunassigned=Unassigned\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunmerge=Unmerge\nunsavedChanges=Unsaved changes\nunsavedChangesClickHereToSave=Unsaved changes. Click here to save.\nuntitled=Untitled\nuntitledDiagram=Untitled Diagram\nuntitledLayer=Untitled Layer\nuntitledLibrary=Untitled Library\nunknownError=Unknown error\nunknownUser=Unknown user\nupdateExistingDrawing=Update existing drawing\nupdateFile=Update {1}\nupdatingDocument=Updating Document. Please wait...\nupdatingPreview=Updating Preview. Please wait...\nupdatingSelection=Updating Selection. Please wait...\nupload=Upload\nurl=URL\nuseBlackAndWhite=Use black and white\nuseCurrentSettings=Use current settings\nuseOffline=Use Offline\nuserDefined=User-defined\nuseRootFolder=Use root folder?\nuserManual=User Manual\nvertical=Vertical\nverticalFlow=Vertical Flow\nverticalTree=Vertical Tree\nview=View\nviewerSettings=Viewer Settings\nviewUrl=Link to view: {1}\nvoiceAssistant=Voice Assistant (beta)\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwhere=Where\nwidth=Width\nwiki=Wiki\nwordWrap=Word Wrap\nwritingDirection=Writing Direction\nyes=Yes\nyourEmailAddress=Your email address\nzoom=Zoom\nzoomIn=Zoom In\nzoomOut=Zoom Out\nbasic=Basic\nbusinessprocess=Business Processes\ncharts=Charts\nengineering=Engineering\nflowcharts=Flowcharts\ngmdl=Material Design\nmindmaps=Mindmaps\nmockups=Mockups\nnetworkdiagrams=Network Diagrams\nnothingIsSelected=Nothing is selected\nother=Other\nsoftwaredesign=Software Design\nvenndiagrams=Venn Diagrams\nwebEmailOrOther=Web, email or any other internet address\nwebLink=Web Link\nwireframes=Wireframes\nproperty=Property\nvalue=Value\nshowMore=Show More\nshowLess=Show Less\nmyDiagrams=My Diagrams\nallDiagrams=All Diagrams\nrecentlyUsed=Recently used\nlistView=List view\ngridView=Grid view\nresultsFor=Results for \'{1}\'\noneDriveCharsNotAllowed=The following characters are not allowed: ~ " # % * : < > ? / { | }\noneDriveInvalidDeviceName=The specified device name is invalid\nofficeNotLoggedOD=You are not logged in to OneDrive. Please open draw.io task pane and login first.\nofficeSelectSingleDiag=Please select a single draw.io diagram only without other contents.\nofficeSelectDiag=Please select a draw.io diagram.\nofficeCannotFindDiagram=Cannot find a draw.io diagram in the selection\nnoDiagrams=No diagrams found\nauthFailed=Authentication failed\nofficeFailedAuthMsg=Unable to successfully authenticate user or authorize application.\nconvertingDiagramFailed=Converting diagram failed\nofficeCopyImgErrMsg=Due to some limitations in the host application, the image could not be inserted. Please manually copy the image then paste it to the document.\ninsertingImageFailed=Inserting image failed\nofficeCopyImgInst=Instructions: Right-click the image below. Select "Copy image" from the context menu. Then, in the document, right-click and select "Paste" from the context menu.\nfolderEmpty=Folder is empty\nrecent=Recent\nsharedWithMe=Shared With Me\nsharepointSites=Sharepoint Sites\nerrorFetchingFolder=Error fetching folder items\nerrorAuthOD=Error authenticating to OneDrive\nofficeMainHeader=Adds draw.io diagrams to your document.\nofficeStepsHeader=This add-in performs the following steps:\nofficeStep1=Connects to Microsoft OneDrive, Google Drive or your device.\nofficeStep2=Select a draw.io diagram.\nofficeStep3=Insert the diagram into the document.\nofficeAuthPopupInfo=Please complete the authentication in the pop-up window.\nofficeSelDiag=Select draw.io Diagram:\nfiles=Files\nshared=Shared\nsharepoint=Sharepoint\nofficeManualUpdateInst=Instructions: Copy draw.io diagram from the document. Then, in the box below, right-click and select "Paste" from the context menu.\nofficeClickToEdit=Click icon to start editing:\npasteDiagram=Paste draw.io diagram here\nconnectOD=Connect to OneDrive\nselectChildren=Select Children\nselectSiblings=Select Siblings\nselectParent=Select Parent\nselectDescendants=Select Descendants\nlastSaved=Last saved {1} ago\nresolve=Resolve\nreopen=Re-open\nshowResolved=Show Resolved\nreply=Reply\nobjectNotFound=Object not found\nreOpened=Re-opened\nmarkedAsResolved=Marked as resolved\nnoCommentsFound=No comments found\ncomments=Comments\ntimeAgo={1} ago\nconfluenceCloud=Confluence Cloud\nlibraries=Libraries\nconfAnchor=Confluence Page Anchor\nconfTimeout=The connection has timed out\nconfSrvTakeTooLong=The server at {1} is taking too long to respond.\nconfCannotInsertNew=Cannot insert draw.io diagram to a new Confluence page\nconfSaveTry=Please save the page and try again.\nconfCannotGetID=Unable to determine page ID\nconfContactAdmin=Please contact your Confluence administrator.\nreadErr=Read Error\neditingErr=Editing Error\nconfExtEditNotPossible=This diagram cannot be edited externally. Please try editing it while editing the page\nconfEditedExt=Diagram/Page edited externally\ndiagNotFound=Diagram Not Found\nconfEditedExtRefresh=Diagram/Page is edited externally. Please refresh the page.\nconfCannotEditDraftDelOrExt=Cannot edit diagrams in a draft page, diagram is deleted from the page, or diagram is edited externally. Please check the page.\nretBack=Return back\nconfDiagNotPublished=The diagram does not belong to a published page\ncreatedByDraw=Created by draw.io\nfilenameShort=Filename too short\ninvalidChars=Invalid characters\nalreadyExst={1} already exists\ndraftReadErr=Draft Read Error\ndiagCantLoad=Diagram cannot be loaded\ndraftWriteErr=Draft Write Error\ndraftCantCreate=Draft could not be created\nconfDuplName=Duplicate diagram name detected. Please pick another name.\nconfSessionExpired=Looks like your session expired. Log in again to keep working.\nlogin=Login\ndrawPrev=draw.io preview\ndrawDiag=draw.io diagram\ninvalidCallFnNotFound=Invalid Call: {1} not found\ninvalidCallErrOccured=Invalid Call: An error occurred, {1}\nanonymous=Anonymous\nconfGotoPage=Go to containing page\nshowComments=Show Comments\nconfError=Error: {1}\ngliffyImport=Gliffy Import\ngliffyImportInst1=Click the "Start Import" button to import all Gliffy diagrams to draw.io.\ngliffyImportInst2=Please note that the import procedure will take some time and the browser window must remain open until the import is completed.\nstartImport=Start Import\ndrawConfig=draw.io Configuration\ncustomLib=Custom Libraries\ncustomTemp=Custom Templates\npageIdsExp=Page IDs Export\ndrawReindex=draw.io re-indexing (beta)\nworking=Working\ndrawConfigNotFoundInst=draw.io Configuration Space (DRAWIOCONFIG) does not exist. This space is needed to store draw.io configuration files and custom libraries/templates.\ncreateConfSp=Create Config Space\nunexpErrRefresh=Unexpected error, please refresh the page and try again.\nconfigJSONInst=Write draw.io JSON configuration in the editor below then click save. If you need help, please refer to\nthisPage=this page\ncurCustLib=Current Custom Libraries\nlibName=Library Name\naction=Action\ndrawConfID=draw.io Config ID\naddLibInst=Click the "Add Library" button to upload a new library.\naddLib=Add Library\ncustomTempInst1=Custom templates are draw.io diagrams saved in children pages of\ncustomTempInst2=For more details, please refer to\ntempsPage=Templates page\npageIdsExpInst1=Select export target, then click the "Start Export" button to export all pages IDs.\npageIdsExpInst2=Please note that the export procedure will take some time and the browser window must remain open until the export is completed.\nstartExp=Start Export\nrefreshDrawIndex=Refresh draw.io Diagrams Index\nreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.\nreindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.\nstartIndexing=Start Indexing\nconfAPageFoundFetch=Page "{1}" found. Fetching\nconfAAllDiagDone=All {1} diagrams processed. Process finished.\nconfAStartedProcessing=Started processing page "{1}"\nconfAAllDiagInPageDone=All {1} diagrams in page "{2}" processed successfully.\nconfAPartialDiagDone={1} out of {2} {3} diagrams in page "{4}" processed successfully.\nconfAUpdatePageFailed=Updating page "{1}" failed.\nconfANoDiagFoundInPage=No {1} diagrams found in page "{2}".\nconfAFetchPageFailed=Fetching the page failed.\nconfANoDiagFound=No {1} diagrams found. Process finished.\nconfASearchFailed=Searching for {1} diagrams failed. Please try again later.\nconfAGliffyDiagFound={2} diagram "{1}" found. Importing\nconfAGliffyDiagImported={2} diagram "{1}" imported successfully.\nconfASavingImpGliffyFailed=Saving imported {2} diagram "{1}" failed.\nconfAImportedFromByDraw=Imported from "{1}" by draw.io\nconfAImportGliffyFailed=Importing {2} diagram "{1}" failed.\nconfAFetchGliffyFailed=Fetching {2} diagram "{1}" failed.\nconfACheckBrokenDiagLnk=Checking for broken diagrams links.\nconfADelDiagLinkOf=Deleting diagram link of "{1}"\nconfADupLnk=(duplicate link)\nconfADelDiagLnkFailed=Deleting diagram link of "{1}" failed.\nconfAUnexpErrProcessPage=Unexpected error during processing the page with id: {1}\nconfADiagFoundIndex=Diagram "{1}" found. Indexing\nconfADiagIndexSucc=Diagram "{1}" indexed successfully.\nconfAIndexDiagFailed=Indexing diagram "{1}" failed.\nconfASkipDiagOtherPage=Skipped "{1}" as it belongs to another page!\nconfADiagUptoDate=Diagram "{1}" is up to date.\nconfACheckPagesWDraw=Checking pages having draw.io diagrams.\nconfAErrOccured=An error occurred!\nsavedSucc=Saved successfully\nconfASaveFailedErr=Saving Failed (Unexpected Error)\ncharacter=Character\nconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachment\nconfALibPageDesc=This page contains draw.io custom libraries as attachments\nconfATempPageDesc=This page contains draw.io custom templates as attachments\nworking=Working\nconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templates\nconfANoCustLib=No Custom Libraries\ndelFailed=Delete failed!\nshowID=Show ID\nconfAIncorrectLibFileType=Incorrect file type. Libraries should be XML files.\nuploading=Uploading\nconfALibExist=This library already exists\nconfAUploadSucc=Uploaded successfully\nconfAUploadFailErr=Upload Failed (Unexpected Error)\nhiResPreview=High Res Preview\nofficeNotLoggedGD=You are not logged in to Google Drive. Please open draw.io task pane and login first.\nofficePopupInfo=Please complete the process in the pop-up window.\npickODFile=Pick OneDrive File\ncreateODFile=Create OneDrive File\npickGDriveFile=Pick Google Drive File\ncreateGDriveFile=Create Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nconfEditDraftDelOrExt=This diagram is in a draft page, is deleted from the page, or is edited externally. It will be saved as a new attachment version and may not be reflected in the page.\nconfDiagEditedExt=Diagram is edited in another session. It will be saved as a new attachment version but the page will show other session\'s modifications.\nmacroNotFound=Macro Not Found\nconfAInvalidPageIdsFormat=Incorrect Page IDs file format\nconfACollectingCurPages=Collecting current pages\nconfABuildingPagesMap=Building pages mapping\nconfAProcessDrawDiag=Started processing imported draw.io diagrams\nconfAProcessDrawDiagDone=Finished processing imported draw.io diagrams\nconfAProcessImpPages=Started processing imported pages\nconfAErrPrcsDiagInPage=Error processing draw.io diagrams in page "{1}"\nconfAPrcsDiagInPage=Processing draw.io diagrams in page "{1}"\nconfAImpDiagram=Importing diagram "{1}"\nconfAImpDiagramFailed=Importing diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\nconfAImpDiagramError=Error importing diagram "{1}". Cannot fetch or save the diagram. Cannot fix this diagram links.\nconfAUpdateDgrmCCFailed=Updating link to diagram "{1}" failed.\nconfImpDiagramSuccess=Updating diagram "{1}" done successfully.\nconfANoLnksInDrgm=No links to update in: {1}\nconfAUpdateLnkToPg=Updated link to page: "{1}" in diagram: "{2}"\nconfAUpdateLBLnkToPg=Updated lightbox link to page: "{1}" in diagram: "{2}"\nconfAUpdateLnkBase=Updated base URL from: "{1}" to: "{2}" in diagram: "{3}"\nconfAPageIdsImpDone=Page IDs Import finished\nconfAPrcsMacrosInPage=Processing draw.io macros in page "{1}"\nconfAErrFetchPage=Error fetching page "{1}"\nconfAFixingMacro=Fixing macro of diagram "{1}"\nconfAErrReadingExpFile=Error reading export file\nconfAPrcsDiagInPageDone=Processing draw.io diagrams in page "{1}" finished\nconfAFixingMacroSkipped=Fixing macro of diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\npageIdsExpTrg=Export target\nconfALucidDiagImgImported={2} diagram "{1}" image extracted successfully\nconfASavingLucidDiagImgFailed=Extracting {2} diagram "{1}" image failed\nconfGetInfoFailed=Fetching file info from {1} failed.\nconfCheckCacheFailed=Cannot get cached file info.\nconfReadFileErr=Cannot read "{1}" file from {2}.\nconfSaveCacheFailed=Unexpected error. Cannot save cached file\norgChartType=Org Chart Type\nlinear=Linear\nhanger2=Hanger 2\nhanger4=Hanger 4\nfishbone1=Fishbone 1\nfishbone2=Fishbone 2\n1ColumnLeft=Single Column Left\n1ColumnRight=Single Column Right\nsmart=Smart\nparentChildSpacing=Parent Child Spacing\nsiblingSpacing=Sibling Spacing\nconfNoPermErr=Sorry, you don\'t have enough permissions to view this embedded diagram from page {1}\ncopyAsImage=Copy as Image\ncopyAsText=Copy as Text\nlucidImport=Lucidchart Import\nlucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.\ninstallFirst=Please install {1} first\ndrawioChromeExt=draw.io Chrome Extension\nloginFirstThen=Please login to {1} first, then {2}\nerrFetchDocList=Error: Couldn\'t fetch documents list\nbuiltinPlugins=Built-in Plugins\nextPlugins=External Plugins\nbackupFound=Backup file found\nchromeOnly=This feature only works in Google Chrome\nmsgDeleted=This message has been deleted\nconfAErrFetchDrawList=Error fetching diagrams list. Some diagrams are skipped.\nconfAErrCheckDrawDiag=Cannot check diagram {1}\nconfAErrFetchPageList=Error fetching pages list\nconfADiagImportIncom={1} diagram "{2}" is imported partially and may have missing shapes\ninvalidSel=Invalid selection\ndiagNameEmptyErr=Diagram name cannot be empty\nopenDiagram=Open Diagram\nnewDiagram=New diagram\neditable=Editable\nconfAReimportStarted=Re-import {1} diagrams started...\nspaceFilter=Filter by spaces\ncurViewState=Current Viewer State\npageLayers=Page and Layers\ncustomize=Customize\nfirstPage=First Page (All Layers)\ncurEditorState=Current Editor State\nnoAnchorsFound=No anchors found\nattachment=Attachment\ncurDiagram=Current Diagram\nrecentDiags=Recent Diagrams\ncsvImport=CSV Import\nchooseFile=Choose a file...\nchoose=Choose\ngdriveFname=Google Drive filename\nwidthOfViewer=Width of the viewer (px)\nheightOfViewer=Height of the viewer (px)\nautoSetViewerSize=Automatically set the size of the viewer\nthumbnail=Thumbnail\nprevInDraw=Preview in draw.io\nonedriveFname=OneDrive filename\ndiagFname=Diagram filename\ndiagUrl=Diagram URL\nshowDiag=Show Diagram\ndiagPreview=Diagram Preview\ncsvFileUrl=CSV File URL\ngenerate=Generate\nselectDiag2Insert=Please select a diagram to insert it.\nerrShowingDiag=Unexpected error. Cannot show diagram\nnoRecentDiags=No recent diagrams found\nfetchingRecentFailed=Failed to fetch recent diagrams\nuseSrch2FindDiags=Use the search box to find draw.io diagrams\ncantReadChckPerms=Cannot read the specified diagram. Please check you have read permission on that file.\ncantFetchChckPerms=Cannot fetch diagram info. Please check you have read permission on that file.\nsearchFailed=Searching failed. Please try again later.\nplsTypeStr=Please type a search string.\nunsupportedFileChckUrl=Unsupported file. Please check the specified URL\ndiagNotFoundChckUrl=Diagram not found or cannot be accessed. Please check the specified URL\ncsvNotFoundChckUrl=CSV file not found or cannot be accessed. Please check the specified URL\ncantReadUpload=Cannot read the uploaded diagram\nselect=Select\nerrCantGetIdType=Unexpected Error: Cannot get content id or type.\nerrGAuthWinBlocked=Error: Google Authentication window blocked\nauthDrawAccess=Authorize draw.io to access {1}\nconnTimeout=The connection has timed out\nerrAuthSrvc=Error authenticating to {1}\nplsSelectFile=Please select a file\nmustBgtZ={1} must be greater than zero\ncantLoadPrev=Cannot load file preview.\nerrAccessFile=Error: Access Denied. You do not have permission to access "{1}".\nnoPrevAvail=No preview is available.\npersonalAccNotSup=Personal accounts are not supported.\nerrSavingTryLater=Error occurred during saving, please try again later.\nplsEnterFld=Please enter {1}\ninvalidDiagUrl=Invalid Diagram URL\nunsupportedVsdx=Unsupported vsdx file\nunsupportedImg=Unsupported image file\nunsupportedFormat=Unsupported file format\nplsSelectSingleFile=Please select a single file only\nattCorrupt=Attachment file "{1}" is corrupted\nloadAttFailed=Failed to load attachment "{1}"\nembedDrawDiag=Embed draw.io Diagram\naddDiagram=Add Diagram\nembedDiagram=Embed Diagram\neditOwningPg=Edit owning page\ndeepIndexing=Deep Indexing (Index diagrams that aren\'t used in any page also)\nconfADeepIndexStarted=Deep Indexing Started\nconfADeepIndexDone=Deep Indexing Done\nofficeNoDiagramsSelected=No diagrams found in the selection\nofficeNoDiagramsInDoc=No diagrams found in the document\nofficeNotSupported=This feature is not supported in this host application\nsomeImagesFailed={1} out of {2} failed due to the following errors\nimportingNoUsedDiagrams=Importing {1} Diagrams not used in pages\nimportingDrafts=Importing {1} Diagrams in drafts\nprocessingDrafts=Processing drafts\nupdatingDrafts=Updating drafts\nupdateDrafts=Update drafts\nnotifications=Notifications\ndrawioImp=draw.io Import\nconfALibsImp=Importing draw.io Libraries\nconfALibsImpFailed=Importing {1} library failed\ncontributors=Contributors\ndrawDiagrams=draw.io Diagrams\nerrFileNotFoundOrNoPer=Error: Access Denied. File not found or you do not have permission to access "{1}" on {2}.\nconfACheckPagesWEmbed=Checking pages having embedded draw.io diagrams.\nconfADelBrokenEmbedDiagLnk=Removing broken embedded diagram links\nreplaceWith=Replace with\nreplaceAll=Replace All\nconfASkipDiagModified=Skipped "{1}" as it was modified after initial import\nreplFind=Replace/Find\nmatchesRepl={1} matches replaced\ndraftErrDataLoss=An error occurred while reading the draft file. The diagram cannot be edited now to prevent any possible data loss. Please try again later or contact support.\nibm=IBM\nlinkToDiagramHint=Add a link to this diagram. The diagram can only be edited from the page that owns it.\nlinkToDiagram=Link to Diagram\nchangedBy=Changed By\nlastModifiedOn=Last modified on\nsearchResults=Search Results\nshowAllTemps=Show all templates\nnotionToken=Notion Token\nselectDB=Select Database\nnoDBs=No Databases\ndiagramEdited={1} diagram "{2}" edited\nconfDraftPermissionErr=Draft cannot be written. Do you have attachment write/read permission on this page?\nconfFileTooBigErr=File size is too large. Pease check "Attachment Maximum Size" of "Attachment Settings" in Confluence Configuration.\nowner=Owner\nrepository=Repository\nbranch=Branch\nmeters=Meters\nteamsNoEditingMsg=Editor functionality is only available in Desktop environment (in MS Teams App or a web browser)\ncontactOwner=Contact Owner\nviewerOnlyMsg=You cannot edit the diagrams in the mobile platform, please use the desktop client or a web browser.\nwebsite=Website\ncheck4Updates=Check for updates\nattWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...\nconfPartialPageList=We couldn\'t fetch all pages due to an error in Confluence. Continuing using {1} pages only.\nspellCheck=Spell checker\nnoChange=No Change\nlblToSvg=Convert labels to SVG\ntxtSettings=Text Settings\nLinksLost=Links will be lost\narcSize=Arc Size\neditConnectionPoints=Edit Connection Points\nnotInOffline=Not supported while offline\nnotInDesktop=Not supported in Desktop App\nconfConfigSpaceArchived=draw.io Configuration space (DRAWIOCONFIG) is archived. Please restore it first.\nconfACleanOldVerStarted=Cleaning old diagram draft versions started\nconfACleanOldVerDone=Cleaning old diagram draft versions finished\nconfACleaningFile=Cleaning diagram draft "{1}" old versions\nconfAFileCleaned=Cleaning diagram draft "{1}" done\nconfAFileCleanFailed=Cleaning diagram draft "{1}" failed\nconfACleanOnly=Clean Diagram Drafts Only\nbrush=Brush\nopenDevTools=Open Developer Tools\nautoBkp=Automatic Backup\nconfAIgnoreCollectErr=Ignore collecting current pages errors\ndrafts=Drafts\ndraftSaveInt=Draft save interval [sec] (0 to disable)\npluginsDisabled=External plugins disabled.\nextExpNotConfigured=External image service is not configured\npathFilename=Path/Filename\nconfAHugeInstances=Very Large Instances\nconfAHugeInstancesDesc=If this instance includes 100,000+ pages, it is faster to request the current instance pages list from Atlassian. Please contact our support for more details.\nchoosePageIDsFile=Choose current page IDs csv file\nchooseDrawioPsgesFile=Choose pages with draw.io diagrams csv file\nprivate=Private\ndiagramTooLarge=The diagram is too large, please reduce its size and try again.\nselectAdminUsers=Select Admin Users\nxyzTeam={1} Team\naddTeamTitle=Adding a new draw.io Team\naddTeamInst1=To create a new draw.io Team, you need to create a new Atlassian group with "drawio-" prefix (e.g, a group named "drawio-marketing").\naddTeamInst2=Then, configure which team member can edit/add configuration, templates, and libraries from this page.\ndrawioTeams=draw.io Teams\nmembers=Members\nadminEditors=Admins/Editors\nallowAll=Allow all\nnoTeams=No teams found\nerrorLoadingTeams=Error Loading Teams\nnoTeamMembers=No team members found\nerrLoadTMembers=Error loading team members\nerrCreateTeamPage=Error creating team "{1}" page in "draw.io Configuration" space, please check you have the required permissions.\ngotoConfigPage=Please create the space from draw.io "Configuration" page.\nnoAdminsSelected=No admins/editors selected\nerrCreateConfigFile=Error creating "configuration.json" file, please check you have the required permissions.\nerrSetPageRestr=Error setting page restrictions\nnotAdmin4Team=You are not an admin for this team\nconfigUpdated=Configuration updated, restart the editor if you want to work with last configuration.\noutOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.\nconfAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)\nconfA403ErrFaq=There are ({1}) 403 error(s). The current users must have add (write) permissions on all pages and attachments. Even admins sometimes are not allowed to write to some pages via page restrictions\nconfA404ErrFaq=There are ({1}) 404 error(s). The attachment/page is not found. This is due to improper migration or the diagram file (an attachment of the page) is deleted.\nconfA500ErrFaq=There are ({1}) 500 error(s). An internal server error in Confluence Cloud. Such errors are due to overloading the server and usually fixed by retrying the process.\nconfAOtherErrFaq=There are ({1}) other error(s). Please check the error description. If the description is not clear, please contact our support.\nconfAReplaceBaseUrl=Replace Base URL in diagram links when no page ID mapping is found\ndrawSvgPrev=draw.io SVG preview\ngoogleFonts=Google Fonts\ndiagDupl=Duplicate Diagram Detected\ndiagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We\'ve created an independent copy. Please open the editor again.\ndiagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.\nconfCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?\nconfCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.\nconfALogsPageDesc=This page contains logs of draw.io long running services as attachments\nconfEditOnlyInPageEditor=Can only be edited within Confluence page editor\nconfEvalWarn=Evaluation License - Not for production use\notherUsersEditing=Other user(s) are editing this diagram\nfirstTimeGD=First time to access this file?\ndrawioGDAppNotInstalled=draw.io Google Drive app is not installed, please install it first\nConfDC415Error=Saving drafts is blocked. If you have "Attachment Checker for Confluence" app, please update to the latest version.\nremove=Remove\nselectPgLyr=Select Page and Layers\nerrGenPreview=There was an error generating a diagram preview. Please consult technical support.\nattAccessErr=Diagram attachment access error: cannot display diagram\nwidthIntOrFixed=Width must be a valid integer or of value \'fixed\'\ndupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected\ncantDupPickDiffName=Could not duplicate diagram. Please choose a different name.\nownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.\ncantDupTryLater=Could not duplicate diagram. Please try again later.\ncantEditLnkd=Cannot edit linked diagram\ndiagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?\ndiagInTemps=draw.io diagrams in templates\ndiagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.\nconfDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.\n');Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;
+(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var e=EditorUi.initTheme;EditorUi.initTheme=function(){e.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,e,g,m,u,p,B){this.file=b;this.id=e;this.content=g;this.modifiedDate=m;this.createdDate=u;this.isResolved=p;this.user=B;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,e,g,m,u){e()};DrawioComment.prototype.editComment=function(b,e,g){e()};DrawioComment.prototype.deleteComment=function(b,e){b()};DrawioUser=function(b,e,g,m,u){this.id=b;this.email=e;this.displayName=g;this.pictureUrl=m;this.locale=u};mxResources.parse('# *DO NOT DIRECTLY EDIT THIS FILE, IT IS AUTOMATICALLY GENERATED AND IT IS BASED ON:*\n# https://docs.google.com/spreadsheet/ccc?key=0AmQEO36liL4FdDJLWVNMaVV2UmRKSnpXU09MYkdGbEE\nabout=About\naboutDrawio=About draw.io\naccessDenied=Access Denied\naccounts=Accounts\naction=Action\nactualSize=Actual Size\nadaptiveColors=Adaptive Colors\nadd=Add\naddAccount=Add account\naddedFile=Added {1}\naddImages=Add Images\naddImageUrl=Add Image URL\naddLayer=Add Layer\naddProperty=Add Property\naddress=Address\naddToExistingDrawing=Add to Existing Drawing\naddToScratchpad=Add to Scratchpad\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nsmartTemplate=Smart Template\nalign=Align\nalignment=Alignment\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\nanimations=Animations\narc=Arc\nareYouSure=Are you sure?\nensureDataSaved=Please ensure your data is saved before closing.\nallChangesSaved=All changes saved\nallChangesSavedInDrive=All changes saved in Drive\nallowPopups=Allow pop-ups to avoid this dialog.\nallowRelativeUrl=Allow relative URL\nalreadyConnected=Nodes already connected\nappearance=Appearance\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narrow=Arrow\narrows=Arrows\naskMeAnything=Ask me anything\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosize=Autosize\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nbeta=beta\nblankDrawing=Blank Drawing\nblankDiagram=Blank Diagram\nblock=Block\nblockquote=Blockquote\nblog=Blog\nbold=Bold\nbootstrap=Bootstrap\nborder=Border\nborderColor=Border Color\nborderWidth=Border Width\nbottom=Bottom\nbottomAlign=Bottom Align\nbottomLeft=Bottom Left\nbottomRight=Bottom Right\nbpmn=BPMN\nbringForward=Bring Forward\nbrowser=Browser\nbulletedList=Bulleted List\nbusiness=Business\nbusy=Operation in progress\ncabinets=Cabinets\ncancel=Cancel\ncenter=Center\ncannotLoad=Load attempts failed. Please try again later.\ncannotLogin=Log in attempts failed. Please try again later.\ncannotOpenFile=Cannot open file\nchange=Change\nchangeOrientation=Change Orientation\nchangeUser=Change user\nchangeStorage=Change storage\nchangesNotSaved=Changes have not been saved\nclassDiagram=Class Diagram\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nchromeApp=Chrome App\ncollaborativeEditingNotice=Important Notice for Collaborative Editing\ncompare=Compare\ncompressed=Compressed\ncommitMessage=Commit Message\nconfigLinkWarn=This link configures draw.io. Only click OK if you trust whoever gave you it!\nconfigLinkConfirm=Click OK to configure and restart draw.io.\ncontainer=Container\ncsv=CSV\ndark=Dark\ndiagramLanguage=Diagram Language\ndiagramType=Diagram type\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndisabled=Disabled\ndraftFound=A draft for \'{1}\' has been found. Load it into the editor or discard it to continue.\ndraftRevisionMismatch=There is a different version of this diagram on a shared draft of this page. Please edit the diagram from the draft to ensure you are working with the latest version.\nselectDraft=Select a draft to continue editing:\ndragAndDropNotSupported=Drag and drop not supported for images. Would you like to import instead?\ndropboxCharsNotAllowed=The following characters are not allowed: / : ? * " |\ncheck=Check\nchecksum=Checksum\ncircle=Circle\ncisco=Cisco\nclassic=Classic\nclearDefaultStyle=Clear Default Style\nclearWaypoints=Clear Waypoints\nclipart=Clipart\nclose=Close\nclosingFile=Closing file\nrealtimeCollaboration=Real-Time Collaboration\ncollaborate=Collaborate\ncollaborator=Collaborator\ncollaborators=Collaborators\ncollapse=Collapse\ncollapseExpand=Collapse/Expand\ncollapse-expand=Click to collapse/expand\nShift-click to move neighbors \nAlt-click to protect group size\ncollapsible=Collapsible\ncomic=Comic\ncomment=Comment\ncommentsNotes=Comments/Notes\ncompress=Compress\nconfiguration=Configuration\nconnect=Connect\nconnecting=Connecting\nconnectWithDrive=Connect with Google Drive\nconnection=Connection\nconnectionArrows=Connection Arrows\nconnectionPoints=Connection Points\nconstrainProportions=Constrain Proportions\ncontainsValidationErrors=Contains validation errors\ncopiedToClipboard=Copied to clipboard\ncopy=Copy\ncopyConnect=Copy on connect\ncopyCreated=A copy of the file was created.\ncopyData=Copy Data\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySize=Copy Size\ncopyStyle=Copy Style\ncreate=Create\ncreateBlankDiagram=Create Blank Diagram\ncreateNewDiagram=Create New Diagram\ncreateRevision=Create Revision\ncreateShape=Create Shape\ncrop=Crop\ncurved=Curved\ncustom=Custom\ncurrent=Current\ncurrentPage=Current page\ncut=Cut\ndashed=Dashed\ndecideLater=Decide later\ndefault=Default\ndelete=Delete\ndeleteAll=Delete all\ndeleteColumn=Delete column\ndeleteLibrary401=Insufficient permissions to delete this library\ndeleteLibrary404=Selected library could not be found\ndeleteLibrary500=Error deleting library\ndeleteLibraryConfirm=You are about to permanently delete this library. Are you sure you want to do this?\ndeleteRow=Delete Row\ndescription=Description\ndescribeYourDiagram=Describe your diagram\ndevice=Device\ndiagram=Diagram\ndiagramContent=Diagram Content\ndiagramLocked=Diagram has been locked to prevent further data loss.\ndiagramLockedBySince=The diagram is locked by {1} since {2} ago\ndiagramName=Diagram Name\ndiagramIsPublic=Diagram is public\ndiagramIsNotPublic=Diagram is not public\ndiamond=Diamond\ndiamondThin=Diamond (thin)\ndidYouKnow=Did you know...\ndirection=Direction\ndiscard=Discard\ndiscardChangesAndReconnect=Discard Changes and Reconnect\ngoogleDriveMissingClickHere=Google Drive missing? Click here!\ndiscardChanges=Discard Changes\ndisconnected=Disconnected\ndistribute=Distribute\ndone=Done\ndoNotShowAgain=Do not show again\ndotted=Dotted\ndoubleClickOrientation=Doubleclick to change orientation\ndoubleClickTooltip=Doubleclick to insert text\ndoubleClickChangeProperty=Doubleclick to change property name\ndownload=Download\ndownloadDesktop=Get Desktop\ndownloadAs=Download as\nclickHereToSave=Click here to save.\ndpi=DPI\ndraftDiscarded=Draft discarded\ndraftSaved=Draft saved\ndragElementsHere=Drag elements here\ndragImagesHere=Drag images or URLs here\ndragUrlsHere=Drag URLs here\ndraw.io=draw.io\ndrawing=Drawing{1}\ndrawingEmpty=Drawing is empty\ndrawingTooLarge=Drawing is too large\ndrawioForWork=Draw.io for GSuite\ndropbox=Dropbox\nduplicate=Duplicate\nduplicateIt=Duplicate {1}\ndivider=Divider\ndx=Dx\ndy=Dy\neast=East\nedit=Edit\neditData=Edit Data\neditDiagram=Edit Diagram\neditGeometry=Edit Geometry\neditImage=Edit Image\neditImageUrl=Edit Image URL\neditLink=Edit Link\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\nembed=Embed\nembedFonts=Embed Fonts\nembedImages=Embed Images\nmainEmbedNotice=Paste this into the page\nelectrical=Electrical\nellipse=Ellipse\nembedNotice=Paste this once at the end of the page\nenterGroup=Enter Group\nenterName=Enter Name\nenterPropertyName=Enter Property Name\nenterValue=Enter Value\nentityRelation=Entity Relation\nentityRelationshipDiagram=Entity Relationship Diagram\nerror=Error\nerrorDeletingFile=Error deleting file\nerrorLoadingFile=Error loading file\nerrorRenamingFile=Error renaming file\nerrorRenamingFileNotFound=Error renaming file. File was not found.\nerrorRenamingFileForbidden=Error renaming file. Insufficient access rights.\nerrorSavingDraft=Error saving draft\nerrorSavingFile=Error saving file\nerrorSavingFileUnknown=Error authorizing with Google\'s servers. Please refresh the page to re-attempt.\nerrorSavingFileForbidden=Error saving file. Insufficient access rights.\nerrorSavingFileNameConflict=Could not save diagram. Current page already contains file named \'{1}\'.\nerrorSavingFileNotFound=Error saving file. File was not found.\nerrorSavingFileReadOnlyMode=Could not save diagram while read-only mode is active.\nerrorSavingFileSessionTimeout=Your session has ended. Please <a target=\'_blank\' href=\'{1}\'>{2}</a> and return to this tab to try to save again.\nerrorSendingFeedback=Error sending feedback.\nerrorUpdatingPreview=Error updating preview.\nexit=Exit\nexitGroup=Exit Group\nexpand=Expand\nexplore=Explore\nexport=Export\nexporting=Exporting\nexportAs=Export as\nexportOptionsDisabled=Export options disabled\nexportOptionsDisabledDetails=The owner has disabled options to download, print or copy for commenters and viewers on this file.\nexternalChanges=External Changes\nextras=Extras\nfacebook=Facebook\nfailedToSaveTryReconnect=Failed to save, trying to reconnect\nfeatureRequest=Feature Request\nfeedback=Feedback\nfeedbackSent=Feedback successfully sent.\nfloorplans=Floorplans\nfile=File\nfileChangedOverwriteDialog=The file has been modified. Do you want to save the file and overwrite those changes?\nfileChangedSyncDialog=The file has been modified.\nfileChangedSync=The file has been modified. Click here to synchronize.\noverwrite=Overwrite\nsynchronize=Synchronize\nfilename=Filename\nfileExists=File already exists\nfileMovedToTrash=File was moved to trash\nfileNearlyFullSeeFaq=File nearly full, please see FAQ\nfileNotFound=File not found\nrepositoryNotFound=Repository not found\nfileNotFoundOrDenied=The file was not found. It does not exist or you do not have access.\nfileNotLoaded=File not loaded\nfileNotSaved=File not saved\nfileOpenLocation=How would you like to open these file(s)?\nfiletypeHtml=.html causes file to save as HTML with redirect to cloud URL\nfiletypePng=.png causes file to save as PNG with embedded data\nfiletypeSvg=.svg causes file to save as SVG with embedded data\nfileWillBeSavedInAppFolder={1} will be saved in the app folder.\nfill=Fill\nfillColor=Fill Color\nfilterCards=Filter Cards\nfind=Find\nfit=Fit\nfitContainer=Resize Container\nfitIntoContainer=Fit into Container\nfitPage=Fit Page\nfitPageWidth=Fit Page Width\nfitTo=Fit to\nfitToSheetsAcross=sheet(s) across\nfitToBy=by\nfitToSheetsDown=sheet(s) down\nfitTwoPages=Two Pages\nfitWindow=Fit Window\nflip=Flip\nflipH=Flip Horizontal\nflipV=Flip Vertical\nflowAnimation=Flow Animation\nflowchart=Flowchart\nfolder=Folder\nfont=Font\nfontColor=Font Color\nfontFamily=Font Family\nfontSize=Font Size\nforbidden=You are not authorized to access this file\nformat=Format\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatSvgEmbedded=SVG (with XML)\nformatVsdx=VSDX\nformatVssx=VSSX\nformatWebp=WebP\nformatXmlPlain=XML (Plain)\nformatXml=XML\nforum=Discussion/Help Forums\nfreehand=Freehand\nfromTemplate=From Template\nfromTemplateUrl=From Template URL\nfromText=From Text\nfromUrl=From URL\nfromThisPage=From this page\nfullscreen=Fullscreen\ngap=Gap\ngcp=GCP\ngeneral=General\ngetNotionChromeExtension=Get the Notion Chrome Extension\ngithub=GitHub\ngitlab=GitLab\ngliffy=Gliffy\nglobal=Global\ngoogleDocs=Google Docs\ngoogleDrive=Google Drive\ngoogleGadget=Google Gadget\ngoogleSharingNotAvailable=Sharing is only available via Google Drive. Please click Open below and share from the more actions menu:\ngoogleSlides=Google Slides\ngoogleSites=Google Sites\ngoogleSheets=Google Sheets\ngradient=Gradient\ngradientColor=Color\ngrid=Grid\ngridColor=Grid Color\ngridSize=Grid Size\ngroup=Group\nguides=Guides\nhateApp=I hate draw.io\nheading=Heading\nheight=Height\nhelp=Help\nhelpTranslate=Help us translate this application\nhide=Hide\nhideIt=Hide {1}\nhidden=Hidden\nhighContrast=High Contrast\nhome=Home\nhorizontal=Horizontal\nhorizontalFlow=Horizontal Flow\nhorizontalTree=Horizontal Tree\nhowTranslate=How good is the translation in your language?\nhtml=HTML\nhtmlText=HTML Text\nid=ID\niframe=IFrame\nignore=Ignore\nimage=Image\nimageUrl=Image URL\nimages=Images\nimagePreviewError=This image couldn\'t be loaded for preview. Please check the URL.\nimageTooBig=Image too big\nimgur=Imgur\nimport=Import\nimportFrom=Import from\nimproveContrast=Improve Contrast\nincludeCopyOfMyDiagram=Include a copy of my diagram\nincreaseIndent=Increase Indent\ndecreaseIndent=Decrease Indent\ninsert=Insert\ninsertColumnBefore=Insert Column Left\ninsertColumnAfter=Insert Column Right\ninsertEllipse=Insert Ellipse\ninsertImage=Insert Image\ninsertHorizontalRule=Insert Horizontal Rule\ninsertLink=Insert Link\ninsertPage=Insert Page\ninsertRectangle=Insert Rectangle\ninsertRhombus=Insert Rhombus\ninsertRowBefore=Insert Row Above\ninsertRowAfter=Insert Row After\ninsertText=Insert Text\ninserting=Inserting\ninstallApp=Install App\ninvalidFilename=Diagram names must not contain the following characters: / | : ; { } < > & + ? = "\ninvalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://www.drawio.com/doc/faq/license-drawio-confluence-jira-cloud">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\nisometric=Isometric\nios=iOS\nitalic=Italic\nkennedy=Kennedy\nkeyboardShortcuts=Keyboard Shortcuts\nlabels=Labels\nlayers=Layers\nlandscape=Landscape\nlanguage=Language\nleanMapping=Lean Mapping\nlastChange=Last change {1} ago\nlessThanAMinute=less than a minute\nlicensingError=Licensing Error\nlicenseHasExpired=The license for {1} has expired on {2}. Click here.\nlicenseRequired=This feature requires draw.io to be licensed.\nlicenseWillExpire=The license for {1} will expire on {2}. Click here.\nlight=Light\nlineJumps=Line jumps\nlinkAccountRequired=If the diagram is not public a Google account is required to view the link.\nlinkText=Link Text\nlist=List\nminute=minute\nminutes=minutes\nhours=hours\ndays=days\nmonths=months\nyears=years\nrestartForChangeRequired=Changes will take effect after a restart of the application.\nlaneColor=Lanecolor\nlanguageCode=Language Code\nlastModified=Last modified\nlayout=Layout\nleft=Left\nleftAlign=Left Align\nleftToRight=Left to right\nlibraryTooltip=Drag and drop shapes here or click + to insert. Double click to edit.\nlightbox=Lightbox\nline=Line\nlineend=Line end\nlineheight=Line Height\nlinestart=Line start\nlinewidth=Linewidth\nlink=Link\nlinks=Links\nloading=Loading\nlocked=Locked\nlockUnlock=Lock/Unlock\nloggedOut=Logged Out\nlogIn=log in\nloveIt=I love {1}\nlucidchart=Lucidchart\nmaps=Maps\nmathematicalTypesetting=Mathematical Typesetting\nmakeCopy=Make a Copy\nmanual=Manual\nmerge=Merge\nmermaid=Mermaid\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nmisc=Misc\nmockups=Mockups\nmodern=Modern\nmodificationDate=Modification date\nmodifiedBy=Modified by\nmore=More\nmoreResults=More Results\nmoreShapes=More Shapes\nmove=Move\nmoveToFolder=Move to Folder\nmoving=Moving\nmoveSelectionTo=Move selection to {1}\nmyDrive=My Drive\nmyFiles=My Files\nname=Name\nnavigation=Navigation\nnetwork=Network\nnetworking=Networking\nnew=New\nnewLibrary=New Library\nnextPage=Next Page\nno=No\nnoPickFolder=No, pick folder\nnoAttachments=No attachments found\nnoColor=No Color\nnoFiles=No Files\nnoFileSelected=No file selected\nnoLibraries=No libraries found\nnoMoreResults=No more results\nnone=None\nnoOtherViewers=No other viewers\nnoPlugins=No plugins\nnoPreview=No preview\nnoResponse=No response from server\nnoResultsFor=No results for \'{1}\'\nnoRevisions=No revisions\nnoSearchResults=No search results found\nnoPageContentOrNotSaved=No anchors found on this page or it hasn\'t been saved yet\nnormal=Normal\nnorth=North\nnotADiagramFile=Not a diagram file\nnotALibraryFile=Not a library file\nnotAvailable=Not available\nnotAUtf8File=Not a UTF-8 file\nnotConnected=Not connected\nnote=Note\nnotion=Notion\nnotSatisfiedWithImport=Not satisfied with the import?\nnotUsingService=Not using {1}?\nnumberedList=Numbered list\noffline=Offline\nok=OK\noneDrive=OneDrive\nonline=Online\nopacity=Opacity\nopen=Open\nopenArrow=Open Arrow\nopenExistingDiagram=Open Existing Diagram\nopenFile=Open File\nopenFrom=Open from\nopenLibrary=Open Library\nopenLibraryFrom=Open Library from\nopenLink=Open Link\nopenInNewWindow=Open in New Window\nopenInThisWindow=Open in This Window\nopenIt=Open {1}\nopenRecent=Open Recent\nopenSupported=Supported formats are files saved from this software (.xml), .vsdx and .gliffy\noptions=Options\norganic=Organic\norgChart=Org Chart\northogonal=Orthogonal\notherViewer=other viewer\notherViewers=other viewers\noutline=Outline\noval=Oval\npage=Page\npageContent=Page Content\npageNotFound=Page not found\npageWithNumber=Page-{1}\npages=Pages\npageTabs=Page Tabs\npageView=Page View\npageSetup=Page Setup\npageScale=Page Scale\npan=Pan\npanTooltip=Space+Drag to pan\npaperSize=Paper Size\npattern=Pattern\nparallels=Parallels\npaste=Paste\npasteData=Paste Data\npasteHere=Paste here\npasteSize=Paste Size\npasteStyle=Paste Style\nperimeter=Perimeter\npermissionAnyone=Anyone can edit\npermissionAuthor=Owner and admins can edit\npickFolder=Pick a folder\npickLibraryDialogTitle=Select Library\npublicDiagramUrl=Public URL of the diagram\nplaceholders=Placeholders\nplantUml=PlantUML\nplugins=Plugins\npluginUrl=Plugin URL\npluginWarning=The page has requested to load the following plugin(s):\n \n {1}\n \n Would you like to load these plugin(s) now?\n \n NOTE : Only allow plugins to run if you fully understand the security implications of doing so.\n\nplusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone).\nportrait=Portrait\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\npresentationMode=Presentation Mode\nprint=Print\nprocEng=Proc. Eng.\nproject=Project\npriority=Priority\nprocessForHiringNewEmployee=Process for hiring a new employee\nproperties=Properties\npublish=Publish\nquickStart=Quick Start Video\nrack=Rack\nradial=Radial\nradialTree=Radial Tree\nreadOnly=Read-only\nreconnecting=Reconnecting\nrecentlyUpdated=Recently Updated\nrecentlyViewed=Recently Viewed\nrectangle=Rectangle\nredirectToNewApp=This file was created or modified in a newer version of this app. You will be redirected now.\nrealtimeTimeout=It looks like you\'ve made a few changes while offline. We\'re sorry, these changes cannot be saved.\nredo=Redo\nrefresh=Refresh\nregularExpression=Regular Expression\nrelative=Relative\nrelativeUrlNotAllowed=Relative URL not allowed\nrememberMe=Remember me\nrememberThisSetting=Remember this setting\nremoveFormat=Clear Formatting\nremoveFromGroup=Remove from Group\nremoveIt=Remove {1}\nremoveWaypoint=Remove Waypoint\nrename=Rename\nrenamed=Renamed\nrenameIt=Rename {1}\nrenaming=Renaming\nreplace=Replace\nreplaceIt={1} already exists. Do you want to replace it?\nreplaceExistingDrawing=Replace existing drawing\nrequired=required\nrequirementDiagram=Requirement Diagram\nreset=Reset\nresetView=Reset View\nresize=Resize\nresizeLargeImages=Do you want to resize large images to make the application run faster?\nretina=Retina\nresponsive=Responsive\nrestore=Restore\nrestoring=Restoring\nretryingIn=Retrying in {1} second(s)\nretryingLoad=Load failed. Retrying...\nretryingLogin=Login time out. Retrying...\nreverse=Reverse\nrevision=Revision\nrevisionHistory=Revision History\nrhombus=Rhombus\nright=Right\nrightAlign=Right Align\nrightToLeft=Right to left\nrotate=Rotate\nrotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees\nrotation=Rotation\nrounded=Rounded\nsave=Save\nsaveAndExit=Save & Exit\nsaveAs=Save As\nsaveAsXmlFile=Save as XML file?\nsaved=Saved\nsaveDiagramFirst=Please save the diagram first\nsaveDiagramsTo=Save diagrams to\nsaveLibrary403=Insufficient permissions to edit this library\nsaveLibrary500=There was an error while saving the library\nsaveLibraryReadOnly=Could not save library while read-only mode is active\nsaving=Saving\nscratchpad=Scratchpad\nscrollbars=Scrollbars\nsearch=Search\nsearchShapes=Search Shapes\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectedPage=Selected Page\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselectNone=Select None\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nsequenceDiagram=Sequence Diagram\nserviceUnavailableOrBlocked=Service unavailable or blocked\nsessionExpired=Your session has expired. Please refresh the browser window.\nsessionTimeoutOnSave=Your session has timed out and you have been disconnected from the Google Drive. Press OK to login and save.\nsetAsDefaultStyle=Set as Default Style\nsettings=Settings\nshadow=Shadow\nshape=Shape\nshapes=Shapes\nshare=Share\nshareCursor=Share Mouse Cursor\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsaveItToGoogleDriveToCollaborate=You\'ll need to save "{1}" to Google Drive before you can collaborate.\nsaveToGoogleDrive=Save to Google Drive\nsharp=Sharp\nshow=Show\nshowRemoteCursors=Show Remote Mouse Cursors\nshowStartScreen=Show Start Screen\nsidebarTooltip=Click or drag and drop shapes. Shift+click to change selection. Alt+click to insert and connect.\nsigns=Signs\nsignOut=Sign out\nsimple=Simple\nsimpleArrow=Simple Arrow\nsimpleViewer=Simple Viewer\nsize=Size\nsketch=Sketch\nsmoothing=Smoothing\nsnapToGrid=Snap to Grid\nsolid=Solid\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstateDiagram=State Diagram\nstandard=Standard\nstartDrawing=Start drawing\nstopDrawing=Stop drawing\nstarting=Starting\nstraight=Straight\nstrikethrough=Strikethrough\nstrokeColor=Line Color\nstyle=Style\nsubscript=Subscript\nsummary=Summary\nsuperscript=Superscript\nsupport=Support\nswap=Swap\nswimlaneDiagram=Swimlane Diagram\nsysml=SysML\ntags=Tags\ntable=Table\ntables=Tables\ntakeOver=Take Over\ntargetSpacing=Target Spacing\ntemplate=Template\ntemplates=Templates\ntext=Text\ntextAlignment=Text Alignment\ntextOpacity=Text Opacity\ntheme=Theme\ntimeout=Timeout\ntitle=Title\nto=to\ntoBack=To Back\ntoFront=To Front\ntooLargeUseDownload=Too large, use download instead.\ntoolbar=Toolbar\ntooltips=Tooltips\ntop=Top\ntopAlign=Top Align\ntopLeft=Top Left\ntopRight=Top Right\ntransparent=Transparent\ntransparentBackground=Transparent Background\ntrello=Trello\ntryAgain=Try again\ntryOpeningViaThisPage=Try opening via this page\nturn=Rotate shape only by 90°\ntype=Type\ntwitter=Twitter\numl=UML\nunassigned=Unassigned\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunmerge=Unmerge\nunsavedChanges=Unsaved changes\nunsavedChangesClickHereToSave=Unsaved changes. Click here to save.\nuntitled=Untitled\nuntitledDiagram=Untitled Diagram\nuntitledLayer=Untitled Layer\nuntitledLibrary=Untitled Library\nunknownError=Unknown error\nunknownUser=Unknown user\nupdateExistingDrawing=Update existing drawing\nupdateFile=Update {1}\nupdatingDocument=Updating Document. Please wait...\nupdatingPreview=Updating Preview. Please wait...\nupdatingSelection=Updating Selection. Please wait...\nupload=Upload\nurl=URL\nuseBlackAndWhite=Use black and white\nuseCurrentSettings=Use current settings\nuseOffline=Use Offline\nuserDefined=User-defined\nuseRootFolder=Use root folder?\nuserManual=User Manual\nvertical=Vertical\nverticalFlow=Vertical Flow\nverticalTree=Vertical Tree\nview=View\nviewerSettings=Viewer Settings\nviewUrl=Link to view: {1}\nvoiceAssistant=Voice Assistant (beta)\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwhere=Where\nwidth=Width\nwiki=Wiki\nwordWrap=Word Wrap\nwritingDirection=Writing Direction\nyes=Yes\nyourEmailAddress=Your email address\nzoom=Zoom\nzoomIn=Zoom In\nzoomOut=Zoom Out\nbasic=Basic\nbusinessprocess=Business Processes\ncharts=Charts\nengineering=Engineering\nflowcharts=Flowcharts\ngmdl=Material Design\nmindmaps=Mindmaps\nmockups=Mockups\nnetworkdiagrams=Network Diagrams\nnothingIsSelected=Nothing is selected\nother=Other\nsoftwaredesign=Software Design\nvenndiagrams=Venn Diagrams\nwebEmailOrOther=Web, email or any other internet address\nwebLink=Web Link\nwireframes=Wireframes\nproperty=Property\nvalue=Value\nshowMore=Show More\nshowLess=Show Less\nmyDiagrams=My Diagrams\nallDiagrams=All Diagrams\nrecentlyUsed=Recently used\nlistView=List view\ngridView=Grid view\nresultsFor=Results for \'{1}\'\noneDriveCharsNotAllowed=The following characters are not allowed: ~ " # % * : < > ? / { | }\noneDriveInvalidDeviceName=The specified device name is invalid\nofficeNotLoggedOD=You are not logged in to OneDrive. Please open draw.io task pane and login first.\nofficeSelectSingleDiag=Please select a single draw.io diagram only without other contents.\nofficeSelectDiag=Please select a draw.io diagram.\nofficeCannotFindDiagram=Cannot find a draw.io diagram in the selection\nnoDiagrams=No diagrams found\nauthFailed=Authentication failed\nofficeFailedAuthMsg=Unable to successfully authenticate user or authorize application.\nconvertingDiagramFailed=Converting diagram failed\nofficeCopyImgErrMsg=Due to some limitations in the host application, the image could not be inserted. Please manually copy the image then paste it to the document.\ninsertingImageFailed=Inserting image failed\nofficeCopyImgInst=Instructions: Right-click the image below. Select "Copy image" from the context menu. Then, in the document, right-click and select "Paste" from the context menu.\nfolderEmpty=Folder is empty\nrecent=Recent\nsharedWithMe=Shared With Me\nsharepointSites=Sharepoint Sites\nerrorFetchingFolder=Error fetching folder items\nerrorAuthOD=Error authenticating to OneDrive\nofficeMainHeader=Adds draw.io diagrams to your document.\nofficeStepsHeader=This add-in performs the following steps:\nofficeStep1=Connects to Microsoft OneDrive, Google Drive or your device.\nofficeStep2=Select a draw.io diagram.\nofficeStep3=Insert the diagram into the document.\nofficeAuthPopupInfo=Please complete the authentication in the pop-up window.\nofficeSelDiag=Select draw.io Diagram:\nfiles=Files\nshared=Shared\nsharepoint=Sharepoint\nofficeManualUpdateInst=Instructions: Copy draw.io diagram from the document. Then, in the box below, right-click and select "Paste" from the context menu.\nofficeClickToEdit=Click icon to start editing:\npasteDiagram=Paste draw.io diagram here\nconnectOD=Connect to OneDrive\nselectChildren=Select Children\nselectSiblings=Select Siblings\nselectParent=Select Parent\nselectDescendants=Select Descendants\nlastSaved=Last saved {1} ago\nresolve=Resolve\nreopen=Re-open\nshowResolved=Show Resolved\nreply=Reply\nobjectNotFound=Object not found\nreOpened=Re-opened\nmarkedAsResolved=Marked as resolved\nnoCommentsFound=No comments found\ncomments=Comments\ntimeAgo={1} ago\nconfluenceCloud=Confluence Cloud\nlibraries=Libraries\nconfAnchor=Confluence Page Anchor\nconfTimeout=The connection has timed out\nconfSrvTakeTooLong=The server at {1} is taking too long to respond.\nconfCannotInsertNew=Cannot insert draw.io diagram to a new Confluence page\nconfSaveTry=Please save the page and try again.\nconfCannotGetID=Unable to determine page ID\nconfContactAdmin=Please contact your Confluence administrator.\nreadErr=Read Error\neditingErr=Editing Error\nconfExtEditNotPossible=This diagram cannot be edited externally. Please try editing it while editing the page\nconfEditedExt=Diagram/Page edited externally\ndiagNotFound=Diagram Not Found\nconfEditedExtRefresh=Diagram/Page is edited externally. Please refresh the page.\nconfCannotEditDraftDelOrExt=Cannot edit diagrams in a draft page, diagram is deleted from the page, or diagram is edited externally. Please check the page.\nretBack=Return back\nconfDiagNotPublished=The diagram does not belong to a published page\ncreatedByDraw=Created by draw.io\nfilenameShort=Filename too short\ninvalidChars=Invalid characters\nalreadyExst={1} already exists\ndraftReadErr=Draft Read Error\ndiagCantLoad=Diagram cannot be loaded\ndraftWriteErr=Draft Write Error\ndraftCantCreate=Draft could not be created\nconfDuplName=Duplicate diagram name detected. Please pick another name.\nconfSessionExpired=Looks like your session expired. Log in again to keep working.\nlogin=Login\ndrawPrev=draw.io preview\ndrawDiag=draw.io diagram\ninvalidCallFnNotFound=Invalid Call: {1} not found\ninvalidCallErrOccured=Invalid Call: An error occurred, {1}\nanonymous=Anonymous\nconfGotoPage=Go to containing page\nshowComments=Show Comments\nconfError=Error: {1}\ngliffyImport=Gliffy Import\ngliffyImportInst1=Click the "Start Import" button to import all Gliffy diagrams to draw.io.\ngliffyImportInst2=Please note that the import procedure will take some time and the browser window must remain open until the import is completed.\nstartImport=Start Import\ndrawConfig=draw.io Configuration\ncustomLib=Custom Libraries\ncustomTemp=Custom Templates\npageIdsExp=Page IDs Export\ndrawReindex=draw.io re-indexing (beta)\nworking=Working\ndrawConfigNotFoundInst=draw.io Configuration Space (DRAWIOCONFIG) does not exist. This space is needed to store draw.io configuration files and custom libraries/templates.\ncreateConfSp=Create Config Space\nunexpErrRefresh=Unexpected error, please refresh the page and try again.\nconfigJSONInst=Write draw.io JSON configuration in the editor below then click save. If you need help, please refer to\nthisPage=this page\ncurCustLib=Current Custom Libraries\nlibName=Library Name\naction=Action\ndrawConfID=draw.io Config ID\naddLibInst=Click the "Add Library" button to upload a new library.\naddLib=Add Library\ncustomTempInst1=Custom templates are draw.io diagrams saved in children pages of\ncustomTempInst2=For more details, please refer to\ntempsPage=Templates page\npageIdsExpInst1=Select export target, then click the "Start Export" button to export all pages IDs.\npageIdsExpInst2=Please note that the export procedure will take some time and the browser window must remain open until the export is completed.\nstartExp=Start Export\nrefreshDrawIndex=Refresh draw.io Diagrams Index\nreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.\nreindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.\nstartIndexing=Start Indexing\nconfAPageFoundFetch=Page "{1}" found. Fetching\nconfAAllDiagDone=All {1} diagrams processed. Process finished.\nconfAStartedProcessing=Started processing page "{1}"\nconfAAllDiagInPageDone=All {1} diagrams in page "{2}" processed successfully.\nconfAPartialDiagDone={1} out of {2} {3} diagrams in page "{4}" processed successfully.\nconfAUpdatePageFailed=Updating page "{1}" failed.\nconfANoDiagFoundInPage=No {1} diagrams found in page "{2}".\nconfAFetchPageFailed=Fetching the page failed.\nconfANoDiagFound=No {1} diagrams found. Process finished.\nconfASearchFailed=Searching for {1} diagrams failed. Please try again later.\nconfAGliffyDiagFound={2} diagram "{1}" found. Importing\nconfAGliffyDiagImported={2} diagram "{1}" imported successfully.\nconfASavingImpGliffyFailed=Saving imported {2} diagram "{1}" failed.\nconfAImportedFromByDraw=Imported from "{1}" by draw.io\nconfAImportGliffyFailed=Importing {2} diagram "{1}" failed.\nconfAFetchGliffyFailed=Fetching {2} diagram "{1}" failed.\nconfACheckBrokenDiagLnk=Checking for broken diagrams links.\nconfADelDiagLinkOf=Deleting diagram link of "{1}"\nconfADupLnk=(duplicate link)\nconfADelDiagLnkFailed=Deleting diagram link of "{1}" failed.\nconfAUnexpErrProcessPage=Unexpected error during processing the page with id: {1}\nconfADiagFoundIndex=Diagram "{1}" found. Indexing\nconfADiagIndexSucc=Diagram "{1}" indexed successfully.\nconfAIndexDiagFailed=Indexing diagram "{1}" failed.\nconfASkipDiagOtherPage=Skipped "{1}" as it belongs to another page!\nconfADiagUptoDate=Diagram "{1}" is up to date.\nconfACheckPagesWDraw=Checking pages having draw.io diagrams.\nconfAErrOccured=An error occurred!\nsavedSucc=Saved successfully\nconfASaveFailedErr=Saving Failed (Unexpected Error)\ncharacter=Character\nconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachment\nconfALibPageDesc=This page contains draw.io custom libraries as attachments\nconfATempPageDesc=This page contains draw.io custom templates as attachments\nworking=Working\nconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templates\nconfANoCustLib=No Custom Libraries\ndelFailed=Delete failed!\nshowID=Show ID\nconfAIncorrectLibFileType=Incorrect file type. Libraries should be XML files.\nuploading=Uploading\nconfALibExist=This library already exists\nconfAUploadSucc=Uploaded successfully\nconfAUploadFailErr=Upload Failed (Unexpected Error)\nhiResPreview=High Res Preview\nofficeNotLoggedGD=You are not logged in to Google Drive. Please open draw.io task pane and login first.\nofficePopupInfo=Please complete the process in the pop-up window.\npickODFile=Pick OneDrive File\ncreateODFile=Create OneDrive File\npickGDriveFile=Pick Google Drive File\ncreateGDriveFile=Create Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nconfEditDraftDelOrExt=This diagram is in a draft page, is deleted from the page, or is edited externally. It will be saved as a new attachment version and may not be reflected in the page.\nconfDiagEditedExt=Diagram is edited in another session. It will be saved as a new attachment version but the page will show other session\'s modifications.\nmacroNotFound=Macro Not Found\nconfAInvalidPageIdsFormat=Incorrect Page IDs file format\nconfACollectingCurPages=Collecting current pages\nconfABuildingPagesMap=Building pages mapping\nconfAProcessDrawDiag=Started processing imported draw.io diagrams\nconfAProcessDrawDiagDone=Finished processing imported draw.io diagrams\nconfAProcessImpPages=Started processing imported pages\nconfAErrPrcsDiagInPage=Error processing draw.io diagrams in page "{1}"\nconfAPrcsDiagInPage=Processing draw.io diagrams in page "{1}"\nconfAImpDiagram=Importing diagram "{1}"\nconfAImpDiagramFailed=Importing diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\nconfAImpDiagramError=Error importing diagram "{1}". Cannot fetch or save the diagram. Cannot fix this diagram links.\nconfAUpdateDgrmCCFailed=Updating link to diagram "{1}" failed.\nconfImpDiagramSuccess=Updating diagram "{1}" done successfully.\nconfANoLnksInDrgm=No links to update in: {1}\nconfAUpdateLnkToPg=Updated link to page: "{1}" in diagram: "{2}"\nconfAUpdateLBLnkToPg=Updated lightbox link to page: "{1}" in diagram: "{2}"\nconfAUpdateLnkBase=Updated base URL from: "{1}" to: "{2}" in diagram: "{3}"\nconfAPageIdsImpDone=Page IDs Import finished\nconfAPrcsMacrosInPage=Processing draw.io macros in page "{1}"\nconfAErrFetchPage=Error fetching page "{1}"\nconfAFixingMacro=Fixing macro of diagram "{1}"\nconfAErrReadingExpFile=Error reading export file\nconfAPrcsDiagInPageDone=Processing draw.io diagrams in page "{1}" finished\nconfAFixingMacroSkipped=Fixing macro of diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\npageIdsExpTrg=Export target\nconfALucidDiagImgImported={2} diagram "{1}" image extracted successfully\nconfASavingLucidDiagImgFailed=Extracting {2} diagram "{1}" image failed\nconfGetInfoFailed=Fetching file info from {1} failed.\nconfCheckCacheFailed=Cannot get cached file info.\nconfReadFileErr=Cannot read "{1}" file from {2}.\nconfSaveCacheFailed=Unexpected error. Cannot save cached file\norgChartType=Org Chart Type\nlinear=Linear\nhanger2=Hanger 2\nhanger4=Hanger 4\nfishbone1=Fishbone 1\nfishbone2=Fishbone 2\n1ColumnLeft=Single Column Left\n1ColumnRight=Single Column Right\nsmart=Smart\nparentChildSpacing=Parent Child Spacing\nsiblingSpacing=Sibling Spacing\nconfNoPermErr=Sorry, you don\'t have enough permissions to view this embedded diagram from page {1}\ncopyAsImage=Copy as Image\ncopyAsText=Copy as Text\nlucidImport=Lucidchart Import\nlucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.\ninstallFirst=Please install {1} first\ndrawioChromeExt=draw.io Chrome Extension\nloginFirstThen=Please login to {1} first, then {2}\nerrFetchDocList=Error: Couldn\'t fetch documents list\nbuiltinPlugins=Built-in Plugins\nextPlugins=External Plugins\nbackupFound=Backup file found\nchromeOnly=This feature only works in Google Chrome\nmsgDeleted=This message has been deleted\nconfAErrFetchDrawList=Error fetching diagrams list. Some diagrams are skipped.\nconfAErrCheckDrawDiag=Cannot check diagram {1}\nconfAErrFetchPageList=Error fetching pages list\nconfADiagImportIncom={1} diagram "{2}" is imported partially and may have missing shapes\ninvalidSel=Invalid selection\ndiagNameEmptyErr=Diagram name cannot be empty\nopenDiagram=Open Diagram\nnewDiagram=New diagram\neditable=Editable\nconfAReimportStarted=Re-import {1} diagrams started...\nspaceFilter=Filter by spaces\ncurViewState=Current Viewer State\npageLayers=Page and Layers\ncustomize=Customize\nfirstPage=First Page (All Layers)\ncurEditorState=Current Editor State\nnoAnchorsFound=No anchors found\nattachment=Attachment\ncurDiagram=Current Diagram\nrecentDiags=Recent Diagrams\ncsvImport=CSV Import\nchooseFile=Choose a file...\nchoose=Choose\ngdriveFname=Google Drive filename\nwidthOfViewer=Width of the viewer (px)\nheightOfViewer=Height of the viewer (px)\nautoSetViewerSize=Automatically set the size of the viewer\nthumbnail=Thumbnail\nprevInDraw=Preview in draw.io\nonedriveFname=OneDrive filename\ndiagFname=Diagram filename\ndiagUrl=Diagram URL\nshowDiag=Show Diagram\ndiagPreview=Diagram Preview\ncsvFileUrl=CSV File URL\ngenerate=Generate\nselectDiag2Insert=Please select a diagram to insert it.\nerrShowingDiag=Unexpected error. Cannot show diagram\nnoRecentDiags=No recent diagrams found\nfetchingRecentFailed=Failed to fetch recent diagrams\nuseSrch2FindDiags=Use the search box to find draw.io diagrams\ncantReadChckPerms=Cannot read the specified diagram. Please check you have read permission on that file.\ncantFetchChckPerms=Cannot fetch diagram info. Please check you have read permission on that file.\nsearchFailed=Searching failed. Please try again later.\nplsTypeStr=Please type a search string.\nunsupportedFileChckUrl=Unsupported file. Please check the specified URL\ndiagNotFoundChckUrl=Diagram not found or cannot be accessed. Please check the specified URL\ncsvNotFoundChckUrl=CSV file not found or cannot be accessed. Please check the specified URL\ncantReadUpload=Cannot read the uploaded diagram\nselect=Select\nerrCantGetIdType=Unexpected Error: Cannot get content id or type.\nerrGAuthWinBlocked=Error: Google Authentication window blocked\nauthDrawAccess=Authorize draw.io to access {1}\nconnTimeout=The connection has timed out\nerrAuthSrvc=Error authenticating to {1}\nplsSelectFile=Please select a file\nmustBgtZ={1} must be greater than zero\ncantLoadPrev=Cannot load file preview.\nerrAccessFile=Error: Access Denied. You do not have permission to access "{1}".\nnoPrevAvail=No preview is available.\npersonalAccNotSup=Personal accounts are not supported.\nerrSavingTryLater=Error occurred during saving, please try again later.\nplsEnterFld=Please enter {1}\ninvalidDiagUrl=Invalid Diagram URL\nunsupportedVsdx=Unsupported vsdx file\nunsupportedImg=Unsupported image file\nunsupportedFormat=Unsupported file format\nplsSelectSingleFile=Please select a single file only\nattCorrupt=Attachment file "{1}" is corrupted\nloadAttFailed=Failed to load attachment "{1}"\nembedDrawDiag=Embed draw.io Diagram\naddDiagram=Add Diagram\nembedDiagram=Embed Diagram\neditOwningPg=Edit owning page\ndeepIndexing=Deep Indexing (Index diagrams that aren\'t used in any page also)\nconfADeepIndexStarted=Deep Indexing Started\nconfADeepIndexDone=Deep Indexing Done\nofficeNoDiagramsSelected=No diagrams found in the selection\nofficeNoDiagramsInDoc=No diagrams found in the document\nofficeNotSupported=This feature is not supported in this host application\nsomeImagesFailed={1} out of {2} failed due to the following errors\nimportingNoUsedDiagrams=Importing {1} Diagrams not used in pages\nimportingDrafts=Importing {1} Diagrams in drafts\nprocessingDrafts=Processing drafts\nupdatingDrafts=Updating drafts\nupdateDrafts=Update drafts\nnotifications=Notifications\ndrawioImp=draw.io Import\nconfALibsImp=Importing draw.io Libraries\nconfALibsImpFailed=Importing {1} library failed\ncontributors=Contributors\ndrawDiagrams=draw.io Diagrams\nerrFileNotFoundOrNoPer=Error: Access Denied. File not found or you do not have permission to access "{1}" on {2}.\nconfACheckPagesWEmbed=Checking pages having embedded draw.io diagrams.\nconfADelBrokenEmbedDiagLnk=Removing broken embedded diagram links\nreplaceWith=Replace with\nreplaceAll=Replace All\nconfASkipDiagModified=Skipped "{1}" as it was modified after initial import\nreplFind=Replace/Find\nmatchesRepl={1} matches replaced\ndraftErrDataLoss=An error occurred while reading the draft file. The diagram cannot be edited now to prevent any possible data loss. Please try again later or contact support.\nibm=IBM\nlinkToDiagramHint=Add a link to this diagram. The diagram can only be edited from the page that owns it.\nlinkToDiagram=Link to Diagram\nchangedBy=Changed By\nlastModifiedOn=Last modified on\nsearchResults=Search Results\nshowAllTemps=Show all templates\nnotionToken=Notion Token\nselectDB=Select Database\nnoDBs=No Databases\ndiagramEdited={1} diagram "{2}" edited\nconfDraftPermissionErr=Draft cannot be written. Do you have attachment write/read permission on this page?\nconfFileTooBigErr=File size is too large. Pease check "Attachment Maximum Size" of "Attachment Settings" in Confluence Configuration.\nowner=Owner\nrepository=Repository\nbranch=Branch\nmeters=Meters\nteamsNoEditingMsg=Editor functionality is only available in Desktop environment (in MS Teams App or a web browser)\ncontactOwner=Contact Owner\nviewerOnlyMsg=You cannot edit the diagrams in the mobile platform, please use the desktop client or a web browser.\nwebsite=Website\ncheck4Updates=Check for updates\nattWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...\nconfPartialPageList=We couldn\'t fetch all pages due to an error in Confluence. Continuing using {1} pages only.\nspellCheck=Spell checker\nnoChange=No Change\nlblToSvg=Convert labels to SVG\ntxtSettings=Text Settings\nLinksLost=Links will be lost\narcSize=Arc Size\neditConnectionPoints=Edit Connection Points\nnotInOffline=Not supported while offline\nnotInDesktop=Not supported in Desktop App\nconfConfigSpaceArchived=draw.io Configuration space (DRAWIOCONFIG) is archived. Please restore it first.\nconfACleanOldVerStarted=Cleaning old diagram draft versions started\nconfACleanOldVerDone=Cleaning old diagram draft versions finished\nconfACleaningFile=Cleaning diagram draft "{1}" old versions\nconfAFileCleaned=Cleaning diagram draft "{1}" done\nconfAFileCleanFailed=Cleaning diagram draft "{1}" failed\nconfACleanOnly=Clean Diagram Drafts Only\nbrush=Brush\nopenDevTools=Open Developer Tools\nautoBkp=Automatic Backup\nconfAIgnoreCollectErr=Ignore collecting current pages errors\ndrafts=Drafts\ndraftSaveInt=Draft save interval [sec] (0 to disable)\npluginsDisabled=External plugins disabled.\nextExpNotConfigured=External image service is not configured\npathFilename=Path/Filename\nconfAHugeInstances=Very Large Instances\nconfAHugeInstancesDesc=If this instance includes 100,000+ pages, it is faster to request the current instance pages list from Atlassian. Please contact our support for more details.\nchoosePageIDsFile=Choose current page IDs csv file\nchooseDrawioPsgesFile=Choose pages with draw.io diagrams csv file\nprivate=Private\ndiagramTooLarge=The diagram is too large, please reduce its size and try again.\nselectAdminUsers=Select Admin Users\nxyzTeam={1} Team\naddTeamTitle=Adding a new draw.io Team\naddTeamInst1=To create a new draw.io Team, you need to create a new Atlassian group with "drawio-" prefix (e.g, a group named "drawio-marketing").\naddTeamInst2=Then, configure which team member can edit/add configuration, templates, and libraries from this page.\ndrawioTeams=draw.io Teams\nmembers=Members\nadminEditors=Admins/Editors\nallowAll=Allow all\nnoTeams=No teams found\nerrorLoadingTeams=Error Loading Teams\nnoTeamMembers=No team members found\nerrLoadTMembers=Error loading team members\nerrCreateTeamPage=Error creating team "{1}" page in "draw.io Configuration" space, please check you have the required permissions.\ngotoConfigPage=Please create the space from draw.io "Configuration" page.\nnoAdminsSelected=No admins/editors selected\nerrCreateConfigFile=Error creating "configuration.json" file, please check you have the required permissions.\nerrSetPageRestr=Error setting page restrictions\nnotAdmin4Team=You are not an admin for this team\nconfigUpdated=Configuration updated, restart the editor if you want to work with last configuration.\noutOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.\nconfAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)\nconfA403ErrFaq=There are ({1}) 403 error(s). The current users must have add (write) permissions on all pages and attachments. Even admins sometimes are not allowed to write to some pages via page restrictions\nconfA404ErrFaq=There are ({1}) 404 error(s). The attachment/page is not found. This is due to improper migration or the diagram file (an attachment of the page) is deleted.\nconfA500ErrFaq=There are ({1}) 500 error(s). An internal server error in Confluence Cloud. Such errors are due to overloading the server and usually fixed by retrying the process.\nconfAOtherErrFaq=There are ({1}) other error(s). Please check the error description. If the description is not clear, please contact our support.\nconfAReplaceBaseUrl=Replace Base URL in diagram links when no page ID mapping is found\ndrawSvgPrev=draw.io SVG preview\ngoogleFonts=Google Fonts\ndiagDupl=Duplicate Diagram Detected\ndiagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We\'ve created an independent copy. Please open the editor again.\ndiagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.\nconfCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?\nconfCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.\nconfALogsPageDesc=This page contains logs of draw.io long running services as attachments\nconfEditOnlyInPageEditor=Can only be edited within Confluence page editor\nconfEvalWarn=Evaluation License - Not for production use\notherUsersEditing=Other user(s) are editing this diagram\nfirstTimeGD=First time to access this file?\ndrawioGDAppNotInstalled=draw.io Google Drive app is not installed, please install it first\nConfDC415Error=Saving drafts is blocked. If you have "Attachment Checker for Confluence" app, please update to the latest version.\nremove=Remove\nselectPgLyr=Select Page and Layers\nerrGenPreview=There was an error generating a diagram preview. Please consult technical support.\nattAccessErr=Diagram attachment access error: cannot display diagram\nwidthIntOrFixed=Width must be a valid integer or of value \'fixed\'\ndupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected\ncantDupPickDiffName=Could not duplicate diagram. Please choose a different name.\nownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.\ncantDupTryLater=Could not duplicate diagram. Please try again later.\ncantEditLnkd=Cannot edit linked diagram\ndiagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?\ndiagInTemps=draw.io diagrams in templates\ndiagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.\nconfDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.\nconfConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.\n');Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;
Graph.prototype.defaultThemes.darkTheme=Graph.prototype.defaultThemes["default-style2"];Editor.currentTheme="";window.uiTheme="";GraphViewer=function(b,e,g){this.init(b,e,g)};mxUtils.extend(GraphViewer,mxEventSource);GraphViewer.prototype.editBlankUrl="1"==urlParams.dev?"https://test.draw.io/":"https://app.diagrams.net/";GraphViewer.prototype.imageBaseUrl=window.DRAWIO_BASE_URL+"/";GraphViewer.prototype.toolbarHeight="BackCompat"==document.compatMode?24:26;GraphViewer.prototype.lightboxChrome=!0;GraphViewer.prototype.lightboxZIndex=999;GraphViewer.prototype.toolbarZIndex=999;
GraphViewer.prototype.autoFit=!1;GraphViewer.prototype.autoCrop=!1;GraphViewer.prototype.autoOrigin=!0;GraphViewer.prototype.center=!1;GraphViewer.prototype.forceCenter=!1;GraphViewer.prototype.allowZoomIn=!1;GraphViewer.prototype.allowZoomOut=!0;GraphViewer.prototype.showTitleAsTooltip=!1;GraphViewer.prototype.checkVisibleState=!0;GraphViewer.prototype.minHeight=28;GraphViewer.prototype.minWidth=100;GraphViewer.prototype.responsive=!1;GraphViewer.prototype.darkMode=null;
GraphViewer.prototype.init=function(b,e,g){GraphViewer.initCss();this.graphConfig=null!=g?g:{};this.autoFit=null!=this.graphConfig["auto-fit"]?this.graphConfig["auto-fit"]:this.autoFit;this.autoCrop=null!=this.graphConfig["auto-crop"]?this.graphConfig["auto-crop"]:this.autoCrop;this.autoOrigin=null!=this.graphConfig["auto-origin"]?this.graphConfig["auto-origin"]:this.autoOrigin;this.allowZoomOut=null!=this.graphConfig["allow-zoom-out"]?this.graphConfig["allow-zoom-out"]:this.allowZoomOut;this.allowZoomIn=
@@ -4201,13 +4201,13 @@ this.toolbarItems=null!=this.graphConfig.toolbar?this.graphConfig.toolbar.split(
null!=this.initialWidth?""==this.initialWidth:!0;this.currentPage=parseInt(this.graphConfig.page)||0;this.responsive=(null!=this.graphConfig.responsive?this.graphConfig.responsive:this.responsive)&&!this.zoomEnabled&&!mxClient.NO_FO&&!mxClient.IS_SF;this.pageId=this.graphConfig.pageId;this.editor=null;var m=this;"inline"==this.graphConfig["toolbar-position"]&&(this.minHeight+=this.toolbarHeight);if(null!=e&&(this.xmlDocument=e.ownerDocument,this.xmlNode=e,this.xml=mxUtils.getXml(e),null!=b)){var u=
mxUtils.bind(this,function(){this.graph=new Graph(b);this.graph.enableFlowAnimation=!0;this.installDarkModeListener();if(this.responsive&&this.graph.dialect==mxConstants.DIALECT_SVG){var H=this.graph.view.getDrawPane().ownerSVGElement;null!=this.graphConfig.border?H.style.padding=this.graphConfig.border+"px":""==b.style.padding&&(H.style.padding="8px");H.style.forcedColorAdjust="none";H.style.boxSizing="border-box";H.style.overflow="visible";this.graph.fit=function(){};this.graph.sizeDidChange=function(){var t=
this.view.graphBounds,z=this.view.translate;H.setAttribute("viewBox",t.x+z.x-this.panDx+" "+(t.y+z.y-this.panDy)+" "+(t.width+1)+" "+(t.height+1));this.container.style.backgroundColor=H.style.backgroundColor;this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",t))}}this.graphConfig.move&&(this.graph.isMoveCellsEvent=function(t){return!0});this.lightboxClickEnabled&&(b.style.cursor="pointer");this.editor=new Editor(!0,null,null,this.graph);this.editor.editBlankUrl=this.editBlankUrl;this.graph.lightbox=
-!0;this.graph.centerZoom=!1;this.graph.autoExtend=!1;this.graph.autoScroll=!1;this.graph.setEnabled(!1);1==this.graphConfig["toolbar-nohide"]&&(this.editor.defaultGraphOverflow="visible");var S=this.editor.extractGraphModel(this.xmlNode,!0);if(null!=S&&S!=e)try{this.xml=mxUtils.getXml(S),this.xmlNode=S,this.xmlDocument=S.ownerDocument}catch(t){}this.graph.getImageFromBundles=function(t){return m.getImageUrl(t)};mxClient.IS_SVG&&this.graph.addSvgShadow(this.graph.view.canvas.ownerSVGElement,null,!0);
-if("mxfile"==this.xmlNode.nodeName){var G=this.xmlNode.getElementsByTagName("diagram");if(0<G.length){if(null!=this.pageId)for(S=0;S<G.length;S++)if(this.pageId==G[S].getAttribute("id")){this.currentPage=S;break}var P=this.graph.getGlobalVariable;this.graph.getGlobalVariable=function(t){var z=G[m.currentPage];return"page"==t?z.getAttribute("name")||"Page-"+(m.currentPage+1):"pagenumber"==t?m.currentPage+1:"pagecount"==t?G.length:P.apply(this,arguments)}}}this.diagrams=[];var R=null;this.selectPage=
-function(t){this.handlingResize||(this.currentPage=mxUtils.mod(t,this.diagrams.length),this.updateGraphXml(Editor.parseDiagramNode(this.diagrams[this.currentPage])))};this.selectPageById=function(t){t=this.getIndexById(t);var z=0<=t;z&&this.selectPage(t);return z};S=mxUtils.bind(this,function(){if(null==this.xmlNode||"mxfile"!=this.xmlNode.nodeName)this.diagrams=[];this.xmlNode!=R&&(this.diagrams=this.xmlNode.getElementsByTagName("diagram"),R=this.xmlNode)});var c=this.graph.setBackgroundImage;this.graph.setBackgroundImage=
+!0;this.graph.centerZoom=!1;this.graph.autoExtend=!1;this.graph.autoScroll=!1;this.graph.setEnabled(!1);1==this.graphConfig["toolbar-nohide"]&&(this.editor.defaultGraphOverflow="visible");var T=this.editor.extractGraphModel(this.xmlNode,!0);if(null!=T&&T!=e)try{this.xml=mxUtils.getXml(T),this.xmlNode=T,this.xmlDocument=T.ownerDocument}catch(t){}this.graph.getImageFromBundles=function(t){return m.getImageUrl(t)};mxClient.IS_SVG&&this.graph.addSvgShadow(this.graph.view.canvas.ownerSVGElement,null,!0);
+if("mxfile"==this.xmlNode.nodeName){var G=this.xmlNode.getElementsByTagName("diagram");if(0<G.length){if(null!=this.pageId)for(T=0;T<G.length;T++)if(this.pageId==G[T].getAttribute("id")){this.currentPage=T;break}var P=this.graph.getGlobalVariable;this.graph.getGlobalVariable=function(t){var z=G[m.currentPage];return"page"==t?z.getAttribute("name")||"Page-"+(m.currentPage+1):"pagenumber"==t?m.currentPage+1:"pagecount"==t?G.length:P.apply(this,arguments)}}}this.diagrams=[];var R=null;this.selectPage=
+function(t){this.handlingResize||(this.currentPage=mxUtils.mod(t,this.diagrams.length),this.updateGraphXml(Editor.parseDiagramNode(this.diagrams[this.currentPage])))};this.selectPageById=function(t){t=this.getIndexById(t);var z=0<=t;z&&this.selectPage(t);return z};T=mxUtils.bind(this,function(){if(null==this.xmlNode||"mxfile"!=this.xmlNode.nodeName)this.diagrams=[];this.xmlNode!=R&&(this.diagrams=this.xmlNode.getElementsByTagName("diagram"),R=this.xmlNode)});var c=this.graph.setBackgroundImage;this.graph.setBackgroundImage=
function(t){if(null!=t&&Graph.isPageLink(t.src)){var z=t.src,C=z.indexOf(",");0<C&&(C=m.getIndexById(z.substring(C+1)),0<=C&&(t=m.getImageForGraphModel(Editor.parseDiagramNode(m.diagrams[C])),t.originalSrc=z))}c.apply(this,arguments)};var f=this.graph.getGraphBounds;this.graph.getGraphBounds=function(t){var z=f.apply(this,arguments);t=this.backgroundImage;if(null!=t){var C=this.view.translate,F=this.view.scale;z=mxRectangle.fromRectangle(z);z.add(new mxRectangle((C.x+t.x)*F,(C.y+t.y)*F,t.width*F,
-t.height*F))}return z};this.addListener("xmlNodeChanged",S);S();urlParams.page=m.currentPage;S=null;this.graph.getModel().beginUpdate();try{urlParams.nav=0!=this.graphConfig.nav?"1":"0",this.editor.setGraphXml(this.xmlNode),this.graph.view.scale=this.graphConfig.zoom||1,S=this.setLayersVisible(),this.fireEvent(new mxEventObject("graphInitialized")),this.responsive||(this.graph.border=null!=this.graphConfig.border?this.graphConfig.border:8),this.installBackgroundColorHandler(),GraphViewer.viewerInitialized(this)}finally{this.graph.getModel().endUpdate()}this.responsive||
+t.height*F))}return z};this.addListener("xmlNodeChanged",T);T();urlParams.page=m.currentPage;T=null;this.graph.getModel().beginUpdate();try{urlParams.nav=0!=this.graphConfig.nav?"1":"0",this.editor.setGraphXml(this.xmlNode),this.graph.view.scale=this.graphConfig.zoom||1,T=this.setLayersVisible(),this.fireEvent(new mxEventObject("graphInitialized")),this.responsive||(this.graph.border=null!=this.graphConfig.border?this.graphConfig.border:8),this.installBackgroundColorHandler(),GraphViewer.viewerInitialized(this)}finally{this.graph.getModel().endUpdate()}this.responsive||
(this.graph.panningHandler.isForcePanningEvent=function(t){return!mxEvent.isPopupTrigger(t.getEvent())&&"auto"==this.graph.container.style.overflow},this.graph.panningHandler.useLeftButtonForPanning=!0,this.graph.panningHandler.ignoreCell=!0,this.graph.panningHandler.usePopupTrigger=!1,this.graph.panningHandler.pinchEnabled=!1);this.graph.setPanning(!1);null!=this.graphConfig.toolbar?this.addToolbar():null!=this.graphConfig.title&&this.showTitleAsTooltip&&b.setAttribute("title",this.graphConfig.titleTooltip||
-this.graphConfig.title);this.responsive||this.addSizeHandler();!this.showLayers(this.graph)||this.forceCenter||this.layersEnabled&&!this.autoCrop||this.crop();this.addClickHandler(this.graph);this.graph.setTooltips(0!=this.graphConfig.tooltips);this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale};null!=S&&this.setLayersVisible(S);this.graph.customLinkClicked=function(t,z){try{if(Graph.isPageLink(t)){var C=t.indexOf(",");m.selectPageById(t.substring(C+
+this.graphConfig.title);this.responsive||this.addSizeHandler();!this.showLayers(this.graph)||this.forceCenter||this.layersEnabled&&!this.autoCrop||this.crop();this.addClickHandler(this.graph);this.graph.setTooltips(0!=this.graphConfig.tooltips);this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale};null!=T&&this.setLayersVisible(T);this.graph.customLinkClicked=function(t,z){try{if(Graph.isPageLink(t)){var C=t.indexOf(",");m.selectPageById(t.substring(C+
1))||alert(mxResources.get("pageNotFound")||"Page not found")}else{var F=this.getGraphBounds();this.handleCustomLink(t,z);F.equals(this.getGraphBounds())||m.crop()}}catch(N){alert(N.message)}return!0};var l=this.graph.foldTreeCell;this.graph.foldTreeCell=mxUtils.bind(this,function(){this.treeCellFolded=!0;return l.apply(this.graph,arguments)});this.fireEvent(new mxEventObject("render"))});g=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(this.checkVisibleState&&
0==b.offsetWidth&&null==this.getAncestorDetails(b)&&"undefined"!==typeof g){var p=this.getObservableParent(b),B=new g(mxUtils.bind(this,function(H){0<b.offsetWidth&&(B.disconnect(),u())}));B.observe(p,{attributes:!0})}else u()}};
GraphViewer.prototype.installBackgroundColorHandler=function(){var b=this.graph;if(null!=b){null!=GraphViewer.shapeBackgroundColor&&(b.shapeBackgroundColor=GraphViewer.shapeBackgroundColor);b.defaultPageBackgroundColor="transparent";b.diagramBackgroundColor="transparent";b.transparentBackground=!1;var e=b.background,g=mxUtils.bind(this,function(m){"none"==b.getAdaptiveColors()&&null==e&&(this.isDarkMode()?b.background="#ffffff":b.background=null,m&&b.view.validateBackground())});this.addListener("graphChanged",
@@ -4220,23 +4220,23 @@ GraphViewer.prototype.setFileNode=function(b){null==this.xmlNode&&(this.xmlDocum
GraphViewer.prototype.setLayersVisible=function(b){var e=!0;if(!this.autoOrigin){var g=[],m=this.graph.getModel();m.beginUpdate();try{for(var u=0;u<m.getChildCount(m.root);u++){var p=m.getChildAt(m.root,u);e=e&&m.isVisible(p);g.push(m.isVisible(p));m.setVisible(p,null!=b?b[u]:!0)}}finally{m.endUpdate()}}return e?null:g};
GraphViewer.prototype.setGraphXml=function(b){if(null!=this.graph){this.graph.view.translate=new mxPoint;this.graph.view.scale=1;var e=null;this.graph.getModel().beginUpdate();try{this.graph.getModel().clear(),this.editor.setGraphXml(b),e=this.setLayersVisible(!0)}finally{this.graph.getModel().endUpdate()}this.responsive||(this.widthIsEmpty?(this.graph.container.style.width="",this.graph.container.style.height=""):this.graph.container.style.width=this.initialWidth,this.positionGraph());this.graph.initialViewState=
{translate:this.graph.view.translate.clone(),scale:this.graph.view.scale};e&&this.setLayersVisible(e)}};GraphViewer.prototype.isDarkMode=function(){return"dark"==this.darkMode||"auto"==this.darkMode&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches};
-GraphViewer.prototype.addSizeHandler=function(){var b=this.graph.container,e=this.graph.getGraphBounds(),g=!1;b.style.overflow=1!=this.graphConfig["toolbar-nohide"]?"hidden":"visible";var m=mxUtils.bind(this,function(){if(!g){g=!0;var H=this.graph.getGraphBounds();b.style.overflow=1!=this.graphConfig["toolbar-nohide"]?H.width+2*this.graph.border>b.offsetWidth-2?"auto":"hidden":"visible";if(null!=this.toolbar&&1!=this.graphConfig["toolbar-nohide"]){H=b.getBoundingClientRect();var S=mxUtils.getScrollOrigin(document.body);
-S="relative"===document.body.style.position?document.body.getBoundingClientRect():{left:-S.x,top:-S.y};H={left:H.left-S.left,top:H.top-S.top,bottom:H.bottom-S.top,right:H.right-S.left};this.toolbar.style.left=H.left+"px";"bottom"==this.graphConfig["toolbar-position"]?this.toolbar.style.top=H.bottom-1+"px":"inline"!=this.graphConfig["toolbar-position"]?(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px",this.toolbar.style.top=H.top+1+"px"):this.toolbar.style.top=H.top+"px"}else null!=
-this.toolbar&&(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px");this.treeCellFolded&&(this.treeCellFolded=!1,this.positionGraph(this.graph.view.translate),this.graph.initialViewState.translate=this.graph.view.translate.clone());g=!1}}),u=null;this.handlingResize=!1;this.fitGraph=mxUtils.bind(this,function(H){var S=b.offsetWidth;S==u||this.handlingResize||(this.handlingResize=!0,"auto"==b.style.overflow&&(b.style.overflow="hidden"),this.graph.maxFitScale=null!=H?H:this.graphConfig.zoom||
-(this.allowZoomIn?null:1),this.graph.fit(null,null,null,null,null,!0),(this.center||0==this.graphConfig.resize&&""!=b.style.height)&&this.graph.center(),this.graph.maxFitScale=null,0==this.graphConfig.resize&&""!=b.style.height||this.updateContainerHeight(b,Math.max(this.minHeight,this.graph.getGraphBounds().height+2*this.graph.border+1)),this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale},u=S,window.setTimeout(mxUtils.bind(this,function(){this.handlingResize=
+GraphViewer.prototype.addSizeHandler=function(){var b=this.graph.container,e=this.graph.getGraphBounds(),g=!1;b.style.overflow=1!=this.graphConfig["toolbar-nohide"]?"hidden":"visible";var m=mxUtils.bind(this,function(){if(!g){g=!0;var H=this.graph.getGraphBounds();b.style.overflow=1!=this.graphConfig["toolbar-nohide"]?H.width+2*this.graph.border>b.offsetWidth-2?"auto":"hidden":"visible";if(null!=this.toolbar&&1!=this.graphConfig["toolbar-nohide"]){H=b.getBoundingClientRect();var T=mxUtils.getScrollOrigin(document.body);
+T="relative"===document.body.style.position?document.body.getBoundingClientRect():{left:-T.x,top:-T.y};H={left:H.left-T.left,top:H.top-T.top,bottom:H.bottom-T.top,right:H.right-T.left};this.toolbar.style.left=H.left+"px";"bottom"==this.graphConfig["toolbar-position"]?this.toolbar.style.top=H.bottom-1+"px":"inline"!=this.graphConfig["toolbar-position"]?(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px",this.toolbar.style.top=H.top+1+"px"):this.toolbar.style.top=H.top+"px"}else null!=
+this.toolbar&&(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px");this.treeCellFolded&&(this.treeCellFolded=!1,this.positionGraph(this.graph.view.translate),this.graph.initialViewState.translate=this.graph.view.translate.clone());g=!1}}),u=null;this.handlingResize=!1;this.fitGraph=mxUtils.bind(this,function(H){var T=b.offsetWidth;T==u||this.handlingResize||(this.handlingResize=!0,"auto"==b.style.overflow&&(b.style.overflow="hidden"),this.graph.maxFitScale=null!=H?H:this.graphConfig.zoom||
+(this.allowZoomIn?null:1),this.graph.fit(null,null,null,null,null,!0),(this.center||0==this.graphConfig.resize&&""!=b.style.height)&&this.graph.center(),this.graph.maxFitScale=null,0==this.graphConfig.resize&&""!=b.style.height||this.updateContainerHeight(b,Math.max(this.minHeight,this.graph.getGraphBounds().height+2*this.graph.border+1)),this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale},u=T,window.setTimeout(mxUtils.bind(this,function(){this.handlingResize=
!1}),0))});GraphViewer.useResizeSensor&&(9>=document.documentMode?(mxEvent.addListener(window,"resize",m),this.graph.addListener("size",m)):new ResizeSensor(this.graph.container,m));if(this.graphConfig.resize||(this.zoomEnabled||!this.autoFit)&&0!=this.graphConfig.resize)this.graph.minimumContainerSize=new mxRectangle(0,0,this.minWidth,this.minHeight),this.graph.resizeContainer=!0;else if(!this.widthIsEmpty||""!=b.style.height&&this.autoFit||this.updateContainerWidth(b,e.width+2*this.graph.border),
0==this.graphConfig.resize&&""!=b.style.height||this.updateContainerHeight(b,Math.max(this.minHeight,e.height+2*this.graph.border+1)),!this.zoomEnabled&&this.autoFit){var p=u=null;m=mxUtils.bind(this,function(){window.clearTimeout(p);this.handlingResize||(p=window.setTimeout(mxUtils.bind(this,this.fitGraph),100))});GraphViewer.useResizeSensor&&(9>=document.documentMode?mxEvent.addListener(window,"resize",m):new ResizeSensor(this.graph.container,m))}else 9>=document.documentMode||this.graph.addListener("size",
-m);var B=mxUtils.bind(this,function(H){var S=b.style.minWidth;this.widthIsEmpty&&(b.style.minWidth="100%");var G=null!=this.graphConfig["max-height"]?this.graphConfig["max-height"]:""!=b.style.height&&this.autoFit?b.offsetHeight:void 0;0<b.offsetWidth&&null==H&&this.allowZoomOut&&(this.allowZoomIn||e.width+2*this.graph.border>b.offsetWidth||e.height+2*this.graph.border>G)?(H=null,null!=G&&e.height+2*this.graph.border>G-2&&(H=(G-2*this.graph.border-2)/e.height),this.fitGraph(H)):this.widthIsEmpty||
-null!=H||0!=this.graphConfig.resize||""==b.style.height?(H=null!=H?H:new mxPoint,this.graph.view.setTranslate(Math.floor(this.graph.border-e.x/this.graph.view.scale)+H.x,Math.floor(this.graph.border-e.y/this.graph.view.scale)+H.y),u=b.offsetWidth):this.graph.center((!this.widthIsEmpty||e.width<this.minWidth)&&1!=this.graphConfig.resize);b.style.minWidth=S});8==document.documentMode?window.setTimeout(B,0):B();this.positionGraph=function(H){e=this.graph.getGraphBounds();u=null;B(H)}};
+m);var B=mxUtils.bind(this,function(H){var T=b.style.minWidth;this.widthIsEmpty&&(b.style.minWidth="100%");var G=null!=this.graphConfig["max-height"]?this.graphConfig["max-height"]:""!=b.style.height&&this.autoFit?b.offsetHeight:void 0;0<b.offsetWidth&&null==H&&this.allowZoomOut&&(this.allowZoomIn||e.width+2*this.graph.border>b.offsetWidth||e.height+2*this.graph.border>G)?(H=null,null!=G&&e.height+2*this.graph.border>G-2&&(H=(G-2*this.graph.border-2)/e.height),this.fitGraph(H)):this.widthIsEmpty||
+null!=H||0!=this.graphConfig.resize||""==b.style.height?(H=null!=H?H:new mxPoint,this.graph.view.setTranslate(Math.floor(this.graph.border-e.x/this.graph.view.scale)+H.x,Math.floor(this.graph.border-e.y/this.graph.view.scale)+H.y),u=b.offsetWidth):this.graph.center((!this.widthIsEmpty||e.width<this.minWidth)&&1!=this.graphConfig.resize);b.style.minWidth=T});8==document.documentMode?window.setTimeout(B,0):B();this.positionGraph=function(H){e=this.graph.getGraphBounds();u=null;B(H)}};
GraphViewer.prototype.crop=function(){var b=this.graph,e=b.getGraphBounds(),g=b.border,m=b.view.scale;b.view.setTranslate(null!=e.x?Math.floor(b.view.translate.x-e.x/m+g):g,null!=e.y?Math.floor(b.view.translate.y-e.y/m+g):g)};GraphViewer.prototype.updateContainerWidth=function(b,e){b.style.width=e+"px"};GraphViewer.prototype.updateContainerHeight=function(b,e){if(this.forceCenter||this.zoomEnabled||!this.autoFit||"BackCompat"==document.compatMode||8==document.documentMode)b.style.height=e+"px"};
-GraphViewer.prototype.showLayers=function(b,e){var g=this.graphConfig.layers;g=null!=g&&0<g.length?g.split(" "):[];var m=this.graphConfig.layerIds,u=null!=m&&0<m.length,p=!1;if(0<g.length||u||null!=e){e=null!=e?e.getModel():null;b=b.getModel();b.beginUpdate();try{var B=b.getChildCount(b.root);if(null==e){e=!1;p={};if(u)for(var H=0;H<m.length;H++){var S=b.getCell(m[H]);null!=S&&(e=!0,p[S.id]=!0)}else for(H=0;H<g.length;H++)S=b.getChildAt(b.root,parseInt(g[H])),null!=S&&(e=!0,p[S.id]=!0);for(H=0;e&&
-H<B;H++)S=b.getChildAt(b.root,H),b.setVisible(S,p[S.id]||!1)}else for(H=0;H<B;H++)b.setVisible(b.getChildAt(b.root,H),e.isVisible(e.getChildAt(e.root,H)))}finally{b.endUpdate()}p=!0}return p};
+GraphViewer.prototype.showLayers=function(b,e){var g=this.graphConfig.layers;g=null!=g&&0<g.length?g.split(" "):[];var m=this.graphConfig.layerIds,u=null!=m&&0<m.length,p=!1;if(0<g.length||u||null!=e){e=null!=e?e.getModel():null;b=b.getModel();b.beginUpdate();try{var B=b.getChildCount(b.root);if(null==e){e=!1;p={};if(u)for(var H=0;H<m.length;H++){var T=b.getCell(m[H]);null!=T&&(e=!0,p[T.id]=!0)}else for(H=0;H<g.length;H++)T=b.getChildAt(b.root,parseInt(g[H])),null!=T&&(e=!0,p[T.id]=!0);for(H=0;e&&
+H<B;H++)T=b.getChildAt(b.root,H),b.setVisible(T,p[T.id]||!1)}else for(H=0;H<B;H++)b.setVisible(b.getChildAt(b.root,H),e.isVisible(e.getChildAt(e.root,H)))}finally{b.endUpdate()}p=!0}return p};
GraphViewer.prototype.addToolbar=function(){var b=this.graph.container;"bottom"==this.graphConfig["toolbar-position"]?b.style.marginBottom=this.toolbarHeight+"px":"inline"!=this.graphConfig["toolbar-position"]&&(b.style.marginTop=this.toolbarHeight+"px");var e=b.ownerDocument.createElement("div");e.style.display="flex";e.style.alignItems="center";e.style.position="absolute";e.style.overflow="hidden";e.style.boxSizing="border-box";e.style.whiteSpace="nowrap";e.style.textAlign="left";e.style.zIndex=
this.toolbarZIndex;e.style.backgroundColor="light-dark(#eeeeee, "+GraphViewer.darkBackgroundColor+")";e.style.height=this.toolbarHeight+"px";var g=mxUtils.bind(this,function(){this.isDarkMode()?(e.classList.add("geDarkMode"),e.style.colorScheme="dark"):(e.classList.remove("geDarkMode"),e.style.colorScheme="light")});this.addListener("darkModeChanged",g);this.toolbar=e;g();if("inline"==this.graphConfig["toolbar-position"]){mxUtils.setPrefixedStyle(e.style,"transition","opacity 100ms ease-in-out");
mxUtils.setOpacity(e,30);var m=null,u=null,p=mxUtils.bind(this,function(ca){null!=m&&(window.clearTimeout(m),fadeThead=null);null!=u&&(window.clearTimeout(u),fadeThead2=null);m=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(e,0);m=null;u=window.setTimeout(mxUtils.bind(this,function(){e.style.display="none";u=null}),100)}),ca||200)}),B=mxUtils.bind(this,function(ca){null!=m&&(window.clearTimeout(m),fadeThead=null);null!=u&&(window.clearTimeout(u),fadeThead2=null);e.style.display=
"";mxUtils.setOpacity(e,ca||30)});mxEvent.addListener(this.graph.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(ca){mxEvent.isTouchEvent(ca)||(B(30),p())}));mxEvent.addListener(e,mxClient.IS_POINTER?"pointermove":"mousemove",function(ca){mxEvent.consume(ca)});mxEvent.addListener(e,"mouseenter",mxUtils.bind(this,function(ca){B(100)}));mxEvent.addListener(e,"mousemove",mxUtils.bind(this,function(ca){B(100);mxEvent.consume(ca)}));mxEvent.addListener(e,"mouseleave",
-mxUtils.bind(this,function(ca){mxEvent.isTouchEvent(ca)||B(30)}));var H=this.graph,S=H.getTolerance();H.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(ca,W){this.startX=W.getGraphX();this.startY=W.getGraphY();this.scrollLeft=H.container.scrollLeft;this.scrollTop=H.container.scrollTop},mouseMove:function(ca,W){},mouseUp:function(ca,W){mxEvent.isTouchEvent(W.getEvent())&&Math.abs(this.scrollLeft-H.container.scrollLeft)<S&&Math.abs(this.scrollTop-H.container.scrollTop)<
-S&&Math.abs(this.startX-W.getGraphX())<S&&Math.abs(this.startY-W.getGraphY())<S&&(0<parseFloat(e.style.opacity||0)?p():B(30))}})}g=this.toolbarItems;for(var G=0,P=mxUtils.bind(this,function(ca,W,ba,ha){ca=this.createToolbarButton(ca,W,ba,ha);e.appendChild(ca);G++;return ca}),R=this.graph.getModel(),c=null,f=null,l=null,t=null,z=0;z<g.length;z++){var C=g[z];if("pages"==C){t=b.ownerDocument.createElement("div");t.style.display="inline-flex";t.style.position="relative";t.style.alignItems="center";t.style.padding=
+mxUtils.bind(this,function(ca){mxEvent.isTouchEvent(ca)||B(30)}));var H=this.graph,T=H.getTolerance();H.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(ca,W){this.startX=W.getGraphX();this.startY=W.getGraphY();this.scrollLeft=H.container.scrollLeft;this.scrollTop=H.container.scrollTop},mouseMove:function(ca,W){},mouseUp:function(ca,W){mxEvent.isTouchEvent(W.getEvent())&&Math.abs(this.scrollLeft-H.container.scrollLeft)<T&&Math.abs(this.scrollTop-H.container.scrollTop)<
+T&&Math.abs(this.startX-W.getGraphX())<T&&Math.abs(this.startY-W.getGraphY())<T&&(0<parseFloat(e.style.opacity||0)?p():B(30))}})}g=this.toolbarItems;for(var G=0,P=mxUtils.bind(this,function(ca,W,ba,ha){ca=this.createToolbarButton(ca,W,ba,ha);e.appendChild(ca);G++;return ca}),R=this.graph.getModel(),c=null,f=null,l=null,t=null,z=0;z<g.length;z++){var C=g[z];if("pages"==C){t=b.ownerDocument.createElement("div");t.style.display="inline-flex";t.style.position="relative";t.style.alignItems="center";t.style.padding=
"4px";t.style.fontFamily=GraphViewer.cssFontFamily;t.style.fontSize="12px";t.style.cursor="default";t.style.color="light-dark(#000000, #ffffff)";mxUtils.setOpacity(t,70);var F=P(mxUtils.bind(this,function(){this.selectPage(this.currentPage-1)}),Editor.previousImage,mxResources.get("previousPage")||"Previous Page");F.style.borderRightStyle="none";F.style.paddingLeft="0px";F.style.paddingRight="0px";e.appendChild(t);var N=P(mxUtils.bind(this,function(){this.selectPage(this.currentPage+1)}),Editor.nextImage,
mxResources.get("nextPage")||"Next Page");N.style.paddingLeft="0px";N.style.paddingRight="0px";C=mxUtils.bind(this,function(){t.innerText="";mxUtils.write(t,this.currentPage+1+" / "+this.diagrams.length);t.style.display=1<this.diagrams.length?"inline-flex":"none";F.style.display=t.style.display;N.style.display=t.style.display});this.addListener("graphChanged",C);C()}else if("zoom"==C)this.zoomEnabled&&(P(mxUtils.bind(this,function(){this.graph.zoomOut()}),Editor.zoomOutImage,mxResources.get("zoomOut")||
"Zoom Out"),P(mxUtils.bind(this,function(){this.graph.zoomIn()}),Editor.zoomInImage,mxResources.get("zoomIn")||"Zoom In"),P(mxUtils.bind(this,function(){this.graph.view.scaleAndTranslate(this.graph.initialViewState.scale,this.graph.initialViewState.translate.x,this.graph.initialViewState.translate.y)}),Editor.zoomFitImage,mxResources.get("fit")||"Fit"));else if("layers"==C){if(this.layersEnabled){var K=P(mxUtils.bind(this,function(ca){if(null!=c)c.parentNode.removeChild(c),c=null;else{c=this.graph.createLayersDialog(mxUtils.bind(this,
@@ -4263,7 +4263,7 @@ GraphViewer.prototype.showLocalLightbox=function(b){var e=document.createElement
g.className="geAdaptiveAsset";var m=mxUtils.bind(this,function(){p.setDarkMode(this.isDarkMode())});mxEvent.addListener(g,"click",mxUtils.bind(this,function(){this.removeListener("darkModeChanged",m);p.destroy()}));urlParams.pages="1";urlParams.page=this.currentPage;urlParams["page-id"]=this.graphConfig.pageId;urlParams["layer-ids"]=null!=this.graphConfig.layerIds&&0<this.graphConfig.layerIds.length?this.graphConfig.layerIds.join(" "):null;urlParams.nav=0!=this.graphConfig.nav?"1":"0";urlParams.layers=
this.layersEnabled?"1":"0";urlParams.dark=this.isDarkMode()?"1":"0";this.tagsEnabled&&(urlParams.tags="{}");if(null!=b)try{var u=JSON.parse(decodeURIComponent(urlParams["toolbar-config"]||"{}"));u.noCloseBtn=!0;urlParams["toolbar-config"]=encodeURIComponent(JSON.stringify(u))}catch(f){}if(null==document.documentMode||10<=document.documentMode)Editor.prototype.editButtonLink=this.graphConfig.edit,Editor.prototype.editButtonFunc=this.graphConfig.editFunc;EditorUi.prototype.updateActionStates=function(){};
EditorUi.prototype.addBeforeUnloadListener=function(){};EditorUi.prototype.addChromelessClickHandler=function(){};u=Graph.prototype.shadowId;Graph.prototype.shadowId="lightboxDropShadow";var p=new EditorUi(new Editor(!0),document.createElement("div"),!0);this.addListener("darkModeChanged",m);p.editor.editBlankUrl=this.editBlankUrl;p.editor.graph.shadowId="lightboxDropShadow";Graph.prototype.shadowId=u;p.refresh=function(){};var B=mxUtils.bind(this,function(f){27==f.keyCode&&p.destroy()}),H=this.initialOverflow,
-S=p.destroy;p.destroy=function(){null==b&&(mxEvent.removeListener(document.documentElement,"keydown",B),document.body.removeChild(e),document.body.removeChild(g),document.body.style.overflow=H,GraphViewer.resizeSensorEnabled=!0,S.apply(this,arguments))};var G=p.editor.graph,P=G.container;P.style.overflow="hidden";this.lightboxChrome&&null==b?(P.style.border="1px solid #c0c0c0",P.style.margin="40px",mxEvent.addListener(document.documentElement,"keydown",B)):(e.style.display="none",g.style.display=
+T=p.destroy;p.destroy=function(){null==b&&(mxEvent.removeListener(document.documentElement,"keydown",B),document.body.removeChild(e),document.body.removeChild(g),document.body.style.overflow=H,GraphViewer.resizeSensorEnabled=!0,T.apply(this,arguments))};var G=p.editor.graph,P=G.container;P.style.overflow="hidden";this.lightboxChrome&&null==b?(P.style.border="1px solid #c0c0c0",P.style.margin="40px",mxEvent.addListener(document.documentElement,"keydown",B)):(e.style.display="none",g.style.display=
"none");var R=this;G.getImageFromBundles=function(f){return R.getImageUrl(f)};var c=p.createTemporaryGraph;p.createTemporaryGraph=function(){var f=c.apply(this,arguments);f.getImageFromBundles=function(l){return R.getImageUrl(l)};return f};this.graphConfig.move&&(G.isMoveCellsEvent=function(f){return!0});mxUtils.setPrefixedStyle(P.style,"border-radius","4px");P.style.position="fixed";GraphViewer.resizeSensorEnabled=!1;document.body.style.overflow="hidden";this.addClickHandler(G,p);window.setTimeout(mxUtils.bind(this,
function(){try{mxEvent.addListener(e,"click",function(){p.destroy()}),P.style.outline="none",P.style.zIndex=this.lightboxZIndex,g.style.zIndex=this.lightboxZIndex,null!=b?(b.innerHTML="",b.appendChild(P)):(document.body.appendChild(P),document.body.appendChild(g)),p.setFileData(this.xml),mxUtils.setPrefixedStyle(P.style,"transform","rotateY(0deg)"),p.chromelessToolbar.style.bottom="60px",p.chromelessToolbar.style.zIndex=this.lightboxZIndex,(b||document.body).appendChild(p.chromelessToolbar),p.getEditBlankXml=
mxUtils.bind(this,function(){return this.xml}),this.showLayers(G,this.graph),p.lightboxFit(),p.chromelessResize()}catch(f){p.handleError(f,null,function(){p.destroy()})}}),0);return p};Dialog.prototype.getDocumentSize=function(){return new mxRectangle(0,0,Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0))};
@@ -4282,6 +4282,6 @@ GraphViewer.cachedUrls={};GraphViewer.getUrl=function(b,e,g){if(null!=GraphViewe
(function(){var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(g){return window.setTimeout(g,20)},e=function(g,m){function u(){this.q=[];this.add=function(t){this.q.push(t)};var f,l;this.call=function(){f=0;for(l=this.q.length;f<l;f++)this.q[f].call()}}function p(f,l){return f.currentStyle?f.currentStyle[l]:window.getComputedStyle?window.getComputedStyle(f,null).getPropertyValue(l):f.style[l]}function B(f,l){if(!f.resizedAttached)f.resizedAttached=
new u,f.resizedAttached.add(l);else if(f.resizedAttached){f.resizedAttached.add(l);return}f.resizeSensor=document.createElement("div");f.resizeSensor.className="resize-sensor";f.resizeSensor.style.cssText="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;";f.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;"><div style="position: absolute; left: 0; top: 0; transition: 0s;"></div></div><div class="resize-sensor-shrink" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;"><div style="position: absolute; left: 0; top: 0; transition: 0s; width: 200%; height: 200%"></div></div>';
f.appendChild(f.resizeSensor);"static"==p(f,"position")&&(f.style.position="relative");var t=f.resizeSensor.childNodes[0],z=t.childNodes[0],C=f.resizeSensor.childNodes[1],F=function(){z.style.width="100000px";z.style.height="100000px";t.scrollLeft=1E5;t.scrollTop=1E5;C.scrollLeft=1E5;C.scrollTop=1E5};F();var N=!1,K=function(){f.resizedAttached&&(N&&(f.resizedAttached.call(),N=!1),b(K))};b(K);var J,da,ea,ca;l=function(){if((ea=f.offsetWidth)!=J||(ca=f.offsetHeight)!=da)N=!0,J=ea,da=ca;F()};var W=function(ba,
-ha,la){ba.attachEvent?ba.attachEvent("on"+ha,la):ba.addEventListener(ha,la)};W(t,"scroll",l);W(C,"scroll",l)}var H=function(){GraphViewer.resizeSensorEnabled&&m()};if(GraphViewer.useResizeObserver&&"undefined"!==typeof ResizeObserver){var S=null,G=!1;(new ResizeObserver(function(){G||(null!=S&&window.clearTimeout(S),S=window.setTimeout(function(){G=!0;H();S=null;G=!1},200))})).observe(g)}else{var P=Object.prototype.toString.call(g),R="[object Array]"===P||"[object NodeList]"===P||"[object HTMLCollection]"===
+ha,la){ba.attachEvent?ba.attachEvent("on"+ha,la):ba.addEventListener(ha,la)};W(t,"scroll",l);W(C,"scroll",l)}var H=function(){GraphViewer.resizeSensorEnabled&&m()};if(GraphViewer.useResizeObserver&&"undefined"!==typeof ResizeObserver){var T=null,G=!1;(new ResizeObserver(function(){G||(null!=T&&window.clearTimeout(T),T=window.setTimeout(function(){G=!0;H();T=null;G=!1},200))})).observe(g)}else{var P=Object.prototype.toString.call(g),R="[object Array]"===P||"[object NodeList]"===P||"[object HTMLCollection]"===
P||"undefined"!==typeof jQuery&&g instanceof jQuery||"undefined"!==typeof Elements&&g instanceof Elements;if(R){P=0;for(var c=g.length;P<c;P++)B(g[P],H)}else B(g,H);this.detach=function(){if(R)for(var f=0,l=g.length;f<l;f++)e.detach(g[f]);else e.detach(g)}}};e.detach=function(g){g.resizeSensor&&(g.removeChild(g.resizeSensor),delete g.resizeSensor,delete g.resizedAttached)};window.ResizeSensor=e})();
(function(){Editor.initMath();if(null!=window.onDrawioViewerLoad)window.onDrawioViewerLoad();else GraphViewer.processElements()})();
diff --git a/src/main/webapp/resources/dia.txt b/src/main/webapp/resources/dia.txt
index e948aa9fd..e9ddabc00 100644
--- a/src/main/webapp/resources/dia.txt
+++ b/src/main/webapp/resources/dia.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_am.txt b/src/main/webapp/resources/dia_am.txt
index af8f00e7a..6bb2ec5fd 100644
--- a/src/main/webapp/resources/dia_am.txt
+++ b/src/main/webapp/resources/dia_am.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_ar.txt b/src/main/webapp/resources/dia_ar.txt
index 84f61b60f..859ca7890 100644
--- a/src/main/webapp/resources/dia_ar.txt
+++ b/src/main/webapp/resources/dia_ar.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_bg.txt b/src/main/webapp/resources/dia_bg.txt
index 8bb6ecb17..9270fb246 100644
--- a/src/main/webapp/resources/dia_bg.txt
+++ b/src/main/webapp/resources/dia_bg.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_bn.txt b/src/main/webapp/resources/dia_bn.txt
index e39ea2d5b..2974c9657 100644
--- a/src/main/webapp/resources/dia_bn.txt
+++ b/src/main/webapp/resources/dia_bn.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_bs.txt b/src/main/webapp/resources/dia_bs.txt
index 7ccb486d0..021c7fefb 100644
--- a/src/main/webapp/resources/dia_bs.txt
+++ b/src/main/webapp/resources/dia_bs.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_ca.txt b/src/main/webapp/resources/dia_ca.txt
index eff65c363..a21ee230d 100644
--- a/src/main/webapp/resources/dia_ca.txt
+++ b/src/main/webapp/resources/dia_ca.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_cs.txt b/src/main/webapp/resources/dia_cs.txt
index 1b04a4d99..f59ac69ff 100644
--- a/src/main/webapp/resources/dia_cs.txt
+++ b/src/main/webapp/resources/dia_cs.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_da.txt b/src/main/webapp/resources/dia_da.txt
index f6455387b..9e9fbe76a 100644
--- a/src/main/webapp/resources/dia_da.txt
+++ b/src/main/webapp/resources/dia_da.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_de.txt b/src/main/webapp/resources/dia_de.txt
index 13f73f90b..6451a3fb8 100644
--- a/src/main/webapp/resources/dia_de.txt
+++ b/src/main/webapp/resources/dia_de.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Das verknüpfte Diagramm kann nur auf der Original-Seite b
diagInTemps=draw.io Diagramme in Vorlagen
diagInTempsCantEdit=Diagramme in Seitenvorlagen können nicht bearbeitet werden. Sie können nur auf Seiten und Blog-Posts bearbeitet werden.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_el.txt b/src/main/webapp/resources/dia_el.txt
index 9e2b9d76a..b059ed8ab 100644
--- a/src/main/webapp/resources/dia_el.txt
+++ b/src/main/webapp/resources/dia_el.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_eo.txt b/src/main/webapp/resources/dia_eo.txt
index cd57d94f4..8d1d96c98 100644
--- a/src/main/webapp/resources/dia_eo.txt
+++ b/src/main/webapp/resources/dia_eo.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_es.txt b/src/main/webapp/resources/dia_es.txt
index 4ac780f1e..7cc778637 100644
--- a/src/main/webapp/resources/dia_es.txt
+++ b/src/main/webapp/resources/dia_es.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_et.txt b/src/main/webapp/resources/dia_et.txt
index 81aa6bbd4..c75995456 100644
--- a/src/main/webapp/resources/dia_et.txt
+++ b/src/main/webapp/resources/dia_et.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_eu.txt b/src/main/webapp/resources/dia_eu.txt
index 453a4cb56..e3af6cd1d 100644
--- a/src/main/webapp/resources/dia_eu.txt
+++ b/src/main/webapp/resources/dia_eu.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_fa.txt b/src/main/webapp/resources/dia_fa.txt
index 4d51c00c8..a03b6edb0 100644
--- a/src/main/webapp/resources/dia_fa.txt
+++ b/src/main/webapp/resources/dia_fa.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_fi.txt b/src/main/webapp/resources/dia_fi.txt
index db994a6bc..2087264e0 100644
--- a/src/main/webapp/resources/dia_fi.txt
+++ b/src/main/webapp/resources/dia_fi.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_fil.txt b/src/main/webapp/resources/dia_fil.txt
index 9597d2832..122e9aae7 100644
--- a/src/main/webapp/resources/dia_fil.txt
+++ b/src/main/webapp/resources/dia_fil.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_fr.txt b/src/main/webapp/resources/dia_fr.txt
index 1b81ab976..3d33db64a 100644
--- a/src/main/webapp/resources/dia_fr.txt
+++ b/src/main/webapp/resources/dia_fr.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Le diagramme peut seulement être modifié à partir de la
diagInTemps=Diagrammes draw.io dans les modèles
diagInTempsCantEdit=Les diagrammes ne peuvent pas être modifiés dans un modèle de page. Ils peuvent seulement être modifiés dans les pages et les billets de blogue.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_gl.txt b/src/main/webapp/resources/dia_gl.txt
index 9bda2a76f..086a1d602 100644
--- a/src/main/webapp/resources/dia_gl.txt
+++ b/src/main/webapp/resources/dia_gl.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_gu.txt b/src/main/webapp/resources/dia_gu.txt
index 118b975e5..d74502ff4 100644
--- a/src/main/webapp/resources/dia_gu.txt
+++ b/src/main/webapp/resources/dia_gu.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_he.txt b/src/main/webapp/resources/dia_he.txt
index c9d57dc27..1b6858629 100644
--- a/src/main/webapp/resources/dia_he.txt
+++ b/src/main/webapp/resources/dia_he.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_hi.txt b/src/main/webapp/resources/dia_hi.txt
index 24fa7734f..ebcc9ae25 100644
--- a/src/main/webapp/resources/dia_hi.txt
+++ b/src/main/webapp/resources/dia_hi.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_hr.txt b/src/main/webapp/resources/dia_hr.txt
index feed33ece..250cdfe1a 100644
--- a/src/main/webapp/resources/dia_hr.txt
+++ b/src/main/webapp/resources/dia_hr.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_hu.txt b/src/main/webapp/resources/dia_hu.txt
index 38e7fa744..9473fd9fa 100644
--- a/src/main/webapp/resources/dia_hu.txt
+++ b/src/main/webapp/resources/dia_hu.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_i18n.txt b/src/main/webapp/resources/dia_i18n.txt
index bf135ebe9..eeb923d49 100644
--- a/src/main/webapp/resources/dia_i18n.txt
+++ b/src/main/webapp/resources/dia_i18n.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=diagEditOwnPgOnlyOpen
diagInTemps=diagInTemps
diagInTempsCantEdit=diagInTempsCantEdit
confDirectEditDraftLost=confDirectEditDraftLost
+confConfigSpacePerm=confConfigSpacePerm
diff --git a/src/main/webapp/resources/dia_id.txt b/src/main/webapp/resources/dia_id.txt
index 880348dd7..1ed51c8fd 100644
--- a/src/main/webapp/resources/dia_id.txt
+++ b/src/main/webapp/resources/dia_id.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_it.txt b/src/main/webapp/resources/dia_it.txt
index 5cc18f7bf..4e2628cce 100644
--- a/src/main/webapp/resources/dia_it.txt
+++ b/src/main/webapp/resources/dia_it.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_ja.txt b/src/main/webapp/resources/dia_ja.txt
index e36e9b870..8c45c45ec 100644
--- a/src/main/webapp/resources/dia_ja.txt
+++ b/src/main/webapp/resources/dia_ja.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_kn.txt b/src/main/webapp/resources/dia_kn.txt
index 99a961b25..fe2eef823 100644
--- a/src/main/webapp/resources/dia_kn.txt
+++ b/src/main/webapp/resources/dia_kn.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_ko.txt b/src/main/webapp/resources/dia_ko.txt
index 069f10b34..f1aae7a94 100644
--- a/src/main/webapp/resources/dia_ko.txt
+++ b/src/main/webapp/resources/dia_ko.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_lt.txt b/src/main/webapp/resources/dia_lt.txt
index 4082162b4..addc0dd70 100644
--- a/src/main/webapp/resources/dia_lt.txt
+++ b/src/main/webapp/resources/dia_lt.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_lv.txt b/src/main/webapp/resources/dia_lv.txt
index e8c46443d..2f8fc8e50 100644
--- a/src/main/webapp/resources/dia_lv.txt
+++ b/src/main/webapp/resources/dia_lv.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_ml.txt b/src/main/webapp/resources/dia_ml.txt
index bc786f03b..563a8f4cf 100644
--- a/src/main/webapp/resources/dia_ml.txt
+++ b/src/main/webapp/resources/dia_ml.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_mr.txt b/src/main/webapp/resources/dia_mr.txt
index 2608cf866..1a8097d98 100644
--- a/src/main/webapp/resources/dia_mr.txt
+++ b/src/main/webapp/resources/dia_mr.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_ms.txt b/src/main/webapp/resources/dia_ms.txt
index 91ab5aa0b..360b337fc 100644
--- a/src/main/webapp/resources/dia_ms.txt
+++ b/src/main/webapp/resources/dia_ms.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_my.txt b/src/main/webapp/resources/dia_my.txt
index 2bf741297..a4a3a5dcb 100644
--- a/src/main/webapp/resources/dia_my.txt
+++ b/src/main/webapp/resources/dia_my.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_nl.txt b/src/main/webapp/resources/dia_nl.txt
index c0f6437d2..47f68e138 100644
--- a/src/main/webapp/resources/dia_nl.txt
+++ b/src/main/webapp/resources/dia_nl.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Het diagram kan alleen worden bewerkt vanaf de bovenliggen
diagInTemps=draw.io diagrammen in sjablonen
diagInTempsCantEdit=Diagrammen in paginasjablonen kunnen niet worden bewerkt. Ze kunnen alleen worden bewerkt op pagina's en blogposts.
confDirectEditDraftLost=Deze Confluence-pagina bevat niet-gepubliceerde wijzigingen. Het bewerken van het diagram vanuit de paginaweergave kan gegevensverlies veroorzaken. Bewerk eerst de Confluence-pagina en bewerk vervolgens het diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_no.txt b/src/main/webapp/resources/dia_no.txt
index 1923c23f7..69269ad4e 100644
--- a/src/main/webapp/resources/dia_no.txt
+++ b/src/main/webapp/resources/dia_no.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_pl.txt b/src/main/webapp/resources/dia_pl.txt
index d44aeec5f..e9b972f00 100644
--- a/src/main/webapp/resources/dia_pl.txt
+++ b/src/main/webapp/resources/dia_pl.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_pt-br.txt b/src/main/webapp/resources/dia_pt-br.txt
index 3908f129a..f783043e8 100644
--- a/src/main/webapp/resources/dia_pt-br.txt
+++ b/src/main/webapp/resources/dia_pt-br.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_pt.txt b/src/main/webapp/resources/dia_pt.txt
index 047855ba0..fe0c309f2 100644
--- a/src/main/webapp/resources/dia_pt.txt
+++ b/src/main/webapp/resources/dia_pt.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_ro.txt b/src/main/webapp/resources/dia_ro.txt
index b051a1553..b2b79f984 100644
--- a/src/main/webapp/resources/dia_ro.txt
+++ b/src/main/webapp/resources/dia_ro.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_ru.txt b/src/main/webapp/resources/dia_ru.txt
index 9c533e8c7..e67ecb945 100644
--- a/src/main/webapp/resources/dia_ru.txt
+++ b/src/main/webapp/resources/dia_ru.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_si.txt b/src/main/webapp/resources/dia_si.txt
index f49725cb8..6612b1f31 100644
--- a/src/main/webapp/resources/dia_si.txt
+++ b/src/main/webapp/resources/dia_si.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_sk.txt b/src/main/webapp/resources/dia_sk.txt
index 3dcdc5ff2..3c716a4fa 100644
--- a/src/main/webapp/resources/dia_sk.txt
+++ b/src/main/webapp/resources/dia_sk.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_sl.txt b/src/main/webapp/resources/dia_sl.txt
index 7ef07e583..7eb6f3ab0 100644
--- a/src/main/webapp/resources/dia_sl.txt
+++ b/src/main/webapp/resources/dia_sl.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_sr.txt b/src/main/webapp/resources/dia_sr.txt
index df7c2738f..79ffbbcea 100644
--- a/src/main/webapp/resources/dia_sr.txt
+++ b/src/main/webapp/resources/dia_sr.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_sv.txt b/src/main/webapp/resources/dia_sv.txt
index ccb7c056e..b6ced42e6 100644
--- a/src/main/webapp/resources/dia_sv.txt
+++ b/src/main/webapp/resources/dia_sv.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_sw.txt b/src/main/webapp/resources/dia_sw.txt
index 1fc650c84..ed90e288d 100644
--- a/src/main/webapp/resources/dia_sw.txt
+++ b/src/main/webapp/resources/dia_sw.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_ta.txt b/src/main/webapp/resources/dia_ta.txt
index b8ede5b1c..701fdd4f6 100644
--- a/src/main/webapp/resources/dia_ta.txt
+++ b/src/main/webapp/resources/dia_ta.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_te.txt b/src/main/webapp/resources/dia_te.txt
index 91d27b0c6..7779fb241 100644
--- a/src/main/webapp/resources/dia_te.txt
+++ b/src/main/webapp/resources/dia_te.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_th.txt b/src/main/webapp/resources/dia_th.txt
index ee6824863..b61ae15b1 100644
--- a/src/main/webapp/resources/dia_th.txt
+++ b/src/main/webapp/resources/dia_th.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_tr.txt b/src/main/webapp/resources/dia_tr.txt
index e3c525f75..c1dac941f 100644
--- a/src/main/webapp/resources/dia_tr.txt
+++ b/src/main/webapp/resources/dia_tr.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_uk.txt b/src/main/webapp/resources/dia_uk.txt
index 4707e3721..d033cee2b 100644
--- a/src/main/webapp/resources/dia_uk.txt
+++ b/src/main/webapp/resources/dia_uk.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_vi.txt b/src/main/webapp/resources/dia_vi.txt
index 30dffb6be..8f2889cc7 100644
--- a/src/main/webapp/resources/dia_vi.txt
+++ b/src/main/webapp/resources/dia_vi.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_zh-tw.txt b/src/main/webapp/resources/dia_zh-tw.txt
index 0c39f708a..5ee0825ce 100644
--- a/src/main/webapp/resources/dia_zh-tw.txt
+++ b/src/main/webapp/resources/dia_zh-tw.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/resources/dia_zh.txt b/src/main/webapp/resources/dia_zh.txt
index baa58b8b0..aaa1a6f4b 100644
--- a/src/main/webapp/resources/dia_zh.txt
+++ b/src/main/webapp/resources/dia_zh.txt
@@ -1308,3 +1308,4 @@ diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Wou
diagInTemps=draw.io diagrams in templates
diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.
confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.
+confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.
diff --git a/src/main/webapp/service-worker.js b/src/main/webapp/service-worker.js
index 0b550782a..af42e067e 100644
--- a/src/main/webapp/service-worker.js
+++ b/src/main/webapp/service-worker.js
@@ -1,2 +1,2 @@
-if(!self.define){let e,i={};const r=(r,a)=>(r=new URL(r+".js",a).href,i[r]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=r,e.onload=i,document.head.appendChild(e)}else e=r,importScripts(r),i()})).then((()=>{let e=i[r];if(!e)throw new Error(`Module ${r} didn’t register its module`);return e})));self.define=(a,c)=>{const s=e||("document"in self?document.currentScript.src:"")||location.href;if(i[s])return;let d={};const o=e=>r(e,s),f={module:{uri:s},exports:d,require:o};i[s]=Promise.all(a.map((e=>f[e]||o(e)))).then((e=>(c(...e),d)))}}define(["./workbox-72a83b64"],(function(e){"use strict";self.skipWaiting(),e.precacheAndRoute([{url:"js/app.min.js",revision:"1a856d27d3d67fa7ba1c5d49a3d77df8"},{url:"js/extensions.min.js",revision:"b7348adb16856a4c46cf5d37f1925fe1"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"f760278d924467fb1d2289448c73fe27"},{url:"js/shapes-14-6-5.min.js",revision:"71913a30c93bc9aff182a3a2b3da1a21"},{url:"js/math-print.js",revision:"cf64f6a493a8cb5079f2b70813e478d7"},{url:"index.html",revision:"57fe6012597666439de3e76c9bb681c1"},{url:"open.html",revision:"d71816b3b00e769fc6019fcdd6921662"},{url:"shortcuts.svg",revision:"2381dd779ce6cfee954042a7f784c7e6"},{url:"styles/fonts/ArchitectsDaughter-Regular.ttf",revision:"31c2153c0530e32553b31a49b3d70736"},{url:"styles/grapheditor.css",revision:"1c4b010eb053bfb9aed1caee8a3d3689"},{url:"styles/atlas.css",revision:"05873c4bba51f571b1da549a967ea06c"},{url:"styles/dark.css",revision:"99dc5495d36d5ebaddababefde083c8c"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"505e8280346666f7ee801bc59521fa67"},{url:"js/viewer-static.min.js",revision:"8c273e0538209709ae1235c20f112262"},{url:"connect/jira/editor-1-3-3.html",revision:"41dc8af9576b47f359cff19fff7a41c2"},{url:"connect/jira/viewerPanel-1-3-12.html",revision:"4836f5e4308abe57830e441518364f23"},{url:"connect/jira/fullScreenViewer-1-3-3.html",revision:"abed474e47c0c41a5ad2366b4828f77a"},{url:"connect/jira/viewerPanel.js",revision:"75f816c208d0c621e3066a97ff0ee6cf"},{url:"connect/jira/spinner.gif",revision:"7d857ab9d86123e93d74d48e958fe743"},{url:"connect/jira/editor.js",revision:"c41221a9a51ff293f05ed13c7b142e5c"},{url:"connect/jira/fullscreen-viewer-init.js",revision:"d3269625ce04b7a277b779ff175957d0"},{url:"connect/jira/fullscreen-viewer.js",revision:"8eceb2fe587296dd11f9c8f6eae34c20"},{url:"plugins/connectJira.js",revision:"c4cb6b60234b04b2c8bc09e555746615"},{url:"plugins/cConf-comments.js",revision:"8af574bd1ae86be37b83b094a5011a4f"},{url:"plugins/cConf-1-4-8.js",revision:"5324b1040e93e7e271c98060c2ef3993"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"261a7494161cee976ecfb110ac7571d2"},{url:"connect/new_common/cac.js",revision:"740dce44cf53499f476ee8edc37d09a0"},{url:"connect/gdrive_common/gac.js",revision:"3bb38a5d9186a896ed04808e921ef888"},{url:"connect/onedrive_common/ac.js",revision:"5fb6ff1a73f54a9086b7a7e1f613b8ed"},{url:"connect/confluence/viewer-init.js",revision:"b82e366bf57ecced9435c2a8ba9cb9b9"},{url:"connect/confluence/viewer.js",revision:"6542434cf3df5c60163e2767678f1bfc"},{url:"connect/confluence/viewer-1-4-42.html",revision:"69c1bca25fd4889bf832e8441c972268"},{url:"connect/confluence/macroEditor-1-4-8.html",revision:"4ad77ae3f08c19eddac932b2fa8c7068"},{url:"connect/confluence/includeDiagram-1-4-8.js",revision:"30ff609b31d4a8c38da6c28e555947ea"},{url:"connect/confluence/includeDiagram.html",revision:"9613fec05b19ddef081ca6e9d8b057bf"},{url:"connect/confluence/macro-editor.js",revision:"03a8dcfc69612b44b6e75e6926a956fc"},{url:"math/es5/startup.js",revision:"dc7130cdc866593293dbb5dde11ceb40"},{url:"math/es5/core.js",revision:"f71bc0bfb7d2ac8261747f97a5d47dd4"},{url:"math/es5/ui/safe.js",revision:"8c1fcfee7c879588ad409edcdd9cce53"},{url:"math/es5/output/svg.js",revision:"4f55967d16197ebb01b86356d8ab179a"},{url:"math/es5/input/tex.js",revision:"5c4f470da2ccb1acf85041fcecd6fff6"},{url:"math/es5/input/asciimath.js",revision:"c2d4076dd8e26d509bfe3a378e71cfa7"},{url:"math/es5/output/svg/fonts/tex.js",revision:"6eab785a3788ea805bd2b552d1f0aab8"},{url:"resources/dia.txt",revision:"42a4ae7a4de9465190f28fea6f5c520f"},{url:"resources/dia_am.txt",revision:"8f0d1d9b7812db92a93f2c6d433e07a6"},{url:"resources/dia_ar.txt",revision:"134401fa60d1c0bf84ee6c16fc505c15"},{url:"resources/dia_bg.txt",revision:"84715ae0c89e70874c47e6d3a3443e17"},{url:"resources/dia_bn.txt",revision:"684ce523efe22b33f86a675f4c6e4ef2"},{url:"resources/dia_bs.txt",revision:"dd6b857fcf0088b9663e627432fa7a88"},{url:"resources/dia_ca.txt",revision:"c0de34457558f97652ea92a6849db834"},{url:"resources/dia_cs.txt",revision:"120cf9f38b594bb9a626c803569e3f23"},{url:"resources/dia_da.txt",revision:"0fe263b0d2e3589a7587418650e34f6d"},{url:"resources/dia_de.txt",revision:"5b5fa3dfc98ae97a90753914effb320b"},{url:"resources/dia_el.txt",revision:"44d39b7d272f7f2bd445f0c6c0e68f12"},{url:"resources/dia_eo.txt",revision:"6f9e6f2660915427c12a0b7f64635fa7"},{url:"resources/dia_es.txt",revision:"c48ff9b60de9a9e0cfec83d1704baeb6"},{url:"resources/dia_et.txt",revision:"94195324961f9e1ff65d1a42f52856e4"},{url:"resources/dia_eu.txt",revision:"f63bc2d7bde667c685997bc86a537b44"},{url:"resources/dia_fa.txt",revision:"d0889f88a60c5988dc0339125bda451a"},{url:"resources/dia_fi.txt",revision:"6451d181f592b4ad11ac26e3a4d5ab74"},{url:"resources/dia_fil.txt",revision:"e86e9680e06a815aad177c048688cff7"},{url:"resources/dia_fr.txt",revision:"4194b0e428b1872d621698e367b16402"},{url:"resources/dia_gl.txt",revision:"d1cd37bcc7929fa4babe1ca198a93181"},{url:"resources/dia_gu.txt",revision:"694fff784dd524616c879a854d88ae68"},{url:"resources/dia_he.txt",revision:"4b063ae0aebe86cdb05add071f5b0ee6"},{url:"resources/dia_hi.txt",revision:"43c94ca21f4f03bbe55b0d2ba2be4b46"},{url:"resources/dia_hr.txt",revision:"8c265f964deec3e4e0a79fd91d3e9eb9"},{url:"resources/dia_hu.txt",revision:"f59b712a7f7e27dffcbc896a779685b2"},{url:"resources/dia_id.txt",revision:"c79c01c2db4677d9800f505fbbfa5058"},{url:"resources/dia_it.txt",revision:"6f142fd707a4099db0822a1d7db68ea0"},{url:"resources/dia_ja.txt",revision:"64a20b4916a8998be0f42d63562c7baa"},{url:"resources/dia_kn.txt",revision:"ff3d0232e27e2aa965c3bab5eded2cb3"},{url:"resources/dia_ko.txt",revision:"db718b3281604828aa651ba5a63c0339"},{url:"resources/dia_lt.txt",revision:"1be856b558cc9a645a9e258d69209f00"},{url:"resources/dia_lv.txt",revision:"ff269200edc2b4f45f8364e5588c75bd"},{url:"resources/dia_ml.txt",revision:"25e365fc609a3f41890626caf373c20b"},{url:"resources/dia_mr.txt",revision:"e9205e57e50f53c72e388cd38e59861e"},{url:"resources/dia_ms.txt",revision:"52f89e17fc25d2fe5681e2e9f9bfc8f5"},{url:"resources/dia_my.txt",revision:"efd905c0f6649871481a422787b6efaf"},{url:"resources/dia_nl.txt",revision:"535a29fcceaba4764144435ab6493a4c"},{url:"resources/dia_no.txt",revision:"16b441483de230be46e8408d3dba194d"},{url:"resources/dia_pl.txt",revision:"05d7a97404b03cb2395caa66d69607c4"},{url:"resources/dia_pt-br.txt",revision:"758ab749a0d77a9865f69396c392ab0d"},{url:"resources/dia_pt.txt",revision:"9aa63328bdea7fbaf55e85415da0c8f1"},{url:"resources/dia_ro.txt",revision:"0d7a9b7001c37e5c6e7d81d948106500"},{url:"resources/dia_ru.txt",revision:"0e3837f443d76fd69f738d75d7a7a7e6"},{url:"resources/dia_si.txt",revision:"15130554ca314fb7b7002ae4f6ab4bd6"},{url:"resources/dia_sk.txt",revision:"177abe3d377aefa3eed045c0752c8415"},{url:"resources/dia_sl.txt",revision:"5940f6acf98abf588b3f0297e81a29f5"},{url:"resources/dia_sr.txt",revision:"cefbc97890a94bfd1dbefd9cb0d0e641"},{url:"resources/dia_sv.txt",revision:"e96c9c01ebdb2820797c1eee22711d55"},{url:"resources/dia_sw.txt",revision:"875b87315bfc1cac4de49ebf19383433"},{url:"resources/dia_ta.txt",revision:"acb6a6d0001f261a7330234385014a8c"},{url:"resources/dia_te.txt",revision:"e20df7c06a79c46001ab0082698faee9"},{url:"resources/dia_th.txt",revision:"fe792ae8b06057614862bde11591d51a"},{url:"resources/dia_tr.txt",revision:"81aba33b847ad440bbd49de4ee25af5f"},{url:"resources/dia_uk.txt",revision:"091c107bfb18db4cd9180925273c9a5c"},{url:"resources/dia_vi.txt",revision:"fdfe28ebb439f69e7c814fde22767f6e"},{url:"resources/dia_zh-tw.txt",revision:"c73a94b343656865b20397e3cd4aee14"},{url:"resources/dia_zh.txt",revision:"2bd68d255eba4fe84d03bd7f34ad2d0b"},{url:"favicon.ico",revision:"83014b0f32b6c7b15b66cf3c6d6d7c16"},{url:"images/manifest.json",revision:"38d3a7e4b63e8175f0aab6f03e000f07"},{url:"images/logo.png",revision:"e4e0d092abdb1e668b5ec41a7fe0713c"},{url:"images/drawlogo.svg",revision:"4bf4d14ebcf072d8bd4c5a1c89e88fc6"},{url:"images/drawlogo48.png",revision:"8b13428373aca67b895364d025f42417"},{url:"images/drawlogo-gray.svg",revision:"0aabacbc0873816e1e09e4736ae44c7d"},{url:"images/drawlogo-text-bottom.svg",revision:"f6c438823ab31f290940bd4feb8dd9c2"},{url:"images/default-user.jpg",revision:"2c399696a87c8921f12d2f9e1990cc6e"},{url:"images/logo-flat-small.png",revision:"4b178e59ff499d6dd1894fc498b59877"},{url:"images/apple-touch-icon.png",revision:"732c29e21332a926318a7005d21ec450"},{url:"images/icon-192-maskable.png",revision:"47e006d0ce4a35eb5beaa97f0c2bfed0"},{url:"images/icon-192.png",revision:"d022403d52435d76afec82c4e24a17ef"},{url:"images/icon-512-maskable.png",revision:"cf152feeb01fb21f3148a71a3540266e"},{url:"images/icon-512.png",revision:"a3a0df7e7a385244b74073f81ecc45de"},{url:"images/delete.png",revision:"5f2350f2fd20f1a229637aed32ed8f29"},{url:"images/droptarget.png",revision:"bbf7f563fb6784de1ce96f329519b043"},{url:"images/help.png",revision:"9266c6c3915bd33c243d80037d37bf61"},{url:"images/download.png",revision:"35418dd7bd48d87502c71b578cc6c37f"},{url:"images/logo-flat.png",revision:"038070ab43aee6e54a791211859fc67b"},{url:"images/google-drive-logo.svg",revision:"5d9f2f5bbc7dcc252730a0072bb23059"},{url:"images/onedrive-logo.svg",revision:"3645b344ec0634c1290dd58d7dc87b97"},{url:"images/dropbox-logo.svg",revision:"e6be408c77cf9c82d41ac64fa854280a"},{url:"images/github-logo.svg",revision:"a1a999b69a275eac0cb918360ac05ae1"},{url:"images/gitlab-logo.svg",revision:"0faea8c818899e58533e153c44b10517"},{url:"images/trello-logo.svg",revision:"006fd0d7d70d7e95dc691674cb12e044"},{url:"images/osa_drive-harddisk.png",revision:"b954e1ae772087c5b4c6ae797e1f9649"},{url:"images/osa_database.png",revision:"c350d9d9b95f37b6cfe798b40ede5fb0"},{url:"images/google-drive-logo-white.svg",revision:"f329d8b1be7778515a85b93fc35d9f26"},{url:"images/dropbox-logo-white.svg",revision:"4ea8299ac3bc31a16f199ee3aec223bf"},{url:"images/onedrive-logo-white.svg",revision:"b3602fa0fc947009cff3f33a581cff4d"},{url:"images/github-logo-white.svg",revision:"537b1127b3ca0f95b45782d1304fb77a"},{url:"images/gitlab-logo-white.svg",revision:"5fede9ac2f394c716b8c23e3fddc3910"},{url:"images/trello-logo-white-orange.svg",revision:"e2a0a52ba3766682f138138d10a75eb5"},{url:"images/logo-confluence.png",revision:"ed1e55d44ae5eba8f999aba2c93e8331"},{url:"images/logo-jira.png",revision:"f8d460555a0d1f87cfd901e940666629"},{url:"images/clear.gif",revision:"db13c778e4382e0b55258d0f811d5d70"},{url:"images/spin.gif",revision:"487cbb40b9ced439aa1ad914e816d773"},{url:"images/checkmark.gif",revision:"ba764ce62f2bf952df5bbc2bb4d381c5"},{url:"images/aui-wait.gif",revision:"5a474bcbd8d2f2826f03d10ea44bf60e"},{url:"mxgraph/css/common.css",revision:"7985b4d1692766a7db52cbdd10893ad9"},{url:"mxgraph/images/expanded.gif",revision:"2b67c2c035af1e9a5cc814f0d22074cf"},{url:"mxgraph/images/collapsed.gif",revision:"73cc826da002a3d740ca4ce6ec5c1f4a"},{url:"mxgraph/images/maximize.gif",revision:"5cd13d6925493ab51e876694cc1c2ec2"},{url:"mxgraph/images/minimize.gif",revision:"8957741b9b0f86af9438775f2aadbb54"},{url:"mxgraph/images/close.gif",revision:"8b84669812ac7382984fca35de8da48b"},{url:"mxgraph/images/resize.gif",revision:"a6477612b3567a34033f9cac6184eed3"},{url:"mxgraph/images/separator.gif",revision:"7819742ff106c97da7a801c2372bbbe5"},{url:"mxgraph/images/window.gif",revision:"fd9a21dd4181f98052a202a0a01f18ab"},{url:"mxgraph/images/window-title.gif",revision:"3fb1d6c43246cdf991a11dfe826dfe99"},{url:"mxgraph/images/button.gif",revision:"00759bdc3ad218fa739f584369541809"},{url:"mxgraph/images/point.gif",revision:"83a43717b284902442620f61bc4e9fa6"}],{ignoreURLParametersMatching:[/.*/]})}));
+if(!self.define){let e,i={};const r=(r,a)=>(r=new URL(r+".js",a).href,i[r]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=r,e.onload=i,document.head.appendChild(e)}else e=r,importScripts(r),i()})).then((()=>{let e=i[r];if(!e)throw new Error(`Module ${r} didn’t register its module`);return e})));self.define=(a,c)=>{const s=e||("document"in self?document.currentScript.src:"")||location.href;if(i[s])return;let d={};const o=e=>r(e,s),f={module:{uri:s},exports:d,require:o};i[s]=Promise.all(a.map((e=>f[e]||o(e)))).then((e=>(c(...e),d)))}}define(["./workbox-72a83b64"],(function(e){"use strict";self.skipWaiting(),e.precacheAndRoute([{url:"js/app.min.js",revision:"15cc6f38a0326d5546f4214a019dd601"},{url:"js/extensions.min.js",revision:"6c8030b167f277cbd58242619a7ec569"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"f760278d924467fb1d2289448c73fe27"},{url:"js/shapes-14-6-5.min.js",revision:"71913a30c93bc9aff182a3a2b3da1a21"},{url:"js/math-print.js",revision:"cf64f6a493a8cb5079f2b70813e478d7"},{url:"index.html",revision:"57fe6012597666439de3e76c9bb681c1"},{url:"open.html",revision:"d71816b3b00e769fc6019fcdd6921662"},{url:"shortcuts.svg",revision:"2381dd779ce6cfee954042a7f784c7e6"},{url:"styles/fonts/ArchitectsDaughter-Regular.ttf",revision:"31c2153c0530e32553b31a49b3d70736"},{url:"styles/grapheditor.css",revision:"1c4b010eb053bfb9aed1caee8a3d3689"},{url:"styles/atlas.css",revision:"05873c4bba51f571b1da549a967ea06c"},{url:"styles/dark.css",revision:"99dc5495d36d5ebaddababefde083c8c"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"505e8280346666f7ee801bc59521fa67"},{url:"js/viewer-static.min.js",revision:"d9a5f6d15d825a0ffa6b5eada5fd0263"},{url:"connect/jira/editor-1-3-3.html",revision:"41dc8af9576b47f359cff19fff7a41c2"},{url:"connect/jira/viewerPanel-1-3-12.html",revision:"4836f5e4308abe57830e441518364f23"},{url:"connect/jira/fullScreenViewer-1-3-3.html",revision:"abed474e47c0c41a5ad2366b4828f77a"},{url:"connect/jira/viewerPanel.js",revision:"75f816c208d0c621e3066a97ff0ee6cf"},{url:"connect/jira/spinner.gif",revision:"7d857ab9d86123e93d74d48e958fe743"},{url:"connect/jira/editor.js",revision:"c41221a9a51ff293f05ed13c7b142e5c"},{url:"connect/jira/fullscreen-viewer-init.js",revision:"d3269625ce04b7a277b779ff175957d0"},{url:"connect/jira/fullscreen-viewer.js",revision:"8eceb2fe587296dd11f9c8f6eae34c20"},{url:"plugins/connectJira.js",revision:"c4cb6b60234b04b2c8bc09e555746615"},{url:"plugins/cConf-comments.js",revision:"8af574bd1ae86be37b83b094a5011a4f"},{url:"plugins/cConf-1-4-8.js",revision:"5324b1040e93e7e271c98060c2ef3993"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"261a7494161cee976ecfb110ac7571d2"},{url:"connect/new_common/cac.js",revision:"740dce44cf53499f476ee8edc37d09a0"},{url:"connect/gdrive_common/gac.js",revision:"3bb38a5d9186a896ed04808e921ef888"},{url:"connect/onedrive_common/ac.js",revision:"5fb6ff1a73f54a9086b7a7e1f613b8ed"},{url:"connect/confluence/viewer-init.js",revision:"b82e366bf57ecced9435c2a8ba9cb9b9"},{url:"connect/confluence/viewer.js",revision:"6542434cf3df5c60163e2767678f1bfc"},{url:"connect/confluence/viewer-1-4-42.html",revision:"69c1bca25fd4889bf832e8441c972268"},{url:"connect/confluence/macroEditor-1-4-8.html",revision:"4ad77ae3f08c19eddac932b2fa8c7068"},{url:"connect/confluence/includeDiagram-1-4-8.js",revision:"30ff609b31d4a8c38da6c28e555947ea"},{url:"connect/confluence/includeDiagram.html",revision:"9613fec05b19ddef081ca6e9d8b057bf"},{url:"connect/confluence/macro-editor.js",revision:"03a8dcfc69612b44b6e75e6926a956fc"},{url:"math/es5/startup.js",revision:"dc7130cdc866593293dbb5dde11ceb40"},{url:"math/es5/core.js",revision:"f71bc0bfb7d2ac8261747f97a5d47dd4"},{url:"math/es5/ui/safe.js",revision:"8c1fcfee7c879588ad409edcdd9cce53"},{url:"math/es5/output/svg.js",revision:"4f55967d16197ebb01b86356d8ab179a"},{url:"math/es5/input/tex.js",revision:"5c4f470da2ccb1acf85041fcecd6fff6"},{url:"math/es5/input/asciimath.js",revision:"c2d4076dd8e26d509bfe3a378e71cfa7"},{url:"math/es5/output/svg/fonts/tex.js",revision:"6eab785a3788ea805bd2b552d1f0aab8"},{url:"resources/dia.txt",revision:"a726a58a2d59523ca753f8b0903532ee"},{url:"resources/dia_am.txt",revision:"f7a8e69eebd1d8f0c2f6a70f400f41a3"},{url:"resources/dia_ar.txt",revision:"65016a8534f38bf6da6f376885d4d69b"},{url:"resources/dia_bg.txt",revision:"d22ffbc3b9f16db712de7b1599713ddb"},{url:"resources/dia_bn.txt",revision:"27fdbdec421253a9b34a6b774adb84ad"},{url:"resources/dia_bs.txt",revision:"bed197c99542dff2f0cfa06ffa5bb12e"},{url:"resources/dia_ca.txt",revision:"53517047fa990942ca8072117a8dc811"},{url:"resources/dia_cs.txt",revision:"8827f488d3a442b743c14fda3cf76d0c"},{url:"resources/dia_da.txt",revision:"b270690419e09c2146e2e6c86c4b76ec"},{url:"resources/dia_de.txt",revision:"0460823830c493a9fc6233026653e8c8"},{url:"resources/dia_el.txt",revision:"3a8c65931767aee90a613d1e8d3e2335"},{url:"resources/dia_eo.txt",revision:"dbd3a69346a7337e52dce734525dea8d"},{url:"resources/dia_es.txt",revision:"ee605383ddb2e211fda1d3610e433e5a"},{url:"resources/dia_et.txt",revision:"4588d8aeadd4e4de360e1cfc2bb56a56"},{url:"resources/dia_eu.txt",revision:"95a8404f4821b4be9021549275e4ae52"},{url:"resources/dia_fa.txt",revision:"0ae92f3d8a33fe0068710ddfc5106cf4"},{url:"resources/dia_fi.txt",revision:"3df4e7235950196c45ca1d9a3c50c7da"},{url:"resources/dia_fil.txt",revision:"d980d719b67fe354964d6757331270e9"},{url:"resources/dia_fr.txt",revision:"c5f64561a12f9b50bac2e325bc5fe4f6"},{url:"resources/dia_gl.txt",revision:"962c461b66718b0340c339b42d99c3fe"},{url:"resources/dia_gu.txt",revision:"15fe4cfedc6f83d0e8f63c5ffb05fa77"},{url:"resources/dia_he.txt",revision:"d58a014851bc8dd145b2c771185c1e33"},{url:"resources/dia_hi.txt",revision:"832093a7a401d574a5f896b4ed4122af"},{url:"resources/dia_hr.txt",revision:"fe57292f5d617ee3eef396714f22ccd0"},{url:"resources/dia_hu.txt",revision:"38c44f5f307a289c42be8587b536eba7"},{url:"resources/dia_id.txt",revision:"dacaf8327a6dca3b0d2fc2ce66f058ef"},{url:"resources/dia_it.txt",revision:"7b1bc2cb511d92ef8f76ff7133a3f035"},{url:"resources/dia_ja.txt",revision:"1322e77f9672c020104bdb179ea7f90d"},{url:"resources/dia_kn.txt",revision:"828501585da7ca9a18beff8e45371c03"},{url:"resources/dia_ko.txt",revision:"ad8459e751d7d5ef360c3443f466e0f8"},{url:"resources/dia_lt.txt",revision:"154efafa92951ea901c6d3ffaca044fe"},{url:"resources/dia_lv.txt",revision:"1fa2d0067f6532b26dfcb0fe83a980e9"},{url:"resources/dia_ml.txt",revision:"a2a67d628adf4aedc0a100e8bd0fcc03"},{url:"resources/dia_mr.txt",revision:"185d046dda09b25c8506b59571fa0cb8"},{url:"resources/dia_ms.txt",revision:"8edf40f4033e9274a823e40c7432c106"},{url:"resources/dia_my.txt",revision:"323eaa97b615ae165080606a2b71c3fb"},{url:"resources/dia_nl.txt",revision:"5b11e87d0936e74a1ff96d577afe0236"},{url:"resources/dia_no.txt",revision:"6c456ca98d726f1ea97820939e6cd54c"},{url:"resources/dia_pl.txt",revision:"9eb8e3085201cc6856fb1ac680950c5d"},{url:"resources/dia_pt-br.txt",revision:"4ad4b10582380b1f4dabaf890e5e7622"},{url:"resources/dia_pt.txt",revision:"a8f441d6fe23bbb3ea14f792e18c09a9"},{url:"resources/dia_ro.txt",revision:"9a20019c05c86c92dc46007b6055c151"},{url:"resources/dia_ru.txt",revision:"814e7dc74061cafb7949906af277d78c"},{url:"resources/dia_si.txt",revision:"6a434bb202a421077e8b7ed63ac231b1"},{url:"resources/dia_sk.txt",revision:"e883518f5cbc4f4f216b60764cf0f057"},{url:"resources/dia_sl.txt",revision:"d66b17e155e3bfe410b3648f139a8cdc"},{url:"resources/dia_sr.txt",revision:"5b421e26c8bc23d7b530746317b0363c"},{url:"resources/dia_sv.txt",revision:"54f5357ef865f19267633c3972189ba0"},{url:"resources/dia_sw.txt",revision:"f2417d57409c8c5f272e83c8238ef42e"},{url:"resources/dia_ta.txt",revision:"b8fc87e296a2cfe5cf0e7bc00e9e37dd"},{url:"resources/dia_te.txt",revision:"87705e0f363b0dd3b191e2f24c5f21b0"},{url:"resources/dia_th.txt",revision:"6b9767d5418e9ec658b61725f9bd8f06"},{url:"resources/dia_tr.txt",revision:"13ae94ba7bf69f8f46b24010293356df"},{url:"resources/dia_uk.txt",revision:"c8c88609ae31bead9e2eab1e04aa215d"},{url:"resources/dia_vi.txt",revision:"258761d474d278d597f93f9002890302"},{url:"resources/dia_zh-tw.txt",revision:"41019f97cd5318cd12f0249f9d848c86"},{url:"resources/dia_zh.txt",revision:"bfda714d8cf978bbec05065dce4fb747"},{url:"favicon.ico",revision:"83014b0f32b6c7b15b66cf3c6d6d7c16"},{url:"images/manifest.json",revision:"38d3a7e4b63e8175f0aab6f03e000f07"},{url:"images/logo.png",revision:"e4e0d092abdb1e668b5ec41a7fe0713c"},{url:"images/drawlogo.svg",revision:"4bf4d14ebcf072d8bd4c5a1c89e88fc6"},{url:"images/drawlogo48.png",revision:"8b13428373aca67b895364d025f42417"},{url:"images/drawlogo-gray.svg",revision:"0aabacbc0873816e1e09e4736ae44c7d"},{url:"images/drawlogo-text-bottom.svg",revision:"f6c438823ab31f290940bd4feb8dd9c2"},{url:"images/default-user.jpg",revision:"2c399696a87c8921f12d2f9e1990cc6e"},{url:"images/logo-flat-small.png",revision:"4b178e59ff499d6dd1894fc498b59877"},{url:"images/apple-touch-icon.png",revision:"732c29e21332a926318a7005d21ec450"},{url:"images/icon-192-maskable.png",revision:"47e006d0ce4a35eb5beaa97f0c2bfed0"},{url:"images/icon-192.png",revision:"d022403d52435d76afec82c4e24a17ef"},{url:"images/icon-512-maskable.png",revision:"cf152feeb01fb21f3148a71a3540266e"},{url:"images/icon-512.png",revision:"a3a0df7e7a385244b74073f81ecc45de"},{url:"images/delete.png",revision:"5f2350f2fd20f1a229637aed32ed8f29"},{url:"images/droptarget.png",revision:"bbf7f563fb6784de1ce96f329519b043"},{url:"images/help.png",revision:"9266c6c3915bd33c243d80037d37bf61"},{url:"images/download.png",revision:"35418dd7bd48d87502c71b578cc6c37f"},{url:"images/logo-flat.png",revision:"038070ab43aee6e54a791211859fc67b"},{url:"images/google-drive-logo.svg",revision:"5d9f2f5bbc7dcc252730a0072bb23059"},{url:"images/onedrive-logo.svg",revision:"3645b344ec0634c1290dd58d7dc87b97"},{url:"images/dropbox-logo.svg",revision:"e6be408c77cf9c82d41ac64fa854280a"},{url:"images/github-logo.svg",revision:"a1a999b69a275eac0cb918360ac05ae1"},{url:"images/gitlab-logo.svg",revision:"0faea8c818899e58533e153c44b10517"},{url:"images/trello-logo.svg",revision:"006fd0d7d70d7e95dc691674cb12e044"},{url:"images/osa_drive-harddisk.png",revision:"b954e1ae772087c5b4c6ae797e1f9649"},{url:"images/osa_database.png",revision:"c350d9d9b95f37b6cfe798b40ede5fb0"},{url:"images/google-drive-logo-white.svg",revision:"f329d8b1be7778515a85b93fc35d9f26"},{url:"images/dropbox-logo-white.svg",revision:"4ea8299ac3bc31a16f199ee3aec223bf"},{url:"images/onedrive-logo-white.svg",revision:"b3602fa0fc947009cff3f33a581cff4d"},{url:"images/github-logo-white.svg",revision:"537b1127b3ca0f95b45782d1304fb77a"},{url:"images/gitlab-logo-white.svg",revision:"5fede9ac2f394c716b8c23e3fddc3910"},{url:"images/trello-logo-white-orange.svg",revision:"e2a0a52ba3766682f138138d10a75eb5"},{url:"images/logo-confluence.png",revision:"ed1e55d44ae5eba8f999aba2c93e8331"},{url:"images/logo-jira.png",revision:"f8d460555a0d1f87cfd901e940666629"},{url:"images/clear.gif",revision:"db13c778e4382e0b55258d0f811d5d70"},{url:"images/spin.gif",revision:"487cbb40b9ced439aa1ad914e816d773"},{url:"images/checkmark.gif",revision:"ba764ce62f2bf952df5bbc2bb4d381c5"},{url:"images/aui-wait.gif",revision:"5a474bcbd8d2f2826f03d10ea44bf60e"},{url:"mxgraph/css/common.css",revision:"7985b4d1692766a7db52cbdd10893ad9"},{url:"mxgraph/images/expanded.gif",revision:"2b67c2c035af1e9a5cc814f0d22074cf"},{url:"mxgraph/images/collapsed.gif",revision:"73cc826da002a3d740ca4ce6ec5c1f4a"},{url:"mxgraph/images/maximize.gif",revision:"5cd13d6925493ab51e876694cc1c2ec2"},{url:"mxgraph/images/minimize.gif",revision:"8957741b9b0f86af9438775f2aadbb54"},{url:"mxgraph/images/close.gif",revision:"8b84669812ac7382984fca35de8da48b"},{url:"mxgraph/images/resize.gif",revision:"a6477612b3567a34033f9cac6184eed3"},{url:"mxgraph/images/separator.gif",revision:"7819742ff106c97da7a801c2372bbbe5"},{url:"mxgraph/images/window.gif",revision:"fd9a21dd4181f98052a202a0a01f18ab"},{url:"mxgraph/images/window-title.gif",revision:"3fb1d6c43246cdf991a11dfe826dfe99"},{url:"mxgraph/images/button.gif",revision:"00759bdc3ad218fa739f584369541809"},{url:"mxgraph/images/point.gif",revision:"83a43717b284902442620f61bc4e9fa6"}],{ignoreURLParametersMatching:[/.*/]})}));
//# sourceMappingURL=service-worker.js.map
diff --git a/src/main/webapp/service-worker.js.map b/src/main/webapp/service-worker.js.map
index 26d8e259d..c9752a594 100644
--- a/src/main/webapp/service-worker.js.map
+++ b/src/main/webapp/service-worker.js.map
@@ -1 +1 @@
-{"version":3,"file":"service-worker.js","sources":["../../../../../../private/var/folders/5p/vxfp3wpj4slfjt2m12dxyp9c0000gn/T/ce6020ca258d3eab725672f5deef7456/service-worker.js"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/precacheAndRoute.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\n\n\n\n\nself.skipWaiting();\n\n\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"1a856d27d3d67fa7ba1c5d49a3d77df8\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"b7348adb16856a4c46cf5d37f1925fe1\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"f760278d924467fb1d2289448c73fe27\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"71913a30c93bc9aff182a3a2b3da1a21\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"cf64f6a493a8cb5079f2b70813e478d7\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"57fe6012597666439de3e76c9bb681c1\"\n },\n {\n \"url\": \"open.html\",\n \"revision\": \"d71816b3b00e769fc6019fcdd6921662\"\n },\n {\n \"url\": \"shortcuts.svg\",\n \"revision\": \"2381dd779ce6cfee954042a7f784c7e6\"\n },\n {\n \"url\": \"styles/fonts/ArchitectsDaughter-Regular.ttf\",\n \"revision\": \"31c2153c0530e32553b31a49b3d70736\"\n },\n {\n \"url\": \"styles/grapheditor.css\",\n \"revision\": \"1c4b010eb053bfb9aed1caee8a3d3689\"\n },\n {\n \"url\": \"styles/atlas.css\",\n \"revision\": \"05873c4bba51f571b1da549a967ea06c\"\n },\n {\n \"url\": \"styles/dark.css\",\n \"revision\": \"99dc5495d36d5ebaddababefde083c8c\"\n },\n {\n \"url\": \"js/dropbox/Dropbox-sdk.min.js\",\n \"revision\": \"4b9842892aa37b156db0a8364b7a83b0\"\n },\n {\n \"url\": \"js/onedrive/OneDrive.js\",\n \"revision\": \"505e8280346666f7ee801bc59521fa67\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"8c273e0538209709ae1235c20f112262\"\n },\n {\n \"url\": \"connect/jira/editor-1-3-3.html\",\n \"revision\": \"41dc8af9576b47f359cff19fff7a41c2\"\n },\n {\n \"url\": \"connect/jira/viewerPanel-1-3-12.html\",\n \"revision\": \"4836f5e4308abe57830e441518364f23\"\n },\n {\n \"url\": \"connect/jira/fullScreenViewer-1-3-3.html\",\n \"revision\": \"abed474e47c0c41a5ad2366b4828f77a\"\n },\n {\n \"url\": \"connect/jira/viewerPanel.js\",\n \"revision\": \"75f816c208d0c621e3066a97ff0ee6cf\"\n },\n {\n \"url\": \"connect/jira/spinner.gif\",\n \"revision\": \"7d857ab9d86123e93d74d48e958fe743\"\n },\n {\n \"url\": \"connect/jira/editor.js\",\n \"revision\": \"c41221a9a51ff293f05ed13c7b142e5c\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer-init.js\",\n \"revision\": \"d3269625ce04b7a277b779ff175957d0\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer.js\",\n \"revision\": \"8eceb2fe587296dd11f9c8f6eae34c20\"\n },\n {\n \"url\": \"plugins/connectJira.js\",\n \"revision\": \"c4cb6b60234b04b2c8bc09e555746615\"\n },\n {\n \"url\": \"plugins/cConf-comments.js\",\n \"revision\": \"8af574bd1ae86be37b83b094a5011a4f\"\n },\n {\n \"url\": \"plugins/cConf-1-4-8.js\",\n \"revision\": \"5324b1040e93e7e271c98060c2ef3993\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"261a7494161cee976ecfb110ac7571d2\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"740dce44cf53499f476ee8edc37d09a0\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"3bb38a5d9186a896ed04808e921ef888\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"5fb6ff1a73f54a9086b7a7e1f613b8ed\"\n },\n {\n \"url\": \"connect/confluence/viewer-init.js\",\n \"revision\": \"b82e366bf57ecced9435c2a8ba9cb9b9\"\n },\n {\n \"url\": \"connect/confluence/viewer.js\",\n \"revision\": \"6542434cf3df5c60163e2767678f1bfc\"\n },\n {\n \"url\": \"connect/confluence/viewer-1-4-42.html\",\n \"revision\": \"69c1bca25fd4889bf832e8441c972268\"\n },\n {\n \"url\": \"connect/confluence/macroEditor-1-4-8.html\",\n \"revision\": \"4ad77ae3f08c19eddac932b2fa8c7068\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram-1-4-8.js\",\n \"revision\": \"30ff609b31d4a8c38da6c28e555947ea\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram.html\",\n \"revision\": \"9613fec05b19ddef081ca6e9d8b057bf\"\n },\n {\n \"url\": \"connect/confluence/macro-editor.js\",\n \"revision\": \"03a8dcfc69612b44b6e75e6926a956fc\"\n },\n {\n \"url\": \"math/es5/startup.js\",\n \"revision\": \"dc7130cdc866593293dbb5dde11ceb40\"\n },\n {\n \"url\": \"math/es5/core.js\",\n \"revision\": \"f71bc0bfb7d2ac8261747f97a5d47dd4\"\n },\n {\n \"url\": \"math/es5/ui/safe.js\",\n \"revision\": \"8c1fcfee7c879588ad409edcdd9cce53\"\n },\n {\n \"url\": \"math/es5/output/svg.js\",\n \"revision\": \"4f55967d16197ebb01b86356d8ab179a\"\n },\n {\n \"url\": \"math/es5/input/tex.js\",\n \"revision\": \"5c4f470da2ccb1acf85041fcecd6fff6\"\n },\n {\n \"url\": \"math/es5/input/asciimath.js\",\n \"revision\": \"c2d4076dd8e26d509bfe3a378e71cfa7\"\n },\n {\n \"url\": \"math/es5/output/svg/fonts/tex.js\",\n \"revision\": \"6eab785a3788ea805bd2b552d1f0aab8\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"42a4ae7a4de9465190f28fea6f5c520f\"\n },\n {\n \"url\": \"resources/dia_am.txt\",\n \"revision\": \"8f0d1d9b7812db92a93f2c6d433e07a6\"\n },\n {\n \"url\": \"resources/dia_ar.txt\",\n \"revision\": \"134401fa60d1c0bf84ee6c16fc505c15\"\n },\n {\n \"url\": \"resources/dia_bg.txt\",\n \"revision\": \"84715ae0c89e70874c47e6d3a3443e17\"\n },\n {\n \"url\": \"resources/dia_bn.txt\",\n \"revision\": \"684ce523efe22b33f86a675f4c6e4ef2\"\n },\n {\n \"url\": \"resources/dia_bs.txt\",\n \"revision\": \"dd6b857fcf0088b9663e627432fa7a88\"\n },\n {\n \"url\": \"resources/dia_ca.txt\",\n \"revision\": \"c0de34457558f97652ea92a6849db834\"\n },\n {\n \"url\": \"resources/dia_cs.txt\",\n \"revision\": \"120cf9f38b594bb9a626c803569e3f23\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"0fe263b0d2e3589a7587418650e34f6d\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"5b5fa3dfc98ae97a90753914effb320b\"\n },\n {\n \"url\": \"resources/dia_el.txt\",\n \"revision\": \"44d39b7d272f7f2bd445f0c6c0e68f12\"\n },\n {\n \"url\": \"resources/dia_eo.txt\",\n \"revision\": \"6f9e6f2660915427c12a0b7f64635fa7\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"c48ff9b60de9a9e0cfec83d1704baeb6\"\n },\n {\n \"url\": \"resources/dia_et.txt\",\n \"revision\": \"94195324961f9e1ff65d1a42f52856e4\"\n },\n {\n \"url\": \"resources/dia_eu.txt\",\n \"revision\": \"f63bc2d7bde667c685997bc86a537b44\"\n },\n {\n \"url\": \"resources/dia_fa.txt\",\n \"revision\": \"d0889f88a60c5988dc0339125bda451a\"\n },\n {\n \"url\": \"resources/dia_fi.txt\",\n \"revision\": \"6451d181f592b4ad11ac26e3a4d5ab74\"\n },\n {\n \"url\": \"resources/dia_fil.txt\",\n \"revision\": \"e86e9680e06a815aad177c048688cff7\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"4194b0e428b1872d621698e367b16402\"\n },\n {\n \"url\": \"resources/dia_gl.txt\",\n \"revision\": \"d1cd37bcc7929fa4babe1ca198a93181\"\n },\n {\n \"url\": \"resources/dia_gu.txt\",\n \"revision\": \"694fff784dd524616c879a854d88ae68\"\n },\n {\n \"url\": \"resources/dia_he.txt\",\n \"revision\": \"4b063ae0aebe86cdb05add071f5b0ee6\"\n },\n {\n \"url\": \"resources/dia_hi.txt\",\n \"revision\": \"43c94ca21f4f03bbe55b0d2ba2be4b46\"\n },\n {\n \"url\": \"resources/dia_hr.txt\",\n \"revision\": \"8c265f964deec3e4e0a79fd91d3e9eb9\"\n },\n {\n \"url\": \"resources/dia_hu.txt\",\n \"revision\": \"f59b712a7f7e27dffcbc896a779685b2\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"c79c01c2db4677d9800f505fbbfa5058\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"6f142fd707a4099db0822a1d7db68ea0\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"64a20b4916a8998be0f42d63562c7baa\"\n },\n {\n \"url\": \"resources/dia_kn.txt\",\n \"revision\": \"ff3d0232e27e2aa965c3bab5eded2cb3\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"db718b3281604828aa651ba5a63c0339\"\n },\n {\n \"url\": \"resources/dia_lt.txt\",\n \"revision\": \"1be856b558cc9a645a9e258d69209f00\"\n },\n {\n \"url\": \"resources/dia_lv.txt\",\n \"revision\": \"ff269200edc2b4f45f8364e5588c75bd\"\n },\n {\n \"url\": \"resources/dia_ml.txt\",\n \"revision\": \"25e365fc609a3f41890626caf373c20b\"\n },\n {\n \"url\": \"resources/dia_mr.txt\",\n \"revision\": \"e9205e57e50f53c72e388cd38e59861e\"\n },\n {\n \"url\": \"resources/dia_ms.txt\",\n \"revision\": \"52f89e17fc25d2fe5681e2e9f9bfc8f5\"\n },\n {\n \"url\": \"resources/dia_my.txt\",\n \"revision\": \"efd905c0f6649871481a422787b6efaf\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"535a29fcceaba4764144435ab6493a4c\"\n },\n {\n \"url\": \"resources/dia_no.txt\",\n \"revision\": \"16b441483de230be46e8408d3dba194d\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"05d7a97404b03cb2395caa66d69607c4\"\n },\n {\n \"url\": \"resources/dia_pt-br.txt\",\n \"revision\": \"758ab749a0d77a9865f69396c392ab0d\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"9aa63328bdea7fbaf55e85415da0c8f1\"\n },\n {\n \"url\": \"resources/dia_ro.txt\",\n \"revision\": \"0d7a9b7001c37e5c6e7d81d948106500\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"0e3837f443d76fd69f738d75d7a7a7e6\"\n },\n {\n \"url\": \"resources/dia_si.txt\",\n \"revision\": \"15130554ca314fb7b7002ae4f6ab4bd6\"\n },\n {\n \"url\": \"resources/dia_sk.txt\",\n \"revision\": \"177abe3d377aefa3eed045c0752c8415\"\n },\n {\n \"url\": \"resources/dia_sl.txt\",\n \"revision\": \"5940f6acf98abf588b3f0297e81a29f5\"\n },\n {\n \"url\": \"resources/dia_sr.txt\",\n \"revision\": \"cefbc97890a94bfd1dbefd9cb0d0e641\"\n },\n {\n \"url\": \"resources/dia_sv.txt\",\n \"revision\": \"e96c9c01ebdb2820797c1eee22711d55\"\n },\n {\n \"url\": \"resources/dia_sw.txt\",\n \"revision\": \"875b87315bfc1cac4de49ebf19383433\"\n },\n {\n \"url\": \"resources/dia_ta.txt\",\n \"revision\": \"acb6a6d0001f261a7330234385014a8c\"\n },\n {\n \"url\": \"resources/dia_te.txt\",\n \"revision\": \"e20df7c06a79c46001ab0082698faee9\"\n },\n {\n \"url\": \"resources/dia_th.txt\",\n \"revision\": \"fe792ae8b06057614862bde11591d51a\"\n },\n {\n \"url\": \"resources/dia_tr.txt\",\n \"revision\": \"81aba33b847ad440bbd49de4ee25af5f\"\n },\n {\n \"url\": \"resources/dia_uk.txt\",\n \"revision\": \"091c107bfb18db4cd9180925273c9a5c\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"fdfe28ebb439f69e7c814fde22767f6e\"\n },\n {\n \"url\": \"resources/dia_zh-tw.txt\",\n \"revision\": \"c73a94b343656865b20397e3cd4aee14\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"2bd68d255eba4fe84d03bd7f34ad2d0b\"\n },\n {\n \"url\": \"favicon.ico\",\n \"revision\": \"83014b0f32b6c7b15b66cf3c6d6d7c16\"\n },\n {\n \"url\": \"images/manifest.json\",\n \"revision\": \"38d3a7e4b63e8175f0aab6f03e000f07\"\n },\n {\n \"url\": \"images/logo.png\",\n \"revision\": \"e4e0d092abdb1e668b5ec41a7fe0713c\"\n },\n {\n \"url\": \"images/drawlogo.svg\",\n \"revision\": \"4bf4d14ebcf072d8bd4c5a1c89e88fc6\"\n },\n {\n \"url\": \"images/drawlogo48.png\",\n \"revision\": \"8b13428373aca67b895364d025f42417\"\n },\n {\n \"url\": \"images/drawlogo-gray.svg\",\n \"revision\": \"0aabacbc0873816e1e09e4736ae44c7d\"\n },\n {\n \"url\": \"images/drawlogo-text-bottom.svg\",\n \"revision\": \"f6c438823ab31f290940bd4feb8dd9c2\"\n },\n {\n \"url\": \"images/default-user.jpg\",\n \"revision\": \"2c399696a87c8921f12d2f9e1990cc6e\"\n },\n {\n \"url\": \"images/logo-flat-small.png\",\n \"revision\": \"4b178e59ff499d6dd1894fc498b59877\"\n },\n {\n \"url\": \"images/apple-touch-icon.png\",\n \"revision\": \"732c29e21332a926318a7005d21ec450\"\n },\n {\n \"url\": \"images/icon-192-maskable.png\",\n \"revision\": \"47e006d0ce4a35eb5beaa97f0c2bfed0\"\n },\n {\n \"url\": \"images/icon-192.png\",\n \"revision\": \"d022403d52435d76afec82c4e24a17ef\"\n },\n {\n \"url\": \"images/icon-512-maskable.png\",\n \"revision\": \"cf152feeb01fb21f3148a71a3540266e\"\n },\n {\n \"url\": \"images/icon-512.png\",\n \"revision\": \"a3a0df7e7a385244b74073f81ecc45de\"\n },\n {\n \"url\": \"images/delete.png\",\n \"revision\": \"5f2350f2fd20f1a229637aed32ed8f29\"\n },\n {\n \"url\": \"images/droptarget.png\",\n \"revision\": \"bbf7f563fb6784de1ce96f329519b043\"\n },\n {\n \"url\": \"images/help.png\",\n \"revision\": \"9266c6c3915bd33c243d80037d37bf61\"\n },\n {\n \"url\": \"images/download.png\",\n \"revision\": \"35418dd7bd48d87502c71b578cc6c37f\"\n },\n {\n \"url\": \"images/logo-flat.png\",\n \"revision\": \"038070ab43aee6e54a791211859fc67b\"\n },\n {\n \"url\": \"images/google-drive-logo.svg\",\n \"revision\": \"5d9f2f5bbc7dcc252730a0072bb23059\"\n },\n {\n \"url\": \"images/onedrive-logo.svg\",\n \"revision\": \"3645b344ec0634c1290dd58d7dc87b97\"\n },\n {\n \"url\": \"images/dropbox-logo.svg\",\n \"revision\": \"e6be408c77cf9c82d41ac64fa854280a\"\n },\n {\n \"url\": \"images/github-logo.svg\",\n \"revision\": \"a1a999b69a275eac0cb918360ac05ae1\"\n },\n {\n \"url\": \"images/gitlab-logo.svg\",\n \"revision\": \"0faea8c818899e58533e153c44b10517\"\n },\n {\n \"url\": \"images/trello-logo.svg\",\n \"revision\": \"006fd0d7d70d7e95dc691674cb12e044\"\n },\n {\n \"url\": \"images/osa_drive-harddisk.png\",\n \"revision\": \"b954e1ae772087c5b4c6ae797e1f9649\"\n },\n {\n \"url\": \"images/osa_database.png\",\n \"revision\": \"c350d9d9b95f37b6cfe798b40ede5fb0\"\n },\n {\n \"url\": \"images/google-drive-logo-white.svg\",\n \"revision\": \"f329d8b1be7778515a85b93fc35d9f26\"\n },\n {\n \"url\": \"images/dropbox-logo-white.svg\",\n \"revision\": \"4ea8299ac3bc31a16f199ee3aec223bf\"\n },\n {\n \"url\": \"images/onedrive-logo-white.svg\",\n \"revision\": \"b3602fa0fc947009cff3f33a581cff4d\"\n },\n {\n \"url\": \"images/github-logo-white.svg\",\n \"revision\": \"537b1127b3ca0f95b45782d1304fb77a\"\n },\n {\n \"url\": \"images/gitlab-logo-white.svg\",\n \"revision\": \"5fede9ac2f394c716b8c23e3fddc3910\"\n },\n {\n \"url\": \"images/trello-logo-white-orange.svg\",\n \"revision\": \"e2a0a52ba3766682f138138d10a75eb5\"\n },\n {\n \"url\": \"images/logo-confluence.png\",\n \"revision\": \"ed1e55d44ae5eba8f999aba2c93e8331\"\n },\n {\n \"url\": \"images/logo-jira.png\",\n \"revision\": \"f8d460555a0d1f87cfd901e940666629\"\n },\n {\n \"url\": \"images/clear.gif\",\n \"revision\": \"db13c778e4382e0b55258d0f811d5d70\"\n },\n {\n \"url\": \"images/spin.gif\",\n \"revision\": \"487cbb40b9ced439aa1ad914e816d773\"\n },\n {\n \"url\": \"images/checkmark.gif\",\n \"revision\": \"ba764ce62f2bf952df5bbc2bb4d381c5\"\n },\n {\n \"url\": \"images/aui-wait.gif\",\n \"revision\": \"5a474bcbd8d2f2826f03d10ea44bf60e\"\n },\n {\n \"url\": \"mxgraph/css/common.css\",\n \"revision\": \"7985b4d1692766a7db52cbdd10893ad9\"\n },\n {\n \"url\": \"mxgraph/images/expanded.gif\",\n \"revision\": \"2b67c2c035af1e9a5cc814f0d22074cf\"\n },\n {\n \"url\": \"mxgraph/images/collapsed.gif\",\n \"revision\": \"73cc826da002a3d740ca4ce6ec5c1f4a\"\n },\n {\n \"url\": \"mxgraph/images/maximize.gif\",\n \"revision\": \"5cd13d6925493ab51e876694cc1c2ec2\"\n },\n {\n \"url\": \"mxgraph/images/minimize.gif\",\n \"revision\": \"8957741b9b0f86af9438775f2aadbb54\"\n },\n {\n \"url\": \"mxgraph/images/close.gif\",\n \"revision\": \"8b84669812ac7382984fca35de8da48b\"\n },\n {\n \"url\": \"mxgraph/images/resize.gif\",\n \"revision\": \"a6477612b3567a34033f9cac6184eed3\"\n },\n {\n \"url\": \"mxgraph/images/separator.gif\",\n \"revision\": \"7819742ff106c97da7a801c2372bbbe5\"\n },\n {\n \"url\": \"mxgraph/images/window.gif\",\n \"revision\": \"fd9a21dd4181f98052a202a0a01f18ab\"\n },\n {\n \"url\": \"mxgraph/images/window-title.gif\",\n \"revision\": \"3fb1d6c43246cdf991a11dfe826dfe99\"\n },\n {\n \"url\": \"mxgraph/images/button.gif\",\n \"revision\": \"00759bdc3ad218fa739f584369541809\"\n },\n {\n \"url\": \"mxgraph/images/point.gif\",\n \"revision\": \"83a43717b284902442620f61bc4e9fa6\"\n }\n], {\n \"ignoreURLParametersMatching\": [/.*/]\n});\n\n\n\n\n\n\n\n\n"],"names":["self","skipWaiting","workbox_precaching_precacheAndRoute","url","revision","ignoreURLParametersMatching"],"mappings":"0nBAmBAA,KAAKC,cAULC,EAAAA,iBAAoC,CAClC,CACEC,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,YACKC,SAAA,oCAEd,CACED,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,8CACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,iCACKC,SAAA,oCAEd,CACED,IAAO,uCACKC,SAAA,oCAEd,CACED,IAAO,2CACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yCACKC,SAAA,oCAEd,CACED,IAAO,oCACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,2CACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,oCACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,wCACKC,SAAA,oCAEd,CACED,IAAO,4CACKC,SAAA,oCAEd,CACED,IAAO,6CACKC,SAAA,oCAEd,CACED,IAAO,yCACKC,SAAA,oCAEd,CACED,IAAO,qCACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,mCACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,cACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,kCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,6BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,qCACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,iCACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sCACKC,SAAA,oCAEd,CACED,IAAO,6BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,kCACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,qCAEb,CACDC,4BAA+B,CAAC"}
\ No newline at end of file
+{"version":3,"file":"service-worker.js","sources":["../../../../../../private/var/folders/5p/vxfp3wpj4slfjt2m12dxyp9c0000gn/T/c0a85820b0fd02d1f3eb46231ce44916/service-worker.js"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/precacheAndRoute.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\n\n\n\n\nself.skipWaiting();\n\n\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"15cc6f38a0326d5546f4214a019dd601\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"6c8030b167f277cbd58242619a7ec569\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"f760278d924467fb1d2289448c73fe27\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"71913a30c93bc9aff182a3a2b3da1a21\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"cf64f6a493a8cb5079f2b70813e478d7\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"57fe6012597666439de3e76c9bb681c1\"\n },\n {\n \"url\": \"open.html\",\n \"revision\": \"d71816b3b00e769fc6019fcdd6921662\"\n },\n {\n \"url\": \"shortcuts.svg\",\n \"revision\": \"2381dd779ce6cfee954042a7f784c7e6\"\n },\n {\n \"url\": \"styles/fonts/ArchitectsDaughter-Regular.ttf\",\n \"revision\": \"31c2153c0530e32553b31a49b3d70736\"\n },\n {\n \"url\": \"styles/grapheditor.css\",\n \"revision\": \"1c4b010eb053bfb9aed1caee8a3d3689\"\n },\n {\n \"url\": \"styles/atlas.css\",\n \"revision\": \"05873c4bba51f571b1da549a967ea06c\"\n },\n {\n \"url\": \"styles/dark.css\",\n \"revision\": \"99dc5495d36d5ebaddababefde083c8c\"\n },\n {\n \"url\": \"js/dropbox/Dropbox-sdk.min.js\",\n \"revision\": \"4b9842892aa37b156db0a8364b7a83b0\"\n },\n {\n \"url\": \"js/onedrive/OneDrive.js\",\n \"revision\": \"505e8280346666f7ee801bc59521fa67\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"d9a5f6d15d825a0ffa6b5eada5fd0263\"\n },\n {\n \"url\": \"connect/jira/editor-1-3-3.html\",\n \"revision\": \"41dc8af9576b47f359cff19fff7a41c2\"\n },\n {\n \"url\": \"connect/jira/viewerPanel-1-3-12.html\",\n \"revision\": \"4836f5e4308abe57830e441518364f23\"\n },\n {\n \"url\": \"connect/jira/fullScreenViewer-1-3-3.html\",\n \"revision\": \"abed474e47c0c41a5ad2366b4828f77a\"\n },\n {\n \"url\": \"connect/jira/viewerPanel.js\",\n \"revision\": \"75f816c208d0c621e3066a97ff0ee6cf\"\n },\n {\n \"url\": \"connect/jira/spinner.gif\",\n \"revision\": \"7d857ab9d86123e93d74d48e958fe743\"\n },\n {\n \"url\": \"connect/jira/editor.js\",\n \"revision\": \"c41221a9a51ff293f05ed13c7b142e5c\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer-init.js\",\n \"revision\": \"d3269625ce04b7a277b779ff175957d0\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer.js\",\n \"revision\": \"8eceb2fe587296dd11f9c8f6eae34c20\"\n },\n {\n \"url\": \"plugins/connectJira.js\",\n \"revision\": \"c4cb6b60234b04b2c8bc09e555746615\"\n },\n {\n \"url\": \"plugins/cConf-comments.js\",\n \"revision\": \"8af574bd1ae86be37b83b094a5011a4f\"\n },\n {\n \"url\": \"plugins/cConf-1-4-8.js\",\n \"revision\": \"5324b1040e93e7e271c98060c2ef3993\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"261a7494161cee976ecfb110ac7571d2\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"740dce44cf53499f476ee8edc37d09a0\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"3bb38a5d9186a896ed04808e921ef888\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"5fb6ff1a73f54a9086b7a7e1f613b8ed\"\n },\n {\n \"url\": \"connect/confluence/viewer-init.js\",\n \"revision\": \"b82e366bf57ecced9435c2a8ba9cb9b9\"\n },\n {\n \"url\": \"connect/confluence/viewer.js\",\n \"revision\": \"6542434cf3df5c60163e2767678f1bfc\"\n },\n {\n \"url\": \"connect/confluence/viewer-1-4-42.html\",\n \"revision\": \"69c1bca25fd4889bf832e8441c972268\"\n },\n {\n \"url\": \"connect/confluence/macroEditor-1-4-8.html\",\n \"revision\": \"4ad77ae3f08c19eddac932b2fa8c7068\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram-1-4-8.js\",\n \"revision\": \"30ff609b31d4a8c38da6c28e555947ea\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram.html\",\n \"revision\": \"9613fec05b19ddef081ca6e9d8b057bf\"\n },\n {\n \"url\": \"connect/confluence/macro-editor.js\",\n \"revision\": \"03a8dcfc69612b44b6e75e6926a956fc\"\n },\n {\n \"url\": \"math/es5/startup.js\",\n \"revision\": \"dc7130cdc866593293dbb5dde11ceb40\"\n },\n {\n \"url\": \"math/es5/core.js\",\n \"revision\": \"f71bc0bfb7d2ac8261747f97a5d47dd4\"\n },\n {\n \"url\": \"math/es5/ui/safe.js\",\n \"revision\": \"8c1fcfee7c879588ad409edcdd9cce53\"\n },\n {\n \"url\": \"math/es5/output/svg.js\",\n \"revision\": \"4f55967d16197ebb01b86356d8ab179a\"\n },\n {\n \"url\": \"math/es5/input/tex.js\",\n \"revision\": \"5c4f470da2ccb1acf85041fcecd6fff6\"\n },\n {\n \"url\": \"math/es5/input/asciimath.js\",\n \"revision\": \"c2d4076dd8e26d509bfe3a378e71cfa7\"\n },\n {\n \"url\": \"math/es5/output/svg/fonts/tex.js\",\n \"revision\": \"6eab785a3788ea805bd2b552d1f0aab8\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"a726a58a2d59523ca753f8b0903532ee\"\n },\n {\n \"url\": \"resources/dia_am.txt\",\n \"revision\": \"f7a8e69eebd1d8f0c2f6a70f400f41a3\"\n },\n {\n \"url\": \"resources/dia_ar.txt\",\n \"revision\": \"65016a8534f38bf6da6f376885d4d69b\"\n },\n {\n \"url\": \"resources/dia_bg.txt\",\n \"revision\": \"d22ffbc3b9f16db712de7b1599713ddb\"\n },\n {\n \"url\": \"resources/dia_bn.txt\",\n \"revision\": \"27fdbdec421253a9b34a6b774adb84ad\"\n },\n {\n \"url\": \"resources/dia_bs.txt\",\n \"revision\": \"bed197c99542dff2f0cfa06ffa5bb12e\"\n },\n {\n \"url\": \"resources/dia_ca.txt\",\n \"revision\": \"53517047fa990942ca8072117a8dc811\"\n },\n {\n \"url\": \"resources/dia_cs.txt\",\n \"revision\": \"8827f488d3a442b743c14fda3cf76d0c\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"b270690419e09c2146e2e6c86c4b76ec\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"0460823830c493a9fc6233026653e8c8\"\n },\n {\n \"url\": \"resources/dia_el.txt\",\n \"revision\": \"3a8c65931767aee90a613d1e8d3e2335\"\n },\n {\n \"url\": \"resources/dia_eo.txt\",\n \"revision\": \"dbd3a69346a7337e52dce734525dea8d\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"ee605383ddb2e211fda1d3610e433e5a\"\n },\n {\n \"url\": \"resources/dia_et.txt\",\n \"revision\": \"4588d8aeadd4e4de360e1cfc2bb56a56\"\n },\n {\n \"url\": \"resources/dia_eu.txt\",\n \"revision\": \"95a8404f4821b4be9021549275e4ae52\"\n },\n {\n \"url\": \"resources/dia_fa.txt\",\n \"revision\": \"0ae92f3d8a33fe0068710ddfc5106cf4\"\n },\n {\n \"url\": \"resources/dia_fi.txt\",\n \"revision\": \"3df4e7235950196c45ca1d9a3c50c7da\"\n },\n {\n \"url\": \"resources/dia_fil.txt\",\n \"revision\": \"d980d719b67fe354964d6757331270e9\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"c5f64561a12f9b50bac2e325bc5fe4f6\"\n },\n {\n \"url\": \"resources/dia_gl.txt\",\n \"revision\": \"962c461b66718b0340c339b42d99c3fe\"\n },\n {\n \"url\": \"resources/dia_gu.txt\",\n \"revision\": \"15fe4cfedc6f83d0e8f63c5ffb05fa77\"\n },\n {\n \"url\": \"resources/dia_he.txt\",\n \"revision\": \"d58a014851bc8dd145b2c771185c1e33\"\n },\n {\n \"url\": \"resources/dia_hi.txt\",\n \"revision\": \"832093a7a401d574a5f896b4ed4122af\"\n },\n {\n \"url\": \"resources/dia_hr.txt\",\n \"revision\": \"fe57292f5d617ee3eef396714f22ccd0\"\n },\n {\n \"url\": \"resources/dia_hu.txt\",\n \"revision\": \"38c44f5f307a289c42be8587b536eba7\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"dacaf8327a6dca3b0d2fc2ce66f058ef\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"7b1bc2cb511d92ef8f76ff7133a3f035\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"1322e77f9672c020104bdb179ea7f90d\"\n },\n {\n \"url\": \"resources/dia_kn.txt\",\n \"revision\": \"828501585da7ca9a18beff8e45371c03\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"ad8459e751d7d5ef360c3443f466e0f8\"\n },\n {\n \"url\": \"resources/dia_lt.txt\",\n \"revision\": \"154efafa92951ea901c6d3ffaca044fe\"\n },\n {\n \"url\": \"resources/dia_lv.txt\",\n \"revision\": \"1fa2d0067f6532b26dfcb0fe83a980e9\"\n },\n {\n \"url\": \"resources/dia_ml.txt\",\n \"revision\": \"a2a67d628adf4aedc0a100e8bd0fcc03\"\n },\n {\n \"url\": \"resources/dia_mr.txt\",\n \"revision\": \"185d046dda09b25c8506b59571fa0cb8\"\n },\n {\n \"url\": \"resources/dia_ms.txt\",\n \"revision\": \"8edf40f4033e9274a823e40c7432c106\"\n },\n {\n \"url\": \"resources/dia_my.txt\",\n \"revision\": \"323eaa97b615ae165080606a2b71c3fb\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"5b11e87d0936e74a1ff96d577afe0236\"\n },\n {\n \"url\": \"resources/dia_no.txt\",\n \"revision\": \"6c456ca98d726f1ea97820939e6cd54c\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"9eb8e3085201cc6856fb1ac680950c5d\"\n },\n {\n \"url\": \"resources/dia_pt-br.txt\",\n \"revision\": \"4ad4b10582380b1f4dabaf890e5e7622\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"a8f441d6fe23bbb3ea14f792e18c09a9\"\n },\n {\n \"url\": \"resources/dia_ro.txt\",\n \"revision\": \"9a20019c05c86c92dc46007b6055c151\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"814e7dc74061cafb7949906af277d78c\"\n },\n {\n \"url\": \"resources/dia_si.txt\",\n \"revision\": \"6a434bb202a421077e8b7ed63ac231b1\"\n },\n {\n \"url\": \"resources/dia_sk.txt\",\n \"revision\": \"e883518f5cbc4f4f216b60764cf0f057\"\n },\n {\n \"url\": \"resources/dia_sl.txt\",\n \"revision\": \"d66b17e155e3bfe410b3648f139a8cdc\"\n },\n {\n \"url\": \"resources/dia_sr.txt\",\n \"revision\": \"5b421e26c8bc23d7b530746317b0363c\"\n },\n {\n \"url\": \"resources/dia_sv.txt\",\n \"revision\": \"54f5357ef865f19267633c3972189ba0\"\n },\n {\n \"url\": \"resources/dia_sw.txt\",\n \"revision\": \"f2417d57409c8c5f272e83c8238ef42e\"\n },\n {\n \"url\": \"resources/dia_ta.txt\",\n \"revision\": \"b8fc87e296a2cfe5cf0e7bc00e9e37dd\"\n },\n {\n \"url\": \"resources/dia_te.txt\",\n \"revision\": \"87705e0f363b0dd3b191e2f24c5f21b0\"\n },\n {\n \"url\": \"resources/dia_th.txt\",\n \"revision\": \"6b9767d5418e9ec658b61725f9bd8f06\"\n },\n {\n \"url\": \"resources/dia_tr.txt\",\n \"revision\": \"13ae94ba7bf69f8f46b24010293356df\"\n },\n {\n \"url\": \"resources/dia_uk.txt\",\n \"revision\": \"c8c88609ae31bead9e2eab1e04aa215d\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"258761d474d278d597f93f9002890302\"\n },\n {\n \"url\": \"resources/dia_zh-tw.txt\",\n \"revision\": \"41019f97cd5318cd12f0249f9d848c86\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"bfda714d8cf978bbec05065dce4fb747\"\n },\n {\n \"url\": \"favicon.ico\",\n \"revision\": \"83014b0f32b6c7b15b66cf3c6d6d7c16\"\n },\n {\n \"url\": \"images/manifest.json\",\n \"revision\": \"38d3a7e4b63e8175f0aab6f03e000f07\"\n },\n {\n \"url\": \"images/logo.png\",\n \"revision\": \"e4e0d092abdb1e668b5ec41a7fe0713c\"\n },\n {\n \"url\": \"images/drawlogo.svg\",\n \"revision\": \"4bf4d14ebcf072d8bd4c5a1c89e88fc6\"\n },\n {\n \"url\": \"images/drawlogo48.png\",\n \"revision\": \"8b13428373aca67b895364d025f42417\"\n },\n {\n \"url\": \"images/drawlogo-gray.svg\",\n \"revision\": \"0aabacbc0873816e1e09e4736ae44c7d\"\n },\n {\n \"url\": \"images/drawlogo-text-bottom.svg\",\n \"revision\": \"f6c438823ab31f290940bd4feb8dd9c2\"\n },\n {\n \"url\": \"images/default-user.jpg\",\n \"revision\": \"2c399696a87c8921f12d2f9e1990cc6e\"\n },\n {\n \"url\": \"images/logo-flat-small.png\",\n \"revision\": \"4b178e59ff499d6dd1894fc498b59877\"\n },\n {\n \"url\": \"images/apple-touch-icon.png\",\n \"revision\": \"732c29e21332a926318a7005d21ec450\"\n },\n {\n \"url\": \"images/icon-192-maskable.png\",\n \"revision\": \"47e006d0ce4a35eb5beaa97f0c2bfed0\"\n },\n {\n \"url\": \"images/icon-192.png\",\n \"revision\": \"d022403d52435d76afec82c4e24a17ef\"\n },\n {\n \"url\": \"images/icon-512-maskable.png\",\n \"revision\": \"cf152feeb01fb21f3148a71a3540266e\"\n },\n {\n \"url\": \"images/icon-512.png\",\n \"revision\": \"a3a0df7e7a385244b74073f81ecc45de\"\n },\n {\n \"url\": \"images/delete.png\",\n \"revision\": \"5f2350f2fd20f1a229637aed32ed8f29\"\n },\n {\n \"url\": \"images/droptarget.png\",\n \"revision\": \"bbf7f563fb6784de1ce96f329519b043\"\n },\n {\n \"url\": \"images/help.png\",\n \"revision\": \"9266c6c3915bd33c243d80037d37bf61\"\n },\n {\n \"url\": \"images/download.png\",\n \"revision\": \"35418dd7bd48d87502c71b578cc6c37f\"\n },\n {\n \"url\": \"images/logo-flat.png\",\n \"revision\": \"038070ab43aee6e54a791211859fc67b\"\n },\n {\n \"url\": \"images/google-drive-logo.svg\",\n \"revision\": \"5d9f2f5bbc7dcc252730a0072bb23059\"\n },\n {\n \"url\": \"images/onedrive-logo.svg\",\n \"revision\": \"3645b344ec0634c1290dd58d7dc87b97\"\n },\n {\n \"url\": \"images/dropbox-logo.svg\",\n \"revision\": \"e6be408c77cf9c82d41ac64fa854280a\"\n },\n {\n \"url\": \"images/github-logo.svg\",\n \"revision\": \"a1a999b69a275eac0cb918360ac05ae1\"\n },\n {\n \"url\": \"images/gitlab-logo.svg\",\n \"revision\": \"0faea8c818899e58533e153c44b10517\"\n },\n {\n \"url\": \"images/trello-logo.svg\",\n \"revision\": \"006fd0d7d70d7e95dc691674cb12e044\"\n },\n {\n \"url\": \"images/osa_drive-harddisk.png\",\n \"revision\": \"b954e1ae772087c5b4c6ae797e1f9649\"\n },\n {\n \"url\": \"images/osa_database.png\",\n \"revision\": \"c350d9d9b95f37b6cfe798b40ede5fb0\"\n },\n {\n \"url\": \"images/google-drive-logo-white.svg\",\n \"revision\": \"f329d8b1be7778515a85b93fc35d9f26\"\n },\n {\n \"url\": \"images/dropbox-logo-white.svg\",\n \"revision\": \"4ea8299ac3bc31a16f199ee3aec223bf\"\n },\n {\n \"url\": \"images/onedrive-logo-white.svg\",\n \"revision\": \"b3602fa0fc947009cff3f33a581cff4d\"\n },\n {\n \"url\": \"images/github-logo-white.svg\",\n \"revision\": \"537b1127b3ca0f95b45782d1304fb77a\"\n },\n {\n \"url\": \"images/gitlab-logo-white.svg\",\n \"revision\": \"5fede9ac2f394c716b8c23e3fddc3910\"\n },\n {\n \"url\": \"images/trello-logo-white-orange.svg\",\n \"revision\": \"e2a0a52ba3766682f138138d10a75eb5\"\n },\n {\n \"url\": \"images/logo-confluence.png\",\n \"revision\": \"ed1e55d44ae5eba8f999aba2c93e8331\"\n },\n {\n \"url\": \"images/logo-jira.png\",\n \"revision\": \"f8d460555a0d1f87cfd901e940666629\"\n },\n {\n \"url\": \"images/clear.gif\",\n \"revision\": \"db13c778e4382e0b55258d0f811d5d70\"\n },\n {\n \"url\": \"images/spin.gif\",\n \"revision\": \"487cbb40b9ced439aa1ad914e816d773\"\n },\n {\n \"url\": \"images/checkmark.gif\",\n \"revision\": \"ba764ce62f2bf952df5bbc2bb4d381c5\"\n },\n {\n \"url\": \"images/aui-wait.gif\",\n \"revision\": \"5a474bcbd8d2f2826f03d10ea44bf60e\"\n },\n {\n \"url\": \"mxgraph/css/common.css\",\n \"revision\": \"7985b4d1692766a7db52cbdd10893ad9\"\n },\n {\n \"url\": \"mxgraph/images/expanded.gif\",\n \"revision\": \"2b67c2c035af1e9a5cc814f0d22074cf\"\n },\n {\n \"url\": \"mxgraph/images/collapsed.gif\",\n \"revision\": \"73cc826da002a3d740ca4ce6ec5c1f4a\"\n },\n {\n \"url\": \"mxgraph/images/maximize.gif\",\n \"revision\": \"5cd13d6925493ab51e876694cc1c2ec2\"\n },\n {\n \"url\": \"mxgraph/images/minimize.gif\",\n \"revision\": \"8957741b9b0f86af9438775f2aadbb54\"\n },\n {\n \"url\": \"mxgraph/images/close.gif\",\n \"revision\": \"8b84669812ac7382984fca35de8da48b\"\n },\n {\n \"url\": \"mxgraph/images/resize.gif\",\n \"revision\": \"a6477612b3567a34033f9cac6184eed3\"\n },\n {\n \"url\": \"mxgraph/images/separator.gif\",\n \"revision\": \"7819742ff106c97da7a801c2372bbbe5\"\n },\n {\n \"url\": \"mxgraph/images/window.gif\",\n \"revision\": \"fd9a21dd4181f98052a202a0a01f18ab\"\n },\n {\n \"url\": \"mxgraph/images/window-title.gif\",\n \"revision\": \"3fb1d6c43246cdf991a11dfe826dfe99\"\n },\n {\n \"url\": \"mxgraph/images/button.gif\",\n \"revision\": \"00759bdc3ad218fa739f584369541809\"\n },\n {\n \"url\": \"mxgraph/images/point.gif\",\n \"revision\": \"83a43717b284902442620f61bc4e9fa6\"\n }\n], {\n \"ignoreURLParametersMatching\": [/.*/]\n});\n\n\n\n\n\n\n\n\n"],"names":["self","skipWaiting","workbox_precaching_precacheAndRoute","url","revision","ignoreURLParametersMatching"],"mappings":"0nBAmBAA,KAAKC,cAULC,EAAAA,iBAAoC,CAClC,CACEC,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,YACKC,SAAA,oCAEd,CACED,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,8CACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,iCACKC,SAAA,oCAEd,CACED,IAAO,uCACKC,SAAA,oCAEd,CACED,IAAO,2CACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yCACKC,SAAA,oCAEd,CACED,IAAO,oCACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,2CACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,oCACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,wCACKC,SAAA,oCAEd,CACED,IAAO,4CACKC,SAAA,oCAEd,CACED,IAAO,6CACKC,SAAA,oCAEd,CACED,IAAO,yCACKC,SAAA,oCAEd,CACED,IAAO,qCACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,mCACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,cACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,kCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,6BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,qCACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,iCACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sCACKC,SAAA,oCAEd,CACED,IAAO,6BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,kCACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,qCAEb,CACDC,4BAA+B,CAAC"}
\ No newline at end of file